@infrab4a/connect 1.0.0-beta.41 → 1.0.0-beta.5
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/bundles/infrab4a-connect.umd.js +212 -2113
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/catalog/models/category.d.ts +4 -5
- package/domain/catalog/models/index.d.ts +2 -3
- package/domain/catalog/models/product.d.ts +4 -9
- package/domain/catalog/models/types/product-review.type.d.ts +8 -10
- package/domain/catalog/models/variant.d.ts +3 -7
- package/domain/catalog/repositories/category.repository.d.ts +1 -1
- package/domain/catalog/repositories/product.repository.d.ts +3 -10
- package/domain/catalog/repositories/subscription-product.repository.d.ts +1 -1
- package/domain/catalog/repositories/variant.repository.d.ts +1 -1
- package/domain/general/model/base-model-with-identifier-fields.d.ts +3 -0
- package/domain/general/model/base.model.d.ts +6 -0
- package/domain/{generic → general}/model/index.d.ts +1 -0
- package/domain/general/model/types/base-model-builder.type.d.ts +5 -0
- package/domain/{generic → general}/model/types/index.d.ts +0 -2
- package/domain/general/model/types/non-function-properties.type.d.ts +2 -0
- package/domain/general/model/types/non-function-property-name.type.d.ts +3 -0
- package/domain/general/repository/create.repository.d.ts +5 -0
- package/domain/general/repository/crud.repository.d.ts +7 -0
- package/domain/general/repository/delete.repository.d.ts +5 -0
- package/domain/{generic → general}/repository/enums/where.enum.d.ts +2 -5
- package/domain/general/repository/find.repository.d.ts +5 -0
- package/domain/general/repository/get.repository.d.ts +5 -0
- package/domain/general/repository/read.repository.d.ts +5 -0
- package/domain/{generic → general}/repository/types/index.d.ts +0 -1
- package/domain/general/repository/types/repository-find-filters.type.d.ts +14 -0
- package/domain/{generic → general}/repository/types/repository-update-params.type.d.ts +4 -4
- package/domain/general/repository/update.repository.d.ts +5 -0
- package/domain/index.d.ts +1 -1
- package/domain/location/models/address.d.ts +2 -3
- package/domain/shop-settings/models/home.d.ts +3 -3
- package/domain/shop-settings/models/shop-menu.d.ts +3 -3
- package/domain/shop-settings/repositories/home.repository.d.ts +1 -1
- package/domain/shop-settings/repositories/shop-menu.repository.d.ts +1 -1
- package/domain/shopping/models/buy-2-win.d.ts +5 -3
- package/domain/shopping/models/checkout.d.ts +9 -7
- package/domain/shopping/models/coupons/club-coupon.d.ts +7 -0
- package/domain/shopping/models/coupons/coupon.d.ts +15 -13
- package/domain/shopping/models/coupons/enums/discount-type.enum.d.ts +5 -0
- package/domain/shopping/models/coupons/enums/index.d.ts +1 -2
- package/domain/shopping/models/coupons/index.d.ts +2 -1
- package/domain/shopping/models/coupons/store-coupon.d.ts +8 -0
- package/domain/shopping/models/payment.d.ts +5 -3
- package/domain/shopping/models/shipping-method.d.ts +5 -3
- package/domain/shopping/models/subscription/checkout.d.ts +5 -3
- package/domain/shopping/models/subscription/plan.d.ts +5 -3
- package/domain/shopping/repositories/buy-2-win.repository.d.ts +1 -1
- package/domain/shopping/repositories/checkout.repository.d.ts +1 -1
- package/domain/shopping/repositories/coupon.repository.d.ts +1 -1
- package/domain/shopping/repositories/order.repository.d.ts +1 -1
- package/domain/shopping/repositories/payment.repository.d.ts +1 -1
- package/domain/shopping/repositories/subscription/checkout.repository.d.ts +1 -1
- package/domain/shopping/repositories/subscription/plan.repository.d.ts +1 -1
- package/domain/users/errors/unauthorized.error.d.ts +1 -2
- package/domain/users/errors/user-already-registered.error.d.ts +1 -2
- package/domain/users/errors/weak-password.error.d.ts +1 -2
- package/domain/users/models/beauty-profile.d.ts +5 -4
- package/domain/users/models/lead.d.ts +5 -3
- package/domain/users/models/subscription/edition.d.ts +5 -4
- package/domain/users/models/subscription/payment.d.ts +5 -4
- package/domain/users/models/subscription/subscription.d.ts +5 -3
- package/domain/users/models/user-address.d.ts +3 -3
- package/domain/users/models/user-payment-method.d.ts +4 -4
- package/domain/users/models/user.d.ts +10 -11
- package/domain/users/repositories/beauty-profile.repository.d.ts +1 -1
- package/domain/users/repositories/edition.repository.d.ts +1 -1
- package/domain/users/repositories/lead.repository.d.ts +1 -1
- package/domain/users/repositories/subscription-payment.repository.d.ts +1 -1
- package/domain/users/repositories/subscription.repository.d.ts +1 -1
- package/domain/users/repositories/user-address.repository.d.ts +1 -1
- package/domain/users/repositories/user-payment-method.repository.d.ts +1 -1
- package/domain/users/repositories/user.repository.d.ts +2 -2
- package/errors/duplicated-results.error.d.ts +1 -2
- package/errors/invalid-argument.error.d.ts +1 -2
- package/errors/not-found.error.d.ts +1 -2
- package/errors/required-argument.error.d.ts +1 -2
- package/esm2015/domain/catalog/models/category.js +2 -5
- package/esm2015/domain/catalog/models/index.js +3 -4
- package/esm2015/domain/catalog/models/product.js +2 -12
- package/esm2015/domain/catalog/models/types/product-review.type.js +1 -1
- package/esm2015/domain/catalog/models/variant.js +2 -5
- package/esm2015/domain/catalog/repositories/category.repository.js +1 -1
- package/esm2015/domain/catalog/repositories/product.repository.js +1 -1
- package/esm2015/domain/catalog/repositories/subscription-product.repository.js +1 -1
- package/esm2015/domain/catalog/repositories/variant.repository.js +1 -1
- package/esm2015/domain/{generic → general}/index.js +1 -1
- package/esm2015/domain/general/model/base-model-with-identifier-fields.js +2 -0
- package/esm2015/domain/general/model/base.model.js +13 -0
- package/esm2015/domain/{generic → general}/model/identifier-fields.js +1 -1
- package/esm2015/domain/general/model/index.js +5 -0
- package/esm2015/domain/general/model/types/base-model-builder.type.js +2 -0
- package/esm2015/domain/general/model/types/index.js +4 -0
- package/esm2015/domain/general/model/types/non-function-properties.type.js +2 -0
- package/esm2015/domain/general/model/types/non-function-property-name.type.js +2 -0
- package/esm2015/domain/general/repository/create.repository.js +2 -0
- package/esm2015/domain/general/repository/crud.repository.js +2 -0
- package/esm2015/domain/general/repository/delete.repository.js +2 -0
- package/esm2015/domain/{generic → general}/repository/enums/index.js +1 -1
- package/esm2015/domain/{generic → general}/repository/enums/update-option-actions.enum.js +1 -1
- package/esm2015/domain/general/repository/enums/where.enum.js +12 -0
- package/esm2015/domain/general/repository/find.repository.js +2 -0
- package/esm2015/domain/general/repository/get.repository.js +2 -0
- package/esm2015/domain/{generic → general}/repository/index.js +1 -1
- package/esm2015/domain/general/repository/read.repository.js +2 -0
- package/esm2015/domain/general/repository/types/index.js +6 -0
- package/esm2015/domain/general/repository/types/repository-find-filters.type.js +2 -0
- package/esm2015/domain/{generic → general}/repository/types/repository-find-result.type.js +1 -1
- package/esm2015/domain/{generic → general}/repository/types/repository-limit-options.type.js +1 -1
- package/esm2015/domain/{generic → general}/repository/types/repository-order-by-list.type.js +1 -1
- package/esm2015/domain/general/repository/types/repository-update-params.type.js +2 -0
- package/esm2015/domain/general/repository/update.repository.js +2 -0
- package/esm2015/domain/index.js +2 -2
- package/esm2015/domain/location/models/address.js +2 -5
- package/esm2015/domain/shop-settings/models/home.js +3 -3
- package/esm2015/domain/shop-settings/models/shop-menu.js +3 -3
- package/esm2015/domain/shop-settings/repositories/home.repository.js +1 -1
- package/esm2015/domain/shop-settings/repositories/shop-menu.repository.js +1 -1
- package/esm2015/domain/shopping/models/buy-2-win.js +3 -3
- package/esm2015/domain/shopping/models/checkout.js +14 -6
- package/esm2015/domain/shopping/models/coupons/club-coupon.js +18 -0
- package/esm2015/domain/shopping/models/coupons/coupon.js +12 -4
- package/esm2015/domain/shopping/models/coupons/enums/discount-type.enum.js +7 -0
- package/esm2015/domain/shopping/models/coupons/enums/index.js +2 -3
- package/esm2015/domain/shopping/models/coupons/index.js +3 -2
- package/esm2015/domain/shopping/models/coupons/store-coupon.js +23 -0
- package/esm2015/domain/shopping/models/payment.js +3 -3
- package/esm2015/domain/shopping/models/shipping-method.js +3 -3
- package/esm2015/domain/shopping/models/subscription/checkout.js +3 -3
- package/esm2015/domain/shopping/models/subscription/plan.js +3 -3
- package/esm2015/domain/shopping/repositories/buy-2-win.repository.js +1 -1
- package/esm2015/domain/shopping/repositories/checkout.repository.js +1 -1
- package/esm2015/domain/shopping/repositories/coupon.repository.js +1 -1
- package/esm2015/domain/shopping/repositories/order.repository.js +1 -1
- package/esm2015/domain/shopping/repositories/payment.repository.js +1 -1
- package/esm2015/domain/shopping/repositories/subscription/checkout.repository.js +1 -1
- package/esm2015/domain/shopping/repositories/subscription/plan.repository.js +1 -1
- package/esm2015/domain/users/errors/unauthorized.error.js +2 -3
- package/esm2015/domain/users/errors/user-already-registered.error.js +2 -3
- package/esm2015/domain/users/errors/weak-password.error.js +2 -3
- package/esm2015/domain/users/models/beauty-profile.js +4 -4
- package/esm2015/domain/users/models/lead.js +3 -3
- package/esm2015/domain/users/models/subscription/edition.js +4 -4
- package/esm2015/domain/users/models/subscription/payment.js +4 -4
- package/esm2015/domain/users/models/subscription/subscription.js +3 -3
- package/esm2015/domain/users/models/user-address.js +3 -3
- package/esm2015/domain/users/models/user-payment-method.js +4 -4
- package/esm2015/domain/users/models/user.js +5 -5
- package/esm2015/domain/users/repositories/beauty-profile.repository.js +1 -1
- package/esm2015/domain/users/repositories/edition.repository.js +1 -1
- package/esm2015/domain/users/repositories/lead.repository.js +1 -1
- package/esm2015/domain/users/repositories/subscription-payment.repository.js +1 -1
- package/esm2015/domain/users/repositories/subscription.repository.js +1 -1
- package/esm2015/domain/users/repositories/user-address.repository.js +1 -1
- package/esm2015/domain/users/repositories/user-payment-method.repository.js +1 -1
- package/esm2015/domain/users/repositories/user.repository.js +1 -1
- package/esm2015/errors/duplicated-results.error.js +2 -3
- package/esm2015/errors/invalid-argument.error.js +2 -3
- package/esm2015/errors/not-found.error.js +2 -3
- package/esm2015/errors/required-argument.error.js +2 -3
- package/esm2015/infra/elasticsearch/adapters/axios.adapter.js +1 -36
- package/esm2015/infra/elasticsearch/adapters/elastic-search.adapter.js +1 -1
- package/esm2015/infra/elasticsearch/indexes/products-index.js +1 -35
- package/esm2015/infra/firebase/auth/authentication-firebase-auth.service.js +2 -2
- package/esm2015/infra/firebase/auth/register-firebase-auth.service.js +1 -1
- package/esm2015/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +2 -2
- package/esm2015/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +1 -1
- package/esm2015/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +1 -1
- package/esm2015/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +10 -9
- package/esm2015/infra/firebase/firestore/mixins/with-firestore.mixin.js +6 -2
- package/esm2015/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +1 -1
- package/esm2015/infra/firebase/firestore/mixins/with-helpers.mixin.js +1 -1
- package/esm2015/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +1 -1
- package/esm2015/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +4 -4
- package/esm2015/infra/firebase/firestore/models/user-search.js +3 -3
- package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +2 -4
- package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +8 -37
- package/esm2015/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +21 -11
- package/esm2015/infra/firebase/firestore/repositories/users/user-firestore.repository.js +2 -2
- package/esm2015/infra/firebase/firestore/types/firestore-sub.repository.type.js +1 -1
- package/esm2015/infra/firebase/firestore/types/firestore.helpers.type.js +1 -1
- package/esm2015/infra/firebase/firestore/types/firestore.repository.type.js +1 -1
- package/esm2015/infra/index.js +1 -2
- package/esm2015/utils/index.js +4 -6
- package/esm2015/utils/mixins/index.js +1 -2
- package/esm2015/utils/mixins/mixin-ctor.type.js +1 -1
- package/esm2015/utils/types/index.js +1 -2
- package/fesm2015/infrab4a-connect.js +141 -1369
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/infra/elasticsearch/adapters/axios.adapter.d.ts +0 -3
- package/infra/elasticsearch/adapters/elastic-search.adapter.d.ts +0 -3
- package/infra/elasticsearch/indexes/products-index.d.ts +1 -5
- package/infra/firebase/auth/authentication-firebase-auth.service.d.ts +1 -1
- package/infra/firebase/auth/register-firebase-auth.service.d.ts +1 -1
- package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +16 -3
- package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +28 -3
- package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +14 -3
- package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +19 -3
- package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +14 -3
- package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +14 -3
- package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +4 -5
- package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +14 -7
- package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +15 -6
- package/infra/firebase/firestore/models/user-search.d.ts +3 -3
- package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +44 -5
- package/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +51 -4
- package/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +51 -4
- package/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +51 -4
- package/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +51 -4
- package/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +51 -4
- package/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +51 -4
- package/infra/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +42 -1
- package/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +3 -3
- package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +3 -3
- package/infra/firebase/firestore/types/firestore.repository.type.d.ts +3 -7
- package/infra/index.d.ts +0 -1
- package/package.json +3 -5
- package/utils/index.d.ts +4 -5
- package/utils/mixins/index.d.ts +0 -1
- package/utils/mixins/mixin-ctor.type.d.ts +1 -1
- package/utils/types/index.d.ts +0 -1
- package/domain/catalog/models/kit-product.d.ts +0 -12
- package/domain/generic/model/base.model.d.ts +0 -10
- package/domain/generic/model/types/base-model-builder.type.d.ts +0 -15
- package/domain/generic/model/types/identifier-model.type.d.ts +0 -7
- package/domain/generic/model/types/model-base-structure.type.d.ts +0 -6
- package/domain/generic/model/types/non-function-properties.type.d.ts +0 -12
- package/domain/generic/model/types/non-function-property-name.type.d.ts +0 -4
- package/domain/generic/repository/create.repository.d.ts +0 -8
- package/domain/generic/repository/crud.repository.d.ts +0 -19
- package/domain/generic/repository/delete.repository.d.ts +0 -7
- package/domain/generic/repository/find.repository.d.ts +0 -11
- package/domain/generic/repository/get.repository.d.ts +0 -5
- package/domain/generic/repository/read.repository.d.ts +0 -14
- package/domain/generic/repository/types/repository-find-filters.type.d.ts +0 -13
- package/domain/generic/repository/types/where-options.type.d.ts +0 -2
- package/domain/generic/repository/update.repository.d.ts +0 -6
- package/domain/shopping/models/coupons/enums/coupon-subtypes.enum.d.ts +0 -4
- package/domain/shopping/models/coupons/enums/coupon-types.enum.d.ts +0 -6
- package/domain/shopping/models/coupons/financial-coupon.d.ts +0 -9
- package/esm2015/domain/catalog/models/kit-product.js +0 -18
- package/esm2015/domain/generic/model/base.model.js +0 -23
- package/esm2015/domain/generic/model/index.js +0 -4
- package/esm2015/domain/generic/model/types/base-model-builder.type.js +0 -2
- package/esm2015/domain/generic/model/types/identifier-model.type.js +0 -2
- package/esm2015/domain/generic/model/types/index.js +0 -6
- package/esm2015/domain/generic/model/types/model-base-structure.type.js +0 -2
- package/esm2015/domain/generic/model/types/non-function-properties.type.js +0 -2
- package/esm2015/domain/generic/model/types/non-function-property-name.type.js +0 -2
- package/esm2015/domain/generic/repository/create.repository.js +0 -2
- package/esm2015/domain/generic/repository/crud.repository.js +0 -2
- package/esm2015/domain/generic/repository/delete.repository.js +0 -2
- package/esm2015/domain/generic/repository/enums/where.enum.js +0 -15
- package/esm2015/domain/generic/repository/find.repository.js +0 -2
- package/esm2015/domain/generic/repository/get.repository.js +0 -2
- package/esm2015/domain/generic/repository/read.repository.js +0 -2
- package/esm2015/domain/generic/repository/types/index.js +0 -7
- package/esm2015/domain/generic/repository/types/repository-find-filters.type.js +0 -2
- package/esm2015/domain/generic/repository/types/repository-update-params.type.js +0 -2
- package/esm2015/domain/generic/repository/types/where-options.type.js +0 -2
- package/esm2015/domain/generic/repository/update.repository.js +0 -2
- package/esm2015/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js +0 -6
- package/esm2015/domain/shopping/models/coupons/enums/coupon-types.enum.js +0 -8
- package/esm2015/domain/shopping/models/coupons/financial-coupon.js +0 -28
- package/esm2015/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.js +0 -13
- package/esm2015/infra/hasura-graphql/enums/hasura-graphql-where.enum.js +0 -15
- package/esm2015/infra/hasura-graphql/enums/index.js +0 -3
- package/esm2015/infra/hasura-graphql/index.js +0 -5
- package/esm2015/infra/hasura-graphql/mixins/helpers/attribute-option.helper.js +0 -31
- package/esm2015/infra/hasura-graphql/mixins/helpers/filter-option.helper.js +0 -18
- package/esm2015/infra/hasura-graphql/mixins/helpers/graphql-field.helper.js +0 -72
- package/esm2015/infra/hasura-graphql/mixins/helpers/index.js +0 -4
- package/esm2015/infra/hasura-graphql/mixins/index.js +0 -8
- package/esm2015/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.js +0 -45
- package/esm2015/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.js +0 -10
- package/esm2015/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.js +0 -29
- package/esm2015/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.js +0 -93
- package/esm2015/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.js +0 -35
- package/esm2015/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.js +0 -94
- package/esm2015/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.js +0 -56
- package/esm2015/infra/hasura-graphql/models/category-hasura-graphql.js +0 -4
- package/esm2015/infra/hasura-graphql/models/index.js +0 -5
- package/esm2015/infra/hasura-graphql/models/kit-product-hasura-graphql.js +0 -15
- package/esm2015/infra/hasura-graphql/models/product-hasura-graphql.js +0 -11
- package/esm2015/infra/hasura-graphql/models/variant-hasura-graphql.js +0 -9
- package/esm2015/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.js +0 -136
- package/esm2015/infra/hasura-graphql/repositories/catalog/index.js +0 -4
- package/esm2015/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.js +0 -375
- package/esm2015/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.js +0 -100
- package/esm2015/infra/hasura-graphql/repositories/index.js +0 -2
- package/esm2015/infra/hasura-graphql/types/fields.type.js +0 -2
- package/esm2015/infra/hasura-graphql/types/graphql.repository.type.js +0 -2
- package/esm2015/infra/hasura-graphql/types/hasura-graphql-auth-options.type.js +0 -2
- package/esm2015/infra/hasura-graphql/types/hasura-graphql-fields.type.js +0 -2
- package/esm2015/infra/hasura-graphql/types/hasura-graphql-headers.type.js +0 -2
- package/esm2015/infra/hasura-graphql/types/index.js +0 -9
- package/esm2015/infra/hasura-graphql/types/nested-field.type.js +0 -2
- package/esm2015/infra/hasura-graphql/types/query-builder-options.type.js +0 -2
- package/esm2015/infra/hasura-graphql/types/variable-options.type.js +0 -2
- package/esm2015/utils/is-uuid.js +0 -3
- package/esm2015/utils/mixins/merge-constructor-params.type.js +0 -2
- package/esm2015/utils/parse-datetime.js +0 -14
- package/esm2015/utils/types/array-element.type.js +0 -2
- package/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.d.ts +0 -11
- package/infra/hasura-graphql/enums/hasura-graphql-where.enum.d.ts +0 -13
- package/infra/hasura-graphql/enums/index.d.ts +0 -2
- package/infra/hasura-graphql/index.d.ts +0 -4
- package/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +0 -13
- package/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +0 -6
- package/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +0 -8
- package/infra/hasura-graphql/mixins/helpers/index.d.ts +0 -3
- package/infra/hasura-graphql/mixins/index.d.ts +0 -7
- package/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +0 -8
- package/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +0 -11
- package/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +0 -7
- package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +0 -31
- package/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +0 -24
- package/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +0 -11
- package/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +0 -14
- package/infra/hasura-graphql/models/category-hasura-graphql.d.ts +0 -6
- package/infra/hasura-graphql/models/index.d.ts +0 -4
- package/infra/hasura-graphql/models/kit-product-hasura-graphql.d.ts +0 -6
- package/infra/hasura-graphql/models/product-hasura-graphql.d.ts +0 -9
- package/infra/hasura-graphql/models/variant-hasura-graphql.d.ts +0 -9
- package/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +0 -22
- package/infra/hasura-graphql/repositories/catalog/index.d.ts +0 -3
- package/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +0 -26
- package/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts +0 -13
- package/infra/hasura-graphql/repositories/index.d.ts +0 -1
- package/infra/hasura-graphql/types/fields.type.d.ts +0 -2
- package/infra/hasura-graphql/types/graphql.repository.type.d.ts +0 -21
- package/infra/hasura-graphql/types/hasura-graphql-auth-options.type.d.ts +0 -8
- package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +0 -36
- package/infra/hasura-graphql/types/hasura-graphql-headers.type.d.ts +0 -7
- package/infra/hasura-graphql/types/index.d.ts +0 -8
- package/infra/hasura-graphql/types/nested-field.type.d.ts +0 -7
- package/infra/hasura-graphql/types/query-builder-options.type.d.ts +0 -7
- package/infra/hasura-graphql/types/variable-options.type.d.ts +0 -9
- package/utils/is-uuid.d.ts +0 -1
- package/utils/mixins/merge-constructor-params.type.d.ts +0 -3
- package/utils/parse-datetime.d.ts +0 -1
- package/utils/types/array-element.type.d.ts +0 -1
- /package/domain/{generic → general}/index.d.ts +0 -0
- /package/domain/{generic → general}/model/identifier-fields.d.ts +0 -0
- /package/domain/{generic → general}/repository/enums/index.d.ts +0 -0
- /package/domain/{generic → general}/repository/enums/update-option-actions.enum.d.ts +0 -0
- /package/domain/{generic → general}/repository/index.d.ts +0 -0
- /package/domain/{generic → general}/repository/types/repository-find-result.type.d.ts +0 -0
- /package/domain/{generic → general}/repository/types/repository-limit-options.type.d.ts +0 -0
- /package/domain/{generic → general}/repository/types/repository-order-by-list.type.d.ts +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './fields.type';
|
|
2
|
-
export * from './graphql.repository.type';
|
|
3
|
-
export * from './nested-field.type';
|
|
4
|
-
export * from './query-builder-options.type';
|
|
5
|
-
export * from './variable-options.type';
|
|
6
|
-
export * from './hasura-graphql-auth-options.type';
|
|
7
|
-
export * from './hasura-graphql-fields.type';
|
|
8
|
-
export * from './hasura-graphql-headers.type';
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9pbmZyYS9oYXN1cmEtZ3JhcGhxbC90eXBlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGVBQWUsQ0FBQTtBQUM3QixjQUFjLDJCQUEyQixDQUFBO0FBQ3pDLGNBQWMscUJBQXFCLENBQUE7QUFDbkMsY0FBYyw4QkFBOEIsQ0FBQTtBQUM1QyxjQUFjLHlCQUF5QixDQUFBO0FBQ3ZDLGNBQWMsb0NBQW9DLENBQUE7QUFDbEQsY0FBYyw4QkFBOEIsQ0FBQTtBQUM1QyxjQUFjLCtCQUErQixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9maWVsZHMudHlwZSdcbmV4cG9ydCAqIGZyb20gJy4vZ3JhcGhxbC5yZXBvc2l0b3J5LnR5cGUnXG5leHBvcnQgKiBmcm9tICcuL25lc3RlZC1maWVsZC50eXBlJ1xuZXhwb3J0ICogZnJvbSAnLi9xdWVyeS1idWlsZGVyLW9wdGlvbnMudHlwZSdcbmV4cG9ydCAqIGZyb20gJy4vdmFyaWFibGUtb3B0aW9ucy50eXBlJ1xuZXhwb3J0ICogZnJvbSAnLi9oYXN1cmEtZ3JhcGhxbC1hdXRoLW9wdGlvbnMudHlwZSdcbmV4cG9ydCAqIGZyb20gJy4vaGFzdXJhLWdyYXBocWwtZmllbGRzLnR5cGUnXG5leHBvcnQgKiBmcm9tICcuL2hhc3VyYS1ncmFwaHFsLWhlYWRlcnMudHlwZSdcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmVzdGVkLWZpZWxkLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9pbmZyYS9oYXN1cmEtZ3JhcGhxbC90eXBlcy9uZXN0ZWQtZmllbGQudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRmllbGRzIH0gZnJvbSAnLi9maWVsZHMudHlwZSdcbmltcG9ydCB7IFF1ZXJ5QnVpbGRlck9wdGlvbnMgfSBmcm9tICcuL3F1ZXJ5LWJ1aWxkZXItb3B0aW9ucy50eXBlJ1xuXG5leHBvcnQgdHlwZSBOZXN0ZWRGaWVsZCA9IHtcbiAgb3BlcmF0aW9uOiBzdHJpbmdcbiAgdmFyaWFibGVzOiBRdWVyeUJ1aWxkZXJPcHRpb25zW11cbiAgZmllbGRzOiBGaWVsZHNcbn1cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktYnVpbGRlci1vcHRpb25zLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9pbmZyYS9oYXN1cmEtZ3JhcGhxbC90eXBlcy9xdWVyeS1idWlsZGVyLW9wdGlvbnMudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRmllbGRzIH0gZnJvbSAnLi9maWVsZHMudHlwZSdcbmltcG9ydCB7IFZhcmlhYmxlT3B0aW9ucyB9IGZyb20gJy4vdmFyaWFibGUtb3B0aW9ucy50eXBlJ1xuXG5leHBvcnQgaW50ZXJmYWNlIFF1ZXJ5QnVpbGRlck9wdGlvbnMge1xuICBvcGVyYXRpb246IHN0cmluZ1xuICBmaWVsZHM/OiBGaWVsZHNcbiAgdmFyaWFibGVzPzogVmFyaWFibGVPcHRpb25zXG59XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFyaWFibGUtb3B0aW9ucy50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvaW5mcmEvaGFzdXJhLWdyYXBocWwvdHlwZXMvdmFyaWFibGUtb3B0aW9ucy50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBWYXJpYWJsZU9wdGlvbnMgPVxuICB8IHtcbiAgICAgIHR5cGU/OiBzdHJpbmdcbiAgICAgIG5hbWU/OiBzdHJpbmdcbiAgICAgIHZhbHVlOiBhbnlcbiAgICAgIGxpc3Q/OiBib29sZWFuXG4gICAgICByZXF1aXJlZD86IGJvb2xlYW5cbiAgICB9XG4gIHwge1xuICAgICAgW2s6IHN0cmluZ106IGFueVxuICAgIH1cbiJdfQ==
|
package/esm2015/utils/is-uuid.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { isString } from 'lodash';
|
|
2
|
-
export const isUUID = (value) => isString(value) && /[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}/.test(value);
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtdXVpZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL3V0aWxzL2lzLXV1aWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLFFBQVEsQ0FBQTtBQUVqQyxNQUFNLENBQUMsTUFBTSxNQUFNLEdBQUcsQ0FBQyxLQUFhLEVBQVcsRUFBRSxDQUMvQyxRQUFRLENBQUMsS0FBSyxDQUFDLElBQUksaUZBQWlGLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgaXNTdHJpbmcgfSBmcm9tICdsb2Rhc2gnXG5cbmV4cG9ydCBjb25zdCBpc1VVSUQgPSAodmFsdWU6IHN0cmluZyk6IGJvb2xlYW4gPT5cbiAgaXNTdHJpbmcodmFsdWUpICYmIC9bMC05YS1mQS1GXXs4fVxcLVswLTlhLWZBLUZdezR9XFwtWzAtOWEtZkEtRl17NH1cXC1bMC05YS1mQS1GXXs0fVxcLVswLTlhLWZBLUZdezEyfS8udGVzdCh2YWx1ZSlcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVyZ2UtY29uc3RydWN0b3ItcGFyYW1zLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy91dGlscy9taXhpbnMvbWVyZ2UtY29uc3RydWN0b3ItcGFyYW1zLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbInR5cGUgVGFpbDxUIGV4dGVuZHMgYW55W10+ID0gVCBleHRlbmRzIFthbnksIC4uLmluZmVyIFVdID8gVSA6IG5ldmVyXG5leHBvcnQgdHlwZSBNZXJnZUNvbnN0cnVjdG9yUGFyYW1zPE5ld1BhcmFtcywgQ3VycmVudFBhcmFtcyBleHRlbmRzIGFueVtdPiA9IEN1cnJlbnRQYXJhbXMgZXh0ZW5kcyBbXVxuICA/IFtOZXdQYXJhbXMsIC4uLmFueV1cbiAgOiBDdXJyZW50UGFyYW1zWzBdIGV4dGVuZHMgbmV2ZXJcbiAgPyBbTmV3UGFyYW1zLCAuLi5hbnldXG4gIDogW0N1cnJlbnRQYXJhbXNbMF0gJiBOZXdQYXJhbXMsIC4uLlRhaWw8Q3VycmVudFBhcmFtcz5dXG4iXX0=
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { isString } from 'lodash';
|
|
2
|
-
import { parseISO } from 'date-fns';
|
|
3
|
-
export const parseDateTime = (value) => {
|
|
4
|
-
if (!isString(value))
|
|
5
|
-
return value;
|
|
6
|
-
if (!/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/.test(value) &&
|
|
7
|
-
!/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T\d{2}:\d{2}:\d{2}/.test(value))
|
|
8
|
-
return value;
|
|
9
|
-
const date = parseISO(value);
|
|
10
|
-
if (isNaN(date.getTime()))
|
|
11
|
-
return value;
|
|
12
|
-
return date;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2UtZGF0ZXRpbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy91dGlscy9wYXJzZS1kYXRldGltZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sUUFBUSxDQUFBO0FBQ2pDLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFFbkMsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHLENBQUMsS0FBYSxFQUFpQixFQUFFO0lBQzVELElBQUksQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDO1FBQUUsT0FBTyxLQUFLLENBQUE7SUFDbEMsSUFDRSxDQUFDLGtEQUFrRCxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUM7UUFDL0QsQ0FBQyxtRUFBbUUsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDO1FBRWhGLE9BQU8sS0FBSyxDQUFBO0lBRWQsTUFBTSxJQUFJLEdBQUcsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFBO0lBRTVCLElBQUksS0FBSyxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztRQUFFLE9BQU8sS0FBSyxDQUFBO0lBRXZDLE9BQU8sSUFBSSxDQUFBO0FBQ2IsQ0FBQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgaXNTdHJpbmcgfSBmcm9tICdsb2Rhc2gnXG5pbXBvcnQgeyBwYXJzZUlTTyB9IGZyb20gJ2RhdGUtZm5zJ1xuXG5leHBvcnQgY29uc3QgcGFyc2VEYXRlVGltZSA9ICh2YWx1ZTogc3RyaW5nKTogc3RyaW5nIHwgRGF0ZSA9PiB7XG4gIGlmICghaXNTdHJpbmcodmFsdWUpKSByZXR1cm4gdmFsdWVcbiAgaWYgKFxuICAgICEvXlxcZHs0fS0oMFsxLTldfDFbMC0yXSktKDBbMS05XXxbMTJdWzAtOV18M1swMV0pJC8udGVzdCh2YWx1ZSkgJiZcbiAgICAhL15cXGR7NH0tKDBbMS05XXwxWzAtMl0pLSgwWzEtOV18WzEyXVswLTldfDNbMDFdKVRcXGR7Mn06XFxkezJ9OlxcZHsyfS8udGVzdCh2YWx1ZSlcbiAgKVxuICAgIHJldHVybiB2YWx1ZVxuXG4gIGNvbnN0IGRhdGUgPSBwYXJzZUlTTyh2YWx1ZSlcblxuICBpZiAoaXNOYU4oZGF0ZS5nZXRUaW1lKCkpKSByZXR1cm4gdmFsdWVcblxuICByZXR1cm4gZGF0ZVxufVxuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXktZWxlbWVudC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvdXRpbHMvdHlwZXMvYXJyYXktZWxlbWVudC50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBBcnJheUVsZW1lbnQ8QXJyYXlUeXBlIGV4dGVuZHMgcmVhZG9ubHkgdW5rbm93bltdPiA9IEFycmF5VHlwZSBleHRlbmRzIHJlYWRvbmx5IChpbmZlciBFbGVtZW50VHlwZSlbXVxuICA/IEVsZW1lbnRUeXBlXG4gIDogbmV2ZXJcbiJdfQ==
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ModelBaseStructure, NonFunctionAndIdentifierPropertyNames } from '../../../../domain';
|
|
2
|
-
import { ColumnOptions, HasuraGraphQLFields } from '../../types';
|
|
3
|
-
declare type FindByAttributeResult<MBase extends ModelBaseStructure<MBase>, Attribute extends NonFunctionAndIdentifierPropertyNames<MBase>> = ColumnOptions<MBase[Attribute], MBase> & {
|
|
4
|
-
attributeName: Attribute;
|
|
5
|
-
};
|
|
6
|
-
export declare class AttributeOptionHelper {
|
|
7
|
-
static FindByAttribute: <MBase extends ModelBaseStructure<any, any>, Attribute extends NonFunctionAndIdentifierPropertyNames<MBase>>(attributeName: Attribute, fields: HasuraGraphQLFields<MBase>) => FindByAttributeResult<MBase, Attribute>;
|
|
8
|
-
static CheckIsColumnOption: <Model extends ModelBaseStructure<any, any>, ParentModel extends ModelBaseStructure<any, any>>(fieldValue: ColumnOptions<Model, ParentModel, any>) => fieldValue is ColumnOptions<Model, ParentModel, any>;
|
|
9
|
-
static FindColumnOptionFromList: <Model extends ModelBaseStructure<any, any>, ParentModel extends ModelBaseStructure<any, any>>(columnName: string, fields: HasuraGraphQLFields<ParentModel>) => ColumnOptions<Model, ParentModel, any> & {
|
|
10
|
-
attributeName: NonFunctionAndIdentifierPropertyNames<ParentModel>;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ModelBaseStructure, RepositoryFindFieltersOptions } from '../../../../domain';
|
|
2
|
-
import { ColumnOptions } from '../../types';
|
|
3
|
-
export declare class FilterOptionHelper {
|
|
4
|
-
static CheckIfIsFilterOption: <Model extends ModelBaseStructure<any, any>>(filter: any) => filter is RepositoryFindFieltersOptions<Model, any>;
|
|
5
|
-
static GetValueFromFilter: <Model extends ModelBaseStructure<any, any>>(filter: RepositoryFindFieltersOptions<Model, any>, fieldOption: ColumnOptions<any, any>) => any;
|
|
6
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ModelBaseStructure, NonFunctionProperties } from '../../../../domain';
|
|
2
|
-
import { Fields, GraphQLParams, HasuraGraphQLFields } from '../../types';
|
|
3
|
-
export declare class GraphQLFieldHelper {
|
|
4
|
-
static CheckIsGraphQLParams: <Model extends ModelBaseStructure<any, any>>(params: string | GraphQLParams<Model>[]) => params is GraphQLParams<Model>[];
|
|
5
|
-
static ConvertModelFieldsToGraphQLFields: <Model extends ModelBaseStructure<any, any>>(fields: HasuraGraphQLFields<Model>) => Fields;
|
|
6
|
-
static ConvertFieldValueFrom: <Model extends ModelBaseStructure<any, any>, DataType extends Record<string, string | number | Date | DataType>>(data: string | number | Date | DataType, fields: HasuraGraphQLFields<Model>) => Partial<NonFunctionProperties<Model>>;
|
|
7
|
-
static ConvertFieldValueTo: <Model extends ModelBaseStructure<any, any>, DataType extends Record<string, string | number | Date | DataType>>(instance: Model, fields: HasuraGraphQLFields<Model>, update?: boolean) => DataType;
|
|
8
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './with-create-hasura-graphql.mixin';
|
|
2
|
-
export * from './with-delete-hasura-graphql.mixin';
|
|
3
|
-
export * from './with-hasura-graphql.mixin';
|
|
4
|
-
export * from './with-update-hasura-graphql.mixin';
|
|
5
|
-
export * from './with-get-hasura-graphql.mixin';
|
|
6
|
-
export * from './with-find-hasura-graphql.mixin';
|
|
7
|
-
export * from './with-crud-hasura-graphql.mixin';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CreateRepository, CreateRepositoryParams, ModelBaseStructure } from '../../../domain';
|
|
2
|
-
import { MergeConstructorParams, MixinCtor } from '../../../utils';
|
|
3
|
-
import { GraphQLRepository } from '../types';
|
|
4
|
-
export declare type CreateConstructorParams = {
|
|
5
|
-
insertGraphQLOperation?: string;
|
|
6
|
-
insertGraphQLObjectType?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const withCreateHasuraGraphQL: <MBase extends ModelBaseStructure<any, any>, TMixinBase extends MixinCtor<GraphQLRepository<MBase>, any[]>>(MixinBase: MixinCtor<GraphQLRepository<MBase>, any[]> & TMixinBase) => MixinCtor<GraphQLRepository<MBase> & InstanceType<TMixinBase> & CreateRepository<MBase, CreateRepositoryParams<MBase>>, MergeConstructorParams<CreateConstructorParams, ConstructorParameters<TMixinBase>>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ModelBaseStructure, CrudRepository } from '../../../domain';
|
|
2
|
-
import { GraphQLRepository } from '../types';
|
|
3
|
-
import { MergeConstructorParams, MixinCtor } from '../../../utils';
|
|
4
|
-
import { CreateConstructorParams } from './with-create-hasura-graphql.mixin';
|
|
5
|
-
import { ConstructorParams } from './with-hasura-graphql.mixin';
|
|
6
|
-
import { DeleteConstructorParams } from './with-delete-hasura-graphql.mixin';
|
|
7
|
-
import { GetConstructorParams } from './with-get-hasura-graphql.mixin';
|
|
8
|
-
import { UpdateConstructorParams, UpdateHasuraGraphQLRepositoryType } from './with-update-hasura-graphql.mixin';
|
|
9
|
-
export declare const withCrudHasuraGraphQL: <TBase extends ModelBaseStructure<any, any>, Repository = CrudRepository<TBase, import("../../../domain").CrudParams<TBase>>, TMixinBase extends MixinCtor<any, any[]> = MixinCtor<any, any[]>>(MixinBase: MixinCtor<GraphQLRepository<TBase>, any[]> & TMixinBase) => MixinCtor<GraphQLRepository<TBase> & Repository & import("../../../domain").UpdateRepository<TBase, import("../../../domain").RepositoryUpdateParams<TBase>> & {
|
|
10
|
-
paramsToPlain(params: import("../../../domain").RepositoryUpdateParams<TBase>): Partial<TBase>;
|
|
11
|
-
}, MergeConstructorParams<ConstructorParams<TBase> & CreateConstructorParams & DeleteConstructorParams & GetConstructorParams & UpdateConstructorParams, ConstructorParameters<TMixinBase>>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DeleteRepository, DeleteRepositoryParams, ModelBaseStructure } from '../../../domain';
|
|
2
|
-
import { GraphQLRepository } from '../types';
|
|
3
|
-
import { MergeConstructorParams, MixinCtor } from '../../../utils';
|
|
4
|
-
export declare type DeleteConstructorParams = {
|
|
5
|
-
deleteGraphQLOperation?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const withDeleteHasuraGraphQL: <MBase extends ModelBaseStructure<any, any>, TMixinBase extends MixinCtor<GraphQLRepository<MBase>, any[]>>(MixinBase: MixinCtor<GraphQLRepository<MBase>, any[]> & TMixinBase) => MixinCtor<GraphQLRepository<MBase> & DeleteRepository<MBase, DeleteRepositoryParams<MBase>> & InstanceType<TMixinBase>, MergeConstructorParams<DeleteConstructorParams, ConstructorParameters<TMixinBase>>>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ModelBaseStructure, NonFunctionAndIdentifierPropertyNames, NonFunctionPropertyNames, RepositoryFindFielters, RepositoryFindFieltersOptions, RepositoryFindResult, RepositoryLimitOptions, RepositoryOrderBy } from '../../../domain';
|
|
2
|
-
import { MixinCtor } from '../../../utils';
|
|
3
|
-
import { HasuraGraphQLWhere } from '../enums';
|
|
4
|
-
import { ColumnOptions, GraphQLRepository, HasuraGraphQLFields, VariableOptions } from '../types';
|
|
5
|
-
export declare const withFindHasuraGraphQL: <MBase extends ModelBaseStructure<any, any>, TMixinBase extends MixinCtor<GraphQLRepository<MBase>, any[]>>(MixinBase: MixinCtor<GraphQLRepository<MBase>, any[]> & TMixinBase) => {
|
|
6
|
-
new (...args: any[]): {
|
|
7
|
-
find(options?: {
|
|
8
|
-
filters?: RepositoryFindFielters<MBase>;
|
|
9
|
-
fields?: NonFunctionPropertyNames<MBase, keyof MBase>[];
|
|
10
|
-
limits?: RepositoryLimitOptions<MBase>;
|
|
11
|
-
orderBy?: RepositoryOrderBy<MBase>;
|
|
12
|
-
}): Promise<RepositoryFindResult<MBase>>;
|
|
13
|
-
makeGraphQLWhere: (filter: RepositoryFindFielters<MBase>, fields: HasuraGraphQLFields<MBase>) => VariableOptions;
|
|
14
|
-
buildWhereSentence: (field: NonFunctionAndIdentifierPropertyNames<MBase>, options: RepositoryFindFieltersOptions<MBase, NonFunctionPropertyNames<MBase, keyof MBase>>, fields: HasuraGraphQLFields<MBase>) => VariableOptions;
|
|
15
|
-
buildOperatorSentence: (options: RepositoryFindFieltersOptions<MBase, any>, fieldOption: ColumnOptions<any, any>) => VariableOptions;
|
|
16
|
-
getHasuraOperator: (options: RepositoryFindFieltersOptions<MBase, NonFunctionPropertyNames<MBase, keyof MBase>>, fieldOption: ColumnOptions<any, any>) => HasuraGraphQLWhere;
|
|
17
|
-
getHasuraJsonbOperator: (options: RepositoryFindFieltersOptions<MBase, NonFunctionPropertyNames<MBase, keyof MBase>>) => HasuraGraphQLWhere;
|
|
18
|
-
tableName: string;
|
|
19
|
-
model: import("../../../domain").BaseModelBuilder<MBase, NonFunctionAndIdentifierPropertyNames<MBase>, MBase & {
|
|
20
|
-
prototype: unknown;
|
|
21
|
-
}>;
|
|
22
|
-
fields: HasuraGraphQLFields<MBase>;
|
|
23
|
-
endpoint: string;
|
|
24
|
-
authOptions: import("../types").HasuraGraphQLAuthOptions;
|
|
25
|
-
mutation: <ReturnFields = any>(operation: string, fields?: string[] | HasuraGraphQLFields<MBase>, variables?: VariableOptions) => Promise<ReturnFields>;
|
|
26
|
-
query: <ReturnFields_1 = any>(operation: string | import("../types").GraphQLParams<MBase>[], fields?: string[] | HasuraGraphQLFields<MBase>, variables?: VariableOptions) => Promise<ReturnFields_1>;
|
|
27
|
-
getAttributeGraphQLTypeOf: <FieldValue>(value: FieldValue) => string;
|
|
28
|
-
convertDataFromHasura: (data: Record<string, string | number>) => MBase;
|
|
29
|
-
convertDataToHasura(instance: MBase, update?: boolean): Record<string, string | number>;
|
|
30
|
-
};
|
|
31
|
-
} & TMixinBase;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { GetRepositoryParams, ModelBaseStructure } from '../../../domain';
|
|
2
|
-
import { MixinCtor } from '../../../utils';
|
|
3
|
-
import { GraphQLRepository } from '../types';
|
|
4
|
-
export declare type GetConstructorParams = {
|
|
5
|
-
getGraphQLOperation?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const withGetHasuraGraphQL: <MBase extends ModelBaseStructure<any, any>, TMixinBase extends MixinCtor<GraphQLRepository<MBase>, any[]>>(MixinBase: MixinCtor<GraphQLRepository<MBase>, any[]> & TMixinBase) => {
|
|
8
|
-
new (...params: any[]): {
|
|
9
|
-
getGraphQLOperation: string;
|
|
10
|
-
get(identifiers: GetRepositoryParams<MBase>): Promise<MBase>;
|
|
11
|
-
tableName: string;
|
|
12
|
-
model: import("../../../domain").BaseModelBuilder<MBase, import("../../../domain").NonFunctionAndIdentifierPropertyNames<MBase>, MBase & {
|
|
13
|
-
prototype: unknown;
|
|
14
|
-
}>;
|
|
15
|
-
fields: import("../types").HasuraGraphQLFields<MBase>;
|
|
16
|
-
endpoint: string;
|
|
17
|
-
authOptions: import("../types").HasuraGraphQLAuthOptions;
|
|
18
|
-
mutation: <ReturnFields = any>(operation: string, fields?: string[] | import("../types").HasuraGraphQLFields<MBase>, variables?: import("../types").VariableOptions) => Promise<ReturnFields>;
|
|
19
|
-
query: <ReturnFields_1 = any>(operation: string | import("../types").GraphQLParams<MBase>[], fields?: string[] | import("../types").HasuraGraphQLFields<MBase>, variables?: import("../types").VariableOptions) => Promise<ReturnFields_1>;
|
|
20
|
-
getAttributeGraphQLTypeOf: <FieldValue>(value: FieldValue) => string;
|
|
21
|
-
convertDataFromHasura: (data: Record<string, string | number>) => MBase;
|
|
22
|
-
convertDataToHasura(instance: MBase, update?: boolean): Record<string, string | number>;
|
|
23
|
-
};
|
|
24
|
-
} & TMixinBase;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseModelBuilder, ModelBaseStructure } from '../../../domain';
|
|
2
|
-
import { MergeConstructorParams, MixinCtor } from '../../../utils';
|
|
3
|
-
import { GraphQLRepository, HasuraGraphQLAuthOptions, HasuraGraphQLFields } from '../types';
|
|
4
|
-
export declare type ConstructorParams<Model extends ModelBaseStructure> = {
|
|
5
|
-
tableName: string;
|
|
6
|
-
model: BaseModelBuilder<Model>;
|
|
7
|
-
fields: HasuraGraphQLFields<Model>;
|
|
8
|
-
endpoint: string;
|
|
9
|
-
authOptions: HasuraGraphQLAuthOptions;
|
|
10
|
-
};
|
|
11
|
-
export declare const withHasuraGraphQL: <MBase extends ModelBaseStructure<any, any>, T extends MixinCtor<any, any[]> = MixinCtor<any, any[]>>(MixinBase: T) => MixinCtor<GraphQLRepository<MBase>, MergeConstructorParams<ConstructorParams<MBase>, ConstructorParameters<T>>>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ModelBaseStructure, RepositoryUpdateParams, UpdateRepository } from '../../../domain';
|
|
2
|
-
import { MergeConstructorParams, MixinCtor } from '../../../utils';
|
|
3
|
-
import { GraphQLRepository } from '../types';
|
|
4
|
-
export declare type UpdateHasuraGraphQLRepositoryType<MBase extends ModelBaseStructure> = UpdateRepository<MBase> & {
|
|
5
|
-
paramsToPlain(params: RepositoryUpdateParams<MBase>): Partial<MBase>;
|
|
6
|
-
};
|
|
7
|
-
export declare type UpdateConstructorParams = {
|
|
8
|
-
updateGraphQLOperation?: string;
|
|
9
|
-
updateGraphQLObjectType?: string;
|
|
10
|
-
updateGraphQLPKType?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const withUpdateHasuraGraphQL: <MBase extends ModelBaseStructure<any, any>, TMixinBase extends MixinCtor<GraphQLRepository<MBase>, any[]>>(MixinBase: MixinCtor<GraphQLRepository<MBase>, any[]> & TMixinBase) => MixinCtor<GraphQLRepository<MBase> & UpdateRepository<MBase, RepositoryUpdateParams<MBase>> & {
|
|
13
|
-
paramsToPlain(params: RepositoryUpdateParams<MBase>): Partial<MBase>;
|
|
14
|
-
} & InstanceType<TMixinBase>, MergeConstructorParams<UpdateConstructorParams, ConstructorParameters<TMixinBase>>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Product } from '../../../domain';
|
|
2
|
-
import { KitProductHasuraGraphQL } from './kit-product-hasura-graphql';
|
|
3
|
-
export declare class ProductHasuraGraphQL extends Product {
|
|
4
|
-
firestoreId?: string;
|
|
5
|
-
fullPrice?: number;
|
|
6
|
-
subscriberDiscountPercentage?: number;
|
|
7
|
-
subscriberPrice?: number;
|
|
8
|
-
kitProducts?: KitProductHasuraGraphQL[];
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Variant } from '../../../domain';
|
|
2
|
-
export declare class VariantHasuraGraphQL extends Variant {
|
|
3
|
-
firestoreId?: string;
|
|
4
|
-
fullPrice?: number;
|
|
5
|
-
subscriberDiscountPercentage?: number;
|
|
6
|
-
subscriberPrice?: number;
|
|
7
|
-
name?: string;
|
|
8
|
-
hasVariants?: boolean;
|
|
9
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Category, CategoryRepository, GetRepositoryParams, Product, Shops } from '../../../../domain';
|
|
2
|
-
import { CategoryHasuraGraphQL } from '../../models';
|
|
3
|
-
import { HasuraGraphQLAuthOptions } from '../../types';
|
|
4
|
-
import { ProductHasuraGraphQLRepository } from './product-hasura-graphql.repository';
|
|
5
|
-
declare const CategoryHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<CategoryHasuraGraphQL> & import("../../../../domain").CrudRepository<CategoryHasuraGraphQL, import("../../../../domain").CrudParams<CategoryHasuraGraphQL>> & import("../../../../domain").UpdateRepository<CategoryHasuraGraphQL, import("../../../../domain").RepositoryUpdateParams<CategoryHasuraGraphQL>> & {
|
|
6
|
-
paramsToPlain(params: import("../../../../domain").RepositoryUpdateParams<CategoryHasuraGraphQL>): Partial<CategoryHasuraGraphQL>;
|
|
7
|
-
}, [import("../../mixins").ConstructorParams<CategoryHasuraGraphQL> & import("../../mixins").CreateConstructorParams & import("../../mixins").DeleteConstructorParams & import("../../mixins").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
8
|
-
export declare class CategoryHasuraGraphQLRepository extends CategoryHasuraGraphQLRepository_base implements CategoryRepository {
|
|
9
|
-
private readonly productRepository;
|
|
10
|
-
constructor(endpoint: string, authOptions: HasuraGraphQLAuthOptions, productRepository: ProductHasuraGraphQLRepository);
|
|
11
|
-
get(identifiers: GetRepositoryParams<CategoryHasuraGraphQL>): Promise<CategoryHasuraGraphQL>;
|
|
12
|
-
getCategoryBySlug(slug: string, shop: Shops): Promise<Category>;
|
|
13
|
-
getCategoriesForHome(categoryIds: string[], limit?: number): Promise<{
|
|
14
|
-
category: Category;
|
|
15
|
-
products: Product[];
|
|
16
|
-
}[]>;
|
|
17
|
-
mountCategory(category: Category, options?: {
|
|
18
|
-
limit?: number;
|
|
19
|
-
hasStock?: boolean;
|
|
20
|
-
}): Promise<Product[]>;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { CreateRepositoryParams, GetRepositoryParams, ProductRepository, ReviewStatusParams, ReviewWithProductData, UpdateRepositoryParams } from '../../../../domain';
|
|
2
|
-
import { ProductHasuraGraphQL } from '../../models';
|
|
3
|
-
import { HasuraGraphQLAuthOptions } from '../../types';
|
|
4
|
-
declare const ProductHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<ProductHasuraGraphQL> & import("../../../../domain").CrudRepository<ProductHasuraGraphQL, import("../../../../domain").CrudParams<ProductHasuraGraphQL>> & import("../../../../domain").UpdateRepository<ProductHasuraGraphQL, import("../../../../domain").RepositoryUpdateParams<ProductHasuraGraphQL>> & {
|
|
5
|
-
paramsToPlain(params: import("../../../../domain").RepositoryUpdateParams<ProductHasuraGraphQL>): Partial<ProductHasuraGraphQL>;
|
|
6
|
-
}, [import("../../mixins").ConstructorParams<ProductHasuraGraphQL> & import("../../mixins").CreateConstructorParams & import("../../mixins").DeleteConstructorParams & import("../../mixins").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
7
|
-
export declare class ProductHasuraGraphQLRepository extends ProductHasuraGraphQLRepository_base implements ProductRepository {
|
|
8
|
-
private get reviewsFields();
|
|
9
|
-
constructor(endpoint: string, authOptions: HasuraGraphQLAuthOptions);
|
|
10
|
-
create(data: CreateRepositoryParams<ProductHasuraGraphQL>): Promise<ProductHasuraGraphQL>;
|
|
11
|
-
get(identifiers: GetRepositoryParams<ProductHasuraGraphQL>): Promise<ProductHasuraGraphQL>;
|
|
12
|
-
getBySlug(slug: string): Promise<ProductHasuraGraphQL>;
|
|
13
|
-
update(params: UpdateRepositoryParams<ProductHasuraGraphQL>): Promise<ProductHasuraGraphQL>;
|
|
14
|
-
fetchReviews(status: ReviewStatusParams): Promise<ReviewWithProductData[]>;
|
|
15
|
-
private updateCategories;
|
|
16
|
-
private updateKitProducts;
|
|
17
|
-
private updateReviews;
|
|
18
|
-
private getId;
|
|
19
|
-
private findReviewsByProduct;
|
|
20
|
-
private findReview;
|
|
21
|
-
private getReviewByPersonId;
|
|
22
|
-
private getReviewByAuthorAndEmail;
|
|
23
|
-
private bindReviewToModel;
|
|
24
|
-
private bindReviewToHasura;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { GetRepositoryParams, UpdateRepositoryParams, VariantRepository } from '../../../../domain';
|
|
2
|
-
import { VariantHasuraGraphQL } from '../../models';
|
|
3
|
-
import { HasuraGraphQLAuthOptions } from '../../types';
|
|
4
|
-
declare const VariantHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<VariantHasuraGraphQL> & import("../../../../domain").CrudRepository<VariantHasuraGraphQL, import("../../../../domain").CrudParams<VariantHasuraGraphQL>> & import("../../../../domain").UpdateRepository<VariantHasuraGraphQL, import("../../../../domain").RepositoryUpdateParams<VariantHasuraGraphQL>> & {
|
|
5
|
-
paramsToPlain(params: import("../../../../domain").RepositoryUpdateParams<VariantHasuraGraphQL>): Partial<VariantHasuraGraphQL>;
|
|
6
|
-
}, [import("../../mixins").ConstructorParams<VariantHasuraGraphQL> & import("../../mixins").CreateConstructorParams & import("../../mixins").DeleteConstructorParams & import("../../mixins").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
7
|
-
export declare class VariantHasuraGraphQLRepository extends VariantHasuraGraphQLRepository_base implements VariantRepository {
|
|
8
|
-
constructor(endpoint: string, authOptions: HasuraGraphQLAuthOptions);
|
|
9
|
-
get(identifiers: GetRepositoryParams<VariantHasuraGraphQL>): Promise<VariantHasuraGraphQL>;
|
|
10
|
-
update(params: UpdateRepositoryParams<VariantHasuraGraphQL>): Promise<VariantHasuraGraphQL>;
|
|
11
|
-
private getId;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './catalog';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BaseModelBuilder, ModelBaseStructure } from '../../../domain';
|
|
2
|
-
import { HasuraGraphQLAuthOptions } from './hasura-graphql-auth-options.type';
|
|
3
|
-
import { HasuraGraphQLFields } from './hasura-graphql-fields.type';
|
|
4
|
-
import { VariableOptions } from './variable-options.type';
|
|
5
|
-
export declare type GraphQLParams<Model extends ModelBaseStructure> = {
|
|
6
|
-
operation: string;
|
|
7
|
-
fields?: HasuraGraphQLFields<Model>;
|
|
8
|
-
variables?: VariableOptions;
|
|
9
|
-
};
|
|
10
|
-
export declare type GraphQLRepository<Model extends ModelBaseStructure> = {
|
|
11
|
-
tableName: string;
|
|
12
|
-
model: BaseModelBuilder<Model>;
|
|
13
|
-
fields: HasuraGraphQLFields<Model>;
|
|
14
|
-
endpoint: string;
|
|
15
|
-
authOptions: HasuraGraphQLAuthOptions;
|
|
16
|
-
mutation: <ReturnFields = any>(operation: string, fields?: string[] | HasuraGraphQLFields<Model>, variables?: VariableOptions) => Promise<ReturnFields>;
|
|
17
|
-
query: <ReturnFields = any>(operation: string | GraphQLParams<Model>[], fields?: string[] | HasuraGraphQLFields<Model>, variables?: VariableOptions) => Promise<ReturnFields>;
|
|
18
|
-
getAttributeGraphQLTypeOf: <FieldValue>(value: FieldValue) => string;
|
|
19
|
-
convertDataFromHasura: (data: Record<string, string | number>) => Model;
|
|
20
|
-
convertDataToHasura(instance: Model, update?: boolean): Record<string, string | number>;
|
|
21
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ModelBaseStructure, NonFunctionAndIdentifierPropertyNames, RepositoryFindField } from '../../../domain';
|
|
2
|
-
import { PropType } from '../../../utils';
|
|
3
|
-
import { HasuraGraphQLColumnType } from '../enums';
|
|
4
|
-
export declare type ColumnOptions<FieldType, Model, ValueFrom = any> = {
|
|
5
|
-
type?: HasuraGraphQLColumnType;
|
|
6
|
-
columnName?: string;
|
|
7
|
-
fields?: HasuraGraphQLFields<FieldType extends any[] ? FieldType[number] : FieldType>;
|
|
8
|
-
foreignKeyColumn?: Partial<Record<NonFunctionAndIdentifierPropertyNames<FieldType extends any[] ? FieldType[number] : FieldType>, NonFunctionAndIdentifierPropertyNames<Model> | string>>;
|
|
9
|
-
from?: (value: ValueFrom | ValueFrom[], data?: any) => FieldType;
|
|
10
|
-
to?: (value: FieldType, instance?: Model) => ValueFrom;
|
|
11
|
-
bindFindFilter?: (sentence: RepositoryFindField<Model, keyof Model>) => Record<string, RepositoryFindField<any, any> | ValueFrom> | RepositoryFindField<any, any> | ValueFrom;
|
|
12
|
-
bindPersistData?: (value: FieldType, instance?: Model) => Record<string, ValueFrom>;
|
|
13
|
-
};
|
|
14
|
-
export declare type AggregateOptionNames = 'avg' | 'count' | 'max' | 'min' | 'stddev' | 'stddev_pop' | 'stddev_samp' | 'sum' | 'var_pop' | 'var_samp' | 'variance';
|
|
15
|
-
export declare type AggregateOptionFields<Model, Type, Properties extends keyof Model = keyof Model> = {
|
|
16
|
-
[K in Properties]: PropType<Model, K> extends Type ? K : never;
|
|
17
|
-
}[Properties] | string;
|
|
18
|
-
export declare type AggregateOptions<Model> = {
|
|
19
|
-
avg?: Array<AggregateOptionFields<Model, number>>;
|
|
20
|
-
max?: Array<AggregateOptionFields<Model, number | Date>>;
|
|
21
|
-
min?: Array<AggregateOptionFields<Model, number | Date>>;
|
|
22
|
-
stddev?: Array<AggregateOptionFields<Model, number>>;
|
|
23
|
-
stddev_pop?: Array<AggregateOptionFields<Model, number>>;
|
|
24
|
-
stddev_samp?: Array<AggregateOptionFields<Model, number>>;
|
|
25
|
-
sum?: Array<AggregateOptionFields<Model, number>>;
|
|
26
|
-
var_pop?: Array<AggregateOptionFields<Model, number>>;
|
|
27
|
-
var_samp?: Array<AggregateOptionFields<Model, number>>;
|
|
28
|
-
variance?: Array<AggregateOptionFields<Model, number>>;
|
|
29
|
-
};
|
|
30
|
-
export declare type HasuraGraphQLFields<Model> = ((Model extends ModelBaseStructure ? NonFunctionAndIdentifierPropertyNames<Model> | {
|
|
31
|
-
[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;
|
|
32
|
-
} | {
|
|
33
|
-
[key in NonFunctionAndIdentifierPropertyNames<Model>]?: key extends 'aggregate' ? never : PropType<Model, key> extends ModelBaseStructure ? ColumnOptions<PropType<Model, key>, Model> : ColumnOptions<PropType<Model, key>, Model>;
|
|
34
|
-
} : string) | {
|
|
35
|
-
aggregate: Array<AggregateOptions<Model> | 'count'>;
|
|
36
|
-
} | 'affected_rows')[];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './fields.type';
|
|
2
|
-
export * from './graphql.repository.type';
|
|
3
|
-
export * from './nested-field.type';
|
|
4
|
-
export * from './query-builder-options.type';
|
|
5
|
-
export * from './variable-options.type';
|
|
6
|
-
export * from './hasura-graphql-auth-options.type';
|
|
7
|
-
export * from './hasura-graphql-fields.type';
|
|
8
|
-
export * from './hasura-graphql-headers.type';
|
package/utils/is-uuid.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isUUID: (value: string) => boolean;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare type Tail<T extends any[]> = T extends [any, ...infer U] ? U : never;
|
|
2
|
-
export declare type MergeConstructorParams<NewParams, CurrentParams extends any[]> = CurrentParams extends [] ? [NewParams, ...any] : CurrentParams[0] extends never ? [NewParams, ...any] : [CurrentParams[0] & NewParams, ...Tail<CurrentParams>];
|
|
3
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const parseDateTime: (value: string) => string | Date;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|