@infrab4a/connect 4.14.0-beta.6 → 4.14.0-beta.7
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/index.cjs.js +5535 -5535
- package/index.d.ts +1 -1
- package/index.esm.js +5535 -5535
- package/package.json +1 -1
- package/src/domain/catalog/helpers/index.d.ts +1 -1
- package/src/domain/catalog/helpers/round-product-price.helper.d.ts +4 -4
- package/src/domain/catalog/index.d.ts +3 -3
- package/src/domain/catalog/models/category-base.d.ts +49 -49
- package/src/domain/catalog/models/category-collection-children.d.ts +13 -13
- package/src/domain/catalog/models/category-filter.d.ts +13 -13
- package/src/domain/catalog/models/category-for-product.d.ts +5 -5
- package/src/domain/catalog/models/category.d.ts +7 -7
- package/src/domain/catalog/models/enums/index.d.ts +2 -2
- package/src/domain/catalog/models/enums/product-genders.enum.d.ts +5 -5
- package/src/domain/catalog/models/enums/shops.enum.d.ts +6 -6
- package/src/domain/catalog/models/filter-option.d.ts +9 -9
- package/src/domain/catalog/models/filter.d.ts +15 -15
- package/src/domain/catalog/models/index.d.ts +13 -13
- package/src/domain/catalog/models/kit-product.d.ts +12 -12
- package/src/domain/catalog/models/product-base.d.ts +42 -42
- package/src/domain/catalog/models/product-for-category.d.ts +7 -7
- package/src/domain/catalog/models/product-for-kit.d.ts +7 -7
- package/src/domain/catalog/models/product-reviews.d.ts +20 -20
- package/src/domain/catalog/models/product-stock-notification.d.ts +12 -12
- package/src/domain/catalog/models/product.d.ts +9 -9
- package/src/domain/catalog/models/types/category-condition.type.d.ts +4 -4
- package/src/domain/catalog/models/types/category-images.type.d.ts +8 -8
- package/src/domain/catalog/models/types/category-metadata.type.d.ts +6 -6
- package/src/domain/catalog/models/types/category-most-relevant.type.d.ts +4 -4
- package/src/domain/catalog/models/types/category-product.d.ts +4 -4
- package/src/domain/catalog/models/types/index.d.ts +15 -15
- package/src/domain/catalog/models/types/product-evaluation.type.d.ts +6 -6
- package/src/domain/catalog/models/types/product-gender.type.d.ts +1 -1
- package/src/domain/catalog/models/types/product-label.type.d.ts +1 -1
- package/src/domain/catalog/models/types/product-metadata.type.d.ts +4 -4
- package/src/domain/catalog/models/types/product-review.type.d.ts +17 -17
- package/src/domain/catalog/models/types/report-stock-notification.type.d.ts +21 -21
- package/src/domain/catalog/models/types/shop-description.type.d.ts +9 -9
- package/src/domain/catalog/models/types/shop-price.type.d.ts +7 -7
- package/src/domain/catalog/models/types/stock.type.d.ts +3 -3
- package/src/domain/catalog/models/types/variant-grade.type.d.ts +4 -4
- package/src/domain/catalog/models/variant.d.ts +17 -17
- package/src/domain/catalog/models/wishlist.d.ts +11 -11
- package/src/domain/catalog/repositories/category-collection-children.repository.d.ts +4 -4
- package/src/domain/catalog/repositories/category-filter.repository.d.ts +6 -6
- package/src/domain/catalog/repositories/category.repository.d.ts +18 -18
- package/src/domain/catalog/repositories/filter-option.repository.d.ts +4 -4
- package/src/domain/catalog/repositories/filter.repository.d.ts +4 -4
- package/src/domain/catalog/repositories/index.d.ts +11 -11
- package/src/domain/catalog/repositories/product-reviews.repository.d.ts +7 -7
- package/src/domain/catalog/repositories/product-stock-notification.repository.d.ts +13 -13
- package/src/domain/catalog/repositories/product.repository.d.ts +28 -28
- package/src/domain/catalog/repositories/subscription-product.repository.d.ts +4 -4
- package/src/domain/catalog/repositories/variant.repository.d.ts +4 -4
- package/src/domain/catalog/repositories/wishlist.repository.d.ts +9 -9
- package/src/domain/general/index.d.ts +1 -1
- package/src/domain/general/storage/file-uploader.service.d.ts +3 -3
- package/src/domain/general/storage/index.d.ts +1 -1
- package/src/domain/generic/index.d.ts +2 -2
- package/src/domain/generic/model/base.model.d.ts +14 -14
- package/src/domain/generic/model/identifier-fields.d.ts +4 -4
- package/src/domain/generic/model/index.d.ts +3 -3
- package/src/domain/generic/model/types/base-model-builder.type.d.ts +17 -17
- package/src/domain/generic/model/types/identifier-model.type.d.ts +8 -8
- package/src/domain/generic/model/types/index.d.ts +5 -5
- package/src/domain/generic/model/types/model-base-structure.type.d.ts +12 -12
- package/src/domain/generic/model/types/non-function-properties.type.d.ts +12 -12
- package/src/domain/generic/model/types/non-function-property-name.type.d.ts +13 -13
- package/src/domain/generic/repository/create.repository.d.ts +8 -8
- package/src/domain/generic/repository/crud.repository.d.ts +19 -19
- package/src/domain/generic/repository/delete.repository.d.ts +7 -7
- package/src/domain/generic/repository/enums/index.d.ts +2 -2
- package/src/domain/generic/repository/enums/update-option-actions.enum.d.ts +7 -7
- package/src/domain/generic/repository/enums/where.enum.d.ts +15 -15
- package/src/domain/generic/repository/find.repository.d.ts +17 -17
- package/src/domain/generic/repository/get.repository.d.ts +5 -5
- package/src/domain/generic/repository/index.d.ts +9 -9
- package/src/domain/generic/repository/read.repository.d.ts +14 -14
- package/src/domain/generic/repository/types/index.d.ts +6 -6
- package/src/domain/generic/repository/types/repository-find-filters.type.d.ts +15 -15
- package/src/domain/generic/repository/types/repository-find-result.type.d.ts +14 -14
- package/src/domain/generic/repository/types/repository-limit-options.type.d.ts +4 -4
- package/src/domain/generic/repository/types/repository-order-by-list.type.d.ts +5 -5
- package/src/domain/generic/repository/types/repository-update-params.type.d.ts +11 -11
- package/src/domain/generic/repository/types/where-options.type.d.ts +2 -2
- package/src/domain/generic/repository/update.repository.d.ts +6 -6
- package/src/domain/index.d.ts +7 -7
- package/src/domain/location/index.d.ts +1 -1
- package/src/domain/location/models/address.d.ts +24 -24
- package/src/domain/location/models/index.d.ts +2 -2
- package/src/domain/location/models/types/index.d.ts +3 -3
- package/src/domain/location/models/types/location-bound.type.d.ts +6 -6
- package/src/domain/location/models/types/location-geometry.type.d.ts +7 -7
- package/src/domain/location/models/types/location-lat-lng.type.d.ts +4 -4
- package/src/domain/shop-settings/enums/filter-type.enum.d.ts +19 -19
- package/src/domain/shop-settings/enums/index.d.ts +3 -3
- package/src/domain/shop-settings/enums/questions-filters.enum.d.ts +19 -19
- package/src/domain/shop-settings/enums/shop-page-name.enum.d.ts +19 -19
- package/src/domain/shop-settings/helpers/beauty-questions.helper.d.ts +9 -9
- package/src/domain/shop-settings/helpers/index.d.ts +1 -1
- package/src/domain/shop-settings/index.d.ts +4 -4
- package/src/domain/shop-settings/models/campaign-banner.d.ts +11 -11
- package/src/domain/shop-settings/models/campaign.d.ts +10 -10
- package/src/domain/shop-settings/models/home.d.ts +18 -18
- package/src/domain/shop-settings/models/index.d.ts +6 -6
- package/src/domain/shop-settings/models/shop-menu.d.ts +9 -9
- package/src/domain/shop-settings/models/shop-settings.d.ts +15 -15
- package/src/domain/shop-settings/models/types/banner.type.d.ts +6 -6
- package/src/domain/shop-settings/models/types/benefit.type.d.ts +5 -5
- package/src/domain/shop-settings/models/types/brands-carousel.type.d.ts +3 -3
- package/src/domain/shop-settings/models/types/campaign-page.d.ts +17 -17
- package/src/domain/shop-settings/models/types/home-data.type.d.ts +15 -15
- package/src/domain/shop-settings/models/types/index.d.ts +17 -17
- package/src/domain/shop-settings/models/types/landing-page.d.ts +8 -8
- package/src/domain/shop-settings/models/types/menu-nav.type.d.ts +9 -9
- package/src/domain/shop-settings/models/types/promotion-page.d.ts +10 -10
- package/src/domain/shop-settings/models/types/sections.type.d.ts +37 -37
- package/src/domain/shop-settings/models/types/shop-banner.type.d.ts +13 -13
- package/src/domain/shop-settings/models/types/shop-brands.type.d.ts +10 -10
- package/src/domain/shop-settings/models/types/shop-carousel.type.d.ts +4 -4
- package/src/domain/shop-settings/models/types/shop-collection.type.d.ts +9 -9
- package/src/domain/shop-settings/models/types/shop-gift.type.d.ts +8 -8
- package/src/domain/shop-settings/models/types/shop-home.d.ts +12 -12
- package/src/domain/shop-settings/models/types/shop-post.type.d.ts +7 -7
- package/src/domain/shop-settings/models/types/shop-section.type.d.ts +12 -12
- package/src/domain/shop-settings/models/types/sub-menu.type.d.ts +8 -8
- package/src/domain/shop-settings/repositories/campaign-banner.repository.d.ts +4 -4
- package/src/domain/shop-settings/repositories/campaign.repository.d.ts +4 -4
- package/src/domain/shop-settings/repositories/home.repository.d.ts +4 -4
- package/src/domain/shop-settings/repositories/index.d.ts +5 -5
- package/src/domain/shop-settings/repositories/shop-menu.repository.d.ts +4 -4
- package/src/domain/shop-settings/repositories/shop-settings.repository.d.ts +4 -4
- package/src/domain/shopping/index.d.ts +3 -3
- package/src/domain/shopping/models/buy-2-win.d.ts +18 -18
- package/src/domain/shopping/models/campaign-dashboard.d.ts +15 -15
- package/src/domain/shopping/models/campaign-hashtag.d.ts +18 -18
- package/src/domain/shopping/models/checkout.d.ts +26 -26
- package/src/domain/shopping/models/coupons/coupon.d.ts +63 -63
- package/src/domain/shopping/models/coupons/enums/coupon-club-mens.enum.d.ts +5 -5
- package/src/domain/shopping/models/coupons/enums/coupon-subtypes.enum.d.ts +4 -4
- package/src/domain/shopping/models/coupons/enums/coupon-types.enum.d.ts +4 -4
- package/src/domain/shopping/models/coupons/enums/exclusivities.enum.d.ts +8 -8
- package/src/domain/shopping/models/coupons/enums/index.d.ts +3 -3
- package/src/domain/shopping/models/coupons/index.d.ts +2 -2
- package/src/domain/shopping/models/enums/checkout-types.enum.d.ts +5 -5
- package/src/domain/shopping/models/enums/index.d.ts +2 -2
- package/src/domain/shopping/models/enums/order-status.enum.d.ts +10 -10
- package/src/domain/shopping/models/index.d.ts +13 -13
- package/src/domain/shopping/models/line-item.d.ts +10 -10
- package/src/domain/shopping/models/order-blocked.d.ts +26 -26
- package/src/domain/shopping/models/order.d.ts +14 -14
- package/src/domain/shopping/models/payment.d.ts +68 -68
- package/src/domain/shopping/models/shipping-method.d.ts +17 -17
- package/src/domain/shopping/models/subscription/checkout.d.ts +21 -21
- package/src/domain/shopping/models/subscription/index.d.ts +2 -2
- package/src/domain/shopping/models/subscription/plan.d.ts +10 -10
- package/src/domain/shopping/models/types/index.d.ts +7 -7
- package/src/domain/shopping/models/types/payment-address.type.d.ts +12 -12
- package/src/domain/shopping/models/types/payment-billing.type.d.ts +7 -7
- package/src/domain/shopping/models/types/payment-card.type.d.ts +14 -14
- package/src/domain/shopping/models/types/payment-customer.type.d.ts +18 -18
- package/src/domain/shopping/models/types/payment-document.type.d.ts +6 -6
- package/src/domain/shopping/models/types/payment-item.type.d.ts +11 -11
- package/src/domain/shopping/models/types/payment-shipping.type.d.ts +10 -10
- package/src/domain/shopping/repositories/buy-2-win.repository.d.ts +4 -4
- package/src/domain/shopping/repositories/campaign-dashboard.repository.d.ts +4 -4
- package/src/domain/shopping/repositories/campaign-hashtag.repository.d.ts +4 -4
- package/src/domain/shopping/repositories/checkout.repository.d.ts +4 -4
- package/src/domain/shopping/repositories/coupon.repository.d.ts +4 -4
- package/src/domain/shopping/repositories/index.d.ts +10 -10
- package/src/domain/shopping/repositories/legacy-order.repository.d.ts +3 -3
- package/src/domain/shopping/repositories/order-blocked.repository.d.ts +6 -6
- package/src/domain/shopping/repositories/order.repository.d.ts +4 -4
- package/src/domain/shopping/repositories/payment.repository.d.ts +4 -4
- package/src/domain/shopping/repositories/subscription/checkout.repository.d.ts +4 -4
- package/src/domain/shopping/repositories/subscription/index.d.ts +2 -2
- package/src/domain/shopping/repositories/subscription/plan.repository.d.ts +4 -4
- package/src/domain/shopping/types/index.d.ts +2 -2
- package/src/domain/shopping/types/order-tracking-events.type.d.ts +14 -14
- package/src/domain/shopping/types/payment-card-info.type.d.ts +4 -4
- package/src/domain/users/errors/index.d.ts +3 -3
- package/src/domain/users/errors/unauthorized.error.d.ts +4 -4
- package/src/domain/users/errors/user-already-registered.error.d.ts +4 -4
- package/src/domain/users/errors/weak-password.error.d.ts +4 -4
- package/src/domain/users/index.d.ts +5 -5
- package/src/domain/users/models/beauty-profile.d.ts +11 -11
- package/src/domain/users/models/enums/accessory-importances.enum.d.ts +5 -5
- package/src/domain/users/models/enums/area.enum.d.ts +11 -11
- package/src/domain/users/models/enums/beard-problems.enum.d.ts +9 -9
- package/src/domain/users/models/enums/beard-sizes.enum.d.ts +7 -7
- package/src/domain/users/models/enums/beauty-product-importances.enum.d.ts +6 -6
- package/src/domain/users/models/enums/body-problems.enum.d.ts +11 -11
- package/src/domain/users/models/enums/body-shapes.enum.d.ts +7 -7
- package/src/domain/users/models/enums/body-tattoos.enum.d.ts +5 -5
- package/src/domain/users/models/enums/face-skin-oilinesses.enum.d.ts +7 -7
- package/src/domain/users/models/enums/face-skin-problems.enum.d.ts +10 -10
- package/src/domain/users/models/enums/face-skin-tones.enum.d.ts +8 -8
- package/src/domain/users/models/enums/family-incomes.enum.d.ts +8 -8
- package/src/domain/users/models/enums/fragrance-importances.enum.d.ts +5 -5
- package/src/domain/users/models/enums/hair-colors.enum.d.ts +10 -10
- package/src/domain/users/models/enums/hair-problems.enum.d.ts +10 -10
- package/src/domain/users/models/enums/hair-strands.enum.d.ts +8 -8
- package/src/domain/users/models/enums/hair-types.enum.d.ts +7 -7
- package/src/domain/users/models/enums/index.d.ts +21 -21
- package/src/domain/users/models/enums/office-position.enum.d.ts +6 -6
- package/src/domain/users/models/enums/person-types.enum.d.ts +5 -5
- package/src/domain/users/models/enums/product-spents.enum.d.ts +8 -8
- package/src/domain/users/models/enums/user-type.enum.d.ts +8 -8
- package/src/domain/users/models/index.d.ts +8 -8
- package/src/domain/users/models/lead.d.ts +8 -8
- package/src/domain/users/models/subscription/edition.d.ts +16 -16
- package/src/domain/users/models/subscription/enums/billing-status.enum.d.ts +3 -3
- package/src/domain/users/models/subscription/enums/edition-status.enum.d.ts +4 -4
- package/src/domain/users/models/subscription/enums/index.d.ts +5 -5
- package/src/domain/users/models/subscription/enums/payment-type.enum.d.ts +5 -5
- package/src/domain/users/models/subscription/enums/plans.enum.d.ts +6 -6
- package/src/domain/users/models/subscription/enums/status.enum.d.ts +4 -4
- package/src/domain/users/models/subscription/index.d.ts +7 -7
- package/src/domain/users/models/subscription/payment.d.ts +13 -13
- package/src/domain/users/models/subscription/subscription-materialization.d.ts +31 -31
- package/src/domain/users/models/subscription/subscription-summary.d.ts +15 -15
- package/src/domain/users/models/subscription/subscription.d.ts +29 -29
- package/src/domain/users/models/subscription/types/index.d.ts +1 -1
- package/src/domain/users/models/subscription/types/plan.type.d.ts +2 -2
- package/src/domain/users/models/types/index.d.ts +1 -1
- package/src/domain/users/models/types/person.type.d.ts +2 -2
- package/src/domain/users/models/user-address.d.ts +6 -6
- package/src/domain/users/models/user-payment-method.d.ts +14 -14
- package/src/domain/users/models/user.d.ts +28 -28
- package/src/domain/users/repositories/beauty-profile.repository.d.ts +4 -4
- package/src/domain/users/repositories/edition.repository.d.ts +4 -4
- package/src/domain/users/repositories/index.d.ts +10 -10
- package/src/domain/users/repositories/lead.repository.d.ts +4 -4
- package/src/domain/users/repositories/subscription-materialization.repository.d.ts +4 -4
- package/src/domain/users/repositories/subscription-payment.repository.d.ts +4 -4
- package/src/domain/users/repositories/subscription-summary.repository.d.ts +4 -4
- package/src/domain/users/repositories/subscription.repository.d.ts +4 -4
- package/src/domain/users/repositories/user-address.repository.d.ts +4 -4
- package/src/domain/users/repositories/user-payment-method.repository.d.ts +4 -4
- package/src/domain/users/repositories/user.repository.d.ts +6 -6
- package/src/domain/users/services/authentication.service.d.ts +12 -12
- package/src/domain/users/services/index.d.ts +3 -3
- package/src/domain/users/services/register.service.d.ts +7 -7
- package/src/domain/users/services/types/basic-user-data.type.d.ts +4 -4
- package/src/domain/users/services/types/index.d.ts +1 -1
- package/src/domain/users/use-cases/authentication.d.ts +21 -21
- package/src/domain/users/use-cases/index.d.ts +5 -5
- package/src/domain/users/use-cases/recovery-password.d.ts +6 -6
- package/src/domain/users/use-cases/register.d.ts +13 -13
- package/src/domain/users/use-cases/signout.d.ts +6 -6
- package/src/domain/users/use-cases/update-user-image.d.ts +9 -9
- package/src/errors/duplicated-results.error.d.ts +4 -4
- package/src/errors/index.d.ts +4 -4
- package/src/errors/invalid-argument.error.d.ts +4 -4
- package/src/errors/not-found.error.d.ts +4 -4
- package/src/errors/required-argument.error.d.ts +6 -6
- package/src/index.d.ts +5 -5
- package/src/infra/elasticsearch/adapters/axios.adapter.d.ts +17 -17
- package/src/infra/elasticsearch/adapters/elastic-search.adapter.d.ts +8 -8
- package/src/infra/elasticsearch/adapters/index.d.ts +2 -2
- package/src/infra/elasticsearch/index.d.ts +3 -3
- package/src/infra/elasticsearch/indexes/index.d.ts +1 -1
- package/src/infra/elasticsearch/indexes/products-index.d.ts +13 -13
- package/src/infra/elasticsearch/types/elastic-search-result.d.ts +9 -9
- package/src/infra/elasticsearch/types/index.d.ts +1 -1
- package/src/infra/firebase/auth/authentication-firebase-auth.service.d.ts +12 -12
- package/src/infra/firebase/auth/index.d.ts +2 -2
- package/src/infra/firebase/auth/register-firebase-auth.service.d.ts +8 -8
- package/src/infra/firebase/auth/types/firebase-user-with-id.type.d.ts +5 -5
- package/src/infra/firebase/auth/types/index.d.ts +1 -1
- package/src/infra/firebase/firestore/enums/firestore-field-type.enum.d.ts +8 -8
- package/src/infra/firebase/firestore/enums/index.d.ts +1 -1
- package/src/infra/firebase/firestore/index.d.ts +5 -5
- package/src/infra/firebase/firestore/mixins/index.d.ts +9 -9
- package/src/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +4 -4
- package/src/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +5 -5
- package/src/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +4 -4
- package/src/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +4 -4
- package/src/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +13 -13
- package/src/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +4 -4
- package/src/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +11 -11
- package/src/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +11 -11
- package/src/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +20 -20
- package/src/infra/firebase/firestore/repositories/catalog/index.d.ts +4 -4
- package/src/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +14 -14
- package/src/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +12 -12
- package/src/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/index.d.ts +4 -4
- package/src/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +16 -16
- package/src/infra/firebase/firestore/repositories/shop-settings/index.d.ts +3 -3
- package/src/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/shop-settings/shop-settings-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/shopping/campaign-dashboard-firestore.repository.d.ts +8 -8
- package/src/infra/firebase/firestore/repositories/shopping/campaign-hashtag-firestore.repository.d.ts +8 -8
- package/src/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +12 -12
- package/src/infra/firebase/firestore/repositories/shopping/index.d.ts +11 -11
- package/src/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.d.ts +6 -6
- package/src/infra/firebase/firestore/repositories/shopping/order-blocked-firestore.repository.ts.d.ts +9 -9
- package/src/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +13 -13
- package/src/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/users/index.d.ts +10 -10
- package/src/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +12 -12
- package/src/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/users/subscription-materialization-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +12 -12
- package/src/infra/firebase/firestore/repositories/users/subscription-summary-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +12 -12
- package/src/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +12 -12
- package/src/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +17 -17
- package/src/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +12 -12
- package/src/infra/firebase/firestore/services/connect-collection-reference.d.ts +21 -21
- package/src/infra/firebase/firestore/services/connect-collection.service.d.ts +32 -32
- package/src/infra/firebase/firestore/services/connect-document-reference.d.ts +12 -12
- package/src/infra/firebase/firestore/services/connect-document.service.d.ts +17 -17
- package/src/infra/firebase/firestore/services/connect-firestore.d.ts +7 -7
- package/src/infra/firebase/firestore/services/connect-firestore.service.d.ts +11 -11
- package/src/infra/firebase/firestore/services/index.d.ts +6 -6
- package/src/infra/firebase/firestore/types/connect-firestore/connect-document-data.type.d.ts +5 -5
- package/src/infra/firebase/firestore/types/connect-firestore/connect-document-snapshot.type.d.ts +10 -10
- package/src/infra/firebase/firestore/types/connect-firestore/connect-query-snapshot.type.d.ts +7 -7
- package/src/infra/firebase/firestore/types/connect-firestore/connect-where-option.type.d.ts +2 -2
- package/src/infra/firebase/firestore/types/connect-firestore/index.d.ts +4 -4
- package/src/infra/firebase/firestore/types/firestore-interceptors.type.d.ts +14 -14
- package/src/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +6 -6
- package/src/infra/firebase/firestore/types/firestore.helpers.type.d.ts +8 -8
- package/src/infra/firebase/firestore/types/firestore.repository.type.d.ts +20 -20
- package/src/infra/firebase/firestore/types/index.d.ts +5 -5
- package/src/infra/firebase/firestore/vo/connectBaseDocumentSnapshot.vo.d.ts +10 -10
- package/src/infra/firebase/firestore/vo/index.d.ts +1 -1
- package/src/infra/firebase/index.d.ts +3 -3
- package/src/infra/firebase/storage/firebase-file-uploader.service.d.ts +8 -8
- package/src/infra/firebase/storage/index.d.ts +1 -1
- package/src/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.d.ts +11 -11
- package/src/infra/hasura-graphql/enums/hasura-graphql-where.enum.d.ts +18 -18
- package/src/infra/hasura-graphql/enums/index.d.ts +2 -2
- package/src/infra/hasura-graphql/index.d.ts +4 -4
- package/src/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +19 -13
- package/src/infra/hasura-graphql/mixins/helpers/bind-filter-query.helper.d.ts +10 -10
- package/src/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +10 -8
- package/src/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +12 -10
- package/src/infra/hasura-graphql/mixins/helpers/index.d.ts +4 -4
- package/src/infra/hasura-graphql/mixins/index.d.ts +7 -7
- package/src/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +9 -9
- package/src/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +11 -11
- package/src/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +7 -7
- package/src/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +34 -34
- package/src/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +25 -25
- package/src/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +23 -23
- package/src/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +14 -14
- package/src/infra/hasura-graphql/models/category-hasura-graphql.d.ts +6 -6
- package/src/infra/hasura-graphql/models/index.d.ts +4 -4
- package/src/infra/hasura-graphql/models/kit-product-hasura-graphql.d.ts +6 -6
- package/src/infra/hasura-graphql/models/product-hasura-graphql.d.ts +18 -18
- package/src/infra/hasura-graphql/models/variant-hasura-graphql.d.ts +10 -10
- package/src/infra/hasura-graphql/models/wishlist-hasura-graphql.d.ts +4 -4
- package/src/infra/hasura-graphql/repositories/catalog/category-collection-children-hasura-graphql.repository.d.ts +10 -10
- package/src/infra/hasura-graphql/repositories/catalog/category-filter-hasura-graphql.repository.d.ts +12 -12
- package/src/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +34 -34
- package/src/infra/hasura-graphql/repositories/catalog/filter-hasura-graphql.repository.d.ts +18 -18
- package/src/infra/hasura-graphql/repositories/catalog/filter-option-hasura-graphql.repository.d.ts +10 -10
- package/src/infra/hasura-graphql/repositories/catalog/index.d.ts +10 -10
- package/src/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +32 -32
- package/src/infra/hasura-graphql/repositories/catalog/product-review-hasura-graphql.repository.d.ts +13 -13
- package/src/infra/hasura-graphql/repositories/catalog/product-stock-notification-hasura-graphql.repository.d.ts +18 -18
- package/src/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts +14 -14
- package/src/infra/hasura-graphql/repositories/catalog/wishlist-hasura-graphql.repository.d.ts +30 -30
- package/src/infra/hasura-graphql/repositories/index.d.ts +1 -1
- package/src/infra/hasura-graphql/types/fields.type.d.ts +2 -2
- package/src/infra/hasura-graphql/types/graphql.repository.type.d.ts +24 -24
- package/src/infra/hasura-graphql/types/hasura-graphql-auth-options.type.d.ts +8 -8
- package/src/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +44 -44
- package/src/infra/hasura-graphql/types/hasura-graphql-headers.type.d.ts +7 -7
- package/src/infra/hasura-graphql/types/index.d.ts +8 -8
- package/src/infra/hasura-graphql/types/nested-field.type.d.ts +7 -7
- package/src/infra/hasura-graphql/types/query-builder-options.type.d.ts +7 -7
- package/src/infra/hasura-graphql/types/variable-options.type.d.ts +9 -9
- package/src/infra/index.d.ts +3 -3
- package/src/utils/decorators/debug.class.decorator.d.ts +2 -2
- package/src/utils/decorators/index.d.ts +2 -2
- package/src/utils/decorators/trace.method.decorator.d.ts +14 -14
- package/src/utils/get.d.ts +1 -1
- package/src/utils/helpers/class-name.helper.d.ts +3 -3
- package/src/utils/helpers/debug-decorator.helper.d.ts +9 -9
- package/src/utils/helpers/debug.helper.d.ts +60 -60
- package/src/utils/helpers/index.d.ts +4 -4
- package/src/utils/helpers/reflect.helper.d.ts +50 -50
- package/src/utils/index.d.ts +13 -13
- package/src/utils/is-uuid.d.ts +1 -1
- package/src/utils/is.d.ts +1 -1
- package/src/utils/log.utils.d.ts +7 -7
- package/src/utils/mixins/base.mixin.d.ts +3 -3
- package/src/utils/mixins/index.d.ts +3 -3
- package/src/utils/mixins/merge-constructor-params.type.d.ts +3 -3
- package/src/utils/mixins/mixin-ctor.type.d.ts +1 -1
- package/src/utils/parse-datetime.d.ts +1 -1
- package/src/utils/types/array-element.type.d.ts +1 -1
- package/src/utils/types/index.d.ts +2 -2
- package/src/utils/types/prop.type.d.ts +1 -1
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { ModelBaseStructure, NestedRepositoryFindFieltersOptions, NonFunctionAndIdentifierPropertyNames, RepositoryFindField } from '../../../domain';
|
|
2
|
-
import { PropType } from '../../../utils';
|
|
3
|
-
import { HasuraGraphQLColumnType } from '../enums';
|
|
4
|
-
export type ColumnOptions<FieldType, Model, ValueFrom = any> = {
|
|
5
|
-
type?: HasuraGraphQLColumnType;
|
|
6
|
-
columnName?: string;
|
|
7
|
-
filters?: {
|
|
8
|
-
filterType: HasuraGraphQLColumnType | string;
|
|
9
|
-
filters: NestedRepositoryFindFieltersOptions<FieldType>;
|
|
10
|
-
};
|
|
11
|
-
fields?: HasuraGraphQLFields<FieldType>;
|
|
12
|
-
foreignKeyColumn?: Partial<Record<NonFunctionAndIdentifierPropertyNames<FieldType extends any[] ? FieldType[number] : FieldType>, NonFunctionAndIdentifierPropertyNames<Model> | (string & {})>> | {};
|
|
13
|
-
from?: (value: ValueFrom | ValueFrom[], data?: any) => FieldType;
|
|
14
|
-
to?: (value: FieldType, instance?: Model) => ValueFrom;
|
|
15
|
-
bindFindFilter?: (sentence: RepositoryFindField<Model, keyof Model>) => Record<string, RepositoryFindField<any, any> | ValueFrom> | RepositoryFindField<any, any> | ValueFrom;
|
|
16
|
-
bindPersistData?: (value: FieldType, instance?: Model) => Record<string, ValueFrom>;
|
|
17
|
-
};
|
|
18
|
-
export type AggregateOptionNames = 'avg' | 'count' | 'max' | 'min' | 'stddev' | 'stddev_pop' | 'stddev_samp' | 'sum' | 'var_pop' | 'var_samp' | 'variance';
|
|
19
|
-
export type AggregateOptionFields<Model, Type, Properties extends keyof Model = keyof Model> = {
|
|
20
|
-
[K in Properties]: PropType<Model, K> extends Type ? K : never;
|
|
21
|
-
}[Properties] | string;
|
|
22
|
-
export type AggregateOptions<Model> = {
|
|
23
|
-
avg?: Array<AggregateOptionFields<Model, number>>;
|
|
24
|
-
max?: Array<AggregateOptionFields<Model, number | Date>>;
|
|
25
|
-
min?: Array<AggregateOptionFields<Model, number | Date>>;
|
|
26
|
-
stddev?: Array<AggregateOptionFields<Model, number>>;
|
|
27
|
-
stddev_pop?: Array<AggregateOptionFields<Model, number>>;
|
|
28
|
-
stddev_samp?: Array<AggregateOptionFields<Model, number>>;
|
|
29
|
-
sum?: Array<AggregateOptionFields<Model, number>>;
|
|
30
|
-
var_pop?: Array<AggregateOptionFields<Model, number>>;
|
|
31
|
-
var_samp?: Array<AggregateOptionFields<Model, number>>;
|
|
32
|
-
variance?: Array<AggregateOptionFields<Model, number>>;
|
|
33
|
-
};
|
|
34
|
-
type ModelBaseHasuraGraphQLFields<Model> = Model extends ModelBaseStructure ? NonFunctionAndIdentifierPropertyNames<Model> | {
|
|
35
|
-
[key in NonFunctionAndIdentifierPropertyNames<Model>]?: PropType<Model, key> extends ModelBaseStructure ? HasuraGraphQLFields<PropType<Model, key>> : PropType<Model, key> extends any[] ? PropType<Model, key>[] extends ModelBaseStructure[] ? HasuraGraphQLFields<PropType<Model, key>[]> : never : never;
|
|
36
|
-
} | {
|
|
37
|
-
[key in NonFunctionAndIdentifierPropertyNames<Model>]?: key extends 'aggregate' ? never : PropType<Model, key> extends ModelBaseStructure ? ColumnOptions<PropType<Model, key>, Model> : ColumnOptions<PropType<Model, key>, Model>;
|
|
38
|
-
} | Record<string, ColumnOptions<PropType<Model, any>, Model>> : string;
|
|
39
|
-
export type HasuraGraphQLFields<Model> = (ModelBaseHasuraGraphQLFields<Model> | {
|
|
40
|
-
aggregate: Array<AggregateOptions<Model> | 'count'>;
|
|
41
|
-
} | {
|
|
42
|
-
returning: NonFunctionAndIdentifierPropertyNames<Model>[];
|
|
43
|
-
} | 'affected_rows')[];
|
|
44
|
-
export {};
|
|
1
|
+
import { ModelBaseStructure, NestedRepositoryFindFieltersOptions, NonFunctionAndIdentifierPropertyNames, RepositoryFindField } from '../../../domain';
|
|
2
|
+
import { PropType } from '../../../utils';
|
|
3
|
+
import { HasuraGraphQLColumnType } from '../enums';
|
|
4
|
+
export type ColumnOptions<FieldType, Model, ValueFrom = any> = {
|
|
5
|
+
type?: HasuraGraphQLColumnType;
|
|
6
|
+
columnName?: string;
|
|
7
|
+
filters?: {
|
|
8
|
+
filterType: HasuraGraphQLColumnType | string;
|
|
9
|
+
filters: NestedRepositoryFindFieltersOptions<FieldType>;
|
|
10
|
+
};
|
|
11
|
+
fields?: HasuraGraphQLFields<FieldType>;
|
|
12
|
+
foreignKeyColumn?: Partial<Record<NonFunctionAndIdentifierPropertyNames<FieldType extends any[] ? FieldType[number] : FieldType>, NonFunctionAndIdentifierPropertyNames<Model> | (string & {})>> | {};
|
|
13
|
+
from?: (value: ValueFrom | ValueFrom[], data?: any) => FieldType;
|
|
14
|
+
to?: (value: FieldType, instance?: Model) => ValueFrom;
|
|
15
|
+
bindFindFilter?: (sentence: RepositoryFindField<Model, keyof Model>) => Record<string, RepositoryFindField<any, any> | ValueFrom> | RepositoryFindField<any, any> | ValueFrom;
|
|
16
|
+
bindPersistData?: (value: FieldType, instance?: Model) => Record<string, ValueFrom>;
|
|
17
|
+
};
|
|
18
|
+
export type AggregateOptionNames = 'avg' | 'count' | 'max' | 'min' | 'stddev' | 'stddev_pop' | 'stddev_samp' | 'sum' | 'var_pop' | 'var_samp' | 'variance';
|
|
19
|
+
export type AggregateOptionFields<Model, Type, Properties extends keyof Model = keyof Model> = {
|
|
20
|
+
[K in Properties]: PropType<Model, K> extends Type ? K : never;
|
|
21
|
+
}[Properties] | string;
|
|
22
|
+
export type AggregateOptions<Model> = {
|
|
23
|
+
avg?: Array<AggregateOptionFields<Model, number>>;
|
|
24
|
+
max?: Array<AggregateOptionFields<Model, number | Date>>;
|
|
25
|
+
min?: Array<AggregateOptionFields<Model, number | Date>>;
|
|
26
|
+
stddev?: Array<AggregateOptionFields<Model, number>>;
|
|
27
|
+
stddev_pop?: Array<AggregateOptionFields<Model, number>>;
|
|
28
|
+
stddev_samp?: Array<AggregateOptionFields<Model, number>>;
|
|
29
|
+
sum?: Array<AggregateOptionFields<Model, number>>;
|
|
30
|
+
var_pop?: Array<AggregateOptionFields<Model, number>>;
|
|
31
|
+
var_samp?: Array<AggregateOptionFields<Model, number>>;
|
|
32
|
+
variance?: Array<AggregateOptionFields<Model, number>>;
|
|
33
|
+
};
|
|
34
|
+
type ModelBaseHasuraGraphQLFields<Model> = Model extends ModelBaseStructure ? NonFunctionAndIdentifierPropertyNames<Model> | {
|
|
35
|
+
[key in NonFunctionAndIdentifierPropertyNames<Model>]?: PropType<Model, key> extends ModelBaseStructure ? HasuraGraphQLFields<PropType<Model, key>> : PropType<Model, key> extends any[] ? PropType<Model, key>[] extends ModelBaseStructure[] ? HasuraGraphQLFields<PropType<Model, key>[]> : never : never;
|
|
36
|
+
} | {
|
|
37
|
+
[key in NonFunctionAndIdentifierPropertyNames<Model>]?: key extends 'aggregate' ? never : PropType<Model, key> extends ModelBaseStructure ? ColumnOptions<PropType<Model, key>, Model> : ColumnOptions<PropType<Model, key>, Model>;
|
|
38
|
+
} | Record<string, ColumnOptions<PropType<Model, any>, Model>> : string;
|
|
39
|
+
export type HasuraGraphQLFields<Model> = (ModelBaseHasuraGraphQLFields<Model> | {
|
|
40
|
+
aggregate: Array<AggregateOptions<Model> | 'count'>;
|
|
41
|
+
} | {
|
|
42
|
+
returning: NonFunctionAndIdentifierPropertyNames<Model>[];
|
|
43
|
+
} | 'affected_rows')[];
|
|
44
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type HasuraGraphQLHeaders = {
|
|
2
|
-
Authorization?: string;
|
|
3
|
-
'Content-Type': string;
|
|
4
|
-
'X-Hasura-Admin-Secret'?: string;
|
|
5
|
-
'X-Hasura-Role'?: string;
|
|
6
|
-
'X-Hasura-User-Id'?: string;
|
|
7
|
-
};
|
|
1
|
+
export type HasuraGraphQLHeaders = {
|
|
2
|
+
Authorization?: string;
|
|
3
|
+
'Content-Type': string;
|
|
4
|
+
'X-Hasura-Admin-Secret'?: string;
|
|
5
|
+
'X-Hasura-Role'?: string;
|
|
6
|
+
'X-Hasura-User-Id'?: string;
|
|
7
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './fields.type';
|
|
2
|
-
export * from './graphql.repository.type';
|
|
3
|
-
export * from './nested-field.type';
|
|
4
|
-
export * from './query-builder-options.type';
|
|
5
|
-
export * from './variable-options.type';
|
|
6
|
-
export * from './hasura-graphql-auth-options.type';
|
|
7
|
-
export * from './hasura-graphql-fields.type';
|
|
8
|
-
export * from './hasura-graphql-headers.type';
|
|
1
|
+
export * from './fields.type';
|
|
2
|
+
export * from './graphql.repository.type';
|
|
3
|
+
export * from './nested-field.type';
|
|
4
|
+
export * from './query-builder-options.type';
|
|
5
|
+
export * from './variable-options.type';
|
|
6
|
+
export * from './hasura-graphql-auth-options.type';
|
|
7
|
+
export * from './hasura-graphql-fields.type';
|
|
8
|
+
export * from './hasura-graphql-headers.type';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Fields } from './fields.type';
|
|
2
|
-
import { QueryBuilderOptions } from './query-builder-options.type';
|
|
3
|
-
export type NestedField = {
|
|
4
|
-
operation: string;
|
|
5
|
-
variables: QueryBuilderOptions[];
|
|
6
|
-
fields: Fields;
|
|
7
|
-
};
|
|
1
|
+
import { Fields } from './fields.type';
|
|
2
|
+
import { QueryBuilderOptions } from './query-builder-options.type';
|
|
3
|
+
export type NestedField = {
|
|
4
|
+
operation: string;
|
|
5
|
+
variables: QueryBuilderOptions[];
|
|
6
|
+
fields: Fields;
|
|
7
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Fields } from './fields.type';
|
|
2
|
-
import { VariableOptions } from './variable-options.type';
|
|
3
|
-
export interface QueryBuilderOptions {
|
|
4
|
-
operation: string;
|
|
5
|
-
fields?: Fields;
|
|
6
|
-
variables?: VariableOptions;
|
|
7
|
-
}
|
|
1
|
+
import { Fields } from './fields.type';
|
|
2
|
+
import { VariableOptions } from './variable-options.type';
|
|
3
|
+
export interface QueryBuilderOptions {
|
|
4
|
+
operation: string;
|
|
5
|
+
fields?: Fields;
|
|
6
|
+
variables?: VariableOptions;
|
|
7
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type VariableOptions = {
|
|
2
|
-
type?: string;
|
|
3
|
-
name?: string;
|
|
4
|
-
value: any;
|
|
5
|
-
list?: boolean;
|
|
6
|
-
required?: boolean;
|
|
7
|
-
} | {
|
|
8
|
-
[k: string]: any;
|
|
9
|
-
};
|
|
1
|
+
export type VariableOptions = {
|
|
2
|
+
type?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
value: any;
|
|
5
|
+
list?: boolean;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
} | {
|
|
8
|
+
[k: string]: any;
|
|
9
|
+
};
|
package/src/infra/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './elasticsearch';
|
|
2
|
-
export * from './firebase';
|
|
3
|
-
export * from './hasura-graphql';
|
|
1
|
+
export * from './elasticsearch';
|
|
2
|
+
export * from './firebase';
|
|
3
|
+
export * from './hasura-graphql';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DebugOptions } from '../helpers';
|
|
2
|
-
export declare function Debug(opts?: DebugOptions): ClassDecorator;
|
|
1
|
+
import { DebugOptions } from '../helpers';
|
|
2
|
+
export declare function Debug(opts?: DebugOptions): ClassDecorator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './debug.class.decorator';
|
|
2
|
-
export * from './trace.method.decorator';
|
|
1
|
+
export * from './debug.class.decorator';
|
|
2
|
+
export * from './trace.method.decorator';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export type CallbackFnArgs<T, Result> = {
|
|
2
|
-
target: T;
|
|
3
|
-
result: Result;
|
|
4
|
-
args: Array<any>;
|
|
5
|
-
namespace?: Array<string>;
|
|
6
|
-
};
|
|
7
|
-
type CallbackFn<T, Result> = (opts: CallbackFnArgs<T, Result>) => void;
|
|
8
|
-
type TraceOptions<T, Result> = {
|
|
9
|
-
callbackFn?: CallbackFn<T, Result>;
|
|
10
|
-
level?: 'trace' | 'log';
|
|
11
|
-
};
|
|
12
|
-
export declare function Log<T, Result>(options?: TraceOptions<T, Result>): (target: any, propertyKey: string, propertyDescriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
13
|
-
export declare function Trace<T, Result>(options?: TraceOptions<T, Result>): (target: any, propertyKey: string, propertyDescriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
14
|
-
export {};
|
|
1
|
+
export type CallbackFnArgs<T, Result> = {
|
|
2
|
+
target: T;
|
|
3
|
+
result: Result;
|
|
4
|
+
args: Array<any>;
|
|
5
|
+
namespace?: Array<string>;
|
|
6
|
+
};
|
|
7
|
+
type CallbackFn<T, Result> = (opts: CallbackFnArgs<T, Result>) => void;
|
|
8
|
+
type TraceOptions<T, Result> = {
|
|
9
|
+
callbackFn?: CallbackFn<T, Result>;
|
|
10
|
+
level?: 'trace' | 'log';
|
|
11
|
+
};
|
|
12
|
+
export declare function Log<T, Result>(options?: TraceOptions<T, Result>): (target: any, propertyKey: string, propertyDescriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
13
|
+
export declare function Trace<T, Result>(options?: TraceOptions<T, Result>): (target: any, propertyKey: string, propertyDescriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
14
|
+
export {};
|
package/src/utils/get.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const get: (object: any, path: string, defaultValue?: any) => any;
|
|
1
|
+
export declare const get: (object: any, path: string, defaultValue?: any) => any;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare class ClassNameHelper {
|
|
2
|
-
static get(clazz: any): string;
|
|
3
|
-
}
|
|
1
|
+
export declare class ClassNameHelper {
|
|
2
|
+
static get(clazz: any): string;
|
|
3
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type DebugOptions = {
|
|
2
|
-
name?: string;
|
|
3
|
-
namespaces?: Array<string>;
|
|
4
|
-
};
|
|
5
|
-
export declare class DebugDecoratorHelper {
|
|
6
|
-
static DebugNamingMetadataKey: string;
|
|
7
|
-
static set(target: object, options: DebugOptions): void;
|
|
8
|
-
static get(target: object): DebugOptions;
|
|
9
|
-
}
|
|
1
|
+
export type DebugOptions = {
|
|
2
|
+
name?: string;
|
|
3
|
+
namespaces?: Array<string>;
|
|
4
|
+
};
|
|
5
|
+
export declare class DebugDecoratorHelper {
|
|
6
|
+
static DebugNamingMetadataKey: string;
|
|
7
|
+
static set(target: object, options: DebugOptions): void;
|
|
8
|
+
static get(target: object): DebugOptions;
|
|
9
|
+
}
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { Debugger } from 'debug';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
export type Debuggable = {
|
|
4
|
-
debug: DebugHelper;
|
|
5
|
-
};
|
|
6
|
-
type DebugLog = {
|
|
7
|
-
namespace: string;
|
|
8
|
-
message: string;
|
|
9
|
-
args: Array<any>;
|
|
10
|
-
};
|
|
11
|
-
type DebugError = {
|
|
12
|
-
namespace: string;
|
|
13
|
-
error: any;
|
|
14
|
-
args: Array<any>;
|
|
15
|
-
};
|
|
16
|
-
export declare const isDebuggable: (object: any) => object is Debuggable;
|
|
17
|
-
export declare class DebugHelper {
|
|
18
|
-
static logs$: Subject<DebugLog>;
|
|
19
|
-
static traces$: Subject<DebugLog>;
|
|
20
|
-
static errors$: Subject<DebugError>;
|
|
21
|
-
static isDebuggable: (object: any) => object is Debuggable;
|
|
22
|
-
static namespacesFor(target: object): Array<string>;
|
|
23
|
-
static as(...namespaces: Array<string>): DebugHelper;
|
|
24
|
-
static for(target: object, ...namespaces: Array<string>): DebugHelper;
|
|
25
|
-
static from(target: object, ...namespaces: Array<string>): DebugHelper;
|
|
26
|
-
static clonedFrom(target: object, ...namespaces: Array<string>): DebugHelper;
|
|
27
|
-
static clone(target: object, ...namespaces: Array<string>): {
|
|
28
|
-
original: DebugHelper;
|
|
29
|
-
debug: DebugHelper;
|
|
30
|
-
};
|
|
31
|
-
static replace(target: any, attrs: {
|
|
32
|
-
with: DebugHelper;
|
|
33
|
-
}): void;
|
|
34
|
-
static mock(target: object, ...namespaces: Array<string>): {
|
|
35
|
-
original: DebugHelper;
|
|
36
|
-
debug: DebugHelper;
|
|
37
|
-
};
|
|
38
|
-
logger: Debugger;
|
|
39
|
-
tracer: Debugger;
|
|
40
|
-
err: Debugger;
|
|
41
|
-
namespaces: Set<string>;
|
|
42
|
-
constructor(...namespace: Array<string>);
|
|
43
|
-
get entries(): Array<string>;
|
|
44
|
-
get namespace(): string;
|
|
45
|
-
log(message?: any, ...args: Array<any>): DebugHelper;
|
|
46
|
-
trace(message?: any, ...args: Array<any>): DebugHelper;
|
|
47
|
-
error(error: any, ...args: Array<any>): DebugHelper;
|
|
48
|
-
build(): DebugHelper;
|
|
49
|
-
with(...namespace: Array<string>): DebugHelper;
|
|
50
|
-
push(...namespace: Array<string>): DebugHelper;
|
|
51
|
-
unshift(...namespace: Array<string>): DebugHelper;
|
|
52
|
-
reset(...namespace: Array<string>): DebugHelper;
|
|
53
|
-
startWith(...namespace: Array<string>): DebugHelper;
|
|
54
|
-
shift(): DebugHelper;
|
|
55
|
-
pop(): DebugHelper;
|
|
56
|
-
clear(): DebugHelper;
|
|
57
|
-
remove(...namespace: Array<string>): DebugHelper;
|
|
58
|
-
puts(...args: Array<string>): string;
|
|
59
|
-
}
|
|
60
|
-
export {};
|
|
1
|
+
import { Debugger } from 'debug';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
export type Debuggable = {
|
|
4
|
+
debug: DebugHelper;
|
|
5
|
+
};
|
|
6
|
+
type DebugLog = {
|
|
7
|
+
namespace: string;
|
|
8
|
+
message: string;
|
|
9
|
+
args: Array<any>;
|
|
10
|
+
};
|
|
11
|
+
type DebugError = {
|
|
12
|
+
namespace: string;
|
|
13
|
+
error: any;
|
|
14
|
+
args: Array<any>;
|
|
15
|
+
};
|
|
16
|
+
export declare const isDebuggable: (object: any) => object is Debuggable;
|
|
17
|
+
export declare class DebugHelper {
|
|
18
|
+
static logs$: Subject<DebugLog>;
|
|
19
|
+
static traces$: Subject<DebugLog>;
|
|
20
|
+
static errors$: Subject<DebugError>;
|
|
21
|
+
static isDebuggable: (object: any) => object is Debuggable;
|
|
22
|
+
static namespacesFor(target: object): Array<string>;
|
|
23
|
+
static as(...namespaces: Array<string>): DebugHelper;
|
|
24
|
+
static for(target: object, ...namespaces: Array<string>): DebugHelper;
|
|
25
|
+
static from(target: object, ...namespaces: Array<string>): DebugHelper;
|
|
26
|
+
static clonedFrom(target: object, ...namespaces: Array<string>): DebugHelper;
|
|
27
|
+
static clone(target: object, ...namespaces: Array<string>): {
|
|
28
|
+
original: DebugHelper;
|
|
29
|
+
debug: DebugHelper;
|
|
30
|
+
};
|
|
31
|
+
static replace(target: any, attrs: {
|
|
32
|
+
with: DebugHelper;
|
|
33
|
+
}): void;
|
|
34
|
+
static mock(target: object, ...namespaces: Array<string>): {
|
|
35
|
+
original: DebugHelper;
|
|
36
|
+
debug: DebugHelper;
|
|
37
|
+
};
|
|
38
|
+
logger: Debugger;
|
|
39
|
+
tracer: Debugger;
|
|
40
|
+
err: Debugger;
|
|
41
|
+
namespaces: Set<string>;
|
|
42
|
+
constructor(...namespace: Array<string>);
|
|
43
|
+
get entries(): Array<string>;
|
|
44
|
+
get namespace(): string;
|
|
45
|
+
log(message?: any, ...args: Array<any>): DebugHelper;
|
|
46
|
+
trace(message?: any, ...args: Array<any>): DebugHelper;
|
|
47
|
+
error(error: any, ...args: Array<any>): DebugHelper;
|
|
48
|
+
build(): DebugHelper;
|
|
49
|
+
with(...namespace: Array<string>): DebugHelper;
|
|
50
|
+
push(...namespace: Array<string>): DebugHelper;
|
|
51
|
+
unshift(...namespace: Array<string>): DebugHelper;
|
|
52
|
+
reset(...namespace: Array<string>): DebugHelper;
|
|
53
|
+
startWith(...namespace: Array<string>): DebugHelper;
|
|
54
|
+
shift(): DebugHelper;
|
|
55
|
+
pop(): DebugHelper;
|
|
56
|
+
clear(): DebugHelper;
|
|
57
|
+
remove(...namespace: Array<string>): DebugHelper;
|
|
58
|
+
puts(...args: Array<string>): string;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './debug.helper';
|
|
2
|
-
export * from './reflect.helper';
|
|
3
|
-
export * from './class-name.helper';
|
|
4
|
-
export * from './debug-decorator.helper';
|
|
1
|
+
export * from './debug.helper';
|
|
2
|
+
export * from './reflect.helper';
|
|
3
|
+
export * from './class-name.helper';
|
|
4
|
+
export * from './debug-decorator.helper';
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import 'reflect-metadata';
|
|
2
|
-
type Dictionary<T> = {
|
|
3
|
-
[key: string]: T;
|
|
4
|
-
};
|
|
5
|
-
export type MetaArgs = {
|
|
6
|
-
key: keyof MetaStorage | string;
|
|
7
|
-
target: any;
|
|
8
|
-
property?: string | symbol;
|
|
9
|
-
own?: boolean;
|
|
10
|
-
propertyDescriptor?: PropertyDescriptor;
|
|
11
|
-
};
|
|
12
|
-
export type MetaValueArgs<T = any> = MetaArgs & {
|
|
13
|
-
value: T;
|
|
14
|
-
};
|
|
15
|
-
type MetaProperties<T = any> = Dictionary<T>;
|
|
16
|
-
type MetaTargets = Dictionary<MetaProperties>;
|
|
17
|
-
type MetaKeys = Dictionary<MetaTargets>;
|
|
18
|
-
type MetaStorage = {
|
|
19
|
-
value?: any;
|
|
20
|
-
object?: any;
|
|
21
|
-
values?: MetaKeys;
|
|
22
|
-
} & Record<string, any>;
|
|
23
|
-
export declare class ReflectHelper {
|
|
24
|
-
static get items(): MetaStorage;
|
|
25
|
-
static get keys(): Array<string>;
|
|
26
|
-
static has(key: keyof MetaStorage, target?: any, property?: string | symbol): boolean;
|
|
27
|
-
static get<T = any>({ key, target, property, own }: MetaArgs): Array<T>;
|
|
28
|
-
static first<T = any>({ key, target, property, own }: MetaArgs): T;
|
|
29
|
-
static last<T = any>({ key, target, property, own }: MetaArgs): T;
|
|
30
|
-
static set<T = any>({ key, target, property, value, propertyDescriptor }: MetaValueArgs<T>): void;
|
|
31
|
-
static add<T = any>({ key, target, property, value, propertyDescriptor }: MetaValueArgs<T>): void;
|
|
32
|
-
static all<T = any>({ key }: Partial<MetaArgs>): Array<MetaValueArgs<T>>;
|
|
33
|
-
static allFrom(key: string, target: any): any;
|
|
34
|
-
static allValuesFrom(key: string, target: any, property: any): any;
|
|
35
|
-
static delete({ key, target, property }: MetaArgs): boolean;
|
|
36
|
-
static clear(key?: string): void;
|
|
37
|
-
static getType({ target, propertyKey }: {
|
|
38
|
-
target: string;
|
|
39
|
-
propertyKey: string;
|
|
40
|
-
}): any;
|
|
41
|
-
static getReturntype({ target, propertyKey }: {
|
|
42
|
-
target: string;
|
|
43
|
-
propertyKey: string;
|
|
44
|
-
}): any;
|
|
45
|
-
static getAllMethods(target: any): string[];
|
|
46
|
-
private static _items;
|
|
47
|
-
private static put;
|
|
48
|
-
private static remove;
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
type Dictionary<T> = {
|
|
3
|
+
[key: string]: T;
|
|
4
|
+
};
|
|
5
|
+
export type MetaArgs = {
|
|
6
|
+
key: keyof MetaStorage | string;
|
|
7
|
+
target: any;
|
|
8
|
+
property?: string | symbol;
|
|
9
|
+
own?: boolean;
|
|
10
|
+
propertyDescriptor?: PropertyDescriptor;
|
|
11
|
+
};
|
|
12
|
+
export type MetaValueArgs<T = any> = MetaArgs & {
|
|
13
|
+
value: T;
|
|
14
|
+
};
|
|
15
|
+
type MetaProperties<T = any> = Dictionary<T>;
|
|
16
|
+
type MetaTargets = Dictionary<MetaProperties>;
|
|
17
|
+
type MetaKeys = Dictionary<MetaTargets>;
|
|
18
|
+
type MetaStorage = {
|
|
19
|
+
value?: any;
|
|
20
|
+
object?: any;
|
|
21
|
+
values?: MetaKeys;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
export declare class ReflectHelper {
|
|
24
|
+
static get items(): MetaStorage;
|
|
25
|
+
static get keys(): Array<string>;
|
|
26
|
+
static has(key: keyof MetaStorage, target?: any, property?: string | symbol): boolean;
|
|
27
|
+
static get<T = any>({ key, target, property, own }: MetaArgs): Array<T>;
|
|
28
|
+
static first<T = any>({ key, target, property, own }: MetaArgs): T;
|
|
29
|
+
static last<T = any>({ key, target, property, own }: MetaArgs): T;
|
|
30
|
+
static set<T = any>({ key, target, property, value, propertyDescriptor }: MetaValueArgs<T>): void;
|
|
31
|
+
static add<T = any>({ key, target, property, value, propertyDescriptor }: MetaValueArgs<T>): void;
|
|
32
|
+
static all<T = any>({ key }: Partial<MetaArgs>): Array<MetaValueArgs<T>>;
|
|
33
|
+
static allFrom(key: string, target: any): any;
|
|
34
|
+
static allValuesFrom(key: string, target: any, property: any): any;
|
|
35
|
+
static delete({ key, target, property }: MetaArgs): boolean;
|
|
36
|
+
static clear(key?: string): void;
|
|
37
|
+
static getType({ target, propertyKey }: {
|
|
38
|
+
target: string;
|
|
39
|
+
propertyKey: string;
|
|
40
|
+
}): any;
|
|
41
|
+
static getReturntype({ target, propertyKey }: {
|
|
42
|
+
target: string;
|
|
43
|
+
propertyKey: string;
|
|
44
|
+
}): any;
|
|
45
|
+
static getAllMethods(target: any): string[];
|
|
46
|
+
private static _items;
|
|
47
|
+
private static put;
|
|
48
|
+
private static remove;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
package/src/utils/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { add, addBusinessDays, addDays, addMonths, addYears, Duration, endOfDay, format, formatISO9075, parseISO, startOfDay, sub } from 'date-fns';
|
|
2
|
-
import { chunk, each, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, sortBy, unset } from 'lodash';
|
|
3
|
-
export type DateDuration = Duration;
|
|
4
|
-
export * from './decorators';
|
|
5
|
-
export * from './get';
|
|
6
|
-
export * from './helpers';
|
|
7
|
-
export * from './is';
|
|
8
|
-
export * from './is-uuid';
|
|
9
|
-
export * from './log.utils';
|
|
10
|
-
export * from './mixins';
|
|
11
|
-
export * from './parse-datetime';
|
|
12
|
-
export * from './types';
|
|
13
|
-
export { add, addBusinessDays, addDays, addMonths, addYears, chunk, each, endOfDay, format, formatISO9075, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, parseISO, pick, set, sortBy, startOfDay, sub, unset, };
|
|
1
|
+
import { add, addBusinessDays, addDays, addMonths, addYears, Duration, endOfDay, format, formatISO9075, parseISO, startOfDay, sub } from 'date-fns';
|
|
2
|
+
import { chunk, each, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, sortBy, unset } from 'lodash';
|
|
3
|
+
export type DateDuration = Duration;
|
|
4
|
+
export * from './decorators';
|
|
5
|
+
export * from './get';
|
|
6
|
+
export * from './helpers';
|
|
7
|
+
export * from './is';
|
|
8
|
+
export * from './is-uuid';
|
|
9
|
+
export * from './log.utils';
|
|
10
|
+
export * from './mixins';
|
|
11
|
+
export * from './parse-datetime';
|
|
12
|
+
export * from './types';
|
|
13
|
+
export { add, addBusinessDays, addDays, addMonths, addYears, chunk, each, endOfDay, format, formatISO9075, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, parseISO, pick, set, sortBy, startOfDay, sub, unset, };
|
package/src/utils/is-uuid.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isUUID: (value: string) => boolean;
|
|
1
|
+
export declare const isUUID: (value: string) => boolean;
|
package/src/utils/is.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function is<T>(value: any): T;
|
|
1
|
+
export declare function is<T>(value: any): T;
|
package/src/utils/log.utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Debugger } from 'debug';
|
|
2
|
-
export declare enum DebugNamespaces {
|
|
3
|
-
ROOT = "connect",
|
|
4
|
-
TRACE = "trace",
|
|
5
|
-
ERROR = "error"
|
|
6
|
-
}
|
|
7
|
-
export declare const Logger: Debugger;
|
|
1
|
+
import { Debugger } from 'debug';
|
|
2
|
+
export declare enum DebugNamespaces {
|
|
3
|
+
ROOT = "connect",
|
|
4
|
+
TRACE = "trace",
|
|
5
|
+
ERROR = "error"
|
|
6
|
+
}
|
|
7
|
+
export declare const Logger: Debugger;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare class Base {
|
|
2
|
-
constructor(...args: Array<any>);
|
|
3
|
-
}
|
|
1
|
+
export declare class Base {
|
|
2
|
+
constructor(...args: Array<any>);
|
|
3
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './mixin-ctor.type';
|
|
2
|
-
export * from './base.mixin';
|
|
3
|
-
export * from './merge-constructor-params.type';
|
|
1
|
+
export * from './mixin-ctor.type';
|
|
2
|
+
export * from './base.mixin';
|
|
3
|
+
export * from './merge-constructor-params.type';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
type Tail<T extends any[]> = T extends [any, ...infer U] ? U : [];
|
|
2
|
-
export type MergeConstructorParams<NewParams extends any[], CurrentParams extends any[]> = CurrentParams extends [] ? [...NewParams, ...any] : CurrentParams[0] extends never ? [...NewParams, ...any] : [...NewParams, ...Tail<CurrentParams>];
|
|
3
|
-
export {};
|
|
1
|
+
type Tail<T extends any[]> = T extends [any, ...infer U] ? U : [];
|
|
2
|
+
export type MergeConstructorParams<NewParams extends any[], CurrentParams extends any[]> = CurrentParams extends [] ? [...NewParams, ...any] : CurrentParams[0] extends never ? [...NewParams, ...any] : [...NewParams, ...Tail<CurrentParams>];
|
|
3
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type MixinCtor<T = any, A extends any[] = any[]> = new (...args: A) => T;
|
|
1
|
+
export type MixinCtor<T = any, A extends any[] = any[]> = new (...args: A) => T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const parseDateTime: (value: string) => string | Date;
|
|
1
|
+
export declare const parseDateTime: (value: string) => string | Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
|
|
1
|
+
export type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './prop.type';
|
|
2
|
-
export * from './array-element.type';
|
|
1
|
+
export * from './prop.type';
|
|
2
|
+
export * from './array-element.type';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type PropType<TObj, TProp extends keyof TObj> = TObj[TProp];
|
|
1
|
+
export type PropType<TObj, TProp extends keyof TObj> = TObj[TProp];
|