@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,1404 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file exports the `Modifier` 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 Modifier
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export type ModifierModel = runtime.Types.Result.DefaultSelection<Prisma.$ModifierPayload>;
|
|
13
|
+
export type AggregateModifier = {
|
|
14
|
+
_count: ModifierCountAggregateOutputType | null;
|
|
15
|
+
_avg: ModifierAvgAggregateOutputType | null;
|
|
16
|
+
_sum: ModifierSumAggregateOutputType | null;
|
|
17
|
+
_min: ModifierMinAggregateOutputType | null;
|
|
18
|
+
_max: ModifierMaxAggregateOutputType | null;
|
|
19
|
+
};
|
|
20
|
+
export type ModifierAvgAggregateOutputType = {
|
|
21
|
+
price: number | null;
|
|
22
|
+
};
|
|
23
|
+
export type ModifierSumAggregateOutputType = {
|
|
24
|
+
price: number | null;
|
|
25
|
+
};
|
|
26
|
+
export type ModifierMinAggregateOutputType = {
|
|
27
|
+
id: string | null;
|
|
28
|
+
title: string | null;
|
|
29
|
+
description: string | null;
|
|
30
|
+
sku: string | null;
|
|
31
|
+
price: number | null;
|
|
32
|
+
modifierGroupId: string | null;
|
|
33
|
+
};
|
|
34
|
+
export type ModifierMaxAggregateOutputType = {
|
|
35
|
+
id: string | null;
|
|
36
|
+
title: string | null;
|
|
37
|
+
description: string | null;
|
|
38
|
+
sku: string | null;
|
|
39
|
+
price: number | null;
|
|
40
|
+
modifierGroupId: string | null;
|
|
41
|
+
};
|
|
42
|
+
export type ModifierCountAggregateOutputType = {
|
|
43
|
+
id: number;
|
|
44
|
+
title: number;
|
|
45
|
+
description: number;
|
|
46
|
+
sku: number;
|
|
47
|
+
price: number;
|
|
48
|
+
modifierGroupId: number;
|
|
49
|
+
_all: number;
|
|
50
|
+
};
|
|
51
|
+
export type ModifierAvgAggregateInputType = {
|
|
52
|
+
price?: true;
|
|
53
|
+
};
|
|
54
|
+
export type ModifierSumAggregateInputType = {
|
|
55
|
+
price?: true;
|
|
56
|
+
};
|
|
57
|
+
export type ModifierMinAggregateInputType = {
|
|
58
|
+
id?: true;
|
|
59
|
+
title?: true;
|
|
60
|
+
description?: true;
|
|
61
|
+
sku?: true;
|
|
62
|
+
price?: true;
|
|
63
|
+
modifierGroupId?: true;
|
|
64
|
+
};
|
|
65
|
+
export type ModifierMaxAggregateInputType = {
|
|
66
|
+
id?: true;
|
|
67
|
+
title?: true;
|
|
68
|
+
description?: true;
|
|
69
|
+
sku?: true;
|
|
70
|
+
price?: true;
|
|
71
|
+
modifierGroupId?: true;
|
|
72
|
+
};
|
|
73
|
+
export type ModifierCountAggregateInputType = {
|
|
74
|
+
id?: true;
|
|
75
|
+
title?: true;
|
|
76
|
+
description?: true;
|
|
77
|
+
sku?: true;
|
|
78
|
+
price?: true;
|
|
79
|
+
modifierGroupId?: true;
|
|
80
|
+
_all?: true;
|
|
81
|
+
};
|
|
82
|
+
export type ModifierAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
83
|
+
/**
|
|
84
|
+
* Filter which Modifier to aggregate.
|
|
85
|
+
*/
|
|
86
|
+
where?: Prisma.ModifierWhereInput;
|
|
87
|
+
/**
|
|
88
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
89
|
+
*
|
|
90
|
+
* Determine the order of Modifiers to fetch.
|
|
91
|
+
*/
|
|
92
|
+
orderBy?: Prisma.ModifierOrderByWithRelationInput | Prisma.ModifierOrderByWithRelationInput[];
|
|
93
|
+
/**
|
|
94
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
95
|
+
*
|
|
96
|
+
* Sets the start position
|
|
97
|
+
*/
|
|
98
|
+
cursor?: Prisma.ModifierWhereUniqueInput;
|
|
99
|
+
/**
|
|
100
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
101
|
+
*
|
|
102
|
+
* Take `±n` Modifiers from the position of the cursor.
|
|
103
|
+
*/
|
|
104
|
+
take?: number;
|
|
105
|
+
/**
|
|
106
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
107
|
+
*
|
|
108
|
+
* Skip the first `n` Modifiers.
|
|
109
|
+
*/
|
|
110
|
+
skip?: number;
|
|
111
|
+
/**
|
|
112
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
113
|
+
*
|
|
114
|
+
* Count returned Modifiers
|
|
115
|
+
**/
|
|
116
|
+
_count?: true | ModifierCountAggregateInputType;
|
|
117
|
+
/**
|
|
118
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
119
|
+
*
|
|
120
|
+
* Select which fields to average
|
|
121
|
+
**/
|
|
122
|
+
_avg?: ModifierAvgAggregateInputType;
|
|
123
|
+
/**
|
|
124
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
125
|
+
*
|
|
126
|
+
* Select which fields to sum
|
|
127
|
+
**/
|
|
128
|
+
_sum?: ModifierSumAggregateInputType;
|
|
129
|
+
/**
|
|
130
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
131
|
+
*
|
|
132
|
+
* Select which fields to find the minimum value
|
|
133
|
+
**/
|
|
134
|
+
_min?: ModifierMinAggregateInputType;
|
|
135
|
+
/**
|
|
136
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
137
|
+
*
|
|
138
|
+
* Select which fields to find the maximum value
|
|
139
|
+
**/
|
|
140
|
+
_max?: ModifierMaxAggregateInputType;
|
|
141
|
+
};
|
|
142
|
+
export type GetModifierAggregateType<T extends ModifierAggregateArgs> = {
|
|
143
|
+
[P in keyof T & keyof AggregateModifier]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateModifier[P]> : Prisma.GetScalarType<T[P], AggregateModifier[P]>;
|
|
144
|
+
};
|
|
145
|
+
export type ModifierGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
146
|
+
where?: Prisma.ModifierWhereInput;
|
|
147
|
+
orderBy?: Prisma.ModifierOrderByWithAggregationInput | Prisma.ModifierOrderByWithAggregationInput[];
|
|
148
|
+
by: Prisma.ModifierScalarFieldEnum[] | Prisma.ModifierScalarFieldEnum;
|
|
149
|
+
having?: Prisma.ModifierScalarWhereWithAggregatesInput;
|
|
150
|
+
take?: number;
|
|
151
|
+
skip?: number;
|
|
152
|
+
_count?: ModifierCountAggregateInputType | true;
|
|
153
|
+
_avg?: ModifierAvgAggregateInputType;
|
|
154
|
+
_sum?: ModifierSumAggregateInputType;
|
|
155
|
+
_min?: ModifierMinAggregateInputType;
|
|
156
|
+
_max?: ModifierMaxAggregateInputType;
|
|
157
|
+
};
|
|
158
|
+
export type ModifierGroupByOutputType = {
|
|
159
|
+
id: string;
|
|
160
|
+
title: string;
|
|
161
|
+
description: string | null;
|
|
162
|
+
sku: string | null;
|
|
163
|
+
price: number;
|
|
164
|
+
modifierGroupId: string;
|
|
165
|
+
_count: ModifierCountAggregateOutputType | null;
|
|
166
|
+
_avg: ModifierAvgAggregateOutputType | null;
|
|
167
|
+
_sum: ModifierSumAggregateOutputType | null;
|
|
168
|
+
_min: ModifierMinAggregateOutputType | null;
|
|
169
|
+
_max: ModifierMaxAggregateOutputType | null;
|
|
170
|
+
};
|
|
171
|
+
type GetModifierGroupByPayload<T extends ModifierGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ModifierGroupByOutputType, T['by']> & {
|
|
172
|
+
[P in ((keyof T) & (keyof ModifierGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ModifierGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ModifierGroupByOutputType[P]>;
|
|
173
|
+
}>>;
|
|
174
|
+
export type ModifierWhereInput = {
|
|
175
|
+
AND?: Prisma.ModifierWhereInput | Prisma.ModifierWhereInput[];
|
|
176
|
+
OR?: Prisma.ModifierWhereInput[];
|
|
177
|
+
NOT?: Prisma.ModifierWhereInput | Prisma.ModifierWhereInput[];
|
|
178
|
+
id?: Prisma.StringFilter<"Modifier"> | string;
|
|
179
|
+
title?: Prisma.StringFilter<"Modifier"> | string;
|
|
180
|
+
description?: Prisma.StringNullableFilter<"Modifier"> | string | null;
|
|
181
|
+
sku?: Prisma.StringNullableFilter<"Modifier"> | string | null;
|
|
182
|
+
price?: Prisma.FloatFilter<"Modifier"> | number;
|
|
183
|
+
modifierGroupId?: Prisma.StringFilter<"Modifier"> | string;
|
|
184
|
+
modifierGroup?: Prisma.XOR<Prisma.ModifierGroupScalarRelationFilter, Prisma.ModifierGroupWhereInput>;
|
|
185
|
+
images?: Prisma.FileListRelationFilter;
|
|
186
|
+
};
|
|
187
|
+
export type ModifierOrderByWithRelationInput = {
|
|
188
|
+
id?: Prisma.SortOrder;
|
|
189
|
+
title?: Prisma.SortOrder;
|
|
190
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
191
|
+
sku?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
192
|
+
price?: Prisma.SortOrder;
|
|
193
|
+
modifierGroupId?: Prisma.SortOrder;
|
|
194
|
+
modifierGroup?: Prisma.ModifierGroupOrderByWithRelationInput;
|
|
195
|
+
images?: Prisma.FileOrderByRelationAggregateInput;
|
|
196
|
+
};
|
|
197
|
+
export type ModifierWhereUniqueInput = Prisma.AtLeast<{
|
|
198
|
+
id?: string;
|
|
199
|
+
AND?: Prisma.ModifierWhereInput | Prisma.ModifierWhereInput[];
|
|
200
|
+
OR?: Prisma.ModifierWhereInput[];
|
|
201
|
+
NOT?: Prisma.ModifierWhereInput | Prisma.ModifierWhereInput[];
|
|
202
|
+
title?: Prisma.StringFilter<"Modifier"> | string;
|
|
203
|
+
description?: Prisma.StringNullableFilter<"Modifier"> | string | null;
|
|
204
|
+
sku?: Prisma.StringNullableFilter<"Modifier"> | string | null;
|
|
205
|
+
price?: Prisma.FloatFilter<"Modifier"> | number;
|
|
206
|
+
modifierGroupId?: Prisma.StringFilter<"Modifier"> | string;
|
|
207
|
+
modifierGroup?: Prisma.XOR<Prisma.ModifierGroupScalarRelationFilter, Prisma.ModifierGroupWhereInput>;
|
|
208
|
+
images?: Prisma.FileListRelationFilter;
|
|
209
|
+
}, "id">;
|
|
210
|
+
export type ModifierOrderByWithAggregationInput = {
|
|
211
|
+
id?: Prisma.SortOrder;
|
|
212
|
+
title?: Prisma.SortOrder;
|
|
213
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
214
|
+
sku?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
215
|
+
price?: Prisma.SortOrder;
|
|
216
|
+
modifierGroupId?: Prisma.SortOrder;
|
|
217
|
+
_count?: Prisma.ModifierCountOrderByAggregateInput;
|
|
218
|
+
_avg?: Prisma.ModifierAvgOrderByAggregateInput;
|
|
219
|
+
_max?: Prisma.ModifierMaxOrderByAggregateInput;
|
|
220
|
+
_min?: Prisma.ModifierMinOrderByAggregateInput;
|
|
221
|
+
_sum?: Prisma.ModifierSumOrderByAggregateInput;
|
|
222
|
+
};
|
|
223
|
+
export type ModifierScalarWhereWithAggregatesInput = {
|
|
224
|
+
AND?: Prisma.ModifierScalarWhereWithAggregatesInput | Prisma.ModifierScalarWhereWithAggregatesInput[];
|
|
225
|
+
OR?: Prisma.ModifierScalarWhereWithAggregatesInput[];
|
|
226
|
+
NOT?: Prisma.ModifierScalarWhereWithAggregatesInput | Prisma.ModifierScalarWhereWithAggregatesInput[];
|
|
227
|
+
id?: Prisma.StringWithAggregatesFilter<"Modifier"> | string;
|
|
228
|
+
title?: Prisma.StringWithAggregatesFilter<"Modifier"> | string;
|
|
229
|
+
description?: Prisma.StringNullableWithAggregatesFilter<"Modifier"> | string | null;
|
|
230
|
+
sku?: Prisma.StringNullableWithAggregatesFilter<"Modifier"> | string | null;
|
|
231
|
+
price?: Prisma.FloatWithAggregatesFilter<"Modifier"> | number;
|
|
232
|
+
modifierGroupId?: Prisma.StringWithAggregatesFilter<"Modifier"> | string;
|
|
233
|
+
};
|
|
234
|
+
export type ModifierCreateInput = {
|
|
235
|
+
id?: string;
|
|
236
|
+
title: string;
|
|
237
|
+
description?: string | null;
|
|
238
|
+
sku?: string | null;
|
|
239
|
+
price: number;
|
|
240
|
+
modifierGroup: Prisma.ModifierGroupCreateNestedOneWithoutModifiersInput;
|
|
241
|
+
images?: Prisma.FileCreateNestedManyWithoutModifierImagesInput;
|
|
242
|
+
};
|
|
243
|
+
export type ModifierUncheckedCreateInput = {
|
|
244
|
+
id?: string;
|
|
245
|
+
title: string;
|
|
246
|
+
description?: string | null;
|
|
247
|
+
sku?: string | null;
|
|
248
|
+
price: number;
|
|
249
|
+
modifierGroupId: string;
|
|
250
|
+
images?: Prisma.FileUncheckedCreateNestedManyWithoutModifierImagesInput;
|
|
251
|
+
};
|
|
252
|
+
export type ModifierUpdateInput = {
|
|
253
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
254
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
255
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
256
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
257
|
+
price?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
258
|
+
modifierGroup?: Prisma.ModifierGroupUpdateOneRequiredWithoutModifiersNestedInput;
|
|
259
|
+
images?: Prisma.FileUpdateManyWithoutModifierImagesNestedInput;
|
|
260
|
+
};
|
|
261
|
+
export type ModifierUncheckedUpdateInput = {
|
|
262
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
263
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
264
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
265
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
266
|
+
price?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
267
|
+
modifierGroupId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
268
|
+
images?: Prisma.FileUncheckedUpdateManyWithoutModifierImagesNestedInput;
|
|
269
|
+
};
|
|
270
|
+
export type ModifierCreateManyInput = {
|
|
271
|
+
id?: string;
|
|
272
|
+
title: string;
|
|
273
|
+
description?: string | null;
|
|
274
|
+
sku?: string | null;
|
|
275
|
+
price: number;
|
|
276
|
+
modifierGroupId: string;
|
|
277
|
+
};
|
|
278
|
+
export type ModifierUpdateManyMutationInput = {
|
|
279
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
280
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
281
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
282
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
283
|
+
price?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
284
|
+
};
|
|
285
|
+
export type ModifierUncheckedUpdateManyInput = {
|
|
286
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
287
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
288
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
289
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
290
|
+
price?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
291
|
+
modifierGroupId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
292
|
+
};
|
|
293
|
+
export type ModifierListRelationFilter = {
|
|
294
|
+
every?: Prisma.ModifierWhereInput;
|
|
295
|
+
some?: Prisma.ModifierWhereInput;
|
|
296
|
+
none?: Prisma.ModifierWhereInput;
|
|
297
|
+
};
|
|
298
|
+
export type ModifierOrderByRelationAggregateInput = {
|
|
299
|
+
_count?: Prisma.SortOrder;
|
|
300
|
+
};
|
|
301
|
+
export type ModifierCountOrderByAggregateInput = {
|
|
302
|
+
id?: Prisma.SortOrder;
|
|
303
|
+
title?: Prisma.SortOrder;
|
|
304
|
+
description?: Prisma.SortOrder;
|
|
305
|
+
sku?: Prisma.SortOrder;
|
|
306
|
+
price?: Prisma.SortOrder;
|
|
307
|
+
modifierGroupId?: Prisma.SortOrder;
|
|
308
|
+
};
|
|
309
|
+
export type ModifierAvgOrderByAggregateInput = {
|
|
310
|
+
price?: Prisma.SortOrder;
|
|
311
|
+
};
|
|
312
|
+
export type ModifierMaxOrderByAggregateInput = {
|
|
313
|
+
id?: Prisma.SortOrder;
|
|
314
|
+
title?: Prisma.SortOrder;
|
|
315
|
+
description?: Prisma.SortOrder;
|
|
316
|
+
sku?: Prisma.SortOrder;
|
|
317
|
+
price?: Prisma.SortOrder;
|
|
318
|
+
modifierGroupId?: Prisma.SortOrder;
|
|
319
|
+
};
|
|
320
|
+
export type ModifierMinOrderByAggregateInput = {
|
|
321
|
+
id?: Prisma.SortOrder;
|
|
322
|
+
title?: Prisma.SortOrder;
|
|
323
|
+
description?: Prisma.SortOrder;
|
|
324
|
+
sku?: Prisma.SortOrder;
|
|
325
|
+
price?: Prisma.SortOrder;
|
|
326
|
+
modifierGroupId?: Prisma.SortOrder;
|
|
327
|
+
};
|
|
328
|
+
export type ModifierSumOrderByAggregateInput = {
|
|
329
|
+
price?: Prisma.SortOrder;
|
|
330
|
+
};
|
|
331
|
+
export type ModifierCreateNestedManyWithoutImagesInput = {
|
|
332
|
+
create?: Prisma.XOR<Prisma.ModifierCreateWithoutImagesInput, Prisma.ModifierUncheckedCreateWithoutImagesInput> | Prisma.ModifierCreateWithoutImagesInput[] | Prisma.ModifierUncheckedCreateWithoutImagesInput[];
|
|
333
|
+
connectOrCreate?: Prisma.ModifierCreateOrConnectWithoutImagesInput | Prisma.ModifierCreateOrConnectWithoutImagesInput[];
|
|
334
|
+
connect?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
335
|
+
};
|
|
336
|
+
export type ModifierUncheckedCreateNestedManyWithoutImagesInput = {
|
|
337
|
+
create?: Prisma.XOR<Prisma.ModifierCreateWithoutImagesInput, Prisma.ModifierUncheckedCreateWithoutImagesInput> | Prisma.ModifierCreateWithoutImagesInput[] | Prisma.ModifierUncheckedCreateWithoutImagesInput[];
|
|
338
|
+
connectOrCreate?: Prisma.ModifierCreateOrConnectWithoutImagesInput | Prisma.ModifierCreateOrConnectWithoutImagesInput[];
|
|
339
|
+
connect?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
340
|
+
};
|
|
341
|
+
export type ModifierUpdateManyWithoutImagesNestedInput = {
|
|
342
|
+
create?: Prisma.XOR<Prisma.ModifierCreateWithoutImagesInput, Prisma.ModifierUncheckedCreateWithoutImagesInput> | Prisma.ModifierCreateWithoutImagesInput[] | Prisma.ModifierUncheckedCreateWithoutImagesInput[];
|
|
343
|
+
connectOrCreate?: Prisma.ModifierCreateOrConnectWithoutImagesInput | Prisma.ModifierCreateOrConnectWithoutImagesInput[];
|
|
344
|
+
upsert?: Prisma.ModifierUpsertWithWhereUniqueWithoutImagesInput | Prisma.ModifierUpsertWithWhereUniqueWithoutImagesInput[];
|
|
345
|
+
set?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
346
|
+
disconnect?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
347
|
+
delete?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
348
|
+
connect?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
349
|
+
update?: Prisma.ModifierUpdateWithWhereUniqueWithoutImagesInput | Prisma.ModifierUpdateWithWhereUniqueWithoutImagesInput[];
|
|
350
|
+
updateMany?: Prisma.ModifierUpdateManyWithWhereWithoutImagesInput | Prisma.ModifierUpdateManyWithWhereWithoutImagesInput[];
|
|
351
|
+
deleteMany?: Prisma.ModifierScalarWhereInput | Prisma.ModifierScalarWhereInput[];
|
|
352
|
+
};
|
|
353
|
+
export type ModifierUncheckedUpdateManyWithoutImagesNestedInput = {
|
|
354
|
+
create?: Prisma.XOR<Prisma.ModifierCreateWithoutImagesInput, Prisma.ModifierUncheckedCreateWithoutImagesInput> | Prisma.ModifierCreateWithoutImagesInput[] | Prisma.ModifierUncheckedCreateWithoutImagesInput[];
|
|
355
|
+
connectOrCreate?: Prisma.ModifierCreateOrConnectWithoutImagesInput | Prisma.ModifierCreateOrConnectWithoutImagesInput[];
|
|
356
|
+
upsert?: Prisma.ModifierUpsertWithWhereUniqueWithoutImagesInput | Prisma.ModifierUpsertWithWhereUniqueWithoutImagesInput[];
|
|
357
|
+
set?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
358
|
+
disconnect?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
359
|
+
delete?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
360
|
+
connect?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
361
|
+
update?: Prisma.ModifierUpdateWithWhereUniqueWithoutImagesInput | Prisma.ModifierUpdateWithWhereUniqueWithoutImagesInput[];
|
|
362
|
+
updateMany?: Prisma.ModifierUpdateManyWithWhereWithoutImagesInput | Prisma.ModifierUpdateManyWithWhereWithoutImagesInput[];
|
|
363
|
+
deleteMany?: Prisma.ModifierScalarWhereInput | Prisma.ModifierScalarWhereInput[];
|
|
364
|
+
};
|
|
365
|
+
export type ModifierCreateNestedManyWithoutModifierGroupInput = {
|
|
366
|
+
create?: Prisma.XOR<Prisma.ModifierCreateWithoutModifierGroupInput, Prisma.ModifierUncheckedCreateWithoutModifierGroupInput> | Prisma.ModifierCreateWithoutModifierGroupInput[] | Prisma.ModifierUncheckedCreateWithoutModifierGroupInput[];
|
|
367
|
+
connectOrCreate?: Prisma.ModifierCreateOrConnectWithoutModifierGroupInput | Prisma.ModifierCreateOrConnectWithoutModifierGroupInput[];
|
|
368
|
+
createMany?: Prisma.ModifierCreateManyModifierGroupInputEnvelope;
|
|
369
|
+
connect?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
370
|
+
};
|
|
371
|
+
export type ModifierUncheckedCreateNestedManyWithoutModifierGroupInput = {
|
|
372
|
+
create?: Prisma.XOR<Prisma.ModifierCreateWithoutModifierGroupInput, Prisma.ModifierUncheckedCreateWithoutModifierGroupInput> | Prisma.ModifierCreateWithoutModifierGroupInput[] | Prisma.ModifierUncheckedCreateWithoutModifierGroupInput[];
|
|
373
|
+
connectOrCreate?: Prisma.ModifierCreateOrConnectWithoutModifierGroupInput | Prisma.ModifierCreateOrConnectWithoutModifierGroupInput[];
|
|
374
|
+
createMany?: Prisma.ModifierCreateManyModifierGroupInputEnvelope;
|
|
375
|
+
connect?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
376
|
+
};
|
|
377
|
+
export type ModifierUpdateManyWithoutModifierGroupNestedInput = {
|
|
378
|
+
create?: Prisma.XOR<Prisma.ModifierCreateWithoutModifierGroupInput, Prisma.ModifierUncheckedCreateWithoutModifierGroupInput> | Prisma.ModifierCreateWithoutModifierGroupInput[] | Prisma.ModifierUncheckedCreateWithoutModifierGroupInput[];
|
|
379
|
+
connectOrCreate?: Prisma.ModifierCreateOrConnectWithoutModifierGroupInput | Prisma.ModifierCreateOrConnectWithoutModifierGroupInput[];
|
|
380
|
+
upsert?: Prisma.ModifierUpsertWithWhereUniqueWithoutModifierGroupInput | Prisma.ModifierUpsertWithWhereUniqueWithoutModifierGroupInput[];
|
|
381
|
+
createMany?: Prisma.ModifierCreateManyModifierGroupInputEnvelope;
|
|
382
|
+
set?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
383
|
+
disconnect?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
384
|
+
delete?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
385
|
+
connect?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
386
|
+
update?: Prisma.ModifierUpdateWithWhereUniqueWithoutModifierGroupInput | Prisma.ModifierUpdateWithWhereUniqueWithoutModifierGroupInput[];
|
|
387
|
+
updateMany?: Prisma.ModifierUpdateManyWithWhereWithoutModifierGroupInput | Prisma.ModifierUpdateManyWithWhereWithoutModifierGroupInput[];
|
|
388
|
+
deleteMany?: Prisma.ModifierScalarWhereInput | Prisma.ModifierScalarWhereInput[];
|
|
389
|
+
};
|
|
390
|
+
export type ModifierUncheckedUpdateManyWithoutModifierGroupNestedInput = {
|
|
391
|
+
create?: Prisma.XOR<Prisma.ModifierCreateWithoutModifierGroupInput, Prisma.ModifierUncheckedCreateWithoutModifierGroupInput> | Prisma.ModifierCreateWithoutModifierGroupInput[] | Prisma.ModifierUncheckedCreateWithoutModifierGroupInput[];
|
|
392
|
+
connectOrCreate?: Prisma.ModifierCreateOrConnectWithoutModifierGroupInput | Prisma.ModifierCreateOrConnectWithoutModifierGroupInput[];
|
|
393
|
+
upsert?: Prisma.ModifierUpsertWithWhereUniqueWithoutModifierGroupInput | Prisma.ModifierUpsertWithWhereUniqueWithoutModifierGroupInput[];
|
|
394
|
+
createMany?: Prisma.ModifierCreateManyModifierGroupInputEnvelope;
|
|
395
|
+
set?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
396
|
+
disconnect?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
397
|
+
delete?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
398
|
+
connect?: Prisma.ModifierWhereUniqueInput | Prisma.ModifierWhereUniqueInput[];
|
|
399
|
+
update?: Prisma.ModifierUpdateWithWhereUniqueWithoutModifierGroupInput | Prisma.ModifierUpdateWithWhereUniqueWithoutModifierGroupInput[];
|
|
400
|
+
updateMany?: Prisma.ModifierUpdateManyWithWhereWithoutModifierGroupInput | Prisma.ModifierUpdateManyWithWhereWithoutModifierGroupInput[];
|
|
401
|
+
deleteMany?: Prisma.ModifierScalarWhereInput | Prisma.ModifierScalarWhereInput[];
|
|
402
|
+
};
|
|
403
|
+
export type ModifierCreateWithoutImagesInput = {
|
|
404
|
+
id?: string;
|
|
405
|
+
title: string;
|
|
406
|
+
description?: string | null;
|
|
407
|
+
sku?: string | null;
|
|
408
|
+
price: number;
|
|
409
|
+
modifierGroup: Prisma.ModifierGroupCreateNestedOneWithoutModifiersInput;
|
|
410
|
+
};
|
|
411
|
+
export type ModifierUncheckedCreateWithoutImagesInput = {
|
|
412
|
+
id?: string;
|
|
413
|
+
title: string;
|
|
414
|
+
description?: string | null;
|
|
415
|
+
sku?: string | null;
|
|
416
|
+
price: number;
|
|
417
|
+
modifierGroupId: string;
|
|
418
|
+
};
|
|
419
|
+
export type ModifierCreateOrConnectWithoutImagesInput = {
|
|
420
|
+
where: Prisma.ModifierWhereUniqueInput;
|
|
421
|
+
create: Prisma.XOR<Prisma.ModifierCreateWithoutImagesInput, Prisma.ModifierUncheckedCreateWithoutImagesInput>;
|
|
422
|
+
};
|
|
423
|
+
export type ModifierUpsertWithWhereUniqueWithoutImagesInput = {
|
|
424
|
+
where: Prisma.ModifierWhereUniqueInput;
|
|
425
|
+
update: Prisma.XOR<Prisma.ModifierUpdateWithoutImagesInput, Prisma.ModifierUncheckedUpdateWithoutImagesInput>;
|
|
426
|
+
create: Prisma.XOR<Prisma.ModifierCreateWithoutImagesInput, Prisma.ModifierUncheckedCreateWithoutImagesInput>;
|
|
427
|
+
};
|
|
428
|
+
export type ModifierUpdateWithWhereUniqueWithoutImagesInput = {
|
|
429
|
+
where: Prisma.ModifierWhereUniqueInput;
|
|
430
|
+
data: Prisma.XOR<Prisma.ModifierUpdateWithoutImagesInput, Prisma.ModifierUncheckedUpdateWithoutImagesInput>;
|
|
431
|
+
};
|
|
432
|
+
export type ModifierUpdateManyWithWhereWithoutImagesInput = {
|
|
433
|
+
where: Prisma.ModifierScalarWhereInput;
|
|
434
|
+
data: Prisma.XOR<Prisma.ModifierUpdateManyMutationInput, Prisma.ModifierUncheckedUpdateManyWithoutImagesInput>;
|
|
435
|
+
};
|
|
436
|
+
export type ModifierScalarWhereInput = {
|
|
437
|
+
AND?: Prisma.ModifierScalarWhereInput | Prisma.ModifierScalarWhereInput[];
|
|
438
|
+
OR?: Prisma.ModifierScalarWhereInput[];
|
|
439
|
+
NOT?: Prisma.ModifierScalarWhereInput | Prisma.ModifierScalarWhereInput[];
|
|
440
|
+
id?: Prisma.StringFilter<"Modifier"> | string;
|
|
441
|
+
title?: Prisma.StringFilter<"Modifier"> | string;
|
|
442
|
+
description?: Prisma.StringNullableFilter<"Modifier"> | string | null;
|
|
443
|
+
sku?: Prisma.StringNullableFilter<"Modifier"> | string | null;
|
|
444
|
+
price?: Prisma.FloatFilter<"Modifier"> | number;
|
|
445
|
+
modifierGroupId?: Prisma.StringFilter<"Modifier"> | string;
|
|
446
|
+
};
|
|
447
|
+
export type ModifierCreateWithoutModifierGroupInput = {
|
|
448
|
+
id?: string;
|
|
449
|
+
title: string;
|
|
450
|
+
description?: string | null;
|
|
451
|
+
sku?: string | null;
|
|
452
|
+
price: number;
|
|
453
|
+
images?: Prisma.FileCreateNestedManyWithoutModifierImagesInput;
|
|
454
|
+
};
|
|
455
|
+
export type ModifierUncheckedCreateWithoutModifierGroupInput = {
|
|
456
|
+
id?: string;
|
|
457
|
+
title: string;
|
|
458
|
+
description?: string | null;
|
|
459
|
+
sku?: string | null;
|
|
460
|
+
price: number;
|
|
461
|
+
images?: Prisma.FileUncheckedCreateNestedManyWithoutModifierImagesInput;
|
|
462
|
+
};
|
|
463
|
+
export type ModifierCreateOrConnectWithoutModifierGroupInput = {
|
|
464
|
+
where: Prisma.ModifierWhereUniqueInput;
|
|
465
|
+
create: Prisma.XOR<Prisma.ModifierCreateWithoutModifierGroupInput, Prisma.ModifierUncheckedCreateWithoutModifierGroupInput>;
|
|
466
|
+
};
|
|
467
|
+
export type ModifierCreateManyModifierGroupInputEnvelope = {
|
|
468
|
+
data: Prisma.ModifierCreateManyModifierGroupInput | Prisma.ModifierCreateManyModifierGroupInput[];
|
|
469
|
+
skipDuplicates?: boolean;
|
|
470
|
+
};
|
|
471
|
+
export type ModifierUpsertWithWhereUniqueWithoutModifierGroupInput = {
|
|
472
|
+
where: Prisma.ModifierWhereUniqueInput;
|
|
473
|
+
update: Prisma.XOR<Prisma.ModifierUpdateWithoutModifierGroupInput, Prisma.ModifierUncheckedUpdateWithoutModifierGroupInput>;
|
|
474
|
+
create: Prisma.XOR<Prisma.ModifierCreateWithoutModifierGroupInput, Prisma.ModifierUncheckedCreateWithoutModifierGroupInput>;
|
|
475
|
+
};
|
|
476
|
+
export type ModifierUpdateWithWhereUniqueWithoutModifierGroupInput = {
|
|
477
|
+
where: Prisma.ModifierWhereUniqueInput;
|
|
478
|
+
data: Prisma.XOR<Prisma.ModifierUpdateWithoutModifierGroupInput, Prisma.ModifierUncheckedUpdateWithoutModifierGroupInput>;
|
|
479
|
+
};
|
|
480
|
+
export type ModifierUpdateManyWithWhereWithoutModifierGroupInput = {
|
|
481
|
+
where: Prisma.ModifierScalarWhereInput;
|
|
482
|
+
data: Prisma.XOR<Prisma.ModifierUpdateManyMutationInput, Prisma.ModifierUncheckedUpdateManyWithoutModifierGroupInput>;
|
|
483
|
+
};
|
|
484
|
+
export type ModifierUpdateWithoutImagesInput = {
|
|
485
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
486
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
487
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
488
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
489
|
+
price?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
490
|
+
modifierGroup?: Prisma.ModifierGroupUpdateOneRequiredWithoutModifiersNestedInput;
|
|
491
|
+
};
|
|
492
|
+
export type ModifierUncheckedUpdateWithoutImagesInput = {
|
|
493
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
494
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
495
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
496
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
497
|
+
price?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
498
|
+
modifierGroupId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
499
|
+
};
|
|
500
|
+
export type ModifierUncheckedUpdateManyWithoutImagesInput = {
|
|
501
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
502
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
503
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
504
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
505
|
+
price?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
506
|
+
modifierGroupId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
507
|
+
};
|
|
508
|
+
export type ModifierCreateManyModifierGroupInput = {
|
|
509
|
+
id?: string;
|
|
510
|
+
title: string;
|
|
511
|
+
description?: string | null;
|
|
512
|
+
sku?: string | null;
|
|
513
|
+
price: number;
|
|
514
|
+
};
|
|
515
|
+
export type ModifierUpdateWithoutModifierGroupInput = {
|
|
516
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
517
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
518
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
519
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
520
|
+
price?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
521
|
+
images?: Prisma.FileUpdateManyWithoutModifierImagesNestedInput;
|
|
522
|
+
};
|
|
523
|
+
export type ModifierUncheckedUpdateWithoutModifierGroupInput = {
|
|
524
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
525
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
526
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
527
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
528
|
+
price?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
529
|
+
images?: Prisma.FileUncheckedUpdateManyWithoutModifierImagesNestedInput;
|
|
530
|
+
};
|
|
531
|
+
export type ModifierUncheckedUpdateManyWithoutModifierGroupInput = {
|
|
532
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
533
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
534
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
535
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
536
|
+
price?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
537
|
+
};
|
|
538
|
+
/**
|
|
539
|
+
* Count Type ModifierCountOutputType
|
|
540
|
+
*/
|
|
541
|
+
export type ModifierCountOutputType = {
|
|
542
|
+
images: number;
|
|
543
|
+
};
|
|
544
|
+
export type ModifierCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
545
|
+
images?: boolean | ModifierCountOutputTypeCountImagesArgs;
|
|
546
|
+
};
|
|
547
|
+
/**
|
|
548
|
+
* ModifierCountOutputType without action
|
|
549
|
+
*/
|
|
550
|
+
export type ModifierCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
551
|
+
/**
|
|
552
|
+
* Select specific fields to fetch from the ModifierCountOutputType
|
|
553
|
+
*/
|
|
554
|
+
select?: Prisma.ModifierCountOutputTypeSelect<ExtArgs> | null;
|
|
555
|
+
};
|
|
556
|
+
/**
|
|
557
|
+
* ModifierCountOutputType without action
|
|
558
|
+
*/
|
|
559
|
+
export type ModifierCountOutputTypeCountImagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
560
|
+
where?: Prisma.FileWhereInput;
|
|
561
|
+
};
|
|
562
|
+
export type ModifierSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
563
|
+
id?: boolean;
|
|
564
|
+
title?: boolean;
|
|
565
|
+
description?: boolean;
|
|
566
|
+
sku?: boolean;
|
|
567
|
+
price?: boolean;
|
|
568
|
+
modifierGroupId?: boolean;
|
|
569
|
+
modifierGroup?: boolean | Prisma.ModifierGroupDefaultArgs<ExtArgs>;
|
|
570
|
+
images?: boolean | Prisma.Modifier$imagesArgs<ExtArgs>;
|
|
571
|
+
_count?: boolean | Prisma.ModifierCountOutputTypeDefaultArgs<ExtArgs>;
|
|
572
|
+
}, ExtArgs["result"]["modifier"]>;
|
|
573
|
+
export type ModifierSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
574
|
+
id?: boolean;
|
|
575
|
+
title?: boolean;
|
|
576
|
+
description?: boolean;
|
|
577
|
+
sku?: boolean;
|
|
578
|
+
price?: boolean;
|
|
579
|
+
modifierGroupId?: boolean;
|
|
580
|
+
modifierGroup?: boolean | Prisma.ModifierGroupDefaultArgs<ExtArgs>;
|
|
581
|
+
}, ExtArgs["result"]["modifier"]>;
|
|
582
|
+
export type ModifierSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
583
|
+
id?: boolean;
|
|
584
|
+
title?: boolean;
|
|
585
|
+
description?: boolean;
|
|
586
|
+
sku?: boolean;
|
|
587
|
+
price?: boolean;
|
|
588
|
+
modifierGroupId?: boolean;
|
|
589
|
+
modifierGroup?: boolean | Prisma.ModifierGroupDefaultArgs<ExtArgs>;
|
|
590
|
+
}, ExtArgs["result"]["modifier"]>;
|
|
591
|
+
export type ModifierSelectScalar = {
|
|
592
|
+
id?: boolean;
|
|
593
|
+
title?: boolean;
|
|
594
|
+
description?: boolean;
|
|
595
|
+
sku?: boolean;
|
|
596
|
+
price?: boolean;
|
|
597
|
+
modifierGroupId?: boolean;
|
|
598
|
+
};
|
|
599
|
+
export type ModifierOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "title" | "description" | "sku" | "price" | "modifierGroupId", ExtArgs["result"]["modifier"]>;
|
|
600
|
+
export type ModifierInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
601
|
+
modifierGroup?: boolean | Prisma.ModifierGroupDefaultArgs<ExtArgs>;
|
|
602
|
+
images?: boolean | Prisma.Modifier$imagesArgs<ExtArgs>;
|
|
603
|
+
_count?: boolean | Prisma.ModifierCountOutputTypeDefaultArgs<ExtArgs>;
|
|
604
|
+
};
|
|
605
|
+
export type ModifierIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
606
|
+
modifierGroup?: boolean | Prisma.ModifierGroupDefaultArgs<ExtArgs>;
|
|
607
|
+
};
|
|
608
|
+
export type ModifierIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
609
|
+
modifierGroup?: boolean | Prisma.ModifierGroupDefaultArgs<ExtArgs>;
|
|
610
|
+
};
|
|
611
|
+
export type $ModifierPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
612
|
+
name: "Modifier";
|
|
613
|
+
objects: {
|
|
614
|
+
modifierGroup: Prisma.$ModifierGroupPayload<ExtArgs>;
|
|
615
|
+
images: Prisma.$FilePayload<ExtArgs>[];
|
|
616
|
+
};
|
|
617
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
618
|
+
id: string;
|
|
619
|
+
title: string;
|
|
620
|
+
description: string | null;
|
|
621
|
+
sku: string | null;
|
|
622
|
+
price: number;
|
|
623
|
+
modifierGroupId: string;
|
|
624
|
+
}, ExtArgs["result"]["modifier"]>;
|
|
625
|
+
composites: {};
|
|
626
|
+
};
|
|
627
|
+
export type ModifierGetPayload<S extends boolean | null | undefined | ModifierDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ModifierPayload, S>;
|
|
628
|
+
export type ModifierCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ModifierFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
629
|
+
select?: ModifierCountAggregateInputType | true;
|
|
630
|
+
};
|
|
631
|
+
export interface ModifierDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
632
|
+
[K: symbol]: {
|
|
633
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Modifier'];
|
|
634
|
+
meta: {
|
|
635
|
+
name: 'Modifier';
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* Find zero or one Modifier that matches the filter.
|
|
640
|
+
* @param {ModifierFindUniqueArgs} args - Arguments to find a Modifier
|
|
641
|
+
* @example
|
|
642
|
+
* // Get one Modifier
|
|
643
|
+
* const modifier = await prisma.modifier.findUnique({
|
|
644
|
+
* where: {
|
|
645
|
+
* // ... provide filter here
|
|
646
|
+
* }
|
|
647
|
+
* })
|
|
648
|
+
*/
|
|
649
|
+
findUnique<T extends ModifierFindUniqueArgs>(args: Prisma.SelectSubset<T, ModifierFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ModifierClient<runtime.Types.Result.GetResult<Prisma.$ModifierPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
650
|
+
/**
|
|
651
|
+
* Find one Modifier that matches the filter or throw an error with `error.code='P2025'`
|
|
652
|
+
* if no matches were found.
|
|
653
|
+
* @param {ModifierFindUniqueOrThrowArgs} args - Arguments to find a Modifier
|
|
654
|
+
* @example
|
|
655
|
+
* // Get one Modifier
|
|
656
|
+
* const modifier = await prisma.modifier.findUniqueOrThrow({
|
|
657
|
+
* where: {
|
|
658
|
+
* // ... provide filter here
|
|
659
|
+
* }
|
|
660
|
+
* })
|
|
661
|
+
*/
|
|
662
|
+
findUniqueOrThrow<T extends ModifierFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ModifierFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ModifierClient<runtime.Types.Result.GetResult<Prisma.$ModifierPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
663
|
+
/**
|
|
664
|
+
* Find the first Modifier that matches the filter.
|
|
665
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
666
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
667
|
+
* @param {ModifierFindFirstArgs} args - Arguments to find a Modifier
|
|
668
|
+
* @example
|
|
669
|
+
* // Get one Modifier
|
|
670
|
+
* const modifier = await prisma.modifier.findFirst({
|
|
671
|
+
* where: {
|
|
672
|
+
* // ... provide filter here
|
|
673
|
+
* }
|
|
674
|
+
* })
|
|
675
|
+
*/
|
|
676
|
+
findFirst<T extends ModifierFindFirstArgs>(args?: Prisma.SelectSubset<T, ModifierFindFirstArgs<ExtArgs>>): Prisma.Prisma__ModifierClient<runtime.Types.Result.GetResult<Prisma.$ModifierPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
677
|
+
/**
|
|
678
|
+
* Find the first Modifier that matches the filter or
|
|
679
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
680
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
681
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
682
|
+
* @param {ModifierFindFirstOrThrowArgs} args - Arguments to find a Modifier
|
|
683
|
+
* @example
|
|
684
|
+
* // Get one Modifier
|
|
685
|
+
* const modifier = await prisma.modifier.findFirstOrThrow({
|
|
686
|
+
* where: {
|
|
687
|
+
* // ... provide filter here
|
|
688
|
+
* }
|
|
689
|
+
* })
|
|
690
|
+
*/
|
|
691
|
+
findFirstOrThrow<T extends ModifierFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ModifierFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ModifierClient<runtime.Types.Result.GetResult<Prisma.$ModifierPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
692
|
+
/**
|
|
693
|
+
* Find zero or more Modifiers that matches the filter.
|
|
694
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
695
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
696
|
+
* @param {ModifierFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
697
|
+
* @example
|
|
698
|
+
* // Get all Modifiers
|
|
699
|
+
* const modifiers = await prisma.modifier.findMany()
|
|
700
|
+
*
|
|
701
|
+
* // Get first 10 Modifiers
|
|
702
|
+
* const modifiers = await prisma.modifier.findMany({ take: 10 })
|
|
703
|
+
*
|
|
704
|
+
* // Only select the `id`
|
|
705
|
+
* const modifierWithIdOnly = await prisma.modifier.findMany({ select: { id: true } })
|
|
706
|
+
*
|
|
707
|
+
*/
|
|
708
|
+
findMany<T extends ModifierFindManyArgs>(args?: Prisma.SelectSubset<T, ModifierFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ModifierPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
709
|
+
/**
|
|
710
|
+
* Create a Modifier.
|
|
711
|
+
* @param {ModifierCreateArgs} args - Arguments to create a Modifier.
|
|
712
|
+
* @example
|
|
713
|
+
* // Create one Modifier
|
|
714
|
+
* const Modifier = await prisma.modifier.create({
|
|
715
|
+
* data: {
|
|
716
|
+
* // ... data to create a Modifier
|
|
717
|
+
* }
|
|
718
|
+
* })
|
|
719
|
+
*
|
|
720
|
+
*/
|
|
721
|
+
create<T extends ModifierCreateArgs>(args: Prisma.SelectSubset<T, ModifierCreateArgs<ExtArgs>>): Prisma.Prisma__ModifierClient<runtime.Types.Result.GetResult<Prisma.$ModifierPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
722
|
+
/**
|
|
723
|
+
* Create many Modifiers.
|
|
724
|
+
* @param {ModifierCreateManyArgs} args - Arguments to create many Modifiers.
|
|
725
|
+
* @example
|
|
726
|
+
* // Create many Modifiers
|
|
727
|
+
* const modifier = await prisma.modifier.createMany({
|
|
728
|
+
* data: [
|
|
729
|
+
* // ... provide data here
|
|
730
|
+
* ]
|
|
731
|
+
* })
|
|
732
|
+
*
|
|
733
|
+
*/
|
|
734
|
+
createMany<T extends ModifierCreateManyArgs>(args?: Prisma.SelectSubset<T, ModifierCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
735
|
+
/**
|
|
736
|
+
* Create many Modifiers and returns the data saved in the database.
|
|
737
|
+
* @param {ModifierCreateManyAndReturnArgs} args - Arguments to create many Modifiers.
|
|
738
|
+
* @example
|
|
739
|
+
* // Create many Modifiers
|
|
740
|
+
* const modifier = await prisma.modifier.createManyAndReturn({
|
|
741
|
+
* data: [
|
|
742
|
+
* // ... provide data here
|
|
743
|
+
* ]
|
|
744
|
+
* })
|
|
745
|
+
*
|
|
746
|
+
* // Create many Modifiers and only return the `id`
|
|
747
|
+
* const modifierWithIdOnly = await prisma.modifier.createManyAndReturn({
|
|
748
|
+
* select: { id: true },
|
|
749
|
+
* data: [
|
|
750
|
+
* // ... provide data here
|
|
751
|
+
* ]
|
|
752
|
+
* })
|
|
753
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
754
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
755
|
+
*
|
|
756
|
+
*/
|
|
757
|
+
createManyAndReturn<T extends ModifierCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ModifierCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ModifierPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
758
|
+
/**
|
|
759
|
+
* Delete a Modifier.
|
|
760
|
+
* @param {ModifierDeleteArgs} args - Arguments to delete one Modifier.
|
|
761
|
+
* @example
|
|
762
|
+
* // Delete one Modifier
|
|
763
|
+
* const Modifier = await prisma.modifier.delete({
|
|
764
|
+
* where: {
|
|
765
|
+
* // ... filter to delete one Modifier
|
|
766
|
+
* }
|
|
767
|
+
* })
|
|
768
|
+
*
|
|
769
|
+
*/
|
|
770
|
+
delete<T extends ModifierDeleteArgs>(args: Prisma.SelectSubset<T, ModifierDeleteArgs<ExtArgs>>): Prisma.Prisma__ModifierClient<runtime.Types.Result.GetResult<Prisma.$ModifierPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
771
|
+
/**
|
|
772
|
+
* Update one Modifier.
|
|
773
|
+
* @param {ModifierUpdateArgs} args - Arguments to update one Modifier.
|
|
774
|
+
* @example
|
|
775
|
+
* // Update one Modifier
|
|
776
|
+
* const modifier = await prisma.modifier.update({
|
|
777
|
+
* where: {
|
|
778
|
+
* // ... provide filter here
|
|
779
|
+
* },
|
|
780
|
+
* data: {
|
|
781
|
+
* // ... provide data here
|
|
782
|
+
* }
|
|
783
|
+
* })
|
|
784
|
+
*
|
|
785
|
+
*/
|
|
786
|
+
update<T extends ModifierUpdateArgs>(args: Prisma.SelectSubset<T, ModifierUpdateArgs<ExtArgs>>): Prisma.Prisma__ModifierClient<runtime.Types.Result.GetResult<Prisma.$ModifierPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
787
|
+
/**
|
|
788
|
+
* Delete zero or more Modifiers.
|
|
789
|
+
* @param {ModifierDeleteManyArgs} args - Arguments to filter Modifiers to delete.
|
|
790
|
+
* @example
|
|
791
|
+
* // Delete a few Modifiers
|
|
792
|
+
* const { count } = await prisma.modifier.deleteMany({
|
|
793
|
+
* where: {
|
|
794
|
+
* // ... provide filter here
|
|
795
|
+
* }
|
|
796
|
+
* })
|
|
797
|
+
*
|
|
798
|
+
*/
|
|
799
|
+
deleteMany<T extends ModifierDeleteManyArgs>(args?: Prisma.SelectSubset<T, ModifierDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
800
|
+
/**
|
|
801
|
+
* Update zero or more Modifiers.
|
|
802
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
803
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
804
|
+
* @param {ModifierUpdateManyArgs} args - Arguments to update one or more rows.
|
|
805
|
+
* @example
|
|
806
|
+
* // Update many Modifiers
|
|
807
|
+
* const modifier = await prisma.modifier.updateMany({
|
|
808
|
+
* where: {
|
|
809
|
+
* // ... provide filter here
|
|
810
|
+
* },
|
|
811
|
+
* data: {
|
|
812
|
+
* // ... provide data here
|
|
813
|
+
* }
|
|
814
|
+
* })
|
|
815
|
+
*
|
|
816
|
+
*/
|
|
817
|
+
updateMany<T extends ModifierUpdateManyArgs>(args: Prisma.SelectSubset<T, ModifierUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
818
|
+
/**
|
|
819
|
+
* Update zero or more Modifiers and returns the data updated in the database.
|
|
820
|
+
* @param {ModifierUpdateManyAndReturnArgs} args - Arguments to update many Modifiers.
|
|
821
|
+
* @example
|
|
822
|
+
* // Update many Modifiers
|
|
823
|
+
* const modifier = await prisma.modifier.updateManyAndReturn({
|
|
824
|
+
* where: {
|
|
825
|
+
* // ... provide filter here
|
|
826
|
+
* },
|
|
827
|
+
* data: [
|
|
828
|
+
* // ... provide data here
|
|
829
|
+
* ]
|
|
830
|
+
* })
|
|
831
|
+
*
|
|
832
|
+
* // Update zero or more Modifiers and only return the `id`
|
|
833
|
+
* const modifierWithIdOnly = await prisma.modifier.updateManyAndReturn({
|
|
834
|
+
* select: { id: true },
|
|
835
|
+
* where: {
|
|
836
|
+
* // ... provide filter here
|
|
837
|
+
* },
|
|
838
|
+
* data: [
|
|
839
|
+
* // ... provide data here
|
|
840
|
+
* ]
|
|
841
|
+
* })
|
|
842
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
843
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
844
|
+
*
|
|
845
|
+
*/
|
|
846
|
+
updateManyAndReturn<T extends ModifierUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ModifierUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ModifierPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
847
|
+
/**
|
|
848
|
+
* Create or update one Modifier.
|
|
849
|
+
* @param {ModifierUpsertArgs} args - Arguments to update or create a Modifier.
|
|
850
|
+
* @example
|
|
851
|
+
* // Update or create a Modifier
|
|
852
|
+
* const modifier = await prisma.modifier.upsert({
|
|
853
|
+
* create: {
|
|
854
|
+
* // ... data to create a Modifier
|
|
855
|
+
* },
|
|
856
|
+
* update: {
|
|
857
|
+
* // ... in case it already exists, update
|
|
858
|
+
* },
|
|
859
|
+
* where: {
|
|
860
|
+
* // ... the filter for the Modifier we want to update
|
|
861
|
+
* }
|
|
862
|
+
* })
|
|
863
|
+
*/
|
|
864
|
+
upsert<T extends ModifierUpsertArgs>(args: Prisma.SelectSubset<T, ModifierUpsertArgs<ExtArgs>>): Prisma.Prisma__ModifierClient<runtime.Types.Result.GetResult<Prisma.$ModifierPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
865
|
+
/**
|
|
866
|
+
* Count the number of Modifiers.
|
|
867
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
868
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
869
|
+
* @param {ModifierCountArgs} args - Arguments to filter Modifiers to count.
|
|
870
|
+
* @example
|
|
871
|
+
* // Count the number of Modifiers
|
|
872
|
+
* const count = await prisma.modifier.count({
|
|
873
|
+
* where: {
|
|
874
|
+
* // ... the filter for the Modifiers we want to count
|
|
875
|
+
* }
|
|
876
|
+
* })
|
|
877
|
+
**/
|
|
878
|
+
count<T extends ModifierCountArgs>(args?: Prisma.Subset<T, ModifierCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ModifierCountAggregateOutputType> : number>;
|
|
879
|
+
/**
|
|
880
|
+
* Allows you to perform aggregations operations on a Modifier.
|
|
881
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
882
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
883
|
+
* @param {ModifierAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
884
|
+
* @example
|
|
885
|
+
* // Ordered by age ascending
|
|
886
|
+
* // Where email contains prisma.io
|
|
887
|
+
* // Limited to the 10 users
|
|
888
|
+
* const aggregations = await prisma.user.aggregate({
|
|
889
|
+
* _avg: {
|
|
890
|
+
* age: true,
|
|
891
|
+
* },
|
|
892
|
+
* where: {
|
|
893
|
+
* email: {
|
|
894
|
+
* contains: "prisma.io",
|
|
895
|
+
* },
|
|
896
|
+
* },
|
|
897
|
+
* orderBy: {
|
|
898
|
+
* age: "asc",
|
|
899
|
+
* },
|
|
900
|
+
* take: 10,
|
|
901
|
+
* })
|
|
902
|
+
**/
|
|
903
|
+
aggregate<T extends ModifierAggregateArgs>(args: Prisma.Subset<T, ModifierAggregateArgs>): Prisma.PrismaPromise<GetModifierAggregateType<T>>;
|
|
904
|
+
/**
|
|
905
|
+
* Group by Modifier.
|
|
906
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
907
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
908
|
+
* @param {ModifierGroupByArgs} args - Group by arguments.
|
|
909
|
+
* @example
|
|
910
|
+
* // Group by city, order by createdAt, get count
|
|
911
|
+
* const result = await prisma.user.groupBy({
|
|
912
|
+
* by: ['city', 'createdAt'],
|
|
913
|
+
* orderBy: {
|
|
914
|
+
* createdAt: true
|
|
915
|
+
* },
|
|
916
|
+
* _count: {
|
|
917
|
+
* _all: true
|
|
918
|
+
* },
|
|
919
|
+
* })
|
|
920
|
+
*
|
|
921
|
+
**/
|
|
922
|
+
groupBy<T extends ModifierGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
923
|
+
orderBy: ModifierGroupByArgs['orderBy'];
|
|
924
|
+
} : {
|
|
925
|
+
orderBy?: ModifierGroupByArgs['orderBy'];
|
|
926
|
+
}, 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 ? {
|
|
927
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
928
|
+
Error,
|
|
929
|
+
'Field ',
|
|
930
|
+
P,
|
|
931
|
+
` in "having" needs to be provided in "by"`
|
|
932
|
+
];
|
|
933
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
934
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
935
|
+
}[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 ? {} : {
|
|
936
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
937
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
938
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
939
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ModifierGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetModifierGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
940
|
+
/**
|
|
941
|
+
* Fields of the Modifier model
|
|
942
|
+
*/
|
|
943
|
+
readonly fields: ModifierFieldRefs;
|
|
944
|
+
}
|
|
945
|
+
/**
|
|
946
|
+
* The delegate class that acts as a "Promise-like" for Modifier.
|
|
947
|
+
* Why is this prefixed with `Prisma__`?
|
|
948
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
949
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
950
|
+
*/
|
|
951
|
+
export interface Prisma__ModifierClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
952
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
953
|
+
modifierGroup<T extends Prisma.ModifierGroupDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ModifierGroupDefaultArgs<ExtArgs>>): Prisma.Prisma__ModifierGroupClient<runtime.Types.Result.GetResult<Prisma.$ModifierGroupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
954
|
+
images<T extends Prisma.Modifier$imagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Modifier$imagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
955
|
+
/**
|
|
956
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
957
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
958
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
959
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
960
|
+
*/
|
|
961
|
+
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>;
|
|
962
|
+
/**
|
|
963
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
964
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
965
|
+
* @returns A Promise for the completion of the callback.
|
|
966
|
+
*/
|
|
967
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
968
|
+
/**
|
|
969
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
970
|
+
* resolved value cannot be modified from the callback.
|
|
971
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
972
|
+
* @returns A Promise for the completion of the callback.
|
|
973
|
+
*/
|
|
974
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* Fields of the Modifier model
|
|
978
|
+
*/
|
|
979
|
+
export interface ModifierFieldRefs {
|
|
980
|
+
readonly id: Prisma.FieldRef<"Modifier", 'String'>;
|
|
981
|
+
readonly title: Prisma.FieldRef<"Modifier", 'String'>;
|
|
982
|
+
readonly description: Prisma.FieldRef<"Modifier", 'String'>;
|
|
983
|
+
readonly sku: Prisma.FieldRef<"Modifier", 'String'>;
|
|
984
|
+
readonly price: Prisma.FieldRef<"Modifier", 'Float'>;
|
|
985
|
+
readonly modifierGroupId: Prisma.FieldRef<"Modifier", 'String'>;
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* Modifier findUnique
|
|
989
|
+
*/
|
|
990
|
+
export type ModifierFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
991
|
+
/**
|
|
992
|
+
* Select specific fields to fetch from the Modifier
|
|
993
|
+
*/
|
|
994
|
+
select?: Prisma.ModifierSelect<ExtArgs> | null;
|
|
995
|
+
/**
|
|
996
|
+
* Omit specific fields from the Modifier
|
|
997
|
+
*/
|
|
998
|
+
omit?: Prisma.ModifierOmit<ExtArgs> | null;
|
|
999
|
+
/**
|
|
1000
|
+
* Choose, which related nodes to fetch as well
|
|
1001
|
+
*/
|
|
1002
|
+
include?: Prisma.ModifierInclude<ExtArgs> | null;
|
|
1003
|
+
/**
|
|
1004
|
+
* Filter, which Modifier to fetch.
|
|
1005
|
+
*/
|
|
1006
|
+
where: Prisma.ModifierWhereUniqueInput;
|
|
1007
|
+
};
|
|
1008
|
+
/**
|
|
1009
|
+
* Modifier findUniqueOrThrow
|
|
1010
|
+
*/
|
|
1011
|
+
export type ModifierFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1012
|
+
/**
|
|
1013
|
+
* Select specific fields to fetch from the Modifier
|
|
1014
|
+
*/
|
|
1015
|
+
select?: Prisma.ModifierSelect<ExtArgs> | null;
|
|
1016
|
+
/**
|
|
1017
|
+
* Omit specific fields from the Modifier
|
|
1018
|
+
*/
|
|
1019
|
+
omit?: Prisma.ModifierOmit<ExtArgs> | null;
|
|
1020
|
+
/**
|
|
1021
|
+
* Choose, which related nodes to fetch as well
|
|
1022
|
+
*/
|
|
1023
|
+
include?: Prisma.ModifierInclude<ExtArgs> | null;
|
|
1024
|
+
/**
|
|
1025
|
+
* Filter, which Modifier to fetch.
|
|
1026
|
+
*/
|
|
1027
|
+
where: Prisma.ModifierWhereUniqueInput;
|
|
1028
|
+
};
|
|
1029
|
+
/**
|
|
1030
|
+
* Modifier findFirst
|
|
1031
|
+
*/
|
|
1032
|
+
export type ModifierFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1033
|
+
/**
|
|
1034
|
+
* Select specific fields to fetch from the Modifier
|
|
1035
|
+
*/
|
|
1036
|
+
select?: Prisma.ModifierSelect<ExtArgs> | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* Omit specific fields from the Modifier
|
|
1039
|
+
*/
|
|
1040
|
+
omit?: Prisma.ModifierOmit<ExtArgs> | null;
|
|
1041
|
+
/**
|
|
1042
|
+
* Choose, which related nodes to fetch as well
|
|
1043
|
+
*/
|
|
1044
|
+
include?: Prisma.ModifierInclude<ExtArgs> | null;
|
|
1045
|
+
/**
|
|
1046
|
+
* Filter, which Modifier to fetch.
|
|
1047
|
+
*/
|
|
1048
|
+
where?: Prisma.ModifierWhereInput;
|
|
1049
|
+
/**
|
|
1050
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1051
|
+
*
|
|
1052
|
+
* Determine the order of Modifiers to fetch.
|
|
1053
|
+
*/
|
|
1054
|
+
orderBy?: Prisma.ModifierOrderByWithRelationInput | Prisma.ModifierOrderByWithRelationInput[];
|
|
1055
|
+
/**
|
|
1056
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1057
|
+
*
|
|
1058
|
+
* Sets the position for searching for Modifiers.
|
|
1059
|
+
*/
|
|
1060
|
+
cursor?: Prisma.ModifierWhereUniqueInput;
|
|
1061
|
+
/**
|
|
1062
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1063
|
+
*
|
|
1064
|
+
* Take `±n` Modifiers from the position of the cursor.
|
|
1065
|
+
*/
|
|
1066
|
+
take?: number;
|
|
1067
|
+
/**
|
|
1068
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1069
|
+
*
|
|
1070
|
+
* Skip the first `n` Modifiers.
|
|
1071
|
+
*/
|
|
1072
|
+
skip?: number;
|
|
1073
|
+
/**
|
|
1074
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1075
|
+
*
|
|
1076
|
+
* Filter by unique combinations of Modifiers.
|
|
1077
|
+
*/
|
|
1078
|
+
distinct?: Prisma.ModifierScalarFieldEnum | Prisma.ModifierScalarFieldEnum[];
|
|
1079
|
+
};
|
|
1080
|
+
/**
|
|
1081
|
+
* Modifier findFirstOrThrow
|
|
1082
|
+
*/
|
|
1083
|
+
export type ModifierFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1084
|
+
/**
|
|
1085
|
+
* Select specific fields to fetch from the Modifier
|
|
1086
|
+
*/
|
|
1087
|
+
select?: Prisma.ModifierSelect<ExtArgs> | null;
|
|
1088
|
+
/**
|
|
1089
|
+
* Omit specific fields from the Modifier
|
|
1090
|
+
*/
|
|
1091
|
+
omit?: Prisma.ModifierOmit<ExtArgs> | null;
|
|
1092
|
+
/**
|
|
1093
|
+
* Choose, which related nodes to fetch as well
|
|
1094
|
+
*/
|
|
1095
|
+
include?: Prisma.ModifierInclude<ExtArgs> | null;
|
|
1096
|
+
/**
|
|
1097
|
+
* Filter, which Modifier to fetch.
|
|
1098
|
+
*/
|
|
1099
|
+
where?: Prisma.ModifierWhereInput;
|
|
1100
|
+
/**
|
|
1101
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1102
|
+
*
|
|
1103
|
+
* Determine the order of Modifiers to fetch.
|
|
1104
|
+
*/
|
|
1105
|
+
orderBy?: Prisma.ModifierOrderByWithRelationInput | Prisma.ModifierOrderByWithRelationInput[];
|
|
1106
|
+
/**
|
|
1107
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1108
|
+
*
|
|
1109
|
+
* Sets the position for searching for Modifiers.
|
|
1110
|
+
*/
|
|
1111
|
+
cursor?: Prisma.ModifierWhereUniqueInput;
|
|
1112
|
+
/**
|
|
1113
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1114
|
+
*
|
|
1115
|
+
* Take `±n` Modifiers from the position of the cursor.
|
|
1116
|
+
*/
|
|
1117
|
+
take?: number;
|
|
1118
|
+
/**
|
|
1119
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1120
|
+
*
|
|
1121
|
+
* Skip the first `n` Modifiers.
|
|
1122
|
+
*/
|
|
1123
|
+
skip?: number;
|
|
1124
|
+
/**
|
|
1125
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1126
|
+
*
|
|
1127
|
+
* Filter by unique combinations of Modifiers.
|
|
1128
|
+
*/
|
|
1129
|
+
distinct?: Prisma.ModifierScalarFieldEnum | Prisma.ModifierScalarFieldEnum[];
|
|
1130
|
+
};
|
|
1131
|
+
/**
|
|
1132
|
+
* Modifier findMany
|
|
1133
|
+
*/
|
|
1134
|
+
export type ModifierFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1135
|
+
/**
|
|
1136
|
+
* Select specific fields to fetch from the Modifier
|
|
1137
|
+
*/
|
|
1138
|
+
select?: Prisma.ModifierSelect<ExtArgs> | null;
|
|
1139
|
+
/**
|
|
1140
|
+
* Omit specific fields from the Modifier
|
|
1141
|
+
*/
|
|
1142
|
+
omit?: Prisma.ModifierOmit<ExtArgs> | null;
|
|
1143
|
+
/**
|
|
1144
|
+
* Choose, which related nodes to fetch as well
|
|
1145
|
+
*/
|
|
1146
|
+
include?: Prisma.ModifierInclude<ExtArgs> | null;
|
|
1147
|
+
/**
|
|
1148
|
+
* Filter, which Modifiers to fetch.
|
|
1149
|
+
*/
|
|
1150
|
+
where?: Prisma.ModifierWhereInput;
|
|
1151
|
+
/**
|
|
1152
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1153
|
+
*
|
|
1154
|
+
* Determine the order of Modifiers to fetch.
|
|
1155
|
+
*/
|
|
1156
|
+
orderBy?: Prisma.ModifierOrderByWithRelationInput | Prisma.ModifierOrderByWithRelationInput[];
|
|
1157
|
+
/**
|
|
1158
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1159
|
+
*
|
|
1160
|
+
* Sets the position for listing Modifiers.
|
|
1161
|
+
*/
|
|
1162
|
+
cursor?: Prisma.ModifierWhereUniqueInput;
|
|
1163
|
+
/**
|
|
1164
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1165
|
+
*
|
|
1166
|
+
* Take `±n` Modifiers from the position of the cursor.
|
|
1167
|
+
*/
|
|
1168
|
+
take?: number;
|
|
1169
|
+
/**
|
|
1170
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1171
|
+
*
|
|
1172
|
+
* Skip the first `n` Modifiers.
|
|
1173
|
+
*/
|
|
1174
|
+
skip?: number;
|
|
1175
|
+
distinct?: Prisma.ModifierScalarFieldEnum | Prisma.ModifierScalarFieldEnum[];
|
|
1176
|
+
};
|
|
1177
|
+
/**
|
|
1178
|
+
* Modifier create
|
|
1179
|
+
*/
|
|
1180
|
+
export type ModifierCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1181
|
+
/**
|
|
1182
|
+
* Select specific fields to fetch from the Modifier
|
|
1183
|
+
*/
|
|
1184
|
+
select?: Prisma.ModifierSelect<ExtArgs> | null;
|
|
1185
|
+
/**
|
|
1186
|
+
* Omit specific fields from the Modifier
|
|
1187
|
+
*/
|
|
1188
|
+
omit?: Prisma.ModifierOmit<ExtArgs> | null;
|
|
1189
|
+
/**
|
|
1190
|
+
* Choose, which related nodes to fetch as well
|
|
1191
|
+
*/
|
|
1192
|
+
include?: Prisma.ModifierInclude<ExtArgs> | null;
|
|
1193
|
+
/**
|
|
1194
|
+
* The data needed to create a Modifier.
|
|
1195
|
+
*/
|
|
1196
|
+
data: Prisma.XOR<Prisma.ModifierCreateInput, Prisma.ModifierUncheckedCreateInput>;
|
|
1197
|
+
};
|
|
1198
|
+
/**
|
|
1199
|
+
* Modifier createMany
|
|
1200
|
+
*/
|
|
1201
|
+
export type ModifierCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1202
|
+
/**
|
|
1203
|
+
* The data used to create many Modifiers.
|
|
1204
|
+
*/
|
|
1205
|
+
data: Prisma.ModifierCreateManyInput | Prisma.ModifierCreateManyInput[];
|
|
1206
|
+
skipDuplicates?: boolean;
|
|
1207
|
+
};
|
|
1208
|
+
/**
|
|
1209
|
+
* Modifier createManyAndReturn
|
|
1210
|
+
*/
|
|
1211
|
+
export type ModifierCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1212
|
+
/**
|
|
1213
|
+
* Select specific fields to fetch from the Modifier
|
|
1214
|
+
*/
|
|
1215
|
+
select?: Prisma.ModifierSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1216
|
+
/**
|
|
1217
|
+
* Omit specific fields from the Modifier
|
|
1218
|
+
*/
|
|
1219
|
+
omit?: Prisma.ModifierOmit<ExtArgs> | null;
|
|
1220
|
+
/**
|
|
1221
|
+
* The data used to create many Modifiers.
|
|
1222
|
+
*/
|
|
1223
|
+
data: Prisma.ModifierCreateManyInput | Prisma.ModifierCreateManyInput[];
|
|
1224
|
+
skipDuplicates?: boolean;
|
|
1225
|
+
/**
|
|
1226
|
+
* Choose, which related nodes to fetch as well
|
|
1227
|
+
*/
|
|
1228
|
+
include?: Prisma.ModifierIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1229
|
+
};
|
|
1230
|
+
/**
|
|
1231
|
+
* Modifier update
|
|
1232
|
+
*/
|
|
1233
|
+
export type ModifierUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1234
|
+
/**
|
|
1235
|
+
* Select specific fields to fetch from the Modifier
|
|
1236
|
+
*/
|
|
1237
|
+
select?: Prisma.ModifierSelect<ExtArgs> | null;
|
|
1238
|
+
/**
|
|
1239
|
+
* Omit specific fields from the Modifier
|
|
1240
|
+
*/
|
|
1241
|
+
omit?: Prisma.ModifierOmit<ExtArgs> | null;
|
|
1242
|
+
/**
|
|
1243
|
+
* Choose, which related nodes to fetch as well
|
|
1244
|
+
*/
|
|
1245
|
+
include?: Prisma.ModifierInclude<ExtArgs> | null;
|
|
1246
|
+
/**
|
|
1247
|
+
* The data needed to update a Modifier.
|
|
1248
|
+
*/
|
|
1249
|
+
data: Prisma.XOR<Prisma.ModifierUpdateInput, Prisma.ModifierUncheckedUpdateInput>;
|
|
1250
|
+
/**
|
|
1251
|
+
* Choose, which Modifier to update.
|
|
1252
|
+
*/
|
|
1253
|
+
where: Prisma.ModifierWhereUniqueInput;
|
|
1254
|
+
};
|
|
1255
|
+
/**
|
|
1256
|
+
* Modifier updateMany
|
|
1257
|
+
*/
|
|
1258
|
+
export type ModifierUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1259
|
+
/**
|
|
1260
|
+
* The data used to update Modifiers.
|
|
1261
|
+
*/
|
|
1262
|
+
data: Prisma.XOR<Prisma.ModifierUpdateManyMutationInput, Prisma.ModifierUncheckedUpdateManyInput>;
|
|
1263
|
+
/**
|
|
1264
|
+
* Filter which Modifiers to update
|
|
1265
|
+
*/
|
|
1266
|
+
where?: Prisma.ModifierWhereInput;
|
|
1267
|
+
/**
|
|
1268
|
+
* Limit how many Modifiers to update.
|
|
1269
|
+
*/
|
|
1270
|
+
limit?: number;
|
|
1271
|
+
};
|
|
1272
|
+
/**
|
|
1273
|
+
* Modifier updateManyAndReturn
|
|
1274
|
+
*/
|
|
1275
|
+
export type ModifierUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1276
|
+
/**
|
|
1277
|
+
* Select specific fields to fetch from the Modifier
|
|
1278
|
+
*/
|
|
1279
|
+
select?: Prisma.ModifierSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1280
|
+
/**
|
|
1281
|
+
* Omit specific fields from the Modifier
|
|
1282
|
+
*/
|
|
1283
|
+
omit?: Prisma.ModifierOmit<ExtArgs> | null;
|
|
1284
|
+
/**
|
|
1285
|
+
* The data used to update Modifiers.
|
|
1286
|
+
*/
|
|
1287
|
+
data: Prisma.XOR<Prisma.ModifierUpdateManyMutationInput, Prisma.ModifierUncheckedUpdateManyInput>;
|
|
1288
|
+
/**
|
|
1289
|
+
* Filter which Modifiers to update
|
|
1290
|
+
*/
|
|
1291
|
+
where?: Prisma.ModifierWhereInput;
|
|
1292
|
+
/**
|
|
1293
|
+
* Limit how many Modifiers to update.
|
|
1294
|
+
*/
|
|
1295
|
+
limit?: number;
|
|
1296
|
+
/**
|
|
1297
|
+
* Choose, which related nodes to fetch as well
|
|
1298
|
+
*/
|
|
1299
|
+
include?: Prisma.ModifierIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1300
|
+
};
|
|
1301
|
+
/**
|
|
1302
|
+
* Modifier upsert
|
|
1303
|
+
*/
|
|
1304
|
+
export type ModifierUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1305
|
+
/**
|
|
1306
|
+
* Select specific fields to fetch from the Modifier
|
|
1307
|
+
*/
|
|
1308
|
+
select?: Prisma.ModifierSelect<ExtArgs> | null;
|
|
1309
|
+
/**
|
|
1310
|
+
* Omit specific fields from the Modifier
|
|
1311
|
+
*/
|
|
1312
|
+
omit?: Prisma.ModifierOmit<ExtArgs> | null;
|
|
1313
|
+
/**
|
|
1314
|
+
* Choose, which related nodes to fetch as well
|
|
1315
|
+
*/
|
|
1316
|
+
include?: Prisma.ModifierInclude<ExtArgs> | null;
|
|
1317
|
+
/**
|
|
1318
|
+
* The filter to search for the Modifier to update in case it exists.
|
|
1319
|
+
*/
|
|
1320
|
+
where: Prisma.ModifierWhereUniqueInput;
|
|
1321
|
+
/**
|
|
1322
|
+
* In case the Modifier found by the `where` argument doesn't exist, create a new Modifier with this data.
|
|
1323
|
+
*/
|
|
1324
|
+
create: Prisma.XOR<Prisma.ModifierCreateInput, Prisma.ModifierUncheckedCreateInput>;
|
|
1325
|
+
/**
|
|
1326
|
+
* In case the Modifier was found with the provided `where` argument, update it with this data.
|
|
1327
|
+
*/
|
|
1328
|
+
update: Prisma.XOR<Prisma.ModifierUpdateInput, Prisma.ModifierUncheckedUpdateInput>;
|
|
1329
|
+
};
|
|
1330
|
+
/**
|
|
1331
|
+
* Modifier delete
|
|
1332
|
+
*/
|
|
1333
|
+
export type ModifierDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1334
|
+
/**
|
|
1335
|
+
* Select specific fields to fetch from the Modifier
|
|
1336
|
+
*/
|
|
1337
|
+
select?: Prisma.ModifierSelect<ExtArgs> | null;
|
|
1338
|
+
/**
|
|
1339
|
+
* Omit specific fields from the Modifier
|
|
1340
|
+
*/
|
|
1341
|
+
omit?: Prisma.ModifierOmit<ExtArgs> | null;
|
|
1342
|
+
/**
|
|
1343
|
+
* Choose, which related nodes to fetch as well
|
|
1344
|
+
*/
|
|
1345
|
+
include?: Prisma.ModifierInclude<ExtArgs> | null;
|
|
1346
|
+
/**
|
|
1347
|
+
* Filter which Modifier to delete.
|
|
1348
|
+
*/
|
|
1349
|
+
where: Prisma.ModifierWhereUniqueInput;
|
|
1350
|
+
};
|
|
1351
|
+
/**
|
|
1352
|
+
* Modifier deleteMany
|
|
1353
|
+
*/
|
|
1354
|
+
export type ModifierDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1355
|
+
/**
|
|
1356
|
+
* Filter which Modifiers to delete
|
|
1357
|
+
*/
|
|
1358
|
+
where?: Prisma.ModifierWhereInput;
|
|
1359
|
+
/**
|
|
1360
|
+
* Limit how many Modifiers to delete.
|
|
1361
|
+
*/
|
|
1362
|
+
limit?: number;
|
|
1363
|
+
};
|
|
1364
|
+
/**
|
|
1365
|
+
* Modifier.images
|
|
1366
|
+
*/
|
|
1367
|
+
export type Modifier$imagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1368
|
+
/**
|
|
1369
|
+
* Select specific fields to fetch from the File
|
|
1370
|
+
*/
|
|
1371
|
+
select?: Prisma.FileSelect<ExtArgs> | null;
|
|
1372
|
+
/**
|
|
1373
|
+
* Omit specific fields from the File
|
|
1374
|
+
*/
|
|
1375
|
+
omit?: Prisma.FileOmit<ExtArgs> | null;
|
|
1376
|
+
/**
|
|
1377
|
+
* Choose, which related nodes to fetch as well
|
|
1378
|
+
*/
|
|
1379
|
+
include?: Prisma.FileInclude<ExtArgs> | null;
|
|
1380
|
+
where?: Prisma.FileWhereInput;
|
|
1381
|
+
orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[];
|
|
1382
|
+
cursor?: Prisma.FileWhereUniqueInput;
|
|
1383
|
+
take?: number;
|
|
1384
|
+
skip?: number;
|
|
1385
|
+
distinct?: Prisma.FileScalarFieldEnum | Prisma.FileScalarFieldEnum[];
|
|
1386
|
+
};
|
|
1387
|
+
/**
|
|
1388
|
+
* Modifier without action
|
|
1389
|
+
*/
|
|
1390
|
+
export type ModifierDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1391
|
+
/**
|
|
1392
|
+
* Select specific fields to fetch from the Modifier
|
|
1393
|
+
*/
|
|
1394
|
+
select?: Prisma.ModifierSelect<ExtArgs> | null;
|
|
1395
|
+
/**
|
|
1396
|
+
* Omit specific fields from the Modifier
|
|
1397
|
+
*/
|
|
1398
|
+
omit?: Prisma.ModifierOmit<ExtArgs> | null;
|
|
1399
|
+
/**
|
|
1400
|
+
* Choose, which related nodes to fetch as well
|
|
1401
|
+
*/
|
|
1402
|
+
include?: Prisma.ModifierInclude<ExtArgs> | null;
|
|
1403
|
+
};
|
|
1404
|
+
export {};
|