@shophost/rest-api 2.0.29 → 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 User
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
3
|
export type UserModel = runtime.Types.Result.DefaultSelection<Prisma.$UserPayload>;
|
|
8
4
|
export type AggregateUser = {
|
|
9
5
|
_count: UserCountAggregateOutputType | null;
|
|
@@ -79,51 +75,13 @@ export type UserCountAggregateInputType = {
|
|
|
79
75
|
_all?: true;
|
|
80
76
|
};
|
|
81
77
|
export type UserAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
82
|
-
/**
|
|
83
|
-
* Filter which User to aggregate.
|
|
84
|
-
*/
|
|
85
78
|
where?: Prisma.UserWhereInput;
|
|
86
|
-
/**
|
|
87
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
88
|
-
*
|
|
89
|
-
* Determine the order of Users to fetch.
|
|
90
|
-
*/
|
|
91
79
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
|
|
92
|
-
/**
|
|
93
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
94
|
-
*
|
|
95
|
-
* Sets the start position
|
|
96
|
-
*/
|
|
97
80
|
cursor?: Prisma.UserWhereUniqueInput;
|
|
98
|
-
/**
|
|
99
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
100
|
-
*
|
|
101
|
-
* Take `±n` Users from the position of the cursor.
|
|
102
|
-
*/
|
|
103
81
|
take?: number;
|
|
104
|
-
/**
|
|
105
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
106
|
-
*
|
|
107
|
-
* Skip the first `n` Users.
|
|
108
|
-
*/
|
|
109
82
|
skip?: number;
|
|
110
|
-
/**
|
|
111
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
112
|
-
*
|
|
113
|
-
* Count returned Users
|
|
114
|
-
**/
|
|
115
83
|
_count?: true | UserCountAggregateInputType;
|
|
116
|
-
/**
|
|
117
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
118
|
-
*
|
|
119
|
-
* Select which fields to find the minimum value
|
|
120
|
-
**/
|
|
121
84
|
_min?: UserMinAggregateInputType;
|
|
122
|
-
/**
|
|
123
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
124
|
-
*
|
|
125
|
-
* Select which fields to find the maximum value
|
|
126
|
-
**/
|
|
127
85
|
_max?: UserMaxAggregateInputType;
|
|
128
86
|
};
|
|
129
87
|
export type GetUserAggregateType<T extends UserAggregateArgs> = {
|
|
@@ -1117,9 +1075,6 @@ export type UserUncheckedUpdateManyWithoutShippingAddressesInput = {
|
|
|
1117
1075
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1118
1076
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1119
1077
|
};
|
|
1120
|
-
/**
|
|
1121
|
-
* Count Type UserCountOutputType
|
|
1122
|
-
*/
|
|
1123
1078
|
export type UserCountOutputType = {
|
|
1124
1079
|
sessions: number;
|
|
1125
1080
|
accounts: number;
|
|
@@ -1138,54 +1093,27 @@ export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.I
|
|
|
1138
1093
|
orders?: boolean | UserCountOutputTypeCountOrdersArgs;
|
|
1139
1094
|
reservations?: boolean | UserCountOutputTypeCountReservationsArgs;
|
|
1140
1095
|
};
|
|
1141
|
-
/**
|
|
1142
|
-
* UserCountOutputType without action
|
|
1143
|
-
*/
|
|
1144
1096
|
export type UserCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1145
|
-
/**
|
|
1146
|
-
* Select specific fields to fetch from the UserCountOutputType
|
|
1147
|
-
*/
|
|
1148
1097
|
select?: Prisma.UserCountOutputTypeSelect<ExtArgs> | null;
|
|
1149
1098
|
};
|
|
1150
|
-
/**
|
|
1151
|
-
* UserCountOutputType without action
|
|
1152
|
-
*/
|
|
1153
1099
|
export type UserCountOutputTypeCountSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1154
1100
|
where?: Prisma.SessionWhereInput;
|
|
1155
1101
|
};
|
|
1156
|
-
/**
|
|
1157
|
-
* UserCountOutputType without action
|
|
1158
|
-
*/
|
|
1159
1102
|
export type UserCountOutputTypeCountAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1160
1103
|
where?: Prisma.AccountWhereInput;
|
|
1161
1104
|
};
|
|
1162
|
-
/**
|
|
1163
|
-
* UserCountOutputType without action
|
|
1164
|
-
*/
|
|
1165
1105
|
export type UserCountOutputTypeCountMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1166
1106
|
where?: Prisma.MemberWhereInput;
|
|
1167
1107
|
};
|
|
1168
|
-
/**
|
|
1169
|
-
* UserCountOutputType without action
|
|
1170
|
-
*/
|
|
1171
1108
|
export type UserCountOutputTypeCountInvitationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1172
1109
|
where?: Prisma.InvitationWhereInput;
|
|
1173
1110
|
};
|
|
1174
|
-
/**
|
|
1175
|
-
* UserCountOutputType without action
|
|
1176
|
-
*/
|
|
1177
1111
|
export type UserCountOutputTypeCountShippingAddressesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1178
1112
|
where?: Prisma.AddressWhereInput;
|
|
1179
1113
|
};
|
|
1180
|
-
/**
|
|
1181
|
-
* UserCountOutputType without action
|
|
1182
|
-
*/
|
|
1183
1114
|
export type UserCountOutputTypeCountOrdersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1184
1115
|
where?: Prisma.OrderWhereInput;
|
|
1185
1116
|
};
|
|
1186
|
-
/**
|
|
1187
|
-
* UserCountOutputType without action
|
|
1188
|
-
*/
|
|
1189
1117
|
export type UserCountOutputTypeCountReservationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1190
1118
|
where?: Prisma.ReservationWhereInput;
|
|
1191
1119
|
};
|
|
@@ -1289,290 +1217,22 @@ export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
1289
1217
|
name: 'User';
|
|
1290
1218
|
};
|
|
1291
1219
|
};
|
|
1292
|
-
/**
|
|
1293
|
-
* Find zero or one User that matches the filter.
|
|
1294
|
-
* @param {UserFindUniqueArgs} args - Arguments to find a User
|
|
1295
|
-
* @example
|
|
1296
|
-
* // Get one User
|
|
1297
|
-
* const user = await prisma.user.findUnique({
|
|
1298
|
-
* where: {
|
|
1299
|
-
* // ... provide filter here
|
|
1300
|
-
* }
|
|
1301
|
-
* })
|
|
1302
|
-
*/
|
|
1303
1220
|
findUnique<T extends UserFindUniqueArgs>(args: Prisma.SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1304
|
-
/**
|
|
1305
|
-
* Find one User that matches the filter or throw an error with `error.code='P2025'`
|
|
1306
|
-
* if no matches were found.
|
|
1307
|
-
* @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
|
|
1308
|
-
* @example
|
|
1309
|
-
* // Get one User
|
|
1310
|
-
* const user = await prisma.user.findUniqueOrThrow({
|
|
1311
|
-
* where: {
|
|
1312
|
-
* // ... provide filter here
|
|
1313
|
-
* }
|
|
1314
|
-
* })
|
|
1315
|
-
*/
|
|
1316
1221
|
findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1317
|
-
/**
|
|
1318
|
-
* Find the first User that matches the filter.
|
|
1319
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1320
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1321
|
-
* @param {UserFindFirstArgs} args - Arguments to find a User
|
|
1322
|
-
* @example
|
|
1323
|
-
* // Get one User
|
|
1324
|
-
* const user = await prisma.user.findFirst({
|
|
1325
|
-
* where: {
|
|
1326
|
-
* // ... provide filter here
|
|
1327
|
-
* }
|
|
1328
|
-
* })
|
|
1329
|
-
*/
|
|
1330
1222
|
findFirst<T extends UserFindFirstArgs>(args?: Prisma.SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1331
|
-
/**
|
|
1332
|
-
* Find the first User that matches the filter or
|
|
1333
|
-
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1334
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1335
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1336
|
-
* @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
|
|
1337
|
-
* @example
|
|
1338
|
-
* // Get one User
|
|
1339
|
-
* const user = await prisma.user.findFirstOrThrow({
|
|
1340
|
-
* where: {
|
|
1341
|
-
* // ... provide filter here
|
|
1342
|
-
* }
|
|
1343
|
-
* })
|
|
1344
|
-
*/
|
|
1345
1223
|
findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1346
|
-
/**
|
|
1347
|
-
* Find zero or more Users that matches the filter.
|
|
1348
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1349
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1350
|
-
* @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1351
|
-
* @example
|
|
1352
|
-
* // Get all Users
|
|
1353
|
-
* const users = await prisma.user.findMany()
|
|
1354
|
-
*
|
|
1355
|
-
* // Get first 10 Users
|
|
1356
|
-
* const users = await prisma.user.findMany({ take: 10 })
|
|
1357
|
-
*
|
|
1358
|
-
* // Only select the `id`
|
|
1359
|
-
* const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
|
|
1360
|
-
*
|
|
1361
|
-
*/
|
|
1362
1224
|
findMany<T extends UserFindManyArgs>(args?: Prisma.SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
1363
|
-
/**
|
|
1364
|
-
* Create a User.
|
|
1365
|
-
* @param {UserCreateArgs} args - Arguments to create a User.
|
|
1366
|
-
* @example
|
|
1367
|
-
* // Create one User
|
|
1368
|
-
* const User = await prisma.user.create({
|
|
1369
|
-
* data: {
|
|
1370
|
-
* // ... data to create a User
|
|
1371
|
-
* }
|
|
1372
|
-
* })
|
|
1373
|
-
*
|
|
1374
|
-
*/
|
|
1375
1225
|
create<T extends UserCreateArgs>(args: Prisma.SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1376
|
-
/**
|
|
1377
|
-
* Create many Users.
|
|
1378
|
-
* @param {UserCreateManyArgs} args - Arguments to create many Users.
|
|
1379
|
-
* @example
|
|
1380
|
-
* // Create many Users
|
|
1381
|
-
* const user = await prisma.user.createMany({
|
|
1382
|
-
* data: [
|
|
1383
|
-
* // ... provide data here
|
|
1384
|
-
* ]
|
|
1385
|
-
* })
|
|
1386
|
-
*
|
|
1387
|
-
*/
|
|
1388
1226
|
createMany<T extends UserCreateManyArgs>(args?: Prisma.SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1389
|
-
/**
|
|
1390
|
-
* Create many Users and returns the data saved in the database.
|
|
1391
|
-
* @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
|
|
1392
|
-
* @example
|
|
1393
|
-
* // Create many Users
|
|
1394
|
-
* const user = await prisma.user.createManyAndReturn({
|
|
1395
|
-
* data: [
|
|
1396
|
-
* // ... provide data here
|
|
1397
|
-
* ]
|
|
1398
|
-
* })
|
|
1399
|
-
*
|
|
1400
|
-
* // Create many Users and only return the `id`
|
|
1401
|
-
* const userWithIdOnly = await prisma.user.createManyAndReturn({
|
|
1402
|
-
* select: { id: true },
|
|
1403
|
-
* data: [
|
|
1404
|
-
* // ... provide data here
|
|
1405
|
-
* ]
|
|
1406
|
-
* })
|
|
1407
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1408
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1409
|
-
*
|
|
1410
|
-
*/
|
|
1411
1227
|
createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
1412
|
-
/**
|
|
1413
|
-
* Delete a User.
|
|
1414
|
-
* @param {UserDeleteArgs} args - Arguments to delete one User.
|
|
1415
|
-
* @example
|
|
1416
|
-
* // Delete one User
|
|
1417
|
-
* const User = await prisma.user.delete({
|
|
1418
|
-
* where: {
|
|
1419
|
-
* // ... filter to delete one User
|
|
1420
|
-
* }
|
|
1421
|
-
* })
|
|
1422
|
-
*
|
|
1423
|
-
*/
|
|
1424
1228
|
delete<T extends UserDeleteArgs>(args: Prisma.SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1425
|
-
/**
|
|
1426
|
-
* Update one User.
|
|
1427
|
-
* @param {UserUpdateArgs} args - Arguments to update one User.
|
|
1428
|
-
* @example
|
|
1429
|
-
* // Update one User
|
|
1430
|
-
* const user = await prisma.user.update({
|
|
1431
|
-
* where: {
|
|
1432
|
-
* // ... provide filter here
|
|
1433
|
-
* },
|
|
1434
|
-
* data: {
|
|
1435
|
-
* // ... provide data here
|
|
1436
|
-
* }
|
|
1437
|
-
* })
|
|
1438
|
-
*
|
|
1439
|
-
*/
|
|
1440
1229
|
update<T extends UserUpdateArgs>(args: Prisma.SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1441
|
-
/**
|
|
1442
|
-
* Delete zero or more Users.
|
|
1443
|
-
* @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
|
|
1444
|
-
* @example
|
|
1445
|
-
* // Delete a few Users
|
|
1446
|
-
* const { count } = await prisma.user.deleteMany({
|
|
1447
|
-
* where: {
|
|
1448
|
-
* // ... provide filter here
|
|
1449
|
-
* }
|
|
1450
|
-
* })
|
|
1451
|
-
*
|
|
1452
|
-
*/
|
|
1453
1230
|
deleteMany<T extends UserDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1454
|
-
/**
|
|
1455
|
-
* Update zero or more Users.
|
|
1456
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1457
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1458
|
-
* @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1459
|
-
* @example
|
|
1460
|
-
* // Update many Users
|
|
1461
|
-
* const user = await prisma.user.updateMany({
|
|
1462
|
-
* where: {
|
|
1463
|
-
* // ... provide filter here
|
|
1464
|
-
* },
|
|
1465
|
-
* data: {
|
|
1466
|
-
* // ... provide data here
|
|
1467
|
-
* }
|
|
1468
|
-
* })
|
|
1469
|
-
*
|
|
1470
|
-
*/
|
|
1471
1231
|
updateMany<T extends UserUpdateManyArgs>(args: Prisma.SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1472
|
-
/**
|
|
1473
|
-
* Update zero or more Users and returns the data updated in the database.
|
|
1474
|
-
* @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
|
|
1475
|
-
* @example
|
|
1476
|
-
* // Update many Users
|
|
1477
|
-
* const user = await prisma.user.updateManyAndReturn({
|
|
1478
|
-
* where: {
|
|
1479
|
-
* // ... provide filter here
|
|
1480
|
-
* },
|
|
1481
|
-
* data: [
|
|
1482
|
-
* // ... provide data here
|
|
1483
|
-
* ]
|
|
1484
|
-
* })
|
|
1485
|
-
*
|
|
1486
|
-
* // Update zero or more Users and only return the `id`
|
|
1487
|
-
* const userWithIdOnly = await prisma.user.updateManyAndReturn({
|
|
1488
|
-
* select: { id: true },
|
|
1489
|
-
* where: {
|
|
1490
|
-
* // ... provide filter here
|
|
1491
|
-
* },
|
|
1492
|
-
* data: [
|
|
1493
|
-
* // ... provide data here
|
|
1494
|
-
* ]
|
|
1495
|
-
* })
|
|
1496
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1497
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1498
|
-
*
|
|
1499
|
-
*/
|
|
1500
1232
|
updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
1501
|
-
/**
|
|
1502
|
-
* Create or update one User.
|
|
1503
|
-
* @param {UserUpsertArgs} args - Arguments to update or create a User.
|
|
1504
|
-
* @example
|
|
1505
|
-
* // Update or create a User
|
|
1506
|
-
* const user = await prisma.user.upsert({
|
|
1507
|
-
* create: {
|
|
1508
|
-
* // ... data to create a User
|
|
1509
|
-
* },
|
|
1510
|
-
* update: {
|
|
1511
|
-
* // ... in case it already exists, update
|
|
1512
|
-
* },
|
|
1513
|
-
* where: {
|
|
1514
|
-
* // ... the filter for the User we want to update
|
|
1515
|
-
* }
|
|
1516
|
-
* })
|
|
1517
|
-
*/
|
|
1518
1233
|
upsert<T extends UserUpsertArgs>(args: Prisma.SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1519
|
-
/**
|
|
1520
|
-
* Count the number of Users.
|
|
1521
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1522
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1523
|
-
* @param {UserCountArgs} args - Arguments to filter Users to count.
|
|
1524
|
-
* @example
|
|
1525
|
-
* // Count the number of Users
|
|
1526
|
-
* const count = await prisma.user.count({
|
|
1527
|
-
* where: {
|
|
1528
|
-
* // ... the filter for the Users we want to count
|
|
1529
|
-
* }
|
|
1530
|
-
* })
|
|
1531
|
-
**/
|
|
1532
1234
|
count<T extends UserCountArgs>(args?: Prisma.Subset<T, UserCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], UserCountAggregateOutputType> : number>;
|
|
1533
|
-
/**
|
|
1534
|
-
* Allows you to perform aggregations operations on a User.
|
|
1535
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1536
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1537
|
-
* @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1538
|
-
* @example
|
|
1539
|
-
* // Ordered by age ascending
|
|
1540
|
-
* // Where email contains prisma.io
|
|
1541
|
-
* // Limited to the 10 users
|
|
1542
|
-
* const aggregations = await prisma.user.aggregate({
|
|
1543
|
-
* _avg: {
|
|
1544
|
-
* age: true,
|
|
1545
|
-
* },
|
|
1546
|
-
* where: {
|
|
1547
|
-
* email: {
|
|
1548
|
-
* contains: "prisma.io",
|
|
1549
|
-
* },
|
|
1550
|
-
* },
|
|
1551
|
-
* orderBy: {
|
|
1552
|
-
* age: "asc",
|
|
1553
|
-
* },
|
|
1554
|
-
* take: 10,
|
|
1555
|
-
* })
|
|
1556
|
-
**/
|
|
1557
1235
|
aggregate<T extends UserAggregateArgs>(args: Prisma.Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>;
|
|
1558
|
-
/**
|
|
1559
|
-
* Group by User.
|
|
1560
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
1561
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
1562
|
-
* @param {UserGroupByArgs} args - Group by arguments.
|
|
1563
|
-
* @example
|
|
1564
|
-
* // Group by city, order by createdAt, get count
|
|
1565
|
-
* const result = await prisma.user.groupBy({
|
|
1566
|
-
* by: ['city', 'createdAt'],
|
|
1567
|
-
* orderBy: {
|
|
1568
|
-
* createdAt: true
|
|
1569
|
-
* },
|
|
1570
|
-
* _count: {
|
|
1571
|
-
* _all: true
|
|
1572
|
-
* },
|
|
1573
|
-
* })
|
|
1574
|
-
*
|
|
1575
|
-
**/
|
|
1576
1236
|
groupBy<T extends UserGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1577
1237
|
orderBy: UserGroupByArgs['orderBy'];
|
|
1578
1238
|
} : {
|
|
@@ -1591,17 +1251,8 @@ export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
1591
1251
|
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1592
1252
|
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1593
1253
|
}[OrderFields]>(args: Prisma.SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1594
|
-
/**
|
|
1595
|
-
* Fields of the User model
|
|
1596
|
-
*/
|
|
1597
1254
|
readonly fields: UserFieldRefs;
|
|
1598
1255
|
}
|
|
1599
|
-
/**
|
|
1600
|
-
* The delegate class that acts as a "Promise-like" for User.
|
|
1601
|
-
* Why is this prefixed with `Prisma__`?
|
|
1602
|
-
* Because we want to prevent naming conflicts as mentioned in
|
|
1603
|
-
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1604
|
-
*/
|
|
1605
1256
|
export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1606
1257
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1607
1258
|
sessions<T extends Prisma.User$sessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
@@ -1611,30 +1262,10 @@ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Typ
|
|
|
1611
1262
|
shippingAddresses<T extends Prisma.User$shippingAddressesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$shippingAddressesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1612
1263
|
orders<T extends Prisma.User$ordersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$ordersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1613
1264
|
reservations<T extends Prisma.User$reservationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$reservationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReservationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1614
|
-
/**
|
|
1615
|
-
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1616
|
-
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1617
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1618
|
-
* @returns A Promise for the completion of which ever callback is executed.
|
|
1619
|
-
*/
|
|
1620
1265
|
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>;
|
|
1621
|
-
/**
|
|
1622
|
-
* Attaches a callback for only the rejection of the Promise.
|
|
1623
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1624
|
-
* @returns A Promise for the completion of the callback.
|
|
1625
|
-
*/
|
|
1626
1266
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1627
|
-
/**
|
|
1628
|
-
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1629
|
-
* resolved value cannot be modified from the callback.
|
|
1630
|
-
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1631
|
-
* @returns A Promise for the completion of the callback.
|
|
1632
|
-
*/
|
|
1633
1267
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1634
1268
|
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Fields of the User model
|
|
1637
|
-
*/
|
|
1638
1269
|
export interface UserFieldRefs {
|
|
1639
1270
|
readonly id: Prisma.FieldRef<"User", 'String'>;
|
|
1640
1271
|
readonly name: Prisma.FieldRef<"User", 'String'>;
|
|
@@ -1646,390 +1277,107 @@ export interface UserFieldRefs {
|
|
|
1646
1277
|
readonly createdAt: Prisma.FieldRef<"User", 'DateTime'>;
|
|
1647
1278
|
readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'>;
|
|
1648
1279
|
}
|
|
1649
|
-
/**
|
|
1650
|
-
* User findUnique
|
|
1651
|
-
*/
|
|
1652
1280
|
export type UserFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1653
|
-
/**
|
|
1654
|
-
* Select specific fields to fetch from the User
|
|
1655
|
-
*/
|
|
1656
1281
|
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1657
|
-
/**
|
|
1658
|
-
* Omit specific fields from the User
|
|
1659
|
-
*/
|
|
1660
1282
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1661
|
-
/**
|
|
1662
|
-
* Choose, which related nodes to fetch as well
|
|
1663
|
-
*/
|
|
1664
1283
|
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1665
|
-
/**
|
|
1666
|
-
* Filter, which User to fetch.
|
|
1667
|
-
*/
|
|
1668
1284
|
where: Prisma.UserWhereUniqueInput;
|
|
1669
1285
|
};
|
|
1670
|
-
/**
|
|
1671
|
-
* User findUniqueOrThrow
|
|
1672
|
-
*/
|
|
1673
1286
|
export type UserFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1674
|
-
/**
|
|
1675
|
-
* Select specific fields to fetch from the User
|
|
1676
|
-
*/
|
|
1677
1287
|
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1678
|
-
/**
|
|
1679
|
-
* Omit specific fields from the User
|
|
1680
|
-
*/
|
|
1681
1288
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1682
|
-
/**
|
|
1683
|
-
* Choose, which related nodes to fetch as well
|
|
1684
|
-
*/
|
|
1685
1289
|
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1686
|
-
/**
|
|
1687
|
-
* Filter, which User to fetch.
|
|
1688
|
-
*/
|
|
1689
1290
|
where: Prisma.UserWhereUniqueInput;
|
|
1690
1291
|
};
|
|
1691
|
-
/**
|
|
1692
|
-
* User findFirst
|
|
1693
|
-
*/
|
|
1694
1292
|
export type UserFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1695
|
-
/**
|
|
1696
|
-
* Select specific fields to fetch from the User
|
|
1697
|
-
*/
|
|
1698
1293
|
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1699
|
-
/**
|
|
1700
|
-
* Omit specific fields from the User
|
|
1701
|
-
*/
|
|
1702
1294
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1703
|
-
/**
|
|
1704
|
-
* Choose, which related nodes to fetch as well
|
|
1705
|
-
*/
|
|
1706
1295
|
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1707
|
-
/**
|
|
1708
|
-
* Filter, which User to fetch.
|
|
1709
|
-
*/
|
|
1710
1296
|
where?: Prisma.UserWhereInput;
|
|
1711
|
-
/**
|
|
1712
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1713
|
-
*
|
|
1714
|
-
* Determine the order of Users to fetch.
|
|
1715
|
-
*/
|
|
1716
1297
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
|
|
1717
|
-
/**
|
|
1718
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1719
|
-
*
|
|
1720
|
-
* Sets the position for searching for Users.
|
|
1721
|
-
*/
|
|
1722
1298
|
cursor?: Prisma.UserWhereUniqueInput;
|
|
1723
|
-
/**
|
|
1724
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1725
|
-
*
|
|
1726
|
-
* Take `±n` Users from the position of the cursor.
|
|
1727
|
-
*/
|
|
1728
1299
|
take?: number;
|
|
1729
|
-
/**
|
|
1730
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1731
|
-
*
|
|
1732
|
-
* Skip the first `n` Users.
|
|
1733
|
-
*/
|
|
1734
1300
|
skip?: number;
|
|
1735
|
-
/**
|
|
1736
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1737
|
-
*
|
|
1738
|
-
* Filter by unique combinations of Users.
|
|
1739
|
-
*/
|
|
1740
1301
|
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
|
|
1741
1302
|
};
|
|
1742
|
-
/**
|
|
1743
|
-
* User findFirstOrThrow
|
|
1744
|
-
*/
|
|
1745
1303
|
export type UserFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1746
|
-
/**
|
|
1747
|
-
* Select specific fields to fetch from the User
|
|
1748
|
-
*/
|
|
1749
1304
|
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1750
|
-
/**
|
|
1751
|
-
* Omit specific fields from the User
|
|
1752
|
-
*/
|
|
1753
1305
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1754
|
-
/**
|
|
1755
|
-
* Choose, which related nodes to fetch as well
|
|
1756
|
-
*/
|
|
1757
1306
|
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1758
|
-
/**
|
|
1759
|
-
* Filter, which User to fetch.
|
|
1760
|
-
*/
|
|
1761
1307
|
where?: Prisma.UserWhereInput;
|
|
1762
|
-
/**
|
|
1763
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1764
|
-
*
|
|
1765
|
-
* Determine the order of Users to fetch.
|
|
1766
|
-
*/
|
|
1767
1308
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
|
|
1768
|
-
/**
|
|
1769
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1770
|
-
*
|
|
1771
|
-
* Sets the position for searching for Users.
|
|
1772
|
-
*/
|
|
1773
1309
|
cursor?: Prisma.UserWhereUniqueInput;
|
|
1774
|
-
/**
|
|
1775
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1776
|
-
*
|
|
1777
|
-
* Take `±n` Users from the position of the cursor.
|
|
1778
|
-
*/
|
|
1779
1310
|
take?: number;
|
|
1780
|
-
/**
|
|
1781
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1782
|
-
*
|
|
1783
|
-
* Skip the first `n` Users.
|
|
1784
|
-
*/
|
|
1785
1311
|
skip?: number;
|
|
1786
|
-
/**
|
|
1787
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1788
|
-
*
|
|
1789
|
-
* Filter by unique combinations of Users.
|
|
1790
|
-
*/
|
|
1791
1312
|
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
|
|
1792
1313
|
};
|
|
1793
|
-
/**
|
|
1794
|
-
* User findMany
|
|
1795
|
-
*/
|
|
1796
1314
|
export type UserFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1797
|
-
/**
|
|
1798
|
-
* Select specific fields to fetch from the User
|
|
1799
|
-
*/
|
|
1800
1315
|
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1801
|
-
/**
|
|
1802
|
-
* Omit specific fields from the User
|
|
1803
|
-
*/
|
|
1804
1316
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1805
|
-
/**
|
|
1806
|
-
* Choose, which related nodes to fetch as well
|
|
1807
|
-
*/
|
|
1808
1317
|
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1809
|
-
/**
|
|
1810
|
-
* Filter, which Users to fetch.
|
|
1811
|
-
*/
|
|
1812
1318
|
where?: Prisma.UserWhereInput;
|
|
1813
|
-
/**
|
|
1814
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1815
|
-
*
|
|
1816
|
-
* Determine the order of Users to fetch.
|
|
1817
|
-
*/
|
|
1818
1319
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
|
|
1819
|
-
/**
|
|
1820
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1821
|
-
*
|
|
1822
|
-
* Sets the position for listing Users.
|
|
1823
|
-
*/
|
|
1824
1320
|
cursor?: Prisma.UserWhereUniqueInput;
|
|
1825
|
-
/**
|
|
1826
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1827
|
-
*
|
|
1828
|
-
* Take `±n` Users from the position of the cursor.
|
|
1829
|
-
*/
|
|
1830
1321
|
take?: number;
|
|
1831
|
-
/**
|
|
1832
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1833
|
-
*
|
|
1834
|
-
* Skip the first `n` Users.
|
|
1835
|
-
*/
|
|
1836
1322
|
skip?: number;
|
|
1837
1323
|
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
|
|
1838
1324
|
};
|
|
1839
|
-
/**
|
|
1840
|
-
* User create
|
|
1841
|
-
*/
|
|
1842
1325
|
export type UserCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1843
|
-
/**
|
|
1844
|
-
* Select specific fields to fetch from the User
|
|
1845
|
-
*/
|
|
1846
1326
|
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1847
|
-
/**
|
|
1848
|
-
* Omit specific fields from the User
|
|
1849
|
-
*/
|
|
1850
1327
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1851
|
-
/**
|
|
1852
|
-
* Choose, which related nodes to fetch as well
|
|
1853
|
-
*/
|
|
1854
1328
|
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1855
|
-
/**
|
|
1856
|
-
* The data needed to create a User.
|
|
1857
|
-
*/
|
|
1858
1329
|
data: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>;
|
|
1859
1330
|
};
|
|
1860
|
-
/**
|
|
1861
|
-
* User createMany
|
|
1862
|
-
*/
|
|
1863
1331
|
export type UserCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1864
|
-
/**
|
|
1865
|
-
* The data used to create many Users.
|
|
1866
|
-
*/
|
|
1867
1332
|
data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[];
|
|
1868
1333
|
skipDuplicates?: boolean;
|
|
1869
1334
|
};
|
|
1870
|
-
/**
|
|
1871
|
-
* User createManyAndReturn
|
|
1872
|
-
*/
|
|
1873
1335
|
export type UserCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1874
|
-
/**
|
|
1875
|
-
* Select specific fields to fetch from the User
|
|
1876
|
-
*/
|
|
1877
1336
|
select?: Prisma.UserSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1878
|
-
/**
|
|
1879
|
-
* Omit specific fields from the User
|
|
1880
|
-
*/
|
|
1881
1337
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1882
|
-
/**
|
|
1883
|
-
* The data used to create many Users.
|
|
1884
|
-
*/
|
|
1885
1338
|
data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[];
|
|
1886
1339
|
skipDuplicates?: boolean;
|
|
1887
1340
|
};
|
|
1888
|
-
/**
|
|
1889
|
-
* User update
|
|
1890
|
-
*/
|
|
1891
1341
|
export type UserUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1892
|
-
/**
|
|
1893
|
-
* Select specific fields to fetch from the User
|
|
1894
|
-
*/
|
|
1895
1342
|
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1896
|
-
/**
|
|
1897
|
-
* Omit specific fields from the User
|
|
1898
|
-
*/
|
|
1899
1343
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1900
|
-
/**
|
|
1901
|
-
* Choose, which related nodes to fetch as well
|
|
1902
|
-
*/
|
|
1903
1344
|
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1904
|
-
/**
|
|
1905
|
-
* The data needed to update a User.
|
|
1906
|
-
*/
|
|
1907
1345
|
data: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>;
|
|
1908
|
-
/**
|
|
1909
|
-
* Choose, which User to update.
|
|
1910
|
-
*/
|
|
1911
1346
|
where: Prisma.UserWhereUniqueInput;
|
|
1912
1347
|
};
|
|
1913
|
-
/**
|
|
1914
|
-
* User updateMany
|
|
1915
|
-
*/
|
|
1916
1348
|
export type UserUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1917
|
-
/**
|
|
1918
|
-
* The data used to update Users.
|
|
1919
|
-
*/
|
|
1920
1349
|
data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>;
|
|
1921
|
-
/**
|
|
1922
|
-
* Filter which Users to update
|
|
1923
|
-
*/
|
|
1924
1350
|
where?: Prisma.UserWhereInput;
|
|
1925
|
-
/**
|
|
1926
|
-
* Limit how many Users to update.
|
|
1927
|
-
*/
|
|
1928
1351
|
limit?: number;
|
|
1929
1352
|
};
|
|
1930
|
-
/**
|
|
1931
|
-
* User updateManyAndReturn
|
|
1932
|
-
*/
|
|
1933
1353
|
export type UserUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1934
|
-
/**
|
|
1935
|
-
* Select specific fields to fetch from the User
|
|
1936
|
-
*/
|
|
1937
1354
|
select?: Prisma.UserSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1938
|
-
/**
|
|
1939
|
-
* Omit specific fields from the User
|
|
1940
|
-
*/
|
|
1941
1355
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1942
|
-
/**
|
|
1943
|
-
* The data used to update Users.
|
|
1944
|
-
*/
|
|
1945
1356
|
data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>;
|
|
1946
|
-
/**
|
|
1947
|
-
* Filter which Users to update
|
|
1948
|
-
*/
|
|
1949
1357
|
where?: Prisma.UserWhereInput;
|
|
1950
|
-
/**
|
|
1951
|
-
* Limit how many Users to update.
|
|
1952
|
-
*/
|
|
1953
1358
|
limit?: number;
|
|
1954
1359
|
};
|
|
1955
|
-
/**
|
|
1956
|
-
* User upsert
|
|
1957
|
-
*/
|
|
1958
1360
|
export type UserUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1959
|
-
/**
|
|
1960
|
-
* Select specific fields to fetch from the User
|
|
1961
|
-
*/
|
|
1962
1361
|
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1963
|
-
/**
|
|
1964
|
-
* Omit specific fields from the User
|
|
1965
|
-
*/
|
|
1966
1362
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1967
|
-
/**
|
|
1968
|
-
* Choose, which related nodes to fetch as well
|
|
1969
|
-
*/
|
|
1970
1363
|
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1971
|
-
/**
|
|
1972
|
-
* The filter to search for the User to update in case it exists.
|
|
1973
|
-
*/
|
|
1974
1364
|
where: Prisma.UserWhereUniqueInput;
|
|
1975
|
-
/**
|
|
1976
|
-
* In case the User found by the `where` argument doesn't exist, create a new User with this data.
|
|
1977
|
-
*/
|
|
1978
1365
|
create: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>;
|
|
1979
|
-
/**
|
|
1980
|
-
* In case the User was found with the provided `where` argument, update it with this data.
|
|
1981
|
-
*/
|
|
1982
1366
|
update: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>;
|
|
1983
1367
|
};
|
|
1984
|
-
/**
|
|
1985
|
-
* User delete
|
|
1986
|
-
*/
|
|
1987
1368
|
export type UserDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1988
|
-
/**
|
|
1989
|
-
* Select specific fields to fetch from the User
|
|
1990
|
-
*/
|
|
1991
1369
|
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1992
|
-
/**
|
|
1993
|
-
* Omit specific fields from the User
|
|
1994
|
-
*/
|
|
1995
1370
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1996
|
-
/**
|
|
1997
|
-
* Choose, which related nodes to fetch as well
|
|
1998
|
-
*/
|
|
1999
1371
|
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
2000
|
-
/**
|
|
2001
|
-
* Filter which User to delete.
|
|
2002
|
-
*/
|
|
2003
1372
|
where: Prisma.UserWhereUniqueInput;
|
|
2004
1373
|
};
|
|
2005
|
-
/**
|
|
2006
|
-
* User deleteMany
|
|
2007
|
-
*/
|
|
2008
1374
|
export type UserDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2009
|
-
/**
|
|
2010
|
-
* Filter which Users to delete
|
|
2011
|
-
*/
|
|
2012
1375
|
where?: Prisma.UserWhereInput;
|
|
2013
|
-
/**
|
|
2014
|
-
* Limit how many Users to delete.
|
|
2015
|
-
*/
|
|
2016
1376
|
limit?: number;
|
|
2017
1377
|
};
|
|
2018
|
-
/**
|
|
2019
|
-
* User.sessions
|
|
2020
|
-
*/
|
|
2021
1378
|
export type User$sessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2022
|
-
/**
|
|
2023
|
-
* Select specific fields to fetch from the Session
|
|
2024
|
-
*/
|
|
2025
1379
|
select?: Prisma.SessionSelect<ExtArgs> | null;
|
|
2026
|
-
/**
|
|
2027
|
-
* Omit specific fields from the Session
|
|
2028
|
-
*/
|
|
2029
1380
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
2030
|
-
/**
|
|
2031
|
-
* Choose, which related nodes to fetch as well
|
|
2032
|
-
*/
|
|
2033
1381
|
include?: Prisma.SessionInclude<ExtArgs> | null;
|
|
2034
1382
|
where?: Prisma.SessionWhereInput;
|
|
2035
1383
|
orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
|
|
@@ -2038,21 +1386,9 @@ export type User$sessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
2038
1386
|
skip?: number;
|
|
2039
1387
|
distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
|
|
2040
1388
|
};
|
|
2041
|
-
/**
|
|
2042
|
-
* User.accounts
|
|
2043
|
-
*/
|
|
2044
1389
|
export type User$accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2045
|
-
/**
|
|
2046
|
-
* Select specific fields to fetch from the Account
|
|
2047
|
-
*/
|
|
2048
1390
|
select?: Prisma.AccountSelect<ExtArgs> | null;
|
|
2049
|
-
/**
|
|
2050
|
-
* Omit specific fields from the Account
|
|
2051
|
-
*/
|
|
2052
1391
|
omit?: Prisma.AccountOmit<ExtArgs> | null;
|
|
2053
|
-
/**
|
|
2054
|
-
* Choose, which related nodes to fetch as well
|
|
2055
|
-
*/
|
|
2056
1392
|
include?: Prisma.AccountInclude<ExtArgs> | null;
|
|
2057
1393
|
where?: Prisma.AccountWhereInput;
|
|
2058
1394
|
orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[];
|
|
@@ -2061,21 +1397,9 @@ export type User$accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
2061
1397
|
skip?: number;
|
|
2062
1398
|
distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[];
|
|
2063
1399
|
};
|
|
2064
|
-
/**
|
|
2065
|
-
* User.members
|
|
2066
|
-
*/
|
|
2067
1400
|
export type User$membersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2068
|
-
/**
|
|
2069
|
-
* Select specific fields to fetch from the Member
|
|
2070
|
-
*/
|
|
2071
1401
|
select?: Prisma.MemberSelect<ExtArgs> | null;
|
|
2072
|
-
/**
|
|
2073
|
-
* Omit specific fields from the Member
|
|
2074
|
-
*/
|
|
2075
1402
|
omit?: Prisma.MemberOmit<ExtArgs> | null;
|
|
2076
|
-
/**
|
|
2077
|
-
* Choose, which related nodes to fetch as well
|
|
2078
|
-
*/
|
|
2079
1403
|
include?: Prisma.MemberInclude<ExtArgs> | null;
|
|
2080
1404
|
where?: Prisma.MemberWhereInput;
|
|
2081
1405
|
orderBy?: Prisma.MemberOrderByWithRelationInput | Prisma.MemberOrderByWithRelationInput[];
|
|
@@ -2084,21 +1408,9 @@ export type User$membersArgs<ExtArgs extends runtime.Types.Extensions.InternalAr
|
|
|
2084
1408
|
skip?: number;
|
|
2085
1409
|
distinct?: Prisma.MemberScalarFieldEnum | Prisma.MemberScalarFieldEnum[];
|
|
2086
1410
|
};
|
|
2087
|
-
/**
|
|
2088
|
-
* User.invitations
|
|
2089
|
-
*/
|
|
2090
1411
|
export type User$invitationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2091
|
-
/**
|
|
2092
|
-
* Select specific fields to fetch from the Invitation
|
|
2093
|
-
*/
|
|
2094
1412
|
select?: Prisma.InvitationSelect<ExtArgs> | null;
|
|
2095
|
-
/**
|
|
2096
|
-
* Omit specific fields from the Invitation
|
|
2097
|
-
*/
|
|
2098
1413
|
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
2099
|
-
/**
|
|
2100
|
-
* Choose, which related nodes to fetch as well
|
|
2101
|
-
*/
|
|
2102
1414
|
include?: Prisma.InvitationInclude<ExtArgs> | null;
|
|
2103
1415
|
where?: Prisma.InvitationWhereInput;
|
|
2104
1416
|
orderBy?: Prisma.InvitationOrderByWithRelationInput | Prisma.InvitationOrderByWithRelationInput[];
|
|
@@ -2107,21 +1419,9 @@ export type User$invitationsArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
2107
1419
|
skip?: number;
|
|
2108
1420
|
distinct?: Prisma.InvitationScalarFieldEnum | Prisma.InvitationScalarFieldEnum[];
|
|
2109
1421
|
};
|
|
2110
|
-
/**
|
|
2111
|
-
* User.shippingAddresses
|
|
2112
|
-
*/
|
|
2113
1422
|
export type User$shippingAddressesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2114
|
-
/**
|
|
2115
|
-
* Select specific fields to fetch from the Address
|
|
2116
|
-
*/
|
|
2117
1423
|
select?: Prisma.AddressSelect<ExtArgs> | null;
|
|
2118
|
-
/**
|
|
2119
|
-
* Omit specific fields from the Address
|
|
2120
|
-
*/
|
|
2121
1424
|
omit?: Prisma.AddressOmit<ExtArgs> | null;
|
|
2122
|
-
/**
|
|
2123
|
-
* Choose, which related nodes to fetch as well
|
|
2124
|
-
*/
|
|
2125
1425
|
include?: Prisma.AddressInclude<ExtArgs> | null;
|
|
2126
1426
|
where?: Prisma.AddressWhereInput;
|
|
2127
1427
|
orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[];
|
|
@@ -2130,21 +1430,9 @@ export type User$shippingAddressesArgs<ExtArgs extends runtime.Types.Extensions.
|
|
|
2130
1430
|
skip?: number;
|
|
2131
1431
|
distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[];
|
|
2132
1432
|
};
|
|
2133
|
-
/**
|
|
2134
|
-
* User.orders
|
|
2135
|
-
*/
|
|
2136
1433
|
export type User$ordersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2137
|
-
/**
|
|
2138
|
-
* Select specific fields to fetch from the Order
|
|
2139
|
-
*/
|
|
2140
1434
|
select?: Prisma.OrderSelect<ExtArgs> | null;
|
|
2141
|
-
/**
|
|
2142
|
-
* Omit specific fields from the Order
|
|
2143
|
-
*/
|
|
2144
1435
|
omit?: Prisma.OrderOmit<ExtArgs> | null;
|
|
2145
|
-
/**
|
|
2146
|
-
* Choose, which related nodes to fetch as well
|
|
2147
|
-
*/
|
|
2148
1436
|
include?: Prisma.OrderInclude<ExtArgs> | null;
|
|
2149
1437
|
where?: Prisma.OrderWhereInput;
|
|
2150
1438
|
orderBy?: Prisma.OrderOrderByWithRelationInput | Prisma.OrderOrderByWithRelationInput[];
|
|
@@ -2153,21 +1441,9 @@ export type User$ordersArgs<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|
|
2153
1441
|
skip?: number;
|
|
2154
1442
|
distinct?: Prisma.OrderScalarFieldEnum | Prisma.OrderScalarFieldEnum[];
|
|
2155
1443
|
};
|
|
2156
|
-
/**
|
|
2157
|
-
* User.reservations
|
|
2158
|
-
*/
|
|
2159
1444
|
export type User$reservationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2160
|
-
/**
|
|
2161
|
-
* Select specific fields to fetch from the Reservation
|
|
2162
|
-
*/
|
|
2163
1445
|
select?: Prisma.ReservationSelect<ExtArgs> | null;
|
|
2164
|
-
/**
|
|
2165
|
-
* Omit specific fields from the Reservation
|
|
2166
|
-
*/
|
|
2167
1446
|
omit?: Prisma.ReservationOmit<ExtArgs> | null;
|
|
2168
|
-
/**
|
|
2169
|
-
* Choose, which related nodes to fetch as well
|
|
2170
|
-
*/
|
|
2171
1447
|
include?: Prisma.ReservationInclude<ExtArgs> | null;
|
|
2172
1448
|
where?: Prisma.ReservationWhereInput;
|
|
2173
1449
|
orderBy?: Prisma.ReservationOrderByWithRelationInput | Prisma.ReservationOrderByWithRelationInput[];
|
|
@@ -2176,21 +1452,9 @@ export type User$reservationsArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
2176
1452
|
skip?: number;
|
|
2177
1453
|
distinct?: Prisma.ReservationScalarFieldEnum | Prisma.ReservationScalarFieldEnum[];
|
|
2178
1454
|
};
|
|
2179
|
-
/**
|
|
2180
|
-
* User without action
|
|
2181
|
-
*/
|
|
2182
1455
|
export type UserDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2183
|
-
/**
|
|
2184
|
-
* Select specific fields to fetch from the User
|
|
2185
|
-
*/
|
|
2186
1456
|
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
2187
|
-
/**
|
|
2188
|
-
* Omit specific fields from the User
|
|
2189
|
-
*/
|
|
2190
1457
|
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
2191
|
-
/**
|
|
2192
|
-
* Choose, which related nodes to fetch as well
|
|
2193
|
-
*/
|
|
2194
1458
|
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
2195
1459
|
};
|
|
2196
1460
|
export {};
|