@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 ShippingMethod
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
3
7
|
export type ShippingMethodModel = runtime.Types.Result.DefaultSelection<Prisma.$ShippingMethodPayload>;
|
|
4
8
|
export type AggregateShippingMethod = {
|
|
5
9
|
_count: ShippingMethodCountAggregateOutputType | null;
|
|
@@ -105,13 +109,51 @@ export type ShippingMethodCountAggregateInputType = {
|
|
|
105
109
|
_all?: true;
|
|
106
110
|
};
|
|
107
111
|
export type ShippingMethodAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
112
|
+
/**
|
|
113
|
+
* Filter which ShippingMethod to aggregate.
|
|
114
|
+
*/
|
|
108
115
|
where?: Prisma.ShippingMethodWhereInput;
|
|
116
|
+
/**
|
|
117
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
118
|
+
*
|
|
119
|
+
* Determine the order of ShippingMethods to fetch.
|
|
120
|
+
*/
|
|
109
121
|
orderBy?: Prisma.ShippingMethodOrderByWithRelationInput | Prisma.ShippingMethodOrderByWithRelationInput[];
|
|
122
|
+
/**
|
|
123
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
124
|
+
*
|
|
125
|
+
* Sets the start position
|
|
126
|
+
*/
|
|
110
127
|
cursor?: Prisma.ShippingMethodWhereUniqueInput;
|
|
128
|
+
/**
|
|
129
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
130
|
+
*
|
|
131
|
+
* Take `±n` ShippingMethods from the position of the cursor.
|
|
132
|
+
*/
|
|
111
133
|
take?: number;
|
|
134
|
+
/**
|
|
135
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
136
|
+
*
|
|
137
|
+
* Skip the first `n` ShippingMethods.
|
|
138
|
+
*/
|
|
112
139
|
skip?: number;
|
|
140
|
+
/**
|
|
141
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
142
|
+
*
|
|
143
|
+
* Count returned ShippingMethods
|
|
144
|
+
**/
|
|
113
145
|
_count?: true | ShippingMethodCountAggregateInputType;
|
|
146
|
+
/**
|
|
147
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
148
|
+
*
|
|
149
|
+
* Select which fields to find the minimum value
|
|
150
|
+
**/
|
|
114
151
|
_min?: ShippingMethodMinAggregateInputType;
|
|
152
|
+
/**
|
|
153
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
154
|
+
*
|
|
155
|
+
* Select which fields to find the maximum value
|
|
156
|
+
**/
|
|
115
157
|
_max?: ShippingMethodMaxAggregateInputType;
|
|
116
158
|
};
|
|
117
159
|
export type GetShippingMethodAggregateType<T extends ShippingMethodAggregateArgs> = {
|
|
@@ -909,6 +951,9 @@ export type ShippingMethodUncheckedUpdateManyWithoutOrganizationInput = {
|
|
|
909
951
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
910
952
|
updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
911
953
|
};
|
|
954
|
+
/**
|
|
955
|
+
* Count Type ShippingMethodCountOutputType
|
|
956
|
+
*/
|
|
912
957
|
export type ShippingMethodCountOutputType = {
|
|
913
958
|
shippingZones: number;
|
|
914
959
|
orders: number;
|
|
@@ -917,12 +962,24 @@ export type ShippingMethodCountOutputTypeSelect<ExtArgs extends runtime.Types.Ex
|
|
|
917
962
|
shippingZones?: boolean | ShippingMethodCountOutputTypeCountShippingZonesArgs;
|
|
918
963
|
orders?: boolean | ShippingMethodCountOutputTypeCountOrdersArgs;
|
|
919
964
|
};
|
|
965
|
+
/**
|
|
966
|
+
* ShippingMethodCountOutputType without action
|
|
967
|
+
*/
|
|
920
968
|
export type ShippingMethodCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
969
|
+
/**
|
|
970
|
+
* Select specific fields to fetch from the ShippingMethodCountOutputType
|
|
971
|
+
*/
|
|
921
972
|
select?: Prisma.ShippingMethodCountOutputTypeSelect<ExtArgs> | null;
|
|
922
973
|
};
|
|
974
|
+
/**
|
|
975
|
+
* ShippingMethodCountOutputType without action
|
|
976
|
+
*/
|
|
923
977
|
export type ShippingMethodCountOutputTypeCountShippingZonesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
924
978
|
where?: Prisma.ShippingZoneWhereInput;
|
|
925
979
|
};
|
|
980
|
+
/**
|
|
981
|
+
* ShippingMethodCountOutputType without action
|
|
982
|
+
*/
|
|
926
983
|
export type ShippingMethodCountOutputTypeCountOrdersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
927
984
|
where?: Prisma.OrderWhereInput;
|
|
928
985
|
};
|
|
@@ -1052,22 +1109,290 @@ export interface ShippingMethodDelegate<ExtArgs extends runtime.Types.Extensions
|
|
|
1052
1109
|
name: 'ShippingMethod';
|
|
1053
1110
|
};
|
|
1054
1111
|
};
|
|
1112
|
+
/**
|
|
1113
|
+
* Find zero or one ShippingMethod that matches the filter.
|
|
1114
|
+
* @param {ShippingMethodFindUniqueArgs} args - Arguments to find a ShippingMethod
|
|
1115
|
+
* @example
|
|
1116
|
+
* // Get one ShippingMethod
|
|
1117
|
+
* const shippingMethod = await prisma.shippingMethod.findUnique({
|
|
1118
|
+
* where: {
|
|
1119
|
+
* // ... provide filter here
|
|
1120
|
+
* }
|
|
1121
|
+
* })
|
|
1122
|
+
*/
|
|
1055
1123
|
findUnique<T extends ShippingMethodFindUniqueArgs>(args: Prisma.SelectSubset<T, ShippingMethodFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ShippingMethodClient<runtime.Types.Result.GetResult<Prisma.$ShippingMethodPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1124
|
+
/**
|
|
1125
|
+
* Find one ShippingMethod that matches the filter or throw an error with `error.code='P2025'`
|
|
1126
|
+
* if no matches were found.
|
|
1127
|
+
* @param {ShippingMethodFindUniqueOrThrowArgs} args - Arguments to find a ShippingMethod
|
|
1128
|
+
* @example
|
|
1129
|
+
* // Get one ShippingMethod
|
|
1130
|
+
* const shippingMethod = await prisma.shippingMethod.findUniqueOrThrow({
|
|
1131
|
+
* where: {
|
|
1132
|
+
* // ... provide filter here
|
|
1133
|
+
* }
|
|
1134
|
+
* })
|
|
1135
|
+
*/
|
|
1056
1136
|
findUniqueOrThrow<T extends ShippingMethodFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ShippingMethodFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShippingMethodClient<runtime.Types.Result.GetResult<Prisma.$ShippingMethodPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1137
|
+
/**
|
|
1138
|
+
* Find the first ShippingMethod that matches the filter.
|
|
1139
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1140
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1141
|
+
* @param {ShippingMethodFindFirstArgs} args - Arguments to find a ShippingMethod
|
|
1142
|
+
* @example
|
|
1143
|
+
* // Get one ShippingMethod
|
|
1144
|
+
* const shippingMethod = await prisma.shippingMethod.findFirst({
|
|
1145
|
+
* where: {
|
|
1146
|
+
* // ... provide filter here
|
|
1147
|
+
* }
|
|
1148
|
+
* })
|
|
1149
|
+
*/
|
|
1057
1150
|
findFirst<T extends ShippingMethodFindFirstArgs>(args?: Prisma.SelectSubset<T, ShippingMethodFindFirstArgs<ExtArgs>>): Prisma.Prisma__ShippingMethodClient<runtime.Types.Result.GetResult<Prisma.$ShippingMethodPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1151
|
+
/**
|
|
1152
|
+
* Find the first ShippingMethod that matches the filter or
|
|
1153
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1154
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1155
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1156
|
+
* @param {ShippingMethodFindFirstOrThrowArgs} args - Arguments to find a ShippingMethod
|
|
1157
|
+
* @example
|
|
1158
|
+
* // Get one ShippingMethod
|
|
1159
|
+
* const shippingMethod = await prisma.shippingMethod.findFirstOrThrow({
|
|
1160
|
+
* where: {
|
|
1161
|
+
* // ... provide filter here
|
|
1162
|
+
* }
|
|
1163
|
+
* })
|
|
1164
|
+
*/
|
|
1058
1165
|
findFirstOrThrow<T extends ShippingMethodFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ShippingMethodFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShippingMethodClient<runtime.Types.Result.GetResult<Prisma.$ShippingMethodPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1166
|
+
/**
|
|
1167
|
+
* Find zero or more ShippingMethods that matches the filter.
|
|
1168
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1169
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1170
|
+
* @param {ShippingMethodFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1171
|
+
* @example
|
|
1172
|
+
* // Get all ShippingMethods
|
|
1173
|
+
* const shippingMethods = await prisma.shippingMethod.findMany()
|
|
1174
|
+
*
|
|
1175
|
+
* // Get first 10 ShippingMethods
|
|
1176
|
+
* const shippingMethods = await prisma.shippingMethod.findMany({ take: 10 })
|
|
1177
|
+
*
|
|
1178
|
+
* // Only select the `id`
|
|
1179
|
+
* const shippingMethodWithIdOnly = await prisma.shippingMethod.findMany({ select: { id: true } })
|
|
1180
|
+
*
|
|
1181
|
+
*/
|
|
1059
1182
|
findMany<T extends ShippingMethodFindManyArgs>(args?: Prisma.SelectSubset<T, ShippingMethodFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShippingMethodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
1183
|
+
/**
|
|
1184
|
+
* Create a ShippingMethod.
|
|
1185
|
+
* @param {ShippingMethodCreateArgs} args - Arguments to create a ShippingMethod.
|
|
1186
|
+
* @example
|
|
1187
|
+
* // Create one ShippingMethod
|
|
1188
|
+
* const ShippingMethod = await prisma.shippingMethod.create({
|
|
1189
|
+
* data: {
|
|
1190
|
+
* // ... data to create a ShippingMethod
|
|
1191
|
+
* }
|
|
1192
|
+
* })
|
|
1193
|
+
*
|
|
1194
|
+
*/
|
|
1060
1195
|
create<T extends ShippingMethodCreateArgs>(args: Prisma.SelectSubset<T, ShippingMethodCreateArgs<ExtArgs>>): Prisma.Prisma__ShippingMethodClient<runtime.Types.Result.GetResult<Prisma.$ShippingMethodPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1196
|
+
/**
|
|
1197
|
+
* Create many ShippingMethods.
|
|
1198
|
+
* @param {ShippingMethodCreateManyArgs} args - Arguments to create many ShippingMethods.
|
|
1199
|
+
* @example
|
|
1200
|
+
* // Create many ShippingMethods
|
|
1201
|
+
* const shippingMethod = await prisma.shippingMethod.createMany({
|
|
1202
|
+
* data: [
|
|
1203
|
+
* // ... provide data here
|
|
1204
|
+
* ]
|
|
1205
|
+
* })
|
|
1206
|
+
*
|
|
1207
|
+
*/
|
|
1061
1208
|
createMany<T extends ShippingMethodCreateManyArgs>(args?: Prisma.SelectSubset<T, ShippingMethodCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1209
|
+
/**
|
|
1210
|
+
* Create many ShippingMethods and returns the data saved in the database.
|
|
1211
|
+
* @param {ShippingMethodCreateManyAndReturnArgs} args - Arguments to create many ShippingMethods.
|
|
1212
|
+
* @example
|
|
1213
|
+
* // Create many ShippingMethods
|
|
1214
|
+
* const shippingMethod = await prisma.shippingMethod.createManyAndReturn({
|
|
1215
|
+
* data: [
|
|
1216
|
+
* // ... provide data here
|
|
1217
|
+
* ]
|
|
1218
|
+
* })
|
|
1219
|
+
*
|
|
1220
|
+
* // Create many ShippingMethods and only return the `id`
|
|
1221
|
+
* const shippingMethodWithIdOnly = await prisma.shippingMethod.createManyAndReturn({
|
|
1222
|
+
* select: { id: true },
|
|
1223
|
+
* data: [
|
|
1224
|
+
* // ... provide data here
|
|
1225
|
+
* ]
|
|
1226
|
+
* })
|
|
1227
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1228
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1229
|
+
*
|
|
1230
|
+
*/
|
|
1062
1231
|
createManyAndReturn<T extends ShippingMethodCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ShippingMethodCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShippingMethodPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Delete a ShippingMethod.
|
|
1234
|
+
* @param {ShippingMethodDeleteArgs} args - Arguments to delete one ShippingMethod.
|
|
1235
|
+
* @example
|
|
1236
|
+
* // Delete one ShippingMethod
|
|
1237
|
+
* const ShippingMethod = await prisma.shippingMethod.delete({
|
|
1238
|
+
* where: {
|
|
1239
|
+
* // ... filter to delete one ShippingMethod
|
|
1240
|
+
* }
|
|
1241
|
+
* })
|
|
1242
|
+
*
|
|
1243
|
+
*/
|
|
1063
1244
|
delete<T extends ShippingMethodDeleteArgs>(args: Prisma.SelectSubset<T, ShippingMethodDeleteArgs<ExtArgs>>): Prisma.Prisma__ShippingMethodClient<runtime.Types.Result.GetResult<Prisma.$ShippingMethodPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1245
|
+
/**
|
|
1246
|
+
* Update one ShippingMethod.
|
|
1247
|
+
* @param {ShippingMethodUpdateArgs} args - Arguments to update one ShippingMethod.
|
|
1248
|
+
* @example
|
|
1249
|
+
* // Update one ShippingMethod
|
|
1250
|
+
* const shippingMethod = await prisma.shippingMethod.update({
|
|
1251
|
+
* where: {
|
|
1252
|
+
* // ... provide filter here
|
|
1253
|
+
* },
|
|
1254
|
+
* data: {
|
|
1255
|
+
* // ... provide data here
|
|
1256
|
+
* }
|
|
1257
|
+
* })
|
|
1258
|
+
*
|
|
1259
|
+
*/
|
|
1064
1260
|
update<T extends ShippingMethodUpdateArgs>(args: Prisma.SelectSubset<T, ShippingMethodUpdateArgs<ExtArgs>>): Prisma.Prisma__ShippingMethodClient<runtime.Types.Result.GetResult<Prisma.$ShippingMethodPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1261
|
+
/**
|
|
1262
|
+
* Delete zero or more ShippingMethods.
|
|
1263
|
+
* @param {ShippingMethodDeleteManyArgs} args - Arguments to filter ShippingMethods to delete.
|
|
1264
|
+
* @example
|
|
1265
|
+
* // Delete a few ShippingMethods
|
|
1266
|
+
* const { count } = await prisma.shippingMethod.deleteMany({
|
|
1267
|
+
* where: {
|
|
1268
|
+
* // ... provide filter here
|
|
1269
|
+
* }
|
|
1270
|
+
* })
|
|
1271
|
+
*
|
|
1272
|
+
*/
|
|
1065
1273
|
deleteMany<T extends ShippingMethodDeleteManyArgs>(args?: Prisma.SelectSubset<T, ShippingMethodDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1274
|
+
/**
|
|
1275
|
+
* Update zero or more ShippingMethods.
|
|
1276
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1277
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1278
|
+
* @param {ShippingMethodUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1279
|
+
* @example
|
|
1280
|
+
* // Update many ShippingMethods
|
|
1281
|
+
* const shippingMethod = await prisma.shippingMethod.updateMany({
|
|
1282
|
+
* where: {
|
|
1283
|
+
* // ... provide filter here
|
|
1284
|
+
* },
|
|
1285
|
+
* data: {
|
|
1286
|
+
* // ... provide data here
|
|
1287
|
+
* }
|
|
1288
|
+
* })
|
|
1289
|
+
*
|
|
1290
|
+
*/
|
|
1066
1291
|
updateMany<T extends ShippingMethodUpdateManyArgs>(args: Prisma.SelectSubset<T, ShippingMethodUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Update zero or more ShippingMethods and returns the data updated in the database.
|
|
1294
|
+
* @param {ShippingMethodUpdateManyAndReturnArgs} args - Arguments to update many ShippingMethods.
|
|
1295
|
+
* @example
|
|
1296
|
+
* // Update many ShippingMethods
|
|
1297
|
+
* const shippingMethod = await prisma.shippingMethod.updateManyAndReturn({
|
|
1298
|
+
* where: {
|
|
1299
|
+
* // ... provide filter here
|
|
1300
|
+
* },
|
|
1301
|
+
* data: [
|
|
1302
|
+
* // ... provide data here
|
|
1303
|
+
* ]
|
|
1304
|
+
* })
|
|
1305
|
+
*
|
|
1306
|
+
* // Update zero or more ShippingMethods and only return the `id`
|
|
1307
|
+
* const shippingMethodWithIdOnly = await prisma.shippingMethod.updateManyAndReturn({
|
|
1308
|
+
* select: { id: true },
|
|
1309
|
+
* where: {
|
|
1310
|
+
* // ... provide filter here
|
|
1311
|
+
* },
|
|
1312
|
+
* data: [
|
|
1313
|
+
* // ... provide data here
|
|
1314
|
+
* ]
|
|
1315
|
+
* })
|
|
1316
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1317
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1318
|
+
*
|
|
1319
|
+
*/
|
|
1067
1320
|
updateManyAndReturn<T extends ShippingMethodUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ShippingMethodUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShippingMethodPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
1321
|
+
/**
|
|
1322
|
+
* Create or update one ShippingMethod.
|
|
1323
|
+
* @param {ShippingMethodUpsertArgs} args - Arguments to update or create a ShippingMethod.
|
|
1324
|
+
* @example
|
|
1325
|
+
* // Update or create a ShippingMethod
|
|
1326
|
+
* const shippingMethod = await prisma.shippingMethod.upsert({
|
|
1327
|
+
* create: {
|
|
1328
|
+
* // ... data to create a ShippingMethod
|
|
1329
|
+
* },
|
|
1330
|
+
* update: {
|
|
1331
|
+
* // ... in case it already exists, update
|
|
1332
|
+
* },
|
|
1333
|
+
* where: {
|
|
1334
|
+
* // ... the filter for the ShippingMethod we want to update
|
|
1335
|
+
* }
|
|
1336
|
+
* })
|
|
1337
|
+
*/
|
|
1068
1338
|
upsert<T extends ShippingMethodUpsertArgs>(args: Prisma.SelectSubset<T, ShippingMethodUpsertArgs<ExtArgs>>): Prisma.Prisma__ShippingMethodClient<runtime.Types.Result.GetResult<Prisma.$ShippingMethodPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1339
|
+
/**
|
|
1340
|
+
* Count the number of ShippingMethods.
|
|
1341
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1342
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1343
|
+
* @param {ShippingMethodCountArgs} args - Arguments to filter ShippingMethods to count.
|
|
1344
|
+
* @example
|
|
1345
|
+
* // Count the number of ShippingMethods
|
|
1346
|
+
* const count = await prisma.shippingMethod.count({
|
|
1347
|
+
* where: {
|
|
1348
|
+
* // ... the filter for the ShippingMethods we want to count
|
|
1349
|
+
* }
|
|
1350
|
+
* })
|
|
1351
|
+
**/
|
|
1069
1352
|
count<T extends ShippingMethodCountArgs>(args?: Prisma.Subset<T, ShippingMethodCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ShippingMethodCountAggregateOutputType> : number>;
|
|
1353
|
+
/**
|
|
1354
|
+
* Allows you to perform aggregations operations on a ShippingMethod.
|
|
1355
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1356
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1357
|
+
* @param {ShippingMethodAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1358
|
+
* @example
|
|
1359
|
+
* // Ordered by age ascending
|
|
1360
|
+
* // Where email contains prisma.io
|
|
1361
|
+
* // Limited to the 10 users
|
|
1362
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1363
|
+
* _avg: {
|
|
1364
|
+
* age: true,
|
|
1365
|
+
* },
|
|
1366
|
+
* where: {
|
|
1367
|
+
* email: {
|
|
1368
|
+
* contains: "prisma.io",
|
|
1369
|
+
* },
|
|
1370
|
+
* },
|
|
1371
|
+
* orderBy: {
|
|
1372
|
+
* age: "asc",
|
|
1373
|
+
* },
|
|
1374
|
+
* take: 10,
|
|
1375
|
+
* })
|
|
1376
|
+
**/
|
|
1070
1377
|
aggregate<T extends ShippingMethodAggregateArgs>(args: Prisma.Subset<T, ShippingMethodAggregateArgs>): Prisma.PrismaPromise<GetShippingMethodAggregateType<T>>;
|
|
1378
|
+
/**
|
|
1379
|
+
* Group by ShippingMethod.
|
|
1380
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1381
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1382
|
+
* @param {ShippingMethodGroupByArgs} args - Group by arguments.
|
|
1383
|
+
* @example
|
|
1384
|
+
* // Group by city, order by createdAt, get count
|
|
1385
|
+
* const result = await prisma.user.groupBy({
|
|
1386
|
+
* by: ['city', 'createdAt'],
|
|
1387
|
+
* orderBy: {
|
|
1388
|
+
* createdAt: true
|
|
1389
|
+
* },
|
|
1390
|
+
* _count: {
|
|
1391
|
+
* _all: true
|
|
1392
|
+
* },
|
|
1393
|
+
* })
|
|
1394
|
+
*
|
|
1395
|
+
**/
|
|
1071
1396
|
groupBy<T extends ShippingMethodGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1072
1397
|
orderBy: ShippingMethodGroupByArgs['orderBy'];
|
|
1073
1398
|
} : {
|
|
@@ -1086,18 +1411,47 @@ export interface ShippingMethodDelegate<ExtArgs extends runtime.Types.Extensions
|
|
|
1086
1411
|
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1087
1412
|
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1088
1413
|
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ShippingMethodGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShippingMethodGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1414
|
+
/**
|
|
1415
|
+
* Fields of the ShippingMethod model
|
|
1416
|
+
*/
|
|
1089
1417
|
readonly fields: ShippingMethodFieldRefs;
|
|
1090
1418
|
}
|
|
1419
|
+
/**
|
|
1420
|
+
* The delegate class that acts as a "Promise-like" for ShippingMethod.
|
|
1421
|
+
* Why is this prefixed with `Prisma__`?
|
|
1422
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1423
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1424
|
+
*/
|
|
1091
1425
|
export interface Prisma__ShippingMethodClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1092
1426
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1093
1427
|
providerLogo<T extends Prisma.ShippingMethod$providerLogoArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShippingMethod$providerLogoArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1094
1428
|
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>;
|
|
1095
1429
|
shippingZones<T extends Prisma.ShippingMethod$shippingZonesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShippingMethod$shippingZonesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShippingZonePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1096
1430
|
orders<T extends Prisma.ShippingMethod$ordersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShippingMethod$ordersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1431
|
+
/**
|
|
1432
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1433
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1434
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1435
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1436
|
+
*/
|
|
1097
1437
|
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>;
|
|
1438
|
+
/**
|
|
1439
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1440
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1441
|
+
* @returns A Promise for the completion of the callback.
|
|
1442
|
+
*/
|
|
1098
1443
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1444
|
+
/**
|
|
1445
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1446
|
+
* resolved value cannot be modified from the callback.
|
|
1447
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1448
|
+
* @returns A Promise for the completion of the callback.
|
|
1449
|
+
*/
|
|
1099
1450
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1100
1451
|
}
|
|
1452
|
+
/**
|
|
1453
|
+
* Fields of the ShippingMethod model
|
|
1454
|
+
*/
|
|
1101
1455
|
export interface ShippingMethodFieldRefs {
|
|
1102
1456
|
readonly id: Prisma.FieldRef<"ShippingMethod", 'String'>;
|
|
1103
1457
|
readonly title: Prisma.FieldRef<"ShippingMethod", 'String'>;
|
|
@@ -1114,115 +1468,421 @@ export interface ShippingMethodFieldRefs {
|
|
|
1114
1468
|
readonly updatedAt: Prisma.FieldRef<"ShippingMethod", 'DateTime'>;
|
|
1115
1469
|
readonly updatedBy: Prisma.FieldRef<"ShippingMethod", 'String'>;
|
|
1116
1470
|
}
|
|
1471
|
+
/**
|
|
1472
|
+
* ShippingMethod findUnique
|
|
1473
|
+
*/
|
|
1117
1474
|
export type ShippingMethodFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1475
|
+
/**
|
|
1476
|
+
* Select specific fields to fetch from the ShippingMethod
|
|
1477
|
+
*/
|
|
1118
1478
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1479
|
+
/**
|
|
1480
|
+
* Omit specific fields from the ShippingMethod
|
|
1481
|
+
*/
|
|
1119
1482
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1483
|
+
/**
|
|
1484
|
+
* Choose, which related nodes to fetch as well
|
|
1485
|
+
*/
|
|
1120
1486
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1487
|
+
/**
|
|
1488
|
+
* Filter, which ShippingMethod to fetch.
|
|
1489
|
+
*/
|
|
1121
1490
|
where: Prisma.ShippingMethodWhereUniqueInput;
|
|
1122
1491
|
};
|
|
1492
|
+
/**
|
|
1493
|
+
* ShippingMethod findUniqueOrThrow
|
|
1494
|
+
*/
|
|
1123
1495
|
export type ShippingMethodFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1496
|
+
/**
|
|
1497
|
+
* Select specific fields to fetch from the ShippingMethod
|
|
1498
|
+
*/
|
|
1124
1499
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1500
|
+
/**
|
|
1501
|
+
* Omit specific fields from the ShippingMethod
|
|
1502
|
+
*/
|
|
1125
1503
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1504
|
+
/**
|
|
1505
|
+
* Choose, which related nodes to fetch as well
|
|
1506
|
+
*/
|
|
1126
1507
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1508
|
+
/**
|
|
1509
|
+
* Filter, which ShippingMethod to fetch.
|
|
1510
|
+
*/
|
|
1127
1511
|
where: Prisma.ShippingMethodWhereUniqueInput;
|
|
1128
1512
|
};
|
|
1513
|
+
/**
|
|
1514
|
+
* ShippingMethod findFirst
|
|
1515
|
+
*/
|
|
1129
1516
|
export type ShippingMethodFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1517
|
+
/**
|
|
1518
|
+
* Select specific fields to fetch from the ShippingMethod
|
|
1519
|
+
*/
|
|
1130
1520
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1521
|
+
/**
|
|
1522
|
+
* Omit specific fields from the ShippingMethod
|
|
1523
|
+
*/
|
|
1131
1524
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1525
|
+
/**
|
|
1526
|
+
* Choose, which related nodes to fetch as well
|
|
1527
|
+
*/
|
|
1132
1528
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1529
|
+
/**
|
|
1530
|
+
* Filter, which ShippingMethod to fetch.
|
|
1531
|
+
*/
|
|
1133
1532
|
where?: Prisma.ShippingMethodWhereInput;
|
|
1533
|
+
/**
|
|
1534
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1535
|
+
*
|
|
1536
|
+
* Determine the order of ShippingMethods to fetch.
|
|
1537
|
+
*/
|
|
1134
1538
|
orderBy?: Prisma.ShippingMethodOrderByWithRelationInput | Prisma.ShippingMethodOrderByWithRelationInput[];
|
|
1539
|
+
/**
|
|
1540
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1541
|
+
*
|
|
1542
|
+
* Sets the position for searching for ShippingMethods.
|
|
1543
|
+
*/
|
|
1135
1544
|
cursor?: Prisma.ShippingMethodWhereUniqueInput;
|
|
1545
|
+
/**
|
|
1546
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1547
|
+
*
|
|
1548
|
+
* Take `±n` ShippingMethods from the position of the cursor.
|
|
1549
|
+
*/
|
|
1136
1550
|
take?: number;
|
|
1551
|
+
/**
|
|
1552
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1553
|
+
*
|
|
1554
|
+
* Skip the first `n` ShippingMethods.
|
|
1555
|
+
*/
|
|
1137
1556
|
skip?: number;
|
|
1557
|
+
/**
|
|
1558
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1559
|
+
*
|
|
1560
|
+
* Filter by unique combinations of ShippingMethods.
|
|
1561
|
+
*/
|
|
1138
1562
|
distinct?: Prisma.ShippingMethodScalarFieldEnum | Prisma.ShippingMethodScalarFieldEnum[];
|
|
1139
1563
|
};
|
|
1564
|
+
/**
|
|
1565
|
+
* ShippingMethod findFirstOrThrow
|
|
1566
|
+
*/
|
|
1140
1567
|
export type ShippingMethodFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1568
|
+
/**
|
|
1569
|
+
* Select specific fields to fetch from the ShippingMethod
|
|
1570
|
+
*/
|
|
1141
1571
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1572
|
+
/**
|
|
1573
|
+
* Omit specific fields from the ShippingMethod
|
|
1574
|
+
*/
|
|
1142
1575
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1576
|
+
/**
|
|
1577
|
+
* Choose, which related nodes to fetch as well
|
|
1578
|
+
*/
|
|
1143
1579
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1580
|
+
/**
|
|
1581
|
+
* Filter, which ShippingMethod to fetch.
|
|
1582
|
+
*/
|
|
1144
1583
|
where?: Prisma.ShippingMethodWhereInput;
|
|
1584
|
+
/**
|
|
1585
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1586
|
+
*
|
|
1587
|
+
* Determine the order of ShippingMethods to fetch.
|
|
1588
|
+
*/
|
|
1145
1589
|
orderBy?: Prisma.ShippingMethodOrderByWithRelationInput | Prisma.ShippingMethodOrderByWithRelationInput[];
|
|
1590
|
+
/**
|
|
1591
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1592
|
+
*
|
|
1593
|
+
* Sets the position for searching for ShippingMethods.
|
|
1594
|
+
*/
|
|
1146
1595
|
cursor?: Prisma.ShippingMethodWhereUniqueInput;
|
|
1596
|
+
/**
|
|
1597
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1598
|
+
*
|
|
1599
|
+
* Take `±n` ShippingMethods from the position of the cursor.
|
|
1600
|
+
*/
|
|
1147
1601
|
take?: number;
|
|
1602
|
+
/**
|
|
1603
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1604
|
+
*
|
|
1605
|
+
* Skip the first `n` ShippingMethods.
|
|
1606
|
+
*/
|
|
1148
1607
|
skip?: number;
|
|
1608
|
+
/**
|
|
1609
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1610
|
+
*
|
|
1611
|
+
* Filter by unique combinations of ShippingMethods.
|
|
1612
|
+
*/
|
|
1149
1613
|
distinct?: Prisma.ShippingMethodScalarFieldEnum | Prisma.ShippingMethodScalarFieldEnum[];
|
|
1150
1614
|
};
|
|
1615
|
+
/**
|
|
1616
|
+
* ShippingMethod findMany
|
|
1617
|
+
*/
|
|
1151
1618
|
export type ShippingMethodFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1619
|
+
/**
|
|
1620
|
+
* Select specific fields to fetch from the ShippingMethod
|
|
1621
|
+
*/
|
|
1152
1622
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1623
|
+
/**
|
|
1624
|
+
* Omit specific fields from the ShippingMethod
|
|
1625
|
+
*/
|
|
1153
1626
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1627
|
+
/**
|
|
1628
|
+
* Choose, which related nodes to fetch as well
|
|
1629
|
+
*/
|
|
1154
1630
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1631
|
+
/**
|
|
1632
|
+
* Filter, which ShippingMethods to fetch.
|
|
1633
|
+
*/
|
|
1155
1634
|
where?: Prisma.ShippingMethodWhereInput;
|
|
1635
|
+
/**
|
|
1636
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1637
|
+
*
|
|
1638
|
+
* Determine the order of ShippingMethods to fetch.
|
|
1639
|
+
*/
|
|
1156
1640
|
orderBy?: Prisma.ShippingMethodOrderByWithRelationInput | Prisma.ShippingMethodOrderByWithRelationInput[];
|
|
1641
|
+
/**
|
|
1642
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1643
|
+
*
|
|
1644
|
+
* Sets the position for listing ShippingMethods.
|
|
1645
|
+
*/
|
|
1157
1646
|
cursor?: Prisma.ShippingMethodWhereUniqueInput;
|
|
1647
|
+
/**
|
|
1648
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1649
|
+
*
|
|
1650
|
+
* Take `±n` ShippingMethods from the position of the cursor.
|
|
1651
|
+
*/
|
|
1158
1652
|
take?: number;
|
|
1653
|
+
/**
|
|
1654
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1655
|
+
*
|
|
1656
|
+
* Skip the first `n` ShippingMethods.
|
|
1657
|
+
*/
|
|
1159
1658
|
skip?: number;
|
|
1659
|
+
/**
|
|
1660
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1661
|
+
*
|
|
1662
|
+
* Filter by unique combinations of ShippingMethods.
|
|
1663
|
+
*/
|
|
1160
1664
|
distinct?: Prisma.ShippingMethodScalarFieldEnum | Prisma.ShippingMethodScalarFieldEnum[];
|
|
1161
1665
|
};
|
|
1666
|
+
/**
|
|
1667
|
+
* ShippingMethod create
|
|
1668
|
+
*/
|
|
1162
1669
|
export type ShippingMethodCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1670
|
+
/**
|
|
1671
|
+
* Select specific fields to fetch from the ShippingMethod
|
|
1672
|
+
*/
|
|
1163
1673
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1674
|
+
/**
|
|
1675
|
+
* Omit specific fields from the ShippingMethod
|
|
1676
|
+
*/
|
|
1164
1677
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1678
|
+
/**
|
|
1679
|
+
* Choose, which related nodes to fetch as well
|
|
1680
|
+
*/
|
|
1165
1681
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1682
|
+
/**
|
|
1683
|
+
* The data needed to create a ShippingMethod.
|
|
1684
|
+
*/
|
|
1166
1685
|
data: Prisma.XOR<Prisma.ShippingMethodCreateInput, Prisma.ShippingMethodUncheckedCreateInput>;
|
|
1167
1686
|
};
|
|
1687
|
+
/**
|
|
1688
|
+
* ShippingMethod createMany
|
|
1689
|
+
*/
|
|
1168
1690
|
export type ShippingMethodCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1691
|
+
/**
|
|
1692
|
+
* The data used to create many ShippingMethods.
|
|
1693
|
+
*/
|
|
1169
1694
|
data: Prisma.ShippingMethodCreateManyInput | Prisma.ShippingMethodCreateManyInput[];
|
|
1170
1695
|
skipDuplicates?: boolean;
|
|
1171
1696
|
};
|
|
1697
|
+
/**
|
|
1698
|
+
* ShippingMethod createManyAndReturn
|
|
1699
|
+
*/
|
|
1172
1700
|
export type ShippingMethodCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1701
|
+
/**
|
|
1702
|
+
* Select specific fields to fetch from the ShippingMethod
|
|
1703
|
+
*/
|
|
1173
1704
|
select?: Prisma.ShippingMethodSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1705
|
+
/**
|
|
1706
|
+
* Omit specific fields from the ShippingMethod
|
|
1707
|
+
*/
|
|
1174
1708
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1709
|
+
/**
|
|
1710
|
+
* The data used to create many ShippingMethods.
|
|
1711
|
+
*/
|
|
1175
1712
|
data: Prisma.ShippingMethodCreateManyInput | Prisma.ShippingMethodCreateManyInput[];
|
|
1176
1713
|
skipDuplicates?: boolean;
|
|
1714
|
+
/**
|
|
1715
|
+
* Choose, which related nodes to fetch as well
|
|
1716
|
+
*/
|
|
1177
1717
|
include?: Prisma.ShippingMethodIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1178
1718
|
};
|
|
1719
|
+
/**
|
|
1720
|
+
* ShippingMethod update
|
|
1721
|
+
*/
|
|
1179
1722
|
export type ShippingMethodUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1723
|
+
/**
|
|
1724
|
+
* Select specific fields to fetch from the ShippingMethod
|
|
1725
|
+
*/
|
|
1180
1726
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1727
|
+
/**
|
|
1728
|
+
* Omit specific fields from the ShippingMethod
|
|
1729
|
+
*/
|
|
1181
1730
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1731
|
+
/**
|
|
1732
|
+
* Choose, which related nodes to fetch as well
|
|
1733
|
+
*/
|
|
1182
1734
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1735
|
+
/**
|
|
1736
|
+
* The data needed to update a ShippingMethod.
|
|
1737
|
+
*/
|
|
1183
1738
|
data: Prisma.XOR<Prisma.ShippingMethodUpdateInput, Prisma.ShippingMethodUncheckedUpdateInput>;
|
|
1739
|
+
/**
|
|
1740
|
+
* Choose, which ShippingMethod to update.
|
|
1741
|
+
*/
|
|
1184
1742
|
where: Prisma.ShippingMethodWhereUniqueInput;
|
|
1185
1743
|
};
|
|
1744
|
+
/**
|
|
1745
|
+
* ShippingMethod updateMany
|
|
1746
|
+
*/
|
|
1186
1747
|
export type ShippingMethodUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1748
|
+
/**
|
|
1749
|
+
* The data used to update ShippingMethods.
|
|
1750
|
+
*/
|
|
1187
1751
|
data: Prisma.XOR<Prisma.ShippingMethodUpdateManyMutationInput, Prisma.ShippingMethodUncheckedUpdateManyInput>;
|
|
1752
|
+
/**
|
|
1753
|
+
* Filter which ShippingMethods to update
|
|
1754
|
+
*/
|
|
1188
1755
|
where?: Prisma.ShippingMethodWhereInput;
|
|
1756
|
+
/**
|
|
1757
|
+
* Limit how many ShippingMethods to update.
|
|
1758
|
+
*/
|
|
1189
1759
|
limit?: number;
|
|
1190
1760
|
};
|
|
1761
|
+
/**
|
|
1762
|
+
* ShippingMethod updateManyAndReturn
|
|
1763
|
+
*/
|
|
1191
1764
|
export type ShippingMethodUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1765
|
+
/**
|
|
1766
|
+
* Select specific fields to fetch from the ShippingMethod
|
|
1767
|
+
*/
|
|
1192
1768
|
select?: Prisma.ShippingMethodSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1769
|
+
/**
|
|
1770
|
+
* Omit specific fields from the ShippingMethod
|
|
1771
|
+
*/
|
|
1193
1772
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1773
|
+
/**
|
|
1774
|
+
* The data used to update ShippingMethods.
|
|
1775
|
+
*/
|
|
1194
1776
|
data: Prisma.XOR<Prisma.ShippingMethodUpdateManyMutationInput, Prisma.ShippingMethodUncheckedUpdateManyInput>;
|
|
1777
|
+
/**
|
|
1778
|
+
* Filter which ShippingMethods to update
|
|
1779
|
+
*/
|
|
1195
1780
|
where?: Prisma.ShippingMethodWhereInput;
|
|
1781
|
+
/**
|
|
1782
|
+
* Limit how many ShippingMethods to update.
|
|
1783
|
+
*/
|
|
1196
1784
|
limit?: number;
|
|
1785
|
+
/**
|
|
1786
|
+
* Choose, which related nodes to fetch as well
|
|
1787
|
+
*/
|
|
1197
1788
|
include?: Prisma.ShippingMethodIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1198
1789
|
};
|
|
1790
|
+
/**
|
|
1791
|
+
* ShippingMethod upsert
|
|
1792
|
+
*/
|
|
1199
1793
|
export type ShippingMethodUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1794
|
+
/**
|
|
1795
|
+
* Select specific fields to fetch from the ShippingMethod
|
|
1796
|
+
*/
|
|
1200
1797
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1798
|
+
/**
|
|
1799
|
+
* Omit specific fields from the ShippingMethod
|
|
1800
|
+
*/
|
|
1201
1801
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1802
|
+
/**
|
|
1803
|
+
* Choose, which related nodes to fetch as well
|
|
1804
|
+
*/
|
|
1202
1805
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1806
|
+
/**
|
|
1807
|
+
* The filter to search for the ShippingMethod to update in case it exists.
|
|
1808
|
+
*/
|
|
1203
1809
|
where: Prisma.ShippingMethodWhereUniqueInput;
|
|
1810
|
+
/**
|
|
1811
|
+
* In case the ShippingMethod found by the `where` argument doesn't exist, create a new ShippingMethod with this data.
|
|
1812
|
+
*/
|
|
1204
1813
|
create: Prisma.XOR<Prisma.ShippingMethodCreateInput, Prisma.ShippingMethodUncheckedCreateInput>;
|
|
1814
|
+
/**
|
|
1815
|
+
* In case the ShippingMethod was found with the provided `where` argument, update it with this data.
|
|
1816
|
+
*/
|
|
1205
1817
|
update: Prisma.XOR<Prisma.ShippingMethodUpdateInput, Prisma.ShippingMethodUncheckedUpdateInput>;
|
|
1206
1818
|
};
|
|
1819
|
+
/**
|
|
1820
|
+
* ShippingMethod delete
|
|
1821
|
+
*/
|
|
1207
1822
|
export type ShippingMethodDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1823
|
+
/**
|
|
1824
|
+
* Select specific fields to fetch from the ShippingMethod
|
|
1825
|
+
*/
|
|
1208
1826
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1827
|
+
/**
|
|
1828
|
+
* Omit specific fields from the ShippingMethod
|
|
1829
|
+
*/
|
|
1209
1830
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1831
|
+
/**
|
|
1832
|
+
* Choose, which related nodes to fetch as well
|
|
1833
|
+
*/
|
|
1210
1834
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1835
|
+
/**
|
|
1836
|
+
* Filter which ShippingMethod to delete.
|
|
1837
|
+
*/
|
|
1211
1838
|
where: Prisma.ShippingMethodWhereUniqueInput;
|
|
1212
1839
|
};
|
|
1840
|
+
/**
|
|
1841
|
+
* ShippingMethod deleteMany
|
|
1842
|
+
*/
|
|
1213
1843
|
export type ShippingMethodDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1844
|
+
/**
|
|
1845
|
+
* Filter which ShippingMethods to delete
|
|
1846
|
+
*/
|
|
1214
1847
|
where?: Prisma.ShippingMethodWhereInput;
|
|
1848
|
+
/**
|
|
1849
|
+
* Limit how many ShippingMethods to delete.
|
|
1850
|
+
*/
|
|
1215
1851
|
limit?: number;
|
|
1216
1852
|
};
|
|
1853
|
+
/**
|
|
1854
|
+
* ShippingMethod.providerLogo
|
|
1855
|
+
*/
|
|
1217
1856
|
export type ShippingMethod$providerLogoArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1857
|
+
/**
|
|
1858
|
+
* Select specific fields to fetch from the File
|
|
1859
|
+
*/
|
|
1218
1860
|
select?: Prisma.FileSelect<ExtArgs> | null;
|
|
1861
|
+
/**
|
|
1862
|
+
* Omit specific fields from the File
|
|
1863
|
+
*/
|
|
1219
1864
|
omit?: Prisma.FileOmit<ExtArgs> | null;
|
|
1865
|
+
/**
|
|
1866
|
+
* Choose, which related nodes to fetch as well
|
|
1867
|
+
*/
|
|
1220
1868
|
include?: Prisma.FileInclude<ExtArgs> | null;
|
|
1221
1869
|
where?: Prisma.FileWhereInput;
|
|
1222
1870
|
};
|
|
1871
|
+
/**
|
|
1872
|
+
* ShippingMethod.shippingZones
|
|
1873
|
+
*/
|
|
1223
1874
|
export type ShippingMethod$shippingZonesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1875
|
+
/**
|
|
1876
|
+
* Select specific fields to fetch from the ShippingZone
|
|
1877
|
+
*/
|
|
1224
1878
|
select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
|
|
1879
|
+
/**
|
|
1880
|
+
* Omit specific fields from the ShippingZone
|
|
1881
|
+
*/
|
|
1225
1882
|
omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
|
|
1883
|
+
/**
|
|
1884
|
+
* Choose, which related nodes to fetch as well
|
|
1885
|
+
*/
|
|
1226
1886
|
include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
|
|
1227
1887
|
where?: Prisma.ShippingZoneWhereInput;
|
|
1228
1888
|
orderBy?: Prisma.ShippingZoneOrderByWithRelationInput | Prisma.ShippingZoneOrderByWithRelationInput[];
|
|
@@ -1231,9 +1891,21 @@ export type ShippingMethod$shippingZonesArgs<ExtArgs extends runtime.Types.Exten
|
|
|
1231
1891
|
skip?: number;
|
|
1232
1892
|
distinct?: Prisma.ShippingZoneScalarFieldEnum | Prisma.ShippingZoneScalarFieldEnum[];
|
|
1233
1893
|
};
|
|
1894
|
+
/**
|
|
1895
|
+
* ShippingMethod.orders
|
|
1896
|
+
*/
|
|
1234
1897
|
export type ShippingMethod$ordersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1898
|
+
/**
|
|
1899
|
+
* Select specific fields to fetch from the Order
|
|
1900
|
+
*/
|
|
1235
1901
|
select?: Prisma.OrderSelect<ExtArgs> | null;
|
|
1902
|
+
/**
|
|
1903
|
+
* Omit specific fields from the Order
|
|
1904
|
+
*/
|
|
1236
1905
|
omit?: Prisma.OrderOmit<ExtArgs> | null;
|
|
1906
|
+
/**
|
|
1907
|
+
* Choose, which related nodes to fetch as well
|
|
1908
|
+
*/
|
|
1237
1909
|
include?: Prisma.OrderInclude<ExtArgs> | null;
|
|
1238
1910
|
where?: Prisma.OrderWhereInput;
|
|
1239
1911
|
orderBy?: Prisma.OrderOrderByWithRelationInput | Prisma.OrderOrderByWithRelationInput[];
|
|
@@ -1242,9 +1914,21 @@ export type ShippingMethod$ordersArgs<ExtArgs extends runtime.Types.Extensions.I
|
|
|
1242
1914
|
skip?: number;
|
|
1243
1915
|
distinct?: Prisma.OrderScalarFieldEnum | Prisma.OrderScalarFieldEnum[];
|
|
1244
1916
|
};
|
|
1917
|
+
/**
|
|
1918
|
+
* ShippingMethod without action
|
|
1919
|
+
*/
|
|
1245
1920
|
export type ShippingMethodDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1921
|
+
/**
|
|
1922
|
+
* Select specific fields to fetch from the ShippingMethod
|
|
1923
|
+
*/
|
|
1246
1924
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1925
|
+
/**
|
|
1926
|
+
* Omit specific fields from the ShippingMethod
|
|
1927
|
+
*/
|
|
1247
1928
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1929
|
+
/**
|
|
1930
|
+
* Choose, which related nodes to fetch as well
|
|
1931
|
+
*/
|
|
1248
1932
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1249
1933
|
};
|
|
1250
1934
|
export {};
|