@shophost/rest-api 2.0.32 → 2.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -14
- package/src/app.js +53 -1
- package/src/app.js.map +1 -0
- package/src/core/auth/auth.schema.js +41 -1
- package/src/core/auth/auth.schema.js.map +1 -0
- package/src/core/auth/auth.util.js +44 -1
- package/src/core/auth/auth.util.js.map +1 -0
- package/src/core/auth/better-auth.lib.js +100 -1
- package/src/core/auth/better-auth.lib.js.map +1 -0
- package/src/core/auth/generate-password-hash.util.d.ts +3 -0
- package/src/core/auth/generate-password-hash.util.js +30 -1
- package/src/core/auth/generate-password-hash.util.js.map +1 -0
- package/src/core/auth/headers.schema.js +22 -1
- package/src/core/auth/headers.schema.js.map +1 -0
- package/src/core/auth/user.schema.js +30 -1
- package/src/core/auth/user.schema.js.map +1 -0
- package/src/core/db/__generated__/client/browser.d.ts +128 -0
- package/src/core/db/__generated__/client/browser.js +18 -1
- package/src/core/db/__generated__/client/browser.js.map +1 -0
- package/src/core/db/__generated__/client/client.d.ts +143 -0
- package/src/core/db/__generated__/client/client.js +35 -1
- package/src/core/db/__generated__/client/client.js.map +1 -0
- package/src/core/db/__generated__/client/commonInputTypes.js +11 -1
- package/src/core/db/__generated__/client/commonInputTypes.js.map +1 -0
- package/src/core/db/__generated__/client/enums.js +200 -1
- package/src/core/db/__generated__/client/enums.js.map +1 -0
- package/src/core/db/__generated__/client/internal/class.d.ts +343 -0
- package/src/core/db/__generated__/client/internal/class.js +55 -1
- package/src/core/db/__generated__/client/internal/class.js.map +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +234 -0
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +541 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +15 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +512 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -0
- package/src/core/db/__generated__/client/models/Account.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Account.js +2 -1
- package/src/core/db/__generated__/client/models/Account.js.map +1 -0
- package/src/core/db/__generated__/client/models/Address.d.ts +706 -0
- package/src/core/db/__generated__/client/models/Address.js +2 -1
- package/src/core/db/__generated__/client/models/Address.js.map +1 -0
- package/src/core/db/__generated__/client/models/Campaign.d.ts +643 -0
- package/src/core/db/__generated__/client/models/Campaign.js +2 -1
- package/src/core/db/__generated__/client/models/Campaign.js.map +1 -0
- package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +639 -0
- package/src/core/db/__generated__/client/models/ClosingTimes.js +2 -1
- package/src/core/db/__generated__/client/models/ClosingTimes.js.map +1 -0
- package/src/core/db/__generated__/client/models/File.d.ts +757 -0
- package/src/core/db/__generated__/client/models/File.js +2 -1
- package/src/core/db/__generated__/client/models/File.js.map +1 -0
- package/src/core/db/__generated__/client/models/Invitation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Invitation.js +2 -1
- package/src/core/db/__generated__/client/models/Invitation.js.map +1 -0
- package/src/core/db/__generated__/client/models/LegalEntity.d.ts +657 -0
- package/src/core/db/__generated__/client/models/LegalEntity.js +2 -1
- package/src/core/db/__generated__/client/models/LegalEntity.js.map +1 -0
- package/src/core/db/__generated__/client/models/Manufacturer.d.ts +684 -0
- package/src/core/db/__generated__/client/models/Manufacturer.js +2 -1
- package/src/core/db/__generated__/client/models/Manufacturer.js.map +1 -0
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Member.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Member.js +2 -1
- package/src/core/db/__generated__/client/models/Member.js.map +1 -0
- package/src/core/db/__generated__/client/models/Modifier.d.ts +667 -0
- package/src/core/db/__generated__/client/models/Modifier.js +2 -1
- package/src/core/db/__generated__/client/models/Modifier.js.map +1 -0
- package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +691 -0
- package/src/core/db/__generated__/client/models/ModifierGroup.js +2 -1
- package/src/core/db/__generated__/client/models/ModifierGroup.js.map +1 -0
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +639 -0
- package/src/core/db/__generated__/client/models/OpeningTimes.js +2 -1
- package/src/core/db/__generated__/client/models/OpeningTimes.js.map +1 -0
- package/src/core/db/__generated__/client/models/Order.d.ts +705 -0
- package/src/core/db/__generated__/client/models/Order.js +2 -1
- package/src/core/db/__generated__/client/models/Order.js.map +1 -0
- package/src/core/db/__generated__/client/models/OrderItem.d.ts +691 -0
- package/src/core/db/__generated__/client/models/OrderItem.js +2 -1
- package/src/core/db/__generated__/client/models/OrderItem.js.map +1 -0
- package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Organization.d.ts +816 -0
- package/src/core/db/__generated__/client/models/Organization.js +2 -1
- package/src/core/db/__generated__/client/models/Organization.js.map +1 -0
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +681 -0
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +2 -1
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
- package/src/core/db/__generated__/client/models/Payment.d.ts +673 -0
- package/src/core/db/__generated__/client/models/Payment.js +2 -1
- package/src/core/db/__generated__/client/models/Payment.js.map +1 -0
- package/src/core/db/__generated__/client/models/PaymentSession.d.ts +643 -0
- package/src/core/db/__generated__/client/models/PaymentSession.js +2 -1
- package/src/core/db/__generated__/client/models/PaymentSession.js.map +1 -0
- package/src/core/db/__generated__/client/models/Product.d.ts +751 -0
- package/src/core/db/__generated__/client/models/Product.js +2 -1
- package/src/core/db/__generated__/client/models/Product.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductCategory.d.ts +694 -0
- package/src/core/db/__generated__/client/models/ProductCategory.js +2 -1
- package/src/core/db/__generated__/client/models/ProductCategory.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +669 -0
- package/src/core/db/__generated__/client/models/ProductSnapshot.js +2 -1
- package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
- package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +633 -0
- package/src/core/db/__generated__/client/models/ProductTranslation.js +2 -1
- package/src/core/db/__generated__/client/models/ProductTranslation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Reservation.d.ts +655 -0
- package/src/core/db/__generated__/client/models/Reservation.js +2 -1
- package/src/core/db/__generated__/client/models/Reservation.js.map +1 -0
- package/src/core/db/__generated__/client/models/Session.d.ts +633 -0
- package/src/core/db/__generated__/client/models/Session.js +2 -1
- package/src/core/db/__generated__/client/models/Session.js.map +1 -0
- package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +684 -0
- package/src/core/db/__generated__/client/models/ShippingMethod.js +2 -1
- package/src/core/db/__generated__/client/models/ShippingMethod.js.map +1 -0
- package/src/core/db/__generated__/client/models/ShippingZone.d.ts +643 -0
- package/src/core/db/__generated__/client/models/ShippingZone.js +2 -1
- package/src/core/db/__generated__/client/models/ShippingZone.js.map +1 -0
- package/src/core/db/__generated__/client/models/User.d.ts +741 -0
- package/src/core/db/__generated__/client/models/User.js +2 -1
- package/src/core/db/__generated__/client/models/User.js.map +1 -0
- package/src/core/db/__generated__/client/models/Verification.d.ts +597 -0
- package/src/core/db/__generated__/client/models/Verification.js +2 -1
- package/src/core/db/__generated__/client/models/Verification.js.map +1 -0
- package/src/core/db/__generated__/client/models.js +2 -1
- package/src/core/db/__generated__/client/models.js.map +1 -0
- package/src/core/db/index.js +2 -1
- package/src/core/db/index.js.map +1 -0
- package/src/core/exceptions/http-exception.js +9 -1
- package/src/core/exceptions/http-exception.js.map +1 -0
- package/src/core/hono/hono.js +123 -1
- package/src/core/hono/hono.js.map +1 -0
- package/src/core/lib/prisma.js +11 -1
- package/src/core/lib/prisma.js.map +1 -0
- package/src/core/logging/pino.js +5 -1
- package/src/core/logging/pino.js.map +1 -0
- package/src/core/notifications/email.service.d.ts +15 -0
- package/src/core/notifications/email.service.js +116 -1
- package/src/core/notifications/email.service.js.map +1 -0
- package/src/core/openapi/openapi.lib.js +26 -1
- package/src/core/openapi/openapi.lib.js.map +1 -0
- package/src/core/types/google-maps.types.js +2 -1
- package/src/core/types/google-maps.types.js.map +1 -0
- package/src/core/utils/currency.util.js +11 -1
- package/src/core/utils/currency.util.js.map +1 -0
- package/src/core/utils/env.util.js +8 -1
- package/src/core/utils/env.util.js.map +1 -0
- package/src/core/utils/object.util.d.ts +10 -0
- package/src/core/utils/object.util.js +39 -1
- package/src/core/utils/object.util.js.map +1 -0
- package/src/core/utils/translations.util.js +2 -0
- package/src/core/utils/translations.util.js.map +1 -0
- package/src/core/utils/zod.util.d.ts +12 -0
- package/src/core/utils/zod.util.js +85 -1
- package/src/core/utils/zod.util.js.map +1 -0
- package/src/db.js +3 -1
- package/src/db.js.map +1 -0
- package/src/features/access/access.handler.js +91 -1
- package/src/features/access/access.handler.js.map +1 -0
- package/src/features/access/access.route.js +220 -1
- package/src/features/access/access.route.js.map +1 -0
- package/src/features/access/access.schema.js +108 -1
- package/src/features/access/access.schema.js.map +1 -0
- package/src/features/access/access.service.js +294 -1
- package/src/features/access/access.service.js.map +1 -0
- package/src/features/cart/cart.handler.js +17 -1
- package/src/features/cart/cart.handler.js.map +1 -0
- package/src/features/cart/cart.route.js +32 -1
- package/src/features/cart/cart.route.js.map +1 -0
- package/src/features/cart/cart.schema.js +39 -1
- package/src/features/cart/cart.schema.js.map +1 -0
- package/src/features/cart/cart.service.d.ts +7 -0
- package/src/features/cart/cart.service.js +97 -1
- package/src/features/cart/cart.service.js.map +1 -0
- package/src/features/cart/cart.util.js +76 -1
- package/src/features/cart/cart.util.js.map +1 -0
- package/src/features/file/file.handler.js +23 -1
- package/src/features/file/file.handler.js.map +1 -0
- package/src/features/file/file.route.js +34 -1
- package/src/features/file/file.route.js.map +1 -0
- package/src/features/file/file.schema.js +77 -1
- package/src/features/file/file.schema.js.map +1 -0
- package/src/features/file/file.service.d.ts +6 -0
- package/src/features/file/file.service.js +66 -1
- package/src/features/file/file.service.js.map +1 -0
- package/src/features/health/health.handler.js +10 -1
- package/src/features/health/health.handler.js.map +1 -0
- package/src/features/health/health.route.js +25 -1
- package/src/features/health/health.route.js.map +1 -0
- package/src/features/index.js +16 -1
- package/src/features/index.js.map +1 -0
- package/src/features/location/location.handler.js +25 -1
- package/src/features/location/location.handler.js.map +1 -0
- package/src/features/location/location.route.js +56 -1
- package/src/features/location/location.route.js.map +1 -0
- package/src/features/location/location.schema.js +50 -1
- package/src/features/location/location.schema.js.map +1 -0
- package/src/features/location/location.service.d.ts +3 -0
- package/src/features/location/location.service.js +141 -1
- package/src/features/location/location.service.js.map +1 -0
- package/src/features/manufacturer/manufacturer.handler.js +53 -1
- package/src/features/manufacturer/manufacturer.handler.js.map +1 -0
- package/src/features/manufacturer/manufacturer.route.js +97 -1
- package/src/features/manufacturer/manufacturer.route.js.map +1 -0
- package/src/features/manufacturer/manufacturer.schema.js +125 -1
- package/src/features/manufacturer/manufacturer.schema.js.map +1 -0
- package/src/features/manufacturer/manufacturer.service.d.ts +19 -0
- package/src/features/manufacturer/manufacturer.service.js +190 -1
- package/src/features/manufacturer/manufacturer.service.js.map +1 -0
- package/src/features/order/emails/order-confirmation.email.js +229 -1
- package/src/features/order/emails/order-confirmation.email.js.map +1 -0
- package/src/features/order/emails/order-notification.email.js +229 -1
- package/src/features/order/emails/order-notification.email.js.map +1 -0
- package/src/features/order/fulfilment.schema.js +3 -1
- package/src/features/order/fulfilment.schema.js.map +1 -0
- package/src/features/order/order.handler.js +54 -1
- package/src/features/order/order.handler.js.map +1 -0
- package/src/features/order/order.route.js +111 -1
- package/src/features/order/order.route.js.map +1 -0
- package/src/features/order/order.schema.js +158 -1
- package/src/features/order/order.schema.js.map +1 -0
- package/src/features/order/order.service.d.ts +15 -0
- package/src/features/order/order.service.js +306 -1
- package/src/features/order/order.service.js.map +1 -0
- package/src/features/order/recipient.schema.js +38 -1
- package/src/features/order/recipient.schema.js.map +1 -0
- package/src/features/organization/legal-entity.schema.js +83 -1
- package/src/features/organization/legal-entity.schema.js.map +1 -0
- package/src/features/organization/organization-configuration.schema.js +115 -1
- package/src/features/organization/organization-configuration.schema.js.map +1 -0
- package/src/features/organization/organization.handler.js +48 -1
- package/src/features/organization/organization.handler.js.map +1 -0
- package/src/features/organization/organization.route.js +84 -1
- package/src/features/organization/organization.route.js.map +1 -0
- package/src/features/organization/organization.schema.js +64 -1
- package/src/features/organization/organization.schema.js.map +1 -0
- package/src/features/organization/organization.service.d.ts +15 -0
- package/src/features/organization/organization.service.js +334 -1
- package/src/features/organization/organization.service.js.map +1 -0
- package/src/features/payment/payment.handler.js +16 -1
- package/src/features/payment/payment.handler.js.map +1 -0
- package/src/features/payment/payment.route.js +22 -1
- package/src/features/payment/payment.route.js.map +1 -0
- package/src/features/payment/payment.schema.js +46 -1
- package/src/features/payment/payment.schema.js.map +1 -0
- package/src/features/payment/payment.service.js +100 -1
- package/src/features/payment/payment.service.js.map +1 -0
- package/src/features/payment/stripe.service.js +164 -1
- package/src/features/payment/stripe.service.js.map +1 -0
- package/src/features/product/product-modifier.schema.js +84 -1
- package/src/features/product/product-modifier.schema.js.map +1 -0
- package/src/features/product/product.handler.js +87 -1
- package/src/features/product/product.handler.js.map +1 -0
- package/src/features/product/product.route.js +179 -1
- package/src/features/product/product.route.js.map +1 -0
- package/src/features/product/product.schema.js +143 -1
- package/src/features/product/product.schema.js.map +1 -0
- package/src/features/product/product.service.d.ts +25 -0
- package/src/features/product/product.service.js +440 -1
- package/src/features/product/product.service.js.map +1 -0
- package/src/features/product-category/product-category.handler.js +59 -1
- package/src/features/product-category/product-category.handler.js.map +1 -0
- package/src/features/product-category/product-category.route.js +139 -1
- package/src/features/product-category/product-category.route.js.map +1 -0
- package/src/features/product-category/product-category.schema.js +86 -1
- package/src/features/product-category/product-category.schema.js.map +1 -0
- package/src/features/product-category/product-category.service.d.ts +22 -0
- package/src/features/product-category/product-category.service.js +220 -1
- package/src/features/product-category/product-category.service.js.map +1 -0
- package/src/features/reservation/emails/reservation-cancellation.email.js +82 -1
- package/src/features/reservation/emails/reservation-cancellation.email.js.map +1 -0
- package/src/features/reservation/emails/reservation-confirmation.email.js +82 -1
- package/src/features/reservation/emails/reservation-confirmation.email.js.map +1 -0
- package/src/features/reservation/emails/reservation-notification.email.js +93 -1
- package/src/features/reservation/emails/reservation-notification.email.js.map +1 -0
- package/src/features/reservation/reservation.handler.js +65 -1
- package/src/features/reservation/reservation.handler.js.map +1 -0
- package/src/features/reservation/reservation.route.js +167 -1
- package/src/features/reservation/reservation.route.js.map +1 -0
- package/src/features/reservation/reservation.schema.js +51 -1
- package/src/features/reservation/reservation.schema.js.map +1 -0
- package/src/features/reservation/reservation.service.d.ts +18 -0
- package/src/features/reservation/reservation.service.js +231 -1
- package/src/features/reservation/reservation.service.js.map +1 -0
- package/src/features/shipping/shipping.handler.js +32 -1
- package/src/features/shipping/shipping.handler.js.map +1 -0
- package/src/features/shipping/shipping.route.js +51 -1
- package/src/features/shipping/shipping.route.js.map +1 -0
- package/src/features/shipping/shipping.service.d.ts +7 -0
- package/src/features/shipping/shipping.service.js +96 -1
- package/src/features/shipping/shipping.service.js.map +1 -0
- package/src/features/shipping-method/shipping-method.handler.js +60 -1
- package/src/features/shipping-method/shipping-method.handler.js.map +1 -0
- package/src/features/shipping-method/shipping-method.route.js +144 -1
- package/src/features/shipping-method/shipping-method.route.js.map +1 -0
- package/src/features/shipping-method/shipping-method.schema.js +48 -1
- package/src/features/shipping-method/shipping-method.schema.js.map +1 -0
- package/src/features/shipping-method/shipping-method.service.d.ts +25 -0
- package/src/features/shipping-method/shipping-method.service.js +229 -1
- package/src/features/shipping-method/shipping-method.service.js.map +1 -0
- package/src/features/shipping-method/shipping-zone.schema.js +31 -1
- package/src/features/shipping-method/shipping-zone.schema.js.map +1 -0
- package/src/features/webhook/webhook.handler.js +50 -1
- package/src/features/webhook/webhook.handler.js.map +1 -0
- package/src/features/webhook/webhook.route.js +33 -1
- package/src/features/webhook/webhook.route.js.map +1 -0
- package/src/index.js +6 -1
- package/src/index.js.map +1 -0
- package/src/integrations/next.js +82 -1
- package/src/integrations/next.js.map +1 -0
- package/src/schemas/address.schema.d.ts +8 -0
- package/src/schemas/address.schema.js +112 -1
- package/src/schemas/address.schema.js.map +1 -0
- package/src/schemas/currency.schema.d.ts +42 -0
- package/src/schemas/currency.schema.js +118 -1
- package/src/schemas/currency.schema.js.map +1 -0
- package/src/schemas/error.schema.js +12 -1
- package/src/schemas/error.schema.js.map +1 -0
- package/src/schemas/index.js +29 -1
- package/src/schemas/index.js.map +1 -0
- package/src/schemas/locales.schema.js +238 -1
- package/src/schemas/locales.schema.js.map +1 -0
- package/src/schemas/number.schema.js +29 -1
- package/src/schemas/number.schema.js.map +1 -0
- package/src/schemas/pagination.schema.js +54 -1
- package/src/schemas/pagination.schema.js.map +1 -0
- package/src/schemas/params.schema.js +20 -1
- package/src/schemas/params.schema.js.map +1 -0
- package/src/schemas/queries.schema.js +6 -1
- package/src/schemas/queries.schema.js.map +1 -0
- package/src/test/global-setup.js +37 -1
- package/src/test/global-setup.js.map +1 -0
- package/src/test/integration/api-fixtures.js +160 -1
- package/src/test/integration/api-fixtures.js.map +1 -0
- package/src/test/integration/seed.js +368 -1
- package/src/test/integration/seed.js.map +1 -0
- package/src/test/integration/test-helpers.js +154 -1
- package/src/test/integration/test-helpers.js.map +1 -0
- package/src/test/setup-test-env.js +7 -1
- package/src/test/setup-test-env.js.map +1 -0
- package/scripts/minify.mjs +0 -123
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
2
|
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model ProductSnapshot
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
3
7
|
export type ProductSnapshotModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductSnapshotPayload>;
|
|
4
8
|
export type AggregateProductSnapshot = {
|
|
5
9
|
_count: ProductSnapshotCountAggregateOutputType | null;
|
|
@@ -47,13 +51,51 @@ export type ProductSnapshotCountAggregateInputType = {
|
|
|
47
51
|
_all?: true;
|
|
48
52
|
};
|
|
49
53
|
export type ProductSnapshotAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
54
|
+
/**
|
|
55
|
+
* Filter which ProductSnapshot to aggregate.
|
|
56
|
+
*/
|
|
50
57
|
where?: Prisma.ProductSnapshotWhereInput;
|
|
58
|
+
/**
|
|
59
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
60
|
+
*
|
|
61
|
+
* Determine the order of ProductSnapshots to fetch.
|
|
62
|
+
*/
|
|
51
63
|
orderBy?: Prisma.ProductSnapshotOrderByWithRelationInput | Prisma.ProductSnapshotOrderByWithRelationInput[];
|
|
64
|
+
/**
|
|
65
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
66
|
+
*
|
|
67
|
+
* Sets the start position
|
|
68
|
+
*/
|
|
52
69
|
cursor?: Prisma.ProductSnapshotWhereUniqueInput;
|
|
70
|
+
/**
|
|
71
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
72
|
+
*
|
|
73
|
+
* Take `±n` ProductSnapshots from the position of the cursor.
|
|
74
|
+
*/
|
|
53
75
|
take?: number;
|
|
76
|
+
/**
|
|
77
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
78
|
+
*
|
|
79
|
+
* Skip the first `n` ProductSnapshots.
|
|
80
|
+
*/
|
|
54
81
|
skip?: number;
|
|
82
|
+
/**
|
|
83
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
84
|
+
*
|
|
85
|
+
* Count returned ProductSnapshots
|
|
86
|
+
**/
|
|
55
87
|
_count?: true | ProductSnapshotCountAggregateInputType;
|
|
88
|
+
/**
|
|
89
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
90
|
+
*
|
|
91
|
+
* Select which fields to find the minimum value
|
|
92
|
+
**/
|
|
56
93
|
_min?: ProductSnapshotMinAggregateInputType;
|
|
94
|
+
/**
|
|
95
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
96
|
+
*
|
|
97
|
+
* Select which fields to find the maximum value
|
|
98
|
+
**/
|
|
57
99
|
_max?: ProductSnapshotMaxAggregateInputType;
|
|
58
100
|
};
|
|
59
101
|
export type GetProductSnapshotAggregateType<T extends ProductSnapshotAggregateArgs> = {
|
|
@@ -457,15 +499,27 @@ export type ProductSnapshotUncheckedUpdateManyWithoutProductInput = {
|
|
|
457
499
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
458
500
|
createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
459
501
|
};
|
|
502
|
+
/**
|
|
503
|
+
* Count Type ProductSnapshotCountOutputType
|
|
504
|
+
*/
|
|
460
505
|
export type ProductSnapshotCountOutputType = {
|
|
461
506
|
orderItems: number;
|
|
462
507
|
};
|
|
463
508
|
export type ProductSnapshotCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
464
509
|
orderItems?: boolean | ProductSnapshotCountOutputTypeCountOrderItemsArgs;
|
|
465
510
|
};
|
|
511
|
+
/**
|
|
512
|
+
* ProductSnapshotCountOutputType without action
|
|
513
|
+
*/
|
|
466
514
|
export type ProductSnapshotCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
515
|
+
/**
|
|
516
|
+
* Select specific fields to fetch from the ProductSnapshotCountOutputType
|
|
517
|
+
*/
|
|
467
518
|
select?: Prisma.ProductSnapshotCountOutputTypeSelect<ExtArgs> | null;
|
|
468
519
|
};
|
|
520
|
+
/**
|
|
521
|
+
* ProductSnapshotCountOutputType without action
|
|
522
|
+
*/
|
|
469
523
|
export type ProductSnapshotCountOutputTypeCountOrderItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
470
524
|
where?: Prisma.OrderItemWhereInput;
|
|
471
525
|
};
|
|
@@ -543,22 +597,290 @@ export interface ProductSnapshotDelegate<ExtArgs extends runtime.Types.Extension
|
|
|
543
597
|
name: 'ProductSnapshot';
|
|
544
598
|
};
|
|
545
599
|
};
|
|
600
|
+
/**
|
|
601
|
+
* Find zero or one ProductSnapshot that matches the filter.
|
|
602
|
+
* @param {ProductSnapshotFindUniqueArgs} args - Arguments to find a ProductSnapshot
|
|
603
|
+
* @example
|
|
604
|
+
* // Get one ProductSnapshot
|
|
605
|
+
* const productSnapshot = await prisma.productSnapshot.findUnique({
|
|
606
|
+
* where: {
|
|
607
|
+
* // ... provide filter here
|
|
608
|
+
* }
|
|
609
|
+
* })
|
|
610
|
+
*/
|
|
546
611
|
findUnique<T extends ProductSnapshotFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductSnapshotFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
612
|
+
/**
|
|
613
|
+
* Find one ProductSnapshot that matches the filter or throw an error with `error.code='P2025'`
|
|
614
|
+
* if no matches were found.
|
|
615
|
+
* @param {ProductSnapshotFindUniqueOrThrowArgs} args - Arguments to find a ProductSnapshot
|
|
616
|
+
* @example
|
|
617
|
+
* // Get one ProductSnapshot
|
|
618
|
+
* const productSnapshot = await prisma.productSnapshot.findUniqueOrThrow({
|
|
619
|
+
* where: {
|
|
620
|
+
* // ... provide filter here
|
|
621
|
+
* }
|
|
622
|
+
* })
|
|
623
|
+
*/
|
|
547
624
|
findUniqueOrThrow<T extends ProductSnapshotFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductSnapshotFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
625
|
+
/**
|
|
626
|
+
* Find the first ProductSnapshot that matches the filter.
|
|
627
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
628
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
629
|
+
* @param {ProductSnapshotFindFirstArgs} args - Arguments to find a ProductSnapshot
|
|
630
|
+
* @example
|
|
631
|
+
* // Get one ProductSnapshot
|
|
632
|
+
* const productSnapshot = await prisma.productSnapshot.findFirst({
|
|
633
|
+
* where: {
|
|
634
|
+
* // ... provide filter here
|
|
635
|
+
* }
|
|
636
|
+
* })
|
|
637
|
+
*/
|
|
548
638
|
findFirst<T extends ProductSnapshotFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductSnapshotFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
639
|
+
/**
|
|
640
|
+
* Find the first ProductSnapshot that matches the filter or
|
|
641
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
642
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
643
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
644
|
+
* @param {ProductSnapshotFindFirstOrThrowArgs} args - Arguments to find a ProductSnapshot
|
|
645
|
+
* @example
|
|
646
|
+
* // Get one ProductSnapshot
|
|
647
|
+
* const productSnapshot = await prisma.productSnapshot.findFirstOrThrow({
|
|
648
|
+
* where: {
|
|
649
|
+
* // ... provide filter here
|
|
650
|
+
* }
|
|
651
|
+
* })
|
|
652
|
+
*/
|
|
549
653
|
findFirstOrThrow<T extends ProductSnapshotFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductSnapshotFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
654
|
+
/**
|
|
655
|
+
* Find zero or more ProductSnapshots that matches the filter.
|
|
656
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
657
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
658
|
+
* @param {ProductSnapshotFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
659
|
+
* @example
|
|
660
|
+
* // Get all ProductSnapshots
|
|
661
|
+
* const productSnapshots = await prisma.productSnapshot.findMany()
|
|
662
|
+
*
|
|
663
|
+
* // Get first 10 ProductSnapshots
|
|
664
|
+
* const productSnapshots = await prisma.productSnapshot.findMany({ take: 10 })
|
|
665
|
+
*
|
|
666
|
+
* // Only select the `id`
|
|
667
|
+
* const productSnapshotWithIdOnly = await prisma.productSnapshot.findMany({ select: { id: true } })
|
|
668
|
+
*
|
|
669
|
+
*/
|
|
550
670
|
findMany<T extends ProductSnapshotFindManyArgs>(args?: Prisma.SelectSubset<T, ProductSnapshotFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
671
|
+
/**
|
|
672
|
+
* Create a ProductSnapshot.
|
|
673
|
+
* @param {ProductSnapshotCreateArgs} args - Arguments to create a ProductSnapshot.
|
|
674
|
+
* @example
|
|
675
|
+
* // Create one ProductSnapshot
|
|
676
|
+
* const ProductSnapshot = await prisma.productSnapshot.create({
|
|
677
|
+
* data: {
|
|
678
|
+
* // ... data to create a ProductSnapshot
|
|
679
|
+
* }
|
|
680
|
+
* })
|
|
681
|
+
*
|
|
682
|
+
*/
|
|
551
683
|
create<T extends ProductSnapshotCreateArgs>(args: Prisma.SelectSubset<T, ProductSnapshotCreateArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
684
|
+
/**
|
|
685
|
+
* Create many ProductSnapshots.
|
|
686
|
+
* @param {ProductSnapshotCreateManyArgs} args - Arguments to create many ProductSnapshots.
|
|
687
|
+
* @example
|
|
688
|
+
* // Create many ProductSnapshots
|
|
689
|
+
* const productSnapshot = await prisma.productSnapshot.createMany({
|
|
690
|
+
* data: [
|
|
691
|
+
* // ... provide data here
|
|
692
|
+
* ]
|
|
693
|
+
* })
|
|
694
|
+
*
|
|
695
|
+
*/
|
|
552
696
|
createMany<T extends ProductSnapshotCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductSnapshotCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
697
|
+
/**
|
|
698
|
+
* Create many ProductSnapshots and returns the data saved in the database.
|
|
699
|
+
* @param {ProductSnapshotCreateManyAndReturnArgs} args - Arguments to create many ProductSnapshots.
|
|
700
|
+
* @example
|
|
701
|
+
* // Create many ProductSnapshots
|
|
702
|
+
* const productSnapshot = await prisma.productSnapshot.createManyAndReturn({
|
|
703
|
+
* data: [
|
|
704
|
+
* // ... provide data here
|
|
705
|
+
* ]
|
|
706
|
+
* })
|
|
707
|
+
*
|
|
708
|
+
* // Create many ProductSnapshots and only return the `id`
|
|
709
|
+
* const productSnapshotWithIdOnly = await prisma.productSnapshot.createManyAndReturn({
|
|
710
|
+
* select: { id: true },
|
|
711
|
+
* data: [
|
|
712
|
+
* // ... provide data here
|
|
713
|
+
* ]
|
|
714
|
+
* })
|
|
715
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
716
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
717
|
+
*
|
|
718
|
+
*/
|
|
553
719
|
createManyAndReturn<T extends ProductSnapshotCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProductSnapshotCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
720
|
+
/**
|
|
721
|
+
* Delete a ProductSnapshot.
|
|
722
|
+
* @param {ProductSnapshotDeleteArgs} args - Arguments to delete one ProductSnapshot.
|
|
723
|
+
* @example
|
|
724
|
+
* // Delete one ProductSnapshot
|
|
725
|
+
* const ProductSnapshot = await prisma.productSnapshot.delete({
|
|
726
|
+
* where: {
|
|
727
|
+
* // ... filter to delete one ProductSnapshot
|
|
728
|
+
* }
|
|
729
|
+
* })
|
|
730
|
+
*
|
|
731
|
+
*/
|
|
554
732
|
delete<T extends ProductSnapshotDeleteArgs>(args: Prisma.SelectSubset<T, ProductSnapshotDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
733
|
+
/**
|
|
734
|
+
* Update one ProductSnapshot.
|
|
735
|
+
* @param {ProductSnapshotUpdateArgs} args - Arguments to update one ProductSnapshot.
|
|
736
|
+
* @example
|
|
737
|
+
* // Update one ProductSnapshot
|
|
738
|
+
* const productSnapshot = await prisma.productSnapshot.update({
|
|
739
|
+
* where: {
|
|
740
|
+
* // ... provide filter here
|
|
741
|
+
* },
|
|
742
|
+
* data: {
|
|
743
|
+
* // ... provide data here
|
|
744
|
+
* }
|
|
745
|
+
* })
|
|
746
|
+
*
|
|
747
|
+
*/
|
|
555
748
|
update<T extends ProductSnapshotUpdateArgs>(args: Prisma.SelectSubset<T, ProductSnapshotUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
749
|
+
/**
|
|
750
|
+
* Delete zero or more ProductSnapshots.
|
|
751
|
+
* @param {ProductSnapshotDeleteManyArgs} args - Arguments to filter ProductSnapshots to delete.
|
|
752
|
+
* @example
|
|
753
|
+
* // Delete a few ProductSnapshots
|
|
754
|
+
* const { count } = await prisma.productSnapshot.deleteMany({
|
|
755
|
+
* where: {
|
|
756
|
+
* // ... provide filter here
|
|
757
|
+
* }
|
|
758
|
+
* })
|
|
759
|
+
*
|
|
760
|
+
*/
|
|
556
761
|
deleteMany<T extends ProductSnapshotDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductSnapshotDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
762
|
+
/**
|
|
763
|
+
* Update zero or more ProductSnapshots.
|
|
764
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
765
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
766
|
+
* @param {ProductSnapshotUpdateManyArgs} args - Arguments to update one or more rows.
|
|
767
|
+
* @example
|
|
768
|
+
* // Update many ProductSnapshots
|
|
769
|
+
* const productSnapshot = await prisma.productSnapshot.updateMany({
|
|
770
|
+
* where: {
|
|
771
|
+
* // ... provide filter here
|
|
772
|
+
* },
|
|
773
|
+
* data: {
|
|
774
|
+
* // ... provide data here
|
|
775
|
+
* }
|
|
776
|
+
* })
|
|
777
|
+
*
|
|
778
|
+
*/
|
|
557
779
|
updateMany<T extends ProductSnapshotUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductSnapshotUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
780
|
+
/**
|
|
781
|
+
* Update zero or more ProductSnapshots and returns the data updated in the database.
|
|
782
|
+
* @param {ProductSnapshotUpdateManyAndReturnArgs} args - Arguments to update many ProductSnapshots.
|
|
783
|
+
* @example
|
|
784
|
+
* // Update many ProductSnapshots
|
|
785
|
+
* const productSnapshot = await prisma.productSnapshot.updateManyAndReturn({
|
|
786
|
+
* where: {
|
|
787
|
+
* // ... provide filter here
|
|
788
|
+
* },
|
|
789
|
+
* data: [
|
|
790
|
+
* // ... provide data here
|
|
791
|
+
* ]
|
|
792
|
+
* })
|
|
793
|
+
*
|
|
794
|
+
* // Update zero or more ProductSnapshots and only return the `id`
|
|
795
|
+
* const productSnapshotWithIdOnly = await prisma.productSnapshot.updateManyAndReturn({
|
|
796
|
+
* select: { id: true },
|
|
797
|
+
* where: {
|
|
798
|
+
* // ... provide filter here
|
|
799
|
+
* },
|
|
800
|
+
* data: [
|
|
801
|
+
* // ... provide data here
|
|
802
|
+
* ]
|
|
803
|
+
* })
|
|
804
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
805
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
806
|
+
*
|
|
807
|
+
*/
|
|
558
808
|
updateManyAndReturn<T extends ProductSnapshotUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProductSnapshotUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
809
|
+
/**
|
|
810
|
+
* Create or update one ProductSnapshot.
|
|
811
|
+
* @param {ProductSnapshotUpsertArgs} args - Arguments to update or create a ProductSnapshot.
|
|
812
|
+
* @example
|
|
813
|
+
* // Update or create a ProductSnapshot
|
|
814
|
+
* const productSnapshot = await prisma.productSnapshot.upsert({
|
|
815
|
+
* create: {
|
|
816
|
+
* // ... data to create a ProductSnapshot
|
|
817
|
+
* },
|
|
818
|
+
* update: {
|
|
819
|
+
* // ... in case it already exists, update
|
|
820
|
+
* },
|
|
821
|
+
* where: {
|
|
822
|
+
* // ... the filter for the ProductSnapshot we want to update
|
|
823
|
+
* }
|
|
824
|
+
* })
|
|
825
|
+
*/
|
|
559
826
|
upsert<T extends ProductSnapshotUpsertArgs>(args: Prisma.SelectSubset<T, ProductSnapshotUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
827
|
+
/**
|
|
828
|
+
* Count the number of ProductSnapshots.
|
|
829
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
830
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
831
|
+
* @param {ProductSnapshotCountArgs} args - Arguments to filter ProductSnapshots to count.
|
|
832
|
+
* @example
|
|
833
|
+
* // Count the number of ProductSnapshots
|
|
834
|
+
* const count = await prisma.productSnapshot.count({
|
|
835
|
+
* where: {
|
|
836
|
+
* // ... the filter for the ProductSnapshots we want to count
|
|
837
|
+
* }
|
|
838
|
+
* })
|
|
839
|
+
**/
|
|
560
840
|
count<T extends ProductSnapshotCountArgs>(args?: Prisma.Subset<T, ProductSnapshotCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProductSnapshotCountAggregateOutputType> : number>;
|
|
841
|
+
/**
|
|
842
|
+
* Allows you to perform aggregations operations on a ProductSnapshot.
|
|
843
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
844
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
845
|
+
* @param {ProductSnapshotAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
846
|
+
* @example
|
|
847
|
+
* // Ordered by age ascending
|
|
848
|
+
* // Where email contains prisma.io
|
|
849
|
+
* // Limited to the 10 users
|
|
850
|
+
* const aggregations = await prisma.user.aggregate({
|
|
851
|
+
* _avg: {
|
|
852
|
+
* age: true,
|
|
853
|
+
* },
|
|
854
|
+
* where: {
|
|
855
|
+
* email: {
|
|
856
|
+
* contains: "prisma.io",
|
|
857
|
+
* },
|
|
858
|
+
* },
|
|
859
|
+
* orderBy: {
|
|
860
|
+
* age: "asc",
|
|
861
|
+
* },
|
|
862
|
+
* take: 10,
|
|
863
|
+
* })
|
|
864
|
+
**/
|
|
561
865
|
aggregate<T extends ProductSnapshotAggregateArgs>(args: Prisma.Subset<T, ProductSnapshotAggregateArgs>): Prisma.PrismaPromise<GetProductSnapshotAggregateType<T>>;
|
|
866
|
+
/**
|
|
867
|
+
* Group by ProductSnapshot.
|
|
868
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
869
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
870
|
+
* @param {ProductSnapshotGroupByArgs} args - Group by arguments.
|
|
871
|
+
* @example
|
|
872
|
+
* // Group by city, order by createdAt, get count
|
|
873
|
+
* const result = await prisma.user.groupBy({
|
|
874
|
+
* by: ['city', 'createdAt'],
|
|
875
|
+
* orderBy: {
|
|
876
|
+
* createdAt: true
|
|
877
|
+
* },
|
|
878
|
+
* _count: {
|
|
879
|
+
* _all: true
|
|
880
|
+
* },
|
|
881
|
+
* })
|
|
882
|
+
*
|
|
883
|
+
**/
|
|
562
884
|
groupBy<T extends ProductSnapshotGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
563
885
|
orderBy: ProductSnapshotGroupByArgs['orderBy'];
|
|
564
886
|
} : {
|
|
@@ -577,17 +899,46 @@ export interface ProductSnapshotDelegate<ExtArgs extends runtime.Types.Extension
|
|
|
577
899
|
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
578
900
|
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
579
901
|
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ProductSnapshotGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductSnapshotGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
902
|
+
/**
|
|
903
|
+
* Fields of the ProductSnapshot model
|
|
904
|
+
*/
|
|
580
905
|
readonly fields: ProductSnapshotFieldRefs;
|
|
581
906
|
}
|
|
907
|
+
/**
|
|
908
|
+
* The delegate class that acts as a "Promise-like" for ProductSnapshot.
|
|
909
|
+
* Why is this prefixed with `Prisma__`?
|
|
910
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
911
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
912
|
+
*/
|
|
582
913
|
export interface Prisma__ProductSnapshotClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
583
914
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
584
915
|
product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
585
916
|
latestForProduct<T extends Prisma.ProductSnapshot$latestForProductArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductSnapshot$latestForProductArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
586
917
|
orderItems<T extends Prisma.ProductSnapshot$orderItemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductSnapshot$orderItemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
918
|
+
/**
|
|
919
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
920
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
921
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
922
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
923
|
+
*/
|
|
587
924
|
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>;
|
|
925
|
+
/**
|
|
926
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
927
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
928
|
+
* @returns A Promise for the completion of the callback.
|
|
929
|
+
*/
|
|
588
930
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
931
|
+
/**
|
|
932
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
933
|
+
* resolved value cannot be modified from the callback.
|
|
934
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
935
|
+
* @returns A Promise for the completion of the callback.
|
|
936
|
+
*/
|
|
589
937
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
590
938
|
}
|
|
939
|
+
/**
|
|
940
|
+
* Fields of the ProductSnapshot model
|
|
941
|
+
*/
|
|
591
942
|
export interface ProductSnapshotFieldRefs {
|
|
592
943
|
readonly id: Prisma.FieldRef<"ProductSnapshot", 'String'>;
|
|
593
944
|
readonly productId: Prisma.FieldRef<"ProductSnapshot", 'String'>;
|
|
@@ -595,115 +946,421 @@ export interface ProductSnapshotFieldRefs {
|
|
|
595
946
|
readonly createdAt: Prisma.FieldRef<"ProductSnapshot", 'DateTime'>;
|
|
596
947
|
readonly createdBy: Prisma.FieldRef<"ProductSnapshot", 'String'>;
|
|
597
948
|
}
|
|
949
|
+
/**
|
|
950
|
+
* ProductSnapshot findUnique
|
|
951
|
+
*/
|
|
598
952
|
export type ProductSnapshotFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
953
|
+
/**
|
|
954
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
955
|
+
*/
|
|
599
956
|
select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
|
|
957
|
+
/**
|
|
958
|
+
* Omit specific fields from the ProductSnapshot
|
|
959
|
+
*/
|
|
600
960
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
961
|
+
/**
|
|
962
|
+
* Choose, which related nodes to fetch as well
|
|
963
|
+
*/
|
|
601
964
|
include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
|
|
965
|
+
/**
|
|
966
|
+
* Filter, which ProductSnapshot to fetch.
|
|
967
|
+
*/
|
|
602
968
|
where: Prisma.ProductSnapshotWhereUniqueInput;
|
|
603
969
|
};
|
|
970
|
+
/**
|
|
971
|
+
* ProductSnapshot findUniqueOrThrow
|
|
972
|
+
*/
|
|
604
973
|
export type ProductSnapshotFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
974
|
+
/**
|
|
975
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
976
|
+
*/
|
|
605
977
|
select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
|
|
978
|
+
/**
|
|
979
|
+
* Omit specific fields from the ProductSnapshot
|
|
980
|
+
*/
|
|
606
981
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
982
|
+
/**
|
|
983
|
+
* Choose, which related nodes to fetch as well
|
|
984
|
+
*/
|
|
607
985
|
include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
|
|
986
|
+
/**
|
|
987
|
+
* Filter, which ProductSnapshot to fetch.
|
|
988
|
+
*/
|
|
608
989
|
where: Prisma.ProductSnapshotWhereUniqueInput;
|
|
609
990
|
};
|
|
991
|
+
/**
|
|
992
|
+
* ProductSnapshot findFirst
|
|
993
|
+
*/
|
|
610
994
|
export type ProductSnapshotFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
995
|
+
/**
|
|
996
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
997
|
+
*/
|
|
611
998
|
select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
|
|
999
|
+
/**
|
|
1000
|
+
* Omit specific fields from the ProductSnapshot
|
|
1001
|
+
*/
|
|
612
1002
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
1003
|
+
/**
|
|
1004
|
+
* Choose, which related nodes to fetch as well
|
|
1005
|
+
*/
|
|
613
1006
|
include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
|
|
1007
|
+
/**
|
|
1008
|
+
* Filter, which ProductSnapshot to fetch.
|
|
1009
|
+
*/
|
|
614
1010
|
where?: Prisma.ProductSnapshotWhereInput;
|
|
1011
|
+
/**
|
|
1012
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1013
|
+
*
|
|
1014
|
+
* Determine the order of ProductSnapshots to fetch.
|
|
1015
|
+
*/
|
|
615
1016
|
orderBy?: Prisma.ProductSnapshotOrderByWithRelationInput | Prisma.ProductSnapshotOrderByWithRelationInput[];
|
|
1017
|
+
/**
|
|
1018
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1019
|
+
*
|
|
1020
|
+
* Sets the position for searching for ProductSnapshots.
|
|
1021
|
+
*/
|
|
616
1022
|
cursor?: Prisma.ProductSnapshotWhereUniqueInput;
|
|
1023
|
+
/**
|
|
1024
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1025
|
+
*
|
|
1026
|
+
* Take `±n` ProductSnapshots from the position of the cursor.
|
|
1027
|
+
*/
|
|
617
1028
|
take?: number;
|
|
1029
|
+
/**
|
|
1030
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1031
|
+
*
|
|
1032
|
+
* Skip the first `n` ProductSnapshots.
|
|
1033
|
+
*/
|
|
618
1034
|
skip?: number;
|
|
1035
|
+
/**
|
|
1036
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1037
|
+
*
|
|
1038
|
+
* Filter by unique combinations of ProductSnapshots.
|
|
1039
|
+
*/
|
|
619
1040
|
distinct?: Prisma.ProductSnapshotScalarFieldEnum | Prisma.ProductSnapshotScalarFieldEnum[];
|
|
620
1041
|
};
|
|
1042
|
+
/**
|
|
1043
|
+
* ProductSnapshot findFirstOrThrow
|
|
1044
|
+
*/
|
|
621
1045
|
export type ProductSnapshotFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1046
|
+
/**
|
|
1047
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
1048
|
+
*/
|
|
622
1049
|
select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
|
|
1050
|
+
/**
|
|
1051
|
+
* Omit specific fields from the ProductSnapshot
|
|
1052
|
+
*/
|
|
623
1053
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
1054
|
+
/**
|
|
1055
|
+
* Choose, which related nodes to fetch as well
|
|
1056
|
+
*/
|
|
624
1057
|
include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
|
|
1058
|
+
/**
|
|
1059
|
+
* Filter, which ProductSnapshot to fetch.
|
|
1060
|
+
*/
|
|
625
1061
|
where?: Prisma.ProductSnapshotWhereInput;
|
|
1062
|
+
/**
|
|
1063
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1064
|
+
*
|
|
1065
|
+
* Determine the order of ProductSnapshots to fetch.
|
|
1066
|
+
*/
|
|
626
1067
|
orderBy?: Prisma.ProductSnapshotOrderByWithRelationInput | Prisma.ProductSnapshotOrderByWithRelationInput[];
|
|
1068
|
+
/**
|
|
1069
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1070
|
+
*
|
|
1071
|
+
* Sets the position for searching for ProductSnapshots.
|
|
1072
|
+
*/
|
|
627
1073
|
cursor?: Prisma.ProductSnapshotWhereUniqueInput;
|
|
1074
|
+
/**
|
|
1075
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1076
|
+
*
|
|
1077
|
+
* Take `±n` ProductSnapshots from the position of the cursor.
|
|
1078
|
+
*/
|
|
628
1079
|
take?: number;
|
|
1080
|
+
/**
|
|
1081
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1082
|
+
*
|
|
1083
|
+
* Skip the first `n` ProductSnapshots.
|
|
1084
|
+
*/
|
|
629
1085
|
skip?: number;
|
|
1086
|
+
/**
|
|
1087
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1088
|
+
*
|
|
1089
|
+
* Filter by unique combinations of ProductSnapshots.
|
|
1090
|
+
*/
|
|
630
1091
|
distinct?: Prisma.ProductSnapshotScalarFieldEnum | Prisma.ProductSnapshotScalarFieldEnum[];
|
|
631
1092
|
};
|
|
1093
|
+
/**
|
|
1094
|
+
* ProductSnapshot findMany
|
|
1095
|
+
*/
|
|
632
1096
|
export type ProductSnapshotFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1097
|
+
/**
|
|
1098
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
1099
|
+
*/
|
|
633
1100
|
select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
|
|
1101
|
+
/**
|
|
1102
|
+
* Omit specific fields from the ProductSnapshot
|
|
1103
|
+
*/
|
|
634
1104
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
1105
|
+
/**
|
|
1106
|
+
* Choose, which related nodes to fetch as well
|
|
1107
|
+
*/
|
|
635
1108
|
include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
|
|
1109
|
+
/**
|
|
1110
|
+
* Filter, which ProductSnapshots to fetch.
|
|
1111
|
+
*/
|
|
636
1112
|
where?: Prisma.ProductSnapshotWhereInput;
|
|
1113
|
+
/**
|
|
1114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1115
|
+
*
|
|
1116
|
+
* Determine the order of ProductSnapshots to fetch.
|
|
1117
|
+
*/
|
|
637
1118
|
orderBy?: Prisma.ProductSnapshotOrderByWithRelationInput | Prisma.ProductSnapshotOrderByWithRelationInput[];
|
|
1119
|
+
/**
|
|
1120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1121
|
+
*
|
|
1122
|
+
* Sets the position for listing ProductSnapshots.
|
|
1123
|
+
*/
|
|
638
1124
|
cursor?: Prisma.ProductSnapshotWhereUniqueInput;
|
|
1125
|
+
/**
|
|
1126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1127
|
+
*
|
|
1128
|
+
* Take `±n` ProductSnapshots from the position of the cursor.
|
|
1129
|
+
*/
|
|
639
1130
|
take?: number;
|
|
1131
|
+
/**
|
|
1132
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1133
|
+
*
|
|
1134
|
+
* Skip the first `n` ProductSnapshots.
|
|
1135
|
+
*/
|
|
640
1136
|
skip?: number;
|
|
1137
|
+
/**
|
|
1138
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1139
|
+
*
|
|
1140
|
+
* Filter by unique combinations of ProductSnapshots.
|
|
1141
|
+
*/
|
|
641
1142
|
distinct?: Prisma.ProductSnapshotScalarFieldEnum | Prisma.ProductSnapshotScalarFieldEnum[];
|
|
642
1143
|
};
|
|
1144
|
+
/**
|
|
1145
|
+
* ProductSnapshot create
|
|
1146
|
+
*/
|
|
643
1147
|
export type ProductSnapshotCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1148
|
+
/**
|
|
1149
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
1150
|
+
*/
|
|
644
1151
|
select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
|
|
1152
|
+
/**
|
|
1153
|
+
* Omit specific fields from the ProductSnapshot
|
|
1154
|
+
*/
|
|
645
1155
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
1156
|
+
/**
|
|
1157
|
+
* Choose, which related nodes to fetch as well
|
|
1158
|
+
*/
|
|
646
1159
|
include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
|
|
1160
|
+
/**
|
|
1161
|
+
* The data needed to create a ProductSnapshot.
|
|
1162
|
+
*/
|
|
647
1163
|
data: Prisma.XOR<Prisma.ProductSnapshotCreateInput, Prisma.ProductSnapshotUncheckedCreateInput>;
|
|
648
1164
|
};
|
|
1165
|
+
/**
|
|
1166
|
+
* ProductSnapshot createMany
|
|
1167
|
+
*/
|
|
649
1168
|
export type ProductSnapshotCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1169
|
+
/**
|
|
1170
|
+
* The data used to create many ProductSnapshots.
|
|
1171
|
+
*/
|
|
650
1172
|
data: Prisma.ProductSnapshotCreateManyInput | Prisma.ProductSnapshotCreateManyInput[];
|
|
651
1173
|
skipDuplicates?: boolean;
|
|
652
1174
|
};
|
|
1175
|
+
/**
|
|
1176
|
+
* ProductSnapshot createManyAndReturn
|
|
1177
|
+
*/
|
|
653
1178
|
export type ProductSnapshotCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1179
|
+
/**
|
|
1180
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
1181
|
+
*/
|
|
654
1182
|
select?: Prisma.ProductSnapshotSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1183
|
+
/**
|
|
1184
|
+
* Omit specific fields from the ProductSnapshot
|
|
1185
|
+
*/
|
|
655
1186
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
1187
|
+
/**
|
|
1188
|
+
* The data used to create many ProductSnapshots.
|
|
1189
|
+
*/
|
|
656
1190
|
data: Prisma.ProductSnapshotCreateManyInput | Prisma.ProductSnapshotCreateManyInput[];
|
|
657
1191
|
skipDuplicates?: boolean;
|
|
1192
|
+
/**
|
|
1193
|
+
* Choose, which related nodes to fetch as well
|
|
1194
|
+
*/
|
|
658
1195
|
include?: Prisma.ProductSnapshotIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
659
1196
|
};
|
|
1197
|
+
/**
|
|
1198
|
+
* ProductSnapshot update
|
|
1199
|
+
*/
|
|
660
1200
|
export type ProductSnapshotUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1201
|
+
/**
|
|
1202
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
1203
|
+
*/
|
|
661
1204
|
select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
|
|
1205
|
+
/**
|
|
1206
|
+
* Omit specific fields from the ProductSnapshot
|
|
1207
|
+
*/
|
|
662
1208
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
1209
|
+
/**
|
|
1210
|
+
* Choose, which related nodes to fetch as well
|
|
1211
|
+
*/
|
|
663
1212
|
include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
|
|
1213
|
+
/**
|
|
1214
|
+
* The data needed to update a ProductSnapshot.
|
|
1215
|
+
*/
|
|
664
1216
|
data: Prisma.XOR<Prisma.ProductSnapshotUpdateInput, Prisma.ProductSnapshotUncheckedUpdateInput>;
|
|
1217
|
+
/**
|
|
1218
|
+
* Choose, which ProductSnapshot to update.
|
|
1219
|
+
*/
|
|
665
1220
|
where: Prisma.ProductSnapshotWhereUniqueInput;
|
|
666
1221
|
};
|
|
1222
|
+
/**
|
|
1223
|
+
* ProductSnapshot updateMany
|
|
1224
|
+
*/
|
|
667
1225
|
export type ProductSnapshotUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1226
|
+
/**
|
|
1227
|
+
* The data used to update ProductSnapshots.
|
|
1228
|
+
*/
|
|
668
1229
|
data: Prisma.XOR<Prisma.ProductSnapshotUpdateManyMutationInput, Prisma.ProductSnapshotUncheckedUpdateManyInput>;
|
|
1230
|
+
/**
|
|
1231
|
+
* Filter which ProductSnapshots to update
|
|
1232
|
+
*/
|
|
669
1233
|
where?: Prisma.ProductSnapshotWhereInput;
|
|
1234
|
+
/**
|
|
1235
|
+
* Limit how many ProductSnapshots to update.
|
|
1236
|
+
*/
|
|
670
1237
|
limit?: number;
|
|
671
1238
|
};
|
|
1239
|
+
/**
|
|
1240
|
+
* ProductSnapshot updateManyAndReturn
|
|
1241
|
+
*/
|
|
672
1242
|
export type ProductSnapshotUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1243
|
+
/**
|
|
1244
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
1245
|
+
*/
|
|
673
1246
|
select?: Prisma.ProductSnapshotSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1247
|
+
/**
|
|
1248
|
+
* Omit specific fields from the ProductSnapshot
|
|
1249
|
+
*/
|
|
674
1250
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
1251
|
+
/**
|
|
1252
|
+
* The data used to update ProductSnapshots.
|
|
1253
|
+
*/
|
|
675
1254
|
data: Prisma.XOR<Prisma.ProductSnapshotUpdateManyMutationInput, Prisma.ProductSnapshotUncheckedUpdateManyInput>;
|
|
1255
|
+
/**
|
|
1256
|
+
* Filter which ProductSnapshots to update
|
|
1257
|
+
*/
|
|
676
1258
|
where?: Prisma.ProductSnapshotWhereInput;
|
|
1259
|
+
/**
|
|
1260
|
+
* Limit how many ProductSnapshots to update.
|
|
1261
|
+
*/
|
|
677
1262
|
limit?: number;
|
|
1263
|
+
/**
|
|
1264
|
+
* Choose, which related nodes to fetch as well
|
|
1265
|
+
*/
|
|
678
1266
|
include?: Prisma.ProductSnapshotIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
679
1267
|
};
|
|
1268
|
+
/**
|
|
1269
|
+
* ProductSnapshot upsert
|
|
1270
|
+
*/
|
|
680
1271
|
export type ProductSnapshotUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1272
|
+
/**
|
|
1273
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
1274
|
+
*/
|
|
681
1275
|
select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
|
|
1276
|
+
/**
|
|
1277
|
+
* Omit specific fields from the ProductSnapshot
|
|
1278
|
+
*/
|
|
682
1279
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
1280
|
+
/**
|
|
1281
|
+
* Choose, which related nodes to fetch as well
|
|
1282
|
+
*/
|
|
683
1283
|
include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
|
|
1284
|
+
/**
|
|
1285
|
+
* The filter to search for the ProductSnapshot to update in case it exists.
|
|
1286
|
+
*/
|
|
684
1287
|
where: Prisma.ProductSnapshotWhereUniqueInput;
|
|
1288
|
+
/**
|
|
1289
|
+
* In case the ProductSnapshot found by the `where` argument doesn't exist, create a new ProductSnapshot with this data.
|
|
1290
|
+
*/
|
|
685
1291
|
create: Prisma.XOR<Prisma.ProductSnapshotCreateInput, Prisma.ProductSnapshotUncheckedCreateInput>;
|
|
1292
|
+
/**
|
|
1293
|
+
* In case the ProductSnapshot was found with the provided `where` argument, update it with this data.
|
|
1294
|
+
*/
|
|
686
1295
|
update: Prisma.XOR<Prisma.ProductSnapshotUpdateInput, Prisma.ProductSnapshotUncheckedUpdateInput>;
|
|
687
1296
|
};
|
|
1297
|
+
/**
|
|
1298
|
+
* ProductSnapshot delete
|
|
1299
|
+
*/
|
|
688
1300
|
export type ProductSnapshotDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1301
|
+
/**
|
|
1302
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
1303
|
+
*/
|
|
689
1304
|
select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
|
|
1305
|
+
/**
|
|
1306
|
+
* Omit specific fields from the ProductSnapshot
|
|
1307
|
+
*/
|
|
690
1308
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
1309
|
+
/**
|
|
1310
|
+
* Choose, which related nodes to fetch as well
|
|
1311
|
+
*/
|
|
691
1312
|
include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
|
|
1313
|
+
/**
|
|
1314
|
+
* Filter which ProductSnapshot to delete.
|
|
1315
|
+
*/
|
|
692
1316
|
where: Prisma.ProductSnapshotWhereUniqueInput;
|
|
693
1317
|
};
|
|
1318
|
+
/**
|
|
1319
|
+
* ProductSnapshot deleteMany
|
|
1320
|
+
*/
|
|
694
1321
|
export type ProductSnapshotDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1322
|
+
/**
|
|
1323
|
+
* Filter which ProductSnapshots to delete
|
|
1324
|
+
*/
|
|
695
1325
|
where?: Prisma.ProductSnapshotWhereInput;
|
|
1326
|
+
/**
|
|
1327
|
+
* Limit how many ProductSnapshots to delete.
|
|
1328
|
+
*/
|
|
696
1329
|
limit?: number;
|
|
697
1330
|
};
|
|
1331
|
+
/**
|
|
1332
|
+
* ProductSnapshot.latestForProduct
|
|
1333
|
+
*/
|
|
698
1334
|
export type ProductSnapshot$latestForProductArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1335
|
+
/**
|
|
1336
|
+
* Select specific fields to fetch from the Product
|
|
1337
|
+
*/
|
|
699
1338
|
select?: Prisma.ProductSelect<ExtArgs> | null;
|
|
1339
|
+
/**
|
|
1340
|
+
* Omit specific fields from the Product
|
|
1341
|
+
*/
|
|
700
1342
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
1343
|
+
/**
|
|
1344
|
+
* Choose, which related nodes to fetch as well
|
|
1345
|
+
*/
|
|
701
1346
|
include?: Prisma.ProductInclude<ExtArgs> | null;
|
|
702
1347
|
where?: Prisma.ProductWhereInput;
|
|
703
1348
|
};
|
|
1349
|
+
/**
|
|
1350
|
+
* ProductSnapshot.orderItems
|
|
1351
|
+
*/
|
|
704
1352
|
export type ProductSnapshot$orderItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1353
|
+
/**
|
|
1354
|
+
* Select specific fields to fetch from the OrderItem
|
|
1355
|
+
*/
|
|
705
1356
|
select?: Prisma.OrderItemSelect<ExtArgs> | null;
|
|
1357
|
+
/**
|
|
1358
|
+
* Omit specific fields from the OrderItem
|
|
1359
|
+
*/
|
|
706
1360
|
omit?: Prisma.OrderItemOmit<ExtArgs> | null;
|
|
1361
|
+
/**
|
|
1362
|
+
* Choose, which related nodes to fetch as well
|
|
1363
|
+
*/
|
|
707
1364
|
include?: Prisma.OrderItemInclude<ExtArgs> | null;
|
|
708
1365
|
where?: Prisma.OrderItemWhereInput;
|
|
709
1366
|
orderBy?: Prisma.OrderItemOrderByWithRelationInput | Prisma.OrderItemOrderByWithRelationInput[];
|
|
@@ -712,9 +1369,21 @@ export type ProductSnapshot$orderItemsArgs<ExtArgs extends runtime.Types.Extensi
|
|
|
712
1369
|
skip?: number;
|
|
713
1370
|
distinct?: Prisma.OrderItemScalarFieldEnum | Prisma.OrderItemScalarFieldEnum[];
|
|
714
1371
|
};
|
|
1372
|
+
/**
|
|
1373
|
+
* ProductSnapshot without action
|
|
1374
|
+
*/
|
|
715
1375
|
export type ProductSnapshotDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1376
|
+
/**
|
|
1377
|
+
* Select specific fields to fetch from the ProductSnapshot
|
|
1378
|
+
*/
|
|
716
1379
|
select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
|
|
1380
|
+
/**
|
|
1381
|
+
* Omit specific fields from the ProductSnapshot
|
|
1382
|
+
*/
|
|
717
1383
|
omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
|
|
1384
|
+
/**
|
|
1385
|
+
* Choose, which related nodes to fetch as well
|
|
1386
|
+
*/
|
|
718
1387
|
include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
|
|
719
1388
|
};
|
|
720
1389
|
export {};
|