@shophost/rest-api 2.0.32 → 2.0.33
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/package.json +13 -14
- package/src/app.js +53 -1
- package/src/app.js.map +1 -0
- package/src/core/auth/auth.schema.js +41 -1
- package/src/core/auth/auth.schema.js.map +1 -0
- package/src/core/auth/auth.util.js +44 -1
- package/src/core/auth/auth.util.js.map +1 -0
- package/src/core/auth/better-auth.lib.js +100 -1
- package/src/core/auth/better-auth.lib.js.map +1 -0
- package/src/core/auth/generate-password-hash.util.d.ts +3 -0
- package/src/core/auth/generate-password-hash.util.js +30 -1
- package/src/core/auth/generate-password-hash.util.js.map +1 -0
- package/src/core/auth/headers.schema.js +22 -1
- package/src/core/auth/headers.schema.js.map +1 -0
- package/src/core/auth/user.schema.js +30 -1
- package/src/core/auth/user.schema.js.map +1 -0
- package/src/core/db/__generated__/client/browser.d.ts +128 -0
- package/src/core/db/__generated__/client/browser.js +18 -1
- package/src/core/db/__generated__/client/browser.js.map +1 -0
- package/src/core/db/__generated__/client/client.d.ts +143 -0
- package/src/core/db/__generated__/client/client.js +35 -1
- package/src/core/db/__generated__/client/client.js.map +1 -0
- package/src/core/db/__generated__/client/commonInputTypes.js +11 -1
- package/src/core/db/__generated__/client/commonInputTypes.js.map +1 -0
- package/src/core/db/__generated__/client/enums.js +200 -1
- package/src/core/db/__generated__/client/enums.js.map +1 -0
- package/src/core/db/__generated__/client/internal/class.d.ts +343 -0
- package/src/core/db/__generated__/client/internal/class.js +55 -1
- package/src/core/db/__generated__/client/internal/class.js.map +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +234 -0
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +541 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +15 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +512 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -0
- package/src/core/db/__generated__/client/models/Account.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Account.js +2 -1
- package/src/core/db/__generated__/client/models/Account.js.map +1 -0
- package/src/core/db/__generated__/client/models/Address.d.ts +706 -0
- package/src/core/db/__generated__/client/models/Address.js +2 -1
- package/src/core/db/__generated__/client/models/Address.js.map +1 -0
- package/src/core/db/__generated__/client/models/Campaign.d.ts +643 -0
- package/src/core/db/__generated__/client/models/Campaign.js +2 -1
- package/src/core/db/__generated__/client/models/Campaign.js.map +1 -0
- package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +639 -0
- package/src/core/db/__generated__/client/models/ClosingTimes.js +2 -1
- package/src/core/db/__generated__/client/models/ClosingTimes.js.map +1 -0
- package/src/core/db/__generated__/client/models/File.d.ts +757 -0
- package/src/core/db/__generated__/client/models/File.js +2 -1
- package/src/core/db/__generated__/client/models/File.js.map +1 -0
- package/src/core/db/__generated__/client/models/Invitation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Invitation.js +2 -1
- package/src/core/db/__generated__/client/models/Invitation.js.map +1 -0
- package/src/core/db/__generated__/client/models/LegalEntity.d.ts +657 -0
- package/src/core/db/__generated__/client/models/LegalEntity.js +2 -1
- package/src/core/db/__generated__/client/models/LegalEntity.js.map +1 -0
- package/src/core/db/__generated__/client/models/Manufacturer.d.ts +684 -0
- package/src/core/db/__generated__/client/models/Manufacturer.js +2 -1
- package/src/core/db/__generated__/client/models/Manufacturer.js.map +1 -0
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Member.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Member.js +2 -1
- package/src/core/db/__generated__/client/models/Member.js.map +1 -0
- package/src/core/db/__generated__/client/models/Modifier.d.ts +667 -0
- package/src/core/db/__generated__/client/models/Modifier.js +2 -1
- package/src/core/db/__generated__/client/models/Modifier.js.map +1 -0
- package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +691 -0
- package/src/core/db/__generated__/client/models/ModifierGroup.js +2 -1
- package/src/core/db/__generated__/client/models/ModifierGroup.js.map +1 -0
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +639 -0
- package/src/core/db/__generated__/client/models/OpeningTimes.js +2 -1
- package/src/core/db/__generated__/client/models/OpeningTimes.js.map +1 -0
- package/src/core/db/__generated__/client/models/Order.d.ts +705 -0
- package/src/core/db/__generated__/client/models/Order.js +2 -1
- package/src/core/db/__generated__/client/models/Order.js.map +1 -0
- package/src/core/db/__generated__/client/models/OrderItem.d.ts +691 -0
- package/src/core/db/__generated__/client/models/OrderItem.js +2 -1
- package/src/core/db/__generated__/client/models/OrderItem.js.map +1 -0
- package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Organization.d.ts +816 -0
- package/src/core/db/__generated__/client/models/Organization.js +2 -1
- package/src/core/db/__generated__/client/models/Organization.js.map +1 -0
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +681 -0
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +2 -1
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
- package/src/core/db/__generated__/client/models/Payment.d.ts +673 -0
- package/src/core/db/__generated__/client/models/Payment.js +2 -1
- package/src/core/db/__generated__/client/models/Payment.js.map +1 -0
- package/src/core/db/__generated__/client/models/PaymentSession.d.ts +643 -0
- package/src/core/db/__generated__/client/models/PaymentSession.js +2 -1
- package/src/core/db/__generated__/client/models/PaymentSession.js.map +1 -0
- package/src/core/db/__generated__/client/models/Product.d.ts +751 -0
- package/src/core/db/__generated__/client/models/Product.js +2 -1
- package/src/core/db/__generated__/client/models/Product.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductCategory.d.ts +694 -0
- package/src/core/db/__generated__/client/models/ProductCategory.js +2 -1
- package/src/core/db/__generated__/client/models/ProductCategory.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +669 -0
- package/src/core/db/__generated__/client/models/ProductSnapshot.js +2 -1
- package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ProductTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ProductTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Reservation.d.ts +655 -0
- package/src/core/db/__generated__/client/models/Reservation.js +2 -1
- package/src/core/db/__generated__/client/models/Reservation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Session.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Session.js +2 -1
- package/src/core/db/__generated__/client/models/Session.js.map +1 -0
- package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +684 -0
- package/src/core/db/__generated__/client/models/ShippingMethod.js +2 -1
- package/src/core/db/__generated__/client/models/ShippingMethod.js.map +1 -0
- package/src/core/db/__generated__/client/models/ShippingZone.d.ts +643 -0
- package/src/core/db/__generated__/client/models/ShippingZone.js +2 -1
- package/src/core/db/__generated__/client/models/ShippingZone.js.map +1 -0
- package/src/core/db/__generated__/client/models/User.d.ts +741 -0
- package/src/core/db/__generated__/client/models/User.js +2 -1
- package/src/core/db/__generated__/client/models/User.js.map +1 -0
- package/src/core/db/__generated__/client/models/Verification.d.ts +597 -0
- package/src/core/db/__generated__/client/models/Verification.js +2 -1
- package/src/core/db/__generated__/client/models/Verification.js.map +1 -0
- package/src/core/db/__generated__/client/models.js +2 -1
- package/src/core/db/__generated__/client/models.js.map +1 -0
- package/src/core/db/index.js +2 -1
- package/src/core/db/index.js.map +1 -0
- package/src/core/exceptions/http-exception.js +9 -1
- package/src/core/exceptions/http-exception.js.map +1 -0
- package/src/core/hono/hono.js +123 -1
- package/src/core/hono/hono.js.map +1 -0
- package/src/core/lib/prisma.js +11 -1
- package/src/core/lib/prisma.js.map +1 -0
- package/src/core/logging/pino.js +5 -1
- package/src/core/logging/pino.js.map +1 -0
- package/src/core/notifications/email.service.d.ts +15 -0
- package/src/core/notifications/email.service.js +116 -1
- package/src/core/notifications/email.service.js.map +1 -0
- package/src/core/openapi/openapi.lib.js +26 -1
- package/src/core/openapi/openapi.lib.js.map +1 -0
- package/src/core/types/google-maps.types.js +2 -1
- package/src/core/types/google-maps.types.js.map +1 -0
- package/src/core/utils/currency.util.js +11 -1
- package/src/core/utils/currency.util.js.map +1 -0
- package/src/core/utils/env.util.js +8 -1
- package/src/core/utils/env.util.js.map +1 -0
- package/src/core/utils/object.util.d.ts +10 -0
- package/src/core/utils/object.util.js +39 -1
- package/src/core/utils/object.util.js.map +1 -0
- package/src/core/utils/translations.util.js +2 -0
- package/src/core/utils/translations.util.js.map +1 -0
- package/src/core/utils/zod.util.d.ts +12 -0
- package/src/core/utils/zod.util.js +85 -1
- package/src/core/utils/zod.util.js.map +1 -0
- package/src/db.js +3 -1
- package/src/db.js.map +1 -0
- package/src/features/access/access.handler.js +91 -1
- package/src/features/access/access.handler.js.map +1 -0
- package/src/features/access/access.route.js +220 -1
- package/src/features/access/access.route.js.map +1 -0
- package/src/features/access/access.schema.js +108 -1
- package/src/features/access/access.schema.js.map +1 -0
- package/src/features/access/access.service.js +294 -1
- package/src/features/access/access.service.js.map +1 -0
- package/src/features/cart/cart.handler.js +17 -1
- package/src/features/cart/cart.handler.js.map +1 -0
- package/src/features/cart/cart.route.js +32 -1
- package/src/features/cart/cart.route.js.map +1 -0
- package/src/features/cart/cart.schema.js +39 -1
- package/src/features/cart/cart.schema.js.map +1 -0
- package/src/features/cart/cart.service.d.ts +7 -0
- package/src/features/cart/cart.service.js +97 -1
- package/src/features/cart/cart.service.js.map +1 -0
- package/src/features/cart/cart.util.js +76 -1
- package/src/features/cart/cart.util.js.map +1 -0
- package/src/features/file/file.handler.js +23 -1
- package/src/features/file/file.handler.js.map +1 -0
- package/src/features/file/file.route.js +34 -1
- package/src/features/file/file.route.js.map +1 -0
- package/src/features/file/file.schema.js +77 -1
- package/src/features/file/file.schema.js.map +1 -0
- package/src/features/file/file.service.d.ts +6 -0
- package/src/features/file/file.service.js +66 -1
- package/src/features/file/file.service.js.map +1 -0
- package/src/features/health/health.handler.js +10 -1
- package/src/features/health/health.handler.js.map +1 -0
- package/src/features/health/health.route.js +25 -1
- package/src/features/health/health.route.js.map +1 -0
- package/src/features/index.js +16 -1
- package/src/features/index.js.map +1 -0
- package/src/features/location/location.handler.js +25 -1
- package/src/features/location/location.handler.js.map +1 -0
- package/src/features/location/location.route.js +56 -1
- package/src/features/location/location.route.js.map +1 -0
- package/src/features/location/location.schema.js +50 -1
- package/src/features/location/location.schema.js.map +1 -0
- package/src/features/location/location.service.d.ts +3 -0
- package/src/features/location/location.service.js +141 -1
- package/src/features/location/location.service.js.map +1 -0
- package/src/features/manufacturer/manufacturer.handler.js +53 -1
- package/src/features/manufacturer/manufacturer.handler.js.map +1 -0
- package/src/features/manufacturer/manufacturer.route.js +97 -1
- package/src/features/manufacturer/manufacturer.route.js.map +1 -0
- package/src/features/manufacturer/manufacturer.schema.js +125 -1
- package/src/features/manufacturer/manufacturer.schema.js.map +1 -0
- package/src/features/manufacturer/manufacturer.service.d.ts +19 -0
- package/src/features/manufacturer/manufacturer.service.js +190 -1
- package/src/features/manufacturer/manufacturer.service.js.map +1 -0
- package/src/features/order/emails/order-confirmation.email.js +229 -1
- package/src/features/order/emails/order-confirmation.email.js.map +1 -0
- package/src/features/order/emails/order-notification.email.js +229 -1
- package/src/features/order/emails/order-notification.email.js.map +1 -0
- package/src/features/order/fulfilment.schema.js +3 -1
- package/src/features/order/fulfilment.schema.js.map +1 -0
- package/src/features/order/order.handler.js +54 -1
- package/src/features/order/order.handler.js.map +1 -0
- package/src/features/order/order.route.js +111 -1
- package/src/features/order/order.route.js.map +1 -0
- package/src/features/order/order.schema.js +158 -1
- package/src/features/order/order.schema.js.map +1 -0
- package/src/features/order/order.service.d.ts +15 -0
- package/src/features/order/order.service.js +306 -1
- package/src/features/order/order.service.js.map +1 -0
- package/src/features/order/recipient.schema.js +38 -1
- package/src/features/order/recipient.schema.js.map +1 -0
- package/src/features/organization/legal-entity.schema.js +83 -1
- package/src/features/organization/legal-entity.schema.js.map +1 -0
- package/src/features/organization/organization-configuration.schema.js +115 -1
- package/src/features/organization/organization-configuration.schema.js.map +1 -0
- package/src/features/organization/organization.handler.js +48 -1
- package/src/features/organization/organization.handler.js.map +1 -0
- package/src/features/organization/organization.route.js +84 -1
- package/src/features/organization/organization.route.js.map +1 -0
- package/src/features/organization/organization.schema.js +64 -1
- package/src/features/organization/organization.schema.js.map +1 -0
- package/src/features/organization/organization.service.d.ts +15 -0
- package/src/features/organization/organization.service.js +334 -1
- package/src/features/organization/organization.service.js.map +1 -0
- package/src/features/payment/payment.handler.js +16 -1
- package/src/features/payment/payment.handler.js.map +1 -0
- package/src/features/payment/payment.route.js +22 -1
- package/src/features/payment/payment.route.js.map +1 -0
- package/src/features/payment/payment.schema.js +46 -1
- package/src/features/payment/payment.schema.js.map +1 -0
- package/src/features/payment/payment.service.js +100 -1
- package/src/features/payment/payment.service.js.map +1 -0
- package/src/features/payment/stripe.service.js +164 -1
- package/src/features/payment/stripe.service.js.map +1 -0
- package/src/features/product/product-modifier.schema.js +84 -1
- package/src/features/product/product-modifier.schema.js.map +1 -0
- package/src/features/product/product.handler.js +87 -1
- package/src/features/product/product.handler.js.map +1 -0
- package/src/features/product/product.route.js +179 -1
- package/src/features/product/product.route.js.map +1 -0
- package/src/features/product/product.schema.js +143 -1
- package/src/features/product/product.schema.js.map +1 -0
- package/src/features/product/product.service.d.ts +25 -0
- package/src/features/product/product.service.js +440 -1
- package/src/features/product/product.service.js.map +1 -0
- package/src/features/product-category/product-category.handler.js +59 -1
- package/src/features/product-category/product-category.handler.js.map +1 -0
- package/src/features/product-category/product-category.route.js +139 -1
- package/src/features/product-category/product-category.route.js.map +1 -0
- package/src/features/product-category/product-category.schema.js +86 -1
- package/src/features/product-category/product-category.schema.js.map +1 -0
- package/src/features/product-category/product-category.service.d.ts +22 -0
- package/src/features/product-category/product-category.service.js +220 -1
- package/src/features/product-category/product-category.service.js.map +1 -0
- package/src/features/reservation/emails/reservation-cancellation.email.js +82 -1
- package/src/features/reservation/emails/reservation-cancellation.email.js.map +1 -0
- package/src/features/reservation/emails/reservation-confirmation.email.js +82 -1
- package/src/features/reservation/emails/reservation-confirmation.email.js.map +1 -0
- package/src/features/reservation/emails/reservation-notification.email.js +93 -1
- package/src/features/reservation/emails/reservation-notification.email.js.map +1 -0
- package/src/features/reservation/reservation.handler.js +65 -1
- package/src/features/reservation/reservation.handler.js.map +1 -0
- package/src/features/reservation/reservation.route.js +167 -1
- package/src/features/reservation/reservation.route.js.map +1 -0
- package/src/features/reservation/reservation.schema.js +51 -1
- package/src/features/reservation/reservation.schema.js.map +1 -0
- package/src/features/reservation/reservation.service.d.ts +18 -0
- package/src/features/reservation/reservation.service.js +231 -1
- package/src/features/reservation/reservation.service.js.map +1 -0
- package/src/features/shipping/shipping.handler.js +32 -1
- package/src/features/shipping/shipping.handler.js.map +1 -0
- package/src/features/shipping/shipping.route.js +51 -1
- package/src/features/shipping/shipping.route.js.map +1 -0
- package/src/features/shipping/shipping.service.d.ts +7 -0
- package/src/features/shipping/shipping.service.js +96 -1
- package/src/features/shipping/shipping.service.js.map +1 -0
- package/src/features/shipping-method/shipping-method.handler.js +60 -1
- package/src/features/shipping-method/shipping-method.handler.js.map +1 -0
- package/src/features/shipping-method/shipping-method.route.js +144 -1
- package/src/features/shipping-method/shipping-method.route.js.map +1 -0
- package/src/features/shipping-method/shipping-method.schema.js +48 -1
- package/src/features/shipping-method/shipping-method.schema.js.map +1 -0
- package/src/features/shipping-method/shipping-method.service.d.ts +25 -0
- package/src/features/shipping-method/shipping-method.service.js +229 -1
- package/src/features/shipping-method/shipping-method.service.js.map +1 -0
- package/src/features/shipping-method/shipping-zone.schema.js +31 -1
- package/src/features/shipping-method/shipping-zone.schema.js.map +1 -0
- package/src/features/webhook/webhook.handler.js +50 -1
- package/src/features/webhook/webhook.handler.js.map +1 -0
- package/src/features/webhook/webhook.route.js +33 -1
- package/src/features/webhook/webhook.route.js.map +1 -0
- package/src/index.js +6 -1
- package/src/index.js.map +1 -0
- package/src/integrations/next.js +82 -1
- package/src/integrations/next.js.map +1 -0
- package/src/schemas/address.schema.d.ts +8 -0
- package/src/schemas/address.schema.js +112 -1
- package/src/schemas/address.schema.js.map +1 -0
- package/src/schemas/currency.schema.d.ts +42 -0
- package/src/schemas/currency.schema.js +118 -1
- package/src/schemas/currency.schema.js.map +1 -0
- package/src/schemas/error.schema.js +12 -1
- package/src/schemas/error.schema.js.map +1 -0
- package/src/schemas/index.js +29 -1
- package/src/schemas/index.js.map +1 -0
- package/src/schemas/locales.schema.js +238 -1
- package/src/schemas/locales.schema.js.map +1 -0
- package/src/schemas/number.schema.js +29 -1
- package/src/schemas/number.schema.js.map +1 -0
- package/src/schemas/pagination.schema.js +54 -1
- package/src/schemas/pagination.schema.js.map +1 -0
- package/src/schemas/params.schema.js +20 -1
- package/src/schemas/params.schema.js.map +1 -0
- package/src/schemas/queries.schema.js +6 -1
- package/src/schemas/queries.schema.js.map +1 -0
- package/src/test/global-setup.js +37 -1
- package/src/test/global-setup.js.map +1 -0
- package/src/test/integration/api-fixtures.js +160 -1
- package/src/test/integration/api-fixtures.js.map +1 -0
- package/src/test/integration/seed.js +368 -1
- package/src/test/integration/seed.js.map +1 -0
- package/src/test/integration/test-helpers.js +154 -1
- package/src/test/integration/test-helpers.js.map +1 -0
- package/src/test/setup-test-env.js +7 -1
- package/src/test/setup-test-env.js.map +1 -0
- package/scripts/minify.mjs +0 -123
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
2
|
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model Address
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
3
7
|
export type AddressModel = runtime.Types.Result.DefaultSelection<Prisma.$AddressPayload>;
|
|
4
8
|
export type AggregateAddress = {
|
|
5
9
|
_count: AddressCountAggregateOutputType | null;
|
|
@@ -165,15 +169,63 @@ export type AddressCountAggregateInputType = {
|
|
|
165
169
|
_all?: true;
|
|
166
170
|
};
|
|
167
171
|
export type AddressAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
172
|
+
/**
|
|
173
|
+
* Filter which Address to aggregate.
|
|
174
|
+
*/
|
|
168
175
|
where?: Prisma.AddressWhereInput;
|
|
176
|
+
/**
|
|
177
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
178
|
+
*
|
|
179
|
+
* Determine the order of Addresses to fetch.
|
|
180
|
+
*/
|
|
169
181
|
orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[];
|
|
182
|
+
/**
|
|
183
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
184
|
+
*
|
|
185
|
+
* Sets the start position
|
|
186
|
+
*/
|
|
170
187
|
cursor?: Prisma.AddressWhereUniqueInput;
|
|
188
|
+
/**
|
|
189
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
190
|
+
*
|
|
191
|
+
* Take `±n` Addresses from the position of the cursor.
|
|
192
|
+
*/
|
|
171
193
|
take?: number;
|
|
194
|
+
/**
|
|
195
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
196
|
+
*
|
|
197
|
+
* Skip the first `n` Addresses.
|
|
198
|
+
*/
|
|
172
199
|
skip?: number;
|
|
200
|
+
/**
|
|
201
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
202
|
+
*
|
|
203
|
+
* Count returned Addresses
|
|
204
|
+
**/
|
|
173
205
|
_count?: true | AddressCountAggregateInputType;
|
|
206
|
+
/**
|
|
207
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
208
|
+
*
|
|
209
|
+
* Select which fields to average
|
|
210
|
+
**/
|
|
174
211
|
_avg?: AddressAvgAggregateInputType;
|
|
212
|
+
/**
|
|
213
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
214
|
+
*
|
|
215
|
+
* Select which fields to sum
|
|
216
|
+
**/
|
|
175
217
|
_sum?: AddressSumAggregateInputType;
|
|
218
|
+
/**
|
|
219
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
220
|
+
*
|
|
221
|
+
* Select which fields to find the minimum value
|
|
222
|
+
**/
|
|
176
223
|
_min?: AddressMinAggregateInputType;
|
|
224
|
+
/**
|
|
225
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
226
|
+
*
|
|
227
|
+
* Select which fields to find the maximum value
|
|
228
|
+
**/
|
|
177
229
|
_max?: AddressMaxAggregateInputType;
|
|
178
230
|
};
|
|
179
231
|
export type GetAddressAggregateType<T extends AddressAggregateArgs> = {
|
|
@@ -1234,6 +1286,9 @@ export type AddressUncheckedUpdateManyWithoutUsersInput = {
|
|
|
1234
1286
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1235
1287
|
deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1236
1288
|
};
|
|
1289
|
+
/**
|
|
1290
|
+
* Count Type AddressCountOutputType
|
|
1291
|
+
*/
|
|
1237
1292
|
export type AddressCountOutputType = {
|
|
1238
1293
|
LegalEntity: number;
|
|
1239
1294
|
organizations: number;
|
|
@@ -1246,18 +1301,36 @@ export type AddressCountOutputTypeSelect<ExtArgs extends runtime.Types.Extension
|
|
|
1246
1301
|
users?: boolean | AddressCountOutputTypeCountUsersArgs;
|
|
1247
1302
|
orders?: boolean | AddressCountOutputTypeCountOrdersArgs;
|
|
1248
1303
|
};
|
|
1304
|
+
/**
|
|
1305
|
+
* AddressCountOutputType without action
|
|
1306
|
+
*/
|
|
1249
1307
|
export type AddressCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1308
|
+
/**
|
|
1309
|
+
* Select specific fields to fetch from the AddressCountOutputType
|
|
1310
|
+
*/
|
|
1250
1311
|
select?: Prisma.AddressCountOutputTypeSelect<ExtArgs> | null;
|
|
1251
1312
|
};
|
|
1313
|
+
/**
|
|
1314
|
+
* AddressCountOutputType without action
|
|
1315
|
+
*/
|
|
1252
1316
|
export type AddressCountOutputTypeCountLegalEntityArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1253
1317
|
where?: Prisma.LegalEntityWhereInput;
|
|
1254
1318
|
};
|
|
1319
|
+
/**
|
|
1320
|
+
* AddressCountOutputType without action
|
|
1321
|
+
*/
|
|
1255
1322
|
export type AddressCountOutputTypeCountOrganizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1256
1323
|
where?: Prisma.OrganizationWhereInput;
|
|
1257
1324
|
};
|
|
1325
|
+
/**
|
|
1326
|
+
* AddressCountOutputType without action
|
|
1327
|
+
*/
|
|
1258
1328
|
export type AddressCountOutputTypeCountUsersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1259
1329
|
where?: Prisma.UserWhereInput;
|
|
1260
1330
|
};
|
|
1331
|
+
/**
|
|
1332
|
+
* AddressCountOutputType without action
|
|
1333
|
+
*/
|
|
1261
1334
|
export type AddressCountOutputTypeCountOrdersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1262
1335
|
where?: Prisma.OrderWhereInput;
|
|
1263
1336
|
};
|
|
@@ -1412,22 +1485,290 @@ export interface AddressDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
1412
1485
|
name: 'Address';
|
|
1413
1486
|
};
|
|
1414
1487
|
};
|
|
1488
|
+
/**
|
|
1489
|
+
* Find zero or one Address that matches the filter.
|
|
1490
|
+
* @param {AddressFindUniqueArgs} args - Arguments to find a Address
|
|
1491
|
+
* @example
|
|
1492
|
+
* // Get one Address
|
|
1493
|
+
* const address = await prisma.address.findUnique({
|
|
1494
|
+
* where: {
|
|
1495
|
+
* // ... provide filter here
|
|
1496
|
+
* }
|
|
1497
|
+
* })
|
|
1498
|
+
*/
|
|
1415
1499
|
findUnique<T extends AddressFindUniqueArgs>(args: Prisma.SelectSubset<T, AddressFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1500
|
+
/**
|
|
1501
|
+
* Find one Address that matches the filter or throw an error with `error.code='P2025'`
|
|
1502
|
+
* if no matches were found.
|
|
1503
|
+
* @param {AddressFindUniqueOrThrowArgs} args - Arguments to find a Address
|
|
1504
|
+
* @example
|
|
1505
|
+
* // Get one Address
|
|
1506
|
+
* const address = await prisma.address.findUniqueOrThrow({
|
|
1507
|
+
* where: {
|
|
1508
|
+
* // ... provide filter here
|
|
1509
|
+
* }
|
|
1510
|
+
* })
|
|
1511
|
+
*/
|
|
1416
1512
|
findUniqueOrThrow<T extends AddressFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AddressFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1513
|
+
/**
|
|
1514
|
+
* Find the first Address that matches the filter.
|
|
1515
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1516
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1517
|
+
* @param {AddressFindFirstArgs} args - Arguments to find a Address
|
|
1518
|
+
* @example
|
|
1519
|
+
* // Get one Address
|
|
1520
|
+
* const address = await prisma.address.findFirst({
|
|
1521
|
+
* where: {
|
|
1522
|
+
* // ... provide filter here
|
|
1523
|
+
* }
|
|
1524
|
+
* })
|
|
1525
|
+
*/
|
|
1417
1526
|
findFirst<T extends AddressFindFirstArgs>(args?: Prisma.SelectSubset<T, AddressFindFirstArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Find the first Address that matches the filter or
|
|
1529
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1530
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1531
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1532
|
+
* @param {AddressFindFirstOrThrowArgs} args - Arguments to find a Address
|
|
1533
|
+
* @example
|
|
1534
|
+
* // Get one Address
|
|
1535
|
+
* const address = await prisma.address.findFirstOrThrow({
|
|
1536
|
+
* where: {
|
|
1537
|
+
* // ... provide filter here
|
|
1538
|
+
* }
|
|
1539
|
+
* })
|
|
1540
|
+
*/
|
|
1418
1541
|
findFirstOrThrow<T extends AddressFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AddressFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1542
|
+
/**
|
|
1543
|
+
* Find zero or more Addresses that matches the filter.
|
|
1544
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1545
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1546
|
+
* @param {AddressFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1547
|
+
* @example
|
|
1548
|
+
* // Get all Addresses
|
|
1549
|
+
* const addresses = await prisma.address.findMany()
|
|
1550
|
+
*
|
|
1551
|
+
* // Get first 10 Addresses
|
|
1552
|
+
* const addresses = await prisma.address.findMany({ take: 10 })
|
|
1553
|
+
*
|
|
1554
|
+
* // Only select the `id`
|
|
1555
|
+
* const addressWithIdOnly = await prisma.address.findMany({ select: { id: true } })
|
|
1556
|
+
*
|
|
1557
|
+
*/
|
|
1419
1558
|
findMany<T extends AddressFindManyArgs>(args?: Prisma.SelectSubset<T, AddressFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
1559
|
+
/**
|
|
1560
|
+
* Create a Address.
|
|
1561
|
+
* @param {AddressCreateArgs} args - Arguments to create a Address.
|
|
1562
|
+
* @example
|
|
1563
|
+
* // Create one Address
|
|
1564
|
+
* const Address = await prisma.address.create({
|
|
1565
|
+
* data: {
|
|
1566
|
+
* // ... data to create a Address
|
|
1567
|
+
* }
|
|
1568
|
+
* })
|
|
1569
|
+
*
|
|
1570
|
+
*/
|
|
1420
1571
|
create<T extends AddressCreateArgs>(args: Prisma.SelectSubset<T, AddressCreateArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1572
|
+
/**
|
|
1573
|
+
* Create many Addresses.
|
|
1574
|
+
* @param {AddressCreateManyArgs} args - Arguments to create many Addresses.
|
|
1575
|
+
* @example
|
|
1576
|
+
* // Create many Addresses
|
|
1577
|
+
* const address = await prisma.address.createMany({
|
|
1578
|
+
* data: [
|
|
1579
|
+
* // ... provide data here
|
|
1580
|
+
* ]
|
|
1581
|
+
* })
|
|
1582
|
+
*
|
|
1583
|
+
*/
|
|
1421
1584
|
createMany<T extends AddressCreateManyArgs>(args?: Prisma.SelectSubset<T, AddressCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1585
|
+
/**
|
|
1586
|
+
* Create many Addresses and returns the data saved in the database.
|
|
1587
|
+
* @param {AddressCreateManyAndReturnArgs} args - Arguments to create many Addresses.
|
|
1588
|
+
* @example
|
|
1589
|
+
* // Create many Addresses
|
|
1590
|
+
* const address = await prisma.address.createManyAndReturn({
|
|
1591
|
+
* data: [
|
|
1592
|
+
* // ... provide data here
|
|
1593
|
+
* ]
|
|
1594
|
+
* })
|
|
1595
|
+
*
|
|
1596
|
+
* // Create many Addresses and only return the `id`
|
|
1597
|
+
* const addressWithIdOnly = await prisma.address.createManyAndReturn({
|
|
1598
|
+
* select: { id: true },
|
|
1599
|
+
* data: [
|
|
1600
|
+
* // ... provide data here
|
|
1601
|
+
* ]
|
|
1602
|
+
* })
|
|
1603
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1604
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1605
|
+
*
|
|
1606
|
+
*/
|
|
1422
1607
|
createManyAndReturn<T extends AddressCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AddressCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
1608
|
+
/**
|
|
1609
|
+
* Delete a Address.
|
|
1610
|
+
* @param {AddressDeleteArgs} args - Arguments to delete one Address.
|
|
1611
|
+
* @example
|
|
1612
|
+
* // Delete one Address
|
|
1613
|
+
* const Address = await prisma.address.delete({
|
|
1614
|
+
* where: {
|
|
1615
|
+
* // ... filter to delete one Address
|
|
1616
|
+
* }
|
|
1617
|
+
* })
|
|
1618
|
+
*
|
|
1619
|
+
*/
|
|
1423
1620
|
delete<T extends AddressDeleteArgs>(args: Prisma.SelectSubset<T, AddressDeleteArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1621
|
+
/**
|
|
1622
|
+
* Update one Address.
|
|
1623
|
+
* @param {AddressUpdateArgs} args - Arguments to update one Address.
|
|
1624
|
+
* @example
|
|
1625
|
+
* // Update one Address
|
|
1626
|
+
* const address = await prisma.address.update({
|
|
1627
|
+
* where: {
|
|
1628
|
+
* // ... provide filter here
|
|
1629
|
+
* },
|
|
1630
|
+
* data: {
|
|
1631
|
+
* // ... provide data here
|
|
1632
|
+
* }
|
|
1633
|
+
* })
|
|
1634
|
+
*
|
|
1635
|
+
*/
|
|
1424
1636
|
update<T extends AddressUpdateArgs>(args: Prisma.SelectSubset<T, AddressUpdateArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1637
|
+
/**
|
|
1638
|
+
* Delete zero or more Addresses.
|
|
1639
|
+
* @param {AddressDeleteManyArgs} args - Arguments to filter Addresses to delete.
|
|
1640
|
+
* @example
|
|
1641
|
+
* // Delete a few Addresses
|
|
1642
|
+
* const { count } = await prisma.address.deleteMany({
|
|
1643
|
+
* where: {
|
|
1644
|
+
* // ... provide filter here
|
|
1645
|
+
* }
|
|
1646
|
+
* })
|
|
1647
|
+
*
|
|
1648
|
+
*/
|
|
1425
1649
|
deleteMany<T extends AddressDeleteManyArgs>(args?: Prisma.SelectSubset<T, AddressDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1650
|
+
/**
|
|
1651
|
+
* Update zero or more Addresses.
|
|
1652
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1653
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1654
|
+
* @param {AddressUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1655
|
+
* @example
|
|
1656
|
+
* // Update many Addresses
|
|
1657
|
+
* const address = await prisma.address.updateMany({
|
|
1658
|
+
* where: {
|
|
1659
|
+
* // ... provide filter here
|
|
1660
|
+
* },
|
|
1661
|
+
* data: {
|
|
1662
|
+
* // ... provide data here
|
|
1663
|
+
* }
|
|
1664
|
+
* })
|
|
1665
|
+
*
|
|
1666
|
+
*/
|
|
1426
1667
|
updateMany<T extends AddressUpdateManyArgs>(args: Prisma.SelectSubset<T, AddressUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1668
|
+
/**
|
|
1669
|
+
* Update zero or more Addresses and returns the data updated in the database.
|
|
1670
|
+
* @param {AddressUpdateManyAndReturnArgs} args - Arguments to update many Addresses.
|
|
1671
|
+
* @example
|
|
1672
|
+
* // Update many Addresses
|
|
1673
|
+
* const address = await prisma.address.updateManyAndReturn({
|
|
1674
|
+
* where: {
|
|
1675
|
+
* // ... provide filter here
|
|
1676
|
+
* },
|
|
1677
|
+
* data: [
|
|
1678
|
+
* // ... provide data here
|
|
1679
|
+
* ]
|
|
1680
|
+
* })
|
|
1681
|
+
*
|
|
1682
|
+
* // Update zero or more Addresses and only return the `id`
|
|
1683
|
+
* const addressWithIdOnly = await prisma.address.updateManyAndReturn({
|
|
1684
|
+
* select: { id: true },
|
|
1685
|
+
* where: {
|
|
1686
|
+
* // ... provide filter here
|
|
1687
|
+
* },
|
|
1688
|
+
* data: [
|
|
1689
|
+
* // ... provide data here
|
|
1690
|
+
* ]
|
|
1691
|
+
* })
|
|
1692
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1693
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1694
|
+
*
|
|
1695
|
+
*/
|
|
1427
1696
|
updateManyAndReturn<T extends AddressUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AddressUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
1697
|
+
/**
|
|
1698
|
+
* Create or update one Address.
|
|
1699
|
+
* @param {AddressUpsertArgs} args - Arguments to update or create a Address.
|
|
1700
|
+
* @example
|
|
1701
|
+
* // Update or create a Address
|
|
1702
|
+
* const address = await prisma.address.upsert({
|
|
1703
|
+
* create: {
|
|
1704
|
+
* // ... data to create a Address
|
|
1705
|
+
* },
|
|
1706
|
+
* update: {
|
|
1707
|
+
* // ... in case it already exists, update
|
|
1708
|
+
* },
|
|
1709
|
+
* where: {
|
|
1710
|
+
* // ... the filter for the Address we want to update
|
|
1711
|
+
* }
|
|
1712
|
+
* })
|
|
1713
|
+
*/
|
|
1428
1714
|
upsert<T extends AddressUpsertArgs>(args: Prisma.SelectSubset<T, AddressUpsertArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1715
|
+
/**
|
|
1716
|
+
* Count the number of Addresses.
|
|
1717
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1718
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1719
|
+
* @param {AddressCountArgs} args - Arguments to filter Addresses to count.
|
|
1720
|
+
* @example
|
|
1721
|
+
* // Count the number of Addresses
|
|
1722
|
+
* const count = await prisma.address.count({
|
|
1723
|
+
* where: {
|
|
1724
|
+
* // ... the filter for the Addresses we want to count
|
|
1725
|
+
* }
|
|
1726
|
+
* })
|
|
1727
|
+
**/
|
|
1429
1728
|
count<T extends AddressCountArgs>(args?: Prisma.Subset<T, AddressCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AddressCountAggregateOutputType> : number>;
|
|
1729
|
+
/**
|
|
1730
|
+
* Allows you to perform aggregations operations on a Address.
|
|
1731
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1732
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1733
|
+
* @param {AddressAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1734
|
+
* @example
|
|
1735
|
+
* // Ordered by age ascending
|
|
1736
|
+
* // Where email contains prisma.io
|
|
1737
|
+
* // Limited to the 10 users
|
|
1738
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1739
|
+
* _avg: {
|
|
1740
|
+
* age: true,
|
|
1741
|
+
* },
|
|
1742
|
+
* where: {
|
|
1743
|
+
* email: {
|
|
1744
|
+
* contains: "prisma.io",
|
|
1745
|
+
* },
|
|
1746
|
+
* },
|
|
1747
|
+
* orderBy: {
|
|
1748
|
+
* age: "asc",
|
|
1749
|
+
* },
|
|
1750
|
+
* take: 10,
|
|
1751
|
+
* })
|
|
1752
|
+
**/
|
|
1430
1753
|
aggregate<T extends AddressAggregateArgs>(args: Prisma.Subset<T, AddressAggregateArgs>): Prisma.PrismaPromise<GetAddressAggregateType<T>>;
|
|
1754
|
+
/**
|
|
1755
|
+
* Group by Address.
|
|
1756
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1757
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1758
|
+
* @param {AddressGroupByArgs} args - Group by arguments.
|
|
1759
|
+
* @example
|
|
1760
|
+
* // Group by city, order by createdAt, get count
|
|
1761
|
+
* const result = await prisma.user.groupBy({
|
|
1762
|
+
* by: ['city', 'createdAt'],
|
|
1763
|
+
* orderBy: {
|
|
1764
|
+
* createdAt: true
|
|
1765
|
+
* },
|
|
1766
|
+
* _count: {
|
|
1767
|
+
* _all: true
|
|
1768
|
+
* },
|
|
1769
|
+
* })
|
|
1770
|
+
*
|
|
1771
|
+
**/
|
|
1431
1772
|
groupBy<T extends AddressGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1432
1773
|
orderBy: AddressGroupByArgs['orderBy'];
|
|
1433
1774
|
} : {
|
|
@@ -1446,18 +1787,47 @@ export interface AddressDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
1446
1787
|
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1447
1788
|
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1448
1789
|
}[OrderFields]>(args: Prisma.SubsetIntersection<T, AddressGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAddressGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1790
|
+
/**
|
|
1791
|
+
* Fields of the Address model
|
|
1792
|
+
*/
|
|
1449
1793
|
readonly fields: AddressFieldRefs;
|
|
1450
1794
|
}
|
|
1795
|
+
/**
|
|
1796
|
+
* The delegate class that acts as a "Promise-like" for Address.
|
|
1797
|
+
* Why is this prefixed with `Prisma__`?
|
|
1798
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1799
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1800
|
+
*/
|
|
1451
1801
|
export interface Prisma__AddressClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1452
1802
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1453
1803
|
LegalEntity<T extends Prisma.Address$LegalEntityArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Address$LegalEntityArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1454
1804
|
organizations<T extends Prisma.Address$organizationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Address$organizationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1455
1805
|
users<T extends Prisma.Address$usersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Address$usersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1456
1806
|
orders<T extends Prisma.Address$ordersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Address$ordersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1807
|
+
/**
|
|
1808
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1809
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1810
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1811
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1812
|
+
*/
|
|
1457
1813
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
|
|
1814
|
+
/**
|
|
1815
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1816
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1817
|
+
* @returns A Promise for the completion of the callback.
|
|
1818
|
+
*/
|
|
1458
1819
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1820
|
+
/**
|
|
1821
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1822
|
+
* resolved value cannot be modified from the callback.
|
|
1823
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1824
|
+
* @returns A Promise for the completion of the callback.
|
|
1825
|
+
*/
|
|
1459
1826
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1460
1827
|
}
|
|
1828
|
+
/**
|
|
1829
|
+
* Fields of the Address model
|
|
1830
|
+
*/
|
|
1461
1831
|
export interface AddressFieldRefs {
|
|
1462
1832
|
readonly id: Prisma.FieldRef<"Address", 'String'>;
|
|
1463
1833
|
readonly firstname: Prisma.FieldRef<"Address", 'String'>;
|
|
@@ -1481,107 +1851,395 @@ export interface AddressFieldRefs {
|
|
|
1481
1851
|
readonly deletedAt: Prisma.FieldRef<"Address", 'DateTime'>;
|
|
1482
1852
|
readonly deletedBy: Prisma.FieldRef<"Address", 'String'>;
|
|
1483
1853
|
}
|
|
1854
|
+
/**
|
|
1855
|
+
* Address findUnique
|
|
1856
|
+
*/
|
|
1484
1857
|
export type AddressFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1858
|
+
/**
|
|
1859
|
+
* Select specific fields to fetch from the Address
|
|
1860
|
+
*/
|
|
1485
1861
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
1862
|
+
/**
|
|
1863
|
+
* Omit specific fields from the Address
|
|
1864
|
+
*/
|
|
1486
1865
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
1866
|
+
/**
|
|
1867
|
+
* Choose, which related nodes to fetch as well
|
|
1868
|
+
*/
|
|
1487
1869
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
1870
|
+
/**
|
|
1871
|
+
* Filter, which Address to fetch.
|
|
1872
|
+
*/
|
|
1488
1873
|
where: Prisma.AddressWhereUniqueInput;
|
|
1489
1874
|
};
|
|
1875
|
+
/**
|
|
1876
|
+
* Address findUniqueOrThrow
|
|
1877
|
+
*/
|
|
1490
1878
|
export type AddressFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1879
|
+
/**
|
|
1880
|
+
* Select specific fields to fetch from the Address
|
|
1881
|
+
*/
|
|
1491
1882
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
1883
|
+
/**
|
|
1884
|
+
* Omit specific fields from the Address
|
|
1885
|
+
*/
|
|
1492
1886
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
1887
|
+
/**
|
|
1888
|
+
* Choose, which related nodes to fetch as well
|
|
1889
|
+
*/
|
|
1493
1890
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
1891
|
+
/**
|
|
1892
|
+
* Filter, which Address to fetch.
|
|
1893
|
+
*/
|
|
1494
1894
|
where: Prisma.AddressWhereUniqueInput;
|
|
1495
1895
|
};
|
|
1896
|
+
/**
|
|
1897
|
+
* Address findFirst
|
|
1898
|
+
*/
|
|
1496
1899
|
export type AddressFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1900
|
+
/**
|
|
1901
|
+
* Select specific fields to fetch from the Address
|
|
1902
|
+
*/
|
|
1497
1903
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
1904
|
+
/**
|
|
1905
|
+
* Omit specific fields from the Address
|
|
1906
|
+
*/
|
|
1498
1907
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
1908
|
+
/**
|
|
1909
|
+
* Choose, which related nodes to fetch as well
|
|
1910
|
+
*/
|
|
1499
1911
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
1912
|
+
/**
|
|
1913
|
+
* Filter, which Address to fetch.
|
|
1914
|
+
*/
|
|
1500
1915
|
where?: Prisma.AddressWhereInput;
|
|
1916
|
+
/**
|
|
1917
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1918
|
+
*
|
|
1919
|
+
* Determine the order of Addresses to fetch.
|
|
1920
|
+
*/
|
|
1501
1921
|
orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[];
|
|
1922
|
+
/**
|
|
1923
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1924
|
+
*
|
|
1925
|
+
* Sets the position for searching for Addresses.
|
|
1926
|
+
*/
|
|
1502
1927
|
cursor?: Prisma.AddressWhereUniqueInput;
|
|
1928
|
+
/**
|
|
1929
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1930
|
+
*
|
|
1931
|
+
* Take `±n` Addresses from the position of the cursor.
|
|
1932
|
+
*/
|
|
1503
1933
|
take?: number;
|
|
1934
|
+
/**
|
|
1935
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1936
|
+
*
|
|
1937
|
+
* Skip the first `n` Addresses.
|
|
1938
|
+
*/
|
|
1504
1939
|
skip?: number;
|
|
1940
|
+
/**
|
|
1941
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1942
|
+
*
|
|
1943
|
+
* Filter by unique combinations of Addresses.
|
|
1944
|
+
*/
|
|
1505
1945
|
distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[];
|
|
1506
1946
|
};
|
|
1947
|
+
/**
|
|
1948
|
+
* Address findFirstOrThrow
|
|
1949
|
+
*/
|
|
1507
1950
|
export type AddressFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1951
|
+
/**
|
|
1952
|
+
* Select specific fields to fetch from the Address
|
|
1953
|
+
*/
|
|
1508
1954
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
1955
|
+
/**
|
|
1956
|
+
* Omit specific fields from the Address
|
|
1957
|
+
*/
|
|
1509
1958
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
1959
|
+
/**
|
|
1960
|
+
* Choose, which related nodes to fetch as well
|
|
1961
|
+
*/
|
|
1510
1962
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
1963
|
+
/**
|
|
1964
|
+
* Filter, which Address to fetch.
|
|
1965
|
+
*/
|
|
1511
1966
|
where?: Prisma.AddressWhereInput;
|
|
1967
|
+
/**
|
|
1968
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1969
|
+
*
|
|
1970
|
+
* Determine the order of Addresses to fetch.
|
|
1971
|
+
*/
|
|
1512
1972
|
orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[];
|
|
1973
|
+
/**
|
|
1974
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1975
|
+
*
|
|
1976
|
+
* Sets the position for searching for Addresses.
|
|
1977
|
+
*/
|
|
1513
1978
|
cursor?: Prisma.AddressWhereUniqueInput;
|
|
1979
|
+
/**
|
|
1980
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1981
|
+
*
|
|
1982
|
+
* Take `±n` Addresses from the position of the cursor.
|
|
1983
|
+
*/
|
|
1514
1984
|
take?: number;
|
|
1985
|
+
/**
|
|
1986
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1987
|
+
*
|
|
1988
|
+
* Skip the first `n` Addresses.
|
|
1989
|
+
*/
|
|
1515
1990
|
skip?: number;
|
|
1991
|
+
/**
|
|
1992
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1993
|
+
*
|
|
1994
|
+
* Filter by unique combinations of Addresses.
|
|
1995
|
+
*/
|
|
1516
1996
|
distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[];
|
|
1517
1997
|
};
|
|
1998
|
+
/**
|
|
1999
|
+
* Address findMany
|
|
2000
|
+
*/
|
|
1518
2001
|
export type AddressFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2002
|
+
/**
|
|
2003
|
+
* Select specific fields to fetch from the Address
|
|
2004
|
+
*/
|
|
1519
2005
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2006
|
+
/**
|
|
2007
|
+
* Omit specific fields from the Address
|
|
2008
|
+
*/
|
|
1520
2009
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2010
|
+
/**
|
|
2011
|
+
* Choose, which related nodes to fetch as well
|
|
2012
|
+
*/
|
|
1521
2013
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
2014
|
+
/**
|
|
2015
|
+
* Filter, which Addresses to fetch.
|
|
2016
|
+
*/
|
|
1522
2017
|
where?: Prisma.AddressWhereInput;
|
|
2018
|
+
/**
|
|
2019
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2020
|
+
*
|
|
2021
|
+
* Determine the order of Addresses to fetch.
|
|
2022
|
+
*/
|
|
1523
2023
|
orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[];
|
|
2024
|
+
/**
|
|
2025
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2026
|
+
*
|
|
2027
|
+
* Sets the position for listing Addresses.
|
|
2028
|
+
*/
|
|
1524
2029
|
cursor?: Prisma.AddressWhereUniqueInput;
|
|
2030
|
+
/**
|
|
2031
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2032
|
+
*
|
|
2033
|
+
* Take `±n` Addresses from the position of the cursor.
|
|
2034
|
+
*/
|
|
1525
2035
|
take?: number;
|
|
2036
|
+
/**
|
|
2037
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2038
|
+
*
|
|
2039
|
+
* Skip the first `n` Addresses.
|
|
2040
|
+
*/
|
|
1526
2041
|
skip?: number;
|
|
2042
|
+
/**
|
|
2043
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2044
|
+
*
|
|
2045
|
+
* Filter by unique combinations of Addresses.
|
|
2046
|
+
*/
|
|
1527
2047
|
distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[];
|
|
1528
2048
|
};
|
|
2049
|
+
/**
|
|
2050
|
+
* Address create
|
|
2051
|
+
*/
|
|
1529
2052
|
export type AddressCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2053
|
+
/**
|
|
2054
|
+
* Select specific fields to fetch from the Address
|
|
2055
|
+
*/
|
|
1530
2056
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2057
|
+
/**
|
|
2058
|
+
* Omit specific fields from the Address
|
|
2059
|
+
*/
|
|
1531
2060
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2061
|
+
/**
|
|
2062
|
+
* Choose, which related nodes to fetch as well
|
|
2063
|
+
*/
|
|
1532
2064
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
2065
|
+
/**
|
|
2066
|
+
* The data needed to create a Address.
|
|
2067
|
+
*/
|
|
1533
2068
|
data: Prisma.XOR<Prisma.AddressCreateInput, Prisma.AddressUncheckedCreateInput>;
|
|
1534
2069
|
};
|
|
2070
|
+
/**
|
|
2071
|
+
* Address createMany
|
|
2072
|
+
*/
|
|
1535
2073
|
export type AddressCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2074
|
+
/**
|
|
2075
|
+
* The data used to create many Addresses.
|
|
2076
|
+
*/
|
|
1536
2077
|
data: Prisma.AddressCreateManyInput | Prisma.AddressCreateManyInput[];
|
|
1537
2078
|
skipDuplicates?: boolean;
|
|
1538
2079
|
};
|
|
2080
|
+
/**
|
|
2081
|
+
* Address createManyAndReturn
|
|
2082
|
+
*/
|
|
1539
2083
|
export type AddressCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2084
|
+
/**
|
|
2085
|
+
* Select specific fields to fetch from the Address
|
|
2086
|
+
*/
|
|
1540
2087
|
select?: Prisma.AddressSelectCreateManyAndReturn<ExtArgs> | null;
|
|
2088
|
+
/**
|
|
2089
|
+
* Omit specific fields from the Address
|
|
2090
|
+
*/
|
|
1541
2091
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2092
|
+
/**
|
|
2093
|
+
* The data used to create many Addresses.
|
|
2094
|
+
*/
|
|
1542
2095
|
data: Prisma.AddressCreateManyInput | Prisma.AddressCreateManyInput[];
|
|
1543
2096
|
skipDuplicates?: boolean;
|
|
1544
2097
|
};
|
|
2098
|
+
/**
|
|
2099
|
+
* Address update
|
|
2100
|
+
*/
|
|
1545
2101
|
export type AddressUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2102
|
+
/**
|
|
2103
|
+
* Select specific fields to fetch from the Address
|
|
2104
|
+
*/
|
|
1546
2105
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2106
|
+
/**
|
|
2107
|
+
* Omit specific fields from the Address
|
|
2108
|
+
*/
|
|
1547
2109
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2110
|
+
/**
|
|
2111
|
+
* Choose, which related nodes to fetch as well
|
|
2112
|
+
*/
|
|
1548
2113
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
2114
|
+
/**
|
|
2115
|
+
* The data needed to update a Address.
|
|
2116
|
+
*/
|
|
1549
2117
|
data: Prisma.XOR<Prisma.AddressUpdateInput, Prisma.AddressUncheckedUpdateInput>;
|
|
2118
|
+
/**
|
|
2119
|
+
* Choose, which Address to update.
|
|
2120
|
+
*/
|
|
1550
2121
|
where: Prisma.AddressWhereUniqueInput;
|
|
1551
2122
|
};
|
|
2123
|
+
/**
|
|
2124
|
+
* Address updateMany
|
|
2125
|
+
*/
|
|
1552
2126
|
export type AddressUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2127
|
+
/**
|
|
2128
|
+
* The data used to update Addresses.
|
|
2129
|
+
*/
|
|
1553
2130
|
data: Prisma.XOR<Prisma.AddressUpdateManyMutationInput, Prisma.AddressUncheckedUpdateManyInput>;
|
|
2131
|
+
/**
|
|
2132
|
+
* Filter which Addresses to update
|
|
2133
|
+
*/
|
|
1554
2134
|
where?: Prisma.AddressWhereInput;
|
|
2135
|
+
/**
|
|
2136
|
+
* Limit how many Addresses to update.
|
|
2137
|
+
*/
|
|
1555
2138
|
limit?: number;
|
|
1556
2139
|
};
|
|
2140
|
+
/**
|
|
2141
|
+
* Address updateManyAndReturn
|
|
2142
|
+
*/
|
|
1557
2143
|
export type AddressUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2144
|
+
/**
|
|
2145
|
+
* Select specific fields to fetch from the Address
|
|
2146
|
+
*/
|
|
1558
2147
|
select?: Prisma.AddressSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
2148
|
+
/**
|
|
2149
|
+
* Omit specific fields from the Address
|
|
2150
|
+
*/
|
|
1559
2151
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2152
|
+
/**
|
|
2153
|
+
* The data used to update Addresses.
|
|
2154
|
+
*/
|
|
1560
2155
|
data: Prisma.XOR<Prisma.AddressUpdateManyMutationInput, Prisma.AddressUncheckedUpdateManyInput>;
|
|
2156
|
+
/**
|
|
2157
|
+
* Filter which Addresses to update
|
|
2158
|
+
*/
|
|
1561
2159
|
where?: Prisma.AddressWhereInput;
|
|
2160
|
+
/**
|
|
2161
|
+
* Limit how many Addresses to update.
|
|
2162
|
+
*/
|
|
1562
2163
|
limit?: number;
|
|
1563
2164
|
};
|
|
2165
|
+
/**
|
|
2166
|
+
* Address upsert
|
|
2167
|
+
*/
|
|
1564
2168
|
export type AddressUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2169
|
+
/**
|
|
2170
|
+
* Select specific fields to fetch from the Address
|
|
2171
|
+
*/
|
|
1565
2172
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2173
|
+
/**
|
|
2174
|
+
* Omit specific fields from the Address
|
|
2175
|
+
*/
|
|
1566
2176
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2177
|
+
/**
|
|
2178
|
+
* Choose, which related nodes to fetch as well
|
|
2179
|
+
*/
|
|
1567
2180
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
2181
|
+
/**
|
|
2182
|
+
* The filter to search for the Address to update in case it exists.
|
|
2183
|
+
*/
|
|
1568
2184
|
where: Prisma.AddressWhereUniqueInput;
|
|
2185
|
+
/**
|
|
2186
|
+
* In case the Address found by the `where` argument doesn't exist, create a new Address with this data.
|
|
2187
|
+
*/
|
|
1569
2188
|
create: Prisma.XOR<Prisma.AddressCreateInput, Prisma.AddressUncheckedCreateInput>;
|
|
2189
|
+
/**
|
|
2190
|
+
* In case the Address was found with the provided `where` argument, update it with this data.
|
|
2191
|
+
*/
|
|
1570
2192
|
update: Prisma.XOR<Prisma.AddressUpdateInput, Prisma.AddressUncheckedUpdateInput>;
|
|
1571
2193
|
};
|
|
2194
|
+
/**
|
|
2195
|
+
* Address delete
|
|
2196
|
+
*/
|
|
1572
2197
|
export type AddressDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2198
|
+
/**
|
|
2199
|
+
* Select specific fields to fetch from the Address
|
|
2200
|
+
*/
|
|
1573
2201
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2202
|
+
/**
|
|
2203
|
+
* Omit specific fields from the Address
|
|
2204
|
+
*/
|
|
1574
2205
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2206
|
+
/**
|
|
2207
|
+
* Choose, which related nodes to fetch as well
|
|
2208
|
+
*/
|
|
1575
2209
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
2210
|
+
/**
|
|
2211
|
+
* Filter which Address to delete.
|
|
2212
|
+
*/
|
|
1576
2213
|
where: Prisma.AddressWhereUniqueInput;
|
|
1577
2214
|
};
|
|
2215
|
+
/**
|
|
2216
|
+
* Address deleteMany
|
|
2217
|
+
*/
|
|
1578
2218
|
export type AddressDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2219
|
+
/**
|
|
2220
|
+
* Filter which Addresses to delete
|
|
2221
|
+
*/
|
|
1579
2222
|
where?: Prisma.AddressWhereInput;
|
|
2223
|
+
/**
|
|
2224
|
+
* Limit how many Addresses to delete.
|
|
2225
|
+
*/
|
|
1580
2226
|
limit?: number;
|
|
1581
2227
|
};
|
|
2228
|
+
/**
|
|
2229
|
+
* Address.LegalEntity
|
|
2230
|
+
*/
|
|
1582
2231
|
export type Address$LegalEntityArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2232
|
+
/**
|
|
2233
|
+
* Select specific fields to fetch from the LegalEntity
|
|
2234
|
+
*/
|
|
1583
2235
|
select?: Prisma.LegalEntitySelect<ExtArgs> | null;
|
|
2236
|
+
/**
|
|
2237
|
+
* Omit specific fields from the LegalEntity
|
|
2238
|
+
*/
|
|
1584
2239
|
omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
|
|
2240
|
+
/**
|
|
2241
|
+
* Choose, which related nodes to fetch as well
|
|
2242
|
+
*/
|
|
1585
2243
|
include?: Prisma.LegalEntityInclude<ExtArgs> | null;
|
|
1586
2244
|
where?: Prisma.LegalEntityWhereInput;
|
|
1587
2245
|
orderBy?: Prisma.LegalEntityOrderByWithRelationInput | Prisma.LegalEntityOrderByWithRelationInput[];
|
|
@@ -1590,9 +2248,21 @@ export type Address$LegalEntityArgs<ExtArgs extends runtime.Types.Extensions.Int
|
|
|
1590
2248
|
skip?: number;
|
|
1591
2249
|
distinct?: Prisma.LegalEntityScalarFieldEnum | Prisma.LegalEntityScalarFieldEnum[];
|
|
1592
2250
|
};
|
|
2251
|
+
/**
|
|
2252
|
+
* Address.organizations
|
|
2253
|
+
*/
|
|
1593
2254
|
export type Address$organizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2255
|
+
/**
|
|
2256
|
+
* Select specific fields to fetch from the Organization
|
|
2257
|
+
*/
|
|
1594
2258
|
select?: Prisma.OrganizationSelect<ExtArgs> | null;
|
|
2259
|
+
/**
|
|
2260
|
+
* Omit specific fields from the Organization
|
|
2261
|
+
*/
|
|
1595
2262
|
omit?: Prisma.OrganizationOmit<ExtArgs> | null;
|
|
2263
|
+
/**
|
|
2264
|
+
* Choose, which related nodes to fetch as well
|
|
2265
|
+
*/
|
|
1596
2266
|
include?: Prisma.OrganizationInclude<ExtArgs> | null;
|
|
1597
2267
|
where?: Prisma.OrganizationWhereInput;
|
|
1598
2268
|
orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[];
|
|
@@ -1601,9 +2271,21 @@ export type Address$organizationsArgs<ExtArgs extends runtime.Types.Extensions.I
|
|
|
1601
2271
|
skip?: number;
|
|
1602
2272
|
distinct?: Prisma.OrganizationScalarFieldEnum | Prisma.OrganizationScalarFieldEnum[];
|
|
1603
2273
|
};
|
|
2274
|
+
/**
|
|
2275
|
+
* Address.users
|
|
2276
|
+
*/
|
|
1604
2277
|
export type Address$usersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2278
|
+
/**
|
|
2279
|
+
* Select specific fields to fetch from the User
|
|
2280
|
+
*/
|
|
1605
2281
|
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
2282
|
+
/**
|
|
2283
|
+
* Omit specific fields from the User
|
|
2284
|
+
*/
|
|
1606
2285
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
2286
|
+
/**
|
|
2287
|
+
* Choose, which related nodes to fetch as well
|
|
2288
|
+
*/
|
|
1607
2289
|
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1608
2290
|
where?: Prisma.UserWhereInput;
|
|
1609
2291
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
|
|
@@ -1612,9 +2294,21 @@ export type Address$usersArgs<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
1612
2294
|
skip?: number;
|
|
1613
2295
|
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
|
|
1614
2296
|
};
|
|
2297
|
+
/**
|
|
2298
|
+
* Address.orders
|
|
2299
|
+
*/
|
|
1615
2300
|
export type Address$ordersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2301
|
+
/**
|
|
2302
|
+
* Select specific fields to fetch from the Order
|
|
2303
|
+
*/
|
|
1616
2304
|
select?: Prisma.OrderSelect<ExtArgs> | null;
|
|
2305
|
+
/**
|
|
2306
|
+
* Omit specific fields from the Order
|
|
2307
|
+
*/
|
|
1617
2308
|
omit?: Prisma.OrderOmit<ExtArgs> | null;
|
|
2309
|
+
/**
|
|
2310
|
+
* Choose, which related nodes to fetch as well
|
|
2311
|
+
*/
|
|
1618
2312
|
include?: Prisma.OrderInclude<ExtArgs> | null;
|
|
1619
2313
|
where?: Prisma.OrderWhereInput;
|
|
1620
2314
|
orderBy?: Prisma.OrderOrderByWithRelationInput | Prisma.OrderOrderByWithRelationInput[];
|
|
@@ -1623,9 +2317,21 @@ export type Address$ordersArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|
|
1623
2317
|
skip?: number;
|
|
1624
2318
|
distinct?: Prisma.OrderScalarFieldEnum | Prisma.OrderScalarFieldEnum[];
|
|
1625
2319
|
};
|
|
2320
|
+
/**
|
|
2321
|
+
* Address without action
|
|
2322
|
+
*/
|
|
1626
2323
|
export type AddressDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2324
|
+
/**
|
|
2325
|
+
* Select specific fields to fetch from the Address
|
|
2326
|
+
*/
|
|
1627
2327
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2328
|
+
/**
|
|
2329
|
+
* Omit specific fields from the Address
|
|
2330
|
+
*/
|
|
1628
2331
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2332
|
+
/**
|
|
2333
|
+
* Choose, which related nodes to fetch as well
|
|
2334
|
+
*/
|
|
1629
2335
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
1630
2336
|
};
|
|
1631
2337
|
export {};
|