@infrab4a/connect 4.0.0-beta.5 → 4.0.0-beta.50
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/domain/catalog/helpers/index.d.ts +1 -0
- package/domain/catalog/helpers/round-product-price.helper.d.ts +4 -0
- package/domain/catalog/index.d.ts +1 -0
- package/domain/catalog/models/category-base.d.ts +30 -0
- package/domain/catalog/models/category-collection-children.d.ts +13 -0
- package/domain/catalog/models/category-filter.d.ts +13 -0
- package/domain/catalog/models/category-for-product.d.ts +5 -0
- package/domain/catalog/models/category.d.ts +5 -22
- package/domain/catalog/models/filter-option.d.ts +9 -0
- package/domain/catalog/models/filter.d.ts +12 -0
- package/domain/catalog/models/index.d.ts +5 -0
- package/domain/catalog/models/kit-product.d.ts +4 -4
- package/domain/catalog/models/product-base.d.ts +40 -0
- package/domain/catalog/models/product-for-category.d.ts +7 -0
- package/domain/catalog/models/product-for-kit.d.ts +7 -0
- package/domain/catalog/models/product.d.ts +5 -35
- package/domain/catalog/models/types/category-product.d.ts +4 -0
- package/domain/catalog/models/types/index.d.ts +2 -1
- package/domain/catalog/models/types/product-evaluation.type.d.ts +6 -0
- package/domain/catalog/models/types/shop-description.type.d.ts +1 -0
- package/domain/catalog/models/variant.d.ts +1 -2
- package/domain/catalog/models/wishlist.d.ts +6 -0
- package/domain/catalog/repositories/category-collection-children.repository.d.ts +4 -0
- package/domain/catalog/repositories/category-filter.repository.d.ts +6 -0
- package/domain/catalog/repositories/category.repository.d.ts +6 -3
- package/domain/catalog/repositories/filter-option.repository.d.ts +4 -0
- package/domain/catalog/repositories/filter.repository.d.ts +4 -0
- package/domain/catalog/repositories/index.d.ts +5 -0
- package/domain/catalog/repositories/product.repository.d.ts +4 -1
- package/domain/catalog/repositories/wishlist.repository.d.ts +6 -0
- package/domain/generic/model/base.model.d.ts +9 -5
- package/domain/generic/model/types/base-model-builder.type.d.ts +4 -2
- package/domain/generic/model/types/identifier-model.type.d.ts +6 -5
- package/domain/generic/model/types/model-base-structure.type.d.ts +9 -3
- package/domain/generic/model/types/non-function-property-name.type.d.ts +12 -3
- package/domain/generic/repository/find.repository.d.ts +7 -1
- package/domain/generic/repository/get.repository.d.ts +2 -2
- package/domain/generic/repository/types/repository-find-filters.type.d.ts +3 -3
- package/domain/generic/repository/types/repository-find-result.type.d.ts +11 -1
- package/domain/generic/repository/types/repository-order-by-list.type.d.ts +2 -2
- package/domain/generic/repository/types/repository-update-params.type.d.ts +2 -2
- package/domain/location/models/address.d.ts +5 -3
- package/domain/shop-settings/models/index.d.ts +1 -0
- package/domain/shop-settings/models/shop-settings.d.ts +9 -0
- package/domain/shop-settings/models/types/index.d.ts +6 -1
- package/domain/shop-settings/models/types/shop-banner.type.d.ts +12 -0
- package/domain/shop-settings/models/types/shop-brands.type.d.ts +10 -0
- package/domain/shop-settings/models/types/shop-carousel.type.d.ts +5 -0
- package/domain/shop-settings/models/types/shop-collection.type.d.ts +9 -0
- package/domain/shop-settings/models/types/shop-section.type.d.ts +9 -0
- package/domain/shop-settings/repositories/index.d.ts +1 -0
- package/domain/shop-settings/repositories/shop-settings.repository.d.ts +4 -0
- package/domain/shopping/models/buy-2-win.d.ts +3 -1
- package/domain/shopping/models/campaign-dashboard.d.ts +15 -0
- package/domain/shopping/models/campaign-hashtag.d.ts +18 -0
- package/domain/shopping/models/checkout.d.ts +5 -6
- package/domain/shopping/models/coupons/coupon.d.ts +34 -6
- package/domain/shopping/models/index.d.ts +5 -4
- package/domain/shopping/models/order.d.ts +1 -0
- package/domain/shopping/models/shipping-method.d.ts +1 -0
- package/domain/shopping/models/subscription/checkout.d.ts +3 -4
- package/domain/shopping/repositories/campaign-dashboard.repository.d.ts +4 -0
- package/domain/shopping/repositories/campaign-hashtag.repository.d.ts +4 -0
- package/domain/shopping/repositories/index.d.ts +4 -2
- package/domain/users/models/lead.d.ts +1 -0
- package/domain/users/models/subscription/subscription.d.ts +3 -3
- package/domain/users/models/user-address.d.ts +1 -2
- package/domain/users/models/user.d.ts +2 -3
- package/esm2020/domain/catalog/helpers/index.mjs +2 -0
- package/esm2020/domain/catalog/helpers/round-product-price.helper.mjs +15 -0
- package/esm2020/domain/catalog/index.mjs +2 -1
- package/esm2020/domain/catalog/models/category-base.mjs +18 -0
- package/esm2020/domain/catalog/models/category-collection-children.mjs +13 -0
- package/esm2020/domain/catalog/models/category-filter.mjs +19 -0
- package/esm2020/domain/catalog/models/category-for-product.mjs +7 -0
- package/esm2020/domain/catalog/models/category.mjs +10 -6
- package/esm2020/domain/catalog/models/filter-option.mjs +7 -0
- package/esm2020/domain/catalog/models/filter.mjs +7 -0
- package/esm2020/domain/catalog/models/index.mjs +6 -1
- package/esm2020/domain/catalog/models/kit-product.mjs +7 -7
- package/esm2020/domain/catalog/models/product-base.mjs +25 -0
- package/esm2020/domain/catalog/models/product-for-category.mjs +14 -0
- package/esm2020/domain/catalog/models/product-for-kit.mjs +14 -0
- package/esm2020/domain/catalog/models/product.mjs +8 -6
- package/esm2020/domain/catalog/models/types/category-product.mjs +2 -0
- package/esm2020/domain/catalog/models/types/index.mjs +3 -2
- package/esm2020/domain/catalog/models/types/product-evaluation.type.mjs +2 -0
- package/esm2020/domain/catalog/models/types/shop-description.type.mjs +1 -1
- package/esm2020/domain/catalog/models/variant.mjs +1 -4
- package/esm2020/domain/catalog/models/wishlist.mjs +7 -0
- package/esm2020/domain/catalog/repositories/category-collection-children.repository.mjs +2 -0
- package/esm2020/domain/catalog/repositories/category-filter.repository.mjs +2 -0
- package/esm2020/domain/catalog/repositories/category.repository.mjs +1 -1
- package/esm2020/domain/catalog/repositories/filter-option.repository.mjs +2 -0
- package/esm2020/domain/catalog/repositories/filter.repository.mjs +2 -0
- package/esm2020/domain/catalog/repositories/index.mjs +6 -1
- package/esm2020/domain/catalog/repositories/product.repository.mjs +1 -1
- package/esm2020/domain/catalog/repositories/wishlist.repository.mjs +2 -0
- package/esm2020/domain/generic/model/base.model.mjs +3 -2
- package/esm2020/domain/generic/model/types/base-model-builder.type.mjs +1 -1
- package/esm2020/domain/generic/model/types/identifier-model.type.mjs +1 -1
- package/esm2020/domain/generic/model/types/model-base-structure.type.mjs +1 -1
- package/esm2020/domain/generic/model/types/non-function-property-name.type.mjs +1 -1
- package/esm2020/domain/generic/repository/find.repository.mjs +1 -1
- package/esm2020/domain/generic/repository/get.repository.mjs +1 -1
- package/esm2020/domain/generic/repository/types/repository-find-filters.type.mjs +1 -1
- package/esm2020/domain/generic/repository/types/repository-find-result.type.mjs +1 -1
- package/esm2020/domain/generic/repository/types/repository-order-by-list.type.mjs +1 -1
- package/esm2020/domain/generic/repository/types/repository-update-params.type.mjs +1 -1
- package/esm2020/domain/location/models/address.mjs +2 -2
- package/esm2020/domain/shop-settings/models/index.mjs +2 -1
- package/esm2020/domain/shop-settings/models/shop-settings.mjs +7 -0
- package/esm2020/domain/shop-settings/models/types/index.mjs +7 -2
- package/esm2020/domain/shop-settings/models/types/shop-banner.type.mjs +2 -0
- package/esm2020/domain/shop-settings/models/types/shop-brands.type.mjs +2 -0
- package/esm2020/domain/shop-settings/models/types/shop-carousel.type.mjs +2 -0
- package/esm2020/domain/shop-settings/models/types/shop-collection.type.mjs +2 -0
- package/esm2020/domain/shop-settings/models/types/shop-section.type.mjs +2 -0
- package/esm2020/domain/shop-settings/repositories/index.mjs +2 -1
- package/esm2020/domain/shop-settings/repositories/shop-settings.repository.mjs +2 -0
- package/esm2020/domain/shopping/models/buy-2-win.mjs +2 -2
- package/esm2020/domain/shopping/models/campaign-dashboard.mjs +7 -0
- package/esm2020/domain/shopping/models/campaign-hashtag.mjs +7 -0
- package/esm2020/domain/shopping/models/checkout.mjs +6 -7
- package/esm2020/domain/shopping/models/coupons/coupon.mjs +16 -16
- package/esm2020/domain/shopping/models/index.mjs +6 -5
- package/esm2020/domain/shopping/models/order.mjs +1 -1
- package/esm2020/domain/shopping/models/shipping-method.mjs +1 -1
- package/esm2020/domain/shopping/models/subscription/checkout.mjs +6 -6
- package/esm2020/domain/shopping/repositories/campaign-dashboard.repository.mjs +2 -0
- package/esm2020/domain/shopping/repositories/campaign-hashtag.repository.mjs +2 -0
- package/esm2020/domain/shopping/repositories/index.mjs +5 -3
- package/esm2020/domain/users/models/lead.mjs +1 -1
- package/esm2020/domain/users/models/subscription/subscription.mjs +6 -6
- package/esm2020/domain/users/models/user-address.mjs +1 -1
- package/esm2020/domain/users/models/user.mjs +2 -2
- package/esm2020/domain/users/use-cases/authentication.mjs +2 -2
- package/esm2020/infra/elasticsearch/adapters/axios.adapter.mjs +28 -11
- package/esm2020/infra/elasticsearch/adapters/elastic-search.adapter.mjs +1 -1
- package/esm2020/infra/elasticsearch/indexes/products-index.mjs +63 -51
- package/esm2020/infra/elasticsearch/types/elastic-search-result.mjs +1 -1
- package/esm2020/infra/firebase/auth/authentication-firebase-auth.service.mjs +1 -1
- package/esm2020/infra/firebase/firestore/mixins/with-create-firestore.mixin.mjs +8 -4
- package/esm2020/infra/firebase/firestore/mixins/with-crud-firestore.mixin.mjs +1 -1
- package/esm2020/infra/firebase/firestore/mixins/with-delete-firestore.mixin.mjs +6 -2
- package/esm2020/infra/firebase/firestore/mixins/with-find-firestore.mixin.mjs +11 -8
- package/esm2020/infra/firebase/firestore/mixins/with-firestore.mixin.mjs +27 -4
- package/esm2020/infra/firebase/firestore/mixins/with-get-firestore.mixin.mjs +6 -3
- package/esm2020/infra/firebase/firestore/mixins/with-helpers.mixin.mjs +1 -1
- package/esm2020/infra/firebase/firestore/mixins/with-sub-collection.mixin.mjs +5 -3
- package/esm2020/infra/firebase/firestore/mixins/with-update-firestore.mixin.mjs +7 -4
- package/esm2020/infra/firebase/firestore/repositories/catalog/category-firestore.repository.mjs +21 -8
- package/esm2020/infra/firebase/firestore/repositories/catalog/product-firestore.repository.mjs +15 -7
- package/esm2020/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.mjs +10 -8
- package/esm2020/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.mjs +8 -6
- package/esm2020/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.mjs +36 -30
- package/esm2020/infra/firebase/firestore/repositories/shop-settings/index.mjs +2 -1
- package/esm2020/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.mjs +8 -6
- package/esm2020/infra/firebase/firestore/repositories/shop-settings/shop-settings-firestore.repository.mjs +14 -0
- package/esm2020/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.mjs +8 -6
- package/esm2020/infra/firebase/firestore/repositories/shopping/campaign-dashboard-firestore.repository.mjs +14 -0
- package/esm2020/infra/firebase/firestore/repositories/shopping/campaign-hashtag-firestore.repository.mjs +14 -0
- package/esm2020/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.mjs +8 -6
- package/esm2020/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.mjs +8 -6
- package/esm2020/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.mjs +8 -6
- package/esm2020/infra/firebase/firestore/repositories/shopping/index.mjs +6 -4
- package/esm2020/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.mjs +6 -4
- package/esm2020/infra/firebase/firestore/repositories/shopping/order-firestore.repository.mjs +11 -9
- package/esm2020/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.mjs +8 -6
- package/esm2020/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.mjs +8 -6
- package/esm2020/infra/firebase/firestore/repositories/users/lead-firestore.repository.mjs +8 -6
- package/esm2020/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.mjs +10 -8
- package/esm2020/infra/firebase/firestore/repositories/users/subscription-firestore.repository.mjs +8 -6
- package/esm2020/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.mjs +10 -8
- package/esm2020/infra/firebase/firestore/repositories/users/user-address-firestore.repository.mjs +10 -8
- package/esm2020/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.mjs +10 -8
- package/esm2020/infra/firebase/firestore/repositories/users/user-firestore.repository.mjs +8 -6
- package/esm2020/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.mjs +10 -8
- package/esm2020/infra/firebase/firestore/types/firestore-interceptors.type.mjs +2 -0
- package/esm2020/infra/firebase/firestore/types/firestore-sub.repository.type.mjs +1 -1
- package/esm2020/infra/firebase/firestore/types/firestore.helpers.type.mjs +1 -1
- package/esm2020/infra/firebase/firestore/types/firestore.repository.type.mjs +1 -1
- package/esm2020/infra/firebase/firestore/types/index.mjs +4 -3
- package/esm2020/infra/hasura-graphql/mixins/helpers/attribute-option.helper.mjs +3 -3
- package/esm2020/infra/hasura-graphql/mixins/helpers/bind-filter-query.helper.mjs +6 -5
- package/esm2020/infra/hasura-graphql/mixins/helpers/filter-option.helper.mjs +1 -1
- package/esm2020/infra/hasura-graphql/mixins/helpers/graphql-field.helper.mjs +36 -25
- package/esm2020/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.mjs +6 -4
- package/esm2020/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.mjs +1 -1
- package/esm2020/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.mjs +5 -3
- package/esm2020/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.mjs +126 -20
- package/esm2020/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.mjs +5 -3
- package/esm2020/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.mjs +40 -24
- package/esm2020/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.mjs +7 -5
- package/esm2020/infra/hasura-graphql/models/product-hasura-graphql.mjs +1 -1
- package/esm2020/infra/hasura-graphql/models/variant-hasura-graphql.mjs +1 -1
- package/esm2020/infra/hasura-graphql/repositories/catalog/category-collection-children-hasura-graphql.repository.mjs +39 -0
- package/esm2020/infra/hasura-graphql/repositories/catalog/category-filter-hasura-graphql.repository.mjs +107 -0
- package/esm2020/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.mjs +131 -14
- package/esm2020/infra/hasura-graphql/repositories/catalog/filter-hasura-graphql.repository.mjs +105 -0
- package/esm2020/infra/hasura-graphql/repositories/catalog/filter-option-hasura-graphql.repository.mjs +22 -0
- package/esm2020/infra/hasura-graphql/repositories/catalog/index.mjs +6 -1
- package/esm2020/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.mjs +70 -20
- package/esm2020/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.mjs +9 -7
- package/esm2020/infra/hasura-graphql/repositories/catalog/wishlist-hasura-graphql.repository.mjs +236 -0
- package/esm2020/infra/hasura-graphql/types/graphql.repository.type.mjs +1 -1
- package/esm2020/infra/hasura-graphql/types/hasura-graphql-fields.type.mjs +1 -1
- package/esm2020/utils/decorators/debug.class.decorator.mjs +7 -0
- package/esm2020/utils/decorators/index.mjs +3 -0
- package/esm2020/utils/decorators/trace.method.decorator.mjs +81 -0
- package/esm2020/utils/helpers/class-name.helper.mjs +15 -0
- package/esm2020/utils/helpers/debug-decorator.helper.mjs +18 -0
- package/esm2020/utils/helpers/debug.helper.mjs +150 -0
- package/esm2020/utils/helpers/index.mjs +5 -0
- package/esm2020/utils/helpers/reflect.helper.mjs +165 -0
- package/esm2020/utils/index.mjs +6 -4
- package/esm2020/utils/log.utils.mjs +9 -0
- package/fesm2015/infrab4a-connect.mjs +2000 -422
- package/fesm2015/infrab4a-connect.mjs.map +1 -1
- package/fesm2020/infrab4a-connect.mjs +1966 -425
- package/fesm2020/infrab4a-connect.mjs.map +1 -1
- package/infra/elasticsearch/adapters/axios.adapter.d.ts +7 -5
- package/infra/elasticsearch/adapters/elastic-search.adapter.d.ts +3 -2
- package/infra/elasticsearch/indexes/products-index.d.ts +8 -10
- package/infra/elasticsearch/types/elastic-search-result.d.ts +2 -0
- package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +2 -2
- package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +2 -1
- package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +2 -2
- package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +2 -2
- package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +13 -4
- package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +2 -2
- package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +2 -2
- package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +8 -4
- package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +3 -3
- package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +8 -5
- package/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +6 -5
- package/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +4 -4
- package/infra/firebase/firestore/repositories/shop-settings/index.d.ts +1 -0
- package/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/shop-settings/shop-settings-firestore.repository.d.ts +7 -0
- package/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/shopping/campaign-dashboard-firestore.repository.d.ts +8 -0
- package/infra/firebase/firestore/repositories/shopping/campaign-hashtag-firestore.repository.d.ts +8 -0
- package/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +4 -4
- package/infra/firebase/firestore/repositories/shopping/index.d.ts +5 -3
- package/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +4 -4
- package/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +4 -4
- package/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +3 -4
- package/infra/firebase/firestore/types/firestore-interceptors.type.d.ts +14 -0
- package/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +3 -3
- package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +5 -5
- package/infra/firebase/firestore/types/firestore.repository.type.d.ts +3 -1
- package/infra/firebase/firestore/types/index.d.ts +3 -2
- package/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +9 -3
- package/infra/hasura-graphql/mixins/helpers/bind-filter-query.helper.d.ts +5 -5
- package/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +4 -2
- package/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +9 -5
- package/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +2 -1
- package/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +3 -3
- package/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +1 -1
- package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +24 -15
- package/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +7 -6
- package/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +15 -3
- package/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +2 -2
- package/infra/hasura-graphql/models/product-hasura-graphql.d.ts +4 -0
- package/infra/hasura-graphql/models/variant-hasura-graphql.d.ts +1 -0
- package/infra/hasura-graphql/repositories/catalog/category-collection-children-hasura-graphql.repository.d.ts +10 -0
- package/infra/hasura-graphql/repositories/catalog/category-filter-hasura-graphql.repository.d.ts +12 -0
- package/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +12 -5
- package/infra/hasura-graphql/repositories/catalog/filter-hasura-graphql.repository.d.ts +18 -0
- package/infra/hasura-graphql/repositories/catalog/filter-option-hasura-graphql.repository.d.ts +10 -0
- package/infra/hasura-graphql/repositories/catalog/index.d.ts +5 -0
- package/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +6 -4
- package/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts +4 -4
- package/infra/hasura-graphql/repositories/catalog/wishlist-hasura-graphql.repository.d.ts +27 -0
- package/infra/hasura-graphql/types/graphql.repository.type.d.ts +9 -6
- package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +7 -3
- package/package.json +2 -1
- package/utils/decorators/debug.class.decorator.d.ts +2 -0
- package/utils/decorators/index.d.ts +2 -0
- package/utils/decorators/trace.method.decorator.d.ts +14 -0
- package/utils/helpers/class-name.helper.d.ts +3 -0
- package/utils/helpers/debug-decorator.helper.d.ts +9 -0
- package/utils/helpers/debug.helper.d.ts +60 -0
- package/utils/helpers/index.d.ts +4 -0
- package/utils/helpers/reflect.helper.d.ts +50 -0
- package/utils/index.d.ts +5 -22
- package/utils/log.utils.d.ts +7 -0
- package/domain/catalog/models/types/category-filter.type.d.ts +0 -4
- package/esm2020/domain/catalog/models/types/category-filter.type.mjs +0 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel, GenericIdentifier } from '../../generic/model';
|
|
2
|
+
import { ShopBanner, ShopBrands, ShopCarousel, ShopCollection } from './types';
|
|
3
|
+
export declare class ShopSettings extends BaseModel<ShopSettings> {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
shop: string;
|
|
7
|
+
sections: (ShopBanner | ShopCarousel | ShopCollection | ShopBrands)[];
|
|
8
|
+
static get identifiersFields(): GenericIdentifier[];
|
|
9
|
+
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export * from './banner.type';
|
|
2
2
|
export * from './benefit.type';
|
|
3
|
+
export * from './home-data.type';
|
|
3
4
|
export * from './menu-nav.type';
|
|
5
|
+
export * from './shop-banner.type';
|
|
6
|
+
export * from './shop-brands.type';
|
|
7
|
+
export * from './shop-carousel.type';
|
|
8
|
+
export * from './shop-collection.type';
|
|
9
|
+
export * from './shop-section.type';
|
|
4
10
|
export * from './sub-menu.type';
|
|
5
|
-
export * from './home-data.type';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ShopSection } from './shop-section.type';
|
|
2
|
+
export interface ShopBanner extends ShopSection {
|
|
3
|
+
autoDelete: boolean;
|
|
4
|
+
deleteDate: Date;
|
|
5
|
+
autoPublish: boolean;
|
|
6
|
+
publishDate: Date;
|
|
7
|
+
link: string;
|
|
8
|
+
mobileImage: string;
|
|
9
|
+
desktopImage: string;
|
|
10
|
+
altText: string;
|
|
11
|
+
published: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ShopSection } from './shop-section.type';
|
|
2
|
+
export interface ShopCollection extends ShopSection {
|
|
3
|
+
categoryId: string;
|
|
4
|
+
beautyProfileFilter: boolean;
|
|
5
|
+
collectionImage: string;
|
|
6
|
+
collectionImageAlt: string;
|
|
7
|
+
collectionColor: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Category, Shops } from '../../catalog/models';
|
|
1
2
|
import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
|
|
2
|
-
import { Shops, Category } from '../../catalog/models';
|
|
3
3
|
export declare class Buy2Win extends BaseModel<Buy2Win> {
|
|
4
4
|
active: boolean;
|
|
5
5
|
cartValue: number;
|
|
@@ -9,6 +9,8 @@ export declare class Buy2Win extends BaseModel<Buy2Win> {
|
|
|
9
9
|
name: string;
|
|
10
10
|
products?: string[];
|
|
11
11
|
shop: Shops;
|
|
12
|
+
activeCategory?: boolean;
|
|
13
|
+
cartValueMin?: number;
|
|
12
14
|
startDate: Date;
|
|
13
15
|
updatedAt?: Date;
|
|
14
16
|
categories: Category[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseModel, GenericIdentifier } from "../../generic";
|
|
2
|
+
export declare class CampaignDashboard extends BaseModel<CampaignDashboard> {
|
|
3
|
+
id: string;
|
|
4
|
+
status: string;
|
|
5
|
+
updatedAt?: string;
|
|
6
|
+
environment: string;
|
|
7
|
+
bannerAlt: string;
|
|
8
|
+
imgMob: string;
|
|
9
|
+
imgDesk: string;
|
|
10
|
+
urlBanner?: string;
|
|
11
|
+
positionBanner?: number;
|
|
12
|
+
startDate?: Date;
|
|
13
|
+
endDate?: Date;
|
|
14
|
+
static get identifiersFields(): GenericIdentifier[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel, GenericIdentifier } from "../../generic";
|
|
2
|
+
export declare class CampaignHashtag extends BaseModel<CampaignHashtag> {
|
|
3
|
+
id: string;
|
|
4
|
+
status?: string;
|
|
5
|
+
updatedAt?: string;
|
|
6
|
+
environment: string;
|
|
7
|
+
campaignName?: string;
|
|
8
|
+
campaignImage?: string;
|
|
9
|
+
campaignMinGlampoints?: number;
|
|
10
|
+
campaignMaxGlampoints?: number;
|
|
11
|
+
campaignReferCode?: string;
|
|
12
|
+
campaignDescription?: string;
|
|
13
|
+
startDate?: Date;
|
|
14
|
+
endDate?: Date;
|
|
15
|
+
campaignSubscribed: boolean;
|
|
16
|
+
rules?: string[];
|
|
17
|
+
static get identifiersFields(): GenericIdentifier[];
|
|
18
|
+
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Shops } from '../../catalog/models/enums/shops.enum';
|
|
2
2
|
import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
|
|
3
|
-
import { User } from '../../users
|
|
3
|
+
import { User, UserAddress } from '../../users';
|
|
4
4
|
import { Coupon } from './coupons/coupon';
|
|
5
5
|
import { LineItem } from './line-item';
|
|
6
6
|
import { ShippingMethod } from './shipping-method';
|
|
7
|
-
import { Shops } from '../../catalog/models/enums/shops.enum';
|
|
8
7
|
export declare class Checkout extends BaseModel<Checkout> {
|
|
9
8
|
id?: string;
|
|
10
9
|
paymentId?: string;
|
|
11
|
-
status?:
|
|
10
|
+
status?: any;
|
|
12
11
|
createdAt?: Date;
|
|
13
12
|
updatedAt?: Date;
|
|
14
13
|
completedAt?: Date;
|
|
@@ -19,8 +18,8 @@ export declare class Checkout extends BaseModel<Checkout> {
|
|
|
19
18
|
glampoints?: number;
|
|
20
19
|
lineItems?: LineItem[];
|
|
21
20
|
user?: User;
|
|
22
|
-
shippingAddress?:
|
|
23
|
-
billingAddress?:
|
|
21
|
+
shippingAddress?: UserAddress;
|
|
22
|
+
billingAddress?: UserAddress;
|
|
24
23
|
shipping?: ShippingMethod;
|
|
25
24
|
coupon?: Coupon;
|
|
26
25
|
static get identifiersFields(): GenericIdentifier[];
|
|
@@ -5,16 +5,44 @@ import { CouponTypes, Exclusivities } from './enums';
|
|
|
5
5
|
import { ClubeDaMensPlan } from './enums/coupon-club-mens.enum';
|
|
6
6
|
export declare class Coupon extends BaseModel<Coupon> {
|
|
7
7
|
id: string;
|
|
8
|
-
|
|
9
|
-
discount
|
|
8
|
+
category?: string;
|
|
9
|
+
discount: {
|
|
10
|
+
subscriber: {
|
|
11
|
+
type: CouponTypes;
|
|
12
|
+
value: number;
|
|
13
|
+
};
|
|
14
|
+
non_subscriber: {
|
|
15
|
+
type: CouponTypes;
|
|
16
|
+
value: number;
|
|
17
|
+
};
|
|
18
|
+
subscription?: {
|
|
19
|
+
type: CouponTypes;
|
|
20
|
+
value: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
useLimits: {
|
|
24
|
+
subscriber: {
|
|
25
|
+
unlimited?: boolean;
|
|
26
|
+
total?: number;
|
|
27
|
+
limitedPerUser?: boolean;
|
|
28
|
+
};
|
|
29
|
+
non_subscriber: {
|
|
30
|
+
unlimited?: boolean;
|
|
31
|
+
total?: number;
|
|
32
|
+
limitedPerUser?: boolean;
|
|
33
|
+
};
|
|
34
|
+
subscription?: {
|
|
35
|
+
unlimited?: boolean;
|
|
36
|
+
total?: number;
|
|
37
|
+
limitedPerUser?: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
10
40
|
user?: string;
|
|
11
|
-
userExclusiveEmail?: string;
|
|
41
|
+
userExclusiveEmail?: string[];
|
|
12
42
|
campaign?: string;
|
|
13
43
|
nickname: string;
|
|
14
44
|
beginAt: Date;
|
|
15
45
|
expiresIn?: Date;
|
|
16
|
-
useLimit?: number;
|
|
17
|
-
useLimitPerUser?: boolean;
|
|
18
46
|
shopAvailability: Shops;
|
|
19
47
|
personId?: number;
|
|
20
48
|
influencerEmail?: string;
|
|
@@ -25,7 +53,7 @@ export declare class Coupon extends BaseModel<Coupon> {
|
|
|
25
53
|
createdAt: Date;
|
|
26
54
|
updatedAt?: Date;
|
|
27
55
|
checkoutType: CheckoutTypes;
|
|
28
|
-
exclusivityType?: Exclusivities;
|
|
56
|
+
exclusivityType?: [Exclusivities];
|
|
29
57
|
get isInfluencer(): boolean;
|
|
30
58
|
static get identifiersFields(): GenericIdentifier[];
|
|
31
59
|
static createCoupon(userId: string): Coupon;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
export * from './buy-2-win';
|
|
2
|
+
export * from './campaign-dashboard';
|
|
3
|
+
export * from './campaign-hashtag';
|
|
4
|
+
export * from './checkout';
|
|
1
5
|
export * from './coupons';
|
|
2
6
|
export * from './enums';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './checkout';
|
|
5
7
|
export * from './line-item';
|
|
6
8
|
export * from './order';
|
|
7
9
|
export * from './payment';
|
|
8
10
|
export * from './shipping-method';
|
|
9
11
|
export * from './subscription';
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './buy-2-win';
|
|
12
|
+
export * from './types';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Address } from '../../../location/models/address';
|
|
2
1
|
import { BaseModel, GenericIdentifier } from '../../../generic/model/base.model';
|
|
2
|
+
import { User, UserAddress } from '../../../users';
|
|
3
3
|
import { Coupon } from '../coupons/coupon';
|
|
4
|
-
import { User } from '../../../users/models/user';
|
|
5
4
|
import { SubscriptionPlan } from './plan';
|
|
6
5
|
export declare class CheckoutSubscription extends BaseModel<CheckoutSubscription> {
|
|
7
6
|
id?: string;
|
|
@@ -13,8 +12,8 @@ export declare class CheckoutSubscription extends BaseModel<CheckoutSubscription
|
|
|
13
12
|
discount?: number;
|
|
14
13
|
subTotalPrice?: number;
|
|
15
14
|
totalPrice?: number;
|
|
16
|
-
shippingAddress:
|
|
17
|
-
billingAddress?:
|
|
15
|
+
shippingAddress: UserAddress;
|
|
16
|
+
billingAddress?: UserAddress;
|
|
18
17
|
subscriptionPlan: SubscriptionPlan;
|
|
19
18
|
coupon?: Coupon;
|
|
20
19
|
static get identifiersFields(): GenericIdentifier[];
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
export * from './buy-2-win.repository';
|
|
2
|
+
export * from './campaign-dashboard.repository';
|
|
3
|
+
export * from './campaign-hashtag.repository';
|
|
1
4
|
export * from './checkout.repository';
|
|
2
5
|
export * from './coupon.repository';
|
|
6
|
+
export * from './legacy-order.repository';
|
|
3
7
|
export * from './order.repository';
|
|
4
8
|
export * from './payment.repository';
|
|
5
9
|
export * from './subscription';
|
|
6
|
-
export * from './buy-2-win.repository';
|
|
7
|
-
export * from './legacy-order.repository';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Address } from '../../../location/models/address';
|
|
2
1
|
import { BaseModel, GenericIdentifier } from '../../../generic/model/base.model';
|
|
3
2
|
import { Coupon } from '../../../shopping/models/coupons/coupon';
|
|
4
3
|
import { SubscriptionPlan } from '../../../shopping/models/subscription/plan';
|
|
5
4
|
import { User } from '../user';
|
|
5
|
+
import { UserAddress } from '../user-address';
|
|
6
6
|
import { Edition } from './edition';
|
|
7
7
|
import { Status } from './enums/status.enum';
|
|
8
8
|
import { SubscriptionPayment } from './payment';
|
|
@@ -19,8 +19,8 @@ export declare class Subscription extends BaseModel<Subscription> {
|
|
|
19
19
|
updatedAt: Date;
|
|
20
20
|
user: User;
|
|
21
21
|
subscriptionPlan: SubscriptionPlan;
|
|
22
|
-
shippingAddress:
|
|
23
|
-
billingAddress?:
|
|
22
|
+
shippingAddress: UserAddress;
|
|
23
|
+
billingAddress?: UserAddress;
|
|
24
24
|
coupon?: Coupon;
|
|
25
25
|
editions: Edition[];
|
|
26
26
|
payment?: SubscriptionPayment[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Address } from '../../location/models/address';
|
|
2
2
|
export declare type UserAddressIdentifiers = 'id' | 'userId';
|
|
3
|
-
export declare class UserAddress extends Address<UserAddressIdentifiers> {
|
|
4
|
-
id: string;
|
|
3
|
+
export declare class UserAddress extends Address<UserAddress, UserAddressIdentifiers> {
|
|
5
4
|
userId: string;
|
|
6
5
|
static get identifiersFields(): UserAddressIdentifiers[];
|
|
7
6
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { BaseModel, GenericIdentifier } from '../../generic
|
|
2
|
-
import { ModelBaseStructure, NonFunctionProperties } from '../../generic/model/types';
|
|
1
|
+
import { BaseModel, GenericIdentifier, NonFunctionAndIdentifierProperties } from '../../generic';
|
|
3
2
|
import { BeautyProfile } from './beauty-profile';
|
|
4
3
|
import { Area, OfficePosition, UserType } from './enums';
|
|
5
4
|
export declare class User extends BaseModel<User> {
|
|
@@ -22,7 +21,7 @@ export declare class User extends BaseModel<User> {
|
|
|
22
21
|
dateCreated?: Date;
|
|
23
22
|
dateModified?: Date;
|
|
24
23
|
beautyProfile?: BeautyProfile;
|
|
25
|
-
static toInstance<T
|
|
24
|
+
static toInstance<T>(this: new () => T, data?: Partial<NonFunctionAndIdentifierProperties<User>>): T;
|
|
26
25
|
toPlain(): Record<string, any>;
|
|
27
26
|
static get identifiersFields(): GenericIdentifier[];
|
|
28
27
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './round-product-price.helper';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9oZWxwZXJzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsOEJBQThCLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3JvdW5kLXByb2R1Y3QtcHJpY2UuaGVscGVyJ1xuIl19
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LineItem } from '../../shopping';
|
|
2
|
+
export class RoundProductPricesHelper {
|
|
3
|
+
static roundProductPrices(product) {
|
|
4
|
+
product.price.price = Number(product.price.price.toFixed(2));
|
|
5
|
+
product.price.fullPrice = Number(product.price.fullPrice.toFixed(2));
|
|
6
|
+
if (product.price.subscriberPrice) {
|
|
7
|
+
product.price.subscriberPrice = Number(product.price.subscriberPrice.toFixed(2));
|
|
8
|
+
}
|
|
9
|
+
if (product instanceof LineItem && product.pricePaid) {
|
|
10
|
+
product.pricePaid = Number(product.pricePaid.toFixed(2));
|
|
11
|
+
}
|
|
12
|
+
return product;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91bmQtcHJvZ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E9BQU8sT0FBTyxDQUFBO0lBQ2hCLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IExpbmVJdGVtIH0gZnJvbSAnLi4vLi4vc2hvcHBpbmcnXG5pbXBvcnQgeyBQcm9kdWN0IH0gZnJvbSAnLi4vbW9kZWxzJ1xuXG5leHBvcnQgY2xhc3MgUm91bmRQcm9kdWN0UHJpY2VzSGVscGVyIHtcbiAgcHVibGljIHN0YXRpYyByb3VuZFByb2R1Y3RQcmljZXMocHJvZHVjdDogUHJvZHVjdCk6IFByb2R1Y3Qge1xuICAgIHByb2R1Y3QucHJpY2UucHJpY2UgPSBOdW1iZXIocHJvZHVjdC5wcmljZS5wcmljZS50b0ZpeGVkKDIpKVxuICAgIHByb2R1Y3QucHJpY2UuZnVsbFByaWNlID0gTnVtYmVyKHByb2R1Y3QucHJpY2UuZnVsbFByaWNlLnRvRml4ZWQoMikpXG4gICAgaWYgKHByb2R1Y3QucHJpY2Uuc3Vic2NyaWJlclByaWNlKSB7XG4gICAgICBwcm9kdWN0LnByaWNlLnN1YnNjcmliZXJQcmljZSA9IE51bWJlcihwcm9kdWN0LnByaWNlLnN1YnNjcmliZXJQcmljZS50b0ZpeGVkKDIpKVxuICAgIH1cbiAgICBpZiAocHJvZHVjdCBpbnN0YW5jZW9mIExpbmVJdGVtICYmIHByb2R1Y3QucHJpY2VQYWlkKSB7XG4gICAgICBwcm9kdWN0LnByaWNlUGFpZCA9IE51bWJlcihwcm9kdWN0LnByaWNlUGFpZC50b0ZpeGVkKDIpKVxuICAgIH1cblxuICAgIHJldHVybiBwcm9kdWN0XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './helpers';
|
|
1
2
|
export * from './models';
|
|
2
3
|
export * from './repositories';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFdBQVcsQ0FBQTtBQUN6QixjQUFjLFVBQVUsQ0FBQTtBQUN4QixjQUFjLGdCQUFnQixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9oZWxwZXJzJ1xuZXhwb3J0ICogZnJvbSAnLi9tb2RlbHMnXG5leHBvcnQgKiBmcm9tICcuL3JlcG9zaXRvcmllcydcbiJdfQ==
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { BaseModel } from '../../generic/model';
|
|
4
|
+
import { Filter } from './filter';
|
|
5
|
+
export class CategoryBase extends BaseModel {
|
|
6
|
+
static get identifiersFields() {
|
|
7
|
+
return ['id'];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
__decorate([
|
|
11
|
+
Type(() => CategoryBase),
|
|
12
|
+
__metadata("design:type", CategoryBase)
|
|
13
|
+
], CategoryBase.prototype, "parent", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
Type(() => Filter),
|
|
16
|
+
__metadata("design:type", Array)
|
|
17
|
+
], CategoryBase.prototype, "filters", void 0);
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9jYXRhbG9nL21vZGVscy9jYXRlZ29yeS1iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ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metadata } from "tslib";
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { BaseModel } from '../../generic/model';
|
|
4
|
+
export class CategoryCollectionChildren extends BaseModel {
|
|
5
|
+
static get identifiersFields() {
|
|
6
|
+
return ['collectionId', 'categoryId'];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
__decorate([
|
|
10
|
+
Type(() => CategoryCollectionChildren),
|
|
11
|
+
__metadata("design:type", CategoryCollectionChildren)
|
|
12
|
+
], CategoryCollectionChildren.prototype, "parent", void 0);
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktY29sbGVjdGlvbi1jaGlsZHJlbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9jYXRhbG9nL21vZGVscy9jYXRlZ29yeS1jb2xsZWN0aW9uLWNoaWxkcmVuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFDeEMsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLHFCQUFxQixDQUFBO0FBSS9DLE1BQU0sT0FBTywwQkFBMkIsU0FBUSxTQUcvQztJQVlDLE1BQU0sS0FBSyxpQkFBaUI7UUFDMUIsT0FBTyxDQUFDLGNBQWMsRUFBRSxZQUFZLENBQUMsQ0FBQTtJQUN2QyxDQUFDO0NBQ0Y7QUFOQztJQUFDLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQywwQkFBMEIsQ0FBQzs4QkFDOUIsMEJBQTBCOzBEQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVHlwZSB9IGZyb20gJ2NsYXNzLXRyYW5zZm9ybWVyJ1xuaW1wb3J0IHsgQmFzZU1vZGVsIH0gZnJvbSAnLi4vLi4vZ2VuZXJpYy9tb2RlbCdcblxuZXhwb3J0IHR5cGUgQ2F0ZWdvcnlDb2xsZWN0aW9uQ2hpbGRyZW5JZGVudGlmaWVycyA9ICdjb2xsZWN0aW9uSWQnIHwgJ2NhdGVnb3J5SWQnXG5cbmV4cG9ydCBjbGFzcyBDYXRlZ29yeUNvbGxlY3Rpb25DaGlsZHJlbiBleHRlbmRzIEJhc2VNb2RlbDxcbiAgQ2F0ZWdvcnlDb2xsZWN0aW9uQ2hpbGRyZW4sXG4gIENhdGVnb3J5Q29sbGVjdGlvbkNoaWxkcmVuSWRlbnRpZmllcnNcbj4ge1xuICBjb2xsZWN0aW9uSWQ6IG51bWJlclxuICBjYXRlZ29yeUlkOiBudW1iZXJcbiAgcGFyZW50Q29sbGVjdGlvbklkPzogbnVtYmVyXG4gIHBhcmVudENhdGVnb3J5SWQ/OiBudW1iZXJcbiAgbmFtZTogc3RyaW5nXG4gIHNsdWc6IHN0cmluZ1xuICByZWZlcmVuY2U/OiBzdHJpbmdcblxuICBAVHlwZSgoKSA9PiBDYXRlZ29yeUNvbGxlY3Rpb25DaGlsZHJlbilcbiAgcGFyZW50PzogQ2F0ZWdvcnlDb2xsZWN0aW9uQ2hpbGRyZW5cblxuICBzdGF0aWMgZ2V0IGlkZW50aWZpZXJzRmllbGRzKCk6IENhdGVnb3J5Q29sbGVjdGlvbkNoaWxkcmVuSWRlbnRpZmllcnNbXSB7XG4gICAgcmV0dXJuIFsnY29sbGVjdGlvbklkJywgJ2NhdGVnb3J5SWQnXVxuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { BaseModel } from '../../generic/model';
|
|
4
|
+
import { Category } from './category';
|
|
5
|
+
import { Filter } from './filter';
|
|
6
|
+
export class CategoryFilter extends BaseModel {
|
|
7
|
+
static get identifiersFields() {
|
|
8
|
+
return ['id'];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
__decorate([
|
|
12
|
+
Type(() => Filter),
|
|
13
|
+
__metadata("design:type", Filter)
|
|
14
|
+
], CategoryFilter.prototype, "filter", void 0);
|
|
15
|
+
__decorate([
|
|
16
|
+
Type(() => Category),
|
|
17
|
+
__metadata("design:type", Category)
|
|
18
|
+
], CategoryFilter.prototype, "category", void 0);
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktZmlsdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvZG9tYWluL2NhdGFsb2cvbW9kZWxzL2NhdGVnb3J5LWZpbHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFBO0FBQ3hDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQTtBQUMvQyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sWUFBWSxDQUFBO0FBQ3JDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFJakMsTUFBTSxPQUFPLGNBQWUsU0FBUSxTQUFvRDtJQVd0RixNQUFNLEtBQUssaUJBQWlCO1FBQzFCLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUNmLENBQUM7Q0FDRjtBQVRDO0lBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLE1BQU0sQ0FBQzs4QkFDVixNQUFNOzhDQUFBO0FBRWY7SUFBQyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUMsUUFBUSxDQUFDOzhCQUNWLFFBQVE7Z0RBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBUeXBlIH0gZnJvbSAnY2xhc3MtdHJhbnNmb3JtZXInXG5pbXBvcnQgeyBCYXNlTW9kZWwgfSBmcm9tICcuLi8uLi9nZW5lcmljL21vZGVsJ1xuaW1wb3J0IHsgQ2F0ZWdvcnkgfSBmcm9tICcuL2NhdGVnb3J5J1xuaW1wb3J0IHsgRmlsdGVyIH0gZnJvbSAnLi9maWx0ZXInXG5cbnR5cGUgQ2F0ZWdvcnlGaWx0ZXJJZGVudGlmaWVycyA9ICdpZCcgfCAnZmlsdGVySWQnIHwgJ2NhdGVnb3J5SWQnXG5cbmV4cG9ydCBjbGFzcyBDYXRlZ29yeUZpbHRlciBleHRlbmRzIEJhc2VNb2RlbDxDYXRlZ29yeUZpbHRlciwgQ2F0ZWdvcnlGaWx0ZXJJZGVudGlmaWVycz4ge1xuICBpZDogbnVtYmVyXG4gIGZpbHRlcklkOiBudW1iZXJcbiAgY2F0ZWdvcnlJZDogbnVtYmVyXG5cbiAgQFR5cGUoKCkgPT4gRmlsdGVyKVxuICBmaWx0ZXI/OiBGaWx0ZXJcblxuICBAVHlwZSgoKSA9PiBDYXRlZ29yeSlcbiAgY2F0ZWdvcnk/OiBDYXRlZ29yeVxuXG4gIHN0YXRpYyBnZXQgaWRlbnRpZmllcnNGaWVsZHMoKTogQ2F0ZWdvcnlGaWx0ZXJJZGVudGlmaWVyc1tdIHtcbiAgICByZXR1cm4gWydpZCddXG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CategoryBase } from './category-base';
|
|
2
|
+
export class CategoryForProduct extends CategoryBase {
|
|
3
|
+
static get identifiersFields() {
|
|
4
|
+
return ['id'];
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktZm9yLXByb2R1Y3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9tb2RlbHMvY2F0ZWdvcnktZm9yLXByb2R1Y3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFBO0FBRTlDLE1BQU0sT0FBTyxrQkFBbUIsU0FBUSxZQUFtRDtJQUN6RixNQUFNLEtBQWMsaUJBQWlCO1FBQ25DLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUNmLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEdlbmVyaWNJZGVudGlmaWVyIH0gZnJvbSAnLi4vLi4vZ2VuZXJpYy9tb2RlbCdcbmltcG9ydCB7IENhdGVnb3J5QmFzZSB9IGZyb20gJy4vY2F0ZWdvcnktYmFzZSdcblxuZXhwb3J0IGNsYXNzIENhdGVnb3J5Rm9yUHJvZHVjdCBleHRlbmRzIENhdGVnb3J5QmFzZTxDYXRlZ29yeUZvclByb2R1Y3QsIEdlbmVyaWNJZGVudGlmaWVyPiB7XG4gIHN0YXRpYyBvdmVycmlkZSBnZXQgaWRlbnRpZmllcnNGaWVsZHMoKTogR2VuZXJpY0lkZW50aWZpZXJbXSB7XG4gICAgcmV0dXJuIFsnaWQnXVxuICB9XG59XG4iXX0=
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { CategoryBase } from './category-base';
|
|
4
|
+
import { ProductForCategory } from './product-for-category';
|
|
5
|
+
export class Category extends CategoryBase {
|
|
6
6
|
static get identifiersFields() {
|
|
7
7
|
return ['id'];
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
__decorate([
|
|
11
|
+
Type(() => ProductForCategory),
|
|
12
|
+
__metadata("design:type", Array)
|
|
13
|
+
], Category.prototype, "childrenProducts", void 0);
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9tb2RlbHMvY2F0ZWdvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTtBQUV4QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUE7QUFDOUMsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0JBQXdCLENBQUE7QUFFM0QsTUFBTSxPQUFPLFFBQVMsU0FBUSxZQUF5QztJQUlyRSxNQUFNLEtBQWMsaUJBQWlCO1FBQ25DLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUNmLENBQUM7Q0FDRjtBQU5DO0lBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLGtCQUFrQixDQUFDOztrREFDUSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFR5cGUgfSBmcm9tICdjbGFzcy10cmFuc2Zvcm1lcidcbmltcG9ydCB7IEdlbmVyaWNJZGVudGlmaWVyIH0gZnJvbSAnLi4vLi4vZ2VuZXJpYy9tb2RlbCdcbmltcG9ydCB7IENhdGVnb3J5QmFzZSB9IGZyb20gJy4vY2F0ZWdvcnktYmFzZSdcbmltcG9ydCB7IFByb2R1Y3RGb3JDYXRlZ29yeSB9IGZyb20gJy4vcHJvZHVjdC1mb3ItY2F0ZWdvcnknXG5cbmV4cG9ydCBjbGFzcyBDYXRlZ29yeSBleHRlbmRzIENhdGVnb3J5QmFzZTxDYXRlZ29yeSwgR2VuZXJpY0lkZW50aWZpZXI+IHtcbiAgQFR5cGUoKCkgPT4gUHJvZHVjdEZvckNhdGVnb3J5KVxuICBjaGlsZHJlblByb2R1Y3RzPzogUHJvZHVjdEZvckNhdGVnb3J5W11cblxuICBzdGF0aWMgb3ZlcnJpZGUgZ2V0IGlkZW50aWZpZXJzRmllbGRzKCk6IEdlbmVyaWNJZGVudGlmaWVyW10ge1xuICAgIHJldHVybiBbJ2lkJ11cbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseModel } from '../../generic/model';
|
|
2
|
+
export class FilterOption extends BaseModel {
|
|
3
|
+
static get identifiersFields() {
|
|
4
|
+
return ['id'];
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLW9wdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9jYXRhbG9nL21vZGVscy9maWx0ZXItb3B0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQXFCLE1BQU0scUJBQXFCLENBQUE7QUFFbEUsTUFBTSxPQUFPLFlBQWEsU0FBUSxTQUF1QjtJQU92RCxNQUFNLEtBQUssaUJBQWlCO1FBQzFCLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUNmLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VNb2RlbCwgR2VuZXJpY0lkZW50aWZpZXIgfSBmcm9tICcuLi8uLi9nZW5lcmljL21vZGVsJ1xuXG5leHBvcnQgY2xhc3MgRmlsdGVyT3B0aW9uIGV4dGVuZHMgQmFzZU1vZGVsPEZpbHRlck9wdGlvbj4ge1xuICBpZDogc3RyaW5nXG4gIGZpbHRlcklkOiBudW1iZXJcbiAgZGVzY3JpcHRpb246IHN0cmluZ1xuICBjcmVhdGVkQXQ/OiBEYXRlXG4gIHVwZGF0ZWRBdD86IERhdGVcblxuICBzdGF0aWMgZ2V0IGlkZW50aWZpZXJzRmllbGRzKCk6IEdlbmVyaWNJZGVudGlmaWVyW10ge1xuICAgIHJldHVybiBbJ2lkJ11cbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseModel } from '../../generic/model';
|
|
2
|
+
export class Filter extends BaseModel {
|
|
3
|
+
static get identifiersFields() {
|
|
4
|
+
return ['id'];
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvZG9tYWluL2NhdGFsb2cvbW9kZWxzL2ZpbHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFxQixNQUFNLHFCQUFxQixDQUFBO0FBR2xFLE1BQU0sT0FBTyxNQUFPLFNBQVEsU0FBaUI7SUFTM0MsTUFBTSxLQUFLLGlCQUFpQjtRQUMxQixPQUFPLENBQUMsSUFBSSxDQUFDLENBQUE7SUFDZixDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlTW9kZWwsIEdlbmVyaWNJZGVudGlmaWVyIH0gZnJvbSAnLi4vLi4vZ2VuZXJpYy9tb2RlbCdcbmltcG9ydCB7IEZpbHRlck9wdGlvbiB9IGZyb20gJy4vZmlsdGVyLW9wdGlvbidcblxuZXhwb3J0IGNsYXNzIEZpbHRlciBleHRlbmRzIEJhc2VNb2RlbDxGaWx0ZXI+IHtcbiAgaWQ6IG51bWJlclxuICBkZXNjcmlwdGlvbjogc3RyaW5nXG4gIHNsdWc6IHN0cmluZ1xuICBlbmFibGVkOiBib29sZWFuXG4gIG9wdGlvbnM/OiBGaWx0ZXJPcHRpb25bXVxuICBjcmVhdGVkQXQ/OiBEYXRlXG4gIHVwZGF0ZWRBdD86IERhdGVcblxuICBzdGF0aWMgZ2V0IGlkZW50aWZpZXJzRmllbGRzKCk6IEdlbmVyaWNJZGVudGlmaWVyW10ge1xuICAgIHJldHVybiBbJ2lkJ11cbiAgfVxufVxuIl19
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export * from './category';
|
|
2
|
+
export * from './category-collection-children';
|
|
3
|
+
export * from './category-filter';
|
|
2
4
|
export * from './enums';
|
|
5
|
+
export * from './filter';
|
|
6
|
+
export * from './filter-option';
|
|
3
7
|
export * from './kit-product';
|
|
4
8
|
export * from './product';
|
|
5
9
|
export * from './types';
|
|
6
10
|
export * from './variant';
|
|
7
|
-
|
|
11
|
+
export * from './wishlist';
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9tb2RlbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxZQUFZLENBQUE7QUFDMUIsY0FBYyxnQ0FBZ0MsQ0FBQTtBQUM5QyxjQUFjLG1CQUFtQixDQUFBO0FBQ2pDLGNBQWMsU0FBUyxDQUFBO0FBQ3ZCLGNBQWMsVUFBVSxDQUFBO0FBQ3hCLGNBQWMsaUJBQWlCLENBQUE7QUFDL0IsY0FBYyxlQUFlLENBQUE7QUFDN0IsY0FBYyxXQUFXLENBQUE7QUFDekIsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxXQUFXLENBQUE7QUFDekIsY0FBYyxZQUFZLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NhdGVnb3J5J1xuZXhwb3J0ICogZnJvbSAnLi9jYXRlZ29yeS1jb2xsZWN0aW9uLWNoaWxkcmVuJ1xuZXhwb3J0ICogZnJvbSAnLi9jYXRlZ29yeS1maWx0ZXInXG5leHBvcnQgKiBmcm9tICcuL2VudW1zJ1xuZXhwb3J0ICogZnJvbSAnLi9maWx0ZXInXG5leHBvcnQgKiBmcm9tICcuL2ZpbHRlci1vcHRpb24nXG5leHBvcnQgKiBmcm9tICcuL2tpdC1wcm9kdWN0J1xuZXhwb3J0ICogZnJvbSAnLi9wcm9kdWN0J1xuZXhwb3J0ICogZnJvbSAnLi90eXBlcydcbmV4cG9ydCAqIGZyb20gJy4vdmFyaWFudCdcbmV4cG9ydCAqIGZyb20gJy4vd2lzaGxpc3QnXG4iXX0=
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
2
|
import { Type } from 'class-transformer';
|
|
3
3
|
import { BaseModel } from '../../generic/model';
|
|
4
|
-
import {
|
|
4
|
+
import { ProductForKit } from './product-for-kit';
|
|
5
5
|
export class KitProduct extends BaseModel {
|
|
6
6
|
static get identifiersFields() {
|
|
7
|
-
return ['productId', '
|
|
7
|
+
return ['productId', 'kitProductId'];
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
__decorate([
|
|
11
|
-
Type(() =>
|
|
12
|
-
__metadata("design:type",
|
|
11
|
+
Type(() => ProductForKit),
|
|
12
|
+
__metadata("design:type", ProductForKit)
|
|
13
13
|
], KitProduct.prototype, "kit", void 0);
|
|
14
14
|
__decorate([
|
|
15
|
-
Type(() =>
|
|
16
|
-
__metadata("design:type",
|
|
15
|
+
Type(() => ProductForKit),
|
|
16
|
+
__metadata("design:type", ProductForKit)
|
|
17
17
|
], KitProduct.prototype, "product", void 0);
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2l0LXByb2R1Y3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9tb2RlbHMva2l0LXByb2R1Y3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTtBQUN4QyxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0scUJBQXFCLENBQUE7QUFDL0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLG1CQUFtQixDQUFBO0FBSWpELE1BQU0sT0FBTyxVQUFXLFNBQVEsU0FBNEM7SUFXMUUsTUFBTSxLQUFLLGlCQUFpQjtRQUMxQixPQUFPLENBQUMsV0FBVyxFQUFFLGNBQWMsQ0FBQyxDQUFBO0lBQ3RDLENBQUM7Q0FDRjtBQVRDO0lBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLGFBQWEsQ0FBQzs4QkFDckIsYUFBYTt1Q0FBQTtBQUVsQjtJQUFDLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQyxhQUFhLENBQUM7OEJBQ2pCLGFBQWE7MkNBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBUeXBlIH0gZnJvbSAnY2xhc3MtdHJhbnNmb3JtZXInXG5pbXBvcnQgeyBCYXNlTW9kZWwgfSBmcm9tICcuLi8uLi9nZW5lcmljL21vZGVsJ1xuaW1wb3J0IHsgUHJvZHVjdEZvcktpdCB9IGZyb20gJy4vcHJvZHVjdC1mb3Ita2l0J1xuXG50eXBlIEtpdFByb2R1Y3RJZGVudGlmaWVycyA9ICdwcm9kdWN0SWQnIHwgJ2tpdFByb2R1Y3RJZCdcblxuZXhwb3J0IGNsYXNzIEtpdFByb2R1Y3QgZXh0ZW5kcyBCYXNlTW9kZWw8S2l0UHJvZHVjdCwgS2l0UHJvZHVjdElkZW50aWZpZXJzPiB7XG4gIHByb2R1Y3RJZDogc3RyaW5nXG4gIGtpdFByb2R1Y3RJZDogc3RyaW5nXG4gIHF1YW50aXR5OiBudW1iZXJcblxuICBAVHlwZSgoKSA9PiBQcm9kdWN0Rm9yS2l0KVxuICBraXQ6IFByb2R1Y3RGb3JLaXRcblxuICBAVHlwZSgoKSA9PiBQcm9kdWN0Rm9yS2l0KVxuICBwcm9kdWN0OiBQcm9kdWN0Rm9yS2l0XG5cbiAgc3RhdGljIGdldCBpZGVudGlmaWVyc0ZpZWxkcygpOiBLaXRQcm9kdWN0SWRlbnRpZmllcnNbXSB7XG4gICAgcmV0dXJuIFsncHJvZHVjdElkJywgJ2tpdFByb2R1Y3RJZCddXG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseModel } from '../../generic/model';
|
|
2
|
+
export class ProductBase extends BaseModel {
|
|
3
|
+
get evaluation() {
|
|
4
|
+
return {
|
|
5
|
+
reviews: this.reviews,
|
|
6
|
+
count: this.reviewsTotal,
|
|
7
|
+
rating: this.rate,
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
set evaluation(evaluation) {
|
|
11
|
+
if (!evaluation) {
|
|
12
|
+
this.reviews = null;
|
|
13
|
+
this.reviewsTotal = null;
|
|
14
|
+
this.rate = null;
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
this.reviews = evaluation.reviews || this.reviews;
|
|
18
|
+
this.reviewsTotal = evaluation.count || this.reviewsTotal;
|
|
19
|
+
this.rate = evaluation.rating || this.rate;
|
|
20
|
+
}
|
|
21
|
+
static get identifiersFields() {
|
|
22
|
+
return ['id'];
|
|
23
|
+
}
|
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LnJldmlld3NcbiAgICB0aGlzLnJldmlld3NUb3RhbCA9IGV2YWx1YXRpb24uY291bnQgfHwgdGhpcy5yZXZpZXdzVG90YWxcbiAgICB0aGlzLnJhdGUgPSBldmFsdWF0aW9uLnJhdGluZyB8fCB0aGlzLnJhdGVcbiAgfVxuXG4gIHN0YXRpYyBnZXQgaWRlbnRpZmllcnNGaWVsZHMoKTogR2VuZXJpY0lkZW50aWZpZXJbXSB7XG4gICAgcmV0dXJuIFsnaWQnXVxuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { KitProduct } from './kit-product';
|
|
4
|
+
import { ProductBase } from './product-base';
|
|
5
|
+
export class ProductForCategory extends ProductBase {
|
|
6
|
+
static get identifiersFields() {
|
|
7
|
+
return ['id'];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
__decorate([
|
|
11
|
+
Type(() => KitProduct),
|
|
12
|
+
__metadata("design:type", Array)
|
|
13
|
+
], ProductForCategory.prototype, "kitProducts", void 0);
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC1mb3ItY2F0ZWdvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9tb2RlbHMvcHJvZHVjdC1mb3ItY2F0ZWdvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTtBQUV4QyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFBO0FBQzFDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQTtBQ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