@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 ProductCategory
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
3
7
|
export type ProductCategoryModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductCategoryPayload>;
|
|
4
8
|
export type AggregateProductCategory = {
|
|
5
9
|
_count: ProductCategoryCountAggregateOutputType | null;
|
|
@@ -113,15 +117,63 @@ export type ProductCategoryCountAggregateInputType = {
|
|
|
113
117
|
_all?: true;
|
|
114
118
|
};
|
|
115
119
|
export type ProductCategoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
120
|
+
/**
|
|
121
|
+
* Filter which ProductCategory to aggregate.
|
|
122
|
+
*/
|
|
116
123
|
where?: Prisma.ProductCategoryWhereInput;
|
|
124
|
+
/**
|
|
125
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
126
|
+
*
|
|
127
|
+
* Determine the order of ProductCategories to fetch.
|
|
128
|
+
*/
|
|
117
129
|
orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
|
|
130
|
+
/**
|
|
131
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
132
|
+
*
|
|
133
|
+
* Sets the start position
|
|
134
|
+
*/
|
|
118
135
|
cursor?: Prisma.ProductCategoryWhereUniqueInput;
|
|
136
|
+
/**
|
|
137
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
138
|
+
*
|
|
139
|
+
* Take `±n` ProductCategories from the position of the cursor.
|
|
140
|
+
*/
|
|
119
141
|
take?: number;
|
|
142
|
+
/**
|
|
143
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
144
|
+
*
|
|
145
|
+
* Skip the first `n` ProductCategories.
|
|
146
|
+
*/
|
|
120
147
|
skip?: number;
|
|
148
|
+
/**
|
|
149
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
150
|
+
*
|
|
151
|
+
* Count returned ProductCategories
|
|
152
|
+
**/
|
|
121
153
|
_count?: true | ProductCategoryCountAggregateInputType;
|
|
154
|
+
/**
|
|
155
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
156
|
+
*
|
|
157
|
+
* Select which fields to average
|
|
158
|
+
**/
|
|
122
159
|
_avg?: ProductCategoryAvgAggregateInputType;
|
|
160
|
+
/**
|
|
161
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
162
|
+
*
|
|
163
|
+
* Select which fields to sum
|
|
164
|
+
**/
|
|
123
165
|
_sum?: ProductCategorySumAggregateInputType;
|
|
166
|
+
/**
|
|
167
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
168
|
+
*
|
|
169
|
+
* Select which fields to find the minimum value
|
|
170
|
+
**/
|
|
124
171
|
_min?: ProductCategoryMinAggregateInputType;
|
|
172
|
+
/**
|
|
173
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
174
|
+
*
|
|
175
|
+
* Select which fields to find the maximum value
|
|
176
|
+
**/
|
|
125
177
|
_max?: ProductCategoryMaxAggregateInputType;
|
|
126
178
|
};
|
|
127
179
|
export type GetProductCategoryAggregateType<T extends ProductCategoryAggregateArgs> = {
|
|
@@ -935,6 +987,9 @@ export type ProductCategoryUncheckedUpdateManyWithoutProductsInput = {
|
|
|
935
987
|
publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
936
988
|
publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
937
989
|
};
|
|
990
|
+
/**
|
|
991
|
+
* Count Type ProductCategoryCountOutputType
|
|
992
|
+
*/
|
|
938
993
|
export type ProductCategoryCountOutputType = {
|
|
939
994
|
translations: number;
|
|
940
995
|
products: number;
|
|
@@ -943,12 +998,24 @@ export type ProductCategoryCountOutputTypeSelect<ExtArgs extends runtime.Types.E
|
|
|
943
998
|
translations?: boolean | ProductCategoryCountOutputTypeCountTranslationsArgs;
|
|
944
999
|
products?: boolean | ProductCategoryCountOutputTypeCountProductsArgs;
|
|
945
1000
|
};
|
|
1001
|
+
/**
|
|
1002
|
+
* ProductCategoryCountOutputType without action
|
|
1003
|
+
*/
|
|
946
1004
|
export type ProductCategoryCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1005
|
+
/**
|
|
1006
|
+
* Select specific fields to fetch from the ProductCategoryCountOutputType
|
|
1007
|
+
*/
|
|
947
1008
|
select?: Prisma.ProductCategoryCountOutputTypeSelect<ExtArgs> | null;
|
|
948
1009
|
};
|
|
1010
|
+
/**
|
|
1011
|
+
* ProductCategoryCountOutputType without action
|
|
1012
|
+
*/
|
|
949
1013
|
export type ProductCategoryCountOutputTypeCountTranslationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
950
1014
|
where?: Prisma.ProductCategoryTranslationWhereInput;
|
|
951
1015
|
};
|
|
1016
|
+
/**
|
|
1017
|
+
* ProductCategoryCountOutputType without action
|
|
1018
|
+
*/
|
|
952
1019
|
export type ProductCategoryCountOutputTypeCountProductsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
953
1020
|
where?: Prisma.ProductWhereInput;
|
|
954
1021
|
};
|
|
@@ -1073,22 +1140,290 @@ export interface ProductCategoryDelegate<ExtArgs extends runtime.Types.Extension
|
|
|
1073
1140
|
name: 'ProductCategory';
|
|
1074
1141
|
};
|
|
1075
1142
|
};
|
|
1143
|
+
/**
|
|
1144
|
+
* Find zero or one ProductCategory that matches the filter.
|
|
1145
|
+
* @param {ProductCategoryFindUniqueArgs} args - Arguments to find a ProductCategory
|
|
1146
|
+
* @example
|
|
1147
|
+
* // Get one ProductCategory
|
|
1148
|
+
* const productCategory = await prisma.productCategory.findUnique({
|
|
1149
|
+
* where: {
|
|
1150
|
+
* // ... provide filter here
|
|
1151
|
+
* }
|
|
1152
|
+
* })
|
|
1153
|
+
*/
|
|
1076
1154
|
findUnique<T extends ProductCategoryFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductCategoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1155
|
+
/**
|
|
1156
|
+
* Find one ProductCategory that matches the filter or throw an error with `error.code='P2025'`
|
|
1157
|
+
* if no matches were found.
|
|
1158
|
+
* @param {ProductCategoryFindUniqueOrThrowArgs} args - Arguments to find a ProductCategory
|
|
1159
|
+
* @example
|
|
1160
|
+
* // Get one ProductCategory
|
|
1161
|
+
* const productCategory = await prisma.productCategory.findUniqueOrThrow({
|
|
1162
|
+
* where: {
|
|
1163
|
+
* // ... provide filter here
|
|
1164
|
+
* }
|
|
1165
|
+
* })
|
|
1166
|
+
*/
|
|
1077
1167
|
findUniqueOrThrow<T extends ProductCategoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductCategoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Find the first ProductCategory that matches the filter.
|
|
1170
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1171
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1172
|
+
* @param {ProductCategoryFindFirstArgs} args - Arguments to find a ProductCategory
|
|
1173
|
+
* @example
|
|
1174
|
+
* // Get one ProductCategory
|
|
1175
|
+
* const productCategory = await prisma.productCategory.findFirst({
|
|
1176
|
+
* where: {
|
|
1177
|
+
* // ... provide filter here
|
|
1178
|
+
* }
|
|
1179
|
+
* })
|
|
1180
|
+
*/
|
|
1078
1181
|
findFirst<T extends ProductCategoryFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductCategoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1182
|
+
/**
|
|
1183
|
+
* Find the first ProductCategory that matches the filter or
|
|
1184
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1185
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1186
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1187
|
+
* @param {ProductCategoryFindFirstOrThrowArgs} args - Arguments to find a ProductCategory
|
|
1188
|
+
* @example
|
|
1189
|
+
* // Get one ProductCategory
|
|
1190
|
+
* const productCategory = await prisma.productCategory.findFirstOrThrow({
|
|
1191
|
+
* where: {
|
|
1192
|
+
* // ... provide filter here
|
|
1193
|
+
* }
|
|
1194
|
+
* })
|
|
1195
|
+
*/
|
|
1079
1196
|
findFirstOrThrow<T extends ProductCategoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductCategoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1197
|
+
/**
|
|
1198
|
+
* Find zero or more ProductCategories that matches the filter.
|
|
1199
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1200
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1201
|
+
* @param {ProductCategoryFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1202
|
+
* @example
|
|
1203
|
+
* // Get all ProductCategories
|
|
1204
|
+
* const productCategories = await prisma.productCategory.findMany()
|
|
1205
|
+
*
|
|
1206
|
+
* // Get first 10 ProductCategories
|
|
1207
|
+
* const productCategories = await prisma.productCategory.findMany({ take: 10 })
|
|
1208
|
+
*
|
|
1209
|
+
* // Only select the `id`
|
|
1210
|
+
* const productCategoryWithIdOnly = await prisma.productCategory.findMany({ select: { id: true } })
|
|
1211
|
+
*
|
|
1212
|
+
*/
|
|
1080
1213
|
findMany<T extends ProductCategoryFindManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
1214
|
+
/**
|
|
1215
|
+
* Create a ProductCategory.
|
|
1216
|
+
* @param {ProductCategoryCreateArgs} args - Arguments to create a ProductCategory.
|
|
1217
|
+
* @example
|
|
1218
|
+
* // Create one ProductCategory
|
|
1219
|
+
* const ProductCategory = await prisma.productCategory.create({
|
|
1220
|
+
* data: {
|
|
1221
|
+
* // ... data to create a ProductCategory
|
|
1222
|
+
* }
|
|
1223
|
+
* })
|
|
1224
|
+
*
|
|
1225
|
+
*/
|
|
1081
1226
|
create<T extends ProductCategoryCreateArgs>(args: Prisma.SelectSubset<T, ProductCategoryCreateArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1227
|
+
/**
|
|
1228
|
+
* Create many ProductCategories.
|
|
1229
|
+
* @param {ProductCategoryCreateManyArgs} args - Arguments to create many ProductCategories.
|
|
1230
|
+
* @example
|
|
1231
|
+
* // Create many ProductCategories
|
|
1232
|
+
* const productCategory = await prisma.productCategory.createMany({
|
|
1233
|
+
* data: [
|
|
1234
|
+
* // ... provide data here
|
|
1235
|
+
* ]
|
|
1236
|
+
* })
|
|
1237
|
+
*
|
|
1238
|
+
*/
|
|
1082
1239
|
createMany<T extends ProductCategoryCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1240
|
+
/**
|
|
1241
|
+
* Create many ProductCategories and returns the data saved in the database.
|
|
1242
|
+
* @param {ProductCategoryCreateManyAndReturnArgs} args - Arguments to create many ProductCategories.
|
|
1243
|
+
* @example
|
|
1244
|
+
* // Create many ProductCategories
|
|
1245
|
+
* const productCategory = await prisma.productCategory.createManyAndReturn({
|
|
1246
|
+
* data: [
|
|
1247
|
+
* // ... provide data here
|
|
1248
|
+
* ]
|
|
1249
|
+
* })
|
|
1250
|
+
*
|
|
1251
|
+
* // Create many ProductCategories and only return the `id`
|
|
1252
|
+
* const productCategoryWithIdOnly = await prisma.productCategory.createManyAndReturn({
|
|
1253
|
+
* select: { id: true },
|
|
1254
|
+
* data: [
|
|
1255
|
+
* // ... provide data here
|
|
1256
|
+
* ]
|
|
1257
|
+
* })
|
|
1258
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1259
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1260
|
+
*
|
|
1261
|
+
*/
|
|
1083
1262
|
createManyAndReturn<T extends ProductCategoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProductCategoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
1263
|
+
/**
|
|
1264
|
+
* Delete a ProductCategory.
|
|
1265
|
+
* @param {ProductCategoryDeleteArgs} args - Arguments to delete one ProductCategory.
|
|
1266
|
+
* @example
|
|
1267
|
+
* // Delete one ProductCategory
|
|
1268
|
+
* const ProductCategory = await prisma.productCategory.delete({
|
|
1269
|
+
* where: {
|
|
1270
|
+
* // ... filter to delete one ProductCategory
|
|
1271
|
+
* }
|
|
1272
|
+
* })
|
|
1273
|
+
*
|
|
1274
|
+
*/
|
|
1084
1275
|
delete<T extends ProductCategoryDeleteArgs>(args: Prisma.SelectSubset<T, ProductCategoryDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1276
|
+
/**
|
|
1277
|
+
* Update one ProductCategory.
|
|
1278
|
+
* @param {ProductCategoryUpdateArgs} args - Arguments to update one ProductCategory.
|
|
1279
|
+
* @example
|
|
1280
|
+
* // Update one ProductCategory
|
|
1281
|
+
* const productCategory = await prisma.productCategory.update({
|
|
1282
|
+
* where: {
|
|
1283
|
+
* // ... provide filter here
|
|
1284
|
+
* },
|
|
1285
|
+
* data: {
|
|
1286
|
+
* // ... provide data here
|
|
1287
|
+
* }
|
|
1288
|
+
* })
|
|
1289
|
+
*
|
|
1290
|
+
*/
|
|
1085
1291
|
update<T extends ProductCategoryUpdateArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Delete zero or more ProductCategories.
|
|
1294
|
+
* @param {ProductCategoryDeleteManyArgs} args - Arguments to filter ProductCategories to delete.
|
|
1295
|
+
* @example
|
|
1296
|
+
* // Delete a few ProductCategories
|
|
1297
|
+
* const { count } = await prisma.productCategory.deleteMany({
|
|
1298
|
+
* where: {
|
|
1299
|
+
* // ... provide filter here
|
|
1300
|
+
* }
|
|
1301
|
+
* })
|
|
1302
|
+
*
|
|
1303
|
+
*/
|
|
1086
1304
|
deleteMany<T extends ProductCategoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1305
|
+
/**
|
|
1306
|
+
* Update zero or more ProductCategories.
|
|
1307
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1308
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1309
|
+
* @param {ProductCategoryUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1310
|
+
* @example
|
|
1311
|
+
* // Update many ProductCategories
|
|
1312
|
+
* const productCategory = await prisma.productCategory.updateMany({
|
|
1313
|
+
* where: {
|
|
1314
|
+
* // ... provide filter here
|
|
1315
|
+
* },
|
|
1316
|
+
* data: {
|
|
1317
|
+
* // ... provide data here
|
|
1318
|
+
* }
|
|
1319
|
+
* })
|
|
1320
|
+
*
|
|
1321
|
+
*/
|
|
1087
1322
|
updateMany<T extends ProductCategoryUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1323
|
+
/**
|
|
1324
|
+
* Update zero or more ProductCategories and returns the data updated in the database.
|
|
1325
|
+
* @param {ProductCategoryUpdateManyAndReturnArgs} args - Arguments to update many ProductCategories.
|
|
1326
|
+
* @example
|
|
1327
|
+
* // Update many ProductCategories
|
|
1328
|
+
* const productCategory = await prisma.productCategory.updateManyAndReturn({
|
|
1329
|
+
* where: {
|
|
1330
|
+
* // ... provide filter here
|
|
1331
|
+
* },
|
|
1332
|
+
* data: [
|
|
1333
|
+
* // ... provide data here
|
|
1334
|
+
* ]
|
|
1335
|
+
* })
|
|
1336
|
+
*
|
|
1337
|
+
* // Update zero or more ProductCategories and only return the `id`
|
|
1338
|
+
* const productCategoryWithIdOnly = await prisma.productCategory.updateManyAndReturn({
|
|
1339
|
+
* select: { id: true },
|
|
1340
|
+
* where: {
|
|
1341
|
+
* // ... provide filter here
|
|
1342
|
+
* },
|
|
1343
|
+
* data: [
|
|
1344
|
+
* // ... provide data here
|
|
1345
|
+
* ]
|
|
1346
|
+
* })
|
|
1347
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1348
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1349
|
+
*
|
|
1350
|
+
*/
|
|
1088
1351
|
updateManyAndReturn<T extends ProductCategoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
1352
|
+
/**
|
|
1353
|
+
* Create or update one ProductCategory.
|
|
1354
|
+
* @param {ProductCategoryUpsertArgs} args - Arguments to update or create a ProductCategory.
|
|
1355
|
+
* @example
|
|
1356
|
+
* // Update or create a ProductCategory
|
|
1357
|
+
* const productCategory = await prisma.productCategory.upsert({
|
|
1358
|
+
* create: {
|
|
1359
|
+
* // ... data to create a ProductCategory
|
|
1360
|
+
* },
|
|
1361
|
+
* update: {
|
|
1362
|
+
* // ... in case it already exists, update
|
|
1363
|
+
* },
|
|
1364
|
+
* where: {
|
|
1365
|
+
* // ... the filter for the ProductCategory we want to update
|
|
1366
|
+
* }
|
|
1367
|
+
* })
|
|
1368
|
+
*/
|
|
1089
1369
|
upsert<T extends ProductCategoryUpsertArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1370
|
+
/**
|
|
1371
|
+
* Count the number of ProductCategories.
|
|
1372
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1373
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1374
|
+
* @param {ProductCategoryCountArgs} args - Arguments to filter ProductCategories to count.
|
|
1375
|
+
* @example
|
|
1376
|
+
* // Count the number of ProductCategories
|
|
1377
|
+
* const count = await prisma.productCategory.count({
|
|
1378
|
+
* where: {
|
|
1379
|
+
* // ... the filter for the ProductCategories we want to count
|
|
1380
|
+
* }
|
|
1381
|
+
* })
|
|
1382
|
+
**/
|
|
1090
1383
|
count<T extends ProductCategoryCountArgs>(args?: Prisma.Subset<T, ProductCategoryCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProductCategoryCountAggregateOutputType> : number>;
|
|
1384
|
+
/**
|
|
1385
|
+
* Allows you to perform aggregations operations on a ProductCategory.
|
|
1386
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1387
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1388
|
+
* @param {ProductCategoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1389
|
+
* @example
|
|
1390
|
+
* // Ordered by age ascending
|
|
1391
|
+
* // Where email contains prisma.io
|
|
1392
|
+
* // Limited to the 10 users
|
|
1393
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1394
|
+
* _avg: {
|
|
1395
|
+
* age: true,
|
|
1396
|
+
* },
|
|
1397
|
+
* where: {
|
|
1398
|
+
* email: {
|
|
1399
|
+
* contains: "prisma.io",
|
|
1400
|
+
* },
|
|
1401
|
+
* },
|
|
1402
|
+
* orderBy: {
|
|
1403
|
+
* age: "asc",
|
|
1404
|
+
* },
|
|
1405
|
+
* take: 10,
|
|
1406
|
+
* })
|
|
1407
|
+
**/
|
|
1091
1408
|
aggregate<T extends ProductCategoryAggregateArgs>(args: Prisma.Subset<T, ProductCategoryAggregateArgs>): Prisma.PrismaPromise<GetProductCategoryAggregateType<T>>;
|
|
1409
|
+
/**
|
|
1410
|
+
* Group by ProductCategory.
|
|
1411
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1412
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1413
|
+
* @param {ProductCategoryGroupByArgs} args - Group by arguments.
|
|
1414
|
+
* @example
|
|
1415
|
+
* // Group by city, order by createdAt, get count
|
|
1416
|
+
* const result = await prisma.user.groupBy({
|
|
1417
|
+
* by: ['city', 'createdAt'],
|
|
1418
|
+
* orderBy: {
|
|
1419
|
+
* createdAt: true
|
|
1420
|
+
* },
|
|
1421
|
+
* _count: {
|
|
1422
|
+
* _all: true
|
|
1423
|
+
* },
|
|
1424
|
+
* })
|
|
1425
|
+
*
|
|
1426
|
+
**/
|
|
1092
1427
|
groupBy<T extends ProductCategoryGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1093
1428
|
orderBy: ProductCategoryGroupByArgs['orderBy'];
|
|
1094
1429
|
} : {
|
|
@@ -1107,18 +1442,47 @@ export interface ProductCategoryDelegate<ExtArgs extends runtime.Types.Extension
|
|
|
1107
1442
|
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1108
1443
|
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1109
1444
|
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ProductCategoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductCategoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1445
|
+
/**
|
|
1446
|
+
* Fields of the ProductCategory model
|
|
1447
|
+
*/
|
|
1110
1448
|
readonly fields: ProductCategoryFieldRefs;
|
|
1111
1449
|
}
|
|
1450
|
+
/**
|
|
1451
|
+
* The delegate class that acts as a "Promise-like" for ProductCategory.
|
|
1452
|
+
* Why is this prefixed with `Prisma__`?
|
|
1453
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1454
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1455
|
+
*/
|
|
1112
1456
|
export interface Prisma__ProductCategoryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1113
1457
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1114
1458
|
organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1115
1459
|
image<T extends Prisma.ProductCategory$imageArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductCategory$imageArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1116
1460
|
translations<T extends Prisma.ProductCategory$translationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductCategory$translationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1117
1461
|
products<T extends Prisma.ProductCategory$productsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductCategory$productsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1462
|
+
/**
|
|
1463
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1464
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1465
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1466
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1467
|
+
*/
|
|
1118
1468
|
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>;
|
|
1469
|
+
/**
|
|
1470
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1471
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1472
|
+
* @returns A Promise for the completion of the callback.
|
|
1473
|
+
*/
|
|
1119
1474
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1475
|
+
/**
|
|
1476
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1477
|
+
* resolved value cannot be modified from the callback.
|
|
1478
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1479
|
+
* @returns A Promise for the completion of the callback.
|
|
1480
|
+
*/
|
|
1120
1481
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1121
1482
|
}
|
|
1483
|
+
/**
|
|
1484
|
+
* Fields of the ProductCategory model
|
|
1485
|
+
*/
|
|
1122
1486
|
export interface ProductCategoryFieldRefs {
|
|
1123
1487
|
readonly id: Prisma.FieldRef<"ProductCategory", 'String'>;
|
|
1124
1488
|
readonly slug: Prisma.FieldRef<"ProductCategory", 'String'>;
|
|
@@ -1134,115 +1498,421 @@ export interface ProductCategoryFieldRefs {
|
|
|
1134
1498
|
readonly publishedAt: Prisma.FieldRef<"ProductCategory", 'DateTime'>;
|
|
1135
1499
|
readonly publishedBy: Prisma.FieldRef<"ProductCategory", 'String'>;
|
|
1136
1500
|
}
|
|
1501
|
+
/**
|
|
1502
|
+
* ProductCategory findUnique
|
|
1503
|
+
*/
|
|
1137
1504
|
export type ProductCategoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1505
|
+
/**
|
|
1506
|
+
* Select specific fields to fetch from the ProductCategory
|
|
1507
|
+
*/
|
|
1138
1508
|
select?: Prisma.ProductCategorySelect<ExtArgs> | null;
|
|
1509
|
+
/**
|
|
1510
|
+
* Omit specific fields from the ProductCategory
|
|
1511
|
+
*/
|
|
1139
1512
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
1513
|
+
/**
|
|
1514
|
+
* Choose, which related nodes to fetch as well
|
|
1515
|
+
*/
|
|
1140
1516
|
include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
|
|
1517
|
+
/**
|
|
1518
|
+
* Filter, which ProductCategory to fetch.
|
|
1519
|
+
*/
|
|
1141
1520
|
where: Prisma.ProductCategoryWhereUniqueInput;
|
|
1142
1521
|
};
|
|
1522
|
+
/**
|
|
1523
|
+
* ProductCategory findUniqueOrThrow
|
|
1524
|
+
*/
|
|
1143
1525
|
export type ProductCategoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1526
|
+
/**
|
|
1527
|
+
* Select specific fields to fetch from the ProductCategory
|
|
1528
|
+
*/
|
|
1144
1529
|
select?: Prisma.ProductCategorySelect<ExtArgs> | null;
|
|
1530
|
+
/**
|
|
1531
|
+
* Omit specific fields from the ProductCategory
|
|
1532
|
+
*/
|
|
1145
1533
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
1534
|
+
/**
|
|
1535
|
+
* Choose, which related nodes to fetch as well
|
|
1536
|
+
*/
|
|
1146
1537
|
include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
|
|
1538
|
+
/**
|
|
1539
|
+
* Filter, which ProductCategory to fetch.
|
|
1540
|
+
*/
|
|
1147
1541
|
where: Prisma.ProductCategoryWhereUniqueInput;
|
|
1148
1542
|
};
|
|
1543
|
+
/**
|
|
1544
|
+
* ProductCategory findFirst
|
|
1545
|
+
*/
|
|
1149
1546
|
export type ProductCategoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1547
|
+
/**
|
|
1548
|
+
* Select specific fields to fetch from the ProductCategory
|
|
1549
|
+
*/
|
|
1150
1550
|
select?: Prisma.ProductCategorySelect<ExtArgs> | null;
|
|
1551
|
+
/**
|
|
1552
|
+
* Omit specific fields from the ProductCategory
|
|
1553
|
+
*/
|
|
1151
1554
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
1555
|
+
/**
|
|
1556
|
+
* Choose, which related nodes to fetch as well
|
|
1557
|
+
*/
|
|
1152
1558
|
include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
|
|
1559
|
+
/**
|
|
1560
|
+
* Filter, which ProductCategory to fetch.
|
|
1561
|
+
*/
|
|
1153
1562
|
where?: Prisma.ProductCategoryWhereInput;
|
|
1563
|
+
/**
|
|
1564
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1565
|
+
*
|
|
1566
|
+
* Determine the order of ProductCategories to fetch.
|
|
1567
|
+
*/
|
|
1154
1568
|
orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
|
|
1569
|
+
/**
|
|
1570
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1571
|
+
*
|
|
1572
|
+
* Sets the position for searching for ProductCategories.
|
|
1573
|
+
*/
|
|
1155
1574
|
cursor?: Prisma.ProductCategoryWhereUniqueInput;
|
|
1575
|
+
/**
|
|
1576
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1577
|
+
*
|
|
1578
|
+
* Take `±n` ProductCategories from the position of the cursor.
|
|
1579
|
+
*/
|
|
1156
1580
|
take?: number;
|
|
1581
|
+
/**
|
|
1582
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1583
|
+
*
|
|
1584
|
+
* Skip the first `n` ProductCategories.
|
|
1585
|
+
*/
|
|
1157
1586
|
skip?: number;
|
|
1587
|
+
/**
|
|
1588
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1589
|
+
*
|
|
1590
|
+
* Filter by unique combinations of ProductCategories.
|
|
1591
|
+
*/
|
|
1158
1592
|
distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[];
|
|
1159
1593
|
};
|
|
1594
|
+
/**
|
|
1595
|
+
* ProductCategory findFirstOrThrow
|
|
1596
|
+
*/
|
|
1160
1597
|
export type ProductCategoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1598
|
+
/**
|
|
1599
|
+
* Select specific fields to fetch from the ProductCategory
|
|
1600
|
+
*/
|
|
1161
1601
|
select?: Prisma.ProductCategorySelect<ExtArgs> | null;
|
|
1602
|
+
/**
|
|
1603
|
+
* Omit specific fields from the ProductCategory
|
|
1604
|
+
*/
|
|
1162
1605
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
1606
|
+
/**
|
|
1607
|
+
* Choose, which related nodes to fetch as well
|
|
1608
|
+
*/
|
|
1163
1609
|
include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
|
|
1610
|
+
/**
|
|
1611
|
+
* Filter, which ProductCategory to fetch.
|
|
1612
|
+
*/
|
|
1164
1613
|
where?: Prisma.ProductCategoryWhereInput;
|
|
1614
|
+
/**
|
|
1615
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1616
|
+
*
|
|
1617
|
+
* Determine the order of ProductCategories to fetch.
|
|
1618
|
+
*/
|
|
1165
1619
|
orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
|
|
1620
|
+
/**
|
|
1621
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1622
|
+
*
|
|
1623
|
+
* Sets the position for searching for ProductCategories.
|
|
1624
|
+
*/
|
|
1166
1625
|
cursor?: Prisma.ProductCategoryWhereUniqueInput;
|
|
1626
|
+
/**
|
|
1627
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1628
|
+
*
|
|
1629
|
+
* Take `±n` ProductCategories from the position of the cursor.
|
|
1630
|
+
*/
|
|
1167
1631
|
take?: number;
|
|
1632
|
+
/**
|
|
1633
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1634
|
+
*
|
|
1635
|
+
* Skip the first `n` ProductCategories.
|
|
1636
|
+
*/
|
|
1168
1637
|
skip?: number;
|
|
1638
|
+
/**
|
|
1639
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1640
|
+
*
|
|
1641
|
+
* Filter by unique combinations of ProductCategories.
|
|
1642
|
+
*/
|
|
1169
1643
|
distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[];
|
|
1170
1644
|
};
|
|
1645
|
+
/**
|
|
1646
|
+
* ProductCategory findMany
|
|
1647
|
+
*/
|
|
1171
1648
|
export type ProductCategoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1649
|
+
/**
|
|
1650
|
+
* Select specific fields to fetch from the ProductCategory
|
|
1651
|
+
*/
|
|
1172
1652
|
select?: Prisma.ProductCategorySelect<ExtArgs> | null;
|
|
1653
|
+
/**
|
|
1654
|
+
* Omit specific fields from the ProductCategory
|
|
1655
|
+
*/
|
|
1173
1656
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
1657
|
+
/**
|
|
1658
|
+
* Choose, which related nodes to fetch as well
|
|
1659
|
+
*/
|
|
1174
1660
|
include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
|
|
1661
|
+
/**
|
|
1662
|
+
* Filter, which ProductCategories to fetch.
|
|
1663
|
+
*/
|
|
1175
1664
|
where?: Prisma.ProductCategoryWhereInput;
|
|
1665
|
+
/**
|
|
1666
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1667
|
+
*
|
|
1668
|
+
* Determine the order of ProductCategories to fetch.
|
|
1669
|
+
*/
|
|
1176
1670
|
orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
|
|
1671
|
+
/**
|
|
1672
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1673
|
+
*
|
|
1674
|
+
* Sets the position for listing ProductCategories.
|
|
1675
|
+
*/
|
|
1177
1676
|
cursor?: Prisma.ProductCategoryWhereUniqueInput;
|
|
1677
|
+
/**
|
|
1678
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1679
|
+
*
|
|
1680
|
+
* Take `±n` ProductCategories from the position of the cursor.
|
|
1681
|
+
*/
|
|
1178
1682
|
take?: number;
|
|
1683
|
+
/**
|
|
1684
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1685
|
+
*
|
|
1686
|
+
* Skip the first `n` ProductCategories.
|
|
1687
|
+
*/
|
|
1179
1688
|
skip?: number;
|
|
1689
|
+
/**
|
|
1690
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1691
|
+
*
|
|
1692
|
+
* Filter by unique combinations of ProductCategories.
|
|
1693
|
+
*/
|
|
1180
1694
|
distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[];
|
|
1181
1695
|
};
|
|
1696
|
+
/**
|
|
1697
|
+
* ProductCategory create
|
|
1698
|
+
*/
|
|
1182
1699
|
export type ProductCategoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1700
|
+
/**
|
|
1701
|
+
* Select specific fields to fetch from the ProductCategory
|
|
1702
|
+
*/
|
|
1183
1703
|
select?: Prisma.ProductCategorySelect<ExtArgs> | null;
|
|
1704
|
+
/**
|
|
1705
|
+
* Omit specific fields from the ProductCategory
|
|
1706
|
+
*/
|
|
1184
1707
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
1708
|
+
/**
|
|
1709
|
+
* Choose, which related nodes to fetch as well
|
|
1710
|
+
*/
|
|
1185
1711
|
include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
|
|
1712
|
+
/**
|
|
1713
|
+
* The data needed to create a ProductCategory.
|
|
1714
|
+
*/
|
|
1186
1715
|
data: Prisma.XOR<Prisma.ProductCategoryCreateInput, Prisma.ProductCategoryUncheckedCreateInput>;
|
|
1187
1716
|
};
|
|
1717
|
+
/**
|
|
1718
|
+
* ProductCategory createMany
|
|
1719
|
+
*/
|
|
1188
1720
|
export type ProductCategoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1721
|
+
/**
|
|
1722
|
+
* The data used to create many ProductCategories.
|
|
1723
|
+
*/
|
|
1189
1724
|
data: Prisma.ProductCategoryCreateManyInput | Prisma.ProductCategoryCreateManyInput[];
|
|
1190
1725
|
skipDuplicates?: boolean;
|
|
1191
1726
|
};
|
|
1727
|
+
/**
|
|
1728
|
+
* ProductCategory createManyAndReturn
|
|
1729
|
+
*/
|
|
1192
1730
|
export type ProductCategoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1731
|
+
/**
|
|
1732
|
+
* Select specific fields to fetch from the ProductCategory
|
|
1733
|
+
*/
|
|
1193
1734
|
select?: Prisma.ProductCategorySelectCreateManyAndReturn<ExtArgs> | null;
|
|
1735
|
+
/**
|
|
1736
|
+
* Omit specific fields from the ProductCategory
|
|
1737
|
+
*/
|
|
1194
1738
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
1739
|
+
/**
|
|
1740
|
+
* The data used to create many ProductCategories.
|
|
1741
|
+
*/
|
|
1195
1742
|
data: Prisma.ProductCategoryCreateManyInput | Prisma.ProductCategoryCreateManyInput[];
|
|
1196
1743
|
skipDuplicates?: boolean;
|
|
1744
|
+
/**
|
|
1745
|
+
* Choose, which related nodes to fetch as well
|
|
1746
|
+
*/
|
|
1197
1747
|
include?: Prisma.ProductCategoryIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1198
1748
|
};
|
|
1749
|
+
/**
|
|
1750
|
+
* ProductCategory update
|
|
1751
|
+
*/
|
|
1199
1752
|
export type ProductCategoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1753
|
+
/**
|
|
1754
|
+
* Select specific fields to fetch from the ProductCategory
|
|
1755
|
+
*/
|
|
1200
1756
|
select?: Prisma.ProductCategorySelect<ExtArgs> | null;
|
|
1757
|
+
/**
|
|
1758
|
+
* Omit specific fields from the ProductCategory
|
|
1759
|
+
*/
|
|
1201
1760
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
1761
|
+
/**
|
|
1762
|
+
* Choose, which related nodes to fetch as well
|
|
1763
|
+
*/
|
|
1202
1764
|
include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
|
|
1765
|
+
/**
|
|
1766
|
+
* The data needed to update a ProductCategory.
|
|
1767
|
+
*/
|
|
1203
1768
|
data: Prisma.XOR<Prisma.ProductCategoryUpdateInput, Prisma.ProductCategoryUncheckedUpdateInput>;
|
|
1769
|
+
/**
|
|
1770
|
+
* Choose, which ProductCategory to update.
|
|
1771
|
+
*/
|
|
1204
1772
|
where: Prisma.ProductCategoryWhereUniqueInput;
|
|
1205
1773
|
};
|
|
1774
|
+
/**
|
|
1775
|
+
* ProductCategory updateMany
|
|
1776
|
+
*/
|
|
1206
1777
|
export type ProductCategoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1778
|
+
/**
|
|
1779
|
+
* The data used to update ProductCategories.
|
|
1780
|
+
*/
|
|
1207
1781
|
data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyInput>;
|
|
1782
|
+
/**
|
|
1783
|
+
* Filter which ProductCategories to update
|
|
1784
|
+
*/
|
|
1208
1785
|
where?: Prisma.ProductCategoryWhereInput;
|
|
1786
|
+
/**
|
|
1787
|
+
* Limit how many ProductCategories to update.
|
|
1788
|
+
*/
|
|
1209
1789
|
limit?: number;
|
|
1210
1790
|
};
|
|
1791
|
+
/**
|
|
1792
|
+
* ProductCategory updateManyAndReturn
|
|
1793
|
+
*/
|
|
1211
1794
|
export type ProductCategoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1795
|
+
/**
|
|
1796
|
+
* Select specific fields to fetch from the ProductCategory
|
|
1797
|
+
*/
|
|
1212
1798
|
select?: Prisma.ProductCategorySelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1799
|
+
/**
|
|
1800
|
+
* Omit specific fields from the ProductCategory
|
|
1801
|
+
*/
|
|
1213
1802
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
1803
|
+
/**
|
|
1804
|
+
* The data used to update ProductCategories.
|
|
1805
|
+
*/
|
|
1214
1806
|
data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyInput>;
|
|
1807
|
+
/**
|
|
1808
|
+
* Filter which ProductCategories to update
|
|
1809
|
+
*/
|
|
1215
1810
|
where?: Prisma.ProductCategoryWhereInput;
|
|
1811
|
+
/**
|
|
1812
|
+
* Limit how many ProductCategories to update.
|
|
1813
|
+
*/
|
|
1216
1814
|
limit?: number;
|
|
1815
|
+
/**
|
|
1816
|
+
* Choose, which related nodes to fetch as well
|
|
1817
|
+
*/
|
|
1217
1818
|
include?: Prisma.ProductCategoryIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1218
1819
|
};
|
|
1820
|
+
/**
|
|
1821
|
+
* ProductCategory upsert
|
|
1822
|
+
*/
|
|
1219
1823
|
export type ProductCategoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1824
|
+
/**
|
|
1825
|
+
* Select specific fields to fetch from the ProductCategory
|
|
1826
|
+
*/
|
|
1220
1827
|
select?: Prisma.ProductCategorySelect<ExtArgs> | null;
|
|
1828
|
+
/**
|
|
1829
|
+
* Omit specific fields from the ProductCategory
|
|
1830
|
+
*/
|
|
1221
1831
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
1832
|
+
/**
|
|
1833
|
+
* Choose, which related nodes to fetch as well
|
|
1834
|
+
*/
|
|
1222
1835
|
include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
|
|
1836
|
+
/**
|
|
1837
|
+
* The filter to search for the ProductCategory to update in case it exists.
|
|
1838
|
+
*/
|
|
1223
1839
|
where: Prisma.ProductCategoryWhereUniqueInput;
|
|
1840
|
+
/**
|
|
1841
|
+
* In case the ProductCategory found by the `where` argument doesn't exist, create a new ProductCategory with this data.
|
|
1842
|
+
*/
|
|
1224
1843
|
create: Prisma.XOR<Prisma.ProductCategoryCreateInput, Prisma.ProductCategoryUncheckedCreateInput>;
|
|
1844
|
+
/**
|
|
1845
|
+
* In case the ProductCategory was found with the provided `where` argument, update it with this data.
|
|
1846
|
+
*/
|
|
1225
1847
|
update: Prisma.XOR<Prisma.ProductCategoryUpdateInput, Prisma.ProductCategoryUncheckedUpdateInput>;
|
|
1226
1848
|
};
|
|
1849
|
+
/**
|
|
1850
|
+
* ProductCategory delete
|
|
1851
|
+
*/
|
|
1227
1852
|
export type ProductCategoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1853
|
+
/**
|
|
1854
|
+
* Select specific fields to fetch from the ProductCategory
|
|
1855
|
+
*/
|
|
1228
1856
|
select?: Prisma.ProductCategorySelect<ExtArgs> | null;
|
|
1857
|
+
/**
|
|
1858
|
+
* Omit specific fields from the ProductCategory
|
|
1859
|
+
*/
|
|
1229
1860
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
1861
|
+
/**
|
|
1862
|
+
* Choose, which related nodes to fetch as well
|
|
1863
|
+
*/
|
|
1230
1864
|
include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
|
|
1865
|
+
/**
|
|
1866
|
+
* Filter which ProductCategory to delete.
|
|
1867
|
+
*/
|
|
1231
1868
|
where: Prisma.ProductCategoryWhereUniqueInput;
|
|
1232
1869
|
};
|
|
1870
|
+
/**
|
|
1871
|
+
* ProductCategory deleteMany
|
|
1872
|
+
*/
|
|
1233
1873
|
export type ProductCategoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1874
|
+
/**
|
|
1875
|
+
* Filter which ProductCategories to delete
|
|
1876
|
+
*/
|
|
1234
1877
|
where?: Prisma.ProductCategoryWhereInput;
|
|
1878
|
+
/**
|
|
1879
|
+
* Limit how many ProductCategories to delete.
|
|
1880
|
+
*/
|
|
1235
1881
|
limit?: number;
|
|
1236
1882
|
};
|
|
1883
|
+
/**
|
|
1884
|
+
* ProductCategory.image
|
|
1885
|
+
*/
|
|
1237
1886
|
export type ProductCategory$imageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1887
|
+
/**
|
|
1888
|
+
* Select specific fields to fetch from the File
|
|
1889
|
+
*/
|
|
1238
1890
|
select?: Prisma.FileSelect<ExtArgs> | null;
|
|
1891
|
+
/**
|
|
1892
|
+
* Omit specific fields from the File
|
|
1893
|
+
*/
|
|
1239
1894
|
omit?: Prisma.FileOmit<ExtArgs> | null;
|
|
1895
|
+
/**
|
|
1896
|
+
* Choose, which related nodes to fetch as well
|
|
1897
|
+
*/
|
|
1240
1898
|
include?: Prisma.FileInclude<ExtArgs> | null;
|
|
1241
1899
|
where?: Prisma.FileWhereInput;
|
|
1242
1900
|
};
|
|
1901
|
+
/**
|
|
1902
|
+
* ProductCategory.translations
|
|
1903
|
+
*/
|
|
1243
1904
|
export type ProductCategory$translationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1905
|
+
/**
|
|
1906
|
+
* Select specific fields to fetch from the ProductCategoryTranslation
|
|
1907
|
+
*/
|
|
1244
1908
|
select?: Prisma.ProductCategoryTranslationSelect<ExtArgs> | null;
|
|
1909
|
+
/**
|
|
1910
|
+
* Omit specific fields from the ProductCategoryTranslation
|
|
1911
|
+
*/
|
|
1245
1912
|
omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
|
|
1913
|
+
/**
|
|
1914
|
+
* Choose, which related nodes to fetch as well
|
|
1915
|
+
*/
|
|
1246
1916
|
include?: Prisma.ProductCategoryTranslationInclude<ExtArgs> | null;
|
|
1247
1917
|
where?: Prisma.ProductCategoryTranslationWhereInput;
|
|
1248
1918
|
orderBy?: Prisma.ProductCategoryTranslationOrderByWithRelationInput | Prisma.ProductCategoryTranslationOrderByWithRelationInput[];
|
|
@@ -1251,9 +1921,21 @@ export type ProductCategory$translationsArgs<ExtArgs extends runtime.Types.Exten
|
|
|
1251
1921
|
skip?: number;
|
|
1252
1922
|
distinct?: Prisma.ProductCategoryTranslationScalarFieldEnum | Prisma.ProductCategoryTranslationScalarFieldEnum[];
|
|
1253
1923
|
};
|
|
1924
|
+
/**
|
|
1925
|
+
* ProductCategory.products
|
|
1926
|
+
*/
|
|
1254
1927
|
export type ProductCategory$productsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1928
|
+
/**
|
|
1929
|
+
* Select specific fields to fetch from the Product
|
|
1930
|
+
*/
|
|
1255
1931
|
select?: Prisma.ProductSelect<ExtArgs> | null;
|
|
1932
|
+
/**
|
|
1933
|
+
* Omit specific fields from the Product
|
|
1934
|
+
*/
|
|
1256
1935
|
omit?: Prisma.ProductOmit<ExtArgs> | null;
|
|
1936
|
+
/**
|
|
1937
|
+
* Choose, which related nodes to fetch as well
|
|
1938
|
+
*/
|
|
1257
1939
|
include?: Prisma.ProductInclude<ExtArgs> | null;
|
|
1258
1940
|
where?: Prisma.ProductWhereInput;
|
|
1259
1941
|
orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
|
|
@@ -1262,9 +1944,21 @@ export type ProductCategory$productsArgs<ExtArgs extends runtime.Types.Extension
|
|
|
1262
1944
|
skip?: number;
|
|
1263
1945
|
distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[];
|
|
1264
1946
|
};
|
|
1947
|
+
/**
|
|
1948
|
+
* ProductCategory without action
|
|
1949
|
+
*/
|
|
1265
1950
|
export type ProductCategoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1951
|
+
/**
|
|
1952
|
+
* Select specific fields to fetch from the ProductCategory
|
|
1953
|
+
*/
|
|
1266
1954
|
select?: Prisma.ProductCategorySelect<ExtArgs> | null;
|
|
1955
|
+
/**
|
|
1956
|
+
* Omit specific fields from the ProductCategory
|
|
1957
|
+
*/
|
|
1267
1958
|
omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
|
|
1959
|
+
/**
|
|
1960
|
+
* Choose, which related nodes to fetch as well
|
|
1961
|
+
*/
|
|
1268
1962
|
include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
|
|
1269
1963
|
};
|
|
1270
1964
|
export {};
|