@shophost/rest-api 2.0.29 → 2.0.31
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 +18 -13
- package/scripts/minify.mjs +110 -0
- package/src/app.js +1 -53
- package/src/core/auth/auth.schema.js +1 -41
- package/src/core/auth/auth.util.js +1 -44
- package/src/core/auth/better-auth.lib.js +1 -100
- package/src/core/auth/generate-password-hash.util.d.ts +0 -3
- package/src/core/auth/generate-password-hash.util.js +1 -30
- package/src/core/auth/headers.schema.js +1 -22
- package/src/core/auth/user.schema.js +1 -30
- package/src/core/db/__generated__/client/browser.d.ts +0 -128
- package/src/core/db/__generated__/client/browser.js +1 -18
- package/src/core/db/__generated__/client/client.d.ts +0 -143
- package/src/core/db/__generated__/client/client.js +1 -35
- package/src/core/db/__generated__/client/commonInputTypes.js +1 -11
- package/src/core/db/__generated__/client/enums.js +1 -200
- package/src/core/db/__generated__/client/internal/class.d.ts +0 -343
- package/src/core/db/__generated__/client/internal/class.js +1 -55
- package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +0 -234
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -541
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +0 -15
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -512
- package/src/core/db/__generated__/client/models/Account.d.ts +0 -628
- package/src/core/db/__generated__/client/models/Account.js +1 -2
- package/src/core/db/__generated__/client/models/Address.d.ts +0 -701
- package/src/core/db/__generated__/client/models/Address.js +1 -2
- package/src/core/db/__generated__/client/models/Campaign.d.ts +0 -638
- package/src/core/db/__generated__/client/models/Campaign.js +1 -2
- package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +0 -634
- package/src/core/db/__generated__/client/models/ClosingTimes.js +1 -2
- package/src/core/db/__generated__/client/models/File.d.ts +0 -752
- package/src/core/db/__generated__/client/models/File.js +1 -2
- package/src/core/db/__generated__/client/models/Invitation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/Invitation.js +1 -2
- package/src/core/db/__generated__/client/models/LegalEntity.d.ts +0 -652
- package/src/core/db/__generated__/client/models/LegalEntity.js +1 -2
- package/src/core/db/__generated__/client/models/Manufacturer.d.ts +0 -679
- package/src/core/db/__generated__/client/models/Manufacturer.js +1 -2
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/Member.d.ts +0 -628
- package/src/core/db/__generated__/client/models/Member.js +1 -2
- package/src/core/db/__generated__/client/models/Modifier.d.ts +0 -662
- package/src/core/db/__generated__/client/models/Modifier.js +1 -2
- package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +0 -686
- package/src/core/db/__generated__/client/models/ModifierGroup.js +1 -2
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +0 -634
- package/src/core/db/__generated__/client/models/OpeningTimes.js +1 -2
- package/src/core/db/__generated__/client/models/Order.d.ts +0 -700
- package/src/core/db/__generated__/client/models/Order.js +1 -2
- package/src/core/db/__generated__/client/models/OrderItem.d.ts +0 -686
- package/src/core/db/__generated__/client/models/OrderItem.js +1 -2
- package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/Organization.d.ts +0 -811
- package/src/core/db/__generated__/client/models/Organization.js +1 -2
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +0 -676
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +1 -2
- package/src/core/db/__generated__/client/models/Payment.d.ts +0 -668
- package/src/core/db/__generated__/client/models/Payment.js +1 -2
- package/src/core/db/__generated__/client/models/PaymentSession.d.ts +0 -638
- package/src/core/db/__generated__/client/models/PaymentSession.js +1 -2
- package/src/core/db/__generated__/client/models/Product.d.ts +0 -746
- package/src/core/db/__generated__/client/models/Product.js +1 -2
- package/src/core/db/__generated__/client/models/ProductCategory.d.ts +0 -689
- package/src/core/db/__generated__/client/models/ProductCategory.js +1 -2
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +0 -664
- package/src/core/db/__generated__/client/models/ProductSnapshot.js +1 -2
- package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/ProductTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/Reservation.d.ts +0 -650
- package/src/core/db/__generated__/client/models/Reservation.js +1 -2
- package/src/core/db/__generated__/client/models/Session.d.ts +0 -628
- package/src/core/db/__generated__/client/models/Session.js +1 -2
- package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +0 -679
- package/src/core/db/__generated__/client/models/ShippingMethod.js +1 -2
- package/src/core/db/__generated__/client/models/ShippingZone.d.ts +0 -638
- package/src/core/db/__generated__/client/models/ShippingZone.js +1 -2
- package/src/core/db/__generated__/client/models/User.d.ts +0 -736
- package/src/core/db/__generated__/client/models/User.js +1 -2
- package/src/core/db/__generated__/client/models/Verification.d.ts +0 -592
- package/src/core/db/__generated__/client/models/Verification.js +1 -2
- package/src/core/db/__generated__/client/models.js +1 -2
- package/src/core/db/index.js +1 -2
- package/src/core/exceptions/http-exception.js +1 -9
- package/src/core/hono/hono.js +1 -123
- package/src/core/lib/prisma.d.ts +9 -1
- package/src/core/lib/prisma.js +1 -11
- package/src/core/logging/pino.js +1 -5
- package/src/core/notifications/email.service.d.ts +0 -15
- package/src/core/notifications/email.service.js +1 -116
- package/src/core/openapi/openapi.lib.js +1 -26
- package/src/core/types/google-maps.types.js +1 -2
- package/src/core/utils/currency.util.js +1 -11
- package/src/core/utils/env.util.js +1 -8
- package/src/core/utils/object.util.d.ts +0 -10
- package/src/core/utils/object.util.js +1 -39
- package/src/core/utils/translations.util.js +0 -2
- package/src/core/utils/zod.util.d.ts +0 -12
- package/src/core/utils/zod.util.js +1 -85
- package/src/db.js +1 -3
- package/src/features/access/access.handler.js +1 -91
- package/src/features/access/access.route.js +1 -220
- package/src/features/access/access.schema.js +1 -108
- package/src/features/access/access.service.js +1 -294
- package/src/features/cart/cart.handler.js +1 -17
- package/src/features/cart/cart.route.js +1 -32
- package/src/features/cart/cart.schema.js +1 -39
- package/src/features/cart/cart.service.d.ts +0 -7
- package/src/features/cart/cart.service.js +1 -97
- package/src/features/cart/cart.util.js +1 -76
- package/src/features/file/file.handler.js +1 -23
- package/src/features/file/file.route.js +1 -34
- package/src/features/file/file.schema.js +1 -77
- package/src/features/file/file.service.d.ts +0 -6
- package/src/features/file/file.service.js +1 -66
- package/src/features/health/health.handler.js +1 -10
- package/src/features/health/health.route.js +1 -25
- package/src/features/index.js +1 -16
- package/src/features/location/location.handler.js +1 -25
- package/src/features/location/location.route.js +1 -56
- package/src/features/location/location.schema.js +1 -50
- package/src/features/location/location.service.d.ts +0 -3
- package/src/features/location/location.service.js +1 -141
- package/src/features/manufacturer/manufacturer.handler.js +1 -53
- package/src/features/manufacturer/manufacturer.route.js +1 -97
- package/src/features/manufacturer/manufacturer.schema.js +1 -125
- package/src/features/manufacturer/manufacturer.service.d.ts +0 -19
- package/src/features/manufacturer/manufacturer.service.js +1 -190
- package/src/features/order/emails/order-confirmation.email.js +1 -229
- package/src/features/order/emails/order-notification.email.js +1 -229
- package/src/features/order/fulfilment.schema.js +1 -3
- package/src/features/order/order.handler.js +1 -54
- package/src/features/order/order.route.js +1 -111
- package/src/features/order/order.schema.js +1 -158
- package/src/features/order/order.service.d.ts +0 -15
- package/src/features/order/order.service.js +1 -306
- package/src/features/order/recipient.schema.js +1 -38
- package/src/features/organization/legal-entity.schema.js +1 -83
- package/src/features/organization/organization-configuration.schema.js +1 -115
- package/src/features/organization/organization.handler.js +1 -48
- package/src/features/organization/organization.route.js +1 -84
- package/src/features/organization/organization.schema.js +1 -64
- package/src/features/organization/organization.service.d.ts +0 -15
- package/src/features/organization/organization.service.js +1 -334
- package/src/features/payment/payment.handler.js +1 -16
- package/src/features/payment/payment.route.js +1 -22
- package/src/features/payment/payment.schema.js +1 -46
- package/src/features/payment/payment.service.js +1 -100
- package/src/features/payment/stripe.service.js +1 -164
- package/src/features/product/product-modifier.schema.js +1 -84
- package/src/features/product/product.handler.js +1 -87
- package/src/features/product/product.route.js +1 -179
- package/src/features/product/product.schema.js +1 -143
- package/src/features/product/product.service.d.ts +0 -25
- package/src/features/product/product.service.js +1 -440
- package/src/features/product-category/product-category.handler.js +1 -59
- package/src/features/product-category/product-category.route.js +1 -139
- package/src/features/product-category/product-category.schema.js +1 -86
- package/src/features/product-category/product-category.service.d.ts +0 -22
- package/src/features/product-category/product-category.service.js +1 -220
- package/src/features/reservation/emails/reservation-cancellation.email.js +1 -82
- package/src/features/reservation/emails/reservation-confirmation.email.js +1 -82
- package/src/features/reservation/emails/reservation-notification.email.js +1 -93
- package/src/features/reservation/reservation.handler.js +1 -65
- package/src/features/reservation/reservation.route.js +1 -167
- package/src/features/reservation/reservation.schema.js +1 -51
- package/src/features/reservation/reservation.service.d.ts +0 -18
- package/src/features/reservation/reservation.service.js +1 -231
- package/src/features/shipping/shipping.handler.js +1 -32
- package/src/features/shipping/shipping.route.js +1 -51
- package/src/features/shipping/shipping.service.d.ts +0 -7
- package/src/features/shipping/shipping.service.js +1 -96
- package/src/features/shipping-method/shipping-method.handler.js +1 -60
- package/src/features/shipping-method/shipping-method.route.js +1 -144
- package/src/features/shipping-method/shipping-method.schema.js +1 -48
- package/src/features/shipping-method/shipping-method.service.d.ts +0 -25
- package/src/features/shipping-method/shipping-method.service.js +1 -229
- package/src/features/shipping-method/shipping-zone.schema.js +1 -31
- package/src/features/webhook/webhook.handler.js +1 -50
- package/src/features/webhook/webhook.route.js +1 -33
- package/src/index.js +1 -6
- package/src/integrations/next.js +1 -82
- package/src/schemas/address.schema.d.ts +0 -8
- package/src/schemas/address.schema.js +1 -112
- package/src/schemas/currency.schema.d.ts +0 -42
- package/src/schemas/currency.schema.js +1 -118
- package/src/schemas/error.schema.js +1 -12
- package/src/schemas/index.js +1 -29
- package/src/schemas/locales.schema.js +1 -238
- package/src/schemas/number.schema.js +1 -29
- package/src/schemas/pagination.schema.js +1 -54
- package/src/schemas/params.schema.js +1 -20
- package/src/schemas/queries.schema.js +1 -6
- package/src/test/global-setup.d.ts +1 -0
- package/src/test/global-setup.js +1 -0
- package/src/test/integration/api-fixtures.d.ts +4 -16
- package/src/test/integration/api-fixtures.js +1 -225
- package/src/test/integration/seed.d.ts +81 -0
- package/src/test/integration/seed.js +1 -0
- package/src/test/integration/test-helpers.d.ts +107 -924
- package/src/test/integration/test-helpers.js +1 -1100
- package/src/test/setup-test-env.d.ts +1 -1
- package/src/test/setup-test-env.js +1 -29
- package/src/app.js.map +0 -1
- package/src/core/auth/auth.schema.js.map +0 -1
- package/src/core/auth/auth.util.js.map +0 -1
- package/src/core/auth/better-auth.lib.js.map +0 -1
- package/src/core/auth/generate-password-hash.util.js.map +0 -1
- package/src/core/auth/headers.schema.js.map +0 -1
- package/src/core/auth/user.schema.js.map +0 -1
- package/src/core/db/__generated__/client/browser.js.map +0 -1
- package/src/core/db/__generated__/client/client.js.map +0 -1
- package/src/core/db/__generated__/client/commonInputTypes.js.map +0 -1
- package/src/core/db/__generated__/client/enums.js.map +0 -1
- package/src/core/db/__generated__/client/internal/class.js.map +0 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +0 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +0 -1
- package/src/core/db/__generated__/client/models/Account.js.map +0 -1
- package/src/core/db/__generated__/client/models/Address.js.map +0 -1
- package/src/core/db/__generated__/client/models/Campaign.js.map +0 -1
- package/src/core/db/__generated__/client/models/ClosingTimes.js.map +0 -1
- package/src/core/db/__generated__/client/models/File.js.map +0 -1
- package/src/core/db/__generated__/client/models/Invitation.js.map +0 -1
- package/src/core/db/__generated__/client/models/LegalEntity.js.map +0 -1
- package/src/core/db/__generated__/client/models/Manufacturer.js.map +0 -1
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/Member.js.map +0 -1
- package/src/core/db/__generated__/client/models/Modifier.js.map +0 -1
- package/src/core/db/__generated__/client/models/ModifierGroup.js.map +0 -1
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/OpeningTimes.js.map +0 -1
- package/src/core/db/__generated__/client/models/Order.js.map +0 -1
- package/src/core/db/__generated__/client/models/OrderItem.js.map +0 -1
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/Organization.js.map +0 -1
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +0 -1
- package/src/core/db/__generated__/client/models/Payment.js.map +0 -1
- package/src/core/db/__generated__/client/models/PaymentSession.js.map +0 -1
- package/src/core/db/__generated__/client/models/Product.js.map +0 -1
- package/src/core/db/__generated__/client/models/ProductCategory.js.map +0 -1
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +0 -1
- package/src/core/db/__generated__/client/models/ProductTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/Reservation.js.map +0 -1
- package/src/core/db/__generated__/client/models/Session.js.map +0 -1
- package/src/core/db/__generated__/client/models/ShippingMethod.js.map +0 -1
- package/src/core/db/__generated__/client/models/ShippingZone.js.map +0 -1
- package/src/core/db/__generated__/client/models/User.js.map +0 -1
- package/src/core/db/__generated__/client/models/Verification.js.map +0 -1
- package/src/core/db/__generated__/client/models.js.map +0 -1
- package/src/core/db/index.js.map +0 -1
- package/src/core/exceptions/http-exception.js.map +0 -1
- package/src/core/hono/hono.js.map +0 -1
- package/src/core/lib/prisma.js.map +0 -1
- package/src/core/logging/pino.js.map +0 -1
- package/src/core/notifications/email.service.js.map +0 -1
- package/src/core/openapi/openapi.lib.js.map +0 -1
- package/src/core/types/google-maps.types.js.map +0 -1
- package/src/core/utils/currency.util.js.map +0 -1
- package/src/core/utils/env.util.js.map +0 -1
- package/src/core/utils/object.util.js.map +0 -1
- package/src/core/utils/translations.util.js.map +0 -1
- package/src/core/utils/zod.util.js.map +0 -1
- package/src/db.js.map +0 -1
- package/src/features/access/access.handler.js.map +0 -1
- package/src/features/access/access.route.js.map +0 -1
- package/src/features/access/access.schema.js.map +0 -1
- package/src/features/access/access.service.js.map +0 -1
- package/src/features/cart/cart.handler.js.map +0 -1
- package/src/features/cart/cart.route.js.map +0 -1
- package/src/features/cart/cart.schema.js.map +0 -1
- package/src/features/cart/cart.service.js.map +0 -1
- package/src/features/cart/cart.util.js.map +0 -1
- package/src/features/file/file.handler.js.map +0 -1
- package/src/features/file/file.route.js.map +0 -1
- package/src/features/file/file.schema.js.map +0 -1
- package/src/features/file/file.service.js.map +0 -1
- package/src/features/health/health.handler.js.map +0 -1
- package/src/features/health/health.route.js.map +0 -1
- package/src/features/index.js.map +0 -1
- package/src/features/location/location.handler.js.map +0 -1
- package/src/features/location/location.route.js.map +0 -1
- package/src/features/location/location.schema.js.map +0 -1
- package/src/features/location/location.service.js.map +0 -1
- package/src/features/manufacturer/manufacturer.handler.js.map +0 -1
- package/src/features/manufacturer/manufacturer.route.js.map +0 -1
- package/src/features/manufacturer/manufacturer.schema.js.map +0 -1
- package/src/features/manufacturer/manufacturer.service.js.map +0 -1
- package/src/features/order/emails/order-confirmation.email.js.map +0 -1
- package/src/features/order/emails/order-notification.email.js.map +0 -1
- package/src/features/order/fulfilment.schema.js.map +0 -1
- package/src/features/order/order.handler.js.map +0 -1
- package/src/features/order/order.route.js.map +0 -1
- package/src/features/order/order.schema.js.map +0 -1
- package/src/features/order/order.service.js.map +0 -1
- package/src/features/order/recipient.schema.js.map +0 -1
- package/src/features/organization/legal-entity.schema.js.map +0 -1
- package/src/features/organization/organization-configuration.schema.js.map +0 -1
- package/src/features/organization/organization.handler.js.map +0 -1
- package/src/features/organization/organization.route.js.map +0 -1
- package/src/features/organization/organization.schema.js.map +0 -1
- package/src/features/organization/organization.service.js.map +0 -1
- package/src/features/payment/payment.handler.js.map +0 -1
- package/src/features/payment/payment.route.js.map +0 -1
- package/src/features/payment/payment.schema.js.map +0 -1
- package/src/features/payment/payment.service.js.map +0 -1
- package/src/features/payment/stripe.service.js.map +0 -1
- package/src/features/product/product-modifier.schema.js.map +0 -1
- package/src/features/product/product.handler.js.map +0 -1
- package/src/features/product/product.route.js.map +0 -1
- package/src/features/product/product.schema.js.map +0 -1
- package/src/features/product/product.service.js.map +0 -1
- package/src/features/product-category/product-category.handler.js.map +0 -1
- package/src/features/product-category/product-category.route.js.map +0 -1
- package/src/features/product-category/product-category.schema.js.map +0 -1
- package/src/features/product-category/product-category.service.js.map +0 -1
- package/src/features/reservation/emails/reservation-cancellation.email.js.map +0 -1
- package/src/features/reservation/emails/reservation-confirmation.email.js.map +0 -1
- package/src/features/reservation/emails/reservation-notification.email.js.map +0 -1
- package/src/features/reservation/reservation.handler.js.map +0 -1
- package/src/features/reservation/reservation.route.js.map +0 -1
- package/src/features/reservation/reservation.schema.js.map +0 -1
- package/src/features/reservation/reservation.service.js.map +0 -1
- package/src/features/shipping/shipping.handler.js.map +0 -1
- package/src/features/shipping/shipping.route.js.map +0 -1
- package/src/features/shipping/shipping.service.js.map +0 -1
- package/src/features/shipping-method/shipping-method.handler.js.map +0 -1
- package/src/features/shipping-method/shipping-method.route.js.map +0 -1
- package/src/features/shipping-method/shipping-method.schema.js.map +0 -1
- package/src/features/shipping-method/shipping-method.service.js.map +0 -1
- package/src/features/shipping-method/shipping-zone.schema.js.map +0 -1
- package/src/features/webhook/webhook.handler.js.map +0 -1
- package/src/features/webhook/webhook.route.js.map +0 -1
- package/src/index.js.map +0 -1
- package/src/integrations/next.js.map +0 -1
- package/src/schemas/address.schema.js.map +0 -1
- package/src/schemas/currency.schema.js.map +0 -1
- package/src/schemas/error.schema.js.map +0 -1
- package/src/schemas/index.js.map +0 -1
- package/src/schemas/locales.schema.js.map +0 -1
- package/src/schemas/number.schema.js.map +0 -1
- package/src/schemas/pagination.schema.js.map +0 -1
- package/src/schemas/params.schema.js.map +0 -1
- package/src/schemas/queries.schema.js.map +0 -1
- package/src/test/integration/api-fixtures.js.map +0 -1
- package/src/test/integration/test-helpers.js.map +0 -1
- package/src/test/setup-test-env.js.map +0 -1
|
@@ -1,9 +1,5 @@
|
|
|
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
|
-
*/
|
|
7
3
|
export type ShippingMethodModel = runtime.Types.Result.DefaultSelection<Prisma.$ShippingMethodPayload>;
|
|
8
4
|
export type AggregateShippingMethod = {
|
|
9
5
|
_count: ShippingMethodCountAggregateOutputType | null;
|
|
@@ -109,51 +105,13 @@ export type ShippingMethodCountAggregateInputType = {
|
|
|
109
105
|
_all?: true;
|
|
110
106
|
};
|
|
111
107
|
export type ShippingMethodAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
112
|
-
/**
|
|
113
|
-
* Filter which ShippingMethod to aggregate.
|
|
114
|
-
*/
|
|
115
108
|
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
|
-
*/
|
|
121
109
|
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
|
-
*/
|
|
127
110
|
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
|
-
*/
|
|
133
111
|
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
|
-
*/
|
|
139
112
|
skip?: number;
|
|
140
|
-
/**
|
|
141
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
142
|
-
*
|
|
143
|
-
* Count returned ShippingMethods
|
|
144
|
-
**/
|
|
145
113
|
_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
|
-
**/
|
|
151
114
|
_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
|
-
**/
|
|
157
115
|
_max?: ShippingMethodMaxAggregateInputType;
|
|
158
116
|
};
|
|
159
117
|
export type GetShippingMethodAggregateType<T extends ShippingMethodAggregateArgs> = {
|
|
@@ -951,9 +909,6 @@ export type ShippingMethodUncheckedUpdateManyWithoutOrganizationInput = {
|
|
|
951
909
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
952
910
|
updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
953
911
|
};
|
|
954
|
-
/**
|
|
955
|
-
* Count Type ShippingMethodCountOutputType
|
|
956
|
-
*/
|
|
957
912
|
export type ShippingMethodCountOutputType = {
|
|
958
913
|
shippingZones: number;
|
|
959
914
|
orders: number;
|
|
@@ -962,24 +917,12 @@ export type ShippingMethodCountOutputTypeSelect<ExtArgs extends runtime.Types.Ex
|
|
|
962
917
|
shippingZones?: boolean | ShippingMethodCountOutputTypeCountShippingZonesArgs;
|
|
963
918
|
orders?: boolean | ShippingMethodCountOutputTypeCountOrdersArgs;
|
|
964
919
|
};
|
|
965
|
-
/**
|
|
966
|
-
* ShippingMethodCountOutputType without action
|
|
967
|
-
*/
|
|
968
920
|
export type ShippingMethodCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
969
|
-
/**
|
|
970
|
-
* Select specific fields to fetch from the ShippingMethodCountOutputType
|
|
971
|
-
*/
|
|
972
921
|
select?: Prisma.ShippingMethodCountOutputTypeSelect<ExtArgs> | null;
|
|
973
922
|
};
|
|
974
|
-
/**
|
|
975
|
-
* ShippingMethodCountOutputType without action
|
|
976
|
-
*/
|
|
977
923
|
export type ShippingMethodCountOutputTypeCountShippingZonesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
978
924
|
where?: Prisma.ShippingZoneWhereInput;
|
|
979
925
|
};
|
|
980
|
-
/**
|
|
981
|
-
* ShippingMethodCountOutputType without action
|
|
982
|
-
*/
|
|
983
926
|
export type ShippingMethodCountOutputTypeCountOrdersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
984
927
|
where?: Prisma.OrderWhereInput;
|
|
985
928
|
};
|
|
@@ -1109,290 +1052,22 @@ export interface ShippingMethodDelegate<ExtArgs extends runtime.Types.Extensions
|
|
|
1109
1052
|
name: 'ShippingMethod';
|
|
1110
1053
|
};
|
|
1111
1054
|
};
|
|
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
|
-
*/
|
|
1123
1055
|
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
|
-
*/
|
|
1136
1056
|
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
|
-
*/
|
|
1150
1057
|
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
|
-
*/
|
|
1165
1058
|
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
|
-
*/
|
|
1182
1059
|
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
|
-
*/
|
|
1195
1060
|
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
|
-
*/
|
|
1208
1061
|
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
|
-
*/
|
|
1231
1062
|
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
|
-
*/
|
|
1244
1063
|
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
|
-
*/
|
|
1260
1064
|
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
|
-
*/
|
|
1273
1065
|
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
|
-
*/
|
|
1291
1066
|
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
|
-
*/
|
|
1320
1067
|
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
|
-
*/
|
|
1338
1068
|
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
|
-
**/
|
|
1352
1069
|
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
|
-
**/
|
|
1377
1070
|
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
|
-
**/
|
|
1396
1071
|
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 ? {
|
|
1397
1072
|
orderBy: ShippingMethodGroupByArgs['orderBy'];
|
|
1398
1073
|
} : {
|
|
@@ -1411,47 +1086,18 @@ export interface ShippingMethodDelegate<ExtArgs extends runtime.Types.Extensions
|
|
|
1411
1086
|
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1412
1087
|
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1413
1088
|
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ShippingMethodGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShippingMethodGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1414
|
-
/**
|
|
1415
|
-
* Fields of the ShippingMethod model
|
|
1416
|
-
*/
|
|
1417
1089
|
readonly fields: ShippingMethodFieldRefs;
|
|
1418
1090
|
}
|
|
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
|
-
*/
|
|
1425
1091
|
export interface Prisma__ShippingMethodClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1426
1092
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1427
1093
|
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>;
|
|
1428
1094
|
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>;
|
|
1429
1095
|
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>;
|
|
1430
1096
|
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
|
-
*/
|
|
1437
1097
|
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
|
-
*/
|
|
1443
1098
|
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
|
-
*/
|
|
1450
1099
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1451
1100
|
}
|
|
1452
|
-
/**
|
|
1453
|
-
* Fields of the ShippingMethod model
|
|
1454
|
-
*/
|
|
1455
1101
|
export interface ShippingMethodFieldRefs {
|
|
1456
1102
|
readonly id: Prisma.FieldRef<"ShippingMethod", 'String'>;
|
|
1457
1103
|
readonly title: Prisma.FieldRef<"ShippingMethod", 'String'>;
|
|
@@ -1468,416 +1114,115 @@ export interface ShippingMethodFieldRefs {
|
|
|
1468
1114
|
readonly updatedAt: Prisma.FieldRef<"ShippingMethod", 'DateTime'>;
|
|
1469
1115
|
readonly updatedBy: Prisma.FieldRef<"ShippingMethod", 'String'>;
|
|
1470
1116
|
}
|
|
1471
|
-
/**
|
|
1472
|
-
* ShippingMethod findUnique
|
|
1473
|
-
*/
|
|
1474
1117
|
export type ShippingMethodFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1475
|
-
/**
|
|
1476
|
-
* Select specific fields to fetch from the ShippingMethod
|
|
1477
|
-
*/
|
|
1478
1118
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1479
|
-
/**
|
|
1480
|
-
* Omit specific fields from the ShippingMethod
|
|
1481
|
-
*/
|
|
1482
1119
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1483
|
-
/**
|
|
1484
|
-
* Choose, which related nodes to fetch as well
|
|
1485
|
-
*/
|
|
1486
1120
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1487
|
-
/**
|
|
1488
|
-
* Filter, which ShippingMethod to fetch.
|
|
1489
|
-
*/
|
|
1490
1121
|
where: Prisma.ShippingMethodWhereUniqueInput;
|
|
1491
1122
|
};
|
|
1492
|
-
/**
|
|
1493
|
-
* ShippingMethod findUniqueOrThrow
|
|
1494
|
-
*/
|
|
1495
1123
|
export type ShippingMethodFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1496
|
-
/**
|
|
1497
|
-
* Select specific fields to fetch from the ShippingMethod
|
|
1498
|
-
*/
|
|
1499
1124
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1500
|
-
/**
|
|
1501
|
-
* Omit specific fields from the ShippingMethod
|
|
1502
|
-
*/
|
|
1503
1125
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1504
|
-
/**
|
|
1505
|
-
* Choose, which related nodes to fetch as well
|
|
1506
|
-
*/
|
|
1507
1126
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1508
|
-
/**
|
|
1509
|
-
* Filter, which ShippingMethod to fetch.
|
|
1510
|
-
*/
|
|
1511
1127
|
where: Prisma.ShippingMethodWhereUniqueInput;
|
|
1512
1128
|
};
|
|
1513
|
-
/**
|
|
1514
|
-
* ShippingMethod findFirst
|
|
1515
|
-
*/
|
|
1516
1129
|
export type ShippingMethodFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1517
|
-
/**
|
|
1518
|
-
* Select specific fields to fetch from the ShippingMethod
|
|
1519
|
-
*/
|
|
1520
1130
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1521
|
-
/**
|
|
1522
|
-
* Omit specific fields from the ShippingMethod
|
|
1523
|
-
*/
|
|
1524
1131
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1525
|
-
/**
|
|
1526
|
-
* Choose, which related nodes to fetch as well
|
|
1527
|
-
*/
|
|
1528
1132
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1529
|
-
/**
|
|
1530
|
-
* Filter, which ShippingMethod to fetch.
|
|
1531
|
-
*/
|
|
1532
1133
|
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
|
-
*/
|
|
1538
1134
|
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
|
-
*/
|
|
1544
1135
|
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
|
-
*/
|
|
1550
1136
|
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
|
-
*/
|
|
1556
1137
|
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
|
-
*/
|
|
1562
1138
|
distinct?: Prisma.ShippingMethodScalarFieldEnum | Prisma.ShippingMethodScalarFieldEnum[];
|
|
1563
1139
|
};
|
|
1564
|
-
/**
|
|
1565
|
-
* ShippingMethod findFirstOrThrow
|
|
1566
|
-
*/
|
|
1567
1140
|
export type ShippingMethodFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1568
|
-
/**
|
|
1569
|
-
* Select specific fields to fetch from the ShippingMethod
|
|
1570
|
-
*/
|
|
1571
1141
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1572
|
-
/**
|
|
1573
|
-
* Omit specific fields from the ShippingMethod
|
|
1574
|
-
*/
|
|
1575
1142
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1576
|
-
/**
|
|
1577
|
-
* Choose, which related nodes to fetch as well
|
|
1578
|
-
*/
|
|
1579
1143
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1580
|
-
/**
|
|
1581
|
-
* Filter, which ShippingMethod to fetch.
|
|
1582
|
-
*/
|
|
1583
1144
|
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
|
-
*/
|
|
1589
1145
|
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
|
-
*/
|
|
1595
1146
|
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
|
-
*/
|
|
1601
1147
|
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
|
-
*/
|
|
1607
1148
|
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
|
-
*/
|
|
1613
1149
|
distinct?: Prisma.ShippingMethodScalarFieldEnum | Prisma.ShippingMethodScalarFieldEnum[];
|
|
1614
1150
|
};
|
|
1615
|
-
/**
|
|
1616
|
-
* ShippingMethod findMany
|
|
1617
|
-
*/
|
|
1618
1151
|
export type ShippingMethodFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1619
|
-
/**
|
|
1620
|
-
* Select specific fields to fetch from the ShippingMethod
|
|
1621
|
-
*/
|
|
1622
1152
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1623
|
-
/**
|
|
1624
|
-
* Omit specific fields from the ShippingMethod
|
|
1625
|
-
*/
|
|
1626
1153
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1627
|
-
/**
|
|
1628
|
-
* Choose, which related nodes to fetch as well
|
|
1629
|
-
*/
|
|
1630
1154
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1631
|
-
/**
|
|
1632
|
-
* Filter, which ShippingMethods to fetch.
|
|
1633
|
-
*/
|
|
1634
1155
|
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
|
-
*/
|
|
1640
1156
|
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
|
-
*/
|
|
1646
1157
|
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
|
-
*/
|
|
1652
1158
|
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
|
-
*/
|
|
1658
1159
|
skip?: number;
|
|
1659
1160
|
distinct?: Prisma.ShippingMethodScalarFieldEnum | Prisma.ShippingMethodScalarFieldEnum[];
|
|
1660
1161
|
};
|
|
1661
|
-
/**
|
|
1662
|
-
* ShippingMethod create
|
|
1663
|
-
*/
|
|
1664
1162
|
export type ShippingMethodCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1665
|
-
/**
|
|
1666
|
-
* Select specific fields to fetch from the ShippingMethod
|
|
1667
|
-
*/
|
|
1668
1163
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1669
|
-
/**
|
|
1670
|
-
* Omit specific fields from the ShippingMethod
|
|
1671
|
-
*/
|
|
1672
1164
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1673
|
-
/**
|
|
1674
|
-
* Choose, which related nodes to fetch as well
|
|
1675
|
-
*/
|
|
1676
1165
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1677
|
-
/**
|
|
1678
|
-
* The data needed to create a ShippingMethod.
|
|
1679
|
-
*/
|
|
1680
1166
|
data: Prisma.XOR<Prisma.ShippingMethodCreateInput, Prisma.ShippingMethodUncheckedCreateInput>;
|
|
1681
1167
|
};
|
|
1682
|
-
/**
|
|
1683
|
-
* ShippingMethod createMany
|
|
1684
|
-
*/
|
|
1685
1168
|
export type ShippingMethodCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1686
|
-
/**
|
|
1687
|
-
* The data used to create many ShippingMethods.
|
|
1688
|
-
*/
|
|
1689
1169
|
data: Prisma.ShippingMethodCreateManyInput | Prisma.ShippingMethodCreateManyInput[];
|
|
1690
1170
|
skipDuplicates?: boolean;
|
|
1691
1171
|
};
|
|
1692
|
-
/**
|
|
1693
|
-
* ShippingMethod createManyAndReturn
|
|
1694
|
-
*/
|
|
1695
1172
|
export type ShippingMethodCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1696
|
-
/**
|
|
1697
|
-
* Select specific fields to fetch from the ShippingMethod
|
|
1698
|
-
*/
|
|
1699
1173
|
select?: Prisma.ShippingMethodSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1700
|
-
/**
|
|
1701
|
-
* Omit specific fields from the ShippingMethod
|
|
1702
|
-
*/
|
|
1703
1174
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1704
|
-
/**
|
|
1705
|
-
* The data used to create many ShippingMethods.
|
|
1706
|
-
*/
|
|
1707
1175
|
data: Prisma.ShippingMethodCreateManyInput | Prisma.ShippingMethodCreateManyInput[];
|
|
1708
1176
|
skipDuplicates?: boolean;
|
|
1709
|
-
/**
|
|
1710
|
-
* Choose, which related nodes to fetch as well
|
|
1711
|
-
*/
|
|
1712
1177
|
include?: Prisma.ShippingMethodIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1713
1178
|
};
|
|
1714
|
-
/**
|
|
1715
|
-
* ShippingMethod update
|
|
1716
|
-
*/
|
|
1717
1179
|
export type ShippingMethodUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1718
|
-
/**
|
|
1719
|
-
* Select specific fields to fetch from the ShippingMethod
|
|
1720
|
-
*/
|
|
1721
1180
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1722
|
-
/**
|
|
1723
|
-
* Omit specific fields from the ShippingMethod
|
|
1724
|
-
*/
|
|
1725
1181
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1726
|
-
/**
|
|
1727
|
-
* Choose, which related nodes to fetch as well
|
|
1728
|
-
*/
|
|
1729
1182
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1730
|
-
/**
|
|
1731
|
-
* The data needed to update a ShippingMethod.
|
|
1732
|
-
*/
|
|
1733
1183
|
data: Prisma.XOR<Prisma.ShippingMethodUpdateInput, Prisma.ShippingMethodUncheckedUpdateInput>;
|
|
1734
|
-
/**
|
|
1735
|
-
* Choose, which ShippingMethod to update.
|
|
1736
|
-
*/
|
|
1737
1184
|
where: Prisma.ShippingMethodWhereUniqueInput;
|
|
1738
1185
|
};
|
|
1739
|
-
/**
|
|
1740
|
-
* ShippingMethod updateMany
|
|
1741
|
-
*/
|
|
1742
1186
|
export type ShippingMethodUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1743
|
-
/**
|
|
1744
|
-
* The data used to update ShippingMethods.
|
|
1745
|
-
*/
|
|
1746
1187
|
data: Prisma.XOR<Prisma.ShippingMethodUpdateManyMutationInput, Prisma.ShippingMethodUncheckedUpdateManyInput>;
|
|
1747
|
-
/**
|
|
1748
|
-
* Filter which ShippingMethods to update
|
|
1749
|
-
*/
|
|
1750
1188
|
where?: Prisma.ShippingMethodWhereInput;
|
|
1751
|
-
/**
|
|
1752
|
-
* Limit how many ShippingMethods to update.
|
|
1753
|
-
*/
|
|
1754
1189
|
limit?: number;
|
|
1755
1190
|
};
|
|
1756
|
-
/**
|
|
1757
|
-
* ShippingMethod updateManyAndReturn
|
|
1758
|
-
*/
|
|
1759
1191
|
export type ShippingMethodUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1760
|
-
/**
|
|
1761
|
-
* Select specific fields to fetch from the ShippingMethod
|
|
1762
|
-
*/
|
|
1763
1192
|
select?: Prisma.ShippingMethodSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1764
|
-
/**
|
|
1765
|
-
* Omit specific fields from the ShippingMethod
|
|
1766
|
-
*/
|
|
1767
1193
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1768
|
-
/**
|
|
1769
|
-
* The data used to update ShippingMethods.
|
|
1770
|
-
*/
|
|
1771
1194
|
data: Prisma.XOR<Prisma.ShippingMethodUpdateManyMutationInput, Prisma.ShippingMethodUncheckedUpdateManyInput>;
|
|
1772
|
-
/**
|
|
1773
|
-
* Filter which ShippingMethods to update
|
|
1774
|
-
*/
|
|
1775
1195
|
where?: Prisma.ShippingMethodWhereInput;
|
|
1776
|
-
/**
|
|
1777
|
-
* Limit how many ShippingMethods to update.
|
|
1778
|
-
*/
|
|
1779
1196
|
limit?: number;
|
|
1780
|
-
/**
|
|
1781
|
-
* Choose, which related nodes to fetch as well
|
|
1782
|
-
*/
|
|
1783
1197
|
include?: Prisma.ShippingMethodIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1784
1198
|
};
|
|
1785
|
-
/**
|
|
1786
|
-
* ShippingMethod upsert
|
|
1787
|
-
*/
|
|
1788
1199
|
export type ShippingMethodUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1789
|
-
/**
|
|
1790
|
-
* Select specific fields to fetch from the ShippingMethod
|
|
1791
|
-
*/
|
|
1792
1200
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1793
|
-
/**
|
|
1794
|
-
* Omit specific fields from the ShippingMethod
|
|
1795
|
-
*/
|
|
1796
1201
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1797
|
-
/**
|
|
1798
|
-
* Choose, which related nodes to fetch as well
|
|
1799
|
-
*/
|
|
1800
1202
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1801
|
-
/**
|
|
1802
|
-
* The filter to search for the ShippingMethod to update in case it exists.
|
|
1803
|
-
*/
|
|
1804
1203
|
where: Prisma.ShippingMethodWhereUniqueInput;
|
|
1805
|
-
/**
|
|
1806
|
-
* In case the ShippingMethod found by the `where` argument doesn't exist, create a new ShippingMethod with this data.
|
|
1807
|
-
*/
|
|
1808
1204
|
create: Prisma.XOR<Prisma.ShippingMethodCreateInput, Prisma.ShippingMethodUncheckedCreateInput>;
|
|
1809
|
-
/**
|
|
1810
|
-
* In case the ShippingMethod was found with the provided `where` argument, update it with this data.
|
|
1811
|
-
*/
|
|
1812
1205
|
update: Prisma.XOR<Prisma.ShippingMethodUpdateInput, Prisma.ShippingMethodUncheckedUpdateInput>;
|
|
1813
1206
|
};
|
|
1814
|
-
/**
|
|
1815
|
-
* ShippingMethod delete
|
|
1816
|
-
*/
|
|
1817
1207
|
export type ShippingMethodDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1818
|
-
/**
|
|
1819
|
-
* Select specific fields to fetch from the ShippingMethod
|
|
1820
|
-
*/
|
|
1821
1208
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1822
|
-
/**
|
|
1823
|
-
* Omit specific fields from the ShippingMethod
|
|
1824
|
-
*/
|
|
1825
1209
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1826
|
-
/**
|
|
1827
|
-
* Choose, which related nodes to fetch as well
|
|
1828
|
-
*/
|
|
1829
1210
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1830
|
-
/**
|
|
1831
|
-
* Filter which ShippingMethod to delete.
|
|
1832
|
-
*/
|
|
1833
1211
|
where: Prisma.ShippingMethodWhereUniqueInput;
|
|
1834
1212
|
};
|
|
1835
|
-
/**
|
|
1836
|
-
* ShippingMethod deleteMany
|
|
1837
|
-
*/
|
|
1838
1213
|
export type ShippingMethodDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1839
|
-
/**
|
|
1840
|
-
* Filter which ShippingMethods to delete
|
|
1841
|
-
*/
|
|
1842
1214
|
where?: Prisma.ShippingMethodWhereInput;
|
|
1843
|
-
/**
|
|
1844
|
-
* Limit how many ShippingMethods to delete.
|
|
1845
|
-
*/
|
|
1846
1215
|
limit?: number;
|
|
1847
1216
|
};
|
|
1848
|
-
/**
|
|
1849
|
-
* ShippingMethod.providerLogo
|
|
1850
|
-
*/
|
|
1851
1217
|
export type ShippingMethod$providerLogoArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1852
|
-
/**
|
|
1853
|
-
* Select specific fields to fetch from the File
|
|
1854
|
-
*/
|
|
1855
1218
|
select?: Prisma.FileSelect<ExtArgs> | null;
|
|
1856
|
-
/**
|
|
1857
|
-
* Omit specific fields from the File
|
|
1858
|
-
*/
|
|
1859
1219
|
omit?: Prisma.FileOmit<ExtArgs> | null;
|
|
1860
|
-
/**
|
|
1861
|
-
* Choose, which related nodes to fetch as well
|
|
1862
|
-
*/
|
|
1863
1220
|
include?: Prisma.FileInclude<ExtArgs> | null;
|
|
1864
1221
|
where?: Prisma.FileWhereInput;
|
|
1865
1222
|
};
|
|
1866
|
-
/**
|
|
1867
|
-
* ShippingMethod.shippingZones
|
|
1868
|
-
*/
|
|
1869
1223
|
export type ShippingMethod$shippingZonesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1870
|
-
/**
|
|
1871
|
-
* Select specific fields to fetch from the ShippingZone
|
|
1872
|
-
*/
|
|
1873
1224
|
select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
|
|
1874
|
-
/**
|
|
1875
|
-
* Omit specific fields from the ShippingZone
|
|
1876
|
-
*/
|
|
1877
1225
|
omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
|
|
1878
|
-
/**
|
|
1879
|
-
* Choose, which related nodes to fetch as well
|
|
1880
|
-
*/
|
|
1881
1226
|
include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
|
|
1882
1227
|
where?: Prisma.ShippingZoneWhereInput;
|
|
1883
1228
|
orderBy?: Prisma.ShippingZoneOrderByWithRelationInput | Prisma.ShippingZoneOrderByWithRelationInput[];
|
|
@@ -1886,21 +1231,9 @@ export type ShippingMethod$shippingZonesArgs<ExtArgs extends runtime.Types.Exten
|
|
|
1886
1231
|
skip?: number;
|
|
1887
1232
|
distinct?: Prisma.ShippingZoneScalarFieldEnum | Prisma.ShippingZoneScalarFieldEnum[];
|
|
1888
1233
|
};
|
|
1889
|
-
/**
|
|
1890
|
-
* ShippingMethod.orders
|
|
1891
|
-
*/
|
|
1892
1234
|
export type ShippingMethod$ordersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1893
|
-
/**
|
|
1894
|
-
* Select specific fields to fetch from the Order
|
|
1895
|
-
*/
|
|
1896
1235
|
select?: Prisma.OrderSelect<ExtArgs> | null;
|
|
1897
|
-
/**
|
|
1898
|
-
* Omit specific fields from the Order
|
|
1899
|
-
*/
|
|
1900
1236
|
omit?: Prisma.OrderOmit<ExtArgs> | null;
|
|
1901
|
-
/**
|
|
1902
|
-
* Choose, which related nodes to fetch as well
|
|
1903
|
-
*/
|
|
1904
1237
|
include?: Prisma.OrderInclude<ExtArgs> | null;
|
|
1905
1238
|
where?: Prisma.OrderWhereInput;
|
|
1906
1239
|
orderBy?: Prisma.OrderOrderByWithRelationInput | Prisma.OrderOrderByWithRelationInput[];
|
|
@@ -1909,21 +1242,9 @@ export type ShippingMethod$ordersArgs<ExtArgs extends runtime.Types.Extensions.I
|
|
|
1909
1242
|
skip?: number;
|
|
1910
1243
|
distinct?: Prisma.OrderScalarFieldEnum | Prisma.OrderScalarFieldEnum[];
|
|
1911
1244
|
};
|
|
1912
|
-
/**
|
|
1913
|
-
* ShippingMethod without action
|
|
1914
|
-
*/
|
|
1915
1245
|
export type ShippingMethodDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1916
|
-
/**
|
|
1917
|
-
* Select specific fields to fetch from the ShippingMethod
|
|
1918
|
-
*/
|
|
1919
1246
|
select?: Prisma.ShippingMethodSelect<ExtArgs> | null;
|
|
1920
|
-
/**
|
|
1921
|
-
* Omit specific fields from the ShippingMethod
|
|
1922
|
-
*/
|
|
1923
1247
|
omit?: Prisma.ShippingMethodOmit<ExtArgs> | null;
|
|
1924
|
-
/**
|
|
1925
|
-
* Choose, which related nodes to fetch as well
|
|
1926
|
-
*/
|
|
1927
1248
|
include?: Prisma.ShippingMethodInclude<ExtArgs> | null;
|
|
1928
1249
|
};
|
|
1929
1250
|
export {};
|