@shophost/rest-api 2.0.32 → 2.0.34
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,6 +1,10 @@
|
|
|
1
1
|
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
2
|
import type * as $Enums from "../enums";
|
|
3
3
|
import type * as Prisma from "../internal/prismaNamespace";
|
|
4
|
+
/**
|
|
5
|
+
* Model Campaign
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
4
8
|
export type CampaignModel = runtime.Types.Result.DefaultSelection<Prisma.$CampaignPayload>;
|
|
5
9
|
export type AggregateCampaign = {
|
|
6
10
|
_count: CampaignCountAggregateOutputType | null;
|
|
@@ -112,15 +116,63 @@ export type CampaignCountAggregateInputType = {
|
|
|
112
116
|
_all?: true;
|
|
113
117
|
};
|
|
114
118
|
export type CampaignAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
119
|
+
/**
|
|
120
|
+
* Filter which Campaign to aggregate.
|
|
121
|
+
*/
|
|
115
122
|
where?: Prisma.CampaignWhereInput;
|
|
123
|
+
/**
|
|
124
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
125
|
+
*
|
|
126
|
+
* Determine the order of Campaigns to fetch.
|
|
127
|
+
*/
|
|
116
128
|
orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[];
|
|
129
|
+
/**
|
|
130
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
131
|
+
*
|
|
132
|
+
* Sets the start position
|
|
133
|
+
*/
|
|
117
134
|
cursor?: Prisma.CampaignWhereUniqueInput;
|
|
135
|
+
/**
|
|
136
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
137
|
+
*
|
|
138
|
+
* Take `±n` Campaigns from the position of the cursor.
|
|
139
|
+
*/
|
|
118
140
|
take?: number;
|
|
141
|
+
/**
|
|
142
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
143
|
+
*
|
|
144
|
+
* Skip the first `n` Campaigns.
|
|
145
|
+
*/
|
|
119
146
|
skip?: number;
|
|
147
|
+
/**
|
|
148
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
149
|
+
*
|
|
150
|
+
* Count returned Campaigns
|
|
151
|
+
**/
|
|
120
152
|
_count?: true | CampaignCountAggregateInputType;
|
|
153
|
+
/**
|
|
154
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
155
|
+
*
|
|
156
|
+
* Select which fields to average
|
|
157
|
+
**/
|
|
121
158
|
_avg?: CampaignAvgAggregateInputType;
|
|
159
|
+
/**
|
|
160
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
161
|
+
*
|
|
162
|
+
* Select which fields to sum
|
|
163
|
+
**/
|
|
122
164
|
_sum?: CampaignSumAggregateInputType;
|
|
165
|
+
/**
|
|
166
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
167
|
+
*
|
|
168
|
+
* Select which fields to find the minimum value
|
|
169
|
+
**/
|
|
123
170
|
_min?: CampaignMinAggregateInputType;
|
|
171
|
+
/**
|
|
172
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
173
|
+
*
|
|
174
|
+
* Select which fields to find the maximum value
|
|
175
|
+
**/
|
|
124
176
|
_max?: CampaignMaxAggregateInputType;
|
|
125
177
|
};
|
|
126
178
|
export type GetCampaignAggregateType<T extends CampaignAggregateArgs> = {
|
|
@@ -661,22 +713,290 @@ export interface CampaignDelegate<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
661
713
|
name: 'Campaign';
|
|
662
714
|
};
|
|
663
715
|
};
|
|
716
|
+
/**
|
|
717
|
+
* Find zero or one Campaign that matches the filter.
|
|
718
|
+
* @param {CampaignFindUniqueArgs} args - Arguments to find a Campaign
|
|
719
|
+
* @example
|
|
720
|
+
* // Get one Campaign
|
|
721
|
+
* const campaign = await prisma.campaign.findUnique({
|
|
722
|
+
* where: {
|
|
723
|
+
* // ... provide filter here
|
|
724
|
+
* }
|
|
725
|
+
* })
|
|
726
|
+
*/
|
|
664
727
|
findUnique<T extends CampaignFindUniqueArgs>(args: Prisma.SelectSubset<T, CampaignFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
728
|
+
/**
|
|
729
|
+
* Find one Campaign that matches the filter or throw an error with `error.code='P2025'`
|
|
730
|
+
* if no matches were found.
|
|
731
|
+
* @param {CampaignFindUniqueOrThrowArgs} args - Arguments to find a Campaign
|
|
732
|
+
* @example
|
|
733
|
+
* // Get one Campaign
|
|
734
|
+
* const campaign = await prisma.campaign.findUniqueOrThrow({
|
|
735
|
+
* where: {
|
|
736
|
+
* // ... provide filter here
|
|
737
|
+
* }
|
|
738
|
+
* })
|
|
739
|
+
*/
|
|
665
740
|
findUniqueOrThrow<T extends CampaignFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CampaignFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
741
|
+
/**
|
|
742
|
+
* Find the first Campaign that matches the filter.
|
|
743
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
744
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
745
|
+
* @param {CampaignFindFirstArgs} args - Arguments to find a Campaign
|
|
746
|
+
* @example
|
|
747
|
+
* // Get one Campaign
|
|
748
|
+
* const campaign = await prisma.campaign.findFirst({
|
|
749
|
+
* where: {
|
|
750
|
+
* // ... provide filter here
|
|
751
|
+
* }
|
|
752
|
+
* })
|
|
753
|
+
*/
|
|
666
754
|
findFirst<T extends CampaignFindFirstArgs>(args?: Prisma.SelectSubset<T, CampaignFindFirstArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
755
|
+
/**
|
|
756
|
+
* Find the first Campaign that matches the filter or
|
|
757
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
758
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
759
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
760
|
+
* @param {CampaignFindFirstOrThrowArgs} args - Arguments to find a Campaign
|
|
761
|
+
* @example
|
|
762
|
+
* // Get one Campaign
|
|
763
|
+
* const campaign = await prisma.campaign.findFirstOrThrow({
|
|
764
|
+
* where: {
|
|
765
|
+
* // ... provide filter here
|
|
766
|
+
* }
|
|
767
|
+
* })
|
|
768
|
+
*/
|
|
667
769
|
findFirstOrThrow<T extends CampaignFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CampaignFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
770
|
+
/**
|
|
771
|
+
* Find zero or more Campaigns that matches the filter.
|
|
772
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
773
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
774
|
+
* @param {CampaignFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
775
|
+
* @example
|
|
776
|
+
* // Get all Campaigns
|
|
777
|
+
* const campaigns = await prisma.campaign.findMany()
|
|
778
|
+
*
|
|
779
|
+
* // Get first 10 Campaigns
|
|
780
|
+
* const campaigns = await prisma.campaign.findMany({ take: 10 })
|
|
781
|
+
*
|
|
782
|
+
* // Only select the `id`
|
|
783
|
+
* const campaignWithIdOnly = await prisma.campaign.findMany({ select: { id: true } })
|
|
784
|
+
*
|
|
785
|
+
*/
|
|
668
786
|
findMany<T extends CampaignFindManyArgs>(args?: Prisma.SelectSubset<T, CampaignFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
787
|
+
/**
|
|
788
|
+
* Create a Campaign.
|
|
789
|
+
* @param {CampaignCreateArgs} args - Arguments to create a Campaign.
|
|
790
|
+
* @example
|
|
791
|
+
* // Create one Campaign
|
|
792
|
+
* const Campaign = await prisma.campaign.create({
|
|
793
|
+
* data: {
|
|
794
|
+
* // ... data to create a Campaign
|
|
795
|
+
* }
|
|
796
|
+
* })
|
|
797
|
+
*
|
|
798
|
+
*/
|
|
669
799
|
create<T extends CampaignCreateArgs>(args: Prisma.SelectSubset<T, CampaignCreateArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
800
|
+
/**
|
|
801
|
+
* Create many Campaigns.
|
|
802
|
+
* @param {CampaignCreateManyArgs} args - Arguments to create many Campaigns.
|
|
803
|
+
* @example
|
|
804
|
+
* // Create many Campaigns
|
|
805
|
+
* const campaign = await prisma.campaign.createMany({
|
|
806
|
+
* data: [
|
|
807
|
+
* // ... provide data here
|
|
808
|
+
* ]
|
|
809
|
+
* })
|
|
810
|
+
*
|
|
811
|
+
*/
|
|
670
812
|
createMany<T extends CampaignCreateManyArgs>(args?: Prisma.SelectSubset<T, CampaignCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
813
|
+
/**
|
|
814
|
+
* Create many Campaigns and returns the data saved in the database.
|
|
815
|
+
* @param {CampaignCreateManyAndReturnArgs} args - Arguments to create many Campaigns.
|
|
816
|
+
* @example
|
|
817
|
+
* // Create many Campaigns
|
|
818
|
+
* const campaign = await prisma.campaign.createManyAndReturn({
|
|
819
|
+
* data: [
|
|
820
|
+
* // ... provide data here
|
|
821
|
+
* ]
|
|
822
|
+
* })
|
|
823
|
+
*
|
|
824
|
+
* // Create many Campaigns and only return the `id`
|
|
825
|
+
* const campaignWithIdOnly = await prisma.campaign.createManyAndReturn({
|
|
826
|
+
* select: { id: true },
|
|
827
|
+
* data: [
|
|
828
|
+
* // ... provide data here
|
|
829
|
+
* ]
|
|
830
|
+
* })
|
|
831
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
832
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
833
|
+
*
|
|
834
|
+
*/
|
|
671
835
|
createManyAndReturn<T extends CampaignCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CampaignCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
836
|
+
/**
|
|
837
|
+
* Delete a Campaign.
|
|
838
|
+
* @param {CampaignDeleteArgs} args - Arguments to delete one Campaign.
|
|
839
|
+
* @example
|
|
840
|
+
* // Delete one Campaign
|
|
841
|
+
* const Campaign = await prisma.campaign.delete({
|
|
842
|
+
* where: {
|
|
843
|
+
* // ... filter to delete one Campaign
|
|
844
|
+
* }
|
|
845
|
+
* })
|
|
846
|
+
*
|
|
847
|
+
*/
|
|
672
848
|
delete<T extends CampaignDeleteArgs>(args: Prisma.SelectSubset<T, CampaignDeleteArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
849
|
+
/**
|
|
850
|
+
* Update one Campaign.
|
|
851
|
+
* @param {CampaignUpdateArgs} args - Arguments to update one Campaign.
|
|
852
|
+
* @example
|
|
853
|
+
* // Update one Campaign
|
|
854
|
+
* const campaign = await prisma.campaign.update({
|
|
855
|
+
* where: {
|
|
856
|
+
* // ... provide filter here
|
|
857
|
+
* },
|
|
858
|
+
* data: {
|
|
859
|
+
* // ... provide data here
|
|
860
|
+
* }
|
|
861
|
+
* })
|
|
862
|
+
*
|
|
863
|
+
*/
|
|
673
864
|
update<T extends CampaignUpdateArgs>(args: Prisma.SelectSubset<T, CampaignUpdateArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
865
|
+
/**
|
|
866
|
+
* Delete zero or more Campaigns.
|
|
867
|
+
* @param {CampaignDeleteManyArgs} args - Arguments to filter Campaigns to delete.
|
|
868
|
+
* @example
|
|
869
|
+
* // Delete a few Campaigns
|
|
870
|
+
* const { count } = await prisma.campaign.deleteMany({
|
|
871
|
+
* where: {
|
|
872
|
+
* // ... provide filter here
|
|
873
|
+
* }
|
|
874
|
+
* })
|
|
875
|
+
*
|
|
876
|
+
*/
|
|
674
877
|
deleteMany<T extends CampaignDeleteManyArgs>(args?: Prisma.SelectSubset<T, CampaignDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
878
|
+
/**
|
|
879
|
+
* Update zero or more Campaigns.
|
|
880
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
881
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
882
|
+
* @param {CampaignUpdateManyArgs} args - Arguments to update one or more rows.
|
|
883
|
+
* @example
|
|
884
|
+
* // Update many Campaigns
|
|
885
|
+
* const campaign = await prisma.campaign.updateMany({
|
|
886
|
+
* where: {
|
|
887
|
+
* // ... provide filter here
|
|
888
|
+
* },
|
|
889
|
+
* data: {
|
|
890
|
+
* // ... provide data here
|
|
891
|
+
* }
|
|
892
|
+
* })
|
|
893
|
+
*
|
|
894
|
+
*/
|
|
675
895
|
updateMany<T extends CampaignUpdateManyArgs>(args: Prisma.SelectSubset<T, CampaignUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
896
|
+
/**
|
|
897
|
+
* Update zero or more Campaigns and returns the data updated in the database.
|
|
898
|
+
* @param {CampaignUpdateManyAndReturnArgs} args - Arguments to update many Campaigns.
|
|
899
|
+
* @example
|
|
900
|
+
* // Update many Campaigns
|
|
901
|
+
* const campaign = await prisma.campaign.updateManyAndReturn({
|
|
902
|
+
* where: {
|
|
903
|
+
* // ... provide filter here
|
|
904
|
+
* },
|
|
905
|
+
* data: [
|
|
906
|
+
* // ... provide data here
|
|
907
|
+
* ]
|
|
908
|
+
* })
|
|
909
|
+
*
|
|
910
|
+
* // Update zero or more Campaigns and only return the `id`
|
|
911
|
+
* const campaignWithIdOnly = await prisma.campaign.updateManyAndReturn({
|
|
912
|
+
* select: { id: true },
|
|
913
|
+
* where: {
|
|
914
|
+
* // ... provide filter here
|
|
915
|
+
* },
|
|
916
|
+
* data: [
|
|
917
|
+
* // ... provide data here
|
|
918
|
+
* ]
|
|
919
|
+
* })
|
|
920
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
921
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
922
|
+
*
|
|
923
|
+
*/
|
|
676
924
|
updateManyAndReturn<T extends CampaignUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CampaignUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
925
|
+
/**
|
|
926
|
+
* Create or update one Campaign.
|
|
927
|
+
* @param {CampaignUpsertArgs} args - Arguments to update or create a Campaign.
|
|
928
|
+
* @example
|
|
929
|
+
* // Update or create a Campaign
|
|
930
|
+
* const campaign = await prisma.campaign.upsert({
|
|
931
|
+
* create: {
|
|
932
|
+
* // ... data to create a Campaign
|
|
933
|
+
* },
|
|
934
|
+
* update: {
|
|
935
|
+
* // ... in case it already exists, update
|
|
936
|
+
* },
|
|
937
|
+
* where: {
|
|
938
|
+
* // ... the filter for the Campaign we want to update
|
|
939
|
+
* }
|
|
940
|
+
* })
|
|
941
|
+
*/
|
|
677
942
|
upsert<T extends CampaignUpsertArgs>(args: Prisma.SelectSubset<T, CampaignUpsertArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
943
|
+
/**
|
|
944
|
+
* Count the number of Campaigns.
|
|
945
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
946
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
947
|
+
* @param {CampaignCountArgs} args - Arguments to filter Campaigns to count.
|
|
948
|
+
* @example
|
|
949
|
+
* // Count the number of Campaigns
|
|
950
|
+
* const count = await prisma.campaign.count({
|
|
951
|
+
* where: {
|
|
952
|
+
* // ... the filter for the Campaigns we want to count
|
|
953
|
+
* }
|
|
954
|
+
* })
|
|
955
|
+
**/
|
|
678
956
|
count<T extends CampaignCountArgs>(args?: Prisma.Subset<T, CampaignCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], CampaignCountAggregateOutputType> : number>;
|
|
957
|
+
/**
|
|
958
|
+
* Allows you to perform aggregations operations on a Campaign.
|
|
959
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
960
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
961
|
+
* @param {CampaignAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
962
|
+
* @example
|
|
963
|
+
* // Ordered by age ascending
|
|
964
|
+
* // Where email contains prisma.io
|
|
965
|
+
* // Limited to the 10 users
|
|
966
|
+
* const aggregations = await prisma.user.aggregate({
|
|
967
|
+
* _avg: {
|
|
968
|
+
* age: true,
|
|
969
|
+
* },
|
|
970
|
+
* where: {
|
|
971
|
+
* email: {
|
|
972
|
+
* contains: "prisma.io",
|
|
973
|
+
* },
|
|
974
|
+
* },
|
|
975
|
+
* orderBy: {
|
|
976
|
+
* age: "asc",
|
|
977
|
+
* },
|
|
978
|
+
* take: 10,
|
|
979
|
+
* })
|
|
980
|
+
**/
|
|
679
981
|
aggregate<T extends CampaignAggregateArgs>(args: Prisma.Subset<T, CampaignAggregateArgs>): Prisma.PrismaPromise<GetCampaignAggregateType<T>>;
|
|
982
|
+
/**
|
|
983
|
+
* Group by Campaign.
|
|
984
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
985
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
986
|
+
* @param {CampaignGroupByArgs} args - Group by arguments.
|
|
987
|
+
* @example
|
|
988
|
+
* // Group by city, order by createdAt, get count
|
|
989
|
+
* const result = await prisma.user.groupBy({
|
|
990
|
+
* by: ['city', 'createdAt'],
|
|
991
|
+
* orderBy: {
|
|
992
|
+
* createdAt: true
|
|
993
|
+
* },
|
|
994
|
+
* _count: {
|
|
995
|
+
* _all: true
|
|
996
|
+
* },
|
|
997
|
+
* })
|
|
998
|
+
*
|
|
999
|
+
**/
|
|
680
1000
|
groupBy<T extends CampaignGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
681
1001
|
orderBy: CampaignGroupByArgs['orderBy'];
|
|
682
1002
|
} : {
|
|
@@ -695,15 +1015,44 @@ export interface CampaignDelegate<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
695
1015
|
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
696
1016
|
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
697
1017
|
}[OrderFields]>(args: Prisma.SubsetIntersection<T, CampaignGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCampaignGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1018
|
+
/**
|
|
1019
|
+
* Fields of the Campaign model
|
|
1020
|
+
*/
|
|
698
1021
|
readonly fields: CampaignFieldRefs;
|
|
699
1022
|
}
|
|
1023
|
+
/**
|
|
1024
|
+
* The delegate class that acts as a "Promise-like" for Campaign.
|
|
1025
|
+
* Why is this prefixed with `Prisma__`?
|
|
1026
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1027
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1028
|
+
*/
|
|
700
1029
|
export interface Prisma__CampaignClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
701
1030
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
702
1031
|
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>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1034
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1035
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1036
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1037
|
+
*/
|
|
703
1038
|
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>;
|
|
1039
|
+
/**
|
|
1040
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1041
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1042
|
+
* @returns A Promise for the completion of the callback.
|
|
1043
|
+
*/
|
|
704
1044
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1045
|
+
/**
|
|
1046
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1047
|
+
* resolved value cannot be modified from the callback.
|
|
1048
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1049
|
+
* @returns A Promise for the completion of the callback.
|
|
1050
|
+
*/
|
|
705
1051
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
706
1052
|
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Fields of the Campaign model
|
|
1055
|
+
*/
|
|
707
1056
|
export interface CampaignFieldRefs {
|
|
708
1057
|
readonly id: Prisma.FieldRef<"Campaign", 'String'>;
|
|
709
1058
|
readonly title: Prisma.FieldRef<"Campaign", 'String'>;
|
|
@@ -718,109 +1067,403 @@ export interface CampaignFieldRefs {
|
|
|
718
1067
|
readonly createdAt: Prisma.FieldRef<"Campaign", 'DateTime'>;
|
|
719
1068
|
readonly updatedAt: Prisma.FieldRef<"Campaign", 'DateTime'>;
|
|
720
1069
|
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Campaign findUnique
|
|
1072
|
+
*/
|
|
721
1073
|
export type CampaignFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1074
|
+
/**
|
|
1075
|
+
* Select specific fields to fetch from the Campaign
|
|
1076
|
+
*/
|
|
722
1077
|
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1078
|
+
/**
|
|
1079
|
+
* Omit specific fields from the Campaign
|
|
1080
|
+
*/
|
|
723
1081
|
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1082
|
+
/**
|
|
1083
|
+
* Choose, which related nodes to fetch as well
|
|
1084
|
+
*/
|
|
724
1085
|
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1086
|
+
/**
|
|
1087
|
+
* Filter, which Campaign to fetch.
|
|
1088
|
+
*/
|
|
725
1089
|
where: Prisma.CampaignWhereUniqueInput;
|
|
726
1090
|
};
|
|
1091
|
+
/**
|
|
1092
|
+
* Campaign findUniqueOrThrow
|
|
1093
|
+
*/
|
|
727
1094
|
export type CampaignFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1095
|
+
/**
|
|
1096
|
+
* Select specific fields to fetch from the Campaign
|
|
1097
|
+
*/
|
|
728
1098
|
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1099
|
+
/**
|
|
1100
|
+
* Omit specific fields from the Campaign
|
|
1101
|
+
*/
|
|
729
1102
|
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1103
|
+
/**
|
|
1104
|
+
* Choose, which related nodes to fetch as well
|
|
1105
|
+
*/
|
|
730
1106
|
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1107
|
+
/**
|
|
1108
|
+
* Filter, which Campaign to fetch.
|
|
1109
|
+
*/
|
|
731
1110
|
where: Prisma.CampaignWhereUniqueInput;
|
|
732
1111
|
};
|
|
1112
|
+
/**
|
|
1113
|
+
* Campaign findFirst
|
|
1114
|
+
*/
|
|
733
1115
|
export type CampaignFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1116
|
+
/**
|
|
1117
|
+
* Select specific fields to fetch from the Campaign
|
|
1118
|
+
*/
|
|
734
1119
|
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1120
|
+
/**
|
|
1121
|
+
* Omit specific fields from the Campaign
|
|
1122
|
+
*/
|
|
735
1123
|
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1124
|
+
/**
|
|
1125
|
+
* Choose, which related nodes to fetch as well
|
|
1126
|
+
*/
|
|
736
1127
|
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1128
|
+
/**
|
|
1129
|
+
* Filter, which Campaign to fetch.
|
|
1130
|
+
*/
|
|
737
1131
|
where?: Prisma.CampaignWhereInput;
|
|
1132
|
+
/**
|
|
1133
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1134
|
+
*
|
|
1135
|
+
* Determine the order of Campaigns to fetch.
|
|
1136
|
+
*/
|
|
738
1137
|
orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[];
|
|
1138
|
+
/**
|
|
1139
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1140
|
+
*
|
|
1141
|
+
* Sets the position for searching for Campaigns.
|
|
1142
|
+
*/
|
|
739
1143
|
cursor?: Prisma.CampaignWhereUniqueInput;
|
|
1144
|
+
/**
|
|
1145
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1146
|
+
*
|
|
1147
|
+
* Take `±n` Campaigns from the position of the cursor.
|
|
1148
|
+
*/
|
|
740
1149
|
take?: number;
|
|
1150
|
+
/**
|
|
1151
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1152
|
+
*
|
|
1153
|
+
* Skip the first `n` Campaigns.
|
|
1154
|
+
*/
|
|
741
1155
|
skip?: number;
|
|
1156
|
+
/**
|
|
1157
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1158
|
+
*
|
|
1159
|
+
* Filter by unique combinations of Campaigns.
|
|
1160
|
+
*/
|
|
742
1161
|
distinct?: Prisma.CampaignScalarFieldEnum | Prisma.CampaignScalarFieldEnum[];
|
|
743
1162
|
};
|
|
1163
|
+
/**
|
|
1164
|
+
* Campaign findFirstOrThrow
|
|
1165
|
+
*/
|
|
744
1166
|
export type CampaignFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1167
|
+
/**
|
|
1168
|
+
* Select specific fields to fetch from the Campaign
|
|
1169
|
+
*/
|
|
745
1170
|
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1171
|
+
/**
|
|
1172
|
+
* Omit specific fields from the Campaign
|
|
1173
|
+
*/
|
|
746
1174
|
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1175
|
+
/**
|
|
1176
|
+
* Choose, which related nodes to fetch as well
|
|
1177
|
+
*/
|
|
747
1178
|
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1179
|
+
/**
|
|
1180
|
+
* Filter, which Campaign to fetch.
|
|
1181
|
+
*/
|
|
748
1182
|
where?: Prisma.CampaignWhereInput;
|
|
1183
|
+
/**
|
|
1184
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1185
|
+
*
|
|
1186
|
+
* Determine the order of Campaigns to fetch.
|
|
1187
|
+
*/
|
|
749
1188
|
orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[];
|
|
1189
|
+
/**
|
|
1190
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1191
|
+
*
|
|
1192
|
+
* Sets the position for searching for Campaigns.
|
|
1193
|
+
*/
|
|
750
1194
|
cursor?: Prisma.CampaignWhereUniqueInput;
|
|
1195
|
+
/**
|
|
1196
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1197
|
+
*
|
|
1198
|
+
* Take `±n` Campaigns from the position of the cursor.
|
|
1199
|
+
*/
|
|
751
1200
|
take?: number;
|
|
1201
|
+
/**
|
|
1202
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1203
|
+
*
|
|
1204
|
+
* Skip the first `n` Campaigns.
|
|
1205
|
+
*/
|
|
752
1206
|
skip?: number;
|
|
1207
|
+
/**
|
|
1208
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1209
|
+
*
|
|
1210
|
+
* Filter by unique combinations of Campaigns.
|
|
1211
|
+
*/
|
|
753
1212
|
distinct?: Prisma.CampaignScalarFieldEnum | Prisma.CampaignScalarFieldEnum[];
|
|
754
1213
|
};
|
|
1214
|
+
/**
|
|
1215
|
+
* Campaign findMany
|
|
1216
|
+
*/
|
|
755
1217
|
export type CampaignFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1218
|
+
/**
|
|
1219
|
+
* Select specific fields to fetch from the Campaign
|
|
1220
|
+
*/
|
|
756
1221
|
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1222
|
+
/**
|
|
1223
|
+
* Omit specific fields from the Campaign
|
|
1224
|
+
*/
|
|
757
1225
|
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1226
|
+
/**
|
|
1227
|
+
* Choose, which related nodes to fetch as well
|
|
1228
|
+
*/
|
|
758
1229
|
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1230
|
+
/**
|
|
1231
|
+
* Filter, which Campaigns to fetch.
|
|
1232
|
+
*/
|
|
759
1233
|
where?: Prisma.CampaignWhereInput;
|
|
1234
|
+
/**
|
|
1235
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1236
|
+
*
|
|
1237
|
+
* Determine the order of Campaigns to fetch.
|
|
1238
|
+
*/
|
|
760
1239
|
orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[];
|
|
1240
|
+
/**
|
|
1241
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1242
|
+
*
|
|
1243
|
+
* Sets the position for listing Campaigns.
|
|
1244
|
+
*/
|
|
761
1245
|
cursor?: Prisma.CampaignWhereUniqueInput;
|
|
1246
|
+
/**
|
|
1247
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1248
|
+
*
|
|
1249
|
+
* Take `±n` Campaigns from the position of the cursor.
|
|
1250
|
+
*/
|
|
762
1251
|
take?: number;
|
|
1252
|
+
/**
|
|
1253
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1254
|
+
*
|
|
1255
|
+
* Skip the first `n` Campaigns.
|
|
1256
|
+
*/
|
|
763
1257
|
skip?: number;
|
|
1258
|
+
/**
|
|
1259
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1260
|
+
*
|
|
1261
|
+
* Filter by unique combinations of Campaigns.
|
|
1262
|
+
*/
|
|
764
1263
|
distinct?: Prisma.CampaignScalarFieldEnum | Prisma.CampaignScalarFieldEnum[];
|
|
765
1264
|
};
|
|
1265
|
+
/**
|
|
1266
|
+
* Campaign create
|
|
1267
|
+
*/
|
|
766
1268
|
export type CampaignCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1269
|
+
/**
|
|
1270
|
+
* Select specific fields to fetch from the Campaign
|
|
1271
|
+
*/
|
|
767
1272
|
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1273
|
+
/**
|
|
1274
|
+
* Omit specific fields from the Campaign
|
|
1275
|
+
*/
|
|
768
1276
|
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* Choose, which related nodes to fetch as well
|
|
1279
|
+
*/
|
|
769
1280
|
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1281
|
+
/**
|
|
1282
|
+
* The data needed to create a Campaign.
|
|
1283
|
+
*/
|
|
770
1284
|
data: Prisma.XOR<Prisma.CampaignCreateInput, Prisma.CampaignUncheckedCreateInput>;
|
|
771
1285
|
};
|
|
1286
|
+
/**
|
|
1287
|
+
* Campaign createMany
|
|
1288
|
+
*/
|
|
772
1289
|
export type CampaignCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1290
|
+
/**
|
|
1291
|
+
* The data used to create many Campaigns.
|
|
1292
|
+
*/
|
|
773
1293
|
data: Prisma.CampaignCreateManyInput | Prisma.CampaignCreateManyInput[];
|
|
774
1294
|
skipDuplicates?: boolean;
|
|
775
1295
|
};
|
|
1296
|
+
/**
|
|
1297
|
+
* Campaign createManyAndReturn
|
|
1298
|
+
*/
|
|
776
1299
|
export type CampaignCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1300
|
+
/**
|
|
1301
|
+
* Select specific fields to fetch from the Campaign
|
|
1302
|
+
*/
|
|
777
1303
|
select?: Prisma.CampaignSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1304
|
+
/**
|
|
1305
|
+
* Omit specific fields from the Campaign
|
|
1306
|
+
*/
|
|
778
1307
|
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1308
|
+
/**
|
|
1309
|
+
* The data used to create many Campaigns.
|
|
1310
|
+
*/
|
|
779
1311
|
data: Prisma.CampaignCreateManyInput | Prisma.CampaignCreateManyInput[];
|
|
780
1312
|
skipDuplicates?: boolean;
|
|
1313
|
+
/**
|
|
1314
|
+
* Choose, which related nodes to fetch as well
|
|
1315
|
+
*/
|
|
781
1316
|
include?: Prisma.CampaignIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
782
1317
|
};
|
|
1318
|
+
/**
|
|
1319
|
+
* Campaign update
|
|
1320
|
+
*/
|
|
783
1321
|
export type CampaignUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1322
|
+
/**
|
|
1323
|
+
* Select specific fields to fetch from the Campaign
|
|
1324
|
+
*/
|
|
784
1325
|
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1326
|
+
/**
|
|
1327
|
+
* Omit specific fields from the Campaign
|
|
1328
|
+
*/
|
|
785
1329
|
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1330
|
+
/**
|
|
1331
|
+
* Choose, which related nodes to fetch as well
|
|
1332
|
+
*/
|
|
786
1333
|
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1334
|
+
/**
|
|
1335
|
+
* The data needed to update a Campaign.
|
|
1336
|
+
*/
|
|
787
1337
|
data: Prisma.XOR<Prisma.CampaignUpdateInput, Prisma.CampaignUncheckedUpdateInput>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Choose, which Campaign to update.
|
|
1340
|
+
*/
|
|
788
1341
|
where: Prisma.CampaignWhereUniqueInput;
|
|
789
1342
|
};
|
|
1343
|
+
/**
|
|
1344
|
+
* Campaign updateMany
|
|
1345
|
+
*/
|
|
790
1346
|
export type CampaignUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1347
|
+
/**
|
|
1348
|
+
* The data used to update Campaigns.
|
|
1349
|
+
*/
|
|
791
1350
|
data: Prisma.XOR<Prisma.CampaignUpdateManyMutationInput, Prisma.CampaignUncheckedUpdateManyInput>;
|
|
1351
|
+
/**
|
|
1352
|
+
* Filter which Campaigns to update
|
|
1353
|
+
*/
|
|
792
1354
|
where?: Prisma.CampaignWhereInput;
|
|
1355
|
+
/**
|
|
1356
|
+
* Limit how many Campaigns to update.
|
|
1357
|
+
*/
|
|
793
1358
|
limit?: number;
|
|
794
1359
|
};
|
|
1360
|
+
/**
|
|
1361
|
+
* Campaign updateManyAndReturn
|
|
1362
|
+
*/
|
|
795
1363
|
export type CampaignUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1364
|
+
/**
|
|
1365
|
+
* Select specific fields to fetch from the Campaign
|
|
1366
|
+
*/
|
|
796
1367
|
select?: Prisma.CampaignSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1368
|
+
/**
|
|
1369
|
+
* Omit specific fields from the Campaign
|
|
1370
|
+
*/
|
|
797
1371
|
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1372
|
+
/**
|
|
1373
|
+
* The data used to update Campaigns.
|
|
1374
|
+
*/
|
|
798
1375
|
data: Prisma.XOR<Prisma.CampaignUpdateManyMutationInput, Prisma.CampaignUncheckedUpdateManyInput>;
|
|
1376
|
+
/**
|
|
1377
|
+
* Filter which Campaigns to update
|
|
1378
|
+
*/
|
|
799
1379
|
where?: Prisma.CampaignWhereInput;
|
|
1380
|
+
/**
|
|
1381
|
+
* Limit how many Campaigns to update.
|
|
1382
|
+
*/
|
|
800
1383
|
limit?: number;
|
|
1384
|
+
/**
|
|
1385
|
+
* Choose, which related nodes to fetch as well
|
|
1386
|
+
*/
|
|
801
1387
|
include?: Prisma.CampaignIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
802
1388
|
};
|
|
1389
|
+
/**
|
|
1390
|
+
* Campaign upsert
|
|
1391
|
+
*/
|
|
803
1392
|
export type CampaignUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1393
|
+
/**
|
|
1394
|
+
* Select specific fields to fetch from the Campaign
|
|
1395
|
+
*/
|
|
804
1396
|
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1397
|
+
/**
|
|
1398
|
+
* Omit specific fields from the Campaign
|
|
1399
|
+
*/
|
|
805
1400
|
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1401
|
+
/**
|
|
1402
|
+
* Choose, which related nodes to fetch as well
|
|
1403
|
+
*/
|
|
806
1404
|
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1405
|
+
/**
|
|
1406
|
+
* The filter to search for the Campaign to update in case it exists.
|
|
1407
|
+
*/
|
|
807
1408
|
where: Prisma.CampaignWhereUniqueInput;
|
|
1409
|
+
/**
|
|
1410
|
+
* In case the Campaign found by the `where` argument doesn't exist, create a new Campaign with this data.
|
|
1411
|
+
*/
|
|
808
1412
|
create: Prisma.XOR<Prisma.CampaignCreateInput, Prisma.CampaignUncheckedCreateInput>;
|
|
1413
|
+
/**
|
|
1414
|
+
* In case the Campaign was found with the provided `where` argument, update it with this data.
|
|
1415
|
+
*/
|
|
809
1416
|
update: Prisma.XOR<Prisma.CampaignUpdateInput, Prisma.CampaignUncheckedUpdateInput>;
|
|
810
1417
|
};
|
|
1418
|
+
/**
|
|
1419
|
+
* Campaign delete
|
|
1420
|
+
*/
|
|
811
1421
|
export type CampaignDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1422
|
+
/**
|
|
1423
|
+
* Select specific fields to fetch from the Campaign
|
|
1424
|
+
*/
|
|
812
1425
|
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1426
|
+
/**
|
|
1427
|
+
* Omit specific fields from the Campaign
|
|
1428
|
+
*/
|
|
813
1429
|
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1430
|
+
/**
|
|
1431
|
+
* Choose, which related nodes to fetch as well
|
|
1432
|
+
*/
|
|
814
1433
|
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1434
|
+
/**
|
|
1435
|
+
* Filter which Campaign to delete.
|
|
1436
|
+
*/
|
|
815
1437
|
where: Prisma.CampaignWhereUniqueInput;
|
|
816
1438
|
};
|
|
1439
|
+
/**
|
|
1440
|
+
* Campaign deleteMany
|
|
1441
|
+
*/
|
|
817
1442
|
export type CampaignDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1443
|
+
/**
|
|
1444
|
+
* Filter which Campaigns to delete
|
|
1445
|
+
*/
|
|
818
1446
|
where?: Prisma.CampaignWhereInput;
|
|
1447
|
+
/**
|
|
1448
|
+
* Limit how many Campaigns to delete.
|
|
1449
|
+
*/
|
|
819
1450
|
limit?: number;
|
|
820
1451
|
};
|
|
1452
|
+
/**
|
|
1453
|
+
* Campaign without action
|
|
1454
|
+
*/
|
|
821
1455
|
export type CampaignDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1456
|
+
/**
|
|
1457
|
+
* Select specific fields to fetch from the Campaign
|
|
1458
|
+
*/
|
|
822
1459
|
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1460
|
+
/**
|
|
1461
|
+
* Omit specific fields from the Campaign
|
|
1462
|
+
*/
|
|
823
1463
|
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1464
|
+
/**
|
|
1465
|
+
* Choose, which related nodes to fetch as well
|
|
1466
|
+
*/
|
|
824
1467
|
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
825
1468
|
};
|
|
826
1469
|
export {};
|