@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/hasura-graphql/repositories/catalog/helpers/product-review-operations.helper.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { PaginatedReviewFilters, ProductReview, ReviewWithProductData } from '../../../../../domain';
|
|
2
|
-
import { ProductHasuraGraphQL } from '../../../models';
|
|
3
|
-
interface ReviewDataFetchParams {
|
|
4
|
-
repository: any;
|
|
5
|
-
limit: number;
|
|
6
|
-
}
|
|
7
|
-
interface ReviewProcessingParams {
|
|
8
|
-
data: ProductHasuraGraphQL[];
|
|
9
|
-
getReviewStatus: (review: ProductReview) => 'approved' | 'rejected' | 'pending';
|
|
10
|
-
}
|
|
11
|
-
interface ReviewFilteringParams {
|
|
12
|
-
reviews: ReviewWithProductData[];
|
|
13
|
-
filters: PaginatedReviewFilters;
|
|
14
|
-
}
|
|
15
|
-
export declare class ProductReviewOperationsHelper {
|
|
16
|
-
static fetchAllProductsWithReviews(params: ReviewDataFetchParams): Promise<ProductHasuraGraphQL[]>;
|
|
17
|
-
static processProductsToReviews(params: ReviewProcessingParams): ReviewWithProductData[];
|
|
18
|
-
static applyReviewFilters(params: ReviewFilteringParams): ReviewWithProductData[];
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
1
|
+
import { PaginatedReviewFilters, ProductReview, ReviewWithProductData } from '../../../../../domain';
|
|
2
|
+
import { ProductHasuraGraphQL } from '../../../models';
|
|
3
|
+
interface ReviewDataFetchParams {
|
|
4
|
+
repository: any;
|
|
5
|
+
limit: number;
|
|
6
|
+
}
|
|
7
|
+
interface ReviewProcessingParams {
|
|
8
|
+
data: ProductHasuraGraphQL[];
|
|
9
|
+
getReviewStatus: (review: ProductReview) => 'approved' | 'rejected' | 'pending';
|
|
10
|
+
}
|
|
11
|
+
interface ReviewFilteringParams {
|
|
12
|
+
reviews: ReviewWithProductData[];
|
|
13
|
+
filters: PaginatedReviewFilters;
|
|
14
|
+
}
|
|
15
|
+
export declare class ProductReviewOperationsHelper {
|
|
16
|
+
static fetchAllProductsWithReviews(params: ReviewDataFetchParams): Promise<ProductHasuraGraphQL[]>;
|
|
17
|
+
static processProductsToReviews(params: ReviewProcessingParams): ReviewWithProductData[];
|
|
18
|
+
static applyReviewFilters(params: ReviewFilteringParams): ReviewWithProductData[];
|
|
19
|
+
}
|
|
20
|
+
export {};
|
package/src/infra/hasura-graphql/repositories/catalog/helpers/product-review-update.helper.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { NonFunctionPropertyNames, ProductReview, UpdateRepositoryParams } from '../../../../../domain';
|
|
2
|
-
import { UpdateHasuraGraphQLRepositoryType } from '../../../mixins';
|
|
3
|
-
import { ProductHasuraGraphQL } from '../../../models';
|
|
4
|
-
import { GraphQLRepository } from '../../../types';
|
|
5
|
-
interface ReviewUpdateDependencies {
|
|
6
|
-
mutation: GraphQLRepository<ProductHasuraGraphQL>['mutation'];
|
|
7
|
-
findReview: (review: ProductReview, productId: number) => Promise<ProductReview>;
|
|
8
|
-
bindReviewToModel: (plain: Record<'person_id' | 'order_id' | 'created_at' | 'updated_at', any>) => ProductReview;
|
|
9
|
-
bindReviewToHasura: (review: ProductReview) => any;
|
|
10
|
-
reviewsFields: NonFunctionPropertyNames<ProductHasuraGraphQL>[];
|
|
11
|
-
paramsToPlain: UpdateHasuraGraphQLRepositoryType<ProductHasuraGraphQL>['paramsToPlain'];
|
|
12
|
-
}
|
|
13
|
-
export declare class ProductReviewUpdateHelper {
|
|
14
|
-
static executeUpdate(productId: number, reviews: Pick<UpdateRepositoryParams<ProductHasuraGraphQL>, 'reviews'>['reviews'], dependencies: ReviewUpdateDependencies): Promise<ProductReview[]>;
|
|
15
|
-
private static handleRemoveReviews;
|
|
16
|
-
private static handleUpsertReviews;
|
|
17
|
-
private static updateExistingReview;
|
|
18
|
-
private static insertNewReview;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
1
|
+
import { NonFunctionPropertyNames, ProductReview, UpdateRepositoryParams } from '../../../../../domain';
|
|
2
|
+
import { UpdateHasuraGraphQLRepositoryType } from '../../../mixins';
|
|
3
|
+
import { ProductHasuraGraphQL } from '../../../models';
|
|
4
|
+
import { GraphQLRepository } from '../../../types';
|
|
5
|
+
interface ReviewUpdateDependencies {
|
|
6
|
+
mutation: GraphQLRepository<ProductHasuraGraphQL>['mutation'];
|
|
7
|
+
findReview: (review: ProductReview, productId: number) => Promise<ProductReview>;
|
|
8
|
+
bindReviewToModel: (plain: Record<'person_id' | 'order_id' | 'created_at' | 'updated_at', any>) => ProductReview;
|
|
9
|
+
bindReviewToHasura: (review: ProductReview) => any;
|
|
10
|
+
reviewsFields: NonFunctionPropertyNames<ProductHasuraGraphQL>[];
|
|
11
|
+
paramsToPlain: UpdateHasuraGraphQLRepositoryType<ProductHasuraGraphQL>['paramsToPlain'];
|
|
12
|
+
}
|
|
13
|
+
export declare class ProductReviewUpdateHelper {
|
|
14
|
+
static executeUpdate(productId: number, reviews: Pick<UpdateRepositoryParams<ProductHasuraGraphQL>, 'reviews'>['reviews'], dependencies: ReviewUpdateDependencies): Promise<ProductReview[]>;
|
|
15
|
+
private static handleRemoveReviews;
|
|
16
|
+
private static handleUpsertReviews;
|
|
17
|
+
private static updateExistingReview;
|
|
18
|
+
private static insertNewReview;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
package/src/infra/hasura-graphql/repositories/catalog/helpers/product-variant-report.helper.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ProductVariantReport } from '../../../../../domain';
|
|
2
|
-
interface VariantReportDependencies {
|
|
3
|
-
query: (table: string, fields: string[]) => Promise<any>;
|
|
4
|
-
}
|
|
5
|
-
export declare class ProductVariantReportHelper {
|
|
6
|
-
static getReportFields(): string[];
|
|
7
|
-
static executeReport(dependencies: VariantReportDependencies): Promise<ProductVariantReport[]>;
|
|
8
|
-
}
|
|
9
|
-
export {};
|
|
1
|
+
import { ProductVariantReport } from '../../../../../domain';
|
|
2
|
+
interface VariantReportDependencies {
|
|
3
|
+
query: (table: string, fields: string[]) => Promise<any>;
|
|
4
|
+
}
|
|
5
|
+
export declare class ProductVariantReportHelper {
|
|
6
|
+
static getReportFields(): string[];
|
|
7
|
+
static executeReport(dependencies: VariantReportDependencies): Promise<ProductVariantReport[]>;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './category-collection-children-hasura-graphql.repository';
|
|
2
|
-
export * from './category-filter-hasura-graphql.repository';
|
|
3
|
-
export * from './category-hasura-graphql.repository';
|
|
4
|
-
export * from './category-product-hasura-graphql.repository';
|
|
5
|
-
export * from './filter-hasura-graphql.repository';
|
|
6
|
-
export * from './filter-option-hasura-graphql.repository';
|
|
7
|
-
export * from './product-errors-hasura-graphql.repository';
|
|
8
|
-
export * from './product-hasura-graphql.repository';
|
|
9
|
-
export * from './product-review-hasura-graphql.repository';
|
|
10
|
-
export * from './product-stock-notification-hasura-graphql.repository';
|
|
11
|
-
export * from './variant-hasura-graphql.repository';
|
|
12
|
-
export * from './wishlist-hasura-graphql.repository';
|
|
1
|
+
export * from './category-collection-children-hasura-graphql.repository';
|
|
2
|
+
export * from './category-filter-hasura-graphql.repository';
|
|
3
|
+
export * from './category-hasura-graphql.repository';
|
|
4
|
+
export * from './category-product-hasura-graphql.repository';
|
|
5
|
+
export * from './filter-hasura-graphql.repository';
|
|
6
|
+
export * from './filter-option-hasura-graphql.repository';
|
|
7
|
+
export * from './product-errors-hasura-graphql.repository';
|
|
8
|
+
export * from './product-hasura-graphql.repository';
|
|
9
|
+
export * from './product-review-hasura-graphql.repository';
|
|
10
|
+
export * from './product-stock-notification-hasura-graphql.repository';
|
|
11
|
+
export * from './variant-hasura-graphql.repository';
|
|
12
|
+
export * from './wishlist-hasura-graphql.repository';
|
package/src/infra/hasura-graphql/repositories/catalog/product-errors-hasura-graphql.repository.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { FindRepositoryParams, GetRepositoryParams } from '../../../../domain';
|
|
2
|
-
import { ProductErrorsRepository } from '../../../../domain/catalog/repositories';
|
|
3
|
-
import { HasuraConstructorParams } from '../../mixins';
|
|
4
|
-
import { ProductErrorsHasuraGraphQL } from '../../models';
|
|
5
|
-
import { ProductHasuraGraphQLRepository } from './product-hasura-graphql.repository';
|
|
6
|
-
declare const ProductErrorsHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../..").GraphQLRepository<ProductErrorsHasuraGraphQL> & import("../../../../domain").CrudRepository<ProductErrorsHasuraGraphQL, import("../../../../domain").CrudParams<ProductErrorsHasuraGraphQL>> & import("../../mixins").UpdateHasuraGraphQLRepositoryType<ProductErrorsHasuraGraphQL>, [HasuraConstructorParams<ProductErrorsHasuraGraphQL> & import("../../mixins/factories").CreateConstructorParams & import("../../mixins/factories").DeleteConstructorParams & import("../../mixins/factories").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
7
|
-
export declare class ProductErrorsHasuraGraphQLRepository extends ProductErrorsHasuraGraphQLRepository_base implements ProductErrorsRepository {
|
|
8
|
-
private readonly productRepository;
|
|
9
|
-
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<ProductErrorsHasuraGraphQL>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>, productRepository: ProductHasuraGraphQLRepository);
|
|
10
|
-
get(params: GetRepositoryParams<ProductErrorsHasuraGraphQL>): Promise<ProductErrorsHasuraGraphQL>;
|
|
11
|
-
find(params: FindRepositoryParams<ProductErrorsHasuraGraphQL>): Promise<import("../../../../domain").RepositoryFindResult<ProductErrorsHasuraGraphQL>>;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
1
|
+
import { FindRepositoryParams, GetRepositoryParams } from '../../../../domain';
|
|
2
|
+
import { ProductErrorsRepository } from '../../../../domain/catalog/repositories';
|
|
3
|
+
import { HasuraConstructorParams } from '../../mixins';
|
|
4
|
+
import { ProductErrorsHasuraGraphQL } from '../../models';
|
|
5
|
+
import { ProductHasuraGraphQLRepository } from './product-hasura-graphql.repository';
|
|
6
|
+
declare const ProductErrorsHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../..").GraphQLRepository<ProductErrorsHasuraGraphQL> & import("../../../../domain").CrudRepository<ProductErrorsHasuraGraphQL, import("../../../../domain").CrudParams<ProductErrorsHasuraGraphQL>> & import("../../mixins").UpdateHasuraGraphQLRepositoryType<ProductErrorsHasuraGraphQL>, [HasuraConstructorParams<ProductErrorsHasuraGraphQL> & import("../../mixins/factories").CreateConstructorParams & import("../../mixins/factories").DeleteConstructorParams & import("../../mixins/factories").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
7
|
+
export declare class ProductErrorsHasuraGraphQLRepository extends ProductErrorsHasuraGraphQLRepository_base implements ProductErrorsRepository {
|
|
8
|
+
private readonly productRepository;
|
|
9
|
+
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<ProductErrorsHasuraGraphQL>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>, productRepository: ProductHasuraGraphQLRepository);
|
|
10
|
+
get(params: GetRepositoryParams<ProductErrorsHasuraGraphQL>): Promise<ProductErrorsHasuraGraphQL>;
|
|
11
|
+
find(params: FindRepositoryParams<ProductErrorsHasuraGraphQL>): Promise<import("../../../../domain").RepositoryFindResult<ProductErrorsHasuraGraphQL>>;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
package/src/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { CreateRepositoryParams, FindRepositoryParams, GetRepositoryParams, PaginatedReviewFilters, ProductGender, ProductRepository, ProductVariantReport, RepositoryCacheOptions, RepositoryFindResult, ReviewStatusParams, ReviewWithProductData, UpdateRepositoryParams } from '../../../../domain';
|
|
2
|
-
import { HasuraConstructorParams } from '../../mixins';
|
|
3
|
-
import { ProductHasuraGraphQL } from '../../models';
|
|
4
|
-
declare const ProductHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<ProductHasuraGraphQL> & import("../../../../domain").CrudRepository<ProductHasuraGraphQL, import("../../../../domain").CrudParams<ProductHasuraGraphQL>> & import("../../mixins").UpdateHasuraGraphQLRepositoryType<ProductHasuraGraphQL>, [HasuraConstructorParams<ProductHasuraGraphQL> & import("../../mixins/factories").CreateConstructorParams & import("../../mixins/factories").DeleteConstructorParams & import("../../mixins/factories").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
5
|
-
export declare class ProductHasuraGraphQLRepository extends ProductHasuraGraphQLRepository_base implements ProductRepository {
|
|
6
|
-
private get reviewsFields();
|
|
7
|
-
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<ProductHasuraGraphQL>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>);
|
|
8
|
-
create(params: CreateRepositoryParams<ProductHasuraGraphQL>): Promise<ProductHasuraGraphQL>;
|
|
9
|
-
get(identifiers: GetRepositoryParams<ProductHasuraGraphQL>, options?: {
|
|
10
|
-
cache?: RepositoryCacheOptions;
|
|
11
|
-
}): Promise<ProductHasuraGraphQL>;
|
|
12
|
-
find(params?: FindRepositoryParams<ProductHasuraGraphQL>, optionsParams?: {
|
|
13
|
-
cache?: RepositoryCacheOptions;
|
|
14
|
-
}): Promise<RepositoryFindResult<ProductHasuraGraphQL>>;
|
|
15
|
-
getBySlug(slug: string, options?: {
|
|
16
|
-
cache?: RepositoryCacheOptions;
|
|
17
|
-
}): Promise<ProductHasuraGraphQL>;
|
|
18
|
-
getByEAN(EAN: string, options?: {
|
|
19
|
-
cache?: RepositoryCacheOptions;
|
|
20
|
-
}): Promise<ProductHasuraGraphQL>;
|
|
21
|
-
update(params: UpdateRepositoryParams<ProductHasuraGraphQL>): Promise<ProductHasuraGraphQL>;
|
|
22
|
-
fetchProductReviews(filters: PaginatedReviewFilters, options?: {
|
|
23
|
-
cache?: RepositoryCacheOptions;
|
|
24
|
-
}): Promise<ReviewWithProductData[]>;
|
|
25
|
-
fetchReviews(status: ReviewStatusParams, options?: {
|
|
26
|
-
cache?: RepositoryCacheOptions;
|
|
27
|
-
}): Promise<ReviewWithProductData[]>;
|
|
28
|
-
findCatalog(params: FindRepositoryParams<ProductHasuraGraphQL>, mainGender?: Extract<ProductGender, 'female' | 'male'>, options?: {
|
|
29
|
-
cache?: RepositoryCacheOptions;
|
|
30
|
-
}): Promise<RepositoryFindResult<ProductHasuraGraphQL>>;
|
|
31
|
-
cleanShoppingCountFromIds(ids: string[]): Promise<void>;
|
|
32
|
-
private getReviewStatus;
|
|
33
|
-
private updateKitProducts;
|
|
34
|
-
private updateReviews;
|
|
35
|
-
private updateMetadata;
|
|
36
|
-
private getId;
|
|
37
|
-
private findReviewsByProduct;
|
|
38
|
-
private findReview;
|
|
39
|
-
private getReviewByPersonId;
|
|
40
|
-
private getReviewByAuthorAndEmail;
|
|
41
|
-
private bindReviewToModel;
|
|
42
|
-
private bindReviewToHasura;
|
|
43
|
-
productVariantFullReport(): Promise<ProductVariantReport[]>;
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
1
|
+
import { CreateRepositoryParams, FindRepositoryParams, GetRepositoryParams, PaginatedReviewFilters, ProductGender, ProductRepository, ProductVariantReport, RepositoryCacheOptions, RepositoryFindResult, ReviewStatusParams, ReviewWithProductData, UpdateRepositoryParams } from '../../../../domain';
|
|
2
|
+
import { HasuraConstructorParams } from '../../mixins';
|
|
3
|
+
import { ProductHasuraGraphQL } from '../../models';
|
|
4
|
+
declare const ProductHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<ProductHasuraGraphQL> & import("../../../../domain").CrudRepository<ProductHasuraGraphQL, import("../../../../domain").CrudParams<ProductHasuraGraphQL>> & import("../../mixins").UpdateHasuraGraphQLRepositoryType<ProductHasuraGraphQL>, [HasuraConstructorParams<ProductHasuraGraphQL> & import("../../mixins/factories").CreateConstructorParams & import("../../mixins/factories").DeleteConstructorParams & import("../../mixins/factories").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
5
|
+
export declare class ProductHasuraGraphQLRepository extends ProductHasuraGraphQLRepository_base implements ProductRepository {
|
|
6
|
+
private get reviewsFields();
|
|
7
|
+
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<ProductHasuraGraphQL>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>);
|
|
8
|
+
create(params: CreateRepositoryParams<ProductHasuraGraphQL>): Promise<ProductHasuraGraphQL>;
|
|
9
|
+
get(identifiers: GetRepositoryParams<ProductHasuraGraphQL>, options?: {
|
|
10
|
+
cache?: RepositoryCacheOptions;
|
|
11
|
+
}): Promise<ProductHasuraGraphQL>;
|
|
12
|
+
find(params?: FindRepositoryParams<ProductHasuraGraphQL>, optionsParams?: {
|
|
13
|
+
cache?: RepositoryCacheOptions;
|
|
14
|
+
}): Promise<RepositoryFindResult<ProductHasuraGraphQL>>;
|
|
15
|
+
getBySlug(slug: string, options?: {
|
|
16
|
+
cache?: RepositoryCacheOptions;
|
|
17
|
+
}): Promise<ProductHasuraGraphQL>;
|
|
18
|
+
getByEAN(EAN: string, options?: {
|
|
19
|
+
cache?: RepositoryCacheOptions;
|
|
20
|
+
}): Promise<ProductHasuraGraphQL>;
|
|
21
|
+
update(params: UpdateRepositoryParams<ProductHasuraGraphQL>): Promise<ProductHasuraGraphQL>;
|
|
22
|
+
fetchProductReviews(filters: PaginatedReviewFilters, options?: {
|
|
23
|
+
cache?: RepositoryCacheOptions;
|
|
24
|
+
}): Promise<ReviewWithProductData[]>;
|
|
25
|
+
fetchReviews(status: ReviewStatusParams, options?: {
|
|
26
|
+
cache?: RepositoryCacheOptions;
|
|
27
|
+
}): Promise<ReviewWithProductData[]>;
|
|
28
|
+
findCatalog(params: FindRepositoryParams<ProductHasuraGraphQL>, mainGender?: Extract<ProductGender, 'female' | 'male'>, options?: {
|
|
29
|
+
cache?: RepositoryCacheOptions;
|
|
30
|
+
}): Promise<RepositoryFindResult<ProductHasuraGraphQL>>;
|
|
31
|
+
cleanShoppingCountFromIds(ids: string[]): Promise<void>;
|
|
32
|
+
private getReviewStatus;
|
|
33
|
+
private updateKitProducts;
|
|
34
|
+
private updateReviews;
|
|
35
|
+
private updateMetadata;
|
|
36
|
+
private getId;
|
|
37
|
+
private findReviewsByProduct;
|
|
38
|
+
private findReview;
|
|
39
|
+
private getReviewByPersonId;
|
|
40
|
+
private getReviewByAuthorAndEmail;
|
|
41
|
+
private bindReviewToModel;
|
|
42
|
+
private bindReviewToHasura;
|
|
43
|
+
productVariantFullReport(): Promise<ProductVariantReport[]>;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
package/src/infra/hasura-graphql/repositories/catalog/product-review-hasura-graphql.repository.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ProductReview } from '../../../../domain';
|
|
2
|
-
import { ProductReviewRepository } from '../../../../domain/catalog/repositories';
|
|
3
|
-
import { HasuraConstructorParams } from '../../mixins';
|
|
4
|
-
declare const ProductReviewHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../..").GraphQLRepository<ProductReview> & import("../../../../domain").CrudRepository<ProductReview, import("../../../../domain").CrudParams<ProductReview>> & import("../../mixins").UpdateHasuraGraphQLRepositoryType<ProductReview>, [HasuraConstructorParams<ProductReview> & import("../../mixins/factories").CreateConstructorParams & import("../../mixins/factories").DeleteConstructorParams & import("../../mixins/factories").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
5
|
-
export declare class ProductReviewHasuraGraphQLRepository extends ProductReviewHasuraGraphQLRepository_base implements ProductReviewRepository {
|
|
6
|
-
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<ProductReview>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>);
|
|
7
|
-
updateManyStatus(reviews: Pick<ProductReview, 'id' | 'status'>[]): Promise<void>;
|
|
8
|
-
aproveReview(id: number): Promise<ProductReview>;
|
|
9
|
-
disaproveReview(id: number): Promise<ProductReview>;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
1
|
+
import { ProductReview } from '../../../../domain';
|
|
2
|
+
import { ProductReviewRepository } from '../../../../domain/catalog/repositories';
|
|
3
|
+
import { HasuraConstructorParams } from '../../mixins';
|
|
4
|
+
declare const ProductReviewHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../..").GraphQLRepository<ProductReview> & import("../../../../domain").CrudRepository<ProductReview, import("../../../../domain").CrudParams<ProductReview>> & import("../../mixins").UpdateHasuraGraphQLRepositoryType<ProductReview>, [HasuraConstructorParams<ProductReview> & import("../../mixins/factories").CreateConstructorParams & import("../../mixins/factories").DeleteConstructorParams & import("../../mixins/factories").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
5
|
+
export declare class ProductReviewHasuraGraphQLRepository extends ProductReviewHasuraGraphQLRepository_base implements ProductReviewRepository {
|
|
6
|
+
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<ProductReview>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>);
|
|
7
|
+
updateManyStatus(reviews: Pick<ProductReview, 'id' | 'status'>[]): Promise<void>;
|
|
8
|
+
aproveReview(id: number): Promise<ProductReview>;
|
|
9
|
+
disaproveReview(id: number): Promise<ProductReview>;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Filter, ProductStockNotification, ReportStockNotification, ReportStockNotificationInput, RepositoryFindResult, Shops } from '../../../../domain';
|
|
2
|
-
import { ProductStockNotificationRepository } from '../../../../domain/catalog/repositories';
|
|
3
|
-
import { HasuraConstructorParams } from '../../mixins';
|
|
4
|
-
type AddCustomerEmailParams = {
|
|
5
|
-
shop: Shops;
|
|
6
|
-
productId: string;
|
|
7
|
-
name: string;
|
|
8
|
-
email: string;
|
|
9
|
-
};
|
|
10
|
-
declare const ProductStockNotificationHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../..").GraphQLRepository<ProductStockNotification> & import("../../../../domain").CrudRepository<ProductStockNotification, import("../../../../domain").CrudParams<ProductStockNotification>> & import("../../mixins").UpdateHasuraGraphQLRepositoryType<ProductStockNotification>, [HasuraConstructorParams<ProductStockNotification> & import("../../mixins/factories").CreateConstructorParams & import("../../mixins/factories").DeleteConstructorParams & import("../../mixins/factories").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
11
|
-
export declare class ProductStockNotificationHasuraGraphQLRepository extends ProductStockNotificationHasuraGraphQLRepository_base implements ProductStockNotificationRepository {
|
|
12
|
-
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<Filter>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>);
|
|
13
|
-
addCustomerEmail(params: AddCustomerEmailParams): Promise<void>;
|
|
14
|
-
getNotificationsReport(params: ReportStockNotificationInput, orderBy: {
|
|
15
|
-
field: string;
|
|
16
|
-
direction: string;
|
|
17
|
-
}, pagination?: {
|
|
18
|
-
offset: number;
|
|
19
|
-
limit: number;
|
|
20
|
-
}): Promise<RepositoryFindResult<ReportStockNotification>>;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
1
|
+
import { Filter, ProductStockNotification, ReportStockNotification, ReportStockNotificationInput, RepositoryFindResult, Shops } from '../../../../domain';
|
|
2
|
+
import { ProductStockNotificationRepository } from '../../../../domain/catalog/repositories';
|
|
3
|
+
import { HasuraConstructorParams } from '../../mixins';
|
|
4
|
+
type AddCustomerEmailParams = {
|
|
5
|
+
shop: Shops;
|
|
6
|
+
productId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
email: string;
|
|
9
|
+
};
|
|
10
|
+
declare const ProductStockNotificationHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../..").GraphQLRepository<ProductStockNotification> & import("../../../../domain").CrudRepository<ProductStockNotification, import("../../../../domain").CrudParams<ProductStockNotification>> & import("../../mixins").UpdateHasuraGraphQLRepositoryType<ProductStockNotification>, [HasuraConstructorParams<ProductStockNotification> & import("../../mixins/factories").CreateConstructorParams & import("../../mixins/factories").DeleteConstructorParams & import("../../mixins/factories").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
11
|
+
export declare class ProductStockNotificationHasuraGraphQLRepository extends ProductStockNotificationHasuraGraphQLRepository_base implements ProductStockNotificationRepository {
|
|
12
|
+
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<Filter>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>);
|
|
13
|
+
addCustomerEmail(params: AddCustomerEmailParams): Promise<void>;
|
|
14
|
+
getNotificationsReport(params: ReportStockNotificationInput, orderBy: {
|
|
15
|
+
field: string;
|
|
16
|
+
direction: string;
|
|
17
|
+
}, pagination?: {
|
|
18
|
+
offset: number;
|
|
19
|
+
limit: number;
|
|
20
|
+
}): Promise<RepositoryFindResult<ReportStockNotification>>;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
package/src/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { FindRepositoryParams, GetRepositoryParams, RepositoryFindResult, UpdateRepositoryParams, VariantRepository } from '../../../../domain';
|
|
2
|
-
import { HasuraConstructorParams } from '../../mixins';
|
|
3
|
-
import { VariantHasuraGraphQL } from '../../models';
|
|
4
|
-
declare const VariantHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<VariantHasuraGraphQL> & import("../../../../domain").CrudRepository<VariantHasuraGraphQL, import("../../../../domain").CrudParams<VariantHasuraGraphQL>> & import("../../mixins").UpdateHasuraGraphQLRepositoryType<VariantHasuraGraphQL>, [HasuraConstructorParams<VariantHasuraGraphQL> & import("../../mixins/factories").CreateConstructorParams & import("../../mixins/factories").DeleteConstructorParams & import("../../mixins/factories").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
5
|
-
export declare class VariantHasuraGraphQLRepository extends VariantHasuraGraphQLRepository_base implements VariantRepository {
|
|
6
|
-
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<VariantHasuraGraphQL>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>);
|
|
7
|
-
get(identifiers: GetRepositoryParams<VariantHasuraGraphQL>): Promise<VariantHasuraGraphQL>;
|
|
8
|
-
find(params?: FindRepositoryParams<VariantHasuraGraphQL>): Promise<RepositoryFindResult<VariantHasuraGraphQL>>;
|
|
9
|
-
getByEAN(EAN: string): Promise<VariantHasuraGraphQL>;
|
|
10
|
-
update(params: UpdateRepositoryParams<VariantHasuraGraphQL>): Promise<VariantHasuraGraphQL>;
|
|
11
|
-
private getId;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
1
|
+
import { FindRepositoryParams, GetRepositoryParams, RepositoryFindResult, UpdateRepositoryParams, VariantRepository } from '../../../../domain';
|
|
2
|
+
import { HasuraConstructorParams } from '../../mixins';
|
|
3
|
+
import { VariantHasuraGraphQL } from '../../models';
|
|
4
|
+
declare const VariantHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<VariantHasuraGraphQL> & import("../../../../domain").CrudRepository<VariantHasuraGraphQL, import("../../../../domain").CrudParams<VariantHasuraGraphQL>> & import("../../mixins").UpdateHasuraGraphQLRepositoryType<VariantHasuraGraphQL>, [HasuraConstructorParams<VariantHasuraGraphQL> & import("../../mixins/factories").CreateConstructorParams & import("../../mixins/factories").DeleteConstructorParams & import("../../mixins/factories").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
5
|
+
export declare class VariantHasuraGraphQLRepository extends VariantHasuraGraphQLRepository_base implements VariantRepository {
|
|
6
|
+
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<VariantHasuraGraphQL>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>);
|
|
7
|
+
get(identifiers: GetRepositoryParams<VariantHasuraGraphQL>): Promise<VariantHasuraGraphQL>;
|
|
8
|
+
find(params?: FindRepositoryParams<VariantHasuraGraphQL>): Promise<RepositoryFindResult<VariantHasuraGraphQL>>;
|
|
9
|
+
getByEAN(EAN: string): Promise<VariantHasuraGraphQL>;
|
|
10
|
+
update(params: UpdateRepositoryParams<VariantHasuraGraphQL>): Promise<VariantHasuraGraphQL>;
|
|
11
|
+
private getId;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
package/src/infra/hasura-graphql/repositories/catalog/wishlist-hasura-graphql.repository.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { Category, CreateRepositoryParams, FindRepositoryParams, GetRepositoryParams, Product, RepositoryFindResult, Shops, UpdateRepositoryParams, Wishlist, WishlistRepository } from '../../../../domain';
|
|
2
|
-
import { HasuraConstructorParams } from '../../mixins';
|
|
3
|
-
import { WishlistHasuraGraphQL } from '../../models/wishlist-hasura-graphql';
|
|
4
|
-
import { CategoryProductHasuraGraphQLRepository } from './category-product-hasura-graphql.repository';
|
|
5
|
-
declare const WishlistHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<WishlistHasuraGraphQL> & import("../../../../domain").CrudRepository<WishlistHasuraGraphQL, import("../../../../domain").CrudParams<WishlistHasuraGraphQL>> & import("../../mixins").UpdateHasuraGraphQLRepositoryType<WishlistHasuraGraphQL>, [HasuraConstructorParams<WishlistHasuraGraphQL> & import("../../mixins/factories").CreateConstructorParams & import("../../mixins/factories").DeleteConstructorParams & import("../../mixins/factories").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
6
|
-
export declare class WishlistHasuraGraphQLRepository extends WishlistHasuraGraphQLRepository_base implements WishlistRepository {
|
|
7
|
-
private readonly categoryProductRepository;
|
|
8
|
-
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<Wishlist>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>, categoryProductRepository: CategoryProductHasuraGraphQLRepository);
|
|
9
|
-
create(params: CreateRepositoryParams<WishlistHasuraGraphQL>): Promise<WishlistHasuraGraphQL>;
|
|
10
|
-
get(identifiers: GetRepositoryParams<WishlistHasuraGraphQL>): Promise<WishlistHasuraGraphQL>;
|
|
11
|
-
find(params?: FindRepositoryParams<WishlistHasuraGraphQL>): Promise<RepositoryFindResult<WishlistHasuraGraphQL>>;
|
|
12
|
-
update(params: UpdateRepositoryParams<WishlistHasuraGraphQL>): Promise<WishlistHasuraGraphQL>;
|
|
13
|
-
getWishlistBySlug(slug: string): Promise<WishlistHasuraGraphQL>;
|
|
14
|
-
getWishlistByPerson(personId: string): Promise<WishlistHasuraGraphQL[]>;
|
|
15
|
-
getCategoryBySlug(slug: string, _shop: Shops): Promise<Wishlist>;
|
|
16
|
-
getCategoryByShop(shop: string): Promise<any>;
|
|
17
|
-
findBfluOrGlamgirlWishlists(params: FindRepositoryParams<WishlistHasuraGraphQL>, shops: Shops[]): Promise<RepositoryFindResult<WishlistHasuraGraphQL>>;
|
|
18
|
-
getCategoriesForHome(): Promise<{
|
|
19
|
-
category: Category;
|
|
20
|
-
products: Product[];
|
|
21
|
-
}[]>;
|
|
22
|
-
mountCategory(): Promise<Product[]>;
|
|
23
|
-
getChildren(_parentId: number): Promise<Category[]>;
|
|
24
|
-
isChild(_id: number, _parentId: number): Promise<boolean>;
|
|
25
|
-
private updateMetadata;
|
|
26
|
-
addProduct(wishlistId: string, productId: string): Promise<void>;
|
|
27
|
-
removeProduct(wishlistId: string, productId: string): Promise<void>;
|
|
28
|
-
getBrandsWithProducts(): Promise<Category[]>;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
1
|
+
import { Category, CreateRepositoryParams, FindRepositoryParams, GetRepositoryParams, Product, RepositoryFindResult, Shops, UpdateRepositoryParams, Wishlist, WishlistRepository } from '../../../../domain';
|
|
2
|
+
import { HasuraConstructorParams } from '../../mixins';
|
|
3
|
+
import { WishlistHasuraGraphQL } from '../../models/wishlist-hasura-graphql';
|
|
4
|
+
import { CategoryProductHasuraGraphQLRepository } from './category-product-hasura-graphql.repository';
|
|
5
|
+
declare const WishlistHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<WishlistHasuraGraphQL> & import("../../../../domain").CrudRepository<WishlistHasuraGraphQL, import("../../../../domain").CrudParams<WishlistHasuraGraphQL>> & import("../../mixins").UpdateHasuraGraphQLRepositoryType<WishlistHasuraGraphQL>, [HasuraConstructorParams<WishlistHasuraGraphQL> & import("../../mixins/factories").CreateConstructorParams & import("../../mixins/factories").DeleteConstructorParams & import("../../mixins/factories").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
6
|
+
export declare class WishlistHasuraGraphQLRepository extends WishlistHasuraGraphQLRepository_base implements WishlistRepository {
|
|
7
|
+
private readonly categoryProductRepository;
|
|
8
|
+
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<Wishlist>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>, categoryProductRepository: CategoryProductHasuraGraphQLRepository);
|
|
9
|
+
create(params: CreateRepositoryParams<WishlistHasuraGraphQL>): Promise<WishlistHasuraGraphQL>;
|
|
10
|
+
get(identifiers: GetRepositoryParams<WishlistHasuraGraphQL>): Promise<WishlistHasuraGraphQL>;
|
|
11
|
+
find(params?: FindRepositoryParams<WishlistHasuraGraphQL>): Promise<RepositoryFindResult<WishlistHasuraGraphQL>>;
|
|
12
|
+
update(params: UpdateRepositoryParams<WishlistHasuraGraphQL>): Promise<WishlistHasuraGraphQL>;
|
|
13
|
+
getWishlistBySlug(slug: string): Promise<WishlistHasuraGraphQL>;
|
|
14
|
+
getWishlistByPerson(personId: string): Promise<WishlistHasuraGraphQL[]>;
|
|
15
|
+
getCategoryBySlug(slug: string, _shop: Shops): Promise<Wishlist>;
|
|
16
|
+
getCategoryByShop(shop: string): Promise<any>;
|
|
17
|
+
findBfluOrGlamgirlWishlists(params: FindRepositoryParams<WishlistHasuraGraphQL>, shops: Shops[]): Promise<RepositoryFindResult<WishlistHasuraGraphQL>>;
|
|
18
|
+
getCategoriesForHome(): Promise<{
|
|
19
|
+
category: Category;
|
|
20
|
+
products: Product[];
|
|
21
|
+
}[]>;
|
|
22
|
+
mountCategory(): Promise<Product[]>;
|
|
23
|
+
getChildren(_parentId: number): Promise<Category[]>;
|
|
24
|
+
isChild(_id: number, _parentId: number): Promise<boolean>;
|
|
25
|
+
private updateMetadata;
|
|
26
|
+
addProduct(wishlistId: string, productId: string): Promise<void>;
|
|
27
|
+
removeProduct(wishlistId: string, productId: string): Promise<void>;
|
|
28
|
+
getBrandsWithProducts(): Promise<Category[]>;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './catalog';
|
|
1
|
+
export * from './catalog';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NestedField } from './nested-field.type';
|
|
2
|
-
export type Fields = Array<string | object | NestedField | 'aggregate' | 'nodes'>;
|
|
1
|
+
import { NestedField } from './nested-field.type';
|
|
2
|
+
export type Fields = Array<string | object | NestedField | 'aggregate' | 'nodes'>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { IOperation } from 'gql-query-builder/build/IQueryBuilderOptions';
|
|
2
|
-
import { BaseModelBuilder, CacheConfig, ModelBaseStructure } from '../../../domain';
|
|
3
|
-
import { DebugHelper } from '../../../utils';
|
|
4
|
-
import { HasuraGraphQLAuthOptions } from './hasura-graphql-auth-options.type';
|
|
5
|
-
import { HasuraGraphQLFields } from './hasura-graphql-fields.type';
|
|
6
|
-
import { VariableOptions } from './variable-options.type';
|
|
7
|
-
export type GraphQLParams<Model extends ModelBaseStructure<Model>> = {
|
|
8
|
-
operation: string | IOperation;
|
|
9
|
-
fields?: HasuraGraphQLFields<Model>;
|
|
10
|
-
variables?: VariableOptions;
|
|
11
|
-
};
|
|
12
|
-
export type GraphQLRepository<Model extends ModelBaseStructure<Model>> = {
|
|
13
|
-
tableName: string;
|
|
14
|
-
model: BaseModelBuilder<Model>;
|
|
15
|
-
fields: HasuraGraphQLFields<Model>;
|
|
16
|
-
endpoint: string;
|
|
17
|
-
authOptions: HasuraGraphQLAuthOptions;
|
|
18
|
-
logger: DebugHelper;
|
|
19
|
-
cache?: CacheConfig;
|
|
20
|
-
mutation: <ReturnFields = any>(operation: string | IOperation, fields?: string[] | HasuraGraphQLFields<Model>, variables?: VariableOptions) => Promise<ReturnFields>;
|
|
21
|
-
query: <ReturnFields = any>(operation: string | IOperation | GraphQLParams<Model>[], fields?: string[] | HasuraGraphQLFields<Model>, variables?: VariableOptions) => Promise<ReturnFields>;
|
|
22
|
-
getAttributeGraphQLTypeOf: <FieldValue>(value: FieldValue) => string;
|
|
23
|
-
convertDataFromHasura(data: Record<string, string | number>, fields?: string[] | HasuraGraphQLFields<Model>): Model;
|
|
24
|
-
convertDataToHasura(instance: Model, update?: boolean): Record<string, string | number>;
|
|
25
|
-
};
|
|
1
|
+
import { IOperation } from 'gql-query-builder/build/IQueryBuilderOptions';
|
|
2
|
+
import { BaseModelBuilder, CacheConfig, ModelBaseStructure } from '../../../domain';
|
|
3
|
+
import { DebugHelper } from '../../../utils';
|
|
4
|
+
import { HasuraGraphQLAuthOptions } from './hasura-graphql-auth-options.type';
|
|
5
|
+
import { HasuraGraphQLFields } from './hasura-graphql-fields.type';
|
|
6
|
+
import { VariableOptions } from './variable-options.type';
|
|
7
|
+
export type GraphQLParams<Model extends ModelBaseStructure<Model>> = {
|
|
8
|
+
operation: string | IOperation;
|
|
9
|
+
fields?: HasuraGraphQLFields<Model>;
|
|
10
|
+
variables?: VariableOptions;
|
|
11
|
+
};
|
|
12
|
+
export type GraphQLRepository<Model extends ModelBaseStructure<Model>> = {
|
|
13
|
+
tableName: string;
|
|
14
|
+
model: BaseModelBuilder<Model>;
|
|
15
|
+
fields: HasuraGraphQLFields<Model>;
|
|
16
|
+
endpoint: string;
|
|
17
|
+
authOptions: HasuraGraphQLAuthOptions;
|
|
18
|
+
logger: DebugHelper;
|
|
19
|
+
cache?: CacheConfig;
|
|
20
|
+
mutation: <ReturnFields = any>(operation: string | IOperation, fields?: string[] | HasuraGraphQLFields<Model>, variables?: VariableOptions) => Promise<ReturnFields>;
|
|
21
|
+
query: <ReturnFields = any>(operation: string | IOperation | GraphQLParams<Model>[], fields?: string[] | HasuraGraphQLFields<Model>, variables?: VariableOptions) => Promise<ReturnFields>;
|
|
22
|
+
getAttributeGraphQLTypeOf: <FieldValue>(value: FieldValue) => string;
|
|
23
|
+
convertDataFromHasura(data: Record<string, string | number>, fields?: string[] | HasuraGraphQLFields<Model>): Model;
|
|
24
|
+
convertDataToHasura(instance: Model, update?: boolean): Record<string, string | number>;
|
|
25
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type HasuraGraphQLAuthOptions = {
|
|
2
|
-
adminSecret?: string;
|
|
3
|
-
authRole?: {
|
|
4
|
-
role: string;
|
|
5
|
-
userId: string;
|
|
6
|
-
};
|
|
7
|
-
authToken?: string;
|
|
8
|
-
};
|
|
1
|
+
export type HasuraGraphQLAuthOptions = {
|
|
2
|
+
adminSecret?: string;
|
|
3
|
+
authRole?: {
|
|
4
|
+
role: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
};
|
|
7
|
+
authToken?: string;
|
|
8
|
+
};
|
|
@@ -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 {};
|