@shophost/rest-api 0.1.0
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/LICENSE +17 -0
- package/README.md +69 -0
- package/global.d.ts +1 -0
- package/package.json +53 -0
- package/schemas.d.ts +1 -0
- package/schemas.js +2 -0
- package/schemas.ts +1 -0
- package/src/contract.d.ts +3853 -0
- package/src/contract.js +6 -0
- package/src/contract.js.map +1 -0
- package/src/contracts/cart.contract.d.ts +536 -0
- package/src/contracts/cart.contract.js +29 -0
- package/src/contracts/cart.contract.js.map +1 -0
- package/src/contracts/customers.contract.d.ts +903 -0
- package/src/contracts/customers.contract.js +119 -0
- package/src/contracts/customers.contract.js.map +1 -0
- package/src/contracts/files.contract.d.ts +152 -0
- package/src/contracts/files.contract.js +29 -0
- package/src/contracts/files.contract.js.map +1 -0
- package/src/contracts/health.contract.d.ts +38 -0
- package/src/contracts/health.contract.js +25 -0
- package/src/contracts/health.contract.js.map +1 -0
- package/src/contracts/index.d.ts +15466 -0
- package/src/contracts/index.js +32 -0
- package/src/contracts/index.js.map +1 -0
- package/src/contracts/location.contract.d.ts +127 -0
- package/src/contracts/location.contract.js +40 -0
- package/src/contracts/location.contract.js.map +1 -0
- package/src/contracts/manufacturers.contract.d.ts +931 -0
- package/src/contracts/manufacturers.contract.js +85 -0
- package/src/contracts/manufacturers.contract.js.map +1 -0
- package/src/contracts/orders.contract.d.ts +3910 -0
- package/src/contracts/orders.contract.js +92 -0
- package/src/contracts/orders.contract.js.map +1 -0
- package/src/contracts/organizations.contract.d.ts +2234 -0
- package/src/contracts/organizations.contract.js +71 -0
- package/src/contracts/organizations.contract.js.map +1 -0
- package/src/contracts/payment.contract.d.ts +64 -0
- package/src/contracts/payment.contract.js +20 -0
- package/src/contracts/payment.contract.js.map +1 -0
- package/src/contracts/product-categories.contract.d.ts +1172 -0
- package/src/contracts/product-categories.contract.js +103 -0
- package/src/contracts/product-categories.contract.js.map +1 -0
- package/src/contracts/products.contract.d.ts +3976 -0
- package/src/contracts/products.contract.js +128 -0
- package/src/contracts/products.contract.js.map +1 -0
- package/src/contracts/reservation.contract.d.ts +675 -0
- package/src/contracts/reservation.contract.js +141 -0
- package/src/contracts/reservation.contract.js.map +1 -0
- package/src/contracts/shipping-methods.contract.d.ts +1276 -0
- package/src/contracts/shipping-methods.contract.js +118 -0
- package/src/contracts/shipping-methods.contract.js.map +1 -0
- package/src/contracts/shipping.contract.d.ts +319 -0
- package/src/contracts/shipping.contract.js +42 -0
- package/src/contracts/shipping.contract.js.map +1 -0
- package/src/contracts/webhook.contract.d.ts +66 -0
- package/src/contracts/webhook.contract.js +28 -0
- package/src/contracts/webhook.contract.js.map +1 -0
- package/src/db/__generated__/client/client.d.ts +385 -0
- package/src/db/__generated__/client/client.js +44 -0
- package/src/db/__generated__/client/client.js.map +1 -0
- package/src/db/__generated__/client/commonInputTypes.d.ts +816 -0
- package/src/db/__generated__/client/commonInputTypes.js +10 -0
- package/src/db/__generated__/client/commonInputTypes.js.map +1 -0
- package/src/db/__generated__/client/enums.d.ts +204 -0
- package/src/db/__generated__/client/enums.js +199 -0
- package/src/db/__generated__/client/enums.js.map +1 -0
- package/src/db/__generated__/client/index.d.ts +1 -0
- package/src/db/__generated__/client/index.js +5 -0
- package/src/db/__generated__/client/index.js.map +1 -0
- package/src/db/__generated__/client/internal/class.d.ts +414 -0
- package/src/db/__generated__/client/internal/class.js +76 -0
- package/src/db/__generated__/client/internal/class.js.map +1 -0
- package/src/db/__generated__/client/internal/prismaNamespace.d.ts +3474 -0
- package/src/db/__generated__/client/internal/prismaNamespace.js +543 -0
- package/src/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
- package/src/db/__generated__/client/models/Account.d.ts +1459 -0
- package/src/db/__generated__/client/models/Account.js +2 -0
- package/src/db/__generated__/client/models/Account.js.map +1 -0
- package/src/db/__generated__/client/models/Address.d.ts +2337 -0
- package/src/db/__generated__/client/models/Address.js +2 -0
- package/src/db/__generated__/client/models/Address.js.map +1 -0
- package/src/db/__generated__/client/models/Campaign.d.ts +1469 -0
- package/src/db/__generated__/client/models/Campaign.js +2 -0
- package/src/db/__generated__/client/models/Campaign.js.map +1 -0
- package/src/db/__generated__/client/models/ClosingTimes.d.ts +1227 -0
- package/src/db/__generated__/client/models/ClosingTimes.js +2 -0
- package/src/db/__generated__/client/models/ClosingTimes.js.map +1 -0
- package/src/db/__generated__/client/models/File.d.ts +2670 -0
- package/src/db/__generated__/client/models/File.js +2 -0
- package/src/db/__generated__/client/models/File.js.map +1 -0
- package/src/db/__generated__/client/models/Invitation.d.ts +1363 -0
- package/src/db/__generated__/client/models/Invitation.js +2 -0
- package/src/db/__generated__/client/models/Invitation.js.map +1 -0
- package/src/db/__generated__/client/models/LegalEntity.d.ts +1572 -0
- package/src/db/__generated__/client/models/LegalEntity.js +2 -0
- package/src/db/__generated__/client/models/LegalEntity.js.map +1 -0
- package/src/db/__generated__/client/models/Manufacturer.d.ts +1746 -0
- package/src/db/__generated__/client/models/Manufacturer.js +2 -0
- package/src/db/__generated__/client/models/Manufacturer.js.map +1 -0
- package/src/db/__generated__/client/models/ManufacturerTranslation.d.ts +1286 -0
- package/src/db/__generated__/client/models/ManufacturerTranslation.js +2 -0
- package/src/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
- package/src/db/__generated__/client/models/Member.d.ts +1281 -0
- package/src/db/__generated__/client/models/Member.js +2 -0
- package/src/db/__generated__/client/models/Member.js.map +1 -0
- package/src/db/__generated__/client/models/Modifier.d.ts +1404 -0
- package/src/db/__generated__/client/models/Modifier.js +2 -0
- package/src/db/__generated__/client/models/Modifier.js.map +1 -0
- package/src/db/__generated__/client/models/ModifierGroup.d.ts +1469 -0
- package/src/db/__generated__/client/models/ModifierGroup.js +2 -0
- package/src/db/__generated__/client/models/ModifierGroup.js.map +1 -0
- package/src/db/__generated__/client/models/ModifierGroupTranslation.d.ts +1181 -0
- package/src/db/__generated__/client/models/ModifierGroupTranslation.js +2 -0
- package/src/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
- package/src/db/__generated__/client/models/OpeningTimes.d.ts +1227 -0
- package/src/db/__generated__/client/models/OpeningTimes.js +2 -0
- package/src/db/__generated__/client/models/OpeningTimes.js.map +1 -0
- package/src/db/__generated__/client/models/Order.d.ts +2820 -0
- package/src/db/__generated__/client/models/Order.js +2 -0
- package/src/db/__generated__/client/models/Order.js.map +1 -0
- package/src/db/__generated__/client/models/OrderItem.d.ts +1755 -0
- package/src/db/__generated__/client/models/OrderItem.js +2 -0
- package/src/db/__generated__/client/models/OrderItem.js.map +1 -0
- package/src/db/__generated__/client/models/OrderItemTranslation.d.ts +1181 -0
- package/src/db/__generated__/client/models/OrderItemTranslation.js +2 -0
- package/src/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
- package/src/db/__generated__/client/models/Organization.d.ts +3996 -0
- package/src/db/__generated__/client/models/Organization.js +2 -0
- package/src/db/__generated__/client/models/Organization.js.map +1 -0
- package/src/db/__generated__/client/models/OrganizationConfiguration.d.ts +1954 -0
- package/src/db/__generated__/client/models/OrganizationConfiguration.js +2 -0
- package/src/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
- package/src/db/__generated__/client/models/Payment.d.ts +1538 -0
- package/src/db/__generated__/client/models/Payment.js +2 -0
- package/src/db/__generated__/client/models/Payment.js.map +1 -0
- package/src/db/__generated__/client/models/PaymentSession.d.ts +1384 -0
- package/src/db/__generated__/client/models/PaymentSession.js +2 -0
- package/src/db/__generated__/client/models/PaymentSession.js.map +1 -0
- package/src/db/__generated__/client/models/Product.d.ts +3136 -0
- package/src/db/__generated__/client/models/Product.js +2 -0
- package/src/db/__generated__/client/models/Product.js.map +1 -0
- package/src/db/__generated__/client/models/ProductCategory.d.ts +1964 -0
- package/src/db/__generated__/client/models/ProductCategory.js +2 -0
- package/src/db/__generated__/client/models/ProductCategory.js.map +1 -0
- package/src/db/__generated__/client/models/ProductCategoryTranslation.d.ts +1321 -0
- package/src/db/__generated__/client/models/ProductCategoryTranslation.js +2 -0
- package/src/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
- package/src/db/__generated__/client/models/ProductSnapshot.d.ts +1389 -0
- package/src/db/__generated__/client/models/ProductSnapshot.js +2 -0
- package/src/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
- package/src/db/__generated__/client/models/ProductTranslation.d.ts +1321 -0
- package/src/db/__generated__/client/models/ProductTranslation.js +2 -0
- package/src/db/__generated__/client/models/ProductTranslation.js.map +1 -0
- package/src/db/__generated__/client/models/Reservation.d.ts +1665 -0
- package/src/db/__generated__/client/models/Reservation.js +2 -0
- package/src/db/__generated__/client/models/Reservation.js.map +1 -0
- package/src/db/__generated__/client/models/Session.d.ts +1316 -0
- package/src/db/__generated__/client/models/Session.js +2 -0
- package/src/db/__generated__/client/models/Session.js.map +1 -0
- package/src/db/__generated__/client/models/ShippingMethod.d.ts +1934 -0
- package/src/db/__generated__/client/models/ShippingMethod.js +2 -0
- package/src/db/__generated__/client/models/ShippingMethod.js.map +1 -0
- package/src/db/__generated__/client/models/ShippingZone.d.ts +1366 -0
- package/src/db/__generated__/client/models/ShippingZone.js +2 -0
- package/src/db/__generated__/client/models/ShippingZone.js.map +1 -0
- package/src/db/__generated__/client/models/User.d.ts +2201 -0
- package/src/db/__generated__/client/models/User.js +2 -0
- package/src/db/__generated__/client/models/User.js.map +1 -0
- package/src/db/__generated__/client/models/Verification.d.ts +1026 -0
- package/src/db/__generated__/client/models/Verification.js +2 -0
- package/src/db/__generated__/client/models/Verification.js.map +1 -0
- package/src/db/__generated__/client/models.d.ts +38 -0
- package/src/db/__generated__/client/models.js +2 -0
- package/src/db/__generated__/client/models.js.map +1 -0
- package/src/db/index.d.ts +1 -0
- package/src/db/index.js +2 -0
- package/src/db/index.js.map +1 -0
- package/src/emails/order-confirmation-email.d.ts +10 -0
- package/src/emails/order-confirmation-email.js +229 -0
- package/src/emails/order-confirmation-email.js.map +1 -0
- package/src/emails/order-notification-email.d.ts +10 -0
- package/src/emails/order-notification-email.js +229 -0
- package/src/emails/order-notification-email.js.map +1 -0
- package/src/emails/reservation-cancellation-email.d.ts +10 -0
- package/src/emails/reservation-cancellation-email.js +82 -0
- package/src/emails/reservation-cancellation-email.js.map +1 -0
- package/src/emails/reservation-confirmation-email.d.ts +10 -0
- package/src/emails/reservation-confirmation-email.js +82 -0
- package/src/emails/reservation-confirmation-email.js.map +1 -0
- package/src/emails/reservation-notification-email.d.ts +11 -0
- package/src/emails/reservation-notification-email.js +93 -0
- package/src/emails/reservation-notification-email.js.map +1 -0
- package/src/exceptions/http-exception.d.ts +6 -0
- package/src/exceptions/http-exception.js +9 -0
- package/src/exceptions/http-exception.js.map +1 -0
- package/src/handlers/webhook.handler.d.ts +8 -0
- package/src/handlers/webhook.handler.js +36 -0
- package/src/handlers/webhook.handler.js.map +1 -0
- package/src/index.d.ts +5 -0
- package/src/index.js +7 -0
- package/src/index.js.map +1 -0
- package/src/integrations/next.d.ts +25 -0
- package/src/integrations/next.js +69 -0
- package/src/integrations/next.js.map +1 -0
- package/src/lib/better-auth.lib.d.ts +10215 -0
- package/src/lib/better-auth.lib.js +96 -0
- package/src/lib/better-auth.lib.js.map +1 -0
- package/src/lib/openapi.lib.d.ts +2 -0
- package/src/lib/openapi.lib.js +25 -0
- package/src/lib/openapi.lib.js.map +1 -0
- package/src/lib/pino.d.ts +1 -0
- package/src/lib/pino.js +5 -0
- package/src/lib/pino.js.map +1 -0
- package/src/lib/prisma.d.ts +819 -0
- package/src/lib/prisma.js +14 -0
- package/src/lib/prisma.js.map +1 -0
- package/src/lib/stripe.d.ts +2 -0
- package/src/lib/stripe.js +8 -0
- package/src/lib/stripe.js.map +1 -0
- package/src/lib/ts-rest.d.ts +2 -0
- package/src/lib/ts-rest.js +3 -0
- package/src/lib/ts-rest.js.map +1 -0
- package/src/routers/cart.router.d.ts +536 -0
- package/src/routers/cart.router.js +20 -0
- package/src/routers/cart.router.js.map +1 -0
- package/src/routers/file.router.d.ts +153 -0
- package/src/routers/file.router.js +28 -0
- package/src/routers/file.router.js.map +1 -0
- package/src/routers/health.router.d.ts +37 -0
- package/src/routers/health.router.js +17 -0
- package/src/routers/health.router.js.map +1 -0
- package/src/routers/index.d.ts +11 -0
- package/src/routers/index.js +12 -0
- package/src/routers/index.js.map +1 -0
- package/src/routers/manufacturer.router.d.ts +931 -0
- package/src/routers/manufacturer.router.js +58 -0
- package/src/routers/manufacturer.router.js.map +1 -0
- package/src/routers/order.router.d.ts +3911 -0
- package/src/routers/order.router.js +60 -0
- package/src/routers/order.router.js.map +1 -0
- package/src/routers/organization.router.d.ts +2234 -0
- package/src/routers/organization.router.js +55 -0
- package/src/routers/organization.router.js.map +1 -0
- package/src/routers/payment.router.d.ts +65 -0
- package/src/routers/payment.router.js +22 -0
- package/src/routers/payment.router.js.map +1 -0
- package/src/routers/places.router.d.ts +132 -0
- package/src/routers/places.router.js +31 -0
- package/src/routers/places.router.js.map +1 -0
- package/src/routers/product-category.router.d.ts +1172 -0
- package/src/routers/product-category.router.js +66 -0
- package/src/routers/product-category.router.js.map +1 -0
- package/src/routers/product.router.d.ts +3976 -0
- package/src/routers/product.router.js +86 -0
- package/src/routers/product.router.js.map +1 -0
- package/src/routers/reservation.router.d.ts +675 -0
- package/src/routers/reservation.router.js +71 -0
- package/src/routers/reservation.router.js.map +1 -0
- package/src/routers/shipping-method.router.d.ts +1276 -0
- package/src/routers/shipping-method.router.js +67 -0
- package/src/routers/shipping-method.router.js.map +1 -0
- package/src/routers/shipping.router.d.ts +320 -0
- package/src/routers/shipping.router.js +38 -0
- package/src/routers/shipping.router.js.map +1 -0
- package/src/routers/webhook.router.d.ts +65 -0
- package/src/routers/webhook.router.js +19 -0
- package/src/routers/webhook.router.js.map +1 -0
- package/src/schemas/address.schema.d.ts +235 -0
- package/src/schemas/address.schema.js +114 -0
- package/src/schemas/address.schema.js.map +1 -0
- package/src/schemas/auth.schema.d.ts +29 -0
- package/src/schemas/auth.schema.js +39 -0
- package/src/schemas/auth.schema.js.map +1 -0
- package/src/schemas/cart.schema.d.ts +446 -0
- package/src/schemas/cart.schema.js +41 -0
- package/src/schemas/cart.schema.js.map +1 -0
- package/src/schemas/currency.schema.d.ts +49 -0
- package/src/schemas/currency.schema.js +120 -0
- package/src/schemas/currency.schema.js.map +1 -0
- package/src/schemas/error.schema.d.ts +11 -0
- package/src/schemas/error.schema.js +14 -0
- package/src/schemas/error.schema.js.map +1 -0
- package/src/schemas/file.schema.d.ts +115 -0
- package/src/schemas/file.schema.js +79 -0
- package/src/schemas/file.schema.js.map +1 -0
- package/src/schemas/fulfilment.schema.d.ts +2 -0
- package/src/schemas/fulfilment.schema.js +5 -0
- package/src/schemas/fulfilment.schema.js.map +1 -0
- package/src/schemas/headers.schema.d.ts +11 -0
- package/src/schemas/headers.schema.js +15 -0
- package/src/schemas/headers.schema.js.map +1 -0
- package/src/schemas/index.d.ts +27 -0
- package/src/schemas/index.js +28 -0
- package/src/schemas/index.js.map +1 -0
- package/src/schemas/legal-entity.schema.d.ts +212 -0
- package/src/schemas/legal-entity.schema.js +85 -0
- package/src/schemas/legal-entity.schema.js.map +1 -0
- package/src/schemas/locales.schema.d.ts +8 -0
- package/src/schemas/locales.schema.js +240 -0
- package/src/schemas/locales.schema.js.map +1 -0
- package/src/schemas/location.schema.d.ts +41 -0
- package/src/schemas/location.schema.js +50 -0
- package/src/schemas/location.schema.js.map +1 -0
- package/src/schemas/manufacturer.schema.d.ts +287 -0
- package/src/schemas/manufacturer.schema.js +127 -0
- package/src/schemas/manufacturer.schema.js.map +1 -0
- package/src/schemas/number.schema.d.ts +3 -0
- package/src/schemas/number.schema.js +29 -0
- package/src/schemas/number.schema.js.map +1 -0
- package/src/schemas/order.schema.d.ts +1046 -0
- package/src/schemas/order.schema.js +160 -0
- package/src/schemas/order.schema.js.map +1 -0
- package/src/schemas/organization-configuration.schema.d.ts +287 -0
- package/src/schemas/organization-configuration.schema.js +117 -0
- package/src/schemas/organization-configuration.schema.js.map +1 -0
- package/src/schemas/organization.schema.d.ts +894 -0
- package/src/schemas/organization.schema.js +66 -0
- package/src/schemas/organization.schema.js.map +1 -0
- package/src/schemas/pagination.schema.d.ts +51 -0
- package/src/schemas/pagination.schema.js +54 -0
- package/src/schemas/pagination.schema.js.map +1 -0
- package/src/schemas/params.schema.d.ts +19 -0
- package/src/schemas/params.schema.js +22 -0
- package/src/schemas/params.schema.js.map +1 -0
- package/src/schemas/payment.schema.d.ts +54 -0
- package/src/schemas/payment.schema.js +48 -0
- package/src/schemas/payment.schema.js.map +1 -0
- package/src/schemas/product-category.schema.d.ts +352 -0
- package/src/schemas/product-category.schema.js +87 -0
- package/src/schemas/product-category.schema.js.map +1 -0
- package/src/schemas/product-modifier.schema.d.ts +280 -0
- package/src/schemas/product-modifier.schema.js +86 -0
- package/src/schemas/product-modifier.schema.js.map +1 -0
- package/src/schemas/product.schema.d.ts +1405 -0
- package/src/schemas/product.schema.js +136 -0
- package/src/schemas/product.schema.js.map +1 -0
- package/src/schemas/queries.schema.d.ts +8 -0
- package/src/schemas/queries.schema.js +8 -0
- package/src/schemas/queries.schema.js.map +1 -0
- package/src/schemas/recipient.schema.d.ts +260 -0
- package/src/schemas/recipient.schema.js +40 -0
- package/src/schemas/recipient.schema.js.map +1 -0
- package/src/schemas/reservation.schema.d.ts +61 -0
- package/src/schemas/reservation.schema.js +53 -0
- package/src/schemas/reservation.schema.js.map +1 -0
- package/src/schemas/shipping-method.schema.d.ts +335 -0
- package/src/schemas/shipping-method.schema.js +50 -0
- package/src/schemas/shipping-method.schema.js.map +1 -0
- package/src/schemas/shipping-zone.schema.d.ts +24 -0
- package/src/schemas/shipping-zone.schema.js +33 -0
- package/src/schemas/shipping-zone.schema.js.map +1 -0
- package/src/schemas/user.schema.d.ts +24 -0
- package/src/schemas/user.schema.js +32 -0
- package/src/schemas/user.schema.js.map +1 -0
- package/src/services/cart.service.d.ts +60 -0
- package/src/services/cart.service.js +97 -0
- package/src/services/cart.service.js.map +1 -0
- package/src/services/email.service.d.ts +32 -0
- package/src/services/email.service.js +116 -0
- package/src/services/email.service.js.map +1 -0
- package/src/services/file.service.d.ts +28 -0
- package/src/services/file.service.js +66 -0
- package/src/services/file.service.js.map +1 -0
- package/src/services/location.service.d.ts +28 -0
- package/src/services/location.service.js +109 -0
- package/src/services/location.service.js.map +1 -0
- package/src/services/manufacturer.service.d.ts +146 -0
- package/src/services/manufacturer.service.js +190 -0
- package/src/services/manufacturer.service.js.map +1 -0
- package/src/services/order.service.d.ts +444 -0
- package/src/services/order.service.js +306 -0
- package/src/services/order.service.js.map +1 -0
- package/src/services/organization.service.d.ts +301 -0
- package/src/services/organization.service.js +312 -0
- package/src/services/organization.service.js.map +1 -0
- package/src/services/payment.service.d.ts +35 -0
- package/src/services/payment.service.js +100 -0
- package/src/services/payment.service.js.map +1 -0
- package/src/services/product-category.service.d.ts +180 -0
- package/src/services/product-category.service.js +220 -0
- package/src/services/product-category.service.js.map +1 -0
- package/src/services/product.service.d.ts +493 -0
- package/src/services/product.service.js +437 -0
- package/src/services/product.service.js.map +1 -0
- package/src/services/reservation.service.d.ts +104 -0
- package/src/services/reservation.service.js +231 -0
- package/src/services/reservation.service.js.map +1 -0
- package/src/services/shipping-method.service.d.ts +206 -0
- package/src/services/shipping-method.service.js +229 -0
- package/src/services/shipping-method.service.js.map +1 -0
- package/src/services/shipping.service.d.ts +57 -0
- package/src/services/shipping.service.js +96 -0
- package/src/services/shipping.service.js.map +1 -0
- package/src/services/stripe.service.d.ts +26 -0
- package/src/services/stripe.service.js +164 -0
- package/src/services/stripe.service.js.map +1 -0
- package/src/types/google-maps.types.d.ts +53 -0
- package/src/types/google-maps.types.js +2 -0
- package/src/types/google-maps.types.js.map +1 -0
- package/src/utils/auth.util.d.ts +3 -0
- package/src/utils/auth.util.js +36 -0
- package/src/utils/auth.util.js.map +1 -0
- package/src/utils/cart.util.d.ts +27 -0
- package/src/utils/cart.util.js +76 -0
- package/src/utils/cart.util.js.map +1 -0
- package/src/utils/client.util.d.ts +3853 -0
- package/src/utils/client.util.js +6 -0
- package/src/utils/client.util.js.map +1 -0
- package/src/utils/currency.util.d.ts +1 -0
- package/src/utils/currency.util.js +11 -0
- package/src/utils/currency.util.js.map +1 -0
- package/src/utils/env.util.d.ts +2 -0
- package/src/utils/env.util.js +8 -0
- package/src/utils/env.util.js.map +1 -0
- package/src/utils/error-handler.util.d.ts +3 -0
- package/src/utils/error-handler.util.js +30 -0
- package/src/utils/error-handler.util.js.map +1 -0
- package/src/utils/generate-password-hash.util.d.ts +7 -0
- package/src/utils/generate-password-hash.util.js +30 -0
- package/src/utils/generate-password-hash.util.js.map +1 -0
- package/src/utils/object.util.d.ts +11 -0
- package/src/utils/object.util.js +39 -0
- package/src/utils/object.util.js.map +1 -0
- package/src/utils/translations.util.d.ts +0 -0
- package/src/utils/translations.util.js +2 -0
- package/src/utils/translations.util.js.map +1 -0
- package/src/utils/zod.util.d.ts +15 -0
- package/src/utils/zod.util.js +85 -0
- package/src/utils/zod.util.js.map +1 -0
|
@@ -0,0 +1,1363 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file exports the `Invitation` model and its related types.
|
|
3
|
+
*
|
|
4
|
+
* 🟢 You can import this file directly.
|
|
5
|
+
*/
|
|
6
|
+
import * as runtime from "@prisma/client/runtime/library";
|
|
7
|
+
import type * as Prisma from "../internal/prismaNamespace.ts";
|
|
8
|
+
/**
|
|
9
|
+
* Model Invitation
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export type InvitationModel = runtime.Types.Result.DefaultSelection<Prisma.$InvitationPayload>;
|
|
13
|
+
export type AggregateInvitation = {
|
|
14
|
+
_count: InvitationCountAggregateOutputType | null;
|
|
15
|
+
_min: InvitationMinAggregateOutputType | null;
|
|
16
|
+
_max: InvitationMaxAggregateOutputType | null;
|
|
17
|
+
};
|
|
18
|
+
export type InvitationMinAggregateOutputType = {
|
|
19
|
+
id: string | null;
|
|
20
|
+
organizationId: string | null;
|
|
21
|
+
email: string | null;
|
|
22
|
+
role: string | null;
|
|
23
|
+
status: string | null;
|
|
24
|
+
expiresAt: Date | null;
|
|
25
|
+
inviterId: string | null;
|
|
26
|
+
};
|
|
27
|
+
export type InvitationMaxAggregateOutputType = {
|
|
28
|
+
id: string | null;
|
|
29
|
+
organizationId: string | null;
|
|
30
|
+
email: string | null;
|
|
31
|
+
role: string | null;
|
|
32
|
+
status: string | null;
|
|
33
|
+
expiresAt: Date | null;
|
|
34
|
+
inviterId: string | null;
|
|
35
|
+
};
|
|
36
|
+
export type InvitationCountAggregateOutputType = {
|
|
37
|
+
id: number;
|
|
38
|
+
organizationId: number;
|
|
39
|
+
email: number;
|
|
40
|
+
role: number;
|
|
41
|
+
status: number;
|
|
42
|
+
expiresAt: number;
|
|
43
|
+
inviterId: number;
|
|
44
|
+
_all: number;
|
|
45
|
+
};
|
|
46
|
+
export type InvitationMinAggregateInputType = {
|
|
47
|
+
id?: true;
|
|
48
|
+
organizationId?: true;
|
|
49
|
+
email?: true;
|
|
50
|
+
role?: true;
|
|
51
|
+
status?: true;
|
|
52
|
+
expiresAt?: true;
|
|
53
|
+
inviterId?: true;
|
|
54
|
+
};
|
|
55
|
+
export type InvitationMaxAggregateInputType = {
|
|
56
|
+
id?: true;
|
|
57
|
+
organizationId?: true;
|
|
58
|
+
email?: true;
|
|
59
|
+
role?: true;
|
|
60
|
+
status?: true;
|
|
61
|
+
expiresAt?: true;
|
|
62
|
+
inviterId?: true;
|
|
63
|
+
};
|
|
64
|
+
export type InvitationCountAggregateInputType = {
|
|
65
|
+
id?: true;
|
|
66
|
+
organizationId?: true;
|
|
67
|
+
email?: true;
|
|
68
|
+
role?: true;
|
|
69
|
+
status?: true;
|
|
70
|
+
expiresAt?: true;
|
|
71
|
+
inviterId?: true;
|
|
72
|
+
_all?: true;
|
|
73
|
+
};
|
|
74
|
+
export type InvitationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
75
|
+
/**
|
|
76
|
+
* Filter which Invitation to aggregate.
|
|
77
|
+
*/
|
|
78
|
+
where?: Prisma.InvitationWhereInput;
|
|
79
|
+
/**
|
|
80
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
81
|
+
*
|
|
82
|
+
* Determine the order of Invitations to fetch.
|
|
83
|
+
*/
|
|
84
|
+
orderBy?: Prisma.InvitationOrderByWithRelationInput | Prisma.InvitationOrderByWithRelationInput[];
|
|
85
|
+
/**
|
|
86
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
87
|
+
*
|
|
88
|
+
* Sets the start position
|
|
89
|
+
*/
|
|
90
|
+
cursor?: Prisma.InvitationWhereUniqueInput;
|
|
91
|
+
/**
|
|
92
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
93
|
+
*
|
|
94
|
+
* Take `±n` Invitations from the position of the cursor.
|
|
95
|
+
*/
|
|
96
|
+
take?: number;
|
|
97
|
+
/**
|
|
98
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
99
|
+
*
|
|
100
|
+
* Skip the first `n` Invitations.
|
|
101
|
+
*/
|
|
102
|
+
skip?: number;
|
|
103
|
+
/**
|
|
104
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
105
|
+
*
|
|
106
|
+
* Count returned Invitations
|
|
107
|
+
**/
|
|
108
|
+
_count?: true | InvitationCountAggregateInputType;
|
|
109
|
+
/**
|
|
110
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
111
|
+
*
|
|
112
|
+
* Select which fields to find the minimum value
|
|
113
|
+
**/
|
|
114
|
+
_min?: InvitationMinAggregateInputType;
|
|
115
|
+
/**
|
|
116
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
117
|
+
*
|
|
118
|
+
* Select which fields to find the maximum value
|
|
119
|
+
**/
|
|
120
|
+
_max?: InvitationMaxAggregateInputType;
|
|
121
|
+
};
|
|
122
|
+
export type GetInvitationAggregateType<T extends InvitationAggregateArgs> = {
|
|
123
|
+
[P in keyof T & keyof AggregateInvitation]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateInvitation[P]> : Prisma.GetScalarType<T[P], AggregateInvitation[P]>;
|
|
124
|
+
};
|
|
125
|
+
export type InvitationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
126
|
+
where?: Prisma.InvitationWhereInput;
|
|
127
|
+
orderBy?: Prisma.InvitationOrderByWithAggregationInput | Prisma.InvitationOrderByWithAggregationInput[];
|
|
128
|
+
by: Prisma.InvitationScalarFieldEnum[] | Prisma.InvitationScalarFieldEnum;
|
|
129
|
+
having?: Prisma.InvitationScalarWhereWithAggregatesInput;
|
|
130
|
+
take?: number;
|
|
131
|
+
skip?: number;
|
|
132
|
+
_count?: InvitationCountAggregateInputType | true;
|
|
133
|
+
_min?: InvitationMinAggregateInputType;
|
|
134
|
+
_max?: InvitationMaxAggregateInputType;
|
|
135
|
+
};
|
|
136
|
+
export type InvitationGroupByOutputType = {
|
|
137
|
+
id: string;
|
|
138
|
+
organizationId: string;
|
|
139
|
+
email: string;
|
|
140
|
+
role: string | null;
|
|
141
|
+
status: string;
|
|
142
|
+
expiresAt: Date;
|
|
143
|
+
inviterId: string;
|
|
144
|
+
_count: InvitationCountAggregateOutputType | null;
|
|
145
|
+
_min: InvitationMinAggregateOutputType | null;
|
|
146
|
+
_max: InvitationMaxAggregateOutputType | null;
|
|
147
|
+
};
|
|
148
|
+
type GetInvitationGroupByPayload<T extends InvitationGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<InvitationGroupByOutputType, T['by']> & {
|
|
149
|
+
[P in ((keyof T) & (keyof InvitationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], InvitationGroupByOutputType[P]> : Prisma.GetScalarType<T[P], InvitationGroupByOutputType[P]>;
|
|
150
|
+
}>>;
|
|
151
|
+
export type InvitationWhereInput = {
|
|
152
|
+
AND?: Prisma.InvitationWhereInput | Prisma.InvitationWhereInput[];
|
|
153
|
+
OR?: Prisma.InvitationWhereInput[];
|
|
154
|
+
NOT?: Prisma.InvitationWhereInput | Prisma.InvitationWhereInput[];
|
|
155
|
+
id?: Prisma.StringFilter<"Invitation"> | string;
|
|
156
|
+
organizationId?: Prisma.StringFilter<"Invitation"> | string;
|
|
157
|
+
email?: Prisma.StringFilter<"Invitation"> | string;
|
|
158
|
+
role?: Prisma.StringNullableFilter<"Invitation"> | string | null;
|
|
159
|
+
status?: Prisma.StringFilter<"Invitation"> | string;
|
|
160
|
+
expiresAt?: Prisma.DateTimeFilter<"Invitation"> | Date | string;
|
|
161
|
+
inviterId?: Prisma.StringFilter<"Invitation"> | string;
|
|
162
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
163
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
164
|
+
};
|
|
165
|
+
export type InvitationOrderByWithRelationInput = {
|
|
166
|
+
id?: Prisma.SortOrder;
|
|
167
|
+
organizationId?: Prisma.SortOrder;
|
|
168
|
+
email?: Prisma.SortOrder;
|
|
169
|
+
role?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
170
|
+
status?: Prisma.SortOrder;
|
|
171
|
+
expiresAt?: Prisma.SortOrder;
|
|
172
|
+
inviterId?: Prisma.SortOrder;
|
|
173
|
+
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
174
|
+
user?: Prisma.UserOrderByWithRelationInput;
|
|
175
|
+
};
|
|
176
|
+
export type InvitationWhereUniqueInput = Prisma.AtLeast<{
|
|
177
|
+
id?: string;
|
|
178
|
+
AND?: Prisma.InvitationWhereInput | Prisma.InvitationWhereInput[];
|
|
179
|
+
OR?: Prisma.InvitationWhereInput[];
|
|
180
|
+
NOT?: Prisma.InvitationWhereInput | Prisma.InvitationWhereInput[];
|
|
181
|
+
organizationId?: Prisma.StringFilter<"Invitation"> | string;
|
|
182
|
+
email?: Prisma.StringFilter<"Invitation"> | string;
|
|
183
|
+
role?: Prisma.StringNullableFilter<"Invitation"> | string | null;
|
|
184
|
+
status?: Prisma.StringFilter<"Invitation"> | string;
|
|
185
|
+
expiresAt?: Prisma.DateTimeFilter<"Invitation"> | Date | string;
|
|
186
|
+
inviterId?: Prisma.StringFilter<"Invitation"> | string;
|
|
187
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
188
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
189
|
+
}, "id">;
|
|
190
|
+
export type InvitationOrderByWithAggregationInput = {
|
|
191
|
+
id?: Prisma.SortOrder;
|
|
192
|
+
organizationId?: Prisma.SortOrder;
|
|
193
|
+
email?: Prisma.SortOrder;
|
|
194
|
+
role?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
195
|
+
status?: Prisma.SortOrder;
|
|
196
|
+
expiresAt?: Prisma.SortOrder;
|
|
197
|
+
inviterId?: Prisma.SortOrder;
|
|
198
|
+
_count?: Prisma.InvitationCountOrderByAggregateInput;
|
|
199
|
+
_max?: Prisma.InvitationMaxOrderByAggregateInput;
|
|
200
|
+
_min?: Prisma.InvitationMinOrderByAggregateInput;
|
|
201
|
+
};
|
|
202
|
+
export type InvitationScalarWhereWithAggregatesInput = {
|
|
203
|
+
AND?: Prisma.InvitationScalarWhereWithAggregatesInput | Prisma.InvitationScalarWhereWithAggregatesInput[];
|
|
204
|
+
OR?: Prisma.InvitationScalarWhereWithAggregatesInput[];
|
|
205
|
+
NOT?: Prisma.InvitationScalarWhereWithAggregatesInput | Prisma.InvitationScalarWhereWithAggregatesInput[];
|
|
206
|
+
id?: Prisma.StringWithAggregatesFilter<"Invitation"> | string;
|
|
207
|
+
organizationId?: Prisma.StringWithAggregatesFilter<"Invitation"> | string;
|
|
208
|
+
email?: Prisma.StringWithAggregatesFilter<"Invitation"> | string;
|
|
209
|
+
role?: Prisma.StringNullableWithAggregatesFilter<"Invitation"> | string | null;
|
|
210
|
+
status?: Prisma.StringWithAggregatesFilter<"Invitation"> | string;
|
|
211
|
+
expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Invitation"> | Date | string;
|
|
212
|
+
inviterId?: Prisma.StringWithAggregatesFilter<"Invitation"> | string;
|
|
213
|
+
};
|
|
214
|
+
export type InvitationCreateInput = {
|
|
215
|
+
id: string;
|
|
216
|
+
email: string;
|
|
217
|
+
role?: string | null;
|
|
218
|
+
status: string;
|
|
219
|
+
expiresAt: Date | string;
|
|
220
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutInvitationsInput;
|
|
221
|
+
user: Prisma.UserCreateNestedOneWithoutInvitationsInput;
|
|
222
|
+
};
|
|
223
|
+
export type InvitationUncheckedCreateInput = {
|
|
224
|
+
id: string;
|
|
225
|
+
organizationId: string;
|
|
226
|
+
email: string;
|
|
227
|
+
role?: string | null;
|
|
228
|
+
status: string;
|
|
229
|
+
expiresAt: Date | string;
|
|
230
|
+
inviterId: string;
|
|
231
|
+
};
|
|
232
|
+
export type InvitationUpdateInput = {
|
|
233
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
234
|
+
email?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
235
|
+
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
236
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
237
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
238
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutInvitationsNestedInput;
|
|
239
|
+
user?: Prisma.UserUpdateOneRequiredWithoutInvitationsNestedInput;
|
|
240
|
+
};
|
|
241
|
+
export type InvitationUncheckedUpdateInput = {
|
|
242
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
243
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
244
|
+
email?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
245
|
+
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
246
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
247
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
248
|
+
inviterId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
249
|
+
};
|
|
250
|
+
export type InvitationCreateManyInput = {
|
|
251
|
+
id: string;
|
|
252
|
+
organizationId: string;
|
|
253
|
+
email: string;
|
|
254
|
+
role?: string | null;
|
|
255
|
+
status: string;
|
|
256
|
+
expiresAt: Date | string;
|
|
257
|
+
inviterId: string;
|
|
258
|
+
};
|
|
259
|
+
export type InvitationUpdateManyMutationInput = {
|
|
260
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
261
|
+
email?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
262
|
+
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
263
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
264
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
265
|
+
};
|
|
266
|
+
export type InvitationUncheckedUpdateManyInput = {
|
|
267
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
268
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
269
|
+
email?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
270
|
+
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
271
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
272
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
273
|
+
inviterId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
274
|
+
};
|
|
275
|
+
export type InvitationListRelationFilter = {
|
|
276
|
+
every?: Prisma.InvitationWhereInput;
|
|
277
|
+
some?: Prisma.InvitationWhereInput;
|
|
278
|
+
none?: Prisma.InvitationWhereInput;
|
|
279
|
+
};
|
|
280
|
+
export type InvitationOrderByRelationAggregateInput = {
|
|
281
|
+
_count?: Prisma.SortOrder;
|
|
282
|
+
};
|
|
283
|
+
export type InvitationCountOrderByAggregateInput = {
|
|
284
|
+
id?: Prisma.SortOrder;
|
|
285
|
+
organizationId?: Prisma.SortOrder;
|
|
286
|
+
email?: Prisma.SortOrder;
|
|
287
|
+
role?: Prisma.SortOrder;
|
|
288
|
+
status?: Prisma.SortOrder;
|
|
289
|
+
expiresAt?: Prisma.SortOrder;
|
|
290
|
+
inviterId?: Prisma.SortOrder;
|
|
291
|
+
};
|
|
292
|
+
export type InvitationMaxOrderByAggregateInput = {
|
|
293
|
+
id?: Prisma.SortOrder;
|
|
294
|
+
organizationId?: Prisma.SortOrder;
|
|
295
|
+
email?: Prisma.SortOrder;
|
|
296
|
+
role?: Prisma.SortOrder;
|
|
297
|
+
status?: Prisma.SortOrder;
|
|
298
|
+
expiresAt?: Prisma.SortOrder;
|
|
299
|
+
inviterId?: Prisma.SortOrder;
|
|
300
|
+
};
|
|
301
|
+
export type InvitationMinOrderByAggregateInput = {
|
|
302
|
+
id?: Prisma.SortOrder;
|
|
303
|
+
organizationId?: Prisma.SortOrder;
|
|
304
|
+
email?: Prisma.SortOrder;
|
|
305
|
+
role?: Prisma.SortOrder;
|
|
306
|
+
status?: Prisma.SortOrder;
|
|
307
|
+
expiresAt?: Prisma.SortOrder;
|
|
308
|
+
inviterId?: Prisma.SortOrder;
|
|
309
|
+
};
|
|
310
|
+
export type InvitationCreateNestedManyWithoutUserInput = {
|
|
311
|
+
create?: Prisma.XOR<Prisma.InvitationCreateWithoutUserInput, Prisma.InvitationUncheckedCreateWithoutUserInput> | Prisma.InvitationCreateWithoutUserInput[] | Prisma.InvitationUncheckedCreateWithoutUserInput[];
|
|
312
|
+
connectOrCreate?: Prisma.InvitationCreateOrConnectWithoutUserInput | Prisma.InvitationCreateOrConnectWithoutUserInput[];
|
|
313
|
+
createMany?: Prisma.InvitationCreateManyUserInputEnvelope;
|
|
314
|
+
connect?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
315
|
+
};
|
|
316
|
+
export type InvitationUncheckedCreateNestedManyWithoutUserInput = {
|
|
317
|
+
create?: Prisma.XOR<Prisma.InvitationCreateWithoutUserInput, Prisma.InvitationUncheckedCreateWithoutUserInput> | Prisma.InvitationCreateWithoutUserInput[] | Prisma.InvitationUncheckedCreateWithoutUserInput[];
|
|
318
|
+
connectOrCreate?: Prisma.InvitationCreateOrConnectWithoutUserInput | Prisma.InvitationCreateOrConnectWithoutUserInput[];
|
|
319
|
+
createMany?: Prisma.InvitationCreateManyUserInputEnvelope;
|
|
320
|
+
connect?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
321
|
+
};
|
|
322
|
+
export type InvitationUpdateManyWithoutUserNestedInput = {
|
|
323
|
+
create?: Prisma.XOR<Prisma.InvitationCreateWithoutUserInput, Prisma.InvitationUncheckedCreateWithoutUserInput> | Prisma.InvitationCreateWithoutUserInput[] | Prisma.InvitationUncheckedCreateWithoutUserInput[];
|
|
324
|
+
connectOrCreate?: Prisma.InvitationCreateOrConnectWithoutUserInput | Prisma.InvitationCreateOrConnectWithoutUserInput[];
|
|
325
|
+
upsert?: Prisma.InvitationUpsertWithWhereUniqueWithoutUserInput | Prisma.InvitationUpsertWithWhereUniqueWithoutUserInput[];
|
|
326
|
+
createMany?: Prisma.InvitationCreateManyUserInputEnvelope;
|
|
327
|
+
set?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
328
|
+
disconnect?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
329
|
+
delete?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
330
|
+
connect?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
331
|
+
update?: Prisma.InvitationUpdateWithWhereUniqueWithoutUserInput | Prisma.InvitationUpdateWithWhereUniqueWithoutUserInput[];
|
|
332
|
+
updateMany?: Prisma.InvitationUpdateManyWithWhereWithoutUserInput | Prisma.InvitationUpdateManyWithWhereWithoutUserInput[];
|
|
333
|
+
deleteMany?: Prisma.InvitationScalarWhereInput | Prisma.InvitationScalarWhereInput[];
|
|
334
|
+
};
|
|
335
|
+
export type InvitationUncheckedUpdateManyWithoutUserNestedInput = {
|
|
336
|
+
create?: Prisma.XOR<Prisma.InvitationCreateWithoutUserInput, Prisma.InvitationUncheckedCreateWithoutUserInput> | Prisma.InvitationCreateWithoutUserInput[] | Prisma.InvitationUncheckedCreateWithoutUserInput[];
|
|
337
|
+
connectOrCreate?: Prisma.InvitationCreateOrConnectWithoutUserInput | Prisma.InvitationCreateOrConnectWithoutUserInput[];
|
|
338
|
+
upsert?: Prisma.InvitationUpsertWithWhereUniqueWithoutUserInput | Prisma.InvitationUpsertWithWhereUniqueWithoutUserInput[];
|
|
339
|
+
createMany?: Prisma.InvitationCreateManyUserInputEnvelope;
|
|
340
|
+
set?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
341
|
+
disconnect?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
342
|
+
delete?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
343
|
+
connect?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
344
|
+
update?: Prisma.InvitationUpdateWithWhereUniqueWithoutUserInput | Prisma.InvitationUpdateWithWhereUniqueWithoutUserInput[];
|
|
345
|
+
updateMany?: Prisma.InvitationUpdateManyWithWhereWithoutUserInput | Prisma.InvitationUpdateManyWithWhereWithoutUserInput[];
|
|
346
|
+
deleteMany?: Prisma.InvitationScalarWhereInput | Prisma.InvitationScalarWhereInput[];
|
|
347
|
+
};
|
|
348
|
+
export type InvitationCreateNestedManyWithoutOrganizationInput = {
|
|
349
|
+
create?: Prisma.XOR<Prisma.InvitationCreateWithoutOrganizationInput, Prisma.InvitationUncheckedCreateWithoutOrganizationInput> | Prisma.InvitationCreateWithoutOrganizationInput[] | Prisma.InvitationUncheckedCreateWithoutOrganizationInput[];
|
|
350
|
+
connectOrCreate?: Prisma.InvitationCreateOrConnectWithoutOrganizationInput | Prisma.InvitationCreateOrConnectWithoutOrganizationInput[];
|
|
351
|
+
createMany?: Prisma.InvitationCreateManyOrganizationInputEnvelope;
|
|
352
|
+
connect?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
353
|
+
};
|
|
354
|
+
export type InvitationUncheckedCreateNestedManyWithoutOrganizationInput = {
|
|
355
|
+
create?: Prisma.XOR<Prisma.InvitationCreateWithoutOrganizationInput, Prisma.InvitationUncheckedCreateWithoutOrganizationInput> | Prisma.InvitationCreateWithoutOrganizationInput[] | Prisma.InvitationUncheckedCreateWithoutOrganizationInput[];
|
|
356
|
+
connectOrCreate?: Prisma.InvitationCreateOrConnectWithoutOrganizationInput | Prisma.InvitationCreateOrConnectWithoutOrganizationInput[];
|
|
357
|
+
createMany?: Prisma.InvitationCreateManyOrganizationInputEnvelope;
|
|
358
|
+
connect?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
359
|
+
};
|
|
360
|
+
export type InvitationUpdateManyWithoutOrganizationNestedInput = {
|
|
361
|
+
create?: Prisma.XOR<Prisma.InvitationCreateWithoutOrganizationInput, Prisma.InvitationUncheckedCreateWithoutOrganizationInput> | Prisma.InvitationCreateWithoutOrganizationInput[] | Prisma.InvitationUncheckedCreateWithoutOrganizationInput[];
|
|
362
|
+
connectOrCreate?: Prisma.InvitationCreateOrConnectWithoutOrganizationInput | Prisma.InvitationCreateOrConnectWithoutOrganizationInput[];
|
|
363
|
+
upsert?: Prisma.InvitationUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.InvitationUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
364
|
+
createMany?: Prisma.InvitationCreateManyOrganizationInputEnvelope;
|
|
365
|
+
set?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
366
|
+
disconnect?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
367
|
+
delete?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
368
|
+
connect?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
369
|
+
update?: Prisma.InvitationUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.InvitationUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
370
|
+
updateMany?: Prisma.InvitationUpdateManyWithWhereWithoutOrganizationInput | Prisma.InvitationUpdateManyWithWhereWithoutOrganizationInput[];
|
|
371
|
+
deleteMany?: Prisma.InvitationScalarWhereInput | Prisma.InvitationScalarWhereInput[];
|
|
372
|
+
};
|
|
373
|
+
export type InvitationUncheckedUpdateManyWithoutOrganizationNestedInput = {
|
|
374
|
+
create?: Prisma.XOR<Prisma.InvitationCreateWithoutOrganizationInput, Prisma.InvitationUncheckedCreateWithoutOrganizationInput> | Prisma.InvitationCreateWithoutOrganizationInput[] | Prisma.InvitationUncheckedCreateWithoutOrganizationInput[];
|
|
375
|
+
connectOrCreate?: Prisma.InvitationCreateOrConnectWithoutOrganizationInput | Prisma.InvitationCreateOrConnectWithoutOrganizationInput[];
|
|
376
|
+
upsert?: Prisma.InvitationUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.InvitationUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
377
|
+
createMany?: Prisma.InvitationCreateManyOrganizationInputEnvelope;
|
|
378
|
+
set?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
379
|
+
disconnect?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
380
|
+
delete?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
381
|
+
connect?: Prisma.InvitationWhereUniqueInput | Prisma.InvitationWhereUniqueInput[];
|
|
382
|
+
update?: Prisma.InvitationUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.InvitationUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
383
|
+
updateMany?: Prisma.InvitationUpdateManyWithWhereWithoutOrganizationInput | Prisma.InvitationUpdateManyWithWhereWithoutOrganizationInput[];
|
|
384
|
+
deleteMany?: Prisma.InvitationScalarWhereInput | Prisma.InvitationScalarWhereInput[];
|
|
385
|
+
};
|
|
386
|
+
export type InvitationCreateWithoutUserInput = {
|
|
387
|
+
id: string;
|
|
388
|
+
email: string;
|
|
389
|
+
role?: string | null;
|
|
390
|
+
status: string;
|
|
391
|
+
expiresAt: Date | string;
|
|
392
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutInvitationsInput;
|
|
393
|
+
};
|
|
394
|
+
export type InvitationUncheckedCreateWithoutUserInput = {
|
|
395
|
+
id: string;
|
|
396
|
+
organizationId: string;
|
|
397
|
+
email: string;
|
|
398
|
+
role?: string | null;
|
|
399
|
+
status: string;
|
|
400
|
+
expiresAt: Date | string;
|
|
401
|
+
};
|
|
402
|
+
export type InvitationCreateOrConnectWithoutUserInput = {
|
|
403
|
+
where: Prisma.InvitationWhereUniqueInput;
|
|
404
|
+
create: Prisma.XOR<Prisma.InvitationCreateWithoutUserInput, Prisma.InvitationUncheckedCreateWithoutUserInput>;
|
|
405
|
+
};
|
|
406
|
+
export type InvitationCreateManyUserInputEnvelope = {
|
|
407
|
+
data: Prisma.InvitationCreateManyUserInput | Prisma.InvitationCreateManyUserInput[];
|
|
408
|
+
skipDuplicates?: boolean;
|
|
409
|
+
};
|
|
410
|
+
export type InvitationUpsertWithWhereUniqueWithoutUserInput = {
|
|
411
|
+
where: Prisma.InvitationWhereUniqueInput;
|
|
412
|
+
update: Prisma.XOR<Prisma.InvitationUpdateWithoutUserInput, Prisma.InvitationUncheckedUpdateWithoutUserInput>;
|
|
413
|
+
create: Prisma.XOR<Prisma.InvitationCreateWithoutUserInput, Prisma.InvitationUncheckedCreateWithoutUserInput>;
|
|
414
|
+
};
|
|
415
|
+
export type InvitationUpdateWithWhereUniqueWithoutUserInput = {
|
|
416
|
+
where: Prisma.InvitationWhereUniqueInput;
|
|
417
|
+
data: Prisma.XOR<Prisma.InvitationUpdateWithoutUserInput, Prisma.InvitationUncheckedUpdateWithoutUserInput>;
|
|
418
|
+
};
|
|
419
|
+
export type InvitationUpdateManyWithWhereWithoutUserInput = {
|
|
420
|
+
where: Prisma.InvitationScalarWhereInput;
|
|
421
|
+
data: Prisma.XOR<Prisma.InvitationUpdateManyMutationInput, Prisma.InvitationUncheckedUpdateManyWithoutUserInput>;
|
|
422
|
+
};
|
|
423
|
+
export type InvitationScalarWhereInput = {
|
|
424
|
+
AND?: Prisma.InvitationScalarWhereInput | Prisma.InvitationScalarWhereInput[];
|
|
425
|
+
OR?: Prisma.InvitationScalarWhereInput[];
|
|
426
|
+
NOT?: Prisma.InvitationScalarWhereInput | Prisma.InvitationScalarWhereInput[];
|
|
427
|
+
id?: Prisma.StringFilter<"Invitation"> | string;
|
|
428
|
+
organizationId?: Prisma.StringFilter<"Invitation"> | string;
|
|
429
|
+
email?: Prisma.StringFilter<"Invitation"> | string;
|
|
430
|
+
role?: Prisma.StringNullableFilter<"Invitation"> | string | null;
|
|
431
|
+
status?: Prisma.StringFilter<"Invitation"> | string;
|
|
432
|
+
expiresAt?: Prisma.DateTimeFilter<"Invitation"> | Date | string;
|
|
433
|
+
inviterId?: Prisma.StringFilter<"Invitation"> | string;
|
|
434
|
+
};
|
|
435
|
+
export type InvitationCreateWithoutOrganizationInput = {
|
|
436
|
+
id: string;
|
|
437
|
+
email: string;
|
|
438
|
+
role?: string | null;
|
|
439
|
+
status: string;
|
|
440
|
+
expiresAt: Date | string;
|
|
441
|
+
user: Prisma.UserCreateNestedOneWithoutInvitationsInput;
|
|
442
|
+
};
|
|
443
|
+
export type InvitationUncheckedCreateWithoutOrganizationInput = {
|
|
444
|
+
id: string;
|
|
445
|
+
email: string;
|
|
446
|
+
role?: string | null;
|
|
447
|
+
status: string;
|
|
448
|
+
expiresAt: Date | string;
|
|
449
|
+
inviterId: string;
|
|
450
|
+
};
|
|
451
|
+
export type InvitationCreateOrConnectWithoutOrganizationInput = {
|
|
452
|
+
where: Prisma.InvitationWhereUniqueInput;
|
|
453
|
+
create: Prisma.XOR<Prisma.InvitationCreateWithoutOrganizationInput, Prisma.InvitationUncheckedCreateWithoutOrganizationInput>;
|
|
454
|
+
};
|
|
455
|
+
export type InvitationCreateManyOrganizationInputEnvelope = {
|
|
456
|
+
data: Prisma.InvitationCreateManyOrganizationInput | Prisma.InvitationCreateManyOrganizationInput[];
|
|
457
|
+
skipDuplicates?: boolean;
|
|
458
|
+
};
|
|
459
|
+
export type InvitationUpsertWithWhereUniqueWithoutOrganizationInput = {
|
|
460
|
+
where: Prisma.InvitationWhereUniqueInput;
|
|
461
|
+
update: Prisma.XOR<Prisma.InvitationUpdateWithoutOrganizationInput, Prisma.InvitationUncheckedUpdateWithoutOrganizationInput>;
|
|
462
|
+
create: Prisma.XOR<Prisma.InvitationCreateWithoutOrganizationInput, Prisma.InvitationUncheckedCreateWithoutOrganizationInput>;
|
|
463
|
+
};
|
|
464
|
+
export type InvitationUpdateWithWhereUniqueWithoutOrganizationInput = {
|
|
465
|
+
where: Prisma.InvitationWhereUniqueInput;
|
|
466
|
+
data: Prisma.XOR<Prisma.InvitationUpdateWithoutOrganizationInput, Prisma.InvitationUncheckedUpdateWithoutOrganizationInput>;
|
|
467
|
+
};
|
|
468
|
+
export type InvitationUpdateManyWithWhereWithoutOrganizationInput = {
|
|
469
|
+
where: Prisma.InvitationScalarWhereInput;
|
|
470
|
+
data: Prisma.XOR<Prisma.InvitationUpdateManyMutationInput, Prisma.InvitationUncheckedUpdateManyWithoutOrganizationInput>;
|
|
471
|
+
};
|
|
472
|
+
export type InvitationCreateManyUserInput = {
|
|
473
|
+
id: string;
|
|
474
|
+
organizationId: string;
|
|
475
|
+
email: string;
|
|
476
|
+
role?: string | null;
|
|
477
|
+
status: string;
|
|
478
|
+
expiresAt: Date | string;
|
|
479
|
+
};
|
|
480
|
+
export type InvitationUpdateWithoutUserInput = {
|
|
481
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
482
|
+
email?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
483
|
+
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
484
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
485
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
486
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutInvitationsNestedInput;
|
|
487
|
+
};
|
|
488
|
+
export type InvitationUncheckedUpdateWithoutUserInput = {
|
|
489
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
490
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
491
|
+
email?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
492
|
+
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
493
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
494
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
495
|
+
};
|
|
496
|
+
export type InvitationUncheckedUpdateManyWithoutUserInput = {
|
|
497
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
498
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
499
|
+
email?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
500
|
+
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
501
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
502
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
503
|
+
};
|
|
504
|
+
export type InvitationCreateManyOrganizationInput = {
|
|
505
|
+
id: string;
|
|
506
|
+
email: string;
|
|
507
|
+
role?: string | null;
|
|
508
|
+
status: string;
|
|
509
|
+
expiresAt: Date | string;
|
|
510
|
+
inviterId: string;
|
|
511
|
+
};
|
|
512
|
+
export type InvitationUpdateWithoutOrganizationInput = {
|
|
513
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
514
|
+
email?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
515
|
+
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
516
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
517
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
518
|
+
user?: Prisma.UserUpdateOneRequiredWithoutInvitationsNestedInput;
|
|
519
|
+
};
|
|
520
|
+
export type InvitationUncheckedUpdateWithoutOrganizationInput = {
|
|
521
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
522
|
+
email?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
523
|
+
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
524
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
525
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
526
|
+
inviterId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
527
|
+
};
|
|
528
|
+
export type InvitationUncheckedUpdateManyWithoutOrganizationInput = {
|
|
529
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
530
|
+
email?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
531
|
+
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
532
|
+
status?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
533
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
534
|
+
inviterId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
535
|
+
};
|
|
536
|
+
export type InvitationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
537
|
+
id?: boolean;
|
|
538
|
+
organizationId?: boolean;
|
|
539
|
+
email?: boolean;
|
|
540
|
+
role?: boolean;
|
|
541
|
+
status?: boolean;
|
|
542
|
+
expiresAt?: boolean;
|
|
543
|
+
inviterId?: boolean;
|
|
544
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
545
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
546
|
+
}, ExtArgs["result"]["invitation"]>;
|
|
547
|
+
export type InvitationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
548
|
+
id?: boolean;
|
|
549
|
+
organizationId?: boolean;
|
|
550
|
+
email?: boolean;
|
|
551
|
+
role?: boolean;
|
|
552
|
+
status?: boolean;
|
|
553
|
+
expiresAt?: boolean;
|
|
554
|
+
inviterId?: boolean;
|
|
555
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
556
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
557
|
+
}, ExtArgs["result"]["invitation"]>;
|
|
558
|
+
export type InvitationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
559
|
+
id?: boolean;
|
|
560
|
+
organizationId?: boolean;
|
|
561
|
+
email?: boolean;
|
|
562
|
+
role?: boolean;
|
|
563
|
+
status?: boolean;
|
|
564
|
+
expiresAt?: boolean;
|
|
565
|
+
inviterId?: boolean;
|
|
566
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
567
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
568
|
+
}, ExtArgs["result"]["invitation"]>;
|
|
569
|
+
export type InvitationSelectScalar = {
|
|
570
|
+
id?: boolean;
|
|
571
|
+
organizationId?: boolean;
|
|
572
|
+
email?: boolean;
|
|
573
|
+
role?: boolean;
|
|
574
|
+
status?: boolean;
|
|
575
|
+
expiresAt?: boolean;
|
|
576
|
+
inviterId?: boolean;
|
|
577
|
+
};
|
|
578
|
+
export type InvitationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "organizationId" | "email" | "role" | "status" | "expiresAt" | "inviterId", ExtArgs["result"]["invitation"]>;
|
|
579
|
+
export type InvitationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
580
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
581
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
582
|
+
};
|
|
583
|
+
export type InvitationIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
584
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
585
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
586
|
+
};
|
|
587
|
+
export type InvitationIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
588
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
589
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
590
|
+
};
|
|
591
|
+
export type $InvitationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
592
|
+
name: "Invitation";
|
|
593
|
+
objects: {
|
|
594
|
+
organization: Prisma.$OrganizationPayload<ExtArgs>;
|
|
595
|
+
user: Prisma.$UserPayload<ExtArgs>;
|
|
596
|
+
};
|
|
597
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
598
|
+
id: string;
|
|
599
|
+
organizationId: string;
|
|
600
|
+
email: string;
|
|
601
|
+
role: string | null;
|
|
602
|
+
status: string;
|
|
603
|
+
expiresAt: Date;
|
|
604
|
+
inviterId: string;
|
|
605
|
+
}, ExtArgs["result"]["invitation"]>;
|
|
606
|
+
composites: {};
|
|
607
|
+
};
|
|
608
|
+
export type InvitationGetPayload<S extends boolean | null | undefined | InvitationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InvitationPayload, S>;
|
|
609
|
+
export type InvitationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<InvitationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
610
|
+
select?: InvitationCountAggregateInputType | true;
|
|
611
|
+
};
|
|
612
|
+
export interface InvitationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
613
|
+
[K: symbol]: {
|
|
614
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Invitation'];
|
|
615
|
+
meta: {
|
|
616
|
+
name: 'Invitation';
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* Find zero or one Invitation that matches the filter.
|
|
621
|
+
* @param {InvitationFindUniqueArgs} args - Arguments to find a Invitation
|
|
622
|
+
* @example
|
|
623
|
+
* // Get one Invitation
|
|
624
|
+
* const invitation = await prisma.invitation.findUnique({
|
|
625
|
+
* where: {
|
|
626
|
+
* // ... provide filter here
|
|
627
|
+
* }
|
|
628
|
+
* })
|
|
629
|
+
*/
|
|
630
|
+
findUnique<T extends InvitationFindUniqueArgs>(args: Prisma.SelectSubset<T, InvitationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
631
|
+
/**
|
|
632
|
+
* Find one Invitation that matches the filter or throw an error with `error.code='P2025'`
|
|
633
|
+
* if no matches were found.
|
|
634
|
+
* @param {InvitationFindUniqueOrThrowArgs} args - Arguments to find a Invitation
|
|
635
|
+
* @example
|
|
636
|
+
* // Get one Invitation
|
|
637
|
+
* const invitation = await prisma.invitation.findUniqueOrThrow({
|
|
638
|
+
* where: {
|
|
639
|
+
* // ... provide filter here
|
|
640
|
+
* }
|
|
641
|
+
* })
|
|
642
|
+
*/
|
|
643
|
+
findUniqueOrThrow<T extends InvitationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InvitationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
644
|
+
/**
|
|
645
|
+
* Find the first Invitation that matches the filter.
|
|
646
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
647
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
648
|
+
* @param {InvitationFindFirstArgs} args - Arguments to find a Invitation
|
|
649
|
+
* @example
|
|
650
|
+
* // Get one Invitation
|
|
651
|
+
* const invitation = await prisma.invitation.findFirst({
|
|
652
|
+
* where: {
|
|
653
|
+
* // ... provide filter here
|
|
654
|
+
* }
|
|
655
|
+
* })
|
|
656
|
+
*/
|
|
657
|
+
findFirst<T extends InvitationFindFirstArgs>(args?: Prisma.SelectSubset<T, InvitationFindFirstArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
658
|
+
/**
|
|
659
|
+
* Find the first Invitation that matches the filter or
|
|
660
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
661
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
662
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
663
|
+
* @param {InvitationFindFirstOrThrowArgs} args - Arguments to find a Invitation
|
|
664
|
+
* @example
|
|
665
|
+
* // Get one Invitation
|
|
666
|
+
* const invitation = await prisma.invitation.findFirstOrThrow({
|
|
667
|
+
* where: {
|
|
668
|
+
* // ... provide filter here
|
|
669
|
+
* }
|
|
670
|
+
* })
|
|
671
|
+
*/
|
|
672
|
+
findFirstOrThrow<T extends InvitationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InvitationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
673
|
+
/**
|
|
674
|
+
* Find zero or more Invitations that matches the filter.
|
|
675
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
676
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
677
|
+
* @param {InvitationFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
678
|
+
* @example
|
|
679
|
+
* // Get all Invitations
|
|
680
|
+
* const invitations = await prisma.invitation.findMany()
|
|
681
|
+
*
|
|
682
|
+
* // Get first 10 Invitations
|
|
683
|
+
* const invitations = await prisma.invitation.findMany({ take: 10 })
|
|
684
|
+
*
|
|
685
|
+
* // Only select the `id`
|
|
686
|
+
* const invitationWithIdOnly = await prisma.invitation.findMany({ select: { id: true } })
|
|
687
|
+
*
|
|
688
|
+
*/
|
|
689
|
+
findMany<T extends InvitationFindManyArgs>(args?: Prisma.SelectSubset<T, InvitationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
690
|
+
/**
|
|
691
|
+
* Create a Invitation.
|
|
692
|
+
* @param {InvitationCreateArgs} args - Arguments to create a Invitation.
|
|
693
|
+
* @example
|
|
694
|
+
* // Create one Invitation
|
|
695
|
+
* const Invitation = await prisma.invitation.create({
|
|
696
|
+
* data: {
|
|
697
|
+
* // ... data to create a Invitation
|
|
698
|
+
* }
|
|
699
|
+
* })
|
|
700
|
+
*
|
|
701
|
+
*/
|
|
702
|
+
create<T extends InvitationCreateArgs>(args: Prisma.SelectSubset<T, InvitationCreateArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
703
|
+
/**
|
|
704
|
+
* Create many Invitations.
|
|
705
|
+
* @param {InvitationCreateManyArgs} args - Arguments to create many Invitations.
|
|
706
|
+
* @example
|
|
707
|
+
* // Create many Invitations
|
|
708
|
+
* const invitation = await prisma.invitation.createMany({
|
|
709
|
+
* data: [
|
|
710
|
+
* // ... provide data here
|
|
711
|
+
* ]
|
|
712
|
+
* })
|
|
713
|
+
*
|
|
714
|
+
*/
|
|
715
|
+
createMany<T extends InvitationCreateManyArgs>(args?: Prisma.SelectSubset<T, InvitationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
716
|
+
/**
|
|
717
|
+
* Create many Invitations and returns the data saved in the database.
|
|
718
|
+
* @param {InvitationCreateManyAndReturnArgs} args - Arguments to create many Invitations.
|
|
719
|
+
* @example
|
|
720
|
+
* // Create many Invitations
|
|
721
|
+
* const invitation = await prisma.invitation.createManyAndReturn({
|
|
722
|
+
* data: [
|
|
723
|
+
* // ... provide data here
|
|
724
|
+
* ]
|
|
725
|
+
* })
|
|
726
|
+
*
|
|
727
|
+
* // Create many Invitations and only return the `id`
|
|
728
|
+
* const invitationWithIdOnly = await prisma.invitation.createManyAndReturn({
|
|
729
|
+
* select: { id: true },
|
|
730
|
+
* data: [
|
|
731
|
+
* // ... provide data here
|
|
732
|
+
* ]
|
|
733
|
+
* })
|
|
734
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
735
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
736
|
+
*
|
|
737
|
+
*/
|
|
738
|
+
createManyAndReturn<T extends InvitationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, InvitationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
739
|
+
/**
|
|
740
|
+
* Delete a Invitation.
|
|
741
|
+
* @param {InvitationDeleteArgs} args - Arguments to delete one Invitation.
|
|
742
|
+
* @example
|
|
743
|
+
* // Delete one Invitation
|
|
744
|
+
* const Invitation = await prisma.invitation.delete({
|
|
745
|
+
* where: {
|
|
746
|
+
* // ... filter to delete one Invitation
|
|
747
|
+
* }
|
|
748
|
+
* })
|
|
749
|
+
*
|
|
750
|
+
*/
|
|
751
|
+
delete<T extends InvitationDeleteArgs>(args: Prisma.SelectSubset<T, InvitationDeleteArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
752
|
+
/**
|
|
753
|
+
* Update one Invitation.
|
|
754
|
+
* @param {InvitationUpdateArgs} args - Arguments to update one Invitation.
|
|
755
|
+
* @example
|
|
756
|
+
* // Update one Invitation
|
|
757
|
+
* const invitation = await prisma.invitation.update({
|
|
758
|
+
* where: {
|
|
759
|
+
* // ... provide filter here
|
|
760
|
+
* },
|
|
761
|
+
* data: {
|
|
762
|
+
* // ... provide data here
|
|
763
|
+
* }
|
|
764
|
+
* })
|
|
765
|
+
*
|
|
766
|
+
*/
|
|
767
|
+
update<T extends InvitationUpdateArgs>(args: Prisma.SelectSubset<T, InvitationUpdateArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
768
|
+
/**
|
|
769
|
+
* Delete zero or more Invitations.
|
|
770
|
+
* @param {InvitationDeleteManyArgs} args - Arguments to filter Invitations to delete.
|
|
771
|
+
* @example
|
|
772
|
+
* // Delete a few Invitations
|
|
773
|
+
* const { count } = await prisma.invitation.deleteMany({
|
|
774
|
+
* where: {
|
|
775
|
+
* // ... provide filter here
|
|
776
|
+
* }
|
|
777
|
+
* })
|
|
778
|
+
*
|
|
779
|
+
*/
|
|
780
|
+
deleteMany<T extends InvitationDeleteManyArgs>(args?: Prisma.SelectSubset<T, InvitationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
781
|
+
/**
|
|
782
|
+
* Update zero or more Invitations.
|
|
783
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
784
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
785
|
+
* @param {InvitationUpdateManyArgs} args - Arguments to update one or more rows.
|
|
786
|
+
* @example
|
|
787
|
+
* // Update many Invitations
|
|
788
|
+
* const invitation = await prisma.invitation.updateMany({
|
|
789
|
+
* where: {
|
|
790
|
+
* // ... provide filter here
|
|
791
|
+
* },
|
|
792
|
+
* data: {
|
|
793
|
+
* // ... provide data here
|
|
794
|
+
* }
|
|
795
|
+
* })
|
|
796
|
+
*
|
|
797
|
+
*/
|
|
798
|
+
updateMany<T extends InvitationUpdateManyArgs>(args: Prisma.SelectSubset<T, InvitationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
799
|
+
/**
|
|
800
|
+
* Update zero or more Invitations and returns the data updated in the database.
|
|
801
|
+
* @param {InvitationUpdateManyAndReturnArgs} args - Arguments to update many Invitations.
|
|
802
|
+
* @example
|
|
803
|
+
* // Update many Invitations
|
|
804
|
+
* const invitation = await prisma.invitation.updateManyAndReturn({
|
|
805
|
+
* where: {
|
|
806
|
+
* // ... provide filter here
|
|
807
|
+
* },
|
|
808
|
+
* data: [
|
|
809
|
+
* // ... provide data here
|
|
810
|
+
* ]
|
|
811
|
+
* })
|
|
812
|
+
*
|
|
813
|
+
* // Update zero or more Invitations and only return the `id`
|
|
814
|
+
* const invitationWithIdOnly = await prisma.invitation.updateManyAndReturn({
|
|
815
|
+
* select: { id: true },
|
|
816
|
+
* where: {
|
|
817
|
+
* // ... provide filter here
|
|
818
|
+
* },
|
|
819
|
+
* data: [
|
|
820
|
+
* // ... provide data here
|
|
821
|
+
* ]
|
|
822
|
+
* })
|
|
823
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
824
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
825
|
+
*
|
|
826
|
+
*/
|
|
827
|
+
updateManyAndReturn<T extends InvitationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, InvitationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
828
|
+
/**
|
|
829
|
+
* Create or update one Invitation.
|
|
830
|
+
* @param {InvitationUpsertArgs} args - Arguments to update or create a Invitation.
|
|
831
|
+
* @example
|
|
832
|
+
* // Update or create a Invitation
|
|
833
|
+
* const invitation = await prisma.invitation.upsert({
|
|
834
|
+
* create: {
|
|
835
|
+
* // ... data to create a Invitation
|
|
836
|
+
* },
|
|
837
|
+
* update: {
|
|
838
|
+
* // ... in case it already exists, update
|
|
839
|
+
* },
|
|
840
|
+
* where: {
|
|
841
|
+
* // ... the filter for the Invitation we want to update
|
|
842
|
+
* }
|
|
843
|
+
* })
|
|
844
|
+
*/
|
|
845
|
+
upsert<T extends InvitationUpsertArgs>(args: Prisma.SelectSubset<T, InvitationUpsertArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
846
|
+
/**
|
|
847
|
+
* Count the number of Invitations.
|
|
848
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
849
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
850
|
+
* @param {InvitationCountArgs} args - Arguments to filter Invitations to count.
|
|
851
|
+
* @example
|
|
852
|
+
* // Count the number of Invitations
|
|
853
|
+
* const count = await prisma.invitation.count({
|
|
854
|
+
* where: {
|
|
855
|
+
* // ... the filter for the Invitations we want to count
|
|
856
|
+
* }
|
|
857
|
+
* })
|
|
858
|
+
**/
|
|
859
|
+
count<T extends InvitationCountArgs>(args?: Prisma.Subset<T, InvitationCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], InvitationCountAggregateOutputType> : number>;
|
|
860
|
+
/**
|
|
861
|
+
* Allows you to perform aggregations operations on a Invitation.
|
|
862
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
863
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
864
|
+
* @param {InvitationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
865
|
+
* @example
|
|
866
|
+
* // Ordered by age ascending
|
|
867
|
+
* // Where email contains prisma.io
|
|
868
|
+
* // Limited to the 10 users
|
|
869
|
+
* const aggregations = await prisma.user.aggregate({
|
|
870
|
+
* _avg: {
|
|
871
|
+
* age: true,
|
|
872
|
+
* },
|
|
873
|
+
* where: {
|
|
874
|
+
* email: {
|
|
875
|
+
* contains: "prisma.io",
|
|
876
|
+
* },
|
|
877
|
+
* },
|
|
878
|
+
* orderBy: {
|
|
879
|
+
* age: "asc",
|
|
880
|
+
* },
|
|
881
|
+
* take: 10,
|
|
882
|
+
* })
|
|
883
|
+
**/
|
|
884
|
+
aggregate<T extends InvitationAggregateArgs>(args: Prisma.Subset<T, InvitationAggregateArgs>): Prisma.PrismaPromise<GetInvitationAggregateType<T>>;
|
|
885
|
+
/**
|
|
886
|
+
* Group by Invitation.
|
|
887
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
888
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
889
|
+
* @param {InvitationGroupByArgs} args - Group by arguments.
|
|
890
|
+
* @example
|
|
891
|
+
* // Group by city, order by createdAt, get count
|
|
892
|
+
* const result = await prisma.user.groupBy({
|
|
893
|
+
* by: ['city', 'createdAt'],
|
|
894
|
+
* orderBy: {
|
|
895
|
+
* createdAt: true
|
|
896
|
+
* },
|
|
897
|
+
* _count: {
|
|
898
|
+
* _all: true
|
|
899
|
+
* },
|
|
900
|
+
* })
|
|
901
|
+
*
|
|
902
|
+
**/
|
|
903
|
+
groupBy<T extends InvitationGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
904
|
+
orderBy: InvitationGroupByArgs['orderBy'];
|
|
905
|
+
} : {
|
|
906
|
+
orderBy?: InvitationGroupByArgs['orderBy'];
|
|
907
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
908
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
909
|
+
Error,
|
|
910
|
+
'Field ',
|
|
911
|
+
P,
|
|
912
|
+
` in "having" needs to be provided in "by"`
|
|
913
|
+
];
|
|
914
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
915
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
916
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
917
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
918
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
919
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
920
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, InvitationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInvitationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
921
|
+
/**
|
|
922
|
+
* Fields of the Invitation model
|
|
923
|
+
*/
|
|
924
|
+
readonly fields: InvitationFieldRefs;
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* The delegate class that acts as a "Promise-like" for Invitation.
|
|
928
|
+
* Why is this prefixed with `Prisma__`?
|
|
929
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
930
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
931
|
+
*/
|
|
932
|
+
export interface Prisma__InvitationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
933
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
934
|
+
organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
935
|
+
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>;
|
|
936
|
+
/**
|
|
937
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
938
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
939
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
940
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
941
|
+
*/
|
|
942
|
+
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>;
|
|
943
|
+
/**
|
|
944
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
945
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
946
|
+
* @returns A Promise for the completion of the callback.
|
|
947
|
+
*/
|
|
948
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
949
|
+
/**
|
|
950
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
951
|
+
* resolved value cannot be modified from the callback.
|
|
952
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
953
|
+
* @returns A Promise for the completion of the callback.
|
|
954
|
+
*/
|
|
955
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* Fields of the Invitation model
|
|
959
|
+
*/
|
|
960
|
+
export interface InvitationFieldRefs {
|
|
961
|
+
readonly id: Prisma.FieldRef<"Invitation", 'String'>;
|
|
962
|
+
readonly organizationId: Prisma.FieldRef<"Invitation", 'String'>;
|
|
963
|
+
readonly email: Prisma.FieldRef<"Invitation", 'String'>;
|
|
964
|
+
readonly role: Prisma.FieldRef<"Invitation", 'String'>;
|
|
965
|
+
readonly status: Prisma.FieldRef<"Invitation", 'String'>;
|
|
966
|
+
readonly expiresAt: Prisma.FieldRef<"Invitation", 'DateTime'>;
|
|
967
|
+
readonly inviterId: Prisma.FieldRef<"Invitation", 'String'>;
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* Invitation findUnique
|
|
971
|
+
*/
|
|
972
|
+
export type InvitationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
973
|
+
/**
|
|
974
|
+
* Select specific fields to fetch from the Invitation
|
|
975
|
+
*/
|
|
976
|
+
select?: Prisma.InvitationSelect<ExtArgs> | null;
|
|
977
|
+
/**
|
|
978
|
+
* Omit specific fields from the Invitation
|
|
979
|
+
*/
|
|
980
|
+
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
981
|
+
/**
|
|
982
|
+
* Choose, which related nodes to fetch as well
|
|
983
|
+
*/
|
|
984
|
+
include?: Prisma.InvitationInclude<ExtArgs> | null;
|
|
985
|
+
/**
|
|
986
|
+
* Filter, which Invitation to fetch.
|
|
987
|
+
*/
|
|
988
|
+
where: Prisma.InvitationWhereUniqueInput;
|
|
989
|
+
};
|
|
990
|
+
/**
|
|
991
|
+
* Invitation findUniqueOrThrow
|
|
992
|
+
*/
|
|
993
|
+
export type InvitationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
994
|
+
/**
|
|
995
|
+
* Select specific fields to fetch from the Invitation
|
|
996
|
+
*/
|
|
997
|
+
select?: Prisma.InvitationSelect<ExtArgs> | null;
|
|
998
|
+
/**
|
|
999
|
+
* Omit specific fields from the Invitation
|
|
1000
|
+
*/
|
|
1001
|
+
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
1002
|
+
/**
|
|
1003
|
+
* Choose, which related nodes to fetch as well
|
|
1004
|
+
*/
|
|
1005
|
+
include?: Prisma.InvitationInclude<ExtArgs> | null;
|
|
1006
|
+
/**
|
|
1007
|
+
* Filter, which Invitation to fetch.
|
|
1008
|
+
*/
|
|
1009
|
+
where: Prisma.InvitationWhereUniqueInput;
|
|
1010
|
+
};
|
|
1011
|
+
/**
|
|
1012
|
+
* Invitation findFirst
|
|
1013
|
+
*/
|
|
1014
|
+
export type InvitationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1015
|
+
/**
|
|
1016
|
+
* Select specific fields to fetch from the Invitation
|
|
1017
|
+
*/
|
|
1018
|
+
select?: Prisma.InvitationSelect<ExtArgs> | null;
|
|
1019
|
+
/**
|
|
1020
|
+
* Omit specific fields from the Invitation
|
|
1021
|
+
*/
|
|
1022
|
+
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
1023
|
+
/**
|
|
1024
|
+
* Choose, which related nodes to fetch as well
|
|
1025
|
+
*/
|
|
1026
|
+
include?: Prisma.InvitationInclude<ExtArgs> | null;
|
|
1027
|
+
/**
|
|
1028
|
+
* Filter, which Invitation to fetch.
|
|
1029
|
+
*/
|
|
1030
|
+
where?: Prisma.InvitationWhereInput;
|
|
1031
|
+
/**
|
|
1032
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1033
|
+
*
|
|
1034
|
+
* Determine the order of Invitations to fetch.
|
|
1035
|
+
*/
|
|
1036
|
+
orderBy?: Prisma.InvitationOrderByWithRelationInput | Prisma.InvitationOrderByWithRelationInput[];
|
|
1037
|
+
/**
|
|
1038
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1039
|
+
*
|
|
1040
|
+
* Sets the position for searching for Invitations.
|
|
1041
|
+
*/
|
|
1042
|
+
cursor?: Prisma.InvitationWhereUniqueInput;
|
|
1043
|
+
/**
|
|
1044
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1045
|
+
*
|
|
1046
|
+
* Take `±n` Invitations from the position of the cursor.
|
|
1047
|
+
*/
|
|
1048
|
+
take?: number;
|
|
1049
|
+
/**
|
|
1050
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1051
|
+
*
|
|
1052
|
+
* Skip the first `n` Invitations.
|
|
1053
|
+
*/
|
|
1054
|
+
skip?: number;
|
|
1055
|
+
/**
|
|
1056
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1057
|
+
*
|
|
1058
|
+
* Filter by unique combinations of Invitations.
|
|
1059
|
+
*/
|
|
1060
|
+
distinct?: Prisma.InvitationScalarFieldEnum | Prisma.InvitationScalarFieldEnum[];
|
|
1061
|
+
};
|
|
1062
|
+
/**
|
|
1063
|
+
* Invitation findFirstOrThrow
|
|
1064
|
+
*/
|
|
1065
|
+
export type InvitationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1066
|
+
/**
|
|
1067
|
+
* Select specific fields to fetch from the Invitation
|
|
1068
|
+
*/
|
|
1069
|
+
select?: Prisma.InvitationSelect<ExtArgs> | null;
|
|
1070
|
+
/**
|
|
1071
|
+
* Omit specific fields from the Invitation
|
|
1072
|
+
*/
|
|
1073
|
+
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
1074
|
+
/**
|
|
1075
|
+
* Choose, which related nodes to fetch as well
|
|
1076
|
+
*/
|
|
1077
|
+
include?: Prisma.InvitationInclude<ExtArgs> | null;
|
|
1078
|
+
/**
|
|
1079
|
+
* Filter, which Invitation to fetch.
|
|
1080
|
+
*/
|
|
1081
|
+
where?: Prisma.InvitationWhereInput;
|
|
1082
|
+
/**
|
|
1083
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1084
|
+
*
|
|
1085
|
+
* Determine the order of Invitations to fetch.
|
|
1086
|
+
*/
|
|
1087
|
+
orderBy?: Prisma.InvitationOrderByWithRelationInput | Prisma.InvitationOrderByWithRelationInput[];
|
|
1088
|
+
/**
|
|
1089
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1090
|
+
*
|
|
1091
|
+
* Sets the position for searching for Invitations.
|
|
1092
|
+
*/
|
|
1093
|
+
cursor?: Prisma.InvitationWhereUniqueInput;
|
|
1094
|
+
/**
|
|
1095
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1096
|
+
*
|
|
1097
|
+
* Take `±n` Invitations from the position of the cursor.
|
|
1098
|
+
*/
|
|
1099
|
+
take?: number;
|
|
1100
|
+
/**
|
|
1101
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1102
|
+
*
|
|
1103
|
+
* Skip the first `n` Invitations.
|
|
1104
|
+
*/
|
|
1105
|
+
skip?: number;
|
|
1106
|
+
/**
|
|
1107
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1108
|
+
*
|
|
1109
|
+
* Filter by unique combinations of Invitations.
|
|
1110
|
+
*/
|
|
1111
|
+
distinct?: Prisma.InvitationScalarFieldEnum | Prisma.InvitationScalarFieldEnum[];
|
|
1112
|
+
};
|
|
1113
|
+
/**
|
|
1114
|
+
* Invitation findMany
|
|
1115
|
+
*/
|
|
1116
|
+
export type InvitationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1117
|
+
/**
|
|
1118
|
+
* Select specific fields to fetch from the Invitation
|
|
1119
|
+
*/
|
|
1120
|
+
select?: Prisma.InvitationSelect<ExtArgs> | null;
|
|
1121
|
+
/**
|
|
1122
|
+
* Omit specific fields from the Invitation
|
|
1123
|
+
*/
|
|
1124
|
+
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
1125
|
+
/**
|
|
1126
|
+
* Choose, which related nodes to fetch as well
|
|
1127
|
+
*/
|
|
1128
|
+
include?: Prisma.InvitationInclude<ExtArgs> | null;
|
|
1129
|
+
/**
|
|
1130
|
+
* Filter, which Invitations to fetch.
|
|
1131
|
+
*/
|
|
1132
|
+
where?: Prisma.InvitationWhereInput;
|
|
1133
|
+
/**
|
|
1134
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1135
|
+
*
|
|
1136
|
+
* Determine the order of Invitations to fetch.
|
|
1137
|
+
*/
|
|
1138
|
+
orderBy?: Prisma.InvitationOrderByWithRelationInput | Prisma.InvitationOrderByWithRelationInput[];
|
|
1139
|
+
/**
|
|
1140
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1141
|
+
*
|
|
1142
|
+
* Sets the position for listing Invitations.
|
|
1143
|
+
*/
|
|
1144
|
+
cursor?: Prisma.InvitationWhereUniqueInput;
|
|
1145
|
+
/**
|
|
1146
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1147
|
+
*
|
|
1148
|
+
* Take `±n` Invitations from the position of the cursor.
|
|
1149
|
+
*/
|
|
1150
|
+
take?: number;
|
|
1151
|
+
/**
|
|
1152
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1153
|
+
*
|
|
1154
|
+
* Skip the first `n` Invitations.
|
|
1155
|
+
*/
|
|
1156
|
+
skip?: number;
|
|
1157
|
+
distinct?: Prisma.InvitationScalarFieldEnum | Prisma.InvitationScalarFieldEnum[];
|
|
1158
|
+
};
|
|
1159
|
+
/**
|
|
1160
|
+
* Invitation create
|
|
1161
|
+
*/
|
|
1162
|
+
export type InvitationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1163
|
+
/**
|
|
1164
|
+
* Select specific fields to fetch from the Invitation
|
|
1165
|
+
*/
|
|
1166
|
+
select?: Prisma.InvitationSelect<ExtArgs> | null;
|
|
1167
|
+
/**
|
|
1168
|
+
* Omit specific fields from the Invitation
|
|
1169
|
+
*/
|
|
1170
|
+
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
1171
|
+
/**
|
|
1172
|
+
* Choose, which related nodes to fetch as well
|
|
1173
|
+
*/
|
|
1174
|
+
include?: Prisma.InvitationInclude<ExtArgs> | null;
|
|
1175
|
+
/**
|
|
1176
|
+
* The data needed to create a Invitation.
|
|
1177
|
+
*/
|
|
1178
|
+
data: Prisma.XOR<Prisma.InvitationCreateInput, Prisma.InvitationUncheckedCreateInput>;
|
|
1179
|
+
};
|
|
1180
|
+
/**
|
|
1181
|
+
* Invitation createMany
|
|
1182
|
+
*/
|
|
1183
|
+
export type InvitationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1184
|
+
/**
|
|
1185
|
+
* The data used to create many Invitations.
|
|
1186
|
+
*/
|
|
1187
|
+
data: Prisma.InvitationCreateManyInput | Prisma.InvitationCreateManyInput[];
|
|
1188
|
+
skipDuplicates?: boolean;
|
|
1189
|
+
};
|
|
1190
|
+
/**
|
|
1191
|
+
* Invitation createManyAndReturn
|
|
1192
|
+
*/
|
|
1193
|
+
export type InvitationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1194
|
+
/**
|
|
1195
|
+
* Select specific fields to fetch from the Invitation
|
|
1196
|
+
*/
|
|
1197
|
+
select?: Prisma.InvitationSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1198
|
+
/**
|
|
1199
|
+
* Omit specific fields from the Invitation
|
|
1200
|
+
*/
|
|
1201
|
+
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
1202
|
+
/**
|
|
1203
|
+
* The data used to create many Invitations.
|
|
1204
|
+
*/
|
|
1205
|
+
data: Prisma.InvitationCreateManyInput | Prisma.InvitationCreateManyInput[];
|
|
1206
|
+
skipDuplicates?: boolean;
|
|
1207
|
+
/**
|
|
1208
|
+
* Choose, which related nodes to fetch as well
|
|
1209
|
+
*/
|
|
1210
|
+
include?: Prisma.InvitationIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1211
|
+
};
|
|
1212
|
+
/**
|
|
1213
|
+
* Invitation update
|
|
1214
|
+
*/
|
|
1215
|
+
export type InvitationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1216
|
+
/**
|
|
1217
|
+
* Select specific fields to fetch from the Invitation
|
|
1218
|
+
*/
|
|
1219
|
+
select?: Prisma.InvitationSelect<ExtArgs> | null;
|
|
1220
|
+
/**
|
|
1221
|
+
* Omit specific fields from the Invitation
|
|
1222
|
+
*/
|
|
1223
|
+
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
1224
|
+
/**
|
|
1225
|
+
* Choose, which related nodes to fetch as well
|
|
1226
|
+
*/
|
|
1227
|
+
include?: Prisma.InvitationInclude<ExtArgs> | null;
|
|
1228
|
+
/**
|
|
1229
|
+
* The data needed to update a Invitation.
|
|
1230
|
+
*/
|
|
1231
|
+
data: Prisma.XOR<Prisma.InvitationUpdateInput, Prisma.InvitationUncheckedUpdateInput>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Choose, which Invitation to update.
|
|
1234
|
+
*/
|
|
1235
|
+
where: Prisma.InvitationWhereUniqueInput;
|
|
1236
|
+
};
|
|
1237
|
+
/**
|
|
1238
|
+
* Invitation updateMany
|
|
1239
|
+
*/
|
|
1240
|
+
export type InvitationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1241
|
+
/**
|
|
1242
|
+
* The data used to update Invitations.
|
|
1243
|
+
*/
|
|
1244
|
+
data: Prisma.XOR<Prisma.InvitationUpdateManyMutationInput, Prisma.InvitationUncheckedUpdateManyInput>;
|
|
1245
|
+
/**
|
|
1246
|
+
* Filter which Invitations to update
|
|
1247
|
+
*/
|
|
1248
|
+
where?: Prisma.InvitationWhereInput;
|
|
1249
|
+
/**
|
|
1250
|
+
* Limit how many Invitations to update.
|
|
1251
|
+
*/
|
|
1252
|
+
limit?: number;
|
|
1253
|
+
};
|
|
1254
|
+
/**
|
|
1255
|
+
* Invitation updateManyAndReturn
|
|
1256
|
+
*/
|
|
1257
|
+
export type InvitationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1258
|
+
/**
|
|
1259
|
+
* Select specific fields to fetch from the Invitation
|
|
1260
|
+
*/
|
|
1261
|
+
select?: Prisma.InvitationSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1262
|
+
/**
|
|
1263
|
+
* Omit specific fields from the Invitation
|
|
1264
|
+
*/
|
|
1265
|
+
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
1266
|
+
/**
|
|
1267
|
+
* The data used to update Invitations.
|
|
1268
|
+
*/
|
|
1269
|
+
data: Prisma.XOR<Prisma.InvitationUpdateManyMutationInput, Prisma.InvitationUncheckedUpdateManyInput>;
|
|
1270
|
+
/**
|
|
1271
|
+
* Filter which Invitations to update
|
|
1272
|
+
*/
|
|
1273
|
+
where?: Prisma.InvitationWhereInput;
|
|
1274
|
+
/**
|
|
1275
|
+
* Limit how many Invitations to update.
|
|
1276
|
+
*/
|
|
1277
|
+
limit?: number;
|
|
1278
|
+
/**
|
|
1279
|
+
* Choose, which related nodes to fetch as well
|
|
1280
|
+
*/
|
|
1281
|
+
include?: Prisma.InvitationIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1282
|
+
};
|
|
1283
|
+
/**
|
|
1284
|
+
* Invitation upsert
|
|
1285
|
+
*/
|
|
1286
|
+
export type InvitationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1287
|
+
/**
|
|
1288
|
+
* Select specific fields to fetch from the Invitation
|
|
1289
|
+
*/
|
|
1290
|
+
select?: Prisma.InvitationSelect<ExtArgs> | null;
|
|
1291
|
+
/**
|
|
1292
|
+
* Omit specific fields from the Invitation
|
|
1293
|
+
*/
|
|
1294
|
+
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
1295
|
+
/**
|
|
1296
|
+
* Choose, which related nodes to fetch as well
|
|
1297
|
+
*/
|
|
1298
|
+
include?: Prisma.InvitationInclude<ExtArgs> | null;
|
|
1299
|
+
/**
|
|
1300
|
+
* The filter to search for the Invitation to update in case it exists.
|
|
1301
|
+
*/
|
|
1302
|
+
where: Prisma.InvitationWhereUniqueInput;
|
|
1303
|
+
/**
|
|
1304
|
+
* In case the Invitation found by the `where` argument doesn't exist, create a new Invitation with this data.
|
|
1305
|
+
*/
|
|
1306
|
+
create: Prisma.XOR<Prisma.InvitationCreateInput, Prisma.InvitationUncheckedCreateInput>;
|
|
1307
|
+
/**
|
|
1308
|
+
* In case the Invitation was found with the provided `where` argument, update it with this data.
|
|
1309
|
+
*/
|
|
1310
|
+
update: Prisma.XOR<Prisma.InvitationUpdateInput, Prisma.InvitationUncheckedUpdateInput>;
|
|
1311
|
+
};
|
|
1312
|
+
/**
|
|
1313
|
+
* Invitation delete
|
|
1314
|
+
*/
|
|
1315
|
+
export type InvitationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1316
|
+
/**
|
|
1317
|
+
* Select specific fields to fetch from the Invitation
|
|
1318
|
+
*/
|
|
1319
|
+
select?: Prisma.InvitationSelect<ExtArgs> | null;
|
|
1320
|
+
/**
|
|
1321
|
+
* Omit specific fields from the Invitation
|
|
1322
|
+
*/
|
|
1323
|
+
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
1324
|
+
/**
|
|
1325
|
+
* Choose, which related nodes to fetch as well
|
|
1326
|
+
*/
|
|
1327
|
+
include?: Prisma.InvitationInclude<ExtArgs> | null;
|
|
1328
|
+
/**
|
|
1329
|
+
* Filter which Invitation to delete.
|
|
1330
|
+
*/
|
|
1331
|
+
where: Prisma.InvitationWhereUniqueInput;
|
|
1332
|
+
};
|
|
1333
|
+
/**
|
|
1334
|
+
* Invitation deleteMany
|
|
1335
|
+
*/
|
|
1336
|
+
export type InvitationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1337
|
+
/**
|
|
1338
|
+
* Filter which Invitations to delete
|
|
1339
|
+
*/
|
|
1340
|
+
where?: Prisma.InvitationWhereInput;
|
|
1341
|
+
/**
|
|
1342
|
+
* Limit how many Invitations to delete.
|
|
1343
|
+
*/
|
|
1344
|
+
limit?: number;
|
|
1345
|
+
};
|
|
1346
|
+
/**
|
|
1347
|
+
* Invitation without action
|
|
1348
|
+
*/
|
|
1349
|
+
export type InvitationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1350
|
+
/**
|
|
1351
|
+
* Select specific fields to fetch from the Invitation
|
|
1352
|
+
*/
|
|
1353
|
+
select?: Prisma.InvitationSelect<ExtArgs> | null;
|
|
1354
|
+
/**
|
|
1355
|
+
* Omit specific fields from the Invitation
|
|
1356
|
+
*/
|
|
1357
|
+
omit?: Prisma.InvitationOmit<ExtArgs> | null;
|
|
1358
|
+
/**
|
|
1359
|
+
* Choose, which related nodes to fetch as well
|
|
1360
|
+
*/
|
|
1361
|
+
include?: Prisma.InvitationInclude<ExtArgs> | null;
|
|
1362
|
+
};
|
|
1363
|
+
export {};
|