@shophost/rest-api 2.0.32 → 2.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -14
- package/src/app.js +53 -1
- package/src/app.js.map +1 -0
- package/src/core/auth/auth.schema.js +41 -1
- package/src/core/auth/auth.schema.js.map +1 -0
- package/src/core/auth/auth.util.js +44 -1
- package/src/core/auth/auth.util.js.map +1 -0
- package/src/core/auth/better-auth.lib.js +100 -1
- package/src/core/auth/better-auth.lib.js.map +1 -0
- package/src/core/auth/generate-password-hash.util.d.ts +3 -0
- package/src/core/auth/generate-password-hash.util.js +30 -1
- package/src/core/auth/generate-password-hash.util.js.map +1 -0
- package/src/core/auth/headers.schema.js +22 -1
- package/src/core/auth/headers.schema.js.map +1 -0
- package/src/core/auth/user.schema.js +30 -1
- package/src/core/auth/user.schema.js.map +1 -0
- package/src/core/db/__generated__/client/browser.d.ts +128 -0
- package/src/core/db/__generated__/client/browser.js +18 -1
- package/src/core/db/__generated__/client/browser.js.map +1 -0
- package/src/core/db/__generated__/client/client.d.ts +143 -0
- package/src/core/db/__generated__/client/client.js +35 -1
- package/src/core/db/__generated__/client/client.js.map +1 -0
- package/src/core/db/__generated__/client/commonInputTypes.js +11 -1
- package/src/core/db/__generated__/client/commonInputTypes.js.map +1 -0
- package/src/core/db/__generated__/client/enums.js +200 -1
- package/src/core/db/__generated__/client/enums.js.map +1 -0
- package/src/core/db/__generated__/client/internal/class.d.ts +343 -0
- package/src/core/db/__generated__/client/internal/class.js +55 -1
- package/src/core/db/__generated__/client/internal/class.js.map +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +234 -0
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +541 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +15 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +512 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -0
- package/src/core/db/__generated__/client/models/Account.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Account.js +2 -1
- package/src/core/db/__generated__/client/models/Account.js.map +1 -0
- package/src/core/db/__generated__/client/models/Address.d.ts +706 -0
- package/src/core/db/__generated__/client/models/Address.js +2 -1
- package/src/core/db/__generated__/client/models/Address.js.map +1 -0
- package/src/core/db/__generated__/client/models/Campaign.d.ts +643 -0
- package/src/core/db/__generated__/client/models/Campaign.js +2 -1
- package/src/core/db/__generated__/client/models/Campaign.js.map +1 -0
- package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +639 -0
- package/src/core/db/__generated__/client/models/ClosingTimes.js +2 -1
- package/src/core/db/__generated__/client/models/ClosingTimes.js.map +1 -0
- package/src/core/db/__generated__/client/models/File.d.ts +757 -0
- package/src/core/db/__generated__/client/models/File.js +2 -1
- package/src/core/db/__generated__/client/models/File.js.map +1 -0
- package/src/core/db/__generated__/client/models/Invitation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Invitation.js +2 -1
- package/src/core/db/__generated__/client/models/Invitation.js.map +1 -0
- package/src/core/db/__generated__/client/models/LegalEntity.d.ts +657 -0
- package/src/core/db/__generated__/client/models/LegalEntity.js +2 -1
- package/src/core/db/__generated__/client/models/LegalEntity.js.map +1 -0
- package/src/core/db/__generated__/client/models/Manufacturer.d.ts +684 -0
- package/src/core/db/__generated__/client/models/Manufacturer.js +2 -1
- package/src/core/db/__generated__/client/models/Manufacturer.js.map +1 -0
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Member.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Member.js +2 -1
- package/src/core/db/__generated__/client/models/Member.js.map +1 -0
- package/src/core/db/__generated__/client/models/Modifier.d.ts +667 -0
- package/src/core/db/__generated__/client/models/Modifier.js +2 -1
- package/src/core/db/__generated__/client/models/Modifier.js.map +1 -0
- package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +691 -0
- package/src/core/db/__generated__/client/models/ModifierGroup.js +2 -1
- package/src/core/db/__generated__/client/models/ModifierGroup.js.map +1 -0
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +639 -0
- package/src/core/db/__generated__/client/models/OpeningTimes.js +2 -1
- package/src/core/db/__generated__/client/models/OpeningTimes.js.map +1 -0
- package/src/core/db/__generated__/client/models/Order.d.ts +705 -0
- package/src/core/db/__generated__/client/models/Order.js +2 -1
- package/src/core/db/__generated__/client/models/Order.js.map +1 -0
- package/src/core/db/__generated__/client/models/OrderItem.d.ts +691 -0
- package/src/core/db/__generated__/client/models/OrderItem.js +2 -1
- package/src/core/db/__generated__/client/models/OrderItem.js.map +1 -0
- package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Organization.d.ts +816 -0
- package/src/core/db/__generated__/client/models/Organization.js +2 -1
- package/src/core/db/__generated__/client/models/Organization.js.map +1 -0
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +681 -0
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +2 -1
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
- package/src/core/db/__generated__/client/models/Payment.d.ts +673 -0
- package/src/core/db/__generated__/client/models/Payment.js +2 -1
- package/src/core/db/__generated__/client/models/Payment.js.map +1 -0
- package/src/core/db/__generated__/client/models/PaymentSession.d.ts +643 -0
- package/src/core/db/__generated__/client/models/PaymentSession.js +2 -1
- package/src/core/db/__generated__/client/models/PaymentSession.js.map +1 -0
- package/src/core/db/__generated__/client/models/Product.d.ts +751 -0
- package/src/core/db/__generated__/client/models/Product.js +2 -1
- package/src/core/db/__generated__/client/models/Product.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductCategory.d.ts +694 -0
- package/src/core/db/__generated__/client/models/ProductCategory.js +2 -1
- package/src/core/db/__generated__/client/models/ProductCategory.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +669 -0
- package/src/core/db/__generated__/client/models/ProductSnapshot.js +2 -1
- package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ProductTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ProductTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Reservation.d.ts +655 -0
- package/src/core/db/__generated__/client/models/Reservation.js +2 -1
- package/src/core/db/__generated__/client/models/Reservation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Session.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Session.js +2 -1
- package/src/core/db/__generated__/client/models/Session.js.map +1 -0
- package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +684 -0
- package/src/core/db/__generated__/client/models/ShippingMethod.js +2 -1
- package/src/core/db/__generated__/client/models/ShippingMethod.js.map +1 -0
- package/src/core/db/__generated__/client/models/ShippingZone.d.ts +643 -0
- package/src/core/db/__generated__/client/models/ShippingZone.js +2 -1
- package/src/core/db/__generated__/client/models/ShippingZone.js.map +1 -0
- package/src/core/db/__generated__/client/models/User.d.ts +741 -0
- package/src/core/db/__generated__/client/models/User.js +2 -1
- package/src/core/db/__generated__/client/models/User.js.map +1 -0
- package/src/core/db/__generated__/client/models/Verification.d.ts +597 -0
- package/src/core/db/__generated__/client/models/Verification.js +2 -1
- package/src/core/db/__generated__/client/models/Verification.js.map +1 -0
- package/src/core/db/__generated__/client/models.js +2 -1
- package/src/core/db/__generated__/client/models.js.map +1 -0
- package/src/core/db/index.js +2 -1
- package/src/core/db/index.js.map +1 -0
- package/src/core/exceptions/http-exception.js +9 -1
- package/src/core/exceptions/http-exception.js.map +1 -0
- package/src/core/hono/hono.js +123 -1
- package/src/core/hono/hono.js.map +1 -0
- package/src/core/lib/prisma.js +11 -1
- package/src/core/lib/prisma.js.map +1 -0
- package/src/core/logging/pino.js +5 -1
- package/src/core/logging/pino.js.map +1 -0
- package/src/core/notifications/email.service.d.ts +15 -0
- package/src/core/notifications/email.service.js +116 -1
- package/src/core/notifications/email.service.js.map +1 -0
- package/src/core/openapi/openapi.lib.js +26 -1
- package/src/core/openapi/openapi.lib.js.map +1 -0
- package/src/core/types/google-maps.types.js +2 -1
- package/src/core/types/google-maps.types.js.map +1 -0
- package/src/core/utils/currency.util.js +11 -1
- package/src/core/utils/currency.util.js.map +1 -0
- package/src/core/utils/env.util.js +8 -1
- package/src/core/utils/env.util.js.map +1 -0
- package/src/core/utils/object.util.d.ts +10 -0
- package/src/core/utils/object.util.js +39 -1
- package/src/core/utils/object.util.js.map +1 -0
- package/src/core/utils/translations.util.js +2 -0
- package/src/core/utils/translations.util.js.map +1 -0
- package/src/core/utils/zod.util.d.ts +12 -0
- package/src/core/utils/zod.util.js +85 -1
- package/src/core/utils/zod.util.js.map +1 -0
- package/src/db.js +3 -1
- package/src/db.js.map +1 -0
- package/src/features/access/access.handler.js +91 -1
- package/src/features/access/access.handler.js.map +1 -0
- package/src/features/access/access.route.js +220 -1
- package/src/features/access/access.route.js.map +1 -0
- package/src/features/access/access.schema.js +108 -1
- package/src/features/access/access.schema.js.map +1 -0
- package/src/features/access/access.service.js +294 -1
- package/src/features/access/access.service.js.map +1 -0
- package/src/features/cart/cart.handler.js +17 -1
- package/src/features/cart/cart.handler.js.map +1 -0
- package/src/features/cart/cart.route.js +32 -1
- package/src/features/cart/cart.route.js.map +1 -0
- package/src/features/cart/cart.schema.js +39 -1
- package/src/features/cart/cart.schema.js.map +1 -0
- package/src/features/cart/cart.service.d.ts +7 -0
- package/src/features/cart/cart.service.js +97 -1
- package/src/features/cart/cart.service.js.map +1 -0
- package/src/features/cart/cart.util.js +76 -1
- package/src/features/cart/cart.util.js.map +1 -0
- package/src/features/file/file.handler.js +23 -1
- package/src/features/file/file.handler.js.map +1 -0
- package/src/features/file/file.route.js +34 -1
- package/src/features/file/file.route.js.map +1 -0
- package/src/features/file/file.schema.js +77 -1
- package/src/features/file/file.schema.js.map +1 -0
- package/src/features/file/file.service.d.ts +6 -0
- package/src/features/file/file.service.js +66 -1
- package/src/features/file/file.service.js.map +1 -0
- package/src/features/health/health.handler.js +10 -1
- package/src/features/health/health.handler.js.map +1 -0
- package/src/features/health/health.route.js +25 -1
- package/src/features/health/health.route.js.map +1 -0
- package/src/features/index.js +16 -1
- package/src/features/index.js.map +1 -0
- package/src/features/location/location.handler.js +25 -1
- package/src/features/location/location.handler.js.map +1 -0
- package/src/features/location/location.route.js +56 -1
- package/src/features/location/location.route.js.map +1 -0
- package/src/features/location/location.schema.js +50 -1
- package/src/features/location/location.schema.js.map +1 -0
- package/src/features/location/location.service.d.ts +3 -0
- package/src/features/location/location.service.js +141 -1
- package/src/features/location/location.service.js.map +1 -0
- package/src/features/manufacturer/manufacturer.handler.js +53 -1
- package/src/features/manufacturer/manufacturer.handler.js.map +1 -0
- package/src/features/manufacturer/manufacturer.route.js +97 -1
- package/src/features/manufacturer/manufacturer.route.js.map +1 -0
- package/src/features/manufacturer/manufacturer.schema.js +125 -1
- package/src/features/manufacturer/manufacturer.schema.js.map +1 -0
- package/src/features/manufacturer/manufacturer.service.d.ts +19 -0
- package/src/features/manufacturer/manufacturer.service.js +190 -1
- package/src/features/manufacturer/manufacturer.service.js.map +1 -0
- package/src/features/order/emails/order-confirmation.email.js +229 -1
- package/src/features/order/emails/order-confirmation.email.js.map +1 -0
- package/src/features/order/emails/order-notification.email.js +229 -1
- package/src/features/order/emails/order-notification.email.js.map +1 -0
- package/src/features/order/fulfilment.schema.js +3 -1
- package/src/features/order/fulfilment.schema.js.map +1 -0
- package/src/features/order/order.handler.js +54 -1
- package/src/features/order/order.handler.js.map +1 -0
- package/src/features/order/order.route.js +111 -1
- package/src/features/order/order.route.js.map +1 -0
- package/src/features/order/order.schema.js +158 -1
- package/src/features/order/order.schema.js.map +1 -0
- package/src/features/order/order.service.d.ts +15 -0
- package/src/features/order/order.service.js +306 -1
- package/src/features/order/order.service.js.map +1 -0
- package/src/features/order/recipient.schema.js +38 -1
- package/src/features/order/recipient.schema.js.map +1 -0
- package/src/features/organization/legal-entity.schema.js +83 -1
- package/src/features/organization/legal-entity.schema.js.map +1 -0
- package/src/features/organization/organization-configuration.schema.js +115 -1
- package/src/features/organization/organization-configuration.schema.js.map +1 -0
- package/src/features/organization/organization.handler.js +48 -1
- package/src/features/organization/organization.handler.js.map +1 -0
- package/src/features/organization/organization.route.js +84 -1
- package/src/features/organization/organization.route.js.map +1 -0
- package/src/features/organization/organization.schema.js +64 -1
- package/src/features/organization/organization.schema.js.map +1 -0
- package/src/features/organization/organization.service.d.ts +15 -0
- package/src/features/organization/organization.service.js +334 -1
- package/src/features/organization/organization.service.js.map +1 -0
- package/src/features/payment/payment.handler.js +16 -1
- package/src/features/payment/payment.handler.js.map +1 -0
- package/src/features/payment/payment.route.js +22 -1
- package/src/features/payment/payment.route.js.map +1 -0
- package/src/features/payment/payment.schema.js +46 -1
- package/src/features/payment/payment.schema.js.map +1 -0
- package/src/features/payment/payment.service.js +100 -1
- package/src/features/payment/payment.service.js.map +1 -0
- package/src/features/payment/stripe.service.js +164 -1
- package/src/features/payment/stripe.service.js.map +1 -0
- package/src/features/product/product-modifier.schema.js +84 -1
- package/src/features/product/product-modifier.schema.js.map +1 -0
- package/src/features/product/product.handler.js +87 -1
- package/src/features/product/product.handler.js.map +1 -0
- package/src/features/product/product.route.js +179 -1
- package/src/features/product/product.route.js.map +1 -0
- package/src/features/product/product.schema.js +143 -1
- package/src/features/product/product.schema.js.map +1 -0
- package/src/features/product/product.service.d.ts +25 -0
- package/src/features/product/product.service.js +440 -1
- package/src/features/product/product.service.js.map +1 -0
- package/src/features/product-category/product-category.handler.js +59 -1
- package/src/features/product-category/product-category.handler.js.map +1 -0
- package/src/features/product-category/product-category.route.js +139 -1
- package/src/features/product-category/product-category.route.js.map +1 -0
- package/src/features/product-category/product-category.schema.js +86 -1
- package/src/features/product-category/product-category.schema.js.map +1 -0
- package/src/features/product-category/product-category.service.d.ts +22 -0
- package/src/features/product-category/product-category.service.js +220 -1
- package/src/features/product-category/product-category.service.js.map +1 -0
- package/src/features/reservation/emails/reservation-cancellation.email.js +82 -1
- package/src/features/reservation/emails/reservation-cancellation.email.js.map +1 -0
- package/src/features/reservation/emails/reservation-confirmation.email.js +82 -1
- package/src/features/reservation/emails/reservation-confirmation.email.js.map +1 -0
- package/src/features/reservation/emails/reservation-notification.email.js +93 -1
- package/src/features/reservation/emails/reservation-notification.email.js.map +1 -0
- package/src/features/reservation/reservation.handler.js +65 -1
- package/src/features/reservation/reservation.handler.js.map +1 -0
- package/src/features/reservation/reservation.route.js +167 -1
- package/src/features/reservation/reservation.route.js.map +1 -0
- package/src/features/reservation/reservation.schema.js +51 -1
- package/src/features/reservation/reservation.schema.js.map +1 -0
- package/src/features/reservation/reservation.service.d.ts +18 -0
- package/src/features/reservation/reservation.service.js +231 -1
- package/src/features/reservation/reservation.service.js.map +1 -0
- package/src/features/shipping/shipping.handler.js +32 -1
- package/src/features/shipping/shipping.handler.js.map +1 -0
- package/src/features/shipping/shipping.route.js +51 -1
- package/src/features/shipping/shipping.route.js.map +1 -0
- package/src/features/shipping/shipping.service.d.ts +7 -0
- package/src/features/shipping/shipping.service.js +96 -1
- package/src/features/shipping/shipping.service.js.map +1 -0
- package/src/features/shipping-method/shipping-method.handler.js +60 -1
- package/src/features/shipping-method/shipping-method.handler.js.map +1 -0
- package/src/features/shipping-method/shipping-method.route.js +144 -1
- package/src/features/shipping-method/shipping-method.route.js.map +1 -0
- package/src/features/shipping-method/shipping-method.schema.js +48 -1
- package/src/features/shipping-method/shipping-method.schema.js.map +1 -0
- package/src/features/shipping-method/shipping-method.service.d.ts +25 -0
- package/src/features/shipping-method/shipping-method.service.js +229 -1
- package/src/features/shipping-method/shipping-method.service.js.map +1 -0
- package/src/features/shipping-method/shipping-zone.schema.js +31 -1
- package/src/features/shipping-method/shipping-zone.schema.js.map +1 -0
- package/src/features/webhook/webhook.handler.js +50 -1
- package/src/features/webhook/webhook.handler.js.map +1 -0
- package/src/features/webhook/webhook.route.js +33 -1
- package/src/features/webhook/webhook.route.js.map +1 -0
- package/src/index.js +6 -1
- package/src/index.js.map +1 -0
- package/src/integrations/next.js +82 -1
- package/src/integrations/next.js.map +1 -0
- package/src/schemas/address.schema.d.ts +8 -0
- package/src/schemas/address.schema.js +112 -1
- package/src/schemas/address.schema.js.map +1 -0
- package/src/schemas/currency.schema.d.ts +42 -0
- package/src/schemas/currency.schema.js +118 -1
- package/src/schemas/currency.schema.js.map +1 -0
- package/src/schemas/error.schema.js +12 -1
- package/src/schemas/error.schema.js.map +1 -0
- package/src/schemas/index.js +29 -1
- package/src/schemas/index.js.map +1 -0
- package/src/schemas/locales.schema.js +238 -1
- package/src/schemas/locales.schema.js.map +1 -0
- package/src/schemas/number.schema.js +29 -1
- package/src/schemas/number.schema.js.map +1 -0
- package/src/schemas/pagination.schema.js +54 -1
- package/src/schemas/pagination.schema.js.map +1 -0
- package/src/schemas/params.schema.js +20 -1
- package/src/schemas/params.schema.js.map +1 -0
- package/src/schemas/queries.schema.js +6 -1
- package/src/schemas/queries.schema.js.map +1 -0
- package/src/test/global-setup.js +37 -1
- package/src/test/global-setup.js.map +1 -0
- package/src/test/integration/api-fixtures.js +160 -1
- package/src/test/integration/api-fixtures.js.map +1 -0
- package/src/test/integration/seed.js +368 -1
- package/src/test/integration/seed.js.map +1 -0
- package/src/test/integration/test-helpers.js +154 -1
- package/src/test/integration/test-helpers.js.map +1 -0
- package/src/test/setup-test-env.js +7 -1
- package/src/test/setup-test-env.js.map +1 -0
- package/scripts/minify.mjs +0 -123
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
2
|
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model Session
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
3
7
|
export type SessionModel = runtime.Types.Result.DefaultSelection<Prisma.$SessionPayload>;
|
|
4
8
|
export type AggregateSession = {
|
|
5
9
|
_count: SessionCountAggregateOutputType | null;
|
|
@@ -75,13 +79,51 @@ export type SessionCountAggregateInputType = {
|
|
|
75
79
|
_all?: true;
|
|
76
80
|
};
|
|
77
81
|
export type SessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
82
|
+
/**
|
|
83
|
+
* Filter which Session to aggregate.
|
|
84
|
+
*/
|
|
78
85
|
where?: Prisma.SessionWhereInput;
|
|
86
|
+
/**
|
|
87
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
88
|
+
*
|
|
89
|
+
* Determine the order of Sessions to fetch.
|
|
90
|
+
*/
|
|
79
91
|
orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
|
|
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
|
+
*/
|
|
80
97
|
cursor?: Prisma.SessionWhereUniqueInput;
|
|
98
|
+
/**
|
|
99
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
100
|
+
*
|
|
101
|
+
* Take `±n` Sessions from the position of the cursor.
|
|
102
|
+
*/
|
|
81
103
|
take?: number;
|
|
104
|
+
/**
|
|
105
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
106
|
+
*
|
|
107
|
+
* Skip the first `n` Sessions.
|
|
108
|
+
*/
|
|
82
109
|
skip?: number;
|
|
110
|
+
/**
|
|
111
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
112
|
+
*
|
|
113
|
+
* Count returned Sessions
|
|
114
|
+
**/
|
|
83
115
|
_count?: true | SessionCountAggregateInputType;
|
|
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
|
+
**/
|
|
84
121
|
_min?: SessionMinAggregateInputType;
|
|
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
|
+
**/
|
|
85
127
|
_max?: SessionMaxAggregateInputType;
|
|
86
128
|
};
|
|
87
129
|
export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
|
|
@@ -521,22 +563,290 @@ export interface SessionDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
521
563
|
name: 'Session';
|
|
522
564
|
};
|
|
523
565
|
};
|
|
566
|
+
/**
|
|
567
|
+
* Find zero or one Session that matches the filter.
|
|
568
|
+
* @param {SessionFindUniqueArgs} args - Arguments to find a Session
|
|
569
|
+
* @example
|
|
570
|
+
* // Get one Session
|
|
571
|
+
* const session = await prisma.session.findUnique({
|
|
572
|
+
* where: {
|
|
573
|
+
* // ... provide filter here
|
|
574
|
+
* }
|
|
575
|
+
* })
|
|
576
|
+
*/
|
|
524
577
|
findUnique<T extends SessionFindUniqueArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
578
|
+
/**
|
|
579
|
+
* Find one Session that matches the filter or throw an error with `error.code='P2025'`
|
|
580
|
+
* if no matches were found.
|
|
581
|
+
* @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
|
|
582
|
+
* @example
|
|
583
|
+
* // Get one Session
|
|
584
|
+
* const session = await prisma.session.findUniqueOrThrow({
|
|
585
|
+
* where: {
|
|
586
|
+
* // ... provide filter here
|
|
587
|
+
* }
|
|
588
|
+
* })
|
|
589
|
+
*/
|
|
525
590
|
findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
591
|
+
/**
|
|
592
|
+
* Find the first Session that matches the filter.
|
|
593
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
594
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
595
|
+
* @param {SessionFindFirstArgs} args - Arguments to find a Session
|
|
596
|
+
* @example
|
|
597
|
+
* // Get one Session
|
|
598
|
+
* const session = await prisma.session.findFirst({
|
|
599
|
+
* where: {
|
|
600
|
+
* // ... provide filter here
|
|
601
|
+
* }
|
|
602
|
+
* })
|
|
603
|
+
*/
|
|
526
604
|
findFirst<T extends SessionFindFirstArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
605
|
+
/**
|
|
606
|
+
* Find the first Session that matches the filter or
|
|
607
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
608
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
609
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
610
|
+
* @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
|
|
611
|
+
* @example
|
|
612
|
+
* // Get one Session
|
|
613
|
+
* const session = await prisma.session.findFirstOrThrow({
|
|
614
|
+
* where: {
|
|
615
|
+
* // ... provide filter here
|
|
616
|
+
* }
|
|
617
|
+
* })
|
|
618
|
+
*/
|
|
527
619
|
findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
620
|
+
/**
|
|
621
|
+
* Find zero or more Sessions that matches the filter.
|
|
622
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
623
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
624
|
+
* @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
625
|
+
* @example
|
|
626
|
+
* // Get all Sessions
|
|
627
|
+
* const sessions = await prisma.session.findMany()
|
|
628
|
+
*
|
|
629
|
+
* // Get first 10 Sessions
|
|
630
|
+
* const sessions = await prisma.session.findMany({ take: 10 })
|
|
631
|
+
*
|
|
632
|
+
* // Only select the `id`
|
|
633
|
+
* const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
|
|
634
|
+
*
|
|
635
|
+
*/
|
|
528
636
|
findMany<T extends SessionFindManyArgs>(args?: Prisma.SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
637
|
+
/**
|
|
638
|
+
* Create a Session.
|
|
639
|
+
* @param {SessionCreateArgs} args - Arguments to create a Session.
|
|
640
|
+
* @example
|
|
641
|
+
* // Create one Session
|
|
642
|
+
* const Session = await prisma.session.create({
|
|
643
|
+
* data: {
|
|
644
|
+
* // ... data to create a Session
|
|
645
|
+
* }
|
|
646
|
+
* })
|
|
647
|
+
*
|
|
648
|
+
*/
|
|
529
649
|
create<T extends SessionCreateArgs>(args: Prisma.SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
650
|
+
/**
|
|
651
|
+
* Create many Sessions.
|
|
652
|
+
* @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
|
|
653
|
+
* @example
|
|
654
|
+
* // Create many Sessions
|
|
655
|
+
* const session = await prisma.session.createMany({
|
|
656
|
+
* data: [
|
|
657
|
+
* // ... provide data here
|
|
658
|
+
* ]
|
|
659
|
+
* })
|
|
660
|
+
*
|
|
661
|
+
*/
|
|
530
662
|
createMany<T extends SessionCreateManyArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
663
|
+
/**
|
|
664
|
+
* Create many Sessions and returns the data saved in the database.
|
|
665
|
+
* @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
|
|
666
|
+
* @example
|
|
667
|
+
* // Create many Sessions
|
|
668
|
+
* const session = await prisma.session.createManyAndReturn({
|
|
669
|
+
* data: [
|
|
670
|
+
* // ... provide data here
|
|
671
|
+
* ]
|
|
672
|
+
* })
|
|
673
|
+
*
|
|
674
|
+
* // Create many Sessions and only return the `id`
|
|
675
|
+
* const sessionWithIdOnly = await prisma.session.createManyAndReturn({
|
|
676
|
+
* select: { id: true },
|
|
677
|
+
* data: [
|
|
678
|
+
* // ... provide data here
|
|
679
|
+
* ]
|
|
680
|
+
* })
|
|
681
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
682
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
683
|
+
*
|
|
684
|
+
*/
|
|
531
685
|
createManyAndReturn<T extends SessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
686
|
+
/**
|
|
687
|
+
* Delete a Session.
|
|
688
|
+
* @param {SessionDeleteArgs} args - Arguments to delete one Session.
|
|
689
|
+
* @example
|
|
690
|
+
* // Delete one Session
|
|
691
|
+
* const Session = await prisma.session.delete({
|
|
692
|
+
* where: {
|
|
693
|
+
* // ... filter to delete one Session
|
|
694
|
+
* }
|
|
695
|
+
* })
|
|
696
|
+
*
|
|
697
|
+
*/
|
|
532
698
|
delete<T extends SessionDeleteArgs>(args: Prisma.SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
699
|
+
/**
|
|
700
|
+
* Update one Session.
|
|
701
|
+
* @param {SessionUpdateArgs} args - Arguments to update one Session.
|
|
702
|
+
* @example
|
|
703
|
+
* // Update one Session
|
|
704
|
+
* const session = await prisma.session.update({
|
|
705
|
+
* where: {
|
|
706
|
+
* // ... provide filter here
|
|
707
|
+
* },
|
|
708
|
+
* data: {
|
|
709
|
+
* // ... provide data here
|
|
710
|
+
* }
|
|
711
|
+
* })
|
|
712
|
+
*
|
|
713
|
+
*/
|
|
533
714
|
update<T extends SessionUpdateArgs>(args: Prisma.SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
715
|
+
/**
|
|
716
|
+
* Delete zero or more Sessions.
|
|
717
|
+
* @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
|
|
718
|
+
* @example
|
|
719
|
+
* // Delete a few Sessions
|
|
720
|
+
* const { count } = await prisma.session.deleteMany({
|
|
721
|
+
* where: {
|
|
722
|
+
* // ... provide filter here
|
|
723
|
+
* }
|
|
724
|
+
* })
|
|
725
|
+
*
|
|
726
|
+
*/
|
|
534
727
|
deleteMany<T extends SessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
728
|
+
/**
|
|
729
|
+
* Update zero or more Sessions.
|
|
730
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
731
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
732
|
+
* @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
733
|
+
* @example
|
|
734
|
+
* // Update many Sessions
|
|
735
|
+
* const session = await prisma.session.updateMany({
|
|
736
|
+
* where: {
|
|
737
|
+
* // ... provide filter here
|
|
738
|
+
* },
|
|
739
|
+
* data: {
|
|
740
|
+
* // ... provide data here
|
|
741
|
+
* }
|
|
742
|
+
* })
|
|
743
|
+
*
|
|
744
|
+
*/
|
|
535
745
|
updateMany<T extends SessionUpdateManyArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
746
|
+
/**
|
|
747
|
+
* Update zero or more Sessions and returns the data updated in the database.
|
|
748
|
+
* @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
|
|
749
|
+
* @example
|
|
750
|
+
* // Update many Sessions
|
|
751
|
+
* const session = await prisma.session.updateManyAndReturn({
|
|
752
|
+
* where: {
|
|
753
|
+
* // ... provide filter here
|
|
754
|
+
* },
|
|
755
|
+
* data: [
|
|
756
|
+
* // ... provide data here
|
|
757
|
+
* ]
|
|
758
|
+
* })
|
|
759
|
+
*
|
|
760
|
+
* // Update zero or more Sessions and only return the `id`
|
|
761
|
+
* const sessionWithIdOnly = await prisma.session.updateManyAndReturn({
|
|
762
|
+
* select: { id: true },
|
|
763
|
+
* where: {
|
|
764
|
+
* // ... provide filter here
|
|
765
|
+
* },
|
|
766
|
+
* data: [
|
|
767
|
+
* // ... provide data here
|
|
768
|
+
* ]
|
|
769
|
+
* })
|
|
770
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
771
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
772
|
+
*
|
|
773
|
+
*/
|
|
536
774
|
updateManyAndReturn<T extends SessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
775
|
+
/**
|
|
776
|
+
* Create or update one Session.
|
|
777
|
+
* @param {SessionUpsertArgs} args - Arguments to update or create a Session.
|
|
778
|
+
* @example
|
|
779
|
+
* // Update or create a Session
|
|
780
|
+
* const session = await prisma.session.upsert({
|
|
781
|
+
* create: {
|
|
782
|
+
* // ... data to create a Session
|
|
783
|
+
* },
|
|
784
|
+
* update: {
|
|
785
|
+
* // ... in case it already exists, update
|
|
786
|
+
* },
|
|
787
|
+
* where: {
|
|
788
|
+
* // ... the filter for the Session we want to update
|
|
789
|
+
* }
|
|
790
|
+
* })
|
|
791
|
+
*/
|
|
537
792
|
upsert<T extends SessionUpsertArgs>(args: Prisma.SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
793
|
+
/**
|
|
794
|
+
* Count the number of Sessions.
|
|
795
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
796
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
797
|
+
* @param {SessionCountArgs} args - Arguments to filter Sessions to count.
|
|
798
|
+
* @example
|
|
799
|
+
* // Count the number of Sessions
|
|
800
|
+
* const count = await prisma.session.count({
|
|
801
|
+
* where: {
|
|
802
|
+
* // ... the filter for the Sessions we want to count
|
|
803
|
+
* }
|
|
804
|
+
* })
|
|
805
|
+
**/
|
|
538
806
|
count<T extends SessionCountArgs>(args?: Prisma.Subset<T, SessionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], SessionCountAggregateOutputType> : number>;
|
|
807
|
+
/**
|
|
808
|
+
* Allows you to perform aggregations operations on a Session.
|
|
809
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
810
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
811
|
+
* @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
812
|
+
* @example
|
|
813
|
+
* // Ordered by age ascending
|
|
814
|
+
* // Where email contains prisma.io
|
|
815
|
+
* // Limited to the 10 users
|
|
816
|
+
* const aggregations = await prisma.user.aggregate({
|
|
817
|
+
* _avg: {
|
|
818
|
+
* age: true,
|
|
819
|
+
* },
|
|
820
|
+
* where: {
|
|
821
|
+
* email: {
|
|
822
|
+
* contains: "prisma.io",
|
|
823
|
+
* },
|
|
824
|
+
* },
|
|
825
|
+
* orderBy: {
|
|
826
|
+
* age: "asc",
|
|
827
|
+
* },
|
|
828
|
+
* take: 10,
|
|
829
|
+
* })
|
|
830
|
+
**/
|
|
539
831
|
aggregate<T extends SessionAggregateArgs>(args: Prisma.Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>;
|
|
832
|
+
/**
|
|
833
|
+
* Group by Session.
|
|
834
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
835
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
836
|
+
* @param {SessionGroupByArgs} args - Group by arguments.
|
|
837
|
+
* @example
|
|
838
|
+
* // Group by city, order by createdAt, get count
|
|
839
|
+
* const result = await prisma.user.groupBy({
|
|
840
|
+
* by: ['city', 'createdAt'],
|
|
841
|
+
* orderBy: {
|
|
842
|
+
* createdAt: true
|
|
843
|
+
* },
|
|
844
|
+
* _count: {
|
|
845
|
+
* _all: true
|
|
846
|
+
* },
|
|
847
|
+
* })
|
|
848
|
+
*
|
|
849
|
+
**/
|
|
540
850
|
groupBy<T extends SessionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
541
851
|
orderBy: SessionGroupByArgs['orderBy'];
|
|
542
852
|
} : {
|
|
@@ -555,15 +865,44 @@ export interface SessionDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
555
865
|
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
556
866
|
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
557
867
|
}[OrderFields]>(args: Prisma.SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
868
|
+
/**
|
|
869
|
+
* Fields of the Session model
|
|
870
|
+
*/
|
|
558
871
|
readonly fields: SessionFieldRefs;
|
|
559
872
|
}
|
|
873
|
+
/**
|
|
874
|
+
* The delegate class that acts as a "Promise-like" for Session.
|
|
875
|
+
* Why is this prefixed with `Prisma__`?
|
|
876
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
877
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
878
|
+
*/
|
|
560
879
|
export interface Prisma__SessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
561
880
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
562
881
|
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
882
|
+
/**
|
|
883
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
884
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
885
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
886
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
887
|
+
*/
|
|
563
888
|
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>;
|
|
889
|
+
/**
|
|
890
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
891
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
892
|
+
* @returns A Promise for the completion of the callback.
|
|
893
|
+
*/
|
|
564
894
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
895
|
+
/**
|
|
896
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
897
|
+
* resolved value cannot be modified from the callback.
|
|
898
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
899
|
+
* @returns A Promise for the completion of the callback.
|
|
900
|
+
*/
|
|
565
901
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
566
902
|
}
|
|
903
|
+
/**
|
|
904
|
+
* Fields of the Session model
|
|
905
|
+
*/
|
|
567
906
|
export interface SessionFieldRefs {
|
|
568
907
|
readonly id: Prisma.FieldRef<"Session", 'String'>;
|
|
569
908
|
readonly expiresAt: Prisma.FieldRef<"Session", 'DateTime'>;
|
|
@@ -575,109 +914,403 @@ export interface SessionFieldRefs {
|
|
|
575
914
|
readonly userId: Prisma.FieldRef<"Session", 'String'>;
|
|
576
915
|
readonly activeOrganizationId: Prisma.FieldRef<"Session", 'String'>;
|
|
577
916
|
}
|
|
917
|
+
/**
|
|
918
|
+
* Session findUnique
|
|
919
|
+
*/
|
|
578
920
|
export type SessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
921
|
+
/**
|
|
922
|
+
* Select specific fields to fetch from the Session
|
|
923
|
+
*/
|
|
579
924
|
select?: Prisma.SessionSelect<ExtArgs> | null;
|
|
925
|
+
/**
|
|
926
|
+
* Omit specific fields from the Session
|
|
927
|
+
*/
|
|
580
928
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
929
|
+
/**
|
|
930
|
+
* Choose, which related nodes to fetch as well
|
|
931
|
+
*/
|
|
581
932
|
include?: Prisma.SessionInclude<ExtArgs> | null;
|
|
933
|
+
/**
|
|
934
|
+
* Filter, which Session to fetch.
|
|
935
|
+
*/
|
|
582
936
|
where: Prisma.SessionWhereUniqueInput;
|
|
583
937
|
};
|
|
938
|
+
/**
|
|
939
|
+
* Session findUniqueOrThrow
|
|
940
|
+
*/
|
|
584
941
|
export type SessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
942
|
+
/**
|
|
943
|
+
* Select specific fields to fetch from the Session
|
|
944
|
+
*/
|
|
585
945
|
select?: Prisma.SessionSelect<ExtArgs> | null;
|
|
946
|
+
/**
|
|
947
|
+
* Omit specific fields from the Session
|
|
948
|
+
*/
|
|
586
949
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
950
|
+
/**
|
|
951
|
+
* Choose, which related nodes to fetch as well
|
|
952
|
+
*/
|
|
587
953
|
include?: Prisma.SessionInclude<ExtArgs> | null;
|
|
954
|
+
/**
|
|
955
|
+
* Filter, which Session to fetch.
|
|
956
|
+
*/
|
|
588
957
|
where: Prisma.SessionWhereUniqueInput;
|
|
589
958
|
};
|
|
959
|
+
/**
|
|
960
|
+
* Session findFirst
|
|
961
|
+
*/
|
|
590
962
|
export type SessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
963
|
+
/**
|
|
964
|
+
* Select specific fields to fetch from the Session
|
|
965
|
+
*/
|
|
591
966
|
select?: Prisma.SessionSelect<ExtArgs> | null;
|
|
967
|
+
/**
|
|
968
|
+
* Omit specific fields from the Session
|
|
969
|
+
*/
|
|
592
970
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
971
|
+
/**
|
|
972
|
+
* Choose, which related nodes to fetch as well
|
|
973
|
+
*/
|
|
593
974
|
include?: Prisma.SessionInclude<ExtArgs> | null;
|
|
975
|
+
/**
|
|
976
|
+
* Filter, which Session to fetch.
|
|
977
|
+
*/
|
|
594
978
|
where?: Prisma.SessionWhereInput;
|
|
979
|
+
/**
|
|
980
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
981
|
+
*
|
|
982
|
+
* Determine the order of Sessions to fetch.
|
|
983
|
+
*/
|
|
595
984
|
orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
|
|
985
|
+
/**
|
|
986
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
987
|
+
*
|
|
988
|
+
* Sets the position for searching for Sessions.
|
|
989
|
+
*/
|
|
596
990
|
cursor?: Prisma.SessionWhereUniqueInput;
|
|
991
|
+
/**
|
|
992
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
993
|
+
*
|
|
994
|
+
* Take `±n` Sessions from the position of the cursor.
|
|
995
|
+
*/
|
|
597
996
|
take?: number;
|
|
997
|
+
/**
|
|
998
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
999
|
+
*
|
|
1000
|
+
* Skip the first `n` Sessions.
|
|
1001
|
+
*/
|
|
598
1002
|
skip?: number;
|
|
1003
|
+
/**
|
|
1004
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1005
|
+
*
|
|
1006
|
+
* Filter by unique combinations of Sessions.
|
|
1007
|
+
*/
|
|
599
1008
|
distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
|
|
600
1009
|
};
|
|
1010
|
+
/**
|
|
1011
|
+
* Session findFirstOrThrow
|
|
1012
|
+
*/
|
|
601
1013
|
export type SessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1014
|
+
/**
|
|
1015
|
+
* Select specific fields to fetch from the Session
|
|
1016
|
+
*/
|
|
602
1017
|
select?: Prisma.SessionSelect<ExtArgs> | null;
|
|
1018
|
+
/**
|
|
1019
|
+
* Omit specific fields from the Session
|
|
1020
|
+
*/
|
|
603
1021
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
1022
|
+
/**
|
|
1023
|
+
* Choose, which related nodes to fetch as well
|
|
1024
|
+
*/
|
|
604
1025
|
include?: Prisma.SessionInclude<ExtArgs> | null;
|
|
1026
|
+
/**
|
|
1027
|
+
* Filter, which Session to fetch.
|
|
1028
|
+
*/
|
|
605
1029
|
where?: Prisma.SessionWhereInput;
|
|
1030
|
+
/**
|
|
1031
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1032
|
+
*
|
|
1033
|
+
* Determine the order of Sessions to fetch.
|
|
1034
|
+
*/
|
|
606
1035
|
orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
|
|
1036
|
+
/**
|
|
1037
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1038
|
+
*
|
|
1039
|
+
* Sets the position for searching for Sessions.
|
|
1040
|
+
*/
|
|
607
1041
|
cursor?: Prisma.SessionWhereUniqueInput;
|
|
1042
|
+
/**
|
|
1043
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1044
|
+
*
|
|
1045
|
+
* Take `±n` Sessions from the position of the cursor.
|
|
1046
|
+
*/
|
|
608
1047
|
take?: number;
|
|
1048
|
+
/**
|
|
1049
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1050
|
+
*
|
|
1051
|
+
* Skip the first `n` Sessions.
|
|
1052
|
+
*/
|
|
609
1053
|
skip?: number;
|
|
1054
|
+
/**
|
|
1055
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1056
|
+
*
|
|
1057
|
+
* Filter by unique combinations of Sessions.
|
|
1058
|
+
*/
|
|
610
1059
|
distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
|
|
611
1060
|
};
|
|
1061
|
+
/**
|
|
1062
|
+
* Session findMany
|
|
1063
|
+
*/
|
|
612
1064
|
export type SessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1065
|
+
/**
|
|
1066
|
+
* Select specific fields to fetch from the Session
|
|
1067
|
+
*/
|
|
613
1068
|
select?: Prisma.SessionSelect<ExtArgs> | null;
|
|
1069
|
+
/**
|
|
1070
|
+
* Omit specific fields from the Session
|
|
1071
|
+
*/
|
|
614
1072
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
1073
|
+
/**
|
|
1074
|
+
* Choose, which related nodes to fetch as well
|
|
1075
|
+
*/
|
|
615
1076
|
include?: Prisma.SessionInclude<ExtArgs> | null;
|
|
1077
|
+
/**
|
|
1078
|
+
* Filter, which Sessions to fetch.
|
|
1079
|
+
*/
|
|
616
1080
|
where?: Prisma.SessionWhereInput;
|
|
1081
|
+
/**
|
|
1082
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1083
|
+
*
|
|
1084
|
+
* Determine the order of Sessions to fetch.
|
|
1085
|
+
*/
|
|
617
1086
|
orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
|
|
1087
|
+
/**
|
|
1088
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1089
|
+
*
|
|
1090
|
+
* Sets the position for listing Sessions.
|
|
1091
|
+
*/
|
|
618
1092
|
cursor?: Prisma.SessionWhereUniqueInput;
|
|
1093
|
+
/**
|
|
1094
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1095
|
+
*
|
|
1096
|
+
* Take `±n` Sessions from the position of the cursor.
|
|
1097
|
+
*/
|
|
619
1098
|
take?: number;
|
|
1099
|
+
/**
|
|
1100
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1101
|
+
*
|
|
1102
|
+
* Skip the first `n` Sessions.
|
|
1103
|
+
*/
|
|
620
1104
|
skip?: number;
|
|
1105
|
+
/**
|
|
1106
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1107
|
+
*
|
|
1108
|
+
* Filter by unique combinations of Sessions.
|
|
1109
|
+
*/
|
|
621
1110
|
distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
|
|
622
1111
|
};
|
|
1112
|
+
/**
|
|
1113
|
+
* Session create
|
|
1114
|
+
*/
|
|
623
1115
|
export type SessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1116
|
+
/**
|
|
1117
|
+
* Select specific fields to fetch from the Session
|
|
1118
|
+
*/
|
|
624
1119
|
select?: Prisma.SessionSelect<ExtArgs> | null;
|
|
1120
|
+
/**
|
|
1121
|
+
* Omit specific fields from the Session
|
|
1122
|
+
*/
|
|
625
1123
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
1124
|
+
/**
|
|
1125
|
+
* Choose, which related nodes to fetch as well
|
|
1126
|
+
*/
|
|
626
1127
|
include?: Prisma.SessionInclude<ExtArgs> | null;
|
|
1128
|
+
/**
|
|
1129
|
+
* The data needed to create a Session.
|
|
1130
|
+
*/
|
|
627
1131
|
data: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>;
|
|
628
1132
|
};
|
|
1133
|
+
/**
|
|
1134
|
+
* Session createMany
|
|
1135
|
+
*/
|
|
629
1136
|
export type SessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1137
|
+
/**
|
|
1138
|
+
* The data used to create many Sessions.
|
|
1139
|
+
*/
|
|
630
1140
|
data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[];
|
|
631
1141
|
skipDuplicates?: boolean;
|
|
632
1142
|
};
|
|
1143
|
+
/**
|
|
1144
|
+
* Session createManyAndReturn
|
|
1145
|
+
*/
|
|
633
1146
|
export type SessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1147
|
+
/**
|
|
1148
|
+
* Select specific fields to fetch from the Session
|
|
1149
|
+
*/
|
|
634
1150
|
select?: Prisma.SessionSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1151
|
+
/**
|
|
1152
|
+
* Omit specific fields from the Session
|
|
1153
|
+
*/
|
|
635
1154
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
1155
|
+
/**
|
|
1156
|
+
* The data used to create many Sessions.
|
|
1157
|
+
*/
|
|
636
1158
|
data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[];
|
|
637
1159
|
skipDuplicates?: boolean;
|
|
1160
|
+
/**
|
|
1161
|
+
* Choose, which related nodes to fetch as well
|
|
1162
|
+
*/
|
|
638
1163
|
include?: Prisma.SessionIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
639
1164
|
};
|
|
1165
|
+
/**
|
|
1166
|
+
* Session update
|
|
1167
|
+
*/
|
|
640
1168
|
export type SessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1169
|
+
/**
|
|
1170
|
+
* Select specific fields to fetch from the Session
|
|
1171
|
+
*/
|
|
641
1172
|
select?: Prisma.SessionSelect<ExtArgs> | null;
|
|
1173
|
+
/**
|
|
1174
|
+
* Omit specific fields from the Session
|
|
1175
|
+
*/
|
|
642
1176
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
1177
|
+
/**
|
|
1178
|
+
* Choose, which related nodes to fetch as well
|
|
1179
|
+
*/
|
|
643
1180
|
include?: Prisma.SessionInclude<ExtArgs> | null;
|
|
1181
|
+
/**
|
|
1182
|
+
* The data needed to update a Session.
|
|
1183
|
+
*/
|
|
644
1184
|
data: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>;
|
|
1185
|
+
/**
|
|
1186
|
+
* Choose, which Session to update.
|
|
1187
|
+
*/
|
|
645
1188
|
where: Prisma.SessionWhereUniqueInput;
|
|
646
1189
|
};
|
|
1190
|
+
/**
|
|
1191
|
+
* Session updateMany
|
|
1192
|
+
*/
|
|
647
1193
|
export type SessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1194
|
+
/**
|
|
1195
|
+
* The data used to update Sessions.
|
|
1196
|
+
*/
|
|
648
1197
|
data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>;
|
|
1198
|
+
/**
|
|
1199
|
+
* Filter which Sessions to update
|
|
1200
|
+
*/
|
|
649
1201
|
where?: Prisma.SessionWhereInput;
|
|
1202
|
+
/**
|
|
1203
|
+
* Limit how many Sessions to update.
|
|
1204
|
+
*/
|
|
650
1205
|
limit?: number;
|
|
651
1206
|
};
|
|
1207
|
+
/**
|
|
1208
|
+
* Session updateManyAndReturn
|
|
1209
|
+
*/
|
|
652
1210
|
export type SessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1211
|
+
/**
|
|
1212
|
+
* Select specific fields to fetch from the Session
|
|
1213
|
+
*/
|
|
653
1214
|
select?: Prisma.SessionSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1215
|
+
/**
|
|
1216
|
+
* Omit specific fields from the Session
|
|
1217
|
+
*/
|
|
654
1218
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
1219
|
+
/**
|
|
1220
|
+
* The data used to update Sessions.
|
|
1221
|
+
*/
|
|
655
1222
|
data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>;
|
|
1223
|
+
/**
|
|
1224
|
+
* Filter which Sessions to update
|
|
1225
|
+
*/
|
|
656
1226
|
where?: Prisma.SessionWhereInput;
|
|
1227
|
+
/**
|
|
1228
|
+
* Limit how many Sessions to update.
|
|
1229
|
+
*/
|
|
657
1230
|
limit?: number;
|
|
1231
|
+
/**
|
|
1232
|
+
* Choose, which related nodes to fetch as well
|
|
1233
|
+
*/
|
|
658
1234
|
include?: Prisma.SessionIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
659
1235
|
};
|
|
1236
|
+
/**
|
|
1237
|
+
* Session upsert
|
|
1238
|
+
*/
|
|
660
1239
|
export type SessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1240
|
+
/**
|
|
1241
|
+
* Select specific fields to fetch from the Session
|
|
1242
|
+
*/
|
|
661
1243
|
select?: Prisma.SessionSelect<ExtArgs> | null;
|
|
1244
|
+
/**
|
|
1245
|
+
* Omit specific fields from the Session
|
|
1246
|
+
*/
|
|
662
1247
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
1248
|
+
/**
|
|
1249
|
+
* Choose, which related nodes to fetch as well
|
|
1250
|
+
*/
|
|
663
1251
|
include?: Prisma.SessionInclude<ExtArgs> | null;
|
|
1252
|
+
/**
|
|
1253
|
+
* The filter to search for the Session to update in case it exists.
|
|
1254
|
+
*/
|
|
664
1255
|
where: Prisma.SessionWhereUniqueInput;
|
|
1256
|
+
/**
|
|
1257
|
+
* In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
|
|
1258
|
+
*/
|
|
665
1259
|
create: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>;
|
|
1260
|
+
/**
|
|
1261
|
+
* In case the Session was found with the provided `where` argument, update it with this data.
|
|
1262
|
+
*/
|
|
666
1263
|
update: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>;
|
|
667
1264
|
};
|
|
1265
|
+
/**
|
|
1266
|
+
* Session delete
|
|
1267
|
+
*/
|
|
668
1268
|
export type SessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1269
|
+
/**
|
|
1270
|
+
* Select specific fields to fetch from the Session
|
|
1271
|
+
*/
|
|
669
1272
|
select?: Prisma.SessionSelect<ExtArgs> | null;
|
|
1273
|
+
/**
|
|
1274
|
+
* Omit specific fields from the Session
|
|
1275
|
+
*/
|
|
670
1276
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* Choose, which related nodes to fetch as well
|
|
1279
|
+
*/
|
|
671
1280
|
include?: Prisma.SessionInclude<ExtArgs> | null;
|
|
1281
|
+
/**
|
|
1282
|
+
* Filter which Session to delete.
|
|
1283
|
+
*/
|
|
672
1284
|
where: Prisma.SessionWhereUniqueInput;
|
|
673
1285
|
};
|
|
1286
|
+
/**
|
|
1287
|
+
* Session deleteMany
|
|
1288
|
+
*/
|
|
674
1289
|
export type SessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1290
|
+
/**
|
|
1291
|
+
* Filter which Sessions to delete
|
|
1292
|
+
*/
|
|
675
1293
|
where?: Prisma.SessionWhereInput;
|
|
1294
|
+
/**
|
|
1295
|
+
* Limit how many Sessions to delete.
|
|
1296
|
+
*/
|
|
676
1297
|
limit?: number;
|
|
677
1298
|
};
|
|
1299
|
+
/**
|
|
1300
|
+
* Session without action
|
|
1301
|
+
*/
|
|
678
1302
|
export type SessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1303
|
+
/**
|
|
1304
|
+
* Select specific fields to fetch from the Session
|
|
1305
|
+
*/
|
|
679
1306
|
select?: Prisma.SessionSelect<ExtArgs> | null;
|
|
1307
|
+
/**
|
|
1308
|
+
* Omit specific fields from the Session
|
|
1309
|
+
*/
|
|
680
1310
|
omit?: Prisma.SessionOmit<ExtArgs> | null;
|
|
1311
|
+
/**
|
|
1312
|
+
* Choose, which related nodes to fetch as well
|
|
1313
|
+
*/
|
|
681
1314
|
include?: Prisma.SessionInclude<ExtArgs> | null;
|
|
682
1315
|
};
|
|
683
1316
|
export {};
|