@shophost/rest-api 2.0.30 → 2.0.31
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 +18 -13
- package/scripts/minify.mjs +110 -0
- package/src/app.js +1 -53
- package/src/core/auth/auth.schema.js +1 -41
- package/src/core/auth/auth.util.js +1 -44
- package/src/core/auth/better-auth.lib.js +1 -100
- package/src/core/auth/generate-password-hash.util.d.ts +0 -3
- package/src/core/auth/generate-password-hash.util.js +1 -30
- package/src/core/auth/headers.schema.js +1 -22
- package/src/core/auth/user.schema.js +1 -30
- package/src/core/db/__generated__/client/browser.d.ts +0 -128
- package/src/core/db/__generated__/client/browser.js +1 -18
- package/src/core/db/__generated__/client/client.d.ts +0 -143
- package/src/core/db/__generated__/client/client.js +1 -35
- package/src/core/db/__generated__/client/commonInputTypes.js +1 -11
- package/src/core/db/__generated__/client/enums.js +1 -200
- package/src/core/db/__generated__/client/internal/class.d.ts +0 -343
- package/src/core/db/__generated__/client/internal/class.js +1 -55
- package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +0 -234
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -541
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +0 -15
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -512
- package/src/core/db/__generated__/client/models/Account.d.ts +0 -628
- package/src/core/db/__generated__/client/models/Account.js +1 -2
- package/src/core/db/__generated__/client/models/Address.d.ts +0 -701
- package/src/core/db/__generated__/client/models/Address.js +1 -2
- package/src/core/db/__generated__/client/models/Campaign.d.ts +0 -638
- package/src/core/db/__generated__/client/models/Campaign.js +1 -2
- package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +0 -634
- package/src/core/db/__generated__/client/models/ClosingTimes.js +1 -2
- package/src/core/db/__generated__/client/models/File.d.ts +0 -752
- package/src/core/db/__generated__/client/models/File.js +1 -2
- package/src/core/db/__generated__/client/models/Invitation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/Invitation.js +1 -2
- package/src/core/db/__generated__/client/models/LegalEntity.d.ts +0 -652
- package/src/core/db/__generated__/client/models/LegalEntity.js +1 -2
- package/src/core/db/__generated__/client/models/Manufacturer.d.ts +0 -679
- package/src/core/db/__generated__/client/models/Manufacturer.js +1 -2
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/Member.d.ts +0 -628
- package/src/core/db/__generated__/client/models/Member.js +1 -2
- package/src/core/db/__generated__/client/models/Modifier.d.ts +0 -662
- package/src/core/db/__generated__/client/models/Modifier.js +1 -2
- package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +0 -686
- package/src/core/db/__generated__/client/models/ModifierGroup.js +1 -2
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +0 -634
- package/src/core/db/__generated__/client/models/OpeningTimes.js +1 -2
- package/src/core/db/__generated__/client/models/Order.d.ts +0 -700
- package/src/core/db/__generated__/client/models/Order.js +1 -2
- package/src/core/db/__generated__/client/models/OrderItem.d.ts +0 -686
- package/src/core/db/__generated__/client/models/OrderItem.js +1 -2
- package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/Organization.d.ts +0 -811
- package/src/core/db/__generated__/client/models/Organization.js +1 -2
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +0 -676
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +1 -2
- package/src/core/db/__generated__/client/models/Payment.d.ts +0 -668
- package/src/core/db/__generated__/client/models/Payment.js +1 -2
- package/src/core/db/__generated__/client/models/PaymentSession.d.ts +0 -638
- package/src/core/db/__generated__/client/models/PaymentSession.js +1 -2
- package/src/core/db/__generated__/client/models/Product.d.ts +0 -746
- package/src/core/db/__generated__/client/models/Product.js +1 -2
- package/src/core/db/__generated__/client/models/ProductCategory.d.ts +0 -689
- package/src/core/db/__generated__/client/models/ProductCategory.js +1 -2
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +0 -664
- package/src/core/db/__generated__/client/models/ProductSnapshot.js +1 -2
- package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/ProductTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/Reservation.d.ts +0 -650
- package/src/core/db/__generated__/client/models/Reservation.js +1 -2
- package/src/core/db/__generated__/client/models/Session.d.ts +0 -628
- package/src/core/db/__generated__/client/models/Session.js +1 -2
- package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +0 -679
- package/src/core/db/__generated__/client/models/ShippingMethod.js +1 -2
- package/src/core/db/__generated__/client/models/ShippingZone.d.ts +0 -638
- package/src/core/db/__generated__/client/models/ShippingZone.js +1 -2
- package/src/core/db/__generated__/client/models/User.d.ts +0 -736
- package/src/core/db/__generated__/client/models/User.js +1 -2
- package/src/core/db/__generated__/client/models/Verification.d.ts +0 -592
- package/src/core/db/__generated__/client/models/Verification.js +1 -2
- package/src/core/db/__generated__/client/models.js +1 -2
- package/src/core/db/index.js +1 -2
- package/src/core/exceptions/http-exception.js +1 -9
- package/src/core/hono/hono.js +1 -123
- package/src/core/lib/prisma.d.ts +9 -1
- package/src/core/lib/prisma.js +1 -11
- package/src/core/logging/pino.js +1 -5
- package/src/core/notifications/email.service.d.ts +0 -15
- package/src/core/notifications/email.service.js +1 -116
- package/src/core/openapi/openapi.lib.js +1 -26
- package/src/core/types/google-maps.types.js +1 -2
- package/src/core/utils/currency.util.js +1 -11
- package/src/core/utils/env.util.js +1 -8
- package/src/core/utils/object.util.d.ts +0 -10
- package/src/core/utils/object.util.js +1 -39
- package/src/core/utils/translations.util.js +0 -2
- package/src/core/utils/zod.util.d.ts +0 -12
- package/src/core/utils/zod.util.js +1 -85
- package/src/db.js +1 -3
- package/src/features/access/access.handler.js +1 -91
- package/src/features/access/access.route.js +1 -220
- package/src/features/access/access.schema.js +1 -108
- package/src/features/access/access.service.js +1 -294
- package/src/features/cart/cart.handler.js +1 -17
- package/src/features/cart/cart.route.js +1 -32
- package/src/features/cart/cart.schema.js +1 -39
- package/src/features/cart/cart.service.d.ts +0 -7
- package/src/features/cart/cart.service.js +1 -97
- package/src/features/cart/cart.util.js +1 -76
- package/src/features/file/file.handler.js +1 -23
- package/src/features/file/file.route.js +1 -34
- package/src/features/file/file.schema.js +1 -77
- package/src/features/file/file.service.d.ts +0 -6
- package/src/features/file/file.service.js +1 -66
- package/src/features/health/health.handler.js +1 -10
- package/src/features/health/health.route.js +1 -25
- package/src/features/index.js +1 -16
- package/src/features/location/location.handler.js +1 -25
- package/src/features/location/location.route.js +1 -56
- package/src/features/location/location.schema.js +1 -50
- package/src/features/location/location.service.d.ts +0 -3
- package/src/features/location/location.service.js +1 -141
- package/src/features/manufacturer/manufacturer.handler.js +1 -53
- package/src/features/manufacturer/manufacturer.route.js +1 -97
- package/src/features/manufacturer/manufacturer.schema.js +1 -125
- package/src/features/manufacturer/manufacturer.service.d.ts +0 -19
- package/src/features/manufacturer/manufacturer.service.js +1 -190
- package/src/features/order/emails/order-confirmation.email.js +1 -229
- package/src/features/order/emails/order-notification.email.js +1 -229
- package/src/features/order/fulfilment.schema.js +1 -3
- package/src/features/order/order.handler.js +1 -54
- package/src/features/order/order.route.js +1 -111
- package/src/features/order/order.schema.js +1 -158
- package/src/features/order/order.service.d.ts +0 -15
- package/src/features/order/order.service.js +1 -306
- package/src/features/order/recipient.schema.js +1 -38
- package/src/features/organization/legal-entity.schema.js +1 -83
- package/src/features/organization/organization-configuration.schema.js +1 -115
- package/src/features/organization/organization.handler.js +1 -48
- package/src/features/organization/organization.route.js +1 -84
- package/src/features/organization/organization.schema.js +1 -64
- package/src/features/organization/organization.service.d.ts +0 -15
- package/src/features/organization/organization.service.js +1 -334
- package/src/features/payment/payment.handler.js +1 -16
- package/src/features/payment/payment.route.js +1 -22
- package/src/features/payment/payment.schema.js +1 -46
- package/src/features/payment/payment.service.js +1 -100
- package/src/features/payment/stripe.service.js +1 -164
- package/src/features/product/product-modifier.schema.js +1 -84
- package/src/features/product/product.handler.js +1 -87
- package/src/features/product/product.route.js +1 -179
- package/src/features/product/product.schema.js +1 -143
- package/src/features/product/product.service.d.ts +0 -25
- package/src/features/product/product.service.js +1 -440
- package/src/features/product-category/product-category.handler.js +1 -59
- package/src/features/product-category/product-category.route.js +1 -139
- package/src/features/product-category/product-category.schema.js +1 -86
- package/src/features/product-category/product-category.service.d.ts +0 -22
- package/src/features/product-category/product-category.service.js +1 -220
- package/src/features/reservation/emails/reservation-cancellation.email.js +1 -82
- package/src/features/reservation/emails/reservation-confirmation.email.js +1 -82
- package/src/features/reservation/emails/reservation-notification.email.js +1 -93
- package/src/features/reservation/reservation.handler.js +1 -65
- package/src/features/reservation/reservation.route.js +1 -167
- package/src/features/reservation/reservation.schema.js +1 -51
- package/src/features/reservation/reservation.service.d.ts +0 -18
- package/src/features/reservation/reservation.service.js +1 -231
- package/src/features/shipping/shipping.handler.js +1 -32
- package/src/features/shipping/shipping.route.js +1 -51
- package/src/features/shipping/shipping.service.d.ts +0 -7
- package/src/features/shipping/shipping.service.js +1 -96
- package/src/features/shipping-method/shipping-method.handler.js +1 -60
- package/src/features/shipping-method/shipping-method.route.js +1 -144
- package/src/features/shipping-method/shipping-method.schema.js +1 -48
- package/src/features/shipping-method/shipping-method.service.d.ts +0 -25
- package/src/features/shipping-method/shipping-method.service.js +1 -229
- package/src/features/shipping-method/shipping-zone.schema.js +1 -31
- package/src/features/webhook/webhook.handler.js +1 -50
- package/src/features/webhook/webhook.route.js +1 -33
- package/src/index.js +1 -6
- package/src/integrations/next.js +1 -82
- package/src/schemas/address.schema.d.ts +0 -8
- package/src/schemas/address.schema.js +1 -112
- package/src/schemas/currency.schema.d.ts +0 -42
- package/src/schemas/currency.schema.js +1 -118
- package/src/schemas/error.schema.js +1 -12
- package/src/schemas/index.js +1 -29
- package/src/schemas/locales.schema.js +1 -238
- package/src/schemas/number.schema.js +1 -29
- package/src/schemas/pagination.schema.js +1 -54
- package/src/schemas/params.schema.js +1 -20
- package/src/schemas/queries.schema.js +1 -6
- package/src/test/global-setup.d.ts +1 -0
- package/src/test/global-setup.js +1 -0
- package/src/test/integration/api-fixtures.d.ts +4 -16
- package/src/test/integration/api-fixtures.js +1 -225
- package/src/test/integration/seed.d.ts +81 -0
- package/src/test/integration/seed.js +1 -0
- package/src/test/integration/test-helpers.d.ts +107 -924
- package/src/test/integration/test-helpers.js +1 -1100
- package/src/test/setup-test-env.d.ts +1 -1
- package/src/test/setup-test-env.js +1 -29
- package/src/app.js.map +0 -1
- package/src/core/auth/auth.schema.js.map +0 -1
- package/src/core/auth/auth.util.js.map +0 -1
- package/src/core/auth/better-auth.lib.js.map +0 -1
- package/src/core/auth/generate-password-hash.util.js.map +0 -1
- package/src/core/auth/headers.schema.js.map +0 -1
- package/src/core/auth/user.schema.js.map +0 -1
- package/src/core/db/__generated__/client/browser.js.map +0 -1
- package/src/core/db/__generated__/client/client.js.map +0 -1
- package/src/core/db/__generated__/client/commonInputTypes.js.map +0 -1
- package/src/core/db/__generated__/client/enums.js.map +0 -1
- package/src/core/db/__generated__/client/internal/class.js.map +0 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +0 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +0 -1
- package/src/core/db/__generated__/client/models/Account.js.map +0 -1
- package/src/core/db/__generated__/client/models/Address.js.map +0 -1
- package/src/core/db/__generated__/client/models/Campaign.js.map +0 -1
- package/src/core/db/__generated__/client/models/ClosingTimes.js.map +0 -1
- package/src/core/db/__generated__/client/models/File.js.map +0 -1
- package/src/core/db/__generated__/client/models/Invitation.js.map +0 -1
- package/src/core/db/__generated__/client/models/LegalEntity.js.map +0 -1
- package/src/core/db/__generated__/client/models/Manufacturer.js.map +0 -1
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/Member.js.map +0 -1
- package/src/core/db/__generated__/client/models/Modifier.js.map +0 -1
- package/src/core/db/__generated__/client/models/ModifierGroup.js.map +0 -1
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/OpeningTimes.js.map +0 -1
- package/src/core/db/__generated__/client/models/Order.js.map +0 -1
- package/src/core/db/__generated__/client/models/OrderItem.js.map +0 -1
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/Organization.js.map +0 -1
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +0 -1
- package/src/core/db/__generated__/client/models/Payment.js.map +0 -1
- package/src/core/db/__generated__/client/models/PaymentSession.js.map +0 -1
- package/src/core/db/__generated__/client/models/Product.js.map +0 -1
- package/src/core/db/__generated__/client/models/ProductCategory.js.map +0 -1
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +0 -1
- package/src/core/db/__generated__/client/models/ProductTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/Reservation.js.map +0 -1
- package/src/core/db/__generated__/client/models/Session.js.map +0 -1
- package/src/core/db/__generated__/client/models/ShippingMethod.js.map +0 -1
- package/src/core/db/__generated__/client/models/ShippingZone.js.map +0 -1
- package/src/core/db/__generated__/client/models/User.js.map +0 -1
- package/src/core/db/__generated__/client/models/Verification.js.map +0 -1
- package/src/core/db/__generated__/client/models.js.map +0 -1
- package/src/core/db/index.js.map +0 -1
- package/src/core/exceptions/http-exception.js.map +0 -1
- package/src/core/hono/hono.js.map +0 -1
- package/src/core/lib/prisma.js.map +0 -1
- package/src/core/logging/pino.js.map +0 -1
- package/src/core/notifications/email.service.js.map +0 -1
- package/src/core/openapi/openapi.lib.js.map +0 -1
- package/src/core/types/google-maps.types.js.map +0 -1
- package/src/core/utils/currency.util.js.map +0 -1
- package/src/core/utils/env.util.js.map +0 -1
- package/src/core/utils/object.util.js.map +0 -1
- package/src/core/utils/translations.util.js.map +0 -1
- package/src/core/utils/zod.util.js.map +0 -1
- package/src/db.js.map +0 -1
- package/src/features/access/access.handler.js.map +0 -1
- package/src/features/access/access.route.js.map +0 -1
- package/src/features/access/access.schema.js.map +0 -1
- package/src/features/access/access.service.js.map +0 -1
- package/src/features/cart/cart.handler.js.map +0 -1
- package/src/features/cart/cart.route.js.map +0 -1
- package/src/features/cart/cart.schema.js.map +0 -1
- package/src/features/cart/cart.service.js.map +0 -1
- package/src/features/cart/cart.util.js.map +0 -1
- package/src/features/file/file.handler.js.map +0 -1
- package/src/features/file/file.route.js.map +0 -1
- package/src/features/file/file.schema.js.map +0 -1
- package/src/features/file/file.service.js.map +0 -1
- package/src/features/health/health.handler.js.map +0 -1
- package/src/features/health/health.route.js.map +0 -1
- package/src/features/index.js.map +0 -1
- package/src/features/location/location.handler.js.map +0 -1
- package/src/features/location/location.route.js.map +0 -1
- package/src/features/location/location.schema.js.map +0 -1
- package/src/features/location/location.service.js.map +0 -1
- package/src/features/manufacturer/manufacturer.handler.js.map +0 -1
- package/src/features/manufacturer/manufacturer.route.js.map +0 -1
- package/src/features/manufacturer/manufacturer.schema.js.map +0 -1
- package/src/features/manufacturer/manufacturer.service.js.map +0 -1
- package/src/features/order/emails/order-confirmation.email.js.map +0 -1
- package/src/features/order/emails/order-notification.email.js.map +0 -1
- package/src/features/order/fulfilment.schema.js.map +0 -1
- package/src/features/order/order.handler.js.map +0 -1
- package/src/features/order/order.route.js.map +0 -1
- package/src/features/order/order.schema.js.map +0 -1
- package/src/features/order/order.service.js.map +0 -1
- package/src/features/order/recipient.schema.js.map +0 -1
- package/src/features/organization/legal-entity.schema.js.map +0 -1
- package/src/features/organization/organization-configuration.schema.js.map +0 -1
- package/src/features/organization/organization.handler.js.map +0 -1
- package/src/features/organization/organization.route.js.map +0 -1
- package/src/features/organization/organization.schema.js.map +0 -1
- package/src/features/organization/organization.service.js.map +0 -1
- package/src/features/payment/payment.handler.js.map +0 -1
- package/src/features/payment/payment.route.js.map +0 -1
- package/src/features/payment/payment.schema.js.map +0 -1
- package/src/features/payment/payment.service.js.map +0 -1
- package/src/features/payment/stripe.service.js.map +0 -1
- package/src/features/product/product-modifier.schema.js.map +0 -1
- package/src/features/product/product.handler.js.map +0 -1
- package/src/features/product/product.route.js.map +0 -1
- package/src/features/product/product.schema.js.map +0 -1
- package/src/features/product/product.service.js.map +0 -1
- package/src/features/product-category/product-category.handler.js.map +0 -1
- package/src/features/product-category/product-category.route.js.map +0 -1
- package/src/features/product-category/product-category.schema.js.map +0 -1
- package/src/features/product-category/product-category.service.js.map +0 -1
- package/src/features/reservation/emails/reservation-cancellation.email.js.map +0 -1
- package/src/features/reservation/emails/reservation-confirmation.email.js.map +0 -1
- package/src/features/reservation/emails/reservation-notification.email.js.map +0 -1
- package/src/features/reservation/reservation.handler.js.map +0 -1
- package/src/features/reservation/reservation.route.js.map +0 -1
- package/src/features/reservation/reservation.schema.js.map +0 -1
- package/src/features/reservation/reservation.service.js.map +0 -1
- package/src/features/shipping/shipping.handler.js.map +0 -1
- package/src/features/shipping/shipping.route.js.map +0 -1
- package/src/features/shipping/shipping.service.js.map +0 -1
- package/src/features/shipping-method/shipping-method.handler.js.map +0 -1
- package/src/features/shipping-method/shipping-method.route.js.map +0 -1
- package/src/features/shipping-method/shipping-method.schema.js.map +0 -1
- package/src/features/shipping-method/shipping-method.service.js.map +0 -1
- package/src/features/shipping-method/shipping-zone.schema.js.map +0 -1
- package/src/features/webhook/webhook.handler.js.map +0 -1
- package/src/features/webhook/webhook.route.js.map +0 -1
- package/src/index.js.map +0 -1
- package/src/integrations/next.js.map +0 -1
- package/src/schemas/address.schema.js.map +0 -1
- package/src/schemas/currency.schema.js.map +0 -1
- package/src/schemas/error.schema.js.map +0 -1
- package/src/schemas/index.js.map +0 -1
- package/src/schemas/locales.schema.js.map +0 -1
- package/src/schemas/number.schema.js.map +0 -1
- package/src/schemas/pagination.schema.js.map +0 -1
- package/src/schemas/params.schema.js.map +0 -1
- package/src/schemas/queries.schema.js.map +0 -1
- package/src/test/integration/api-fixtures.js.map +0 -1
- package/src/test/integration/test-helpers.js.map +0 -1
- package/src/test/setup-test-env.js.map +0 -1
|
@@ -1,9 +1,5 @@
|
|
|
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
|
-
*/
|
|
7
3
|
export type AddressModel = runtime.Types.Result.DefaultSelection<Prisma.$AddressPayload>;
|
|
8
4
|
export type AggregateAddress = {
|
|
9
5
|
_count: AddressCountAggregateOutputType | null;
|
|
@@ -169,63 +165,15 @@ export type AddressCountAggregateInputType = {
|
|
|
169
165
|
_all?: true;
|
|
170
166
|
};
|
|
171
167
|
export type AddressAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
172
|
-
/**
|
|
173
|
-
* Filter which Address to aggregate.
|
|
174
|
-
*/
|
|
175
168
|
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
|
-
*/
|
|
181
169
|
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
|
-
*/
|
|
187
170
|
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
|
-
*/
|
|
193
171
|
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
|
-
*/
|
|
199
172
|
skip?: number;
|
|
200
|
-
/**
|
|
201
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
202
|
-
*
|
|
203
|
-
* Count returned Addresses
|
|
204
|
-
**/
|
|
205
173
|
_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
|
-
**/
|
|
211
174
|
_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
|
-
**/
|
|
217
175
|
_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
|
-
**/
|
|
223
176
|
_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
|
-
**/
|
|
229
177
|
_max?: AddressMaxAggregateInputType;
|
|
230
178
|
};
|
|
231
179
|
export type GetAddressAggregateType<T extends AddressAggregateArgs> = {
|
|
@@ -1286,9 +1234,6 @@ export type AddressUncheckedUpdateManyWithoutUsersInput = {
|
|
|
1286
1234
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1287
1235
|
deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1288
1236
|
};
|
|
1289
|
-
/**
|
|
1290
|
-
* Count Type AddressCountOutputType
|
|
1291
|
-
*/
|
|
1292
1237
|
export type AddressCountOutputType = {
|
|
1293
1238
|
LegalEntity: number;
|
|
1294
1239
|
organizations: number;
|
|
@@ -1301,36 +1246,18 @@ export type AddressCountOutputTypeSelect<ExtArgs extends runtime.Types.Extension
|
|
|
1301
1246
|
users?: boolean | AddressCountOutputTypeCountUsersArgs;
|
|
1302
1247
|
orders?: boolean | AddressCountOutputTypeCountOrdersArgs;
|
|
1303
1248
|
};
|
|
1304
|
-
/**
|
|
1305
|
-
* AddressCountOutputType without action
|
|
1306
|
-
*/
|
|
1307
1249
|
export type AddressCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1308
|
-
/**
|
|
1309
|
-
* Select specific fields to fetch from the AddressCountOutputType
|
|
1310
|
-
*/
|
|
1311
1250
|
select?: Prisma.AddressCountOutputTypeSelect<ExtArgs> | null;
|
|
1312
1251
|
};
|
|
1313
|
-
/**
|
|
1314
|
-
* AddressCountOutputType without action
|
|
1315
|
-
*/
|
|
1316
1252
|
export type AddressCountOutputTypeCountLegalEntityArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1317
1253
|
where?: Prisma.LegalEntityWhereInput;
|
|
1318
1254
|
};
|
|
1319
|
-
/**
|
|
1320
|
-
* AddressCountOutputType without action
|
|
1321
|
-
*/
|
|
1322
1255
|
export type AddressCountOutputTypeCountOrganizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1323
1256
|
where?: Prisma.OrganizationWhereInput;
|
|
1324
1257
|
};
|
|
1325
|
-
/**
|
|
1326
|
-
* AddressCountOutputType without action
|
|
1327
|
-
*/
|
|
1328
1258
|
export type AddressCountOutputTypeCountUsersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1329
1259
|
where?: Prisma.UserWhereInput;
|
|
1330
1260
|
};
|
|
1331
|
-
/**
|
|
1332
|
-
* AddressCountOutputType without action
|
|
1333
|
-
*/
|
|
1334
1261
|
export type AddressCountOutputTypeCountOrdersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1335
1262
|
where?: Prisma.OrderWhereInput;
|
|
1336
1263
|
};
|
|
@@ -1485,290 +1412,22 @@ export interface AddressDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
1485
1412
|
name: 'Address';
|
|
1486
1413
|
};
|
|
1487
1414
|
};
|
|
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
|
-
*/
|
|
1499
1415
|
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
|
-
*/
|
|
1512
1416
|
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
|
-
*/
|
|
1526
1417
|
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
|
-
*/
|
|
1541
1418
|
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
|
-
*/
|
|
1558
1419
|
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
|
-
*/
|
|
1571
1420
|
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
|
-
*/
|
|
1584
1421
|
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
|
-
*/
|
|
1607
1422
|
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
|
-
*/
|
|
1620
1423
|
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
|
-
*/
|
|
1636
1424
|
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
|
-
*/
|
|
1649
1425
|
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
|
-
*/
|
|
1667
1426
|
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
|
-
*/
|
|
1696
1427
|
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
|
-
*/
|
|
1714
1428
|
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
|
-
**/
|
|
1728
1429
|
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
|
-
**/
|
|
1753
1430
|
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
|
-
**/
|
|
1772
1431
|
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 ? {
|
|
1773
1432
|
orderBy: AddressGroupByArgs['orderBy'];
|
|
1774
1433
|
} : {
|
|
@@ -1787,47 +1446,18 @@ export interface AddressDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
1787
1446
|
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1788
1447
|
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1789
1448
|
}[OrderFields]>(args: Prisma.SubsetIntersection<T, AddressGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAddressGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1790
|
-
/**
|
|
1791
|
-
* Fields of the Address model
|
|
1792
|
-
*/
|
|
1793
1449
|
readonly fields: AddressFieldRefs;
|
|
1794
1450
|
}
|
|
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
|
-
*/
|
|
1801
1451
|
export interface Prisma__AddressClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1802
1452
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1803
1453
|
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>;
|
|
1804
1454
|
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>;
|
|
1805
1455
|
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>;
|
|
1806
1456
|
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
|
-
*/
|
|
1813
1457
|
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
|
-
*/
|
|
1819
1458
|
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
|
-
*/
|
|
1826
1459
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1827
1460
|
}
|
|
1828
|
-
/**
|
|
1829
|
-
* Fields of the Address model
|
|
1830
|
-
*/
|
|
1831
1461
|
export interface AddressFieldRefs {
|
|
1832
1462
|
readonly id: Prisma.FieldRef<"Address", 'String'>;
|
|
1833
1463
|
readonly firstname: Prisma.FieldRef<"Address", 'String'>;
|
|
@@ -1851,390 +1481,107 @@ export interface AddressFieldRefs {
|
|
|
1851
1481
|
readonly deletedAt: Prisma.FieldRef<"Address", 'DateTime'>;
|
|
1852
1482
|
readonly deletedBy: Prisma.FieldRef<"Address", 'String'>;
|
|
1853
1483
|
}
|
|
1854
|
-
/**
|
|
1855
|
-
* Address findUnique
|
|
1856
|
-
*/
|
|
1857
1484
|
export type AddressFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1858
|
-
/**
|
|
1859
|
-
* Select specific fields to fetch from the Address
|
|
1860
|
-
*/
|
|
1861
1485
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
1862
|
-
/**
|
|
1863
|
-
* Omit specific fields from the Address
|
|
1864
|
-
*/
|
|
1865
1486
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
1866
|
-
/**
|
|
1867
|
-
* Choose, which related nodes to fetch as well
|
|
1868
|
-
*/
|
|
1869
1487
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
1870
|
-
/**
|
|
1871
|
-
* Filter, which Address to fetch.
|
|
1872
|
-
*/
|
|
1873
1488
|
where: Prisma.AddressWhereUniqueInput;
|
|
1874
1489
|
};
|
|
1875
|
-
/**
|
|
1876
|
-
* Address findUniqueOrThrow
|
|
1877
|
-
*/
|
|
1878
1490
|
export type AddressFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1879
|
-
/**
|
|
1880
|
-
* Select specific fields to fetch from the Address
|
|
1881
|
-
*/
|
|
1882
1491
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
1883
|
-
/**
|
|
1884
|
-
* Omit specific fields from the Address
|
|
1885
|
-
*/
|
|
1886
1492
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
1887
|
-
/**
|
|
1888
|
-
* Choose, which related nodes to fetch as well
|
|
1889
|
-
*/
|
|
1890
1493
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
1891
|
-
/**
|
|
1892
|
-
* Filter, which Address to fetch.
|
|
1893
|
-
*/
|
|
1894
1494
|
where: Prisma.AddressWhereUniqueInput;
|
|
1895
1495
|
};
|
|
1896
|
-
/**
|
|
1897
|
-
* Address findFirst
|
|
1898
|
-
*/
|
|
1899
1496
|
export type AddressFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1900
|
-
/**
|
|
1901
|
-
* Select specific fields to fetch from the Address
|
|
1902
|
-
*/
|
|
1903
1497
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
1904
|
-
/**
|
|
1905
|
-
* Omit specific fields from the Address
|
|
1906
|
-
*/
|
|
1907
1498
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
1908
|
-
/**
|
|
1909
|
-
* Choose, which related nodes to fetch as well
|
|
1910
|
-
*/
|
|
1911
1499
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
1912
|
-
/**
|
|
1913
|
-
* Filter, which Address to fetch.
|
|
1914
|
-
*/
|
|
1915
1500
|
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
|
-
*/
|
|
1921
1501
|
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
|
-
*/
|
|
1927
1502
|
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
|
-
*/
|
|
1933
1503
|
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
|
-
*/
|
|
1939
1504
|
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
|
-
*/
|
|
1945
1505
|
distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[];
|
|
1946
1506
|
};
|
|
1947
|
-
/**
|
|
1948
|
-
* Address findFirstOrThrow
|
|
1949
|
-
*/
|
|
1950
1507
|
export type AddressFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1951
|
-
/**
|
|
1952
|
-
* Select specific fields to fetch from the Address
|
|
1953
|
-
*/
|
|
1954
1508
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
1955
|
-
/**
|
|
1956
|
-
* Omit specific fields from the Address
|
|
1957
|
-
*/
|
|
1958
1509
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
1959
|
-
/**
|
|
1960
|
-
* Choose, which related nodes to fetch as well
|
|
1961
|
-
*/
|
|
1962
1510
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
1963
|
-
/**
|
|
1964
|
-
* Filter, which Address to fetch.
|
|
1965
|
-
*/
|
|
1966
1511
|
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
|
-
*/
|
|
1972
1512
|
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
|
-
*/
|
|
1978
1513
|
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
|
-
*/
|
|
1984
1514
|
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
|
-
*/
|
|
1990
1515
|
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
|
-
*/
|
|
1996
1516
|
distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[];
|
|
1997
1517
|
};
|
|
1998
|
-
/**
|
|
1999
|
-
* Address findMany
|
|
2000
|
-
*/
|
|
2001
1518
|
export type AddressFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2002
|
-
/**
|
|
2003
|
-
* Select specific fields to fetch from the Address
|
|
2004
|
-
*/
|
|
2005
1519
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2006
|
-
/**
|
|
2007
|
-
* Omit specific fields from the Address
|
|
2008
|
-
*/
|
|
2009
1520
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2010
|
-
/**
|
|
2011
|
-
* Choose, which related nodes to fetch as well
|
|
2012
|
-
*/
|
|
2013
1521
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
2014
|
-
/**
|
|
2015
|
-
* Filter, which Addresses to fetch.
|
|
2016
|
-
*/
|
|
2017
1522
|
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
|
-
*/
|
|
2023
1523
|
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
|
-
*/
|
|
2029
1524
|
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
|
-
*/
|
|
2035
1525
|
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
|
-
*/
|
|
2041
1526
|
skip?: number;
|
|
2042
1527
|
distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[];
|
|
2043
1528
|
};
|
|
2044
|
-
/**
|
|
2045
|
-
* Address create
|
|
2046
|
-
*/
|
|
2047
1529
|
export type AddressCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2048
|
-
/**
|
|
2049
|
-
* Select specific fields to fetch from the Address
|
|
2050
|
-
*/
|
|
2051
1530
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2052
|
-
/**
|
|
2053
|
-
* Omit specific fields from the Address
|
|
2054
|
-
*/
|
|
2055
1531
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2056
|
-
/**
|
|
2057
|
-
* Choose, which related nodes to fetch as well
|
|
2058
|
-
*/
|
|
2059
1532
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
2060
|
-
/**
|
|
2061
|
-
* The data needed to create a Address.
|
|
2062
|
-
*/
|
|
2063
1533
|
data: Prisma.XOR<Prisma.AddressCreateInput, Prisma.AddressUncheckedCreateInput>;
|
|
2064
1534
|
};
|
|
2065
|
-
/**
|
|
2066
|
-
* Address createMany
|
|
2067
|
-
*/
|
|
2068
1535
|
export type AddressCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2069
|
-
/**
|
|
2070
|
-
* The data used to create many Addresses.
|
|
2071
|
-
*/
|
|
2072
1536
|
data: Prisma.AddressCreateManyInput | Prisma.AddressCreateManyInput[];
|
|
2073
1537
|
skipDuplicates?: boolean;
|
|
2074
1538
|
};
|
|
2075
|
-
/**
|
|
2076
|
-
* Address createManyAndReturn
|
|
2077
|
-
*/
|
|
2078
1539
|
export type AddressCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2079
|
-
/**
|
|
2080
|
-
* Select specific fields to fetch from the Address
|
|
2081
|
-
*/
|
|
2082
1540
|
select?: Prisma.AddressSelectCreateManyAndReturn<ExtArgs> | null;
|
|
2083
|
-
/**
|
|
2084
|
-
* Omit specific fields from the Address
|
|
2085
|
-
*/
|
|
2086
1541
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2087
|
-
/**
|
|
2088
|
-
* The data used to create many Addresses.
|
|
2089
|
-
*/
|
|
2090
1542
|
data: Prisma.AddressCreateManyInput | Prisma.AddressCreateManyInput[];
|
|
2091
1543
|
skipDuplicates?: boolean;
|
|
2092
1544
|
};
|
|
2093
|
-
/**
|
|
2094
|
-
* Address update
|
|
2095
|
-
*/
|
|
2096
1545
|
export type AddressUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2097
|
-
/**
|
|
2098
|
-
* Select specific fields to fetch from the Address
|
|
2099
|
-
*/
|
|
2100
1546
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2101
|
-
/**
|
|
2102
|
-
* Omit specific fields from the Address
|
|
2103
|
-
*/
|
|
2104
1547
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2105
|
-
/**
|
|
2106
|
-
* Choose, which related nodes to fetch as well
|
|
2107
|
-
*/
|
|
2108
1548
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
2109
|
-
/**
|
|
2110
|
-
* The data needed to update a Address.
|
|
2111
|
-
*/
|
|
2112
1549
|
data: Prisma.XOR<Prisma.AddressUpdateInput, Prisma.AddressUncheckedUpdateInput>;
|
|
2113
|
-
/**
|
|
2114
|
-
* Choose, which Address to update.
|
|
2115
|
-
*/
|
|
2116
1550
|
where: Prisma.AddressWhereUniqueInput;
|
|
2117
1551
|
};
|
|
2118
|
-
/**
|
|
2119
|
-
* Address updateMany
|
|
2120
|
-
*/
|
|
2121
1552
|
export type AddressUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2122
|
-
/**
|
|
2123
|
-
* The data used to update Addresses.
|
|
2124
|
-
*/
|
|
2125
1553
|
data: Prisma.XOR<Prisma.AddressUpdateManyMutationInput, Prisma.AddressUncheckedUpdateManyInput>;
|
|
2126
|
-
/**
|
|
2127
|
-
* Filter which Addresses to update
|
|
2128
|
-
*/
|
|
2129
1554
|
where?: Prisma.AddressWhereInput;
|
|
2130
|
-
/**
|
|
2131
|
-
* Limit how many Addresses to update.
|
|
2132
|
-
*/
|
|
2133
1555
|
limit?: number;
|
|
2134
1556
|
};
|
|
2135
|
-
/**
|
|
2136
|
-
* Address updateManyAndReturn
|
|
2137
|
-
*/
|
|
2138
1557
|
export type AddressUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2139
|
-
/**
|
|
2140
|
-
* Select specific fields to fetch from the Address
|
|
2141
|
-
*/
|
|
2142
1558
|
select?: Prisma.AddressSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
2143
|
-
/**
|
|
2144
|
-
* Omit specific fields from the Address
|
|
2145
|
-
*/
|
|
2146
1559
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2147
|
-
/**
|
|
2148
|
-
* The data used to update Addresses.
|
|
2149
|
-
*/
|
|
2150
1560
|
data: Prisma.XOR<Prisma.AddressUpdateManyMutationInput, Prisma.AddressUncheckedUpdateManyInput>;
|
|
2151
|
-
/**
|
|
2152
|
-
* Filter which Addresses to update
|
|
2153
|
-
*/
|
|
2154
1561
|
where?: Prisma.AddressWhereInput;
|
|
2155
|
-
/**
|
|
2156
|
-
* Limit how many Addresses to update.
|
|
2157
|
-
*/
|
|
2158
1562
|
limit?: number;
|
|
2159
1563
|
};
|
|
2160
|
-
/**
|
|
2161
|
-
* Address upsert
|
|
2162
|
-
*/
|
|
2163
1564
|
export type AddressUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2164
|
-
/**
|
|
2165
|
-
* Select specific fields to fetch from the Address
|
|
2166
|
-
*/
|
|
2167
1565
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2168
|
-
/**
|
|
2169
|
-
* Omit specific fields from the Address
|
|
2170
|
-
*/
|
|
2171
1566
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2172
|
-
/**
|
|
2173
|
-
* Choose, which related nodes to fetch as well
|
|
2174
|
-
*/
|
|
2175
1567
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
2176
|
-
/**
|
|
2177
|
-
* The filter to search for the Address to update in case it exists.
|
|
2178
|
-
*/
|
|
2179
1568
|
where: Prisma.AddressWhereUniqueInput;
|
|
2180
|
-
/**
|
|
2181
|
-
* In case the Address found by the `where` argument doesn't exist, create a new Address with this data.
|
|
2182
|
-
*/
|
|
2183
1569
|
create: Prisma.XOR<Prisma.AddressCreateInput, Prisma.AddressUncheckedCreateInput>;
|
|
2184
|
-
/**
|
|
2185
|
-
* In case the Address was found with the provided `where` argument, update it with this data.
|
|
2186
|
-
*/
|
|
2187
1570
|
update: Prisma.XOR<Prisma.AddressUpdateInput, Prisma.AddressUncheckedUpdateInput>;
|
|
2188
1571
|
};
|
|
2189
|
-
/**
|
|
2190
|
-
* Address delete
|
|
2191
|
-
*/
|
|
2192
1572
|
export type AddressDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2193
|
-
/**
|
|
2194
|
-
* Select specific fields to fetch from the Address
|
|
2195
|
-
*/
|
|
2196
1573
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2197
|
-
/**
|
|
2198
|
-
* Omit specific fields from the Address
|
|
2199
|
-
*/
|
|
2200
1574
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2201
|
-
/**
|
|
2202
|
-
* Choose, which related nodes to fetch as well
|
|
2203
|
-
*/
|
|
2204
1575
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
2205
|
-
/**
|
|
2206
|
-
* Filter which Address to delete.
|
|
2207
|
-
*/
|
|
2208
1576
|
where: Prisma.AddressWhereUniqueInput;
|
|
2209
1577
|
};
|
|
2210
|
-
/**
|
|
2211
|
-
* Address deleteMany
|
|
2212
|
-
*/
|
|
2213
1578
|
export type AddressDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2214
|
-
/**
|
|
2215
|
-
* Filter which Addresses to delete
|
|
2216
|
-
*/
|
|
2217
1579
|
where?: Prisma.AddressWhereInput;
|
|
2218
|
-
/**
|
|
2219
|
-
* Limit how many Addresses to delete.
|
|
2220
|
-
*/
|
|
2221
1580
|
limit?: number;
|
|
2222
1581
|
};
|
|
2223
|
-
/**
|
|
2224
|
-
* Address.LegalEntity
|
|
2225
|
-
*/
|
|
2226
1582
|
export type Address$LegalEntityArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2227
|
-
/**
|
|
2228
|
-
* Select specific fields to fetch from the LegalEntity
|
|
2229
|
-
*/
|
|
2230
1583
|
select?: Prisma.LegalEntitySelect<ExtArgs> | null;
|
|
2231
|
-
/**
|
|
2232
|
-
* Omit specific fields from the LegalEntity
|
|
2233
|
-
*/
|
|
2234
1584
|
omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
|
|
2235
|
-
/**
|
|
2236
|
-
* Choose, which related nodes to fetch as well
|
|
2237
|
-
*/
|
|
2238
1585
|
include?: Prisma.LegalEntityInclude<ExtArgs> | null;
|
|
2239
1586
|
where?: Prisma.LegalEntityWhereInput;
|
|
2240
1587
|
orderBy?: Prisma.LegalEntityOrderByWithRelationInput | Prisma.LegalEntityOrderByWithRelationInput[];
|
|
@@ -2243,21 +1590,9 @@ export type Address$LegalEntityArgs<ExtArgs extends runtime.Types.Extensions.Int
|
|
|
2243
1590
|
skip?: number;
|
|
2244
1591
|
distinct?: Prisma.LegalEntityScalarFieldEnum | Prisma.LegalEntityScalarFieldEnum[];
|
|
2245
1592
|
};
|
|
2246
|
-
/**
|
|
2247
|
-
* Address.organizations
|
|
2248
|
-
*/
|
|
2249
1593
|
export type Address$organizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2250
|
-
/**
|
|
2251
|
-
* Select specific fields to fetch from the Organization
|
|
2252
|
-
*/
|
|
2253
1594
|
select?: Prisma.OrganizationSelect<ExtArgs> | null;
|
|
2254
|
-
/**
|
|
2255
|
-
* Omit specific fields from the Organization
|
|
2256
|
-
*/
|
|
2257
1595
|
omit?: Prisma.OrganizationOmit<ExtArgs> | null;
|
|
2258
|
-
/**
|
|
2259
|
-
* Choose, which related nodes to fetch as well
|
|
2260
|
-
*/
|
|
2261
1596
|
include?: Prisma.OrganizationInclude<ExtArgs> | null;
|
|
2262
1597
|
where?: Prisma.OrganizationWhereInput;
|
|
2263
1598
|
orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[];
|
|
@@ -2266,21 +1601,9 @@ export type Address$organizationsArgs<ExtArgs extends runtime.Types.Extensions.I
|
|
|
2266
1601
|
skip?: number;
|
|
2267
1602
|
distinct?: Prisma.OrganizationScalarFieldEnum | Prisma.OrganizationScalarFieldEnum[];
|
|
2268
1603
|
};
|
|
2269
|
-
/**
|
|
2270
|
-
* Address.users
|
|
2271
|
-
*/
|
|
2272
1604
|
export type Address$usersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2273
|
-
/**
|
|
2274
|
-
* Select specific fields to fetch from the User
|
|
2275
|
-
*/
|
|
2276
1605
|
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
2277
|
-
/**
|
|
2278
|
-
* Omit specific fields from the User
|
|
2279
|
-
*/
|
|
2280
1606
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
2281
|
-
/**
|
|
2282
|
-
* Choose, which related nodes to fetch as well
|
|
2283
|
-
*/
|
|
2284
1607
|
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
2285
1608
|
where?: Prisma.UserWhereInput;
|
|
2286
1609
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
|
|
@@ -2289,21 +1612,9 @@ export type Address$usersArgs<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
2289
1612
|
skip?: number;
|
|
2290
1613
|
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
|
|
2291
1614
|
};
|
|
2292
|
-
/**
|
|
2293
|
-
* Address.orders
|
|
2294
|
-
*/
|
|
2295
1615
|
export type Address$ordersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2296
|
-
/**
|
|
2297
|
-
* Select specific fields to fetch from the Order
|
|
2298
|
-
*/
|
|
2299
1616
|
select?: Prisma.OrderSelect<ExtArgs> | null;
|
|
2300
|
-
/**
|
|
2301
|
-
* Omit specific fields from the Order
|
|
2302
|
-
*/
|
|
2303
1617
|
omit?: Prisma.OrderOmit<ExtArgs> | null;
|
|
2304
|
-
/**
|
|
2305
|
-
* Choose, which related nodes to fetch as well
|
|
2306
|
-
*/
|
|
2307
1618
|
include?: Prisma.OrderInclude<ExtArgs> | null;
|
|
2308
1619
|
where?: Prisma.OrderWhereInput;
|
|
2309
1620
|
orderBy?: Prisma.OrderOrderByWithRelationInput | Prisma.OrderOrderByWithRelationInput[];
|
|
@@ -2312,21 +1623,9 @@ export type Address$ordersArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|
|
2312
1623
|
skip?: number;
|
|
2313
1624
|
distinct?: Prisma.OrderScalarFieldEnum | Prisma.OrderScalarFieldEnum[];
|
|
2314
1625
|
};
|
|
2315
|
-
/**
|
|
2316
|
-
* Address without action
|
|
2317
|
-
*/
|
|
2318
1626
|
export type AddressDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2319
|
-
/**
|
|
2320
|
-
* Select specific fields to fetch from the Address
|
|
2321
|
-
*/
|
|
2322
1627
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2323
|
-
/**
|
|
2324
|
-
* Omit specific fields from the Address
|
|
2325
|
-
*/
|
|
2326
1628
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2327
|
-
/**
|
|
2328
|
-
* Choose, which related nodes to fetch as well
|
|
2329
|
-
*/
|
|
2330
1629
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
2331
1630
|
};
|
|
2332
1631
|
export {};
|