@infrab4a/connect 5.3.5-beta.0 → 5.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +9358 -9422
- package/index.d.ts +1 -1
- package/index.esm.d.ts +1 -0
- package/index.esm.js +9325 -9364
- package/package.json +6 -4
- 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-collection-children.d.ts +13 -13
- package/src/domain/catalog/models/category-filter.d.ts +13 -13
- package/src/domain/catalog/models/category-product.d.ts +8 -8
- package/src/domain/catalog/models/category.d.ts +52 -52
- package/src/domain/catalog/models/enums/brand-equity-options.enum.d.ts +7 -7
- package/src/domain/catalog/models/enums/index.d.ts +5 -5
- package/src/domain/catalog/models/enums/product-genders.enum.d.ts +5 -5
- package/src/domain/catalog/models/enums/product-label.enum.d.ts +6 -6
- package/src/domain/catalog/models/enums/shops.enum.d.ts +6 -6
- package/src/domain/catalog/models/enums/wishlist-log.enum.d.ts +7 -7
- 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/group.d.ts +6 -6
- package/src/domain/catalog/models/index.d.ts +16 -16
- package/src/domain/catalog/models/kit-product.d.ts +13 -13
- package/src/domain/catalog/models/product-base.d.ts +50 -51
- package/src/domain/catalog/models/product-errors.d.ts +16 -16
- package/src/domain/catalog/models/product-review.d.ts +20 -20
- package/src/domain/catalog/models/product-stock-notification.d.ts +12 -12
- package/src/domain/catalog/models/product.d.ts +6 -6
- package/src/domain/catalog/models/types/brand-equity-option.type.d.ts +2 -2
- package/src/domain/catalog/models/types/brands-shop-menu.type.d.ts +13 -13
- 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 +16 -16
- 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 +2 -2
- package/src/domain/catalog/models/types/product-metadata.type.d.ts +4 -4
- package/src/domain/catalog/models/types/product-variant-report.type.d.ts +46 -46
- 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 +8 -8
- 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 +7 -7
- package/src/domain/catalog/repositories/category-product.repository.d.ts +11 -11
- package/src/domain/catalog/repositories/category.repository.d.ts +43 -43
- 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/group.repository.d.ts +4 -4
- package/src/domain/catalog/repositories/index.d.ts +14 -14
- package/src/domain/catalog/repositories/product-errors.repository.d.ts +4 -4
- package/src/domain/catalog/repositories/product-reviews.repository.d.ts +7 -7
- package/src/domain/catalog/repositories/product-stock-notification.repository.d.ts +20 -20
- package/src/domain/catalog/repositories/product.repository.d.ts +40 -40
- package/src/domain/catalog/repositories/subscription-product.repository.d.ts +4 -4
- package/src/domain/catalog/repositories/variant.repository.d.ts +5 -5
- package/src/domain/catalog/repositories/wishlist.repository.d.ts +11 -11
- package/src/domain/general/cacheadapter.d.ts +11 -11
- package/src/domain/general/index.d.ts +5 -5
- package/src/domain/general/models/index.d.ts +2 -2
- package/src/domain/general/models/log-document.d.ts +15 -15
- package/src/domain/general/models/sequences.d.ts +9 -9
- package/src/domain/general/repositories/index.d.ts +2 -2
- package/src/domain/general/repositories/log.repository.d.ts +4 -4
- package/src/domain/general/repositories/sequences.repository.d.ts +4 -4
- package/src/domain/general/search/index.d.ts +1 -1
- package/src/domain/general/search/product-search-index.d.ts +3 -3
- 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 +19 -19
- package/src/domain/generic/repository/get.repository.d.ts +8 -8
- 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 +7 -7
- package/src/domain/generic/repository/types/repository-cache-options.type.d.ts +9 -9
- 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 +19 -19
- 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 +18 -18
- 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-sameday-not-available.d.ts +6 -6
- 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/enums/antifraud-providers.enum.d.ts +6 -6
- package/src/domain/shopping/enums/business-unit.enum.d.ts +4 -4
- package/src/domain/shopping/enums/index.d.ts +8 -8
- package/src/domain/shopping/enums/order-blocked.enum.d.ts +5 -5
- package/src/domain/shopping/enums/pagarme-payment-status.enum.d.ts +10 -10
- package/src/domain/shopping/enums/pagarme-v5-payment-status.enum.d.ts +24 -24
- package/src/domain/shopping/enums/payment-methods.enum.d.ts +6 -6
- package/src/domain/shopping/enums/payment-providers.enum.d.ts +5 -5
- package/src/domain/shopping/enums/transaction-payment-methods.enum.d.ts +5 -5
- package/src/domain/shopping/factories/adyen-payment-method.factory.d.ts +9 -9
- package/src/domain/shopping/factories/antifraud-provider.factory.d.ts +15 -15
- package/src/domain/shopping/factories/base-payment-method.factory.d.ts +7 -7
- package/src/domain/shopping/factories/glampoints-payment-method.factory.d.ts +8 -8
- package/src/domain/shopping/factories/index.d.ts +5 -5
- package/src/domain/shopping/factories/pagarme-payment-method.factory.d.ts +11 -11
- package/src/domain/shopping/factories/payment-provider.factory.d.ts +15 -15
- package/src/domain/shopping/index.d.ts +7 -7
- package/src/domain/shopping/interfaces/antifraud-method-factory.interface.d.ts +11 -11
- package/src/domain/shopping/interfaces/antifraud-provider.interface.d.ts +5 -5
- package/src/domain/shopping/interfaces/index.d.ts +7 -7
- package/src/domain/shopping/interfaces/payment-method-factory.interface.d.ts +14 -14
- package/src/domain/shopping/interfaces/payment-provider-bank-slip.interface.d.ts +7 -7
- package/src/domain/shopping/interfaces/payment-provider-card.interface.d.ts +21 -21
- package/src/domain/shopping/interfaces/payment-provider-glampoints.interface.d.ts +9 -9
- package/src/domain/shopping/interfaces/payment-provider-pix.interface.d.ts +5 -5
- package/src/domain/shopping/models/buy-2-win.d.ts +20 -20
- 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 +67 -67
- package/src/domain/shopping/models/coupons/enums/coupon-category.enum.d.ts +41 -41
- package/src/domain/shopping/models/coupons/enums/coupon-channels.enum.d.ts +10 -10
- 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 +5 -5
- package/src/domain/shopping/models/coupons/enums/exclusivities.enum.d.ts +8 -8
- package/src/domain/shopping/models/coupons/enums/index.d.ts +5 -5
- package/src/domain/shopping/models/coupons/index.d.ts +2 -2
- package/src/domain/shopping/models/coupons/types/coupon-category.type.d.ts +2 -2
- package/src/domain/shopping/models/coupons/types/coupon-channel.type.d.ts +2 -2
- package/src/domain/shopping/models/coupons/types/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 +14 -14
- package/src/domain/shopping/models/line-item.d.ts +10 -10
- package/src/domain/shopping/models/order-blocked.d.ts +24 -24
- package/src/domain/shopping/models/order.d.ts +17 -17
- package/src/domain/shopping/models/payment-transaction.d.ts +82 -82
- package/src/domain/shopping/models/payment.d.ts +16 -16
- package/src/domain/shopping/models/shipping-method.d.ts +21 -21
- 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 +14 -14
- 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/services/antifraud-bankslip.service.d.ts +9 -9
- package/src/domain/shopping/services/antifraud-card.service.d.ts +35 -35
- package/src/domain/shopping/services/antifraud-glampoints.service.d.ts +6 -6
- package/src/domain/shopping/services/antifraud-pix.service.d.ts +6 -6
- package/src/domain/shopping/services/glampoints-payment.service.d.ts +13 -13
- package/src/domain/shopping/services/index.d.ts +5 -5
- package/src/domain/shopping/types/adyen-card.type.d.ts +3 -3
- package/src/domain/shopping/types/adyen-credentials.type.d.ts +6 -6
- package/src/domain/shopping/types/antifraud-provider.type.d.ts +2 -2
- package/src/domain/shopping/types/base-card.type.d.ts +2 -2
- package/src/domain/shopping/types/card-info.type.d.ts +9 -9
- package/src/domain/shopping/types/checkout-paylod-request.type.d.ts +15 -15
- package/src/domain/shopping/types/checkout-response.type.d.ts +7 -7
- package/src/domain/shopping/types/checkout-stock-validation.type.d.ts +5 -5
- package/src/domain/shopping/types/glam-credentials.type.d.ts +6 -6
- package/src/domain/shopping/types/index.d.ts +17 -17
- package/src/domain/shopping/types/order-tracking-events.type.d.ts +14 -14
- package/src/domain/shopping/types/pagarme-card-manual-hash.type.d.ts +6 -6
- package/src/domain/shopping/types/pagarme-card.type.d.ts +22 -22
- package/src/domain/shopping/types/pagarme-credentials-v5.type.d.ts +4 -4
- package/src/domain/shopping/types/pagarme-credentials.type.d.ts +13 -13
- package/src/domain/shopping/types/payment-card-info.type.d.ts +7 -7
- package/src/domain/shopping/types/payment-method.type.d.ts +2 -2
- package/src/domain/shopping/types/payment-provider.type.d.ts +2 -2
- package/src/domain/shopping/types/shipping-method-response.type.d.ts +13 -13
- package/src/domain/shopping/types/shipping-product-request.type.d.ts +9 -9
- 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 +32 -32
- 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 +7 -7
- package/src/domain/users/models/user-payment-method.d.ts +16 -16
- 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/business.error.d.ts +7 -7
- package/src/errors/duplicated-results.error.d.ts +4 -4
- package/src/errors/fraud-validation.error.d.ts +7 -7
- package/src/errors/index.d.ts +10 -10
- package/src/errors/invalid-argument.error.d.ts +4 -4
- package/src/errors/not-found.error.d.ts +4 -4
- package/src/errors/payment.error.d.ts +7 -7
- package/src/errors/required-argument.error.d.ts +6 -6
- package/src/errors/stock-limit.error.d.ts +5 -5
- package/src/errors/stock-out.error.d.ts +5 -5
- package/src/errors/types/checkout-additional-data-erro.type.d.ts +6 -6
- package/src/errors/types/index.d.ts +2 -2
- package/src/errors/types/pagarme-erros.type.d.ts +9 -9
- package/src/index.d.ts +5 -5
- package/src/infra/adyen/adapters/adyen-card-payment-axios.adapter.d.ts +19 -19
- package/src/infra/adyen/adapters/index.d.ts +1 -1
- package/src/infra/adyen/helpers/adyen-blocked-order.helper.d.ts +13 -13
- package/src/infra/adyen/helpers/adyen-payment-factory.helper.d.ts +6 -6
- package/src/infra/adyen/helpers/adyen-payment-operations.helper.d.ts +31 -31
- package/src/infra/adyen/helpers/index.d.ts +3 -3
- package/src/infra/adyen/index.d.ts +1 -1
- package/src/infra/cache/index.d.ts +1 -1
- package/src/infra/cache/restcache.adapter.d.ts +15 -15
- 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/helpers/elasticsearch-fields.helper.d.ts +8 -8
- package/src/infra/elasticsearch/helpers/elasticsearch-query-builder.helper.d.ts +16 -16
- package/src/infra/elasticsearch/helpers/elasticsearch-result-processor.helper.d.ts +8 -8
- package/src/infra/elasticsearch/helpers/elasticsearch-search-operations.helper.d.ts +11 -11
- package/src/infra/elasticsearch/helpers/index.d.ts +4 -4
- 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/helpers/cache-key-generator.helper.d.ts +9 -9
- package/src/infra/firebase/firestore/mixins/helpers/firestore-cache.helper.d.ts +41 -41
- package/src/infra/firebase/firestore/mixins/helpers/firestore-data-converter.helper.d.ts +7 -7
- package/src/infra/firebase/firestore/mixins/helpers/firestore-model-converter.helper.d.ts +14 -14
- package/src/infra/firebase/firestore/mixins/helpers/firestore-operations.helper.d.ts +24 -24
- package/src/infra/firebase/firestore/mixins/helpers/firestore-query-builder.helper.d.ts +37 -37
- package/src/infra/firebase/firestore/mixins/helpers/index.d.ts +4 -4
- 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 +14 -14
- 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 +8 -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 +33 -33
- package/src/infra/firebase/firestore/repositories/catalog/group-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/catalog/index.d.ts +5 -5
- package/src/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +18 -18
- package/src/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +13 -13
- package/src/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/general/index.d.ts +2 -2
- package/src/infra/firebase/firestore/repositories/general/log-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/general/sequences-firestore.repository.d.ts +7 -7
- package/src/infra/firebase/firestore/repositories/index.d.ts +5 -5
- 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.d.ts +16 -16
- 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 +21 -21
- 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/factories/create-hasura-class.factory.d.ts +30 -30
- package/src/infra/hasura-graphql/mixins/factories/delete-hasura-class.factory.d.ts +26 -26
- package/src/infra/hasura-graphql/mixins/factories/find-hasura-class.factory.d.ts +31 -31
- package/src/infra/hasura-graphql/mixins/factories/get-hasura-class.factory.d.ts +29 -29
- package/src/infra/hasura-graphql/mixins/factories/hasura-graphql-class.factory.d.ts +40 -40
- package/src/infra/hasura-graphql/mixins/factories/index.d.ts +6 -6
- package/src/infra/hasura-graphql/mixins/factories/update-hasura-class.factory.d.ts +36 -36
- package/src/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +13 -19
- package/src/infra/hasura-graphql/mixins/helpers/bind-filter-query.helper.d.ts +10 -10
- package/src/infra/hasura-graphql/mixins/helpers/cache-key-generator.helper.d.ts +6 -6
- package/src/infra/hasura-graphql/mixins/helpers/create/hasura-column.helper.d.ts +7 -7
- package/src/infra/hasura-graphql/mixins/helpers/create/hasura-create-operations.helper.d.ts +16 -16
- package/src/infra/hasura-graphql/mixins/helpers/create/index.d.ts +2 -2
- package/src/infra/hasura-graphql/mixins/helpers/delete/hasura-cache-operations.helper.d.ts +9 -9
- package/src/infra/hasura-graphql/mixins/helpers/delete/hasura-delete-operations.helper.d.ts +15 -15
- package/src/infra/hasura-graphql/mixins/helpers/delete/hasura-delete-variables.helper.d.ts +10 -10
- package/src/infra/hasura-graphql/mixins/helpers/delete/index.d.ts +3 -3
- package/src/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +8 -10
- package/src/infra/hasura-graphql/mixins/helpers/find/hasura-find-binding.helper.d.ts +18 -18
- package/src/infra/hasura-graphql/mixins/helpers/find/hasura-find-cache.helper.d.ts +25 -25
- package/src/infra/hasura-graphql/mixins/helpers/find/hasura-find-operations.helper.d.ts +20 -20
- package/src/infra/hasura-graphql/mixins/helpers/find/hasura-find-query-builder.helper.d.ts +14 -14
- package/src/infra/hasura-graphql/mixins/helpers/find/hasura-find-result.helper.d.ts +26 -26
- package/src/infra/hasura-graphql/mixins/helpers/find/hasura-find-variables.helper.d.ts +21 -21
- package/src/infra/hasura-graphql/mixins/helpers/find/index.d.ts +6 -6
- package/src/infra/hasura-graphql/mixins/helpers/get/hasura-get-cache.helper.d.ts +21 -21
- package/src/infra/hasura-graphql/mixins/helpers/get/hasura-get-operations.helper.d.ts +18 -18
- package/src/infra/hasura-graphql/mixins/helpers/get/hasura-get-variables.helper.d.ts +9 -9
- package/src/infra/hasura-graphql/mixins/helpers/get/index.d.ts +3 -3
- package/src/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +10 -12
- package/src/infra/hasura-graphql/mixins/helpers/hasura-auth.helper.d.ts +4 -4
- package/src/infra/hasura-graphql/mixins/helpers/hasura-data-converter.helper.d.ts +8 -8
- package/src/infra/hasura-graphql/mixins/helpers/hasura-graphql-operations.helper.d.ts +32 -32
- package/src/infra/hasura-graphql/mixins/helpers/hasura-query-builder.helper.d.ts +23 -23
- package/src/infra/hasura-graphql/mixins/helpers/hasura-request.helper.d.ts +11 -11
- package/src/infra/hasura-graphql/mixins/helpers/index.d.ts +16 -16
- package/src/infra/hasura-graphql/mixins/helpers/md5-generator.helper.d.ts +4 -4
- package/src/infra/hasura-graphql/mixins/helpers/update/hasura-update-data.helper.d.ts +6 -6
- package/src/infra/hasura-graphql/mixins/helpers/update/hasura-update-operations.helper.d.ts +18 -18
- package/src/infra/hasura-graphql/mixins/helpers/update/hasura-update-variables.helper.d.ts +25 -25
- package/src/infra/hasura-graphql/mixins/helpers/update/index.d.ts +3 -3
- package/src/infra/hasura-graphql/mixins/index.d.ts +7 -7
- package/src/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +5 -5
- package/src/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +7 -7
- package/src/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +5 -5
- package/src/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +4 -4
- package/src/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +5 -5
- package/src/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +6 -6
- package/src/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +6 -6
- package/src/infra/hasura-graphql/models/category-hasura-graphql.d.ts +6 -6
- package/src/infra/hasura-graphql/models/index.d.ts +5 -5
- package/src/infra/hasura-graphql/models/kit-product-hasura-graphql.d.ts +5 -5
- package/src/infra/hasura-graphql/models/product-errors-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 +8 -8
- 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 +8 -8
- package/src/infra/hasura-graphql/repositories/catalog/category-filter-hasura-graphql.repository.d.ts +11 -11
- package/src/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +38 -38
- package/src/infra/hasura-graphql/repositories/catalog/category-product-hasura-graphql.repository.d.ts +14 -14
- package/src/infra/hasura-graphql/repositories/catalog/filter-hasura-graphql.repository.d.ts +16 -16
- package/src/infra/hasura-graphql/repositories/catalog/filter-option-hasura-graphql.repository.d.ts +8 -8
- package/src/infra/hasura-graphql/repositories/catalog/helpers/category-cache-operations.helper.d.ts +31 -31
- package/src/infra/hasura-graphql/repositories/catalog/helpers/category-filter-operations.helper.d.ts +17 -17
- package/src/infra/hasura-graphql/repositories/catalog/helpers/category-home-operations.helper.d.ts +32 -32
- package/src/infra/hasura-graphql/repositories/catalog/helpers/category-mount-operations.helper.d.ts +19 -19
- package/src/infra/hasura-graphql/repositories/catalog/helpers/category-product-operations.helper.d.ts +62 -62
- package/src/infra/hasura-graphql/repositories/catalog/helpers/index.d.ts +10 -10
- package/src/infra/hasura-graphql/repositories/catalog/helpers/product-fetch-reviews.helper.d.ts +17 -17
- package/src/infra/hasura-graphql/repositories/catalog/helpers/product-review-cache.helper.d.ts +28 -28
- package/src/infra/hasura-graphql/repositories/catalog/helpers/product-review-operations.helper.d.ts +20 -20
- package/src/infra/hasura-graphql/repositories/catalog/helpers/product-review-update.helper.d.ts +20 -20
- package/src/infra/hasura-graphql/repositories/catalog/helpers/product-variant-report.helper.d.ts +9 -9
- package/src/infra/hasura-graphql/repositories/catalog/index.d.ts +12 -12
- package/src/infra/hasura-graphql/repositories/catalog/product-errors-hasura-graphql.repository.d.ts +13 -13
- package/src/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +45 -45
- package/src/infra/hasura-graphql/repositories/catalog/product-review-hasura-graphql.repository.d.ts +11 -11
- package/src/infra/hasura-graphql/repositories/catalog/product-stock-notification-hasura-graphql.repository.d.ts +22 -22
- package/src/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts +13 -13
- 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 +25 -25
- 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 +7 -7
- package/src/infra/pagarme/adapters/helpers/index.d.ts +5 -5
- package/src/infra/pagarme/adapters/helpers/pagarme-blocked-order.helper.d.ts +14 -14
- package/src/infra/pagarme/adapters/helpers/pagarme-payment-factory.helper.d.ts +11 -11
- package/src/infra/pagarme/adapters/helpers/pagarme-payment-operations.helper.d.ts +12 -12
- package/src/infra/pagarme/adapters/helpers/pagarme-v5-request.helper.d.ts +12 -12
- package/src/infra/pagarme/adapters/helpers/pagarme-v5-response.helper.d.ts +10 -10
- package/src/infra/pagarme/adapters/index.d.ts +2 -2
- package/src/infra/pagarme/adapters/v4/index.d.ts +3 -3
- package/src/infra/pagarme/adapters/v4/pagarme-bank-slip-payment-axios.adapter.d.ts +12 -12
- package/src/infra/pagarme/adapters/v4/pagarme-card-payment-axios.adapter.d.ts +18 -18
- package/src/infra/pagarme/adapters/v4/pagarme-pix-payment-axios.adapter.d.ts +11 -11
- package/src/infra/pagarme/adapters/v5/index.d.ts +3 -3
- package/src/infra/pagarme/adapters/v5/pagarmev5-bank-slip-payment-axios.adapter.d.ts +11 -11
- package/src/infra/pagarme/adapters/v5/pagarmev5-card-payment-axios.adapter.d.ts +24 -24
- package/src/infra/pagarme/adapters/v5/pagarmev5-pix-payment-axios.adapter.d.ts +10 -10
- package/src/infra/pagarme/index.d.ts +2 -2
- package/src/infra/pagarme/types/index.d.ts +1 -1
- package/src/infra/pagarme/types/v5/index.d.ts +4 -4
- package/src/infra/pagarme/types/v5/pagarmev5-customer.type.d.ts +19 -19
- package/src/infra/pagarme/types/v5/pagarmev5-order-request-payload.type.d.ts +89 -89
- package/src/infra/pagarme/types/v5/pagarmev5-order-response.type.d.ts +126 -126
- package/src/infra/pagarme/types/v5/pagarmev5-postback-response.type.d.ts +11 -11
- package/src/infra/vertex-ai/adapters/index.d.ts +2 -2
- package/src/infra/vertex-ai/adapters/vertex-ai-search.adapter.d.ts +10 -10
- package/src/infra/vertex-ai/adapters/vertex-axios.adapter.d.ts +15 -15
- package/src/infra/vertex-ai/index.d.ts +3 -3
- package/src/infra/vertex-ai/indexes/index.d.ts +1 -1
- package/src/infra/vertex-ai/indexes/products-vertex-search.d.ts +13 -13
- package/src/infra/vertex-ai/types/axios-vertex-search-config.d.ts +4 -4
- package/src/infra/vertex-ai/types/index.d.ts +3 -3
- package/src/infra/vertex-ai/types/product-bulk.d.ts +4 -4
- package/src/infra/vertex-ai/types/product-search.d.ts +21 -21
- package/src/utils/circular-dependencies.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 +17 -17
- 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/obs-emitter.d.ts +15 -15
- package/src/utils/parse-datetime.d.ts +1 -1
- package/src/utils/serialize.d.ts +2 -2
- 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
package/src/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Subscription, SubscriptionRepository } from '../../../../../domain';
|
|
2
|
-
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
-
declare const SubscriptionFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<Subscription> & import("../../../../../domain").CrudRepository<Subscription, import("../../../../../domain").CrudParams<Subscription>> & import("../..").FirestoreHelpers, [FirestoreConstructorParams<Subscription>, ...any[]]>;
|
|
4
|
-
export declare class SubscriptionFirestoreRepository extends SubscriptionFirestoreRepository_base implements SubscriptionRepository {
|
|
5
|
-
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<Subscription>, 'firestore' | 'interceptors' | 'cache'>);
|
|
6
|
-
}
|
|
7
|
-
export {};
|
|
1
|
+
import { Subscription, SubscriptionRepository } from '../../../../../domain';
|
|
2
|
+
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
+
declare const SubscriptionFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<Subscription> & import("../../../../../domain").CrudRepository<Subscription, import("../../../../../domain").CrudParams<Subscription>> & import("../..").FirestoreHelpers, [FirestoreConstructorParams<Subscription>, ...any[]]>;
|
|
4
|
+
export declare class SubscriptionFirestoreRepository extends SubscriptionFirestoreRepository_base implements SubscriptionRepository {
|
|
5
|
+
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<Subscription>, 'firestore' | 'interceptors' | 'cache'>);
|
|
6
|
+
}
|
|
7
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SubscriptionMaterialization, SubscriptionMaterializationRepository } from '../../../../../domain';
|
|
2
|
-
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
-
declare const SubscriptionMaterializationFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<SubscriptionMaterialization> & import("../../../../../domain").CrudRepository<SubscriptionMaterialization, import("../../../../../domain").CrudParams<SubscriptionMaterialization>> & import("../..").FirestoreHelpers, [FirestoreConstructorParams<SubscriptionMaterialization>, ...any[]]>;
|
|
4
|
-
export declare class SubscriptionMaterializationFirestoreRepository extends SubscriptionMaterializationFirestoreRepository_base implements SubscriptionMaterializationRepository {
|
|
5
|
-
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<SubscriptionMaterialization>, 'firestore' | 'interceptors' | 'cache'>);
|
|
6
|
-
}
|
|
7
|
-
export {};
|
|
1
|
+
import { SubscriptionMaterialization, SubscriptionMaterializationRepository } from '../../../../../domain';
|
|
2
|
+
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
+
declare const SubscriptionMaterializationFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<SubscriptionMaterialization> & import("../../../../../domain").CrudRepository<SubscriptionMaterialization, import("../../../../../domain").CrudParams<SubscriptionMaterialization>> & import("../..").FirestoreHelpers, [FirestoreConstructorParams<SubscriptionMaterialization>, ...any[]]>;
|
|
4
|
+
export declare class SubscriptionMaterializationFirestoreRepository extends SubscriptionMaterializationFirestoreRepository_base implements SubscriptionMaterializationRepository {
|
|
5
|
+
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<SubscriptionMaterialization>, 'firestore' | 'interceptors' | 'cache'>);
|
|
6
|
+
}
|
|
7
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Subscription, SubscriptionPayment, SubscriptionPaymentRepository } from '../../../../../domain';
|
|
2
|
-
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
-
import { SubscriptionFirestoreRepository } from './subscription-firestore.repository';
|
|
4
|
-
declare const SubscriptionPaymentFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<SubscriptionPayment> & import("../../../../../domain").CrudRepository<SubscriptionPayment, import("../../../../../domain").CrudParams<SubscriptionPayment>> & import("../..").FirestoreHelpers & {
|
|
5
|
-
readonly parentRepository: import("../..").FirestoreRepository<Subscription>;
|
|
6
|
-
parentIdField: "id" | "subscriptionId";
|
|
7
|
-
}, [FirestoreConstructorParams<SubscriptionPayment> & import("../../mixins").FirestoreSubCollectionConstructorParams<SubscriptionPayment>, ...any[]]>;
|
|
8
|
-
export declare class SubscriptionPaymentFirestoreRepository extends SubscriptionPaymentFirestoreRepository_base implements SubscriptionPaymentRepository {
|
|
9
|
-
readonly parentRepository: SubscriptionFirestoreRepository;
|
|
10
|
-
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<SubscriptionPayment>, 'firestore' | 'interceptors' | 'cache'>, parentRepository: SubscriptionFirestoreRepository);
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
1
|
+
import { Subscription, SubscriptionPayment, SubscriptionPaymentRepository } from '../../../../../domain';
|
|
2
|
+
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
+
import { SubscriptionFirestoreRepository } from './subscription-firestore.repository';
|
|
4
|
+
declare const SubscriptionPaymentFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<SubscriptionPayment> & import("../../../../../domain").CrudRepository<SubscriptionPayment, import("../../../../../domain").CrudParams<SubscriptionPayment>> & import("../..").FirestoreHelpers & {
|
|
5
|
+
readonly parentRepository: import("../..").FirestoreRepository<Subscription>;
|
|
6
|
+
parentIdField: "id" | "subscriptionId";
|
|
7
|
+
}, [FirestoreConstructorParams<SubscriptionPayment> & import("../../mixins").FirestoreSubCollectionConstructorParams<SubscriptionPayment>, ...any[]]>;
|
|
8
|
+
export declare class SubscriptionPaymentFirestoreRepository extends SubscriptionPaymentFirestoreRepository_base implements SubscriptionPaymentRepository {
|
|
9
|
+
readonly parentRepository: SubscriptionFirestoreRepository;
|
|
10
|
+
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<SubscriptionPayment>, 'firestore' | 'interceptors' | 'cache'>, parentRepository: SubscriptionFirestoreRepository);
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SubscriptionSummary, SubscriptionSummaryRepository } from '../../../../../domain';
|
|
2
|
-
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
-
declare const SubscriptionSummaryFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<SubscriptionSummary> & import("../../../../../domain").CrudRepository<SubscriptionSummary, import("../../../../../domain").CrudParams<SubscriptionSummary>> & import("../..").FirestoreHelpers, [FirestoreConstructorParams<SubscriptionSummary>, ...any[]]>;
|
|
4
|
-
export declare class SubscriptionSummaryFirestoreRepository extends SubscriptionSummaryFirestoreRepository_base implements SubscriptionSummaryRepository {
|
|
5
|
-
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<SubscriptionSummary>, 'firestore' | 'interceptors' | 'cache'>);
|
|
6
|
-
}
|
|
7
|
-
export {};
|
|
1
|
+
import { SubscriptionSummary, SubscriptionSummaryRepository } from '../../../../../domain';
|
|
2
|
+
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
+
declare const SubscriptionSummaryFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<SubscriptionSummary> & import("../../../../../domain").CrudRepository<SubscriptionSummary, import("../../../../../domain").CrudParams<SubscriptionSummary>> & import("../..").FirestoreHelpers, [FirestoreConstructorParams<SubscriptionSummary>, ...any[]]>;
|
|
4
|
+
export declare class SubscriptionSummaryFirestoreRepository extends SubscriptionSummaryFirestoreRepository_base implements SubscriptionSummaryRepository {
|
|
5
|
+
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<SubscriptionSummary>, 'firestore' | 'interceptors' | 'cache'>);
|
|
6
|
+
}
|
|
7
|
+
export {};
|
package/src/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { User, UserAddress, UserAddressRepository } from '../../../../../domain';
|
|
2
|
-
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
-
import { UserFirestoreRepository } from './user-firestore.repository';
|
|
4
|
-
declare const UserAddressFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<UserAddress> & import("../../../../../domain").CrudRepository<UserAddress, import("../../../../../domain").CrudParams<UserAddress>> & import("../..").FirestoreHelpers & {
|
|
5
|
-
readonly parentRepository: import("../..").FirestoreRepository<User>;
|
|
6
|
-
parentIdField: "id" | "userId";
|
|
7
|
-
}, [FirestoreConstructorParams<UserAddress> & import("../../mixins").FirestoreSubCollectionConstructorParams<UserAddress>, ...any[]]>;
|
|
8
|
-
export declare class UserAddressFirestoreRepository extends UserAddressFirestoreRepository_base implements UserAddressRepository {
|
|
9
|
-
readonly parentRepository: UserFirestoreRepository;
|
|
10
|
-
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<UserAddress>, 'firestore' | 'interceptors' | 'cache'>, parentRepository: UserFirestoreRepository);
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
1
|
+
import { User, UserAddress, UserAddressRepository } from '../../../../../domain';
|
|
2
|
+
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
+
import { UserFirestoreRepository } from './user-firestore.repository';
|
|
4
|
+
declare const UserAddressFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<UserAddress> & import("../../../../../domain").CrudRepository<UserAddress, import("../../../../../domain").CrudParams<UserAddress>> & import("../..").FirestoreHelpers & {
|
|
5
|
+
readonly parentRepository: import("../..").FirestoreRepository<User>;
|
|
6
|
+
parentIdField: "id" | "userId";
|
|
7
|
+
}, [FirestoreConstructorParams<UserAddress> & import("../../mixins").FirestoreSubCollectionConstructorParams<UserAddress>, ...any[]]>;
|
|
8
|
+
export declare class UserAddressFirestoreRepository extends UserAddressFirestoreRepository_base implements UserAddressRepository {
|
|
9
|
+
readonly parentRepository: UserFirestoreRepository;
|
|
10
|
+
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<UserAddress>, 'firestore' | 'interceptors' | 'cache'>, parentRepository: UserFirestoreRepository);
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BeautyProfile, BeautyProfileRepository, User } from '../../../../../domain';
|
|
2
|
-
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
-
import { UserFirestoreRepository } from './user-firestore.repository';
|
|
4
|
-
declare const UserBeautyProfileFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<BeautyProfile> & import("../../../../../domain").CrudRepository<BeautyProfile, import("../../../../../domain").CrudParams<BeautyProfile>> & import("../..").FirestoreHelpers & {
|
|
5
|
-
readonly parentRepository: import("../..").FirestoreRepository<User>;
|
|
6
|
-
parentIdField: "id" | "userId";
|
|
7
|
-
}, [FirestoreConstructorParams<BeautyProfile> & import("../../mixins").FirestoreSubCollectionConstructorParams<BeautyProfile>, ...any[]]>;
|
|
8
|
-
export declare class UserBeautyProfileFirestoreRepository extends UserBeautyProfileFirestoreRepository_base implements BeautyProfileRepository {
|
|
9
|
-
readonly parentRepository: UserFirestoreRepository;
|
|
10
|
-
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<BeautyProfile>, 'firestore' | 'interceptors' | 'cache'>, parentRepository: UserFirestoreRepository);
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
1
|
+
import { BeautyProfile, BeautyProfileRepository, User } from '../../../../../domain';
|
|
2
|
+
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
+
import { UserFirestoreRepository } from './user-firestore.repository';
|
|
4
|
+
declare const UserBeautyProfileFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<BeautyProfile> & import("../../../../../domain").CrudRepository<BeautyProfile, import("../../../../../domain").CrudParams<BeautyProfile>> & import("../..").FirestoreHelpers & {
|
|
5
|
+
readonly parentRepository: import("../..").FirestoreRepository<User>;
|
|
6
|
+
parentIdField: "id" | "userId";
|
|
7
|
+
}, [FirestoreConstructorParams<BeautyProfile> & import("../../mixins").FirestoreSubCollectionConstructorParams<BeautyProfile>, ...any[]]>;
|
|
8
|
+
export declare class UserBeautyProfileFirestoreRepository extends UserBeautyProfileFirestoreRepository_base implements BeautyProfileRepository {
|
|
9
|
+
readonly parentRepository: UserFirestoreRepository;
|
|
10
|
+
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<BeautyProfile>, 'firestore' | 'interceptors' | 'cache'>, parentRepository: UserFirestoreRepository);
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { User, UserRepository } from '../../../../../domain';
|
|
2
|
-
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
-
import { ConnectDocumentData, ConnectDocumentSnapshot } from '../../types';
|
|
4
|
-
declare const UserFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../../types").FirestoreRepository<User> & import("../../../../../domain").CrudRepository<User, import("../../../../../domain").CrudParams<User>> & import("../../types").FirestoreHelpers, [FirestoreConstructorParams<User>, ...any[]]>;
|
|
5
|
-
export declare class UserFirestoreRepository extends UserFirestoreRepository_base implements UserRepository {
|
|
6
|
-
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<User>, 'firestore' | 'interceptors' | 'cache'>);
|
|
7
|
-
get(identifiers: Partial<User>): Promise<User>;
|
|
8
|
-
checkIfExistsByField(field: string, value: string): Promise<boolean>;
|
|
9
|
-
buildModelInstance(): {
|
|
10
|
-
toFirestore: (data: User) => ConnectDocumentData<User>;
|
|
11
|
-
fromFirestore: (snap: ConnectDocumentSnapshot<User>) => User;
|
|
12
|
-
};
|
|
13
|
-
private getBeautyProfile;
|
|
14
|
-
private checkIfIsSubscriber;
|
|
15
|
-
private buildBeautyProfileModelInstance;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
1
|
+
import { User, UserRepository } from '../../../../../domain';
|
|
2
|
+
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
+
import { ConnectDocumentData, ConnectDocumentSnapshot } from '../../types';
|
|
4
|
+
declare const UserFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../../types").FirestoreRepository<User> & import("../../../../../domain").CrudRepository<User, import("../../../../../domain").CrudParams<User>> & import("../../types").FirestoreHelpers, [FirestoreConstructorParams<User>, ...any[]]>;
|
|
5
|
+
export declare class UserFirestoreRepository extends UserFirestoreRepository_base implements UserRepository {
|
|
6
|
+
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<User>, 'firestore' | 'interceptors' | 'cache'>);
|
|
7
|
+
get(identifiers: Partial<User>): Promise<User>;
|
|
8
|
+
checkIfExistsByField(field: string, value: string): Promise<boolean>;
|
|
9
|
+
buildModelInstance(): {
|
|
10
|
+
toFirestore: (data: User) => ConnectDocumentData<User>;
|
|
11
|
+
fromFirestore: (snap: ConnectDocumentSnapshot<User>) => User;
|
|
12
|
+
};
|
|
13
|
+
private getBeautyProfile;
|
|
14
|
+
private checkIfIsSubscriber;
|
|
15
|
+
private buildBeautyProfileModelInstance;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { User, UserPaymentMethod, UserPaymentMethodRepository } from '../../../../../domain';
|
|
2
|
-
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
-
import { UserFirestoreRepository } from './user-firestore.repository';
|
|
4
|
-
declare const UserPaymentMethodFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<UserPaymentMethod> & import("../../../../../domain").CrudRepository<UserPaymentMethod, import("../../../../../domain").CrudParams<UserPaymentMethod>> & import("../..").FirestoreHelpers & {
|
|
5
|
-
readonly parentRepository: import("../..").FirestoreRepository<User>;
|
|
6
|
-
parentIdField: "id" | "userId";
|
|
7
|
-
}, [FirestoreConstructorParams<UserPaymentMethod> & import("../../mixins").FirestoreSubCollectionConstructorParams<UserPaymentMethod>, ...any[]]>;
|
|
8
|
-
export declare class UserPaymentMethodFirestoreRepository extends UserPaymentMethodFirestoreRepository_base implements UserPaymentMethodRepository {
|
|
9
|
-
readonly parentRepository: UserFirestoreRepository;
|
|
10
|
-
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<UserPaymentMethod>, 'firestore' | 'interceptors' | 'cache'>, parentRepository: UserFirestoreRepository);
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
1
|
+
import { User, UserPaymentMethod, UserPaymentMethodRepository } from '../../../../../domain';
|
|
2
|
+
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
+
import { UserFirestoreRepository } from './user-firestore.repository';
|
|
4
|
+
declare const UserPaymentMethodFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<UserPaymentMethod> & import("../../../../../domain").CrudRepository<UserPaymentMethod, import("../../../../../domain").CrudParams<UserPaymentMethod>> & import("../..").FirestoreHelpers & {
|
|
5
|
+
readonly parentRepository: import("../..").FirestoreRepository<User>;
|
|
6
|
+
parentIdField: "id" | "userId";
|
|
7
|
+
}, [FirestoreConstructorParams<UserPaymentMethod> & import("../../mixins").FirestoreSubCollectionConstructorParams<UserPaymentMethod>, ...any[]]>;
|
|
8
|
+
export declare class UserPaymentMethodFirestoreRepository extends UserPaymentMethodFirestoreRepository_base implements UserPaymentMethodRepository {
|
|
9
|
+
readonly parentRepository: UserFirestoreRepository;
|
|
10
|
+
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<UserPaymentMethod>, 'firestore' | 'interceptors' | 'cache'>, parentRepository: UserFirestoreRepository);
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ConnectQuerySnapshot, ConnectWhereOption } from '../types';
|
|
2
|
-
import { ConnectDocumentData } from '../types/connect-firestore/connect-document-data.type';
|
|
3
|
-
import { ConnectDocumentSnapshot, ConnectSnapshotOptions } from '../types/connect-firestore/connect-document-snapshot.type';
|
|
4
|
-
import { ConnectDocumentReference } from './connect-document-reference';
|
|
5
|
-
export interface ConnectCollectionReference<T extends ConnectDocumentData> {
|
|
6
|
-
add(data: Partial<T>, id?: string): Promise<ConnectDocumentReference<T>>;
|
|
7
|
-
where(attribute: string, operator: ConnectWhereOption, value: any): ConnectCollectionReference<T>;
|
|
8
|
-
order(attribute: string, order: 'asc' | 'desc'): ConnectCollectionReference<T>;
|
|
9
|
-
limit(quantity: number): ConnectCollectionReference<T>;
|
|
10
|
-
offset(offset: number): ConnectCollectionReference<T>;
|
|
11
|
-
fromStartAt(startAt: number): ConnectCollectionReference<T>;
|
|
12
|
-
fromStartAt(startAt: ConnectDocumentReference<T>): ConnectCollectionReference<T>;
|
|
13
|
-
fromStartAfter(startAt: number): ConnectCollectionReference<T>;
|
|
14
|
-
fromStartAfter(startAt: ConnectDocumentReference<T>): ConnectCollectionReference<T>;
|
|
15
|
-
withConverter(converter: {
|
|
16
|
-
toFirestore: (data: T) => ConnectDocumentData<T>;
|
|
17
|
-
fromFirestore: (snapshot: ConnectDocumentSnapshot<T>, options?: ConnectSnapshotOptions) => T;
|
|
18
|
-
}): ConnectCollectionReference<T>;
|
|
19
|
-
getDoc(id?: string): ConnectDocumentReference<T>;
|
|
20
|
-
getDocs(): Promise<ConnectQuerySnapshot<T>>;
|
|
21
|
-
}
|
|
1
|
+
import { ConnectQuerySnapshot, ConnectWhereOption } from '../types';
|
|
2
|
+
import { ConnectDocumentData } from '../types/connect-firestore/connect-document-data.type';
|
|
3
|
+
import { ConnectDocumentSnapshot, ConnectSnapshotOptions } from '../types/connect-firestore/connect-document-snapshot.type';
|
|
4
|
+
import { ConnectDocumentReference } from './connect-document-reference';
|
|
5
|
+
export interface ConnectCollectionReference<T extends ConnectDocumentData> {
|
|
6
|
+
add(data: Partial<T>, id?: string): Promise<ConnectDocumentReference<T>>;
|
|
7
|
+
where(attribute: string, operator: ConnectWhereOption, value: any): ConnectCollectionReference<T>;
|
|
8
|
+
order(attribute: string, order: 'asc' | 'desc'): ConnectCollectionReference<T>;
|
|
9
|
+
limit(quantity: number): ConnectCollectionReference<T>;
|
|
10
|
+
offset(offset: number): ConnectCollectionReference<T>;
|
|
11
|
+
fromStartAt(startAt: number): ConnectCollectionReference<T>;
|
|
12
|
+
fromStartAt(startAt: ConnectDocumentReference<T>): ConnectCollectionReference<T>;
|
|
13
|
+
fromStartAfter(startAt: number): ConnectCollectionReference<T>;
|
|
14
|
+
fromStartAfter(startAt: ConnectDocumentReference<T>): ConnectCollectionReference<T>;
|
|
15
|
+
withConverter(converter: {
|
|
16
|
+
toFirestore: (data: T) => ConnectDocumentData<T>;
|
|
17
|
+
fromFirestore: (snapshot: ConnectDocumentSnapshot<T>, options?: ConnectSnapshotOptions) => T;
|
|
18
|
+
}): ConnectCollectionReference<T>;
|
|
19
|
+
getDoc(id?: string): ConnectDocumentReference<T>;
|
|
20
|
+
getDocs(): Promise<ConnectQuerySnapshot<T>>;
|
|
21
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { Firestore } from 'firebase/firestore';
|
|
2
|
-
import { ConnectDocumentData, ConnectDocumentSnapshot, ConnectQuerySnapshot, ConnectSnapshotOptions, ConnectWhereOption } from '../types';
|
|
3
|
-
import { ConnectCollectionReference } from './connect-collection-reference';
|
|
4
|
-
import { ConnectDocumentReference } from './connect-document-reference';
|
|
5
|
-
export declare class ConnectCollectionService<T extends ConnectDocumentData> implements ConnectCollectionReference<T> {
|
|
6
|
-
private readonly firestore;
|
|
7
|
-
private reference;
|
|
8
|
-
private wheres;
|
|
9
|
-
private orderBys;
|
|
10
|
-
private limitBy;
|
|
11
|
-
private offsetBy;
|
|
12
|
-
private startingAt;
|
|
13
|
-
private startingAfter;
|
|
14
|
-
private converter;
|
|
15
|
-
constructor(path: string, firestore: Firestore);
|
|
16
|
-
add(data: T, id?: string): Promise<ConnectDocumentReference<T>>;
|
|
17
|
-
getDocs(): Promise<ConnectQuerySnapshot<T> | any>;
|
|
18
|
-
getDoc(id?: string): ConnectDocumentReference<T>;
|
|
19
|
-
where(attribute: string, operator: ConnectWhereOption, value: any): ConnectCollectionReference<T>;
|
|
20
|
-
order(attribute: string, order: 'asc' | 'desc'): ConnectCollectionReference<T>;
|
|
21
|
-
limit(quantity: number): ConnectCollectionReference<T>;
|
|
22
|
-
offset(offsetBy: number): ConnectCollectionReference<T>;
|
|
23
|
-
fromStartAt(startingAt: number): ConnectCollectionReference<T>;
|
|
24
|
-
fromStartAt(startingAt: ConnectDocumentReference<T>): ConnectCollectionReference<T>;
|
|
25
|
-
fromStartAfter(startingAt: number): ConnectCollectionReference<T>;
|
|
26
|
-
fromStartAfter(startingAt: ConnectDocumentReference<T>): ConnectCollectionReference<T>;
|
|
27
|
-
withConverter(params: {
|
|
28
|
-
toFirestore: (data: T) => ConnectDocumentData<T>;
|
|
29
|
-
fromFirestore: (snapshot: ConnectDocumentSnapshot<T>, options?: ConnectSnapshotOptions) => T;
|
|
30
|
-
}): ConnectCollectionReference<T>;
|
|
31
|
-
private save;
|
|
32
|
-
}
|
|
1
|
+
import { Firestore } from 'firebase/firestore';
|
|
2
|
+
import { ConnectDocumentData, ConnectDocumentSnapshot, ConnectQuerySnapshot, ConnectSnapshotOptions, ConnectWhereOption } from '../types';
|
|
3
|
+
import { ConnectCollectionReference } from './connect-collection-reference';
|
|
4
|
+
import { ConnectDocumentReference } from './connect-document-reference';
|
|
5
|
+
export declare class ConnectCollectionService<T extends ConnectDocumentData> implements ConnectCollectionReference<T> {
|
|
6
|
+
private readonly firestore;
|
|
7
|
+
private reference;
|
|
8
|
+
private wheres;
|
|
9
|
+
private orderBys;
|
|
10
|
+
private limitBy;
|
|
11
|
+
private offsetBy;
|
|
12
|
+
private startingAt;
|
|
13
|
+
private startingAfter;
|
|
14
|
+
private converter;
|
|
15
|
+
constructor(path: string, firestore: Firestore);
|
|
16
|
+
add(data: T, id?: string): Promise<ConnectDocumentReference<T>>;
|
|
17
|
+
getDocs(): Promise<ConnectQuerySnapshot<T> | any>;
|
|
18
|
+
getDoc(id?: string): ConnectDocumentReference<T>;
|
|
19
|
+
where(attribute: string, operator: ConnectWhereOption, value: any): ConnectCollectionReference<T>;
|
|
20
|
+
order(attribute: string, order: 'asc' | 'desc'): ConnectCollectionReference<T>;
|
|
21
|
+
limit(quantity: number): ConnectCollectionReference<T>;
|
|
22
|
+
offset(offsetBy: number): ConnectCollectionReference<T>;
|
|
23
|
+
fromStartAt(startingAt: number): ConnectCollectionReference<T>;
|
|
24
|
+
fromStartAt(startingAt: ConnectDocumentReference<T>): ConnectCollectionReference<T>;
|
|
25
|
+
fromStartAfter(startingAt: number): ConnectCollectionReference<T>;
|
|
26
|
+
fromStartAfter(startingAt: ConnectDocumentReference<T>): ConnectCollectionReference<T>;
|
|
27
|
+
withConverter(params: {
|
|
28
|
+
toFirestore: (data: T) => ConnectDocumentData<T>;
|
|
29
|
+
fromFirestore: (snapshot: ConnectDocumentSnapshot<T>, options?: ConnectSnapshotOptions) => T;
|
|
30
|
+
}): ConnectCollectionReference<T>;
|
|
31
|
+
private save;
|
|
32
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ConnectDocumentData } from '../types/connect-firestore/connect-document-data.type';
|
|
2
|
-
import { ConnectDocumentSnapshot, ConnectSnapshotOptions } from '../types/connect-firestore/connect-document-snapshot.type';
|
|
3
|
-
export interface ConnectDocumentReference<T extends ConnectDocumentData> {
|
|
4
|
-
get(): Promise<ConnectDocumentSnapshot<T>>;
|
|
5
|
-
getId(): string;
|
|
6
|
-
save(data: T): Promise<ConnectDocumentReference<T>>;
|
|
7
|
-
delete(): Promise<void>;
|
|
8
|
-
withConverter(converter: {
|
|
9
|
-
toFirestore: (data: T) => ConnectDocumentData<T>;
|
|
10
|
-
fromFirestore: (snapshot: ConnectDocumentSnapshot<T>, options?: ConnectSnapshotOptions) => T;
|
|
11
|
-
}): ConnectDocumentReference<T>;
|
|
12
|
-
}
|
|
1
|
+
import { ConnectDocumentData } from '../types/connect-firestore/connect-document-data.type';
|
|
2
|
+
import { ConnectDocumentSnapshot, ConnectSnapshotOptions } from '../types/connect-firestore/connect-document-snapshot.type';
|
|
3
|
+
export interface ConnectDocumentReference<T extends ConnectDocumentData> {
|
|
4
|
+
get(): Promise<ConnectDocumentSnapshot<T>>;
|
|
5
|
+
getId(): string;
|
|
6
|
+
save(data: T): Promise<ConnectDocumentReference<T>>;
|
|
7
|
+
delete(): Promise<void>;
|
|
8
|
+
withConverter(converter: {
|
|
9
|
+
toFirestore: (data: T) => ConnectDocumentData<T>;
|
|
10
|
+
fromFirestore: (snapshot: ConnectDocumentSnapshot<T>, options?: ConnectSnapshotOptions) => T;
|
|
11
|
+
}): ConnectDocumentReference<T>;
|
|
12
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Firestore } from 'firebase/firestore';
|
|
2
|
-
import { ConnectDocumentData, ConnectDocumentSnapshot, ConnectSnapshotOptions } from '../types';
|
|
3
|
-
import { ConnectDocumentReference } from './connect-document-reference';
|
|
4
|
-
export declare class ConnectDocumentService<T extends ConnectDocumentData> implements ConnectDocumentReference<T> {
|
|
5
|
-
private path;
|
|
6
|
-
private firestore;
|
|
7
|
-
private reference;
|
|
8
|
-
constructor(path: string, firestore: Firestore);
|
|
9
|
-
get(): Promise<ConnectDocumentSnapshot<T>>;
|
|
10
|
-
getId(): string;
|
|
11
|
-
save(data: T): Promise<ConnectDocumentReference<T>>;
|
|
12
|
-
delete(): Promise<void>;
|
|
13
|
-
withConverter(params: {
|
|
14
|
-
toFirestore: (data: T) => ConnectDocumentData<T>;
|
|
15
|
-
fromFirestore: (snapshot: ConnectDocumentSnapshot<T>, options?: ConnectSnapshotOptions) => T;
|
|
16
|
-
}): ConnectDocumentReference<T>;
|
|
17
|
-
}
|
|
1
|
+
import { Firestore } from 'firebase/firestore';
|
|
2
|
+
import { ConnectDocumentData, ConnectDocumentSnapshot, ConnectSnapshotOptions } from '../types';
|
|
3
|
+
import { ConnectDocumentReference } from './connect-document-reference';
|
|
4
|
+
export declare class ConnectDocumentService<T extends ConnectDocumentData> implements ConnectDocumentReference<T> {
|
|
5
|
+
private path;
|
|
6
|
+
private firestore;
|
|
7
|
+
private reference;
|
|
8
|
+
constructor(path: string, firestore: Firestore);
|
|
9
|
+
get(): Promise<ConnectDocumentSnapshot<T>>;
|
|
10
|
+
getId(): string;
|
|
11
|
+
save(data: T): Promise<ConnectDocumentReference<T>>;
|
|
12
|
+
delete(): Promise<void>;
|
|
13
|
+
withConverter(params: {
|
|
14
|
+
toFirestore: (data: T) => ConnectDocumentData<T>;
|
|
15
|
+
fromFirestore: (snapshot: ConnectDocumentSnapshot<T>, options?: ConnectSnapshotOptions) => T;
|
|
16
|
+
}): ConnectDocumentReference<T>;
|
|
17
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ConnectDocumentData } from '../types';
|
|
2
|
-
import { ConnectCollectionReference } from './connect-collection-reference';
|
|
3
|
-
import { ConnectDocumentReference } from './connect-document-reference';
|
|
4
|
-
export interface ConnectFirestore {
|
|
5
|
-
getCollection<T extends ConnectDocumentData>(path: string): ConnectCollectionReference<T>;
|
|
6
|
-
getDocument<T extends ConnectDocumentData>(path: string): ConnectDocumentReference<T>;
|
|
7
|
-
}
|
|
1
|
+
import { ConnectDocumentData } from '../types';
|
|
2
|
+
import { ConnectCollectionReference } from './connect-collection-reference';
|
|
3
|
+
import { ConnectDocumentReference } from './connect-document-reference';
|
|
4
|
+
export interface ConnectFirestore {
|
|
5
|
+
getCollection<T extends ConnectDocumentData>(path: string): ConnectCollectionReference<T>;
|
|
6
|
+
getDocument<T extends ConnectDocumentData>(path: string): ConnectDocumentReference<T>;
|
|
7
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Firestore } from 'firebase/firestore';
|
|
2
|
-
import { ConnectDocumentData } from '../types';
|
|
3
|
-
import { ConnectCollectionReference } from './connect-collection-reference';
|
|
4
|
-
import { ConnectDocumentReference } from './connect-document-reference';
|
|
5
|
-
import { ConnectFirestore } from './connect-firestore';
|
|
6
|
-
export declare class ConnectFirestoreService implements ConnectFirestore {
|
|
7
|
-
private firestore;
|
|
8
|
-
constructor(firestore: Firestore);
|
|
9
|
-
getCollection<T extends ConnectDocumentData>(path: string): ConnectCollectionReference<T>;
|
|
10
|
-
getDocument<T extends ConnectDocumentData>(path: string): ConnectDocumentReference<T>;
|
|
11
|
-
}
|
|
1
|
+
import { Firestore } from 'firebase/firestore';
|
|
2
|
+
import { ConnectDocumentData } from '../types';
|
|
3
|
+
import { ConnectCollectionReference } from './connect-collection-reference';
|
|
4
|
+
import { ConnectDocumentReference } from './connect-document-reference';
|
|
5
|
+
import { ConnectFirestore } from './connect-firestore';
|
|
6
|
+
export declare class ConnectFirestoreService implements ConnectFirestore {
|
|
7
|
+
private firestore;
|
|
8
|
+
constructor(firestore: Firestore);
|
|
9
|
+
getCollection<T extends ConnectDocumentData>(path: string): ConnectCollectionReference<T>;
|
|
10
|
+
getDocument<T extends ConnectDocumentData>(path: string): ConnectDocumentReference<T>;
|
|
11
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './connect-collection-reference';
|
|
2
|
-
export * from './connect-collection.service';
|
|
3
|
-
export * from './connect-document-reference';
|
|
4
|
-
export * from './connect-document.service';
|
|
5
|
-
export * from './connect-firestore';
|
|
6
|
-
export * from './connect-firestore.service';
|
|
1
|
+
export * from './connect-collection-reference';
|
|
2
|
+
export * from './connect-collection.service';
|
|
3
|
+
export * from './connect-document-reference';
|
|
4
|
+
export * from './connect-document.service';
|
|
5
|
+
export * from './connect-firestore';
|
|
6
|
+
export * from './connect-firestore.service';
|
package/src/infra/firebase/firestore/types/connect-firestore/connect-document-data.type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type ConnectDocumentData<T extends Record<string, any> = Record<string, any>> = {
|
|
2
|
-
[K in keyof T]?: any;
|
|
3
|
-
} & {
|
|
4
|
-
id?: string;
|
|
5
|
-
};
|
|
1
|
+
export type ConnectDocumentData<T extends Record<string, any> = Record<string, any>> = {
|
|
2
|
+
[K in keyof T]?: any;
|
|
3
|
+
} & {
|
|
4
|
+
id?: string;
|
|
5
|
+
};
|
package/src/infra/firebase/firestore/types/connect-firestore/connect-document-snapshot.type.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ConnectDocumentData } from './connect-document-data.type';
|
|
2
|
-
export type ConnectSnapshotOptions = {
|
|
3
|
-
serverTimestamps?: 'estimate' | 'previous' | 'none';
|
|
4
|
-
};
|
|
5
|
-
export type ConnectDocumentSnapshot<T extends ConnectDocumentData = ConnectDocumentData> = {
|
|
6
|
-
isNotEmpty(): boolean;
|
|
7
|
-
data(options?: ConnectSnapshotOptions): T;
|
|
8
|
-
get(fieldPath: string): any;
|
|
9
|
-
id: string;
|
|
10
|
-
};
|
|
1
|
+
import { ConnectDocumentData } from './connect-document-data.type';
|
|
2
|
+
export type ConnectSnapshotOptions = {
|
|
3
|
+
serverTimestamps?: 'estimate' | 'previous' | 'none';
|
|
4
|
+
};
|
|
5
|
+
export type ConnectDocumentSnapshot<T extends ConnectDocumentData = ConnectDocumentData> = {
|
|
6
|
+
isNotEmpty(): boolean;
|
|
7
|
+
data(options?: ConnectSnapshotOptions): T;
|
|
8
|
+
get(fieldPath: string): any;
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
package/src/infra/firebase/firestore/types/connect-firestore/connect-query-snapshot.type.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ConnectDocumentData } from './connect-document-data.type';
|
|
2
|
-
import { ConnectDocumentSnapshot } from './connect-document-snapshot.type';
|
|
3
|
-
export type ConnectQuerySnapshot<T extends ConnectDocumentData> = {
|
|
4
|
-
docs: ConnectDocumentSnapshot<T>[];
|
|
5
|
-
size: number;
|
|
6
|
-
empty: boolean;
|
|
7
|
-
};
|
|
1
|
+
import { ConnectDocumentData } from './connect-document-data.type';
|
|
2
|
+
import { ConnectDocumentSnapshot } from './connect-document-snapshot.type';
|
|
3
|
+
export type ConnectQuerySnapshot<T extends ConnectDocumentData> = {
|
|
4
|
+
docs: ConnectDocumentSnapshot<T>[];
|
|
5
|
+
size: number;
|
|
6
|
+
empty: boolean;
|
|
7
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WhereFilterOp } from 'firebase/firestore';
|
|
2
|
-
export type ConnectWhereOption = `${WhereFilterOp}`;
|
|
1
|
+
import { WhereFilterOp } from 'firebase/firestore';
|
|
2
|
+
export type ConnectWhereOption = `${WhereFilterOp}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './connect-document-data.type';
|
|
2
|
-
export * from './connect-document-snapshot.type';
|
|
3
|
-
export * from './connect-query-snapshot.type';
|
|
4
|
-
export * from './connect-where-option.type';
|
|
1
|
+
export * from './connect-document-data.type';
|
|
2
|
+
export * from './connect-document-snapshot.type';
|
|
3
|
+
export * from './connect-query-snapshot.type';
|
|
4
|
+
export * from './connect-where-option.type';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ModelBaseStructure, RepositoryFindFielters, RepositoryLimitOptions, RepositoryOrderBy } from '../../../../domain';
|
|
2
|
-
export type FirestoreIntertceptorRequestParams<TBase extends ModelBaseStructure, T = any> = {
|
|
3
|
-
instance?: TBase;
|
|
4
|
-
find?: {
|
|
5
|
-
filters?: RepositoryFindFielters<TBase>;
|
|
6
|
-
limits?: RepositoryLimitOptions<TBase>;
|
|
7
|
-
orderBy?: RepositoryOrderBy<TBase>;
|
|
8
|
-
};
|
|
9
|
-
} & T;
|
|
10
|
-
export interface FirestoreInterceptors<TBase extends ModelBaseStructure> {
|
|
11
|
-
request?: <R>(request: FirestoreIntertceptorRequestParams<TBase, R>) => Promise<FirestoreIntertceptorRequestParams<TBase, R>>;
|
|
12
|
-
response?<R, T>(response: TBase, request: FirestoreIntertceptorRequestParams<TBase, T>): Promise<TBase & R>;
|
|
13
|
-
response?<R, T>(response: TBase[], request: FirestoreIntertceptorRequestParams<TBase, T>): Promise<TBase[] & R>;
|
|
14
|
-
}
|
|
1
|
+
import { ModelBaseStructure, RepositoryFindFielters, RepositoryLimitOptions, RepositoryOrderBy } from '../../../../domain';
|
|
2
|
+
export type FirestoreIntertceptorRequestParams<TBase extends ModelBaseStructure, T = any> = {
|
|
3
|
+
instance?: TBase;
|
|
4
|
+
find?: {
|
|
5
|
+
filters?: RepositoryFindFielters<TBase>;
|
|
6
|
+
limits?: RepositoryLimitOptions<TBase>;
|
|
7
|
+
orderBy?: RepositoryOrderBy<TBase>;
|
|
8
|
+
};
|
|
9
|
+
} & T;
|
|
10
|
+
export interface FirestoreInterceptors<TBase extends ModelBaseStructure> {
|
|
11
|
+
request?: <R>(request: FirestoreIntertceptorRequestParams<TBase, R>) => Promise<FirestoreIntertceptorRequestParams<TBase, R>>;
|
|
12
|
+
response?<R, T>(response: TBase, request: FirestoreIntertceptorRequestParams<TBase, T>): Promise<TBase & R>;
|
|
13
|
+
response?<R, T>(response: TBase[], request: FirestoreIntertceptorRequestParams<TBase, T>): Promise<TBase[] & R>;
|
|
14
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IdentifierModel, ModelBaseStructure } from '../../../../domain';
|
|
2
|
-
import { FirestoreRepository } from './firestore.repository.type';
|
|
3
|
-
export type FirestoreSubRepository<Model extends ModelBaseStructure<Model>, ParentModel extends ModelBaseStructure<ParentModel>> = {
|
|
4
|
-
readonly parentRepository: FirestoreRepository<ParentModel>;
|
|
5
|
-
parentIdField: IdentifierModel<Model>;
|
|
6
|
-
} & FirestoreRepository<Model>;
|
|
1
|
+
import { IdentifierModel, ModelBaseStructure } from '../../../../domain';
|
|
2
|
+
import { FirestoreRepository } from './firestore.repository.type';
|
|
3
|
+
export type FirestoreSubRepository<Model extends ModelBaseStructure<Model>, ParentModel extends ModelBaseStructure<ParentModel>> = {
|
|
4
|
+
readonly parentRepository: FirestoreRepository<ParentModel>;
|
|
5
|
+
parentIdField: IdentifierModel<Model>;
|
|
6
|
+
} & FirestoreRepository<Model>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { QueryDocumentSnapshot, QuerySnapshot } from 'firebase/firestore';
|
|
2
|
-
import { ModelBaseStructure } from '../../../../domain';
|
|
3
|
-
import { FirestoreSubRepository } from './firestore-sub.repository.type';
|
|
4
|
-
import { FirestoreRepository } from './firestore.repository.type';
|
|
5
|
-
export interface FirestoreHelpers {
|
|
6
|
-
toArray<T extends ModelBaseStructure<T>>(snapShot: QuerySnapshot<T> | Array<QueryDocumentSnapshot<T>>): Array<T>;
|
|
7
|
-
isSubCollection<T extends ModelBaseStructure<T>, E extends ModelBaseStructure<E>>(repository: FirestoreRepository<T> | FirestoreSubRepository<T, E>): repository is FirestoreSubRepository<T, E>;
|
|
8
|
-
}
|
|
1
|
+
import { QueryDocumentSnapshot, QuerySnapshot } from 'firebase/firestore';
|
|
2
|
+
import { ModelBaseStructure } from '../../../../domain';
|
|
3
|
+
import { FirestoreSubRepository } from './firestore-sub.repository.type';
|
|
4
|
+
import { FirestoreRepository } from './firestore.repository.type';
|
|
5
|
+
export interface FirestoreHelpers {
|
|
6
|
+
toArray<T extends ModelBaseStructure<T>>(snapShot: QuerySnapshot<T> | Array<QueryDocumentSnapshot<T>>): Array<T>;
|
|
7
|
+
isSubCollection<T extends ModelBaseStructure<T>, E extends ModelBaseStructure<E>>(repository: FirestoreRepository<T> | FirestoreSubRepository<T, E>): repository is FirestoreSubRepository<T, E>;
|
|
8
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { BaseModelBuilder, CacheConfig, ModelBaseStructure, NonFunctionAndIdentifierPropertyNames } from '../../../../domain';
|
|
2
|
-
import { DebugHelper } from '../../../../utils';
|
|
3
|
-
import { FirestoreFieldType } from '../enums';
|
|
4
|
-
import { ConnectCollectionReference } from '../services/connect-collection-reference';
|
|
5
|
-
import { ConnectFirestore } from '../services/connect-firestore';
|
|
6
|
-
import { ConnectDocumentData, ConnectDocumentSnapshot } from './connect-firestore';
|
|
7
|
-
import { FirestoreInterceptors } from './firestore-interceptors.type';
|
|
8
|
-
export type FirestoreRepository<Model extends ModelBaseStructure<Model>> = {
|
|
9
|
-
readonly firestore?: ConnectFirestore;
|
|
10
|
-
collectionName: string;
|
|
11
|
-
model: BaseModelBuilder<Model>;
|
|
12
|
-
collection(path?: string): ConnectCollectionReference<Model>;
|
|
13
|
-
fields?: Partial<Record<NonFunctionAndIdentifierPropertyNames<Model>, FirestoreFieldType>>;
|
|
14
|
-
interceptors?: FirestoreInterceptors<Model>;
|
|
15
|
-
logger: DebugHelper;
|
|
16
|
-
buildModelInstance(): {
|
|
17
|
-
toFirestore: (data: Model) => ConnectDocumentData<Model>;
|
|
18
|
-
fromFirestore: (snap: ConnectDocumentSnapshot<Model>) => Model;
|
|
19
|
-
};
|
|
20
|
-
cache?: CacheConfig;
|
|
21
|
-
};
|
|
1
|
+
import { BaseModelBuilder, CacheConfig, ModelBaseStructure, NonFunctionAndIdentifierPropertyNames } from '../../../../domain';
|
|
2
|
+
import { DebugHelper } from '../../../../utils';
|
|
3
|
+
import { FirestoreFieldType } from '../enums';
|
|
4
|
+
import { ConnectCollectionReference } from '../services/connect-collection-reference';
|
|
5
|
+
import { ConnectFirestore } from '../services/connect-firestore';
|
|
6
|
+
import { ConnectDocumentData, ConnectDocumentSnapshot } from './connect-firestore';
|
|
7
|
+
import { FirestoreInterceptors } from './firestore-interceptors.type';
|
|
8
|
+
export type FirestoreRepository<Model extends ModelBaseStructure<Model>> = {
|
|
9
|
+
readonly firestore?: ConnectFirestore;
|
|
10
|
+
collectionName: string;
|
|
11
|
+
model: BaseModelBuilder<Model>;
|
|
12
|
+
collection(path?: string): ConnectCollectionReference<Model>;
|
|
13
|
+
fields?: Partial<Record<NonFunctionAndIdentifierPropertyNames<Model>, FirestoreFieldType>>;
|
|
14
|
+
interceptors?: FirestoreInterceptors<Model>;
|
|
15
|
+
logger: DebugHelper;
|
|
16
|
+
buildModelInstance(): {
|
|
17
|
+
toFirestore: (data: Model) => ConnectDocumentData<Model>;
|
|
18
|
+
fromFirestore: (snap: ConnectDocumentSnapshot<Model>) => Model;
|
|
19
|
+
};
|
|
20
|
+
cache?: CacheConfig;
|
|
21
|
+
};
|