@shophost/rest-api 2.0.31 → 2.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -14
- package/src/app.js +53 -1
- package/src/app.js.map +1 -0
- package/src/core/auth/auth.schema.js +41 -1
- package/src/core/auth/auth.schema.js.map +1 -0
- package/src/core/auth/auth.util.js +44 -1
- package/src/core/auth/auth.util.js.map +1 -0
- package/src/core/auth/better-auth.lib.js +100 -1
- package/src/core/auth/better-auth.lib.js.map +1 -0
- package/src/core/auth/generate-password-hash.util.d.ts +3 -0
- package/src/core/auth/generate-password-hash.util.js +30 -1
- package/src/core/auth/generate-password-hash.util.js.map +1 -0
- package/src/core/auth/headers.schema.js +22 -1
- package/src/core/auth/headers.schema.js.map +1 -0
- package/src/core/auth/user.schema.js +30 -1
- package/src/core/auth/user.schema.js.map +1 -0
- package/src/core/db/__generated__/client/browser.d.ts +128 -0
- package/src/core/db/__generated__/client/browser.js +18 -1
- package/src/core/db/__generated__/client/browser.js.map +1 -0
- package/src/core/db/__generated__/client/client.d.ts +143 -0
- package/src/core/db/__generated__/client/client.js +35 -1
- package/src/core/db/__generated__/client/client.js.map +1 -0
- package/src/core/db/__generated__/client/commonInputTypes.js +11 -1
- package/src/core/db/__generated__/client/commonInputTypes.js.map +1 -0
- package/src/core/db/__generated__/client/enums.js +200 -1
- package/src/core/db/__generated__/client/enums.js.map +1 -0
- package/src/core/db/__generated__/client/internal/class.d.ts +343 -0
- package/src/core/db/__generated__/client/internal/class.js +55 -1
- package/src/core/db/__generated__/client/internal/class.js.map +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +234 -0
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +541 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +15 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +512 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -0
- package/src/core/db/__generated__/client/models/Account.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Account.js +2 -1
- package/src/core/db/__generated__/client/models/Account.js.map +1 -0
- package/src/core/db/__generated__/client/models/Address.d.ts +706 -0
- package/src/core/db/__generated__/client/models/Address.js +2 -1
- package/src/core/db/__generated__/client/models/Address.js.map +1 -0
- package/src/core/db/__generated__/client/models/Campaign.d.ts +643 -0
- package/src/core/db/__generated__/client/models/Campaign.js +2 -1
- package/src/core/db/__generated__/client/models/Campaign.js.map +1 -0
- package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +639 -0
- package/src/core/db/__generated__/client/models/ClosingTimes.js +2 -1
- package/src/core/db/__generated__/client/models/ClosingTimes.js.map +1 -0
- package/src/core/db/__generated__/client/models/File.d.ts +757 -0
- package/src/core/db/__generated__/client/models/File.js +2 -1
- package/src/core/db/__generated__/client/models/File.js.map +1 -0
- package/src/core/db/__generated__/client/models/Invitation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Invitation.js +2 -1
- package/src/core/db/__generated__/client/models/Invitation.js.map +1 -0
- package/src/core/db/__generated__/client/models/LegalEntity.d.ts +657 -0
- package/src/core/db/__generated__/client/models/LegalEntity.js +2 -1
- package/src/core/db/__generated__/client/models/LegalEntity.js.map +1 -0
- package/src/core/db/__generated__/client/models/Manufacturer.d.ts +684 -0
- package/src/core/db/__generated__/client/models/Manufacturer.js +2 -1
- package/src/core/db/__generated__/client/models/Manufacturer.js.map +1 -0
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Member.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Member.js +2 -1
- package/src/core/db/__generated__/client/models/Member.js.map +1 -0
- package/src/core/db/__generated__/client/models/Modifier.d.ts +667 -0
- package/src/core/db/__generated__/client/models/Modifier.js +2 -1
- package/src/core/db/__generated__/client/models/Modifier.js.map +1 -0
- package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +691 -0
- package/src/core/db/__generated__/client/models/ModifierGroup.js +2 -1
- package/src/core/db/__generated__/client/models/ModifierGroup.js.map +1 -0
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +639 -0
- package/src/core/db/__generated__/client/models/OpeningTimes.js +2 -1
- package/src/core/db/__generated__/client/models/OpeningTimes.js.map +1 -0
- package/src/core/db/__generated__/client/models/Order.d.ts +705 -0
- package/src/core/db/__generated__/client/models/Order.js +2 -1
- package/src/core/db/__generated__/client/models/Order.js.map +1 -0
- package/src/core/db/__generated__/client/models/OrderItem.d.ts +691 -0
- package/src/core/db/__generated__/client/models/OrderItem.js +2 -1
- package/src/core/db/__generated__/client/models/OrderItem.js.map +1 -0
- package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Organization.d.ts +816 -0
- package/src/core/db/__generated__/client/models/Organization.js +2 -1
- package/src/core/db/__generated__/client/models/Organization.js.map +1 -0
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +681 -0
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +2 -1
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
- package/src/core/db/__generated__/client/models/Payment.d.ts +673 -0
- package/src/core/db/__generated__/client/models/Payment.js +2 -1
- package/src/core/db/__generated__/client/models/Payment.js.map +1 -0
- package/src/core/db/__generated__/client/models/PaymentSession.d.ts +643 -0
- package/src/core/db/__generated__/client/models/PaymentSession.js +2 -1
- package/src/core/db/__generated__/client/models/PaymentSession.js.map +1 -0
- package/src/core/db/__generated__/client/models/Product.d.ts +751 -0
- package/src/core/db/__generated__/client/models/Product.js +2 -1
- package/src/core/db/__generated__/client/models/Product.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductCategory.d.ts +694 -0
- package/src/core/db/__generated__/client/models/ProductCategory.js +2 -1
- package/src/core/db/__generated__/client/models/ProductCategory.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +669 -0
- package/src/core/db/__generated__/client/models/ProductSnapshot.js +2 -1
- package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ProductTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ProductTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Reservation.d.ts +655 -0
- package/src/core/db/__generated__/client/models/Reservation.js +2 -1
- package/src/core/db/__generated__/client/models/Reservation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Session.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Session.js +2 -1
- package/src/core/db/__generated__/client/models/Session.js.map +1 -0
- package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +684 -0
- package/src/core/db/__generated__/client/models/ShippingMethod.js +2 -1
- package/src/core/db/__generated__/client/models/ShippingMethod.js.map +1 -0
- package/src/core/db/__generated__/client/models/ShippingZone.d.ts +643 -0
- package/src/core/db/__generated__/client/models/ShippingZone.js +2 -1
- package/src/core/db/__generated__/client/models/ShippingZone.js.map +1 -0
- package/src/core/db/__generated__/client/models/User.d.ts +741 -0
- package/src/core/db/__generated__/client/models/User.js +2 -1
- package/src/core/db/__generated__/client/models/User.js.map +1 -0
- package/src/core/db/__generated__/client/models/Verification.d.ts +597 -0
- package/src/core/db/__generated__/client/models/Verification.js +2 -1
- package/src/core/db/__generated__/client/models/Verification.js.map +1 -0
- package/src/core/db/__generated__/client/models.js +2 -1
- package/src/core/db/__generated__/client/models.js.map +1 -0
- package/src/core/db/index.js +2 -1
- package/src/core/db/index.js.map +1 -0
- package/src/core/exceptions/http-exception.js +9 -1
- package/src/core/exceptions/http-exception.js.map +1 -0
- package/src/core/hono/hono.js +123 -1
- package/src/core/hono/hono.js.map +1 -0
- package/src/core/lib/prisma.js +11 -1
- package/src/core/lib/prisma.js.map +1 -0
- package/src/core/logging/pino.js +5 -1
- package/src/core/logging/pino.js.map +1 -0
- package/src/core/notifications/email.service.d.ts +15 -0
- package/src/core/notifications/email.service.js +116 -1
- package/src/core/notifications/email.service.js.map +1 -0
- package/src/core/openapi/openapi.lib.js +26 -1
- package/src/core/openapi/openapi.lib.js.map +1 -0
- package/src/core/types/google-maps.types.js +2 -1
- package/src/core/types/google-maps.types.js.map +1 -0
- package/src/core/utils/currency.util.js +11 -1
- package/src/core/utils/currency.util.js.map +1 -0
- package/src/core/utils/env.util.js +8 -1
- package/src/core/utils/env.util.js.map +1 -0
- package/src/core/utils/object.util.d.ts +10 -0
- package/src/core/utils/object.util.js +39 -1
- package/src/core/utils/object.util.js.map +1 -0
- package/src/core/utils/translations.util.js +2 -0
- package/src/core/utils/translations.util.js.map +1 -0
- package/src/core/utils/zod.util.d.ts +12 -0
- package/src/core/utils/zod.util.js +85 -1
- package/src/core/utils/zod.util.js.map +1 -0
- package/src/db.js +3 -1
- package/src/db.js.map +1 -0
- package/src/features/access/access.handler.js +91 -1
- package/src/features/access/access.handler.js.map +1 -0
- package/src/features/access/access.route.js +220 -1
- package/src/features/access/access.route.js.map +1 -0
- package/src/features/access/access.schema.js +108 -1
- package/src/features/access/access.schema.js.map +1 -0
- package/src/features/access/access.service.js +294 -1
- package/src/features/access/access.service.js.map +1 -0
- package/src/features/cart/cart.handler.js +17 -1
- package/src/features/cart/cart.handler.js.map +1 -0
- package/src/features/cart/cart.route.js +32 -1
- package/src/features/cart/cart.route.js.map +1 -0
- package/src/features/cart/cart.schema.js +39 -1
- package/src/features/cart/cart.schema.js.map +1 -0
- package/src/features/cart/cart.service.d.ts +7 -0
- package/src/features/cart/cart.service.js +97 -1
- package/src/features/cart/cart.service.js.map +1 -0
- package/src/features/cart/cart.util.js +76 -1
- package/src/features/cart/cart.util.js.map +1 -0
- package/src/features/file/file.handler.js +23 -1
- package/src/features/file/file.handler.js.map +1 -0
- package/src/features/file/file.route.js +34 -1
- package/src/features/file/file.route.js.map +1 -0
- package/src/features/file/file.schema.js +77 -1
- package/src/features/file/file.schema.js.map +1 -0
- package/src/features/file/file.service.d.ts +6 -0
- package/src/features/file/file.service.js +66 -1
- package/src/features/file/file.service.js.map +1 -0
- package/src/features/health/health.handler.js +10 -1
- package/src/features/health/health.handler.js.map +1 -0
- package/src/features/health/health.route.js +25 -1
- package/src/features/health/health.route.js.map +1 -0
- package/src/features/index.js +16 -1
- package/src/features/index.js.map +1 -0
- package/src/features/location/location.handler.js +25 -1
- package/src/features/location/location.handler.js.map +1 -0
- package/src/features/location/location.route.js +56 -1
- package/src/features/location/location.route.js.map +1 -0
- package/src/features/location/location.schema.js +50 -1
- package/src/features/location/location.schema.js.map +1 -0
- package/src/features/location/location.service.d.ts +3 -0
- package/src/features/location/location.service.js +141 -1
- package/src/features/location/location.service.js.map +1 -0
- package/src/features/manufacturer/manufacturer.handler.js +53 -1
- package/src/features/manufacturer/manufacturer.handler.js.map +1 -0
- package/src/features/manufacturer/manufacturer.route.js +97 -1
- package/src/features/manufacturer/manufacturer.route.js.map +1 -0
- package/src/features/manufacturer/manufacturer.schema.js +125 -1
- package/src/features/manufacturer/manufacturer.schema.js.map +1 -0
- package/src/features/manufacturer/manufacturer.service.d.ts +19 -0
- package/src/features/manufacturer/manufacturer.service.js +190 -1
- package/src/features/manufacturer/manufacturer.service.js.map +1 -0
- package/src/features/order/emails/order-confirmation.email.js +229 -1
- package/src/features/order/emails/order-confirmation.email.js.map +1 -0
- package/src/features/order/emails/order-notification.email.js +229 -1
- package/src/features/order/emails/order-notification.email.js.map +1 -0
- package/src/features/order/fulfilment.schema.js +3 -1
- package/src/features/order/fulfilment.schema.js.map +1 -0
- package/src/features/order/order.handler.js +54 -1
- package/src/features/order/order.handler.js.map +1 -0
- package/src/features/order/order.route.js +111 -1
- package/src/features/order/order.route.js.map +1 -0
- package/src/features/order/order.schema.js +158 -1
- package/src/features/order/order.schema.js.map +1 -0
- package/src/features/order/order.service.d.ts +15 -0
- package/src/features/order/order.service.js +306 -1
- package/src/features/order/order.service.js.map +1 -0
- package/src/features/order/recipient.schema.js +38 -1
- package/src/features/order/recipient.schema.js.map +1 -0
- package/src/features/organization/legal-entity.schema.js +83 -1
- package/src/features/organization/legal-entity.schema.js.map +1 -0
- package/src/features/organization/organization-configuration.schema.js +115 -1
- package/src/features/organization/organization-configuration.schema.js.map +1 -0
- package/src/features/organization/organization.handler.js +48 -1
- package/src/features/organization/organization.handler.js.map +1 -0
- package/src/features/organization/organization.route.js +84 -1
- package/src/features/organization/organization.route.js.map +1 -0
- package/src/features/organization/organization.schema.js +64 -1
- package/src/features/organization/organization.schema.js.map +1 -0
- package/src/features/organization/organization.service.d.ts +15 -0
- package/src/features/organization/organization.service.js +334 -1
- package/src/features/organization/organization.service.js.map +1 -0
- package/src/features/payment/payment.handler.js +16 -1
- package/src/features/payment/payment.handler.js.map +1 -0
- package/src/features/payment/payment.route.js +22 -1
- package/src/features/payment/payment.route.js.map +1 -0
- package/src/features/payment/payment.schema.js +46 -1
- package/src/features/payment/payment.schema.js.map +1 -0
- package/src/features/payment/payment.service.js +100 -1
- package/src/features/payment/payment.service.js.map +1 -0
- package/src/features/payment/stripe.service.js +164 -1
- package/src/features/payment/stripe.service.js.map +1 -0
- package/src/features/product/product-modifier.schema.js +84 -1
- package/src/features/product/product-modifier.schema.js.map +1 -0
- package/src/features/product/product.handler.js +87 -1
- package/src/features/product/product.handler.js.map +1 -0
- package/src/features/product/product.route.js +179 -1
- package/src/features/product/product.route.js.map +1 -0
- package/src/features/product/product.schema.js +143 -1
- package/src/features/product/product.schema.js.map +1 -0
- package/src/features/product/product.service.d.ts +25 -0
- package/src/features/product/product.service.js +440 -1
- package/src/features/product/product.service.js.map +1 -0
- package/src/features/product-category/product-category.handler.js +59 -1
- package/src/features/product-category/product-category.handler.js.map +1 -0
- package/src/features/product-category/product-category.route.js +139 -1
- package/src/features/product-category/product-category.route.js.map +1 -0
- package/src/features/product-category/product-category.schema.js +86 -1
- package/src/features/product-category/product-category.schema.js.map +1 -0
- package/src/features/product-category/product-category.service.d.ts +22 -0
- package/src/features/product-category/product-category.service.js +220 -1
- package/src/features/product-category/product-category.service.js.map +1 -0
- package/src/features/reservation/emails/reservation-cancellation.email.js +82 -1
- package/src/features/reservation/emails/reservation-cancellation.email.js.map +1 -0
- package/src/features/reservation/emails/reservation-confirmation.email.js +82 -1
- package/src/features/reservation/emails/reservation-confirmation.email.js.map +1 -0
- package/src/features/reservation/emails/reservation-notification.email.js +93 -1
- package/src/features/reservation/emails/reservation-notification.email.js.map +1 -0
- package/src/features/reservation/reservation.handler.js +65 -1
- package/src/features/reservation/reservation.handler.js.map +1 -0
- package/src/features/reservation/reservation.route.js +167 -1
- package/src/features/reservation/reservation.route.js.map +1 -0
- package/src/features/reservation/reservation.schema.js +51 -1
- package/src/features/reservation/reservation.schema.js.map +1 -0
- package/src/features/reservation/reservation.service.d.ts +18 -0
- package/src/features/reservation/reservation.service.js +231 -1
- package/src/features/reservation/reservation.service.js.map +1 -0
- package/src/features/shipping/shipping.handler.js +32 -1
- package/src/features/shipping/shipping.handler.js.map +1 -0
- package/src/features/shipping/shipping.route.js +51 -1
- package/src/features/shipping/shipping.route.js.map +1 -0
- package/src/features/shipping/shipping.service.d.ts +7 -0
- package/src/features/shipping/shipping.service.js +96 -1
- package/src/features/shipping/shipping.service.js.map +1 -0
- package/src/features/shipping-method/shipping-method.handler.js +60 -1
- package/src/features/shipping-method/shipping-method.handler.js.map +1 -0
- package/src/features/shipping-method/shipping-method.route.js +144 -1
- package/src/features/shipping-method/shipping-method.route.js.map +1 -0
- package/src/features/shipping-method/shipping-method.schema.js +48 -1
- package/src/features/shipping-method/shipping-method.schema.js.map +1 -0
- package/src/features/shipping-method/shipping-method.service.d.ts +25 -0
- package/src/features/shipping-method/shipping-method.service.js +229 -1
- package/src/features/shipping-method/shipping-method.service.js.map +1 -0
- package/src/features/shipping-method/shipping-zone.schema.js +31 -1
- package/src/features/shipping-method/shipping-zone.schema.js.map +1 -0
- package/src/features/webhook/webhook.handler.js +50 -1
- package/src/features/webhook/webhook.handler.js.map +1 -0
- package/src/features/webhook/webhook.route.js +33 -1
- package/src/features/webhook/webhook.route.js.map +1 -0
- package/src/index.js +6 -1
- package/src/index.js.map +1 -0
- package/src/integrations/next.js +82 -1
- package/src/integrations/next.js.map +1 -0
- package/src/schemas/address.schema.d.ts +8 -0
- package/src/schemas/address.schema.js +112 -1
- package/src/schemas/address.schema.js.map +1 -0
- package/src/schemas/currency.schema.d.ts +42 -0
- package/src/schemas/currency.schema.js +118 -1
- package/src/schemas/currency.schema.js.map +1 -0
- package/src/schemas/error.schema.js +12 -1
- package/src/schemas/error.schema.js.map +1 -0
- package/src/schemas/index.js +29 -1
- package/src/schemas/index.js.map +1 -0
- package/src/schemas/locales.schema.js +238 -1
- package/src/schemas/locales.schema.js.map +1 -0
- package/src/schemas/number.schema.js +29 -1
- package/src/schemas/number.schema.js.map +1 -0
- package/src/schemas/pagination.schema.js +54 -1
- package/src/schemas/pagination.schema.js.map +1 -0
- package/src/schemas/params.schema.js +20 -1
- package/src/schemas/params.schema.js.map +1 -0
- package/src/schemas/queries.schema.js +6 -1
- package/src/schemas/queries.schema.js.map +1 -0
- package/src/test/global-setup.js +37 -1
- package/src/test/global-setup.js.map +1 -0
- package/src/test/integration/api-fixtures.js +160 -1
- package/src/test/integration/api-fixtures.js.map +1 -0
- package/src/test/integration/seed.js +368 -1
- package/src/test/integration/seed.js.map +1 -0
- package/src/test/integration/test-helpers.js +154 -1
- package/src/test/integration/test-helpers.js.map +1 -0
- package/src/test/setup-test-env.js +7 -1
- package/src/test/setup-test-env.js.map +1 -0
- package/scripts/minify.mjs +0 -110
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
2
|
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model Product
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
3
7
|
export type ProductModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductPayload>;
|
|
4
8
|
export type AggregateProduct = {
|
|
5
9
|
_count: ProductCountAggregateOutputType | null;
|
|
@@ -151,15 +155,63 @@ export type ProductCountAggregateInputType = {
|
|
|
151
155
|
_all?: true;
|
|
152
156
|
};
|
|
153
157
|
export type ProductAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
158
|
+
/**
|
|
159
|
+
* Filter which Product to aggregate.
|
|
160
|
+
*/
|
|
154
161
|
where?: Prisma.ProductWhereInput;
|
|
162
|
+
/**
|
|
163
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
164
|
+
*
|
|
165
|
+
* Determine the order of Products to fetch.
|
|
166
|
+
*/
|
|
155
167
|
orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
|
|
168
|
+
/**
|
|
169
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
170
|
+
*
|
|
171
|
+
* Sets the start position
|
|
172
|
+
*/
|
|
156
173
|
cursor?: Prisma.ProductWhereUniqueInput;
|
|
174
|
+
/**
|
|
175
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
176
|
+
*
|
|
177
|
+
* Take `±n` Products from the position of the cursor.
|
|
178
|
+
*/
|
|
157
179
|
take?: number;
|
|
180
|
+
/**
|
|
181
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
182
|
+
*
|
|
183
|
+
* Skip the first `n` Products.
|
|
184
|
+
*/
|
|
158
185
|
skip?: number;
|
|
186
|
+
/**
|
|
187
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
188
|
+
*
|
|
189
|
+
* Count returned Products
|
|
190
|
+
**/
|
|
159
191
|
_count?: true | ProductCountAggregateInputType;
|
|
192
|
+
/**
|
|
193
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
194
|
+
*
|
|
195
|
+
* Select which fields to average
|
|
196
|
+
**/
|
|
160
197
|
_avg?: ProductAvgAggregateInputType;
|
|
198
|
+
/**
|
|
199
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
200
|
+
*
|
|
201
|
+
* Select which fields to sum
|
|
202
|
+
**/
|
|
161
203
|
_sum?: ProductSumAggregateInputType;
|
|
204
|
+
/**
|
|
205
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
206
|
+
*
|
|
207
|
+
* Select which fields to find the minimum value
|
|
208
|
+
**/
|
|
162
209
|
_min?: ProductMinAggregateInputType;
|
|
210
|
+
/**
|
|
211
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
212
|
+
*
|
|
213
|
+
* Select which fields to find the maximum value
|
|
214
|
+
**/
|
|
163
215
|
_max?: ProductMaxAggregateInputType;
|
|
164
216
|
};
|
|
165
217
|
export type GetProductAggregateType<T extends ProductAggregateArgs> = {
|
|
@@ -1996,6 +2048,9 @@ export type ProductUncheckedUpdateManyWithoutModifierGroupsInput = {
|
|
|
1996
2048
|
updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1997
2049
|
latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1998
2050
|
};
|
|
2051
|
+
/**
|
|
2052
|
+
* Count Type ProductCountOutputType
|
|
2053
|
+
*/
|
|
1999
2054
|
export type ProductCountOutputType = {
|
|
2000
2055
|
images: number;
|
|
2001
2056
|
categories: number;
|
|
@@ -2010,21 +2065,42 @@ export type ProductCountOutputTypeSelect<ExtArgs extends runtime.Types.Extension
|
|
|
2010
2065
|
translations?: boolean | ProductCountOutputTypeCountTranslationsArgs;
|
|
2011
2066
|
snapshots?: boolean | ProductCountOutputTypeCountSnapshotsArgs;
|
|
2012
2067
|
};
|
|
2068
|
+
/**
|
|
2069
|
+
* ProductCountOutputType without action
|
|
2070
|
+
*/
|
|
2013
2071
|
export type ProductCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2072
|
+
/**
|
|
2073
|
+
* Select specific fields to fetch from the ProductCountOutputType
|
|
2074
|
+
*/
|
|
2014
2075
|
select?: Prisma.ProductCountOutputTypeSelect<ExtArgs> | null;
|
|
2015
2076
|
};
|
|
2077
|
+
/**
|
|
2078
|
+
* ProductCountOutputType without action
|
|
2079
|
+
*/
|
|
2016
2080
|
export type ProductCountOutputTypeCountImagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2017
2081
|
where?: Prisma.FileWhereInput;
|
|
2018
2082
|
};
|
|
2083
|
+
/**
|
|
2084
|
+
* ProductCountOutputType without action
|
|
2085
|
+
*/
|
|
2019
2086
|
export type ProductCountOutputTypeCountCategoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2020
2087
|
where?: Prisma.ProductCategoryWhereInput;
|
|
2021
2088
|
};
|
|
2089
|
+
/**
|
|
2090
|
+
* ProductCountOutputType without action
|
|
2091
|
+
*/
|
|
2022
2092
|
export type ProductCountOutputTypeCountModifierGroupsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2023
2093
|
where?: Prisma.ModifierGroupWhereInput;
|
|
2024
2094
|
};
|
|
2095
|
+
/**
|
|
2096
|
+
* ProductCountOutputType without action
|
|
2097
|
+
*/
|
|
2025
2098
|
export type ProductCountOutputTypeCountTranslationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2026
2099
|
where?: Prisma.ProductTranslationWhereInput;
|
|
2027
2100
|
};
|
|
2101
|
+
/**
|
|
2102
|
+
* ProductCountOutputType without action
|
|
2103
|
+
*/
|
|
2028
2104
|
export type ProductCountOutputTypeCountSnapshotsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2029
2105
|
where?: Prisma.ProductSnapshotWhereInput;
|
|
2030
2106
|
};
|
|
@@ -2200,22 +2276,290 @@ export interface ProductDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
2200
2276
|
name: 'Product';
|
|
2201
2277
|
};
|
|
2202
2278
|
};
|
|
2279
|
+
/**
|
|
2280
|
+
* Find zero or one Product that matches the filter.
|
|
2281
|
+
* @param {ProductFindUniqueArgs} args - Arguments to find a Product
|
|
2282
|
+
* @example
|
|
2283
|
+
* // Get one Product
|
|
2284
|
+
* const product = await prisma.product.findUnique({
|
|
2285
|
+
* where: {
|
|
2286
|
+
* // ... provide filter here
|
|
2287
|
+
* }
|
|
2288
|
+
* })
|
|
2289
|
+
*/
|
|
2203
2290
|
findUnique<T extends ProductFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2291
|
+
/**
|
|
2292
|
+
* Find one Product that matches the filter or throw an error with `error.code='P2025'`
|
|
2293
|
+
* if no matches were found.
|
|
2294
|
+
* @param {ProductFindUniqueOrThrowArgs} args - Arguments to find a Product
|
|
2295
|
+
* @example
|
|
2296
|
+
* // Get one Product
|
|
2297
|
+
* const product = await prisma.product.findUniqueOrThrow({
|
|
2298
|
+
* where: {
|
|
2299
|
+
* // ... provide filter here
|
|
2300
|
+
* }
|
|
2301
|
+
* })
|
|
2302
|
+
*/
|
|
2204
2303
|
findUniqueOrThrow<T extends ProductFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2304
|
+
/**
|
|
2305
|
+
* Find the first Product that matches the filter.
|
|
2306
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2307
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2308
|
+
* @param {ProductFindFirstArgs} args - Arguments to find a Product
|
|
2309
|
+
* @example
|
|
2310
|
+
* // Get one Product
|
|
2311
|
+
* const product = await prisma.product.findFirst({
|
|
2312
|
+
* where: {
|
|
2313
|
+
* // ... provide filter here
|
|
2314
|
+
* }
|
|
2315
|
+
* })
|
|
2316
|
+
*/
|
|
2205
2317
|
findFirst<T extends ProductFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2318
|
+
/**
|
|
2319
|
+
* Find the first Product that matches the filter or
|
|
2320
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
2321
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2322
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2323
|
+
* @param {ProductFindFirstOrThrowArgs} args - Arguments to find a Product
|
|
2324
|
+
* @example
|
|
2325
|
+
* // Get one Product
|
|
2326
|
+
* const product = await prisma.product.findFirstOrThrow({
|
|
2327
|
+
* where: {
|
|
2328
|
+
* // ... provide filter here
|
|
2329
|
+
* }
|
|
2330
|
+
* })
|
|
2331
|
+
*/
|
|
2206
2332
|
findFirstOrThrow<T extends ProductFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2333
|
+
/**
|
|
2334
|
+
* Find zero or more Products that matches the filter.
|
|
2335
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2336
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2337
|
+
* @param {ProductFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
2338
|
+
* @example
|
|
2339
|
+
* // Get all Products
|
|
2340
|
+
* const products = await prisma.product.findMany()
|
|
2341
|
+
*
|
|
2342
|
+
* // Get first 10 Products
|
|
2343
|
+
* const products = await prisma.product.findMany({ take: 10 })
|
|
2344
|
+
*
|
|
2345
|
+
* // Only select the `id`
|
|
2346
|
+
* const productWithIdOnly = await prisma.product.findMany({ select: { id: true } })
|
|
2347
|
+
*
|
|
2348
|
+
*/
|
|
2207
2349
|
findMany<T extends ProductFindManyArgs>(args?: Prisma.SelectSubset<T, ProductFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
2350
|
+
/**
|
|
2351
|
+
* Create a Product.
|
|
2352
|
+
* @param {ProductCreateArgs} args - Arguments to create a Product.
|
|
2353
|
+
* @example
|
|
2354
|
+
* // Create one Product
|
|
2355
|
+
* const Product = await prisma.product.create({
|
|
2356
|
+
* data: {
|
|
2357
|
+
* // ... data to create a Product
|
|
2358
|
+
* }
|
|
2359
|
+
* })
|
|
2360
|
+
*
|
|
2361
|
+
*/
|
|
2208
2362
|
create<T extends ProductCreateArgs>(args: Prisma.SelectSubset<T, ProductCreateArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2363
|
+
/**
|
|
2364
|
+
* Create many Products.
|
|
2365
|
+
* @param {ProductCreateManyArgs} args - Arguments to create many Products.
|
|
2366
|
+
* @example
|
|
2367
|
+
* // Create many Products
|
|
2368
|
+
* const product = await prisma.product.createMany({
|
|
2369
|
+
* data: [
|
|
2370
|
+
* // ... provide data here
|
|
2371
|
+
* ]
|
|
2372
|
+
* })
|
|
2373
|
+
*
|
|
2374
|
+
*/
|
|
2209
2375
|
createMany<T extends ProductCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
2376
|
+
/**
|
|
2377
|
+
* Create many Products and returns the data saved in the database.
|
|
2378
|
+
* @param {ProductCreateManyAndReturnArgs} args - Arguments to create many Products.
|
|
2379
|
+
* @example
|
|
2380
|
+
* // Create many Products
|
|
2381
|
+
* const product = await prisma.product.createManyAndReturn({
|
|
2382
|
+
* data: [
|
|
2383
|
+
* // ... provide data here
|
|
2384
|
+
* ]
|
|
2385
|
+
* })
|
|
2386
|
+
*
|
|
2387
|
+
* // Create many Products and only return the `id`
|
|
2388
|
+
* const productWithIdOnly = await prisma.product.createManyAndReturn({
|
|
2389
|
+
* select: { id: true },
|
|
2390
|
+
* data: [
|
|
2391
|
+
* // ... provide data here
|
|
2392
|
+
* ]
|
|
2393
|
+
* })
|
|
2394
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2395
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2396
|
+
*
|
|
2397
|
+
*/
|
|
2210
2398
|
createManyAndReturn<T extends ProductCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProductCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
2399
|
+
/**
|
|
2400
|
+
* Delete a Product.
|
|
2401
|
+
* @param {ProductDeleteArgs} args - Arguments to delete one Product.
|
|
2402
|
+
* @example
|
|
2403
|
+
* // Delete one Product
|
|
2404
|
+
* const Product = await prisma.product.delete({
|
|
2405
|
+
* where: {
|
|
2406
|
+
* // ... filter to delete one Product
|
|
2407
|
+
* }
|
|
2408
|
+
* })
|
|
2409
|
+
*
|
|
2410
|
+
*/
|
|
2211
2411
|
delete<T extends ProductDeleteArgs>(args: Prisma.SelectSubset<T, ProductDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2412
|
+
/**
|
|
2413
|
+
* Update one Product.
|
|
2414
|
+
* @param {ProductUpdateArgs} args - Arguments to update one Product.
|
|
2415
|
+
* @example
|
|
2416
|
+
* // Update one Product
|
|
2417
|
+
* const product = await prisma.product.update({
|
|
2418
|
+
* where: {
|
|
2419
|
+
* // ... provide filter here
|
|
2420
|
+
* },
|
|
2421
|
+
* data: {
|
|
2422
|
+
* // ... provide data here
|
|
2423
|
+
* }
|
|
2424
|
+
* })
|
|
2425
|
+
*
|
|
2426
|
+
*/
|
|
2212
2427
|
update<T extends ProductUpdateArgs>(args: Prisma.SelectSubset<T, ProductUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2428
|
+
/**
|
|
2429
|
+
* Delete zero or more Products.
|
|
2430
|
+
* @param {ProductDeleteManyArgs} args - Arguments to filter Products to delete.
|
|
2431
|
+
* @example
|
|
2432
|
+
* // Delete a few Products
|
|
2433
|
+
* const { count } = await prisma.product.deleteMany({
|
|
2434
|
+
* where: {
|
|
2435
|
+
* // ... provide filter here
|
|
2436
|
+
* }
|
|
2437
|
+
* })
|
|
2438
|
+
*
|
|
2439
|
+
*/
|
|
2213
2440
|
deleteMany<T extends ProductDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
2441
|
+
/**
|
|
2442
|
+
* Update zero or more Products.
|
|
2443
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2444
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2445
|
+
* @param {ProductUpdateManyArgs} args - Arguments to update one or more rows.
|
|
2446
|
+
* @example
|
|
2447
|
+
* // Update many Products
|
|
2448
|
+
* const product = await prisma.product.updateMany({
|
|
2449
|
+
* where: {
|
|
2450
|
+
* // ... provide filter here
|
|
2451
|
+
* },
|
|
2452
|
+
* data: {
|
|
2453
|
+
* // ... provide data here
|
|
2454
|
+
* }
|
|
2455
|
+
* })
|
|
2456
|
+
*
|
|
2457
|
+
*/
|
|
2214
2458
|
updateMany<T extends ProductUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
2459
|
+
/**
|
|
2460
|
+
* Update zero or more Products and returns the data updated in the database.
|
|
2461
|
+
* @param {ProductUpdateManyAndReturnArgs} args - Arguments to update many Products.
|
|
2462
|
+
* @example
|
|
2463
|
+
* // Update many Products
|
|
2464
|
+
* const product = await prisma.product.updateManyAndReturn({
|
|
2465
|
+
* where: {
|
|
2466
|
+
* // ... provide filter here
|
|
2467
|
+
* },
|
|
2468
|
+
* data: [
|
|
2469
|
+
* // ... provide data here
|
|
2470
|
+
* ]
|
|
2471
|
+
* })
|
|
2472
|
+
*
|
|
2473
|
+
* // Update zero or more Products and only return the `id`
|
|
2474
|
+
* const productWithIdOnly = await prisma.product.updateManyAndReturn({
|
|
2475
|
+
* select: { id: true },
|
|
2476
|
+
* where: {
|
|
2477
|
+
* // ... provide filter here
|
|
2478
|
+
* },
|
|
2479
|
+
* data: [
|
|
2480
|
+
* // ... provide data here
|
|
2481
|
+
* ]
|
|
2482
|
+
* })
|
|
2483
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2484
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2485
|
+
*
|
|
2486
|
+
*/
|
|
2215
2487
|
updateManyAndReturn<T extends ProductUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProductUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
2488
|
+
/**
|
|
2489
|
+
* Create or update one Product.
|
|
2490
|
+
* @param {ProductUpsertArgs} args - Arguments to update or create a Product.
|
|
2491
|
+
* @example
|
|
2492
|
+
* // Update or create a Product
|
|
2493
|
+
* const product = await prisma.product.upsert({
|
|
2494
|
+
* create: {
|
|
2495
|
+
* // ... data to create a Product
|
|
2496
|
+
* },
|
|
2497
|
+
* update: {
|
|
2498
|
+
* // ... in case it already exists, update
|
|
2499
|
+
* },
|
|
2500
|
+
* where: {
|
|
2501
|
+
* // ... the filter for the Product we want to update
|
|
2502
|
+
* }
|
|
2503
|
+
* })
|
|
2504
|
+
*/
|
|
2216
2505
|
upsert<T extends ProductUpsertArgs>(args: Prisma.SelectSubset<T, ProductUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2506
|
+
/**
|
|
2507
|
+
* Count the number of Products.
|
|
2508
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2509
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2510
|
+
* @param {ProductCountArgs} args - Arguments to filter Products to count.
|
|
2511
|
+
* @example
|
|
2512
|
+
* // Count the number of Products
|
|
2513
|
+
* const count = await prisma.product.count({
|
|
2514
|
+
* where: {
|
|
2515
|
+
* // ... the filter for the Products we want to count
|
|
2516
|
+
* }
|
|
2517
|
+
* })
|
|
2518
|
+
**/
|
|
2217
2519
|
count<T extends ProductCountArgs>(args?: Prisma.Subset<T, ProductCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProductCountAggregateOutputType> : number>;
|
|
2520
|
+
/**
|
|
2521
|
+
* Allows you to perform aggregations operations on a Product.
|
|
2522
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2523
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2524
|
+
* @param {ProductAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
2525
|
+
* @example
|
|
2526
|
+
* // Ordered by age ascending
|
|
2527
|
+
* // Where email contains prisma.io
|
|
2528
|
+
* // Limited to the 10 users
|
|
2529
|
+
* const aggregations = await prisma.user.aggregate({
|
|
2530
|
+
* _avg: {
|
|
2531
|
+
* age: true,
|
|
2532
|
+
* },
|
|
2533
|
+
* where: {
|
|
2534
|
+
* email: {
|
|
2535
|
+
* contains: "prisma.io",
|
|
2536
|
+
* },
|
|
2537
|
+
* },
|
|
2538
|
+
* orderBy: {
|
|
2539
|
+
* age: "asc",
|
|
2540
|
+
* },
|
|
2541
|
+
* take: 10,
|
|
2542
|
+
* })
|
|
2543
|
+
**/
|
|
2218
2544
|
aggregate<T extends ProductAggregateArgs>(args: Prisma.Subset<T, ProductAggregateArgs>): Prisma.PrismaPromise<GetProductAggregateType<T>>;
|
|
2545
|
+
/**
|
|
2546
|
+
* Group by Product.
|
|
2547
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2548
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2549
|
+
* @param {ProductGroupByArgs} args - Group by arguments.
|
|
2550
|
+
* @example
|
|
2551
|
+
* // Group by city, order by createdAt, get count
|
|
2552
|
+
* const result = await prisma.user.groupBy({
|
|
2553
|
+
* by: ['city', 'createdAt'],
|
|
2554
|
+
* orderBy: {
|
|
2555
|
+
* createdAt: true
|
|
2556
|
+
* },
|
|
2557
|
+
* _count: {
|
|
2558
|
+
* _all: true
|
|
2559
|
+
* },
|
|
2560
|
+
* })
|
|
2561
|
+
*
|
|
2562
|
+
**/
|
|
2219
2563
|
groupBy<T extends ProductGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
2220
2564
|
orderBy: ProductGroupByArgs['orderBy'];
|
|
2221
2565
|
} : {
|
|
@@ -2234,8 +2578,17 @@ export interface ProductDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
2234
2578
|
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
2235
2579
|
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
2236
2580
|
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ProductGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
2581
|
+
/**
|
|
2582
|
+
* Fields of the Product model
|
|
2583
|
+
*/
|
|
2237
2584
|
readonly fields: ProductFieldRefs;
|
|
2238
2585
|
}
|
|
2586
|
+
/**
|
|
2587
|
+
* The delegate class that acts as a "Promise-like" for Product.
|
|
2588
|
+
* Why is this prefixed with `Prisma__`?
|
|
2589
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
2590
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
2591
|
+
*/
|
|
2239
2592
|
export interface Prisma__ProductClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
2240
2593
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
2241
2594
|
images<T extends Prisma.Product$imagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$imagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
@@ -2246,10 +2599,30 @@ export interface Prisma__ProductClient<T, Null = never, ExtArgs extends runtime.
|
|
|
2246
2599
|
translations<T extends Prisma.Product$translationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$translationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductTranslationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
2247
2600
|
snapshots<T extends Prisma.Product$snapshotsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$snapshotsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
2248
2601
|
latestSnapshot<T extends Prisma.Product$latestSnapshotArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$latestSnapshotArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2602
|
+
/**
|
|
2603
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
2604
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
2605
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
2606
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
2607
|
+
*/
|
|
2249
2608
|
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>;
|
|
2609
|
+
/**
|
|
2610
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
2611
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
2612
|
+
* @returns A Promise for the completion of the callback.
|
|
2613
|
+
*/
|
|
2250
2614
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
2615
|
+
/**
|
|
2616
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
2617
|
+
* resolved value cannot be modified from the callback.
|
|
2618
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
2619
|
+
* @returns A Promise for the completion of the callback.
|
|
2620
|
+
*/
|
|
2251
2621
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
2252
2622
|
}
|
|
2623
|
+
/**
|
|
2624
|
+
* Fields of the Product model
|
|
2625
|
+
*/
|
|
2253
2626
|
export interface ProductFieldRefs {
|
|
2254
2627
|
readonly id: Prisma.FieldRef<"Product", 'String'>;
|
|
2255
2628
|
readonly content: Prisma.FieldRef<"Product", 'String'>;
|
|
@@ -2272,109 +2645,403 @@ export interface ProductFieldRefs {
|
|
|
2272
2645
|
readonly updatedBy: Prisma.FieldRef<"Product", 'String'>;
|
|
2273
2646
|
readonly latestSnapshotId: Prisma.FieldRef<"Product", 'String'>;
|
|
2274
2647
|
}
|
|
2648
|
+
/**
|
|
2649
|
+
* Product findUnique
|
|
2650
|
+
*/
|
|
2275
2651
|
export type ProductFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2652
|
+
/**
|
|
2653
|
+
* Select specific fields to fetch from the Product
|
|
2654
|
+
*/
|
|
2276
2655
|
select?: Prisma.ProductSelect<ExtArgs> | null;
|
|
2656
|
+
/**
|
|
2657
|
+
* Omit specific fields from the Product
|
|
2658
|
+
*/
|
|
2277
2659
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
2660
|
+
/**
|
|
2661
|
+
* Choose, which related nodes to fetch as well
|
|
2662
|
+
*/
|
|
2278
2663
|
include?: Prisma.ProductInclude<ExtArgs> | null;
|
|
2664
|
+
/**
|
|
2665
|
+
* Filter, which Product to fetch.
|
|
2666
|
+
*/
|
|
2279
2667
|
where: Prisma.ProductWhereUniqueInput;
|
|
2280
2668
|
};
|
|
2669
|
+
/**
|
|
2670
|
+
* Product findUniqueOrThrow
|
|
2671
|
+
*/
|
|
2281
2672
|
export type ProductFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2673
|
+
/**
|
|
2674
|
+
* Select specific fields to fetch from the Product
|
|
2675
|
+
*/
|
|
2282
2676
|
select?: Prisma.ProductSelect<ExtArgs> | null;
|
|
2677
|
+
/**
|
|
2678
|
+
* Omit specific fields from the Product
|
|
2679
|
+
*/
|
|
2283
2680
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
2681
|
+
/**
|
|
2682
|
+
* Choose, which related nodes to fetch as well
|
|
2683
|
+
*/
|
|
2284
2684
|
include?: Prisma.ProductInclude<ExtArgs> | null;
|
|
2685
|
+
/**
|
|
2686
|
+
* Filter, which Product to fetch.
|
|
2687
|
+
*/
|
|
2285
2688
|
where: Prisma.ProductWhereUniqueInput;
|
|
2286
2689
|
};
|
|
2690
|
+
/**
|
|
2691
|
+
* Product findFirst
|
|
2692
|
+
*/
|
|
2287
2693
|
export type ProductFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2694
|
+
/**
|
|
2695
|
+
* Select specific fields to fetch from the Product
|
|
2696
|
+
*/
|
|
2288
2697
|
select?: Prisma.ProductSelect<ExtArgs> | null;
|
|
2698
|
+
/**
|
|
2699
|
+
* Omit specific fields from the Product
|
|
2700
|
+
*/
|
|
2289
2701
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
2702
|
+
/**
|
|
2703
|
+
* Choose, which related nodes to fetch as well
|
|
2704
|
+
*/
|
|
2290
2705
|
include?: Prisma.ProductInclude<ExtArgs> | null;
|
|
2706
|
+
/**
|
|
2707
|
+
* Filter, which Product to fetch.
|
|
2708
|
+
*/
|
|
2291
2709
|
where?: Prisma.ProductWhereInput;
|
|
2710
|
+
/**
|
|
2711
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2712
|
+
*
|
|
2713
|
+
* Determine the order of Products to fetch.
|
|
2714
|
+
*/
|
|
2292
2715
|
orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
|
|
2716
|
+
/**
|
|
2717
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2718
|
+
*
|
|
2719
|
+
* Sets the position for searching for Products.
|
|
2720
|
+
*/
|
|
2293
2721
|
cursor?: Prisma.ProductWhereUniqueInput;
|
|
2722
|
+
/**
|
|
2723
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2724
|
+
*
|
|
2725
|
+
* Take `±n` Products from the position of the cursor.
|
|
2726
|
+
*/
|
|
2294
2727
|
take?: number;
|
|
2728
|
+
/**
|
|
2729
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2730
|
+
*
|
|
2731
|
+
* Skip the first `n` Products.
|
|
2732
|
+
*/
|
|
2295
2733
|
skip?: number;
|
|
2734
|
+
/**
|
|
2735
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2736
|
+
*
|
|
2737
|
+
* Filter by unique combinations of Products.
|
|
2738
|
+
*/
|
|
2296
2739
|
distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[];
|
|
2297
2740
|
};
|
|
2741
|
+
/**
|
|
2742
|
+
* Product findFirstOrThrow
|
|
2743
|
+
*/
|
|
2298
2744
|
export type ProductFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2745
|
+
/**
|
|
2746
|
+
* Select specific fields to fetch from the Product
|
|
2747
|
+
*/
|
|
2299
2748
|
select?: Prisma.ProductSelect<ExtArgs> | null;
|
|
2749
|
+
/**
|
|
2750
|
+
* Omit specific fields from the Product
|
|
2751
|
+
*/
|
|
2300
2752
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
2753
|
+
/**
|
|
2754
|
+
* Choose, which related nodes to fetch as well
|
|
2755
|
+
*/
|
|
2301
2756
|
include?: Prisma.ProductInclude<ExtArgs> | null;
|
|
2757
|
+
/**
|
|
2758
|
+
* Filter, which Product to fetch.
|
|
2759
|
+
*/
|
|
2302
2760
|
where?: Prisma.ProductWhereInput;
|
|
2761
|
+
/**
|
|
2762
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2763
|
+
*
|
|
2764
|
+
* Determine the order of Products to fetch.
|
|
2765
|
+
*/
|
|
2303
2766
|
orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
|
|
2767
|
+
/**
|
|
2768
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2769
|
+
*
|
|
2770
|
+
* Sets the position for searching for Products.
|
|
2771
|
+
*/
|
|
2304
2772
|
cursor?: Prisma.ProductWhereUniqueInput;
|
|
2773
|
+
/**
|
|
2774
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2775
|
+
*
|
|
2776
|
+
* Take `±n` Products from the position of the cursor.
|
|
2777
|
+
*/
|
|
2305
2778
|
take?: number;
|
|
2779
|
+
/**
|
|
2780
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2781
|
+
*
|
|
2782
|
+
* Skip the first `n` Products.
|
|
2783
|
+
*/
|
|
2306
2784
|
skip?: number;
|
|
2785
|
+
/**
|
|
2786
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2787
|
+
*
|
|
2788
|
+
* Filter by unique combinations of Products.
|
|
2789
|
+
*/
|
|
2307
2790
|
distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[];
|
|
2308
2791
|
};
|
|
2792
|
+
/**
|
|
2793
|
+
* Product findMany
|
|
2794
|
+
*/
|
|
2309
2795
|
export type ProductFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2796
|
+
/**
|
|
2797
|
+
* Select specific fields to fetch from the Product
|
|
2798
|
+
*/
|
|
2310
2799
|
select?: Prisma.ProductSelect<ExtArgs> | null;
|
|
2800
|
+
/**
|
|
2801
|
+
* Omit specific fields from the Product
|
|
2802
|
+
*/
|
|
2311
2803
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
2804
|
+
/**
|
|
2805
|
+
* Choose, which related nodes to fetch as well
|
|
2806
|
+
*/
|
|
2312
2807
|
include?: Prisma.ProductInclude<ExtArgs> | null;
|
|
2808
|
+
/**
|
|
2809
|
+
* Filter, which Products to fetch.
|
|
2810
|
+
*/
|
|
2313
2811
|
where?: Prisma.ProductWhereInput;
|
|
2812
|
+
/**
|
|
2813
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2814
|
+
*
|
|
2815
|
+
* Determine the order of Products to fetch.
|
|
2816
|
+
*/
|
|
2314
2817
|
orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
|
|
2818
|
+
/**
|
|
2819
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2820
|
+
*
|
|
2821
|
+
* Sets the position for listing Products.
|
|
2822
|
+
*/
|
|
2315
2823
|
cursor?: Prisma.ProductWhereUniqueInput;
|
|
2824
|
+
/**
|
|
2825
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2826
|
+
*
|
|
2827
|
+
* Take `±n` Products from the position of the cursor.
|
|
2828
|
+
*/
|
|
2316
2829
|
take?: number;
|
|
2830
|
+
/**
|
|
2831
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2832
|
+
*
|
|
2833
|
+
* Skip the first `n` Products.
|
|
2834
|
+
*/
|
|
2317
2835
|
skip?: number;
|
|
2836
|
+
/**
|
|
2837
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2838
|
+
*
|
|
2839
|
+
* Filter by unique combinations of Products.
|
|
2840
|
+
*/
|
|
2318
2841
|
distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[];
|
|
2319
2842
|
};
|
|
2843
|
+
/**
|
|
2844
|
+
* Product create
|
|
2845
|
+
*/
|
|
2320
2846
|
export type ProductCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2847
|
+
/**
|
|
2848
|
+
* Select specific fields to fetch from the Product
|
|
2849
|
+
*/
|
|
2321
2850
|
select?: Prisma.ProductSelect<ExtArgs> | null;
|
|
2851
|
+
/**
|
|
2852
|
+
* Omit specific fields from the Product
|
|
2853
|
+
*/
|
|
2322
2854
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
2855
|
+
/**
|
|
2856
|
+
* Choose, which related nodes to fetch as well
|
|
2857
|
+
*/
|
|
2323
2858
|
include?: Prisma.ProductInclude<ExtArgs> | null;
|
|
2859
|
+
/**
|
|
2860
|
+
* The data needed to create a Product.
|
|
2861
|
+
*/
|
|
2324
2862
|
data: Prisma.XOR<Prisma.ProductCreateInput, Prisma.ProductUncheckedCreateInput>;
|
|
2325
2863
|
};
|
|
2864
|
+
/**
|
|
2865
|
+
* Product createMany
|
|
2866
|
+
*/
|
|
2326
2867
|
export type ProductCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2868
|
+
/**
|
|
2869
|
+
* The data used to create many Products.
|
|
2870
|
+
*/
|
|
2327
2871
|
data: Prisma.ProductCreateManyInput | Prisma.ProductCreateManyInput[];
|
|
2328
2872
|
skipDuplicates?: boolean;
|
|
2329
2873
|
};
|
|
2874
|
+
/**
|
|
2875
|
+
* Product createManyAndReturn
|
|
2876
|
+
*/
|
|
2330
2877
|
export type ProductCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2878
|
+
/**
|
|
2879
|
+
* Select specific fields to fetch from the Product
|
|
2880
|
+
*/
|
|
2331
2881
|
select?: Prisma.ProductSelectCreateManyAndReturn<ExtArgs> | null;
|
|
2882
|
+
/**
|
|
2883
|
+
* Omit specific fields from the Product
|
|
2884
|
+
*/
|
|
2332
2885
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
2886
|
+
/**
|
|
2887
|
+
* The data used to create many Products.
|
|
2888
|
+
*/
|
|
2333
2889
|
data: Prisma.ProductCreateManyInput | Prisma.ProductCreateManyInput[];
|
|
2334
2890
|
skipDuplicates?: boolean;
|
|
2891
|
+
/**
|
|
2892
|
+
* Choose, which related nodes to fetch as well
|
|
2893
|
+
*/
|
|
2335
2894
|
include?: Prisma.ProductIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
2336
2895
|
};
|
|
2896
|
+
/**
|
|
2897
|
+
* Product update
|
|
2898
|
+
*/
|
|
2337
2899
|
export type ProductUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2900
|
+
/**
|
|
2901
|
+
* Select specific fields to fetch from the Product
|
|
2902
|
+
*/
|
|
2338
2903
|
select?: Prisma.ProductSelect<ExtArgs> | null;
|
|
2904
|
+
/**
|
|
2905
|
+
* Omit specific fields from the Product
|
|
2906
|
+
*/
|
|
2339
2907
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
2908
|
+
/**
|
|
2909
|
+
* Choose, which related nodes to fetch as well
|
|
2910
|
+
*/
|
|
2340
2911
|
include?: Prisma.ProductInclude<ExtArgs> | null;
|
|
2912
|
+
/**
|
|
2913
|
+
* The data needed to update a Product.
|
|
2914
|
+
*/
|
|
2341
2915
|
data: Prisma.XOR<Prisma.ProductUpdateInput, Prisma.ProductUncheckedUpdateInput>;
|
|
2916
|
+
/**
|
|
2917
|
+
* Choose, which Product to update.
|
|
2918
|
+
*/
|
|
2342
2919
|
where: Prisma.ProductWhereUniqueInput;
|
|
2343
2920
|
};
|
|
2921
|
+
/**
|
|
2922
|
+
* Product updateMany
|
|
2923
|
+
*/
|
|
2344
2924
|
export type ProductUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2925
|
+
/**
|
|
2926
|
+
* The data used to update Products.
|
|
2927
|
+
*/
|
|
2345
2928
|
data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyInput>;
|
|
2929
|
+
/**
|
|
2930
|
+
* Filter which Products to update
|
|
2931
|
+
*/
|
|
2346
2932
|
where?: Prisma.ProductWhereInput;
|
|
2933
|
+
/**
|
|
2934
|
+
* Limit how many Products to update.
|
|
2935
|
+
*/
|
|
2347
2936
|
limit?: number;
|
|
2348
2937
|
};
|
|
2938
|
+
/**
|
|
2939
|
+
* Product updateManyAndReturn
|
|
2940
|
+
*/
|
|
2349
2941
|
export type ProductUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2942
|
+
/**
|
|
2943
|
+
* Select specific fields to fetch from the Product
|
|
2944
|
+
*/
|
|
2350
2945
|
select?: Prisma.ProductSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
2946
|
+
/**
|
|
2947
|
+
* Omit specific fields from the Product
|
|
2948
|
+
*/
|
|
2351
2949
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
2950
|
+
/**
|
|
2951
|
+
* The data used to update Products.
|
|
2952
|
+
*/
|
|
2352
2953
|
data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyInput>;
|
|
2954
|
+
/**
|
|
2955
|
+
* Filter which Products to update
|
|
2956
|
+
*/
|
|
2353
2957
|
where?: Prisma.ProductWhereInput;
|
|
2958
|
+
/**
|
|
2959
|
+
* Limit how many Products to update.
|
|
2960
|
+
*/
|
|
2354
2961
|
limit?: number;
|
|
2962
|
+
/**
|
|
2963
|
+
* Choose, which related nodes to fetch as well
|
|
2964
|
+
*/
|
|
2355
2965
|
include?: Prisma.ProductIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
2356
2966
|
};
|
|
2967
|
+
/**
|
|
2968
|
+
* Product upsert
|
|
2969
|
+
*/
|
|
2357
2970
|
export type ProductUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2971
|
+
/**
|
|
2972
|
+
* Select specific fields to fetch from the Product
|
|
2973
|
+
*/
|
|
2358
2974
|
select?: Prisma.ProductSelect<ExtArgs> | null;
|
|
2975
|
+
/**
|
|
2976
|
+
* Omit specific fields from the Product
|
|
2977
|
+
*/
|
|
2359
2978
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
2979
|
+
/**
|
|
2980
|
+
* Choose, which related nodes to fetch as well
|
|
2981
|
+
*/
|
|
2360
2982
|
include?: Prisma.ProductInclude<ExtArgs> | null;
|
|
2983
|
+
/**
|
|
2984
|
+
* The filter to search for the Product to update in case it exists.
|
|
2985
|
+
*/
|
|
2361
2986
|
where: Prisma.ProductWhereUniqueInput;
|
|
2987
|
+
/**
|
|
2988
|
+
* In case the Product found by the `where` argument doesn't exist, create a new Product with this data.
|
|
2989
|
+
*/
|
|
2362
2990
|
create: Prisma.XOR<Prisma.ProductCreateInput, Prisma.ProductUncheckedCreateInput>;
|
|
2991
|
+
/**
|
|
2992
|
+
* In case the Product was found with the provided `where` argument, update it with this data.
|
|
2993
|
+
*/
|
|
2363
2994
|
update: Prisma.XOR<Prisma.ProductUpdateInput, Prisma.ProductUncheckedUpdateInput>;
|
|
2364
2995
|
};
|
|
2996
|
+
/**
|
|
2997
|
+
* Product delete
|
|
2998
|
+
*/
|
|
2365
2999
|
export type ProductDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3000
|
+
/**
|
|
3001
|
+
* Select specific fields to fetch from the Product
|
|
3002
|
+
*/
|
|
2366
3003
|
select?: Prisma.ProductSelect<ExtArgs> | null;
|
|
3004
|
+
/**
|
|
3005
|
+
* Omit specific fields from the Product
|
|
3006
|
+
*/
|
|
2367
3007
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
3008
|
+
/**
|
|
3009
|
+
* Choose, which related nodes to fetch as well
|
|
3010
|
+
*/
|
|
2368
3011
|
include?: Prisma.ProductInclude<ExtArgs> | null;
|
|
3012
|
+
/**
|
|
3013
|
+
* Filter which Product to delete.
|
|
3014
|
+
*/
|
|
2369
3015
|
where: Prisma.ProductWhereUniqueInput;
|
|
2370
3016
|
};
|
|
3017
|
+
/**
|
|
3018
|
+
* Product deleteMany
|
|
3019
|
+
*/
|
|
2371
3020
|
export type ProductDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3021
|
+
/**
|
|
3022
|
+
* Filter which Products to delete
|
|
3023
|
+
*/
|
|
2372
3024
|
where?: Prisma.ProductWhereInput;
|
|
3025
|
+
/**
|
|
3026
|
+
* Limit how many Products to delete.
|
|
3027
|
+
*/
|
|
2373
3028
|
limit?: number;
|
|
2374
3029
|
};
|
|
3030
|
+
/**
|
|
3031
|
+
* Product.images
|
|
3032
|
+
*/
|
|
2375
3033
|
export type Product$imagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3034
|
+
/**
|
|
3035
|
+
* Select specific fields to fetch from the File
|
|
3036
|
+
*/
|
|
2376
3037
|
select?: Prisma.FileSelect<ExtArgs> | null;
|
|
3038
|
+
/**
|
|
3039
|
+
* Omit specific fields from the File
|
|
3040
|
+
*/
|
|
2377
3041
|
omit?: Prisma.FileOmit<ExtArgs> | null;
|
|
3042
|
+
/**
|
|
3043
|
+
* Choose, which related nodes to fetch as well
|
|
3044
|
+
*/
|
|
2378
3045
|
include?: Prisma.FileInclude<ExtArgs> | null;
|
|
2379
3046
|
where?: Prisma.FileWhereInput;
|
|
2380
3047
|
orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[];
|
|
@@ -2383,15 +3050,39 @@ export type Product$imagesArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|
|
2383
3050
|
skip?: number;
|
|
2384
3051
|
distinct?: Prisma.FileScalarFieldEnum | Prisma.FileScalarFieldEnum[];
|
|
2385
3052
|
};
|
|
3053
|
+
/**
|
|
3054
|
+
* Product.manufacturer
|
|
3055
|
+
*/
|
|
2386
3056
|
export type Product$manufacturerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3057
|
+
/**
|
|
3058
|
+
* Select specific fields to fetch from the Manufacturer
|
|
3059
|
+
*/
|
|
2387
3060
|
select?: Prisma.ManufacturerSelect<ExtArgs> | null;
|
|
3061
|
+
/**
|
|
3062
|
+
* Omit specific fields from the Manufacturer
|
|
3063
|
+
*/
|
|
2388
3064
|
omit?: Prisma.ManufacturerOmit<ExtArgs> | null;
|
|
3065
|
+
/**
|
|
3066
|
+
* Choose, which related nodes to fetch as well
|
|
3067
|
+
*/
|
|
2389
3068
|
include?: Prisma.ManufacturerInclude<ExtArgs> | null;
|
|
2390
3069
|
where?: Prisma.ManufacturerWhereInput;
|
|
2391
3070
|
};
|
|
3071
|
+
/**
|
|
3072
|
+
* Product.categories
|
|
3073
|
+
*/
|
|
2392
3074
|
export type Product$categoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3075
|
+
/**
|
|
3076
|
+
* Select specific fields to fetch from the ProductCategory
|
|
3077
|
+
*/
|
|
2393
3078
|
select?: Prisma.ProductCategorySelect<ExtArgs> | null;
|
|
3079
|
+
/**
|
|
3080
|
+
* Omit specific fields from the ProductCategory
|
|
3081
|
+
*/
|
|
2394
3082
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
3083
|
+
/**
|
|
3084
|
+
* Choose, which related nodes to fetch as well
|
|
3085
|
+
*/
|
|
2395
3086
|
include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
|
|
2396
3087
|
where?: Prisma.ProductCategoryWhereInput;
|
|
2397
3088
|
orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
|
|
@@ -2400,9 +3091,21 @@ export type Product$categoriesArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
|
|
2400
3091
|
skip?: number;
|
|
2401
3092
|
distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[];
|
|
2402
3093
|
};
|
|
3094
|
+
/**
|
|
3095
|
+
* Product.modifierGroups
|
|
3096
|
+
*/
|
|
2403
3097
|
export type Product$modifierGroupsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3098
|
+
/**
|
|
3099
|
+
* Select specific fields to fetch from the ModifierGroup
|
|
3100
|
+
*/
|
|
2404
3101
|
select?: Prisma.ModifierGroupSelect<ExtArgs> | null;
|
|
3102
|
+
/**
|
|
3103
|
+
* Omit specific fields from the ModifierGroup
|
|
3104
|
+
*/
|
|
2405
3105
|
omit?: Prisma.ModifierGroupOmit<ExtArgs> | null;
|
|
3106
|
+
/**
|
|
3107
|
+
* Choose, which related nodes to fetch as well
|
|
3108
|
+
*/
|
|
2406
3109
|
include?: Prisma.ModifierGroupInclude<ExtArgs> | null;
|
|
2407
3110
|
where?: Prisma.ModifierGroupWhereInput;
|
|
2408
3111
|
orderBy?: Prisma.ModifierGroupOrderByWithRelationInput | Prisma.ModifierGroupOrderByWithRelationInput[];
|
|
@@ -2411,9 +3114,21 @@ export type Product$modifierGroupsArgs<ExtArgs extends runtime.Types.Extensions.
|
|
|
2411
3114
|
skip?: number;
|
|
2412
3115
|
distinct?: Prisma.ModifierGroupScalarFieldEnum | Prisma.ModifierGroupScalarFieldEnum[];
|
|
2413
3116
|
};
|
|
3117
|
+
/**
|
|
3118
|
+
* Product.translations
|
|
3119
|
+
*/
|
|
2414
3120
|
export type Product$translationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3121
|
+
/**
|
|
3122
|
+
* Select specific fields to fetch from the ProductTranslation
|
|
3123
|
+
*/
|
|
2415
3124
|
select?: Prisma.ProductTranslationSelect<ExtArgs> | null;
|
|
3125
|
+
/**
|
|
3126
|
+
* Omit specific fields from the ProductTranslation
|
|
3127
|
+
*/
|
|
2416
3128
|
omit?: Prisma.ProductTranslationOmit<ExtArgs> | null;
|
|
3129
|
+
/**
|
|
3130
|
+
* Choose, which related nodes to fetch as well
|
|
3131
|
+
*/
|
|
2417
3132
|
include?: Prisma.ProductTranslationInclude<ExtArgs> | null;
|
|
2418
3133
|
where?: Prisma.ProductTranslationWhereInput;
|
|
2419
3134
|
orderBy?: Prisma.ProductTranslationOrderByWithRelationInput | Prisma.ProductTranslationOrderByWithRelationInput[];
|
|
@@ -2422,9 +3137,21 @@ export type Product$translationsArgs<ExtArgs extends runtime.Types.Extensions.In
|
|
|
2422
3137
|
skip?: number;
|
|
2423
3138
|
distinct?: Prisma.ProductTranslationScalarFieldEnum | Prisma.ProductTranslationScalarFieldEnum[];
|
|
2424
3139
|
};
|
|
3140
|
+
/**
|
|
3141
|
+
* Product.snapshots
|
|
3142
|
+
*/
|
|
2425
3143
|
export type Product$snapshotsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3144
|
+
/**
|
|
3145
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
3146
|
+
*/
|
|
2426
3147
|
select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
|
|
3148
|
+
/**
|
|
3149
|
+
* Omit specific fields from the ProductSnapshot
|
|
3150
|
+
*/
|
|
2427
3151
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
3152
|
+
/**
|
|
3153
|
+
* Choose, which related nodes to fetch as well
|
|
3154
|
+
*/
|
|
2428
3155
|
include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
|
|
2429
3156
|
where?: Prisma.ProductSnapshotWhereInput;
|
|
2430
3157
|
orderBy?: Prisma.ProductSnapshotOrderByWithRelationInput | Prisma.ProductSnapshotOrderByWithRelationInput[];
|
|
@@ -2433,15 +3160,39 @@ export type Product$snapshotsArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
2433
3160
|
skip?: number;
|
|
2434
3161
|
distinct?: Prisma.ProductSnapshotScalarFieldEnum | Prisma.ProductSnapshotScalarFieldEnum[];
|
|
2435
3162
|
};
|
|
3163
|
+
/**
|
|
3164
|
+
* Product.latestSnapshot
|
|
3165
|
+
*/
|
|
2436
3166
|
export type Product$latestSnapshotArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3167
|
+
/**
|
|
3168
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
3169
|
+
*/
|
|
2437
3170
|
select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
|
|
3171
|
+
/**
|
|
3172
|
+
* Omit specific fields from the ProductSnapshot
|
|
3173
|
+
*/
|
|
2438
3174
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
3175
|
+
/**
|
|
3176
|
+
* Choose, which related nodes to fetch as well
|
|
3177
|
+
*/
|
|
2439
3178
|
include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
|
|
2440
3179
|
where?: Prisma.ProductSnapshotWhereInput;
|
|
2441
3180
|
};
|
|
3181
|
+
/**
|
|
3182
|
+
* Product without action
|
|
3183
|
+
*/
|
|
2442
3184
|
export type ProductDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3185
|
+
/**
|
|
3186
|
+
* Select specific fields to fetch from the Product
|
|
3187
|
+
*/
|
|
2443
3188
|
select?: Prisma.ProductSelect<ExtArgs> | null;
|
|
3189
|
+
/**
|
|
3190
|
+
* Omit specific fields from the Product
|
|
3191
|
+
*/
|
|
2444
3192
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
3193
|
+
/**
|
|
3194
|
+
* Choose, which related nodes to fetch as well
|
|
3195
|
+
*/
|
|
2445
3196
|
include?: Prisma.ProductInclude<ExtArgs> | null;
|
|
2446
3197
|
};
|
|
2447
3198
|
export {};
|