@shophost/rest-api 0.1.0
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/LICENSE +17 -0
- package/README.md +69 -0
- package/global.d.ts +1 -0
- package/package.json +53 -0
- package/schemas.d.ts +1 -0
- package/schemas.js +2 -0
- package/schemas.ts +1 -0
- package/src/contract.d.ts +3853 -0
- package/src/contract.js +6 -0
- package/src/contract.js.map +1 -0
- package/src/contracts/cart.contract.d.ts +536 -0
- package/src/contracts/cart.contract.js +29 -0
- package/src/contracts/cart.contract.js.map +1 -0
- package/src/contracts/customers.contract.d.ts +903 -0
- package/src/contracts/customers.contract.js +119 -0
- package/src/contracts/customers.contract.js.map +1 -0
- package/src/contracts/files.contract.d.ts +152 -0
- package/src/contracts/files.contract.js +29 -0
- package/src/contracts/files.contract.js.map +1 -0
- package/src/contracts/health.contract.d.ts +38 -0
- package/src/contracts/health.contract.js +25 -0
- package/src/contracts/health.contract.js.map +1 -0
- package/src/contracts/index.d.ts +15466 -0
- package/src/contracts/index.js +32 -0
- package/src/contracts/index.js.map +1 -0
- package/src/contracts/location.contract.d.ts +127 -0
- package/src/contracts/location.contract.js +40 -0
- package/src/contracts/location.contract.js.map +1 -0
- package/src/contracts/manufacturers.contract.d.ts +931 -0
- package/src/contracts/manufacturers.contract.js +85 -0
- package/src/contracts/manufacturers.contract.js.map +1 -0
- package/src/contracts/orders.contract.d.ts +3910 -0
- package/src/contracts/orders.contract.js +92 -0
- package/src/contracts/orders.contract.js.map +1 -0
- package/src/contracts/organizations.contract.d.ts +2234 -0
- package/src/contracts/organizations.contract.js +71 -0
- package/src/contracts/organizations.contract.js.map +1 -0
- package/src/contracts/payment.contract.d.ts +64 -0
- package/src/contracts/payment.contract.js +20 -0
- package/src/contracts/payment.contract.js.map +1 -0
- package/src/contracts/product-categories.contract.d.ts +1172 -0
- package/src/contracts/product-categories.contract.js +103 -0
- package/src/contracts/product-categories.contract.js.map +1 -0
- package/src/contracts/products.contract.d.ts +3976 -0
- package/src/contracts/products.contract.js +128 -0
- package/src/contracts/products.contract.js.map +1 -0
- package/src/contracts/reservation.contract.d.ts +675 -0
- package/src/contracts/reservation.contract.js +141 -0
- package/src/contracts/reservation.contract.js.map +1 -0
- package/src/contracts/shipping-methods.contract.d.ts +1276 -0
- package/src/contracts/shipping-methods.contract.js +118 -0
- package/src/contracts/shipping-methods.contract.js.map +1 -0
- package/src/contracts/shipping.contract.d.ts +319 -0
- package/src/contracts/shipping.contract.js +42 -0
- package/src/contracts/shipping.contract.js.map +1 -0
- package/src/contracts/webhook.contract.d.ts +66 -0
- package/src/contracts/webhook.contract.js +28 -0
- package/src/contracts/webhook.contract.js.map +1 -0
- package/src/db/__generated__/client/client.d.ts +385 -0
- package/src/db/__generated__/client/client.js +44 -0
- package/src/db/__generated__/client/client.js.map +1 -0
- package/src/db/__generated__/client/commonInputTypes.d.ts +816 -0
- package/src/db/__generated__/client/commonInputTypes.js +10 -0
- package/src/db/__generated__/client/commonInputTypes.js.map +1 -0
- package/src/db/__generated__/client/enums.d.ts +204 -0
- package/src/db/__generated__/client/enums.js +199 -0
- package/src/db/__generated__/client/enums.js.map +1 -0
- package/src/db/__generated__/client/index.d.ts +1 -0
- package/src/db/__generated__/client/index.js +5 -0
- package/src/db/__generated__/client/index.js.map +1 -0
- package/src/db/__generated__/client/internal/class.d.ts +414 -0
- package/src/db/__generated__/client/internal/class.js +76 -0
- package/src/db/__generated__/client/internal/class.js.map +1 -0
- package/src/db/__generated__/client/internal/prismaNamespace.d.ts +3474 -0
- package/src/db/__generated__/client/internal/prismaNamespace.js +543 -0
- package/src/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
- package/src/db/__generated__/client/models/Account.d.ts +1459 -0
- package/src/db/__generated__/client/models/Account.js +2 -0
- package/src/db/__generated__/client/models/Account.js.map +1 -0
- package/src/db/__generated__/client/models/Address.d.ts +2337 -0
- package/src/db/__generated__/client/models/Address.js +2 -0
- package/src/db/__generated__/client/models/Address.js.map +1 -0
- package/src/db/__generated__/client/models/Campaign.d.ts +1469 -0
- package/src/db/__generated__/client/models/Campaign.js +2 -0
- package/src/db/__generated__/client/models/Campaign.js.map +1 -0
- package/src/db/__generated__/client/models/ClosingTimes.d.ts +1227 -0
- package/src/db/__generated__/client/models/ClosingTimes.js +2 -0
- package/src/db/__generated__/client/models/ClosingTimes.js.map +1 -0
- package/src/db/__generated__/client/models/File.d.ts +2670 -0
- package/src/db/__generated__/client/models/File.js +2 -0
- package/src/db/__generated__/client/models/File.js.map +1 -0
- package/src/db/__generated__/client/models/Invitation.d.ts +1363 -0
- package/src/db/__generated__/client/models/Invitation.js +2 -0
- package/src/db/__generated__/client/models/Invitation.js.map +1 -0
- package/src/db/__generated__/client/models/LegalEntity.d.ts +1572 -0
- package/src/db/__generated__/client/models/LegalEntity.js +2 -0
- package/src/db/__generated__/client/models/LegalEntity.js.map +1 -0
- package/src/db/__generated__/client/models/Manufacturer.d.ts +1746 -0
- package/src/db/__generated__/client/models/Manufacturer.js +2 -0
- package/src/db/__generated__/client/models/Manufacturer.js.map +1 -0
- package/src/db/__generated__/client/models/ManufacturerTranslation.d.ts +1286 -0
- package/src/db/__generated__/client/models/ManufacturerTranslation.js +2 -0
- package/src/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
- package/src/db/__generated__/client/models/Member.d.ts +1281 -0
- package/src/db/__generated__/client/models/Member.js +2 -0
- package/src/db/__generated__/client/models/Member.js.map +1 -0
- package/src/db/__generated__/client/models/Modifier.d.ts +1404 -0
- package/src/db/__generated__/client/models/Modifier.js +2 -0
- package/src/db/__generated__/client/models/Modifier.js.map +1 -0
- package/src/db/__generated__/client/models/ModifierGroup.d.ts +1469 -0
- package/src/db/__generated__/client/models/ModifierGroup.js +2 -0
- package/src/db/__generated__/client/models/ModifierGroup.js.map +1 -0
- package/src/db/__generated__/client/models/ModifierGroupTranslation.d.ts +1181 -0
- package/src/db/__generated__/client/models/ModifierGroupTranslation.js +2 -0
- package/src/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
- package/src/db/__generated__/client/models/OpeningTimes.d.ts +1227 -0
- package/src/db/__generated__/client/models/OpeningTimes.js +2 -0
- package/src/db/__generated__/client/models/OpeningTimes.js.map +1 -0
- package/src/db/__generated__/client/models/Order.d.ts +2820 -0
- package/src/db/__generated__/client/models/Order.js +2 -0
- package/src/db/__generated__/client/models/Order.js.map +1 -0
- package/src/db/__generated__/client/models/OrderItem.d.ts +1755 -0
- package/src/db/__generated__/client/models/OrderItem.js +2 -0
- package/src/db/__generated__/client/models/OrderItem.js.map +1 -0
- package/src/db/__generated__/client/models/OrderItemTranslation.d.ts +1181 -0
- package/src/db/__generated__/client/models/OrderItemTranslation.js +2 -0
- package/src/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
- package/src/db/__generated__/client/models/Organization.d.ts +3996 -0
- package/src/db/__generated__/client/models/Organization.js +2 -0
- package/src/db/__generated__/client/models/Organization.js.map +1 -0
- package/src/db/__generated__/client/models/OrganizationConfiguration.d.ts +1954 -0
- package/src/db/__generated__/client/models/OrganizationConfiguration.js +2 -0
- package/src/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
- package/src/db/__generated__/client/models/Payment.d.ts +1538 -0
- package/src/db/__generated__/client/models/Payment.js +2 -0
- package/src/db/__generated__/client/models/Payment.js.map +1 -0
- package/src/db/__generated__/client/models/PaymentSession.d.ts +1384 -0
- package/src/db/__generated__/client/models/PaymentSession.js +2 -0
- package/src/db/__generated__/client/models/PaymentSession.js.map +1 -0
- package/src/db/__generated__/client/models/Product.d.ts +3136 -0
- package/src/db/__generated__/client/models/Product.js +2 -0
- package/src/db/__generated__/client/models/Product.js.map +1 -0
- package/src/db/__generated__/client/models/ProductCategory.d.ts +1964 -0
- package/src/db/__generated__/client/models/ProductCategory.js +2 -0
- package/src/db/__generated__/client/models/ProductCategory.js.map +1 -0
- package/src/db/__generated__/client/models/ProductCategoryTranslation.d.ts +1321 -0
- package/src/db/__generated__/client/models/ProductCategoryTranslation.js +2 -0
- package/src/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
- package/src/db/__generated__/client/models/ProductSnapshot.d.ts +1389 -0
- package/src/db/__generated__/client/models/ProductSnapshot.js +2 -0
- package/src/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
- package/src/db/__generated__/client/models/ProductTranslation.d.ts +1321 -0
- package/src/db/__generated__/client/models/ProductTranslation.js +2 -0
- package/src/db/__generated__/client/models/ProductTranslation.js.map +1 -0
- package/src/db/__generated__/client/models/Reservation.d.ts +1665 -0
- package/src/db/__generated__/client/models/Reservation.js +2 -0
- package/src/db/__generated__/client/models/Reservation.js.map +1 -0
- package/src/db/__generated__/client/models/Session.d.ts +1316 -0
- package/src/db/__generated__/client/models/Session.js +2 -0
- package/src/db/__generated__/client/models/Session.js.map +1 -0
- package/src/db/__generated__/client/models/ShippingMethod.d.ts +1934 -0
- package/src/db/__generated__/client/models/ShippingMethod.js +2 -0
- package/src/db/__generated__/client/models/ShippingMethod.js.map +1 -0
- package/src/db/__generated__/client/models/ShippingZone.d.ts +1366 -0
- package/src/db/__generated__/client/models/ShippingZone.js +2 -0
- package/src/db/__generated__/client/models/ShippingZone.js.map +1 -0
- package/src/db/__generated__/client/models/User.d.ts +2201 -0
- package/src/db/__generated__/client/models/User.js +2 -0
- package/src/db/__generated__/client/models/User.js.map +1 -0
- package/src/db/__generated__/client/models/Verification.d.ts +1026 -0
- package/src/db/__generated__/client/models/Verification.js +2 -0
- package/src/db/__generated__/client/models/Verification.js.map +1 -0
- package/src/db/__generated__/client/models.d.ts +38 -0
- package/src/db/__generated__/client/models.js +2 -0
- package/src/db/__generated__/client/models.js.map +1 -0
- package/src/db/index.d.ts +1 -0
- package/src/db/index.js +2 -0
- package/src/db/index.js.map +1 -0
- package/src/emails/order-confirmation-email.d.ts +10 -0
- package/src/emails/order-confirmation-email.js +229 -0
- package/src/emails/order-confirmation-email.js.map +1 -0
- package/src/emails/order-notification-email.d.ts +10 -0
- package/src/emails/order-notification-email.js +229 -0
- package/src/emails/order-notification-email.js.map +1 -0
- package/src/emails/reservation-cancellation-email.d.ts +10 -0
- package/src/emails/reservation-cancellation-email.js +82 -0
- package/src/emails/reservation-cancellation-email.js.map +1 -0
- package/src/emails/reservation-confirmation-email.d.ts +10 -0
- package/src/emails/reservation-confirmation-email.js +82 -0
- package/src/emails/reservation-confirmation-email.js.map +1 -0
- package/src/emails/reservation-notification-email.d.ts +11 -0
- package/src/emails/reservation-notification-email.js +93 -0
- package/src/emails/reservation-notification-email.js.map +1 -0
- package/src/exceptions/http-exception.d.ts +6 -0
- package/src/exceptions/http-exception.js +9 -0
- package/src/exceptions/http-exception.js.map +1 -0
- package/src/handlers/webhook.handler.d.ts +8 -0
- package/src/handlers/webhook.handler.js +36 -0
- package/src/handlers/webhook.handler.js.map +1 -0
- package/src/index.d.ts +5 -0
- package/src/index.js +7 -0
- package/src/index.js.map +1 -0
- package/src/integrations/next.d.ts +25 -0
- package/src/integrations/next.js +69 -0
- package/src/integrations/next.js.map +1 -0
- package/src/lib/better-auth.lib.d.ts +10215 -0
- package/src/lib/better-auth.lib.js +96 -0
- package/src/lib/better-auth.lib.js.map +1 -0
- package/src/lib/openapi.lib.d.ts +2 -0
- package/src/lib/openapi.lib.js +25 -0
- package/src/lib/openapi.lib.js.map +1 -0
- package/src/lib/pino.d.ts +1 -0
- package/src/lib/pino.js +5 -0
- package/src/lib/pino.js.map +1 -0
- package/src/lib/prisma.d.ts +819 -0
- package/src/lib/prisma.js +14 -0
- package/src/lib/prisma.js.map +1 -0
- package/src/lib/stripe.d.ts +2 -0
- package/src/lib/stripe.js +8 -0
- package/src/lib/stripe.js.map +1 -0
- package/src/lib/ts-rest.d.ts +2 -0
- package/src/lib/ts-rest.js +3 -0
- package/src/lib/ts-rest.js.map +1 -0
- package/src/routers/cart.router.d.ts +536 -0
- package/src/routers/cart.router.js +20 -0
- package/src/routers/cart.router.js.map +1 -0
- package/src/routers/file.router.d.ts +153 -0
- package/src/routers/file.router.js +28 -0
- package/src/routers/file.router.js.map +1 -0
- package/src/routers/health.router.d.ts +37 -0
- package/src/routers/health.router.js +17 -0
- package/src/routers/health.router.js.map +1 -0
- package/src/routers/index.d.ts +11 -0
- package/src/routers/index.js +12 -0
- package/src/routers/index.js.map +1 -0
- package/src/routers/manufacturer.router.d.ts +931 -0
- package/src/routers/manufacturer.router.js +58 -0
- package/src/routers/manufacturer.router.js.map +1 -0
- package/src/routers/order.router.d.ts +3911 -0
- package/src/routers/order.router.js +60 -0
- package/src/routers/order.router.js.map +1 -0
- package/src/routers/organization.router.d.ts +2234 -0
- package/src/routers/organization.router.js +55 -0
- package/src/routers/organization.router.js.map +1 -0
- package/src/routers/payment.router.d.ts +65 -0
- package/src/routers/payment.router.js +22 -0
- package/src/routers/payment.router.js.map +1 -0
- package/src/routers/places.router.d.ts +132 -0
- package/src/routers/places.router.js +31 -0
- package/src/routers/places.router.js.map +1 -0
- package/src/routers/product-category.router.d.ts +1172 -0
- package/src/routers/product-category.router.js +66 -0
- package/src/routers/product-category.router.js.map +1 -0
- package/src/routers/product.router.d.ts +3976 -0
- package/src/routers/product.router.js +86 -0
- package/src/routers/product.router.js.map +1 -0
- package/src/routers/reservation.router.d.ts +675 -0
- package/src/routers/reservation.router.js +71 -0
- package/src/routers/reservation.router.js.map +1 -0
- package/src/routers/shipping-method.router.d.ts +1276 -0
- package/src/routers/shipping-method.router.js +67 -0
- package/src/routers/shipping-method.router.js.map +1 -0
- package/src/routers/shipping.router.d.ts +320 -0
- package/src/routers/shipping.router.js +38 -0
- package/src/routers/shipping.router.js.map +1 -0
- package/src/routers/webhook.router.d.ts +65 -0
- package/src/routers/webhook.router.js +19 -0
- package/src/routers/webhook.router.js.map +1 -0
- package/src/schemas/address.schema.d.ts +235 -0
- package/src/schemas/address.schema.js +114 -0
- package/src/schemas/address.schema.js.map +1 -0
- package/src/schemas/auth.schema.d.ts +29 -0
- package/src/schemas/auth.schema.js +39 -0
- package/src/schemas/auth.schema.js.map +1 -0
- package/src/schemas/cart.schema.d.ts +446 -0
- package/src/schemas/cart.schema.js +41 -0
- package/src/schemas/cart.schema.js.map +1 -0
- package/src/schemas/currency.schema.d.ts +49 -0
- package/src/schemas/currency.schema.js +120 -0
- package/src/schemas/currency.schema.js.map +1 -0
- package/src/schemas/error.schema.d.ts +11 -0
- package/src/schemas/error.schema.js +14 -0
- package/src/schemas/error.schema.js.map +1 -0
- package/src/schemas/file.schema.d.ts +115 -0
- package/src/schemas/file.schema.js +79 -0
- package/src/schemas/file.schema.js.map +1 -0
- package/src/schemas/fulfilment.schema.d.ts +2 -0
- package/src/schemas/fulfilment.schema.js +5 -0
- package/src/schemas/fulfilment.schema.js.map +1 -0
- package/src/schemas/headers.schema.d.ts +11 -0
- package/src/schemas/headers.schema.js +15 -0
- package/src/schemas/headers.schema.js.map +1 -0
- package/src/schemas/index.d.ts +27 -0
- package/src/schemas/index.js +28 -0
- package/src/schemas/index.js.map +1 -0
- package/src/schemas/legal-entity.schema.d.ts +212 -0
- package/src/schemas/legal-entity.schema.js +85 -0
- package/src/schemas/legal-entity.schema.js.map +1 -0
- package/src/schemas/locales.schema.d.ts +8 -0
- package/src/schemas/locales.schema.js +240 -0
- package/src/schemas/locales.schema.js.map +1 -0
- package/src/schemas/location.schema.d.ts +41 -0
- package/src/schemas/location.schema.js +50 -0
- package/src/schemas/location.schema.js.map +1 -0
- package/src/schemas/manufacturer.schema.d.ts +287 -0
- package/src/schemas/manufacturer.schema.js +127 -0
- package/src/schemas/manufacturer.schema.js.map +1 -0
- package/src/schemas/number.schema.d.ts +3 -0
- package/src/schemas/number.schema.js +29 -0
- package/src/schemas/number.schema.js.map +1 -0
- package/src/schemas/order.schema.d.ts +1046 -0
- package/src/schemas/order.schema.js +160 -0
- package/src/schemas/order.schema.js.map +1 -0
- package/src/schemas/organization-configuration.schema.d.ts +287 -0
- package/src/schemas/organization-configuration.schema.js +117 -0
- package/src/schemas/organization-configuration.schema.js.map +1 -0
- package/src/schemas/organization.schema.d.ts +894 -0
- package/src/schemas/organization.schema.js +66 -0
- package/src/schemas/organization.schema.js.map +1 -0
- package/src/schemas/pagination.schema.d.ts +51 -0
- package/src/schemas/pagination.schema.js +54 -0
- package/src/schemas/pagination.schema.js.map +1 -0
- package/src/schemas/params.schema.d.ts +19 -0
- package/src/schemas/params.schema.js +22 -0
- package/src/schemas/params.schema.js.map +1 -0
- package/src/schemas/payment.schema.d.ts +54 -0
- package/src/schemas/payment.schema.js +48 -0
- package/src/schemas/payment.schema.js.map +1 -0
- package/src/schemas/product-category.schema.d.ts +352 -0
- package/src/schemas/product-category.schema.js +87 -0
- package/src/schemas/product-category.schema.js.map +1 -0
- package/src/schemas/product-modifier.schema.d.ts +280 -0
- package/src/schemas/product-modifier.schema.js +86 -0
- package/src/schemas/product-modifier.schema.js.map +1 -0
- package/src/schemas/product.schema.d.ts +1405 -0
- package/src/schemas/product.schema.js +136 -0
- package/src/schemas/product.schema.js.map +1 -0
- package/src/schemas/queries.schema.d.ts +8 -0
- package/src/schemas/queries.schema.js +8 -0
- package/src/schemas/queries.schema.js.map +1 -0
- package/src/schemas/recipient.schema.d.ts +260 -0
- package/src/schemas/recipient.schema.js +40 -0
- package/src/schemas/recipient.schema.js.map +1 -0
- package/src/schemas/reservation.schema.d.ts +61 -0
- package/src/schemas/reservation.schema.js +53 -0
- package/src/schemas/reservation.schema.js.map +1 -0
- package/src/schemas/shipping-method.schema.d.ts +335 -0
- package/src/schemas/shipping-method.schema.js +50 -0
- package/src/schemas/shipping-method.schema.js.map +1 -0
- package/src/schemas/shipping-zone.schema.d.ts +24 -0
- package/src/schemas/shipping-zone.schema.js +33 -0
- package/src/schemas/shipping-zone.schema.js.map +1 -0
- package/src/schemas/user.schema.d.ts +24 -0
- package/src/schemas/user.schema.js +32 -0
- package/src/schemas/user.schema.js.map +1 -0
- package/src/services/cart.service.d.ts +60 -0
- package/src/services/cart.service.js +97 -0
- package/src/services/cart.service.js.map +1 -0
- package/src/services/email.service.d.ts +32 -0
- package/src/services/email.service.js +116 -0
- package/src/services/email.service.js.map +1 -0
- package/src/services/file.service.d.ts +28 -0
- package/src/services/file.service.js +66 -0
- package/src/services/file.service.js.map +1 -0
- package/src/services/location.service.d.ts +28 -0
- package/src/services/location.service.js +109 -0
- package/src/services/location.service.js.map +1 -0
- package/src/services/manufacturer.service.d.ts +146 -0
- package/src/services/manufacturer.service.js +190 -0
- package/src/services/manufacturer.service.js.map +1 -0
- package/src/services/order.service.d.ts +444 -0
- package/src/services/order.service.js +306 -0
- package/src/services/order.service.js.map +1 -0
- package/src/services/organization.service.d.ts +301 -0
- package/src/services/organization.service.js +312 -0
- package/src/services/organization.service.js.map +1 -0
- package/src/services/payment.service.d.ts +35 -0
- package/src/services/payment.service.js +100 -0
- package/src/services/payment.service.js.map +1 -0
- package/src/services/product-category.service.d.ts +180 -0
- package/src/services/product-category.service.js +220 -0
- package/src/services/product-category.service.js.map +1 -0
- package/src/services/product.service.d.ts +493 -0
- package/src/services/product.service.js +437 -0
- package/src/services/product.service.js.map +1 -0
- package/src/services/reservation.service.d.ts +104 -0
- package/src/services/reservation.service.js +231 -0
- package/src/services/reservation.service.js.map +1 -0
- package/src/services/shipping-method.service.d.ts +206 -0
- package/src/services/shipping-method.service.js +229 -0
- package/src/services/shipping-method.service.js.map +1 -0
- package/src/services/shipping.service.d.ts +57 -0
- package/src/services/shipping.service.js +96 -0
- package/src/services/shipping.service.js.map +1 -0
- package/src/services/stripe.service.d.ts +26 -0
- package/src/services/stripe.service.js +164 -0
- package/src/services/stripe.service.js.map +1 -0
- package/src/types/google-maps.types.d.ts +53 -0
- package/src/types/google-maps.types.js +2 -0
- package/src/types/google-maps.types.js.map +1 -0
- package/src/utils/auth.util.d.ts +3 -0
- package/src/utils/auth.util.js +36 -0
- package/src/utils/auth.util.js.map +1 -0
- package/src/utils/cart.util.d.ts +27 -0
- package/src/utils/cart.util.js +76 -0
- package/src/utils/cart.util.js.map +1 -0
- package/src/utils/client.util.d.ts +3853 -0
- package/src/utils/client.util.js +6 -0
- package/src/utils/client.util.js.map +1 -0
- package/src/utils/currency.util.d.ts +1 -0
- package/src/utils/currency.util.js +11 -0
- package/src/utils/currency.util.js.map +1 -0
- package/src/utils/env.util.d.ts +2 -0
- package/src/utils/env.util.js +8 -0
- package/src/utils/env.util.js.map +1 -0
- package/src/utils/error-handler.util.d.ts +3 -0
- package/src/utils/error-handler.util.js +30 -0
- package/src/utils/error-handler.util.js.map +1 -0
- package/src/utils/generate-password-hash.util.d.ts +7 -0
- package/src/utils/generate-password-hash.util.js +30 -0
- package/src/utils/generate-password-hash.util.js.map +1 -0
- package/src/utils/object.util.d.ts +11 -0
- package/src/utils/object.util.js +39 -0
- package/src/utils/object.util.js.map +1 -0
- package/src/utils/translations.util.d.ts +0 -0
- package/src/utils/translations.util.js +2 -0
- package/src/utils/translations.util.js.map +1 -0
- package/src/utils/zod.util.d.ts +15 -0
- package/src/utils/zod.util.js +85 -0
- package/src/utils/zod.util.js.map +1 -0
|
@@ -0,0 +1,1469 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file exports the `Campaign` model and its related types.
|
|
3
|
+
*
|
|
4
|
+
* 🟢 You can import this file directly.
|
|
5
|
+
*/
|
|
6
|
+
import * as runtime from "@prisma/client/runtime/library";
|
|
7
|
+
import type * as $Enums from "../enums.ts";
|
|
8
|
+
import type * as Prisma from "../internal/prismaNamespace.ts";
|
|
9
|
+
/**
|
|
10
|
+
* Model Campaign
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export type CampaignModel = runtime.Types.Result.DefaultSelection<Prisma.$CampaignPayload>;
|
|
14
|
+
export type AggregateCampaign = {
|
|
15
|
+
_count: CampaignCountAggregateOutputType | null;
|
|
16
|
+
_avg: CampaignAvgAggregateOutputType | null;
|
|
17
|
+
_sum: CampaignSumAggregateOutputType | null;
|
|
18
|
+
_min: CampaignMinAggregateOutputType | null;
|
|
19
|
+
_max: CampaignMaxAggregateOutputType | null;
|
|
20
|
+
};
|
|
21
|
+
export type CampaignAvgAggregateOutputType = {
|
|
22
|
+
amount: number | null;
|
|
23
|
+
percentage: number | null;
|
|
24
|
+
};
|
|
25
|
+
export type CampaignSumAggregateOutputType = {
|
|
26
|
+
amount: number | null;
|
|
27
|
+
percentage: number | null;
|
|
28
|
+
};
|
|
29
|
+
export type CampaignMinAggregateOutputType = {
|
|
30
|
+
id: string | null;
|
|
31
|
+
title: string | null;
|
|
32
|
+
type: $Enums.CampaignType | null;
|
|
33
|
+
validFrom: Date | null;
|
|
34
|
+
validTo: Date | null;
|
|
35
|
+
organizationId: string | null;
|
|
36
|
+
amount: number | null;
|
|
37
|
+
percentage: number | null;
|
|
38
|
+
publishedAt: Date | null;
|
|
39
|
+
publishedBy: string | null;
|
|
40
|
+
createdAt: Date | null;
|
|
41
|
+
updatedAt: Date | null;
|
|
42
|
+
};
|
|
43
|
+
export type CampaignMaxAggregateOutputType = {
|
|
44
|
+
id: string | null;
|
|
45
|
+
title: string | null;
|
|
46
|
+
type: $Enums.CampaignType | null;
|
|
47
|
+
validFrom: Date | null;
|
|
48
|
+
validTo: Date | null;
|
|
49
|
+
organizationId: string | null;
|
|
50
|
+
amount: number | null;
|
|
51
|
+
percentage: number | null;
|
|
52
|
+
publishedAt: Date | null;
|
|
53
|
+
publishedBy: string | null;
|
|
54
|
+
createdAt: Date | null;
|
|
55
|
+
updatedAt: Date | null;
|
|
56
|
+
};
|
|
57
|
+
export type CampaignCountAggregateOutputType = {
|
|
58
|
+
id: number;
|
|
59
|
+
title: number;
|
|
60
|
+
type: number;
|
|
61
|
+
validFrom: number;
|
|
62
|
+
validTo: number;
|
|
63
|
+
organizationId: number;
|
|
64
|
+
amount: number;
|
|
65
|
+
percentage: number;
|
|
66
|
+
publishedAt: number;
|
|
67
|
+
publishedBy: number;
|
|
68
|
+
createdAt: number;
|
|
69
|
+
updatedAt: number;
|
|
70
|
+
_all: number;
|
|
71
|
+
};
|
|
72
|
+
export type CampaignAvgAggregateInputType = {
|
|
73
|
+
amount?: true;
|
|
74
|
+
percentage?: true;
|
|
75
|
+
};
|
|
76
|
+
export type CampaignSumAggregateInputType = {
|
|
77
|
+
amount?: true;
|
|
78
|
+
percentage?: true;
|
|
79
|
+
};
|
|
80
|
+
export type CampaignMinAggregateInputType = {
|
|
81
|
+
id?: true;
|
|
82
|
+
title?: true;
|
|
83
|
+
type?: true;
|
|
84
|
+
validFrom?: true;
|
|
85
|
+
validTo?: true;
|
|
86
|
+
organizationId?: true;
|
|
87
|
+
amount?: true;
|
|
88
|
+
percentage?: true;
|
|
89
|
+
publishedAt?: true;
|
|
90
|
+
publishedBy?: true;
|
|
91
|
+
createdAt?: true;
|
|
92
|
+
updatedAt?: true;
|
|
93
|
+
};
|
|
94
|
+
export type CampaignMaxAggregateInputType = {
|
|
95
|
+
id?: true;
|
|
96
|
+
title?: true;
|
|
97
|
+
type?: true;
|
|
98
|
+
validFrom?: true;
|
|
99
|
+
validTo?: true;
|
|
100
|
+
organizationId?: true;
|
|
101
|
+
amount?: true;
|
|
102
|
+
percentage?: true;
|
|
103
|
+
publishedAt?: true;
|
|
104
|
+
publishedBy?: true;
|
|
105
|
+
createdAt?: true;
|
|
106
|
+
updatedAt?: true;
|
|
107
|
+
};
|
|
108
|
+
export type CampaignCountAggregateInputType = {
|
|
109
|
+
id?: true;
|
|
110
|
+
title?: true;
|
|
111
|
+
type?: true;
|
|
112
|
+
validFrom?: true;
|
|
113
|
+
validTo?: true;
|
|
114
|
+
organizationId?: true;
|
|
115
|
+
amount?: true;
|
|
116
|
+
percentage?: true;
|
|
117
|
+
publishedAt?: true;
|
|
118
|
+
publishedBy?: true;
|
|
119
|
+
createdAt?: true;
|
|
120
|
+
updatedAt?: true;
|
|
121
|
+
_all?: true;
|
|
122
|
+
};
|
|
123
|
+
export type CampaignAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
124
|
+
/**
|
|
125
|
+
* Filter which Campaign to aggregate.
|
|
126
|
+
*/
|
|
127
|
+
where?: Prisma.CampaignWhereInput;
|
|
128
|
+
/**
|
|
129
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
130
|
+
*
|
|
131
|
+
* Determine the order of Campaigns to fetch.
|
|
132
|
+
*/
|
|
133
|
+
orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[];
|
|
134
|
+
/**
|
|
135
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
136
|
+
*
|
|
137
|
+
* Sets the start position
|
|
138
|
+
*/
|
|
139
|
+
cursor?: Prisma.CampaignWhereUniqueInput;
|
|
140
|
+
/**
|
|
141
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
142
|
+
*
|
|
143
|
+
* Take `±n` Campaigns from the position of the cursor.
|
|
144
|
+
*/
|
|
145
|
+
take?: number;
|
|
146
|
+
/**
|
|
147
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
148
|
+
*
|
|
149
|
+
* Skip the first `n` Campaigns.
|
|
150
|
+
*/
|
|
151
|
+
skip?: number;
|
|
152
|
+
/**
|
|
153
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
154
|
+
*
|
|
155
|
+
* Count returned Campaigns
|
|
156
|
+
**/
|
|
157
|
+
_count?: true | CampaignCountAggregateInputType;
|
|
158
|
+
/**
|
|
159
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
160
|
+
*
|
|
161
|
+
* Select which fields to average
|
|
162
|
+
**/
|
|
163
|
+
_avg?: CampaignAvgAggregateInputType;
|
|
164
|
+
/**
|
|
165
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
166
|
+
*
|
|
167
|
+
* Select which fields to sum
|
|
168
|
+
**/
|
|
169
|
+
_sum?: CampaignSumAggregateInputType;
|
|
170
|
+
/**
|
|
171
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
172
|
+
*
|
|
173
|
+
* Select which fields to find the minimum value
|
|
174
|
+
**/
|
|
175
|
+
_min?: CampaignMinAggregateInputType;
|
|
176
|
+
/**
|
|
177
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
178
|
+
*
|
|
179
|
+
* Select which fields to find the maximum value
|
|
180
|
+
**/
|
|
181
|
+
_max?: CampaignMaxAggregateInputType;
|
|
182
|
+
};
|
|
183
|
+
export type GetCampaignAggregateType<T extends CampaignAggregateArgs> = {
|
|
184
|
+
[P in keyof T & keyof AggregateCampaign]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateCampaign[P]> : Prisma.GetScalarType<T[P], AggregateCampaign[P]>;
|
|
185
|
+
};
|
|
186
|
+
export type CampaignGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
187
|
+
where?: Prisma.CampaignWhereInput;
|
|
188
|
+
orderBy?: Prisma.CampaignOrderByWithAggregationInput | Prisma.CampaignOrderByWithAggregationInput[];
|
|
189
|
+
by: Prisma.CampaignScalarFieldEnum[] | Prisma.CampaignScalarFieldEnum;
|
|
190
|
+
having?: Prisma.CampaignScalarWhereWithAggregatesInput;
|
|
191
|
+
take?: number;
|
|
192
|
+
skip?: number;
|
|
193
|
+
_count?: CampaignCountAggregateInputType | true;
|
|
194
|
+
_avg?: CampaignAvgAggregateInputType;
|
|
195
|
+
_sum?: CampaignSumAggregateInputType;
|
|
196
|
+
_min?: CampaignMinAggregateInputType;
|
|
197
|
+
_max?: CampaignMaxAggregateInputType;
|
|
198
|
+
};
|
|
199
|
+
export type CampaignGroupByOutputType = {
|
|
200
|
+
id: string;
|
|
201
|
+
title: string;
|
|
202
|
+
type: $Enums.CampaignType;
|
|
203
|
+
validFrom: Date;
|
|
204
|
+
validTo: Date;
|
|
205
|
+
organizationId: string;
|
|
206
|
+
amount: number | null;
|
|
207
|
+
percentage: number | null;
|
|
208
|
+
publishedAt: Date | null;
|
|
209
|
+
publishedBy: string | null;
|
|
210
|
+
createdAt: Date;
|
|
211
|
+
updatedAt: Date;
|
|
212
|
+
_count: CampaignCountAggregateOutputType | null;
|
|
213
|
+
_avg: CampaignAvgAggregateOutputType | null;
|
|
214
|
+
_sum: CampaignSumAggregateOutputType | null;
|
|
215
|
+
_min: CampaignMinAggregateOutputType | null;
|
|
216
|
+
_max: CampaignMaxAggregateOutputType | null;
|
|
217
|
+
};
|
|
218
|
+
type GetCampaignGroupByPayload<T extends CampaignGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<CampaignGroupByOutputType, T['by']> & {
|
|
219
|
+
[P in ((keyof T) & (keyof CampaignGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], CampaignGroupByOutputType[P]> : Prisma.GetScalarType<T[P], CampaignGroupByOutputType[P]>;
|
|
220
|
+
}>>;
|
|
221
|
+
export type CampaignWhereInput = {
|
|
222
|
+
AND?: Prisma.CampaignWhereInput | Prisma.CampaignWhereInput[];
|
|
223
|
+
OR?: Prisma.CampaignWhereInput[];
|
|
224
|
+
NOT?: Prisma.CampaignWhereInput | Prisma.CampaignWhereInput[];
|
|
225
|
+
id?: Prisma.StringFilter<"Campaign"> | string;
|
|
226
|
+
title?: Prisma.StringFilter<"Campaign"> | string;
|
|
227
|
+
type?: Prisma.EnumCampaignTypeFilter<"Campaign"> | $Enums.CampaignType;
|
|
228
|
+
validFrom?: Prisma.DateTimeFilter<"Campaign"> | Date | string;
|
|
229
|
+
validTo?: Prisma.DateTimeFilter<"Campaign"> | Date | string;
|
|
230
|
+
organizationId?: Prisma.StringFilter<"Campaign"> | string;
|
|
231
|
+
amount?: Prisma.FloatNullableFilter<"Campaign"> | number | null;
|
|
232
|
+
percentage?: Prisma.FloatNullableFilter<"Campaign"> | number | null;
|
|
233
|
+
publishedAt?: Prisma.DateTimeNullableFilter<"Campaign"> | Date | string | null;
|
|
234
|
+
publishedBy?: Prisma.StringNullableFilter<"Campaign"> | string | null;
|
|
235
|
+
createdAt?: Prisma.DateTimeFilter<"Campaign"> | Date | string;
|
|
236
|
+
updatedAt?: Prisma.DateTimeFilter<"Campaign"> | Date | string;
|
|
237
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
238
|
+
};
|
|
239
|
+
export type CampaignOrderByWithRelationInput = {
|
|
240
|
+
id?: Prisma.SortOrder;
|
|
241
|
+
title?: Prisma.SortOrder;
|
|
242
|
+
type?: Prisma.SortOrder;
|
|
243
|
+
validFrom?: Prisma.SortOrder;
|
|
244
|
+
validTo?: Prisma.SortOrder;
|
|
245
|
+
organizationId?: Prisma.SortOrder;
|
|
246
|
+
amount?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
247
|
+
percentage?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
248
|
+
publishedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
249
|
+
publishedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
250
|
+
createdAt?: Prisma.SortOrder;
|
|
251
|
+
updatedAt?: Prisma.SortOrder;
|
|
252
|
+
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
253
|
+
};
|
|
254
|
+
export type CampaignWhereUniqueInput = Prisma.AtLeast<{
|
|
255
|
+
id?: string;
|
|
256
|
+
AND?: Prisma.CampaignWhereInput | Prisma.CampaignWhereInput[];
|
|
257
|
+
OR?: Prisma.CampaignWhereInput[];
|
|
258
|
+
NOT?: Prisma.CampaignWhereInput | Prisma.CampaignWhereInput[];
|
|
259
|
+
title?: Prisma.StringFilter<"Campaign"> | string;
|
|
260
|
+
type?: Prisma.EnumCampaignTypeFilter<"Campaign"> | $Enums.CampaignType;
|
|
261
|
+
validFrom?: Prisma.DateTimeFilter<"Campaign"> | Date | string;
|
|
262
|
+
validTo?: Prisma.DateTimeFilter<"Campaign"> | Date | string;
|
|
263
|
+
organizationId?: Prisma.StringFilter<"Campaign"> | string;
|
|
264
|
+
amount?: Prisma.FloatNullableFilter<"Campaign"> | number | null;
|
|
265
|
+
percentage?: Prisma.FloatNullableFilter<"Campaign"> | number | null;
|
|
266
|
+
publishedAt?: Prisma.DateTimeNullableFilter<"Campaign"> | Date | string | null;
|
|
267
|
+
publishedBy?: Prisma.StringNullableFilter<"Campaign"> | string | null;
|
|
268
|
+
createdAt?: Prisma.DateTimeFilter<"Campaign"> | Date | string;
|
|
269
|
+
updatedAt?: Prisma.DateTimeFilter<"Campaign"> | Date | string;
|
|
270
|
+
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
271
|
+
}, "id">;
|
|
272
|
+
export type CampaignOrderByWithAggregationInput = {
|
|
273
|
+
id?: Prisma.SortOrder;
|
|
274
|
+
title?: Prisma.SortOrder;
|
|
275
|
+
type?: Prisma.SortOrder;
|
|
276
|
+
validFrom?: Prisma.SortOrder;
|
|
277
|
+
validTo?: Prisma.SortOrder;
|
|
278
|
+
organizationId?: Prisma.SortOrder;
|
|
279
|
+
amount?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
280
|
+
percentage?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
281
|
+
publishedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
282
|
+
publishedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
283
|
+
createdAt?: Prisma.SortOrder;
|
|
284
|
+
updatedAt?: Prisma.SortOrder;
|
|
285
|
+
_count?: Prisma.CampaignCountOrderByAggregateInput;
|
|
286
|
+
_avg?: Prisma.CampaignAvgOrderByAggregateInput;
|
|
287
|
+
_max?: Prisma.CampaignMaxOrderByAggregateInput;
|
|
288
|
+
_min?: Prisma.CampaignMinOrderByAggregateInput;
|
|
289
|
+
_sum?: Prisma.CampaignSumOrderByAggregateInput;
|
|
290
|
+
};
|
|
291
|
+
export type CampaignScalarWhereWithAggregatesInput = {
|
|
292
|
+
AND?: Prisma.CampaignScalarWhereWithAggregatesInput | Prisma.CampaignScalarWhereWithAggregatesInput[];
|
|
293
|
+
OR?: Prisma.CampaignScalarWhereWithAggregatesInput[];
|
|
294
|
+
NOT?: Prisma.CampaignScalarWhereWithAggregatesInput | Prisma.CampaignScalarWhereWithAggregatesInput[];
|
|
295
|
+
id?: Prisma.StringWithAggregatesFilter<"Campaign"> | string;
|
|
296
|
+
title?: Prisma.StringWithAggregatesFilter<"Campaign"> | string;
|
|
297
|
+
type?: Prisma.EnumCampaignTypeWithAggregatesFilter<"Campaign"> | $Enums.CampaignType;
|
|
298
|
+
validFrom?: Prisma.DateTimeWithAggregatesFilter<"Campaign"> | Date | string;
|
|
299
|
+
validTo?: Prisma.DateTimeWithAggregatesFilter<"Campaign"> | Date | string;
|
|
300
|
+
organizationId?: Prisma.StringWithAggregatesFilter<"Campaign"> | string;
|
|
301
|
+
amount?: Prisma.FloatNullableWithAggregatesFilter<"Campaign"> | number | null;
|
|
302
|
+
percentage?: Prisma.FloatNullableWithAggregatesFilter<"Campaign"> | number | null;
|
|
303
|
+
publishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Campaign"> | Date | string | null;
|
|
304
|
+
publishedBy?: Prisma.StringNullableWithAggregatesFilter<"Campaign"> | string | null;
|
|
305
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Campaign"> | Date | string;
|
|
306
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Campaign"> | Date | string;
|
|
307
|
+
};
|
|
308
|
+
export type CampaignCreateInput = {
|
|
309
|
+
id?: string;
|
|
310
|
+
title: string;
|
|
311
|
+
type: $Enums.CampaignType;
|
|
312
|
+
validFrom: Date | string;
|
|
313
|
+
validTo: Date | string;
|
|
314
|
+
amount?: number | null;
|
|
315
|
+
percentage?: number | null;
|
|
316
|
+
publishedAt?: Date | string | null;
|
|
317
|
+
publishedBy?: string | null;
|
|
318
|
+
createdAt?: Date | string;
|
|
319
|
+
updatedAt?: Date | string;
|
|
320
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutCampaignsInput;
|
|
321
|
+
};
|
|
322
|
+
export type CampaignUncheckedCreateInput = {
|
|
323
|
+
id?: string;
|
|
324
|
+
title: string;
|
|
325
|
+
type: $Enums.CampaignType;
|
|
326
|
+
validFrom: Date | string;
|
|
327
|
+
validTo: Date | string;
|
|
328
|
+
organizationId: string;
|
|
329
|
+
amount?: number | null;
|
|
330
|
+
percentage?: number | null;
|
|
331
|
+
publishedAt?: Date | string | null;
|
|
332
|
+
publishedBy?: string | null;
|
|
333
|
+
createdAt?: Date | string;
|
|
334
|
+
updatedAt?: Date | string;
|
|
335
|
+
};
|
|
336
|
+
export type CampaignUpdateInput = {
|
|
337
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
338
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
339
|
+
type?: Prisma.EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType;
|
|
340
|
+
validFrom?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
341
|
+
validTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
342
|
+
amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
343
|
+
percentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
344
|
+
publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
345
|
+
publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
346
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
347
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
348
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutCampaignsNestedInput;
|
|
349
|
+
};
|
|
350
|
+
export type CampaignUncheckedUpdateInput = {
|
|
351
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
352
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
353
|
+
type?: Prisma.EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType;
|
|
354
|
+
validFrom?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
355
|
+
validTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
356
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
357
|
+
amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
358
|
+
percentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
359
|
+
publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
360
|
+
publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
361
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
362
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
363
|
+
};
|
|
364
|
+
export type CampaignCreateManyInput = {
|
|
365
|
+
id?: string;
|
|
366
|
+
title: string;
|
|
367
|
+
type: $Enums.CampaignType;
|
|
368
|
+
validFrom: Date | string;
|
|
369
|
+
validTo: Date | string;
|
|
370
|
+
organizationId: string;
|
|
371
|
+
amount?: number | null;
|
|
372
|
+
percentage?: number | null;
|
|
373
|
+
publishedAt?: Date | string | null;
|
|
374
|
+
publishedBy?: string | null;
|
|
375
|
+
createdAt?: Date | string;
|
|
376
|
+
updatedAt?: Date | string;
|
|
377
|
+
};
|
|
378
|
+
export type CampaignUpdateManyMutationInput = {
|
|
379
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
380
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
381
|
+
type?: Prisma.EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType;
|
|
382
|
+
validFrom?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
383
|
+
validTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
384
|
+
amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
385
|
+
percentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
386
|
+
publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
387
|
+
publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
388
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
389
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
390
|
+
};
|
|
391
|
+
export type CampaignUncheckedUpdateManyInput = {
|
|
392
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
393
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
394
|
+
type?: Prisma.EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType;
|
|
395
|
+
validFrom?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
396
|
+
validTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
397
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
398
|
+
amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
399
|
+
percentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
400
|
+
publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
401
|
+
publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
402
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
403
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
404
|
+
};
|
|
405
|
+
export type CampaignListRelationFilter = {
|
|
406
|
+
every?: Prisma.CampaignWhereInput;
|
|
407
|
+
some?: Prisma.CampaignWhereInput;
|
|
408
|
+
none?: Prisma.CampaignWhereInput;
|
|
409
|
+
};
|
|
410
|
+
export type CampaignOrderByRelationAggregateInput = {
|
|
411
|
+
_count?: Prisma.SortOrder;
|
|
412
|
+
};
|
|
413
|
+
export type CampaignCountOrderByAggregateInput = {
|
|
414
|
+
id?: Prisma.SortOrder;
|
|
415
|
+
title?: Prisma.SortOrder;
|
|
416
|
+
type?: Prisma.SortOrder;
|
|
417
|
+
validFrom?: Prisma.SortOrder;
|
|
418
|
+
validTo?: Prisma.SortOrder;
|
|
419
|
+
organizationId?: Prisma.SortOrder;
|
|
420
|
+
amount?: Prisma.SortOrder;
|
|
421
|
+
percentage?: Prisma.SortOrder;
|
|
422
|
+
publishedAt?: Prisma.SortOrder;
|
|
423
|
+
publishedBy?: Prisma.SortOrder;
|
|
424
|
+
createdAt?: Prisma.SortOrder;
|
|
425
|
+
updatedAt?: Prisma.SortOrder;
|
|
426
|
+
};
|
|
427
|
+
export type CampaignAvgOrderByAggregateInput = {
|
|
428
|
+
amount?: Prisma.SortOrder;
|
|
429
|
+
percentage?: Prisma.SortOrder;
|
|
430
|
+
};
|
|
431
|
+
export type CampaignMaxOrderByAggregateInput = {
|
|
432
|
+
id?: Prisma.SortOrder;
|
|
433
|
+
title?: Prisma.SortOrder;
|
|
434
|
+
type?: Prisma.SortOrder;
|
|
435
|
+
validFrom?: Prisma.SortOrder;
|
|
436
|
+
validTo?: Prisma.SortOrder;
|
|
437
|
+
organizationId?: Prisma.SortOrder;
|
|
438
|
+
amount?: Prisma.SortOrder;
|
|
439
|
+
percentage?: Prisma.SortOrder;
|
|
440
|
+
publishedAt?: Prisma.SortOrder;
|
|
441
|
+
publishedBy?: Prisma.SortOrder;
|
|
442
|
+
createdAt?: Prisma.SortOrder;
|
|
443
|
+
updatedAt?: Prisma.SortOrder;
|
|
444
|
+
};
|
|
445
|
+
export type CampaignMinOrderByAggregateInput = {
|
|
446
|
+
id?: Prisma.SortOrder;
|
|
447
|
+
title?: Prisma.SortOrder;
|
|
448
|
+
type?: Prisma.SortOrder;
|
|
449
|
+
validFrom?: Prisma.SortOrder;
|
|
450
|
+
validTo?: Prisma.SortOrder;
|
|
451
|
+
organizationId?: Prisma.SortOrder;
|
|
452
|
+
amount?: Prisma.SortOrder;
|
|
453
|
+
percentage?: Prisma.SortOrder;
|
|
454
|
+
publishedAt?: Prisma.SortOrder;
|
|
455
|
+
publishedBy?: Prisma.SortOrder;
|
|
456
|
+
createdAt?: Prisma.SortOrder;
|
|
457
|
+
updatedAt?: Prisma.SortOrder;
|
|
458
|
+
};
|
|
459
|
+
export type CampaignSumOrderByAggregateInput = {
|
|
460
|
+
amount?: Prisma.SortOrder;
|
|
461
|
+
percentage?: Prisma.SortOrder;
|
|
462
|
+
};
|
|
463
|
+
export type CampaignCreateNestedManyWithoutOrganizationInput = {
|
|
464
|
+
create?: Prisma.XOR<Prisma.CampaignCreateWithoutOrganizationInput, Prisma.CampaignUncheckedCreateWithoutOrganizationInput> | Prisma.CampaignCreateWithoutOrganizationInput[] | Prisma.CampaignUncheckedCreateWithoutOrganizationInput[];
|
|
465
|
+
connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutOrganizationInput | Prisma.CampaignCreateOrConnectWithoutOrganizationInput[];
|
|
466
|
+
createMany?: Prisma.CampaignCreateManyOrganizationInputEnvelope;
|
|
467
|
+
connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[];
|
|
468
|
+
};
|
|
469
|
+
export type CampaignUncheckedCreateNestedManyWithoutOrganizationInput = {
|
|
470
|
+
create?: Prisma.XOR<Prisma.CampaignCreateWithoutOrganizationInput, Prisma.CampaignUncheckedCreateWithoutOrganizationInput> | Prisma.CampaignCreateWithoutOrganizationInput[] | Prisma.CampaignUncheckedCreateWithoutOrganizationInput[];
|
|
471
|
+
connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutOrganizationInput | Prisma.CampaignCreateOrConnectWithoutOrganizationInput[];
|
|
472
|
+
createMany?: Prisma.CampaignCreateManyOrganizationInputEnvelope;
|
|
473
|
+
connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[];
|
|
474
|
+
};
|
|
475
|
+
export type CampaignUpdateManyWithoutOrganizationNestedInput = {
|
|
476
|
+
create?: Prisma.XOR<Prisma.CampaignCreateWithoutOrganizationInput, Prisma.CampaignUncheckedCreateWithoutOrganizationInput> | Prisma.CampaignCreateWithoutOrganizationInput[] | Prisma.CampaignUncheckedCreateWithoutOrganizationInput[];
|
|
477
|
+
connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutOrganizationInput | Prisma.CampaignCreateOrConnectWithoutOrganizationInput[];
|
|
478
|
+
upsert?: Prisma.CampaignUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.CampaignUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
479
|
+
createMany?: Prisma.CampaignCreateManyOrganizationInputEnvelope;
|
|
480
|
+
set?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[];
|
|
481
|
+
disconnect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[];
|
|
482
|
+
delete?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[];
|
|
483
|
+
connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[];
|
|
484
|
+
update?: Prisma.CampaignUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.CampaignUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
485
|
+
updateMany?: Prisma.CampaignUpdateManyWithWhereWithoutOrganizationInput | Prisma.CampaignUpdateManyWithWhereWithoutOrganizationInput[];
|
|
486
|
+
deleteMany?: Prisma.CampaignScalarWhereInput | Prisma.CampaignScalarWhereInput[];
|
|
487
|
+
};
|
|
488
|
+
export type CampaignUncheckedUpdateManyWithoutOrganizationNestedInput = {
|
|
489
|
+
create?: Prisma.XOR<Prisma.CampaignCreateWithoutOrganizationInput, Prisma.CampaignUncheckedCreateWithoutOrganizationInput> | Prisma.CampaignCreateWithoutOrganizationInput[] | Prisma.CampaignUncheckedCreateWithoutOrganizationInput[];
|
|
490
|
+
connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutOrganizationInput | Prisma.CampaignCreateOrConnectWithoutOrganizationInput[];
|
|
491
|
+
upsert?: Prisma.CampaignUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.CampaignUpsertWithWhereUniqueWithoutOrganizationInput[];
|
|
492
|
+
createMany?: Prisma.CampaignCreateManyOrganizationInputEnvelope;
|
|
493
|
+
set?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[];
|
|
494
|
+
disconnect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[];
|
|
495
|
+
delete?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[];
|
|
496
|
+
connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[];
|
|
497
|
+
update?: Prisma.CampaignUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.CampaignUpdateWithWhereUniqueWithoutOrganizationInput[];
|
|
498
|
+
updateMany?: Prisma.CampaignUpdateManyWithWhereWithoutOrganizationInput | Prisma.CampaignUpdateManyWithWhereWithoutOrganizationInput[];
|
|
499
|
+
deleteMany?: Prisma.CampaignScalarWhereInput | Prisma.CampaignScalarWhereInput[];
|
|
500
|
+
};
|
|
501
|
+
export type EnumCampaignTypeFieldUpdateOperationsInput = {
|
|
502
|
+
set?: $Enums.CampaignType;
|
|
503
|
+
};
|
|
504
|
+
export type CampaignCreateWithoutOrganizationInput = {
|
|
505
|
+
id?: string;
|
|
506
|
+
title: string;
|
|
507
|
+
type: $Enums.CampaignType;
|
|
508
|
+
validFrom: Date | string;
|
|
509
|
+
validTo: Date | string;
|
|
510
|
+
amount?: number | null;
|
|
511
|
+
percentage?: number | null;
|
|
512
|
+
publishedAt?: Date | string | null;
|
|
513
|
+
publishedBy?: string | null;
|
|
514
|
+
createdAt?: Date | string;
|
|
515
|
+
updatedAt?: Date | string;
|
|
516
|
+
};
|
|
517
|
+
export type CampaignUncheckedCreateWithoutOrganizationInput = {
|
|
518
|
+
id?: string;
|
|
519
|
+
title: string;
|
|
520
|
+
type: $Enums.CampaignType;
|
|
521
|
+
validFrom: Date | string;
|
|
522
|
+
validTo: Date | string;
|
|
523
|
+
amount?: number | null;
|
|
524
|
+
percentage?: number | null;
|
|
525
|
+
publishedAt?: Date | string | null;
|
|
526
|
+
publishedBy?: string | null;
|
|
527
|
+
createdAt?: Date | string;
|
|
528
|
+
updatedAt?: Date | string;
|
|
529
|
+
};
|
|
530
|
+
export type CampaignCreateOrConnectWithoutOrganizationInput = {
|
|
531
|
+
where: Prisma.CampaignWhereUniqueInput;
|
|
532
|
+
create: Prisma.XOR<Prisma.CampaignCreateWithoutOrganizationInput, Prisma.CampaignUncheckedCreateWithoutOrganizationInput>;
|
|
533
|
+
};
|
|
534
|
+
export type CampaignCreateManyOrganizationInputEnvelope = {
|
|
535
|
+
data: Prisma.CampaignCreateManyOrganizationInput | Prisma.CampaignCreateManyOrganizationInput[];
|
|
536
|
+
skipDuplicates?: boolean;
|
|
537
|
+
};
|
|
538
|
+
export type CampaignUpsertWithWhereUniqueWithoutOrganizationInput = {
|
|
539
|
+
where: Prisma.CampaignWhereUniqueInput;
|
|
540
|
+
update: Prisma.XOR<Prisma.CampaignUpdateWithoutOrganizationInput, Prisma.CampaignUncheckedUpdateWithoutOrganizationInput>;
|
|
541
|
+
create: Prisma.XOR<Prisma.CampaignCreateWithoutOrganizationInput, Prisma.CampaignUncheckedCreateWithoutOrganizationInput>;
|
|
542
|
+
};
|
|
543
|
+
export type CampaignUpdateWithWhereUniqueWithoutOrganizationInput = {
|
|
544
|
+
where: Prisma.CampaignWhereUniqueInput;
|
|
545
|
+
data: Prisma.XOR<Prisma.CampaignUpdateWithoutOrganizationInput, Prisma.CampaignUncheckedUpdateWithoutOrganizationInput>;
|
|
546
|
+
};
|
|
547
|
+
export type CampaignUpdateManyWithWhereWithoutOrganizationInput = {
|
|
548
|
+
where: Prisma.CampaignScalarWhereInput;
|
|
549
|
+
data: Prisma.XOR<Prisma.CampaignUpdateManyMutationInput, Prisma.CampaignUncheckedUpdateManyWithoutOrganizationInput>;
|
|
550
|
+
};
|
|
551
|
+
export type CampaignScalarWhereInput = {
|
|
552
|
+
AND?: Prisma.CampaignScalarWhereInput | Prisma.CampaignScalarWhereInput[];
|
|
553
|
+
OR?: Prisma.CampaignScalarWhereInput[];
|
|
554
|
+
NOT?: Prisma.CampaignScalarWhereInput | Prisma.CampaignScalarWhereInput[];
|
|
555
|
+
id?: Prisma.StringFilter<"Campaign"> | string;
|
|
556
|
+
title?: Prisma.StringFilter<"Campaign"> | string;
|
|
557
|
+
type?: Prisma.EnumCampaignTypeFilter<"Campaign"> | $Enums.CampaignType;
|
|
558
|
+
validFrom?: Prisma.DateTimeFilter<"Campaign"> | Date | string;
|
|
559
|
+
validTo?: Prisma.DateTimeFilter<"Campaign"> | Date | string;
|
|
560
|
+
organizationId?: Prisma.StringFilter<"Campaign"> | string;
|
|
561
|
+
amount?: Prisma.FloatNullableFilter<"Campaign"> | number | null;
|
|
562
|
+
percentage?: Prisma.FloatNullableFilter<"Campaign"> | number | null;
|
|
563
|
+
publishedAt?: Prisma.DateTimeNullableFilter<"Campaign"> | Date | string | null;
|
|
564
|
+
publishedBy?: Prisma.StringNullableFilter<"Campaign"> | string | null;
|
|
565
|
+
createdAt?: Prisma.DateTimeFilter<"Campaign"> | Date | string;
|
|
566
|
+
updatedAt?: Prisma.DateTimeFilter<"Campaign"> | Date | string;
|
|
567
|
+
};
|
|
568
|
+
export type CampaignCreateManyOrganizationInput = {
|
|
569
|
+
id?: string;
|
|
570
|
+
title: string;
|
|
571
|
+
type: $Enums.CampaignType;
|
|
572
|
+
validFrom: Date | string;
|
|
573
|
+
validTo: Date | string;
|
|
574
|
+
amount?: number | null;
|
|
575
|
+
percentage?: number | null;
|
|
576
|
+
publishedAt?: Date | string | null;
|
|
577
|
+
publishedBy?: string | null;
|
|
578
|
+
createdAt?: Date | string;
|
|
579
|
+
updatedAt?: Date | string;
|
|
580
|
+
};
|
|
581
|
+
export type CampaignUpdateWithoutOrganizationInput = {
|
|
582
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
583
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
584
|
+
type?: Prisma.EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType;
|
|
585
|
+
validFrom?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
586
|
+
validTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
587
|
+
amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
588
|
+
percentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
589
|
+
publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
590
|
+
publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
591
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
592
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
593
|
+
};
|
|
594
|
+
export type CampaignUncheckedUpdateWithoutOrganizationInput = {
|
|
595
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
596
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
597
|
+
type?: Prisma.EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType;
|
|
598
|
+
validFrom?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
599
|
+
validTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
600
|
+
amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
601
|
+
percentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
602
|
+
publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
603
|
+
publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
604
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
605
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
606
|
+
};
|
|
607
|
+
export type CampaignUncheckedUpdateManyWithoutOrganizationInput = {
|
|
608
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
609
|
+
title?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
610
|
+
type?: Prisma.EnumCampaignTypeFieldUpdateOperationsInput | $Enums.CampaignType;
|
|
611
|
+
validFrom?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
612
|
+
validTo?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
613
|
+
amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
614
|
+
percentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
615
|
+
publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
616
|
+
publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
617
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
618
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
619
|
+
};
|
|
620
|
+
export type CampaignSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
621
|
+
id?: boolean;
|
|
622
|
+
title?: boolean;
|
|
623
|
+
type?: boolean;
|
|
624
|
+
validFrom?: boolean;
|
|
625
|
+
validTo?: boolean;
|
|
626
|
+
organizationId?: boolean;
|
|
627
|
+
amount?: boolean;
|
|
628
|
+
percentage?: boolean;
|
|
629
|
+
publishedAt?: boolean;
|
|
630
|
+
publishedBy?: boolean;
|
|
631
|
+
createdAt?: boolean;
|
|
632
|
+
updatedAt?: boolean;
|
|
633
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
634
|
+
}, ExtArgs["result"]["campaign"]>;
|
|
635
|
+
export type CampaignSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
636
|
+
id?: boolean;
|
|
637
|
+
title?: boolean;
|
|
638
|
+
type?: boolean;
|
|
639
|
+
validFrom?: boolean;
|
|
640
|
+
validTo?: boolean;
|
|
641
|
+
organizationId?: boolean;
|
|
642
|
+
amount?: boolean;
|
|
643
|
+
percentage?: boolean;
|
|
644
|
+
publishedAt?: boolean;
|
|
645
|
+
publishedBy?: boolean;
|
|
646
|
+
createdAt?: boolean;
|
|
647
|
+
updatedAt?: boolean;
|
|
648
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
649
|
+
}, ExtArgs["result"]["campaign"]>;
|
|
650
|
+
export type CampaignSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
651
|
+
id?: boolean;
|
|
652
|
+
title?: boolean;
|
|
653
|
+
type?: boolean;
|
|
654
|
+
validFrom?: boolean;
|
|
655
|
+
validTo?: boolean;
|
|
656
|
+
organizationId?: boolean;
|
|
657
|
+
amount?: boolean;
|
|
658
|
+
percentage?: boolean;
|
|
659
|
+
publishedAt?: boolean;
|
|
660
|
+
publishedBy?: boolean;
|
|
661
|
+
createdAt?: boolean;
|
|
662
|
+
updatedAt?: boolean;
|
|
663
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
664
|
+
}, ExtArgs["result"]["campaign"]>;
|
|
665
|
+
export type CampaignSelectScalar = {
|
|
666
|
+
id?: boolean;
|
|
667
|
+
title?: boolean;
|
|
668
|
+
type?: boolean;
|
|
669
|
+
validFrom?: boolean;
|
|
670
|
+
validTo?: boolean;
|
|
671
|
+
organizationId?: boolean;
|
|
672
|
+
amount?: boolean;
|
|
673
|
+
percentage?: boolean;
|
|
674
|
+
publishedAt?: boolean;
|
|
675
|
+
publishedBy?: boolean;
|
|
676
|
+
createdAt?: boolean;
|
|
677
|
+
updatedAt?: boolean;
|
|
678
|
+
};
|
|
679
|
+
export type CampaignOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "title" | "type" | "validFrom" | "validTo" | "organizationId" | "amount" | "percentage" | "publishedAt" | "publishedBy" | "createdAt" | "updatedAt", ExtArgs["result"]["campaign"]>;
|
|
680
|
+
export type CampaignInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
681
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
682
|
+
};
|
|
683
|
+
export type CampaignIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
684
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
685
|
+
};
|
|
686
|
+
export type CampaignIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
687
|
+
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
688
|
+
};
|
|
689
|
+
export type $CampaignPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
690
|
+
name: "Campaign";
|
|
691
|
+
objects: {
|
|
692
|
+
organization: Prisma.$OrganizationPayload<ExtArgs>;
|
|
693
|
+
};
|
|
694
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
695
|
+
id: string;
|
|
696
|
+
title: string;
|
|
697
|
+
type: $Enums.CampaignType;
|
|
698
|
+
validFrom: Date;
|
|
699
|
+
validTo: Date;
|
|
700
|
+
organizationId: string;
|
|
701
|
+
amount: number | null;
|
|
702
|
+
percentage: number | null;
|
|
703
|
+
publishedAt: Date | null;
|
|
704
|
+
publishedBy: string | null;
|
|
705
|
+
createdAt: Date;
|
|
706
|
+
updatedAt: Date;
|
|
707
|
+
}, ExtArgs["result"]["campaign"]>;
|
|
708
|
+
composites: {};
|
|
709
|
+
};
|
|
710
|
+
export type CampaignGetPayload<S extends boolean | null | undefined | CampaignDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CampaignPayload, S>;
|
|
711
|
+
export type CampaignCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<CampaignFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
712
|
+
select?: CampaignCountAggregateInputType | true;
|
|
713
|
+
};
|
|
714
|
+
export interface CampaignDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
715
|
+
[K: symbol]: {
|
|
716
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Campaign'];
|
|
717
|
+
meta: {
|
|
718
|
+
name: 'Campaign';
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
/**
|
|
722
|
+
* Find zero or one Campaign that matches the filter.
|
|
723
|
+
* @param {CampaignFindUniqueArgs} args - Arguments to find a Campaign
|
|
724
|
+
* @example
|
|
725
|
+
* // Get one Campaign
|
|
726
|
+
* const campaign = await prisma.campaign.findUnique({
|
|
727
|
+
* where: {
|
|
728
|
+
* // ... provide filter here
|
|
729
|
+
* }
|
|
730
|
+
* })
|
|
731
|
+
*/
|
|
732
|
+
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>;
|
|
733
|
+
/**
|
|
734
|
+
* Find one Campaign that matches the filter or throw an error with `error.code='P2025'`
|
|
735
|
+
* if no matches were found.
|
|
736
|
+
* @param {CampaignFindUniqueOrThrowArgs} args - Arguments to find a Campaign
|
|
737
|
+
* @example
|
|
738
|
+
* // Get one Campaign
|
|
739
|
+
* const campaign = await prisma.campaign.findUniqueOrThrow({
|
|
740
|
+
* where: {
|
|
741
|
+
* // ... provide filter here
|
|
742
|
+
* }
|
|
743
|
+
* })
|
|
744
|
+
*/
|
|
745
|
+
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>;
|
|
746
|
+
/**
|
|
747
|
+
* Find the first Campaign that matches the filter.
|
|
748
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
749
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
750
|
+
* @param {CampaignFindFirstArgs} args - Arguments to find a Campaign
|
|
751
|
+
* @example
|
|
752
|
+
* // Get one Campaign
|
|
753
|
+
* const campaign = await prisma.campaign.findFirst({
|
|
754
|
+
* where: {
|
|
755
|
+
* // ... provide filter here
|
|
756
|
+
* }
|
|
757
|
+
* })
|
|
758
|
+
*/
|
|
759
|
+
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>;
|
|
760
|
+
/**
|
|
761
|
+
* Find the first Campaign that matches the filter or
|
|
762
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
763
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
764
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
765
|
+
* @param {CampaignFindFirstOrThrowArgs} args - Arguments to find a Campaign
|
|
766
|
+
* @example
|
|
767
|
+
* // Get one Campaign
|
|
768
|
+
* const campaign = await prisma.campaign.findFirstOrThrow({
|
|
769
|
+
* where: {
|
|
770
|
+
* // ... provide filter here
|
|
771
|
+
* }
|
|
772
|
+
* })
|
|
773
|
+
*/
|
|
774
|
+
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>;
|
|
775
|
+
/**
|
|
776
|
+
* Find zero or more Campaigns that matches the filter.
|
|
777
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
778
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
779
|
+
* @param {CampaignFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
780
|
+
* @example
|
|
781
|
+
* // Get all Campaigns
|
|
782
|
+
* const campaigns = await prisma.campaign.findMany()
|
|
783
|
+
*
|
|
784
|
+
* // Get first 10 Campaigns
|
|
785
|
+
* const campaigns = await prisma.campaign.findMany({ take: 10 })
|
|
786
|
+
*
|
|
787
|
+
* // Only select the `id`
|
|
788
|
+
* const campaignWithIdOnly = await prisma.campaign.findMany({ select: { id: true } })
|
|
789
|
+
*
|
|
790
|
+
*/
|
|
791
|
+
findMany<T extends CampaignFindManyArgs>(args?: Prisma.SelectSubset<T, CampaignFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
792
|
+
/**
|
|
793
|
+
* Create a Campaign.
|
|
794
|
+
* @param {CampaignCreateArgs} args - Arguments to create a Campaign.
|
|
795
|
+
* @example
|
|
796
|
+
* // Create one Campaign
|
|
797
|
+
* const Campaign = await prisma.campaign.create({
|
|
798
|
+
* data: {
|
|
799
|
+
* // ... data to create a Campaign
|
|
800
|
+
* }
|
|
801
|
+
* })
|
|
802
|
+
*
|
|
803
|
+
*/
|
|
804
|
+
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>;
|
|
805
|
+
/**
|
|
806
|
+
* Create many Campaigns.
|
|
807
|
+
* @param {CampaignCreateManyArgs} args - Arguments to create many Campaigns.
|
|
808
|
+
* @example
|
|
809
|
+
* // Create many Campaigns
|
|
810
|
+
* const campaign = await prisma.campaign.createMany({
|
|
811
|
+
* data: [
|
|
812
|
+
* // ... provide data here
|
|
813
|
+
* ]
|
|
814
|
+
* })
|
|
815
|
+
*
|
|
816
|
+
*/
|
|
817
|
+
createMany<T extends CampaignCreateManyArgs>(args?: Prisma.SelectSubset<T, CampaignCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
818
|
+
/**
|
|
819
|
+
* Create many Campaigns and returns the data saved in the database.
|
|
820
|
+
* @param {CampaignCreateManyAndReturnArgs} args - Arguments to create many Campaigns.
|
|
821
|
+
* @example
|
|
822
|
+
* // Create many Campaigns
|
|
823
|
+
* const campaign = await prisma.campaign.createManyAndReturn({
|
|
824
|
+
* data: [
|
|
825
|
+
* // ... provide data here
|
|
826
|
+
* ]
|
|
827
|
+
* })
|
|
828
|
+
*
|
|
829
|
+
* // Create many Campaigns and only return the `id`
|
|
830
|
+
* const campaignWithIdOnly = await prisma.campaign.createManyAndReturn({
|
|
831
|
+
* select: { id: true },
|
|
832
|
+
* data: [
|
|
833
|
+
* // ... provide data here
|
|
834
|
+
* ]
|
|
835
|
+
* })
|
|
836
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
837
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
838
|
+
*
|
|
839
|
+
*/
|
|
840
|
+
createManyAndReturn<T extends CampaignCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CampaignCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
841
|
+
/**
|
|
842
|
+
* Delete a Campaign.
|
|
843
|
+
* @param {CampaignDeleteArgs} args - Arguments to delete one Campaign.
|
|
844
|
+
* @example
|
|
845
|
+
* // Delete one Campaign
|
|
846
|
+
* const Campaign = await prisma.campaign.delete({
|
|
847
|
+
* where: {
|
|
848
|
+
* // ... filter to delete one Campaign
|
|
849
|
+
* }
|
|
850
|
+
* })
|
|
851
|
+
*
|
|
852
|
+
*/
|
|
853
|
+
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>;
|
|
854
|
+
/**
|
|
855
|
+
* Update one Campaign.
|
|
856
|
+
* @param {CampaignUpdateArgs} args - Arguments to update one Campaign.
|
|
857
|
+
* @example
|
|
858
|
+
* // Update one Campaign
|
|
859
|
+
* const campaign = await prisma.campaign.update({
|
|
860
|
+
* where: {
|
|
861
|
+
* // ... provide filter here
|
|
862
|
+
* },
|
|
863
|
+
* data: {
|
|
864
|
+
* // ... provide data here
|
|
865
|
+
* }
|
|
866
|
+
* })
|
|
867
|
+
*
|
|
868
|
+
*/
|
|
869
|
+
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>;
|
|
870
|
+
/**
|
|
871
|
+
* Delete zero or more Campaigns.
|
|
872
|
+
* @param {CampaignDeleteManyArgs} args - Arguments to filter Campaigns to delete.
|
|
873
|
+
* @example
|
|
874
|
+
* // Delete a few Campaigns
|
|
875
|
+
* const { count } = await prisma.campaign.deleteMany({
|
|
876
|
+
* where: {
|
|
877
|
+
* // ... provide filter here
|
|
878
|
+
* }
|
|
879
|
+
* })
|
|
880
|
+
*
|
|
881
|
+
*/
|
|
882
|
+
deleteMany<T extends CampaignDeleteManyArgs>(args?: Prisma.SelectSubset<T, CampaignDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
883
|
+
/**
|
|
884
|
+
* Update zero or more Campaigns.
|
|
885
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
886
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
887
|
+
* @param {CampaignUpdateManyArgs} args - Arguments to update one or more rows.
|
|
888
|
+
* @example
|
|
889
|
+
* // Update many Campaigns
|
|
890
|
+
* const campaign = await prisma.campaign.updateMany({
|
|
891
|
+
* where: {
|
|
892
|
+
* // ... provide filter here
|
|
893
|
+
* },
|
|
894
|
+
* data: {
|
|
895
|
+
* // ... provide data here
|
|
896
|
+
* }
|
|
897
|
+
* })
|
|
898
|
+
*
|
|
899
|
+
*/
|
|
900
|
+
updateMany<T extends CampaignUpdateManyArgs>(args: Prisma.SelectSubset<T, CampaignUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
901
|
+
/**
|
|
902
|
+
* Update zero or more Campaigns and returns the data updated in the database.
|
|
903
|
+
* @param {CampaignUpdateManyAndReturnArgs} args - Arguments to update many Campaigns.
|
|
904
|
+
* @example
|
|
905
|
+
* // Update many Campaigns
|
|
906
|
+
* const campaign = await prisma.campaign.updateManyAndReturn({
|
|
907
|
+
* where: {
|
|
908
|
+
* // ... provide filter here
|
|
909
|
+
* },
|
|
910
|
+
* data: [
|
|
911
|
+
* // ... provide data here
|
|
912
|
+
* ]
|
|
913
|
+
* })
|
|
914
|
+
*
|
|
915
|
+
* // Update zero or more Campaigns and only return the `id`
|
|
916
|
+
* const campaignWithIdOnly = await prisma.campaign.updateManyAndReturn({
|
|
917
|
+
* select: { id: true },
|
|
918
|
+
* where: {
|
|
919
|
+
* // ... provide filter here
|
|
920
|
+
* },
|
|
921
|
+
* data: [
|
|
922
|
+
* // ... provide data here
|
|
923
|
+
* ]
|
|
924
|
+
* })
|
|
925
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
926
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
927
|
+
*
|
|
928
|
+
*/
|
|
929
|
+
updateManyAndReturn<T extends CampaignUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CampaignUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
930
|
+
/**
|
|
931
|
+
* Create or update one Campaign.
|
|
932
|
+
* @param {CampaignUpsertArgs} args - Arguments to update or create a Campaign.
|
|
933
|
+
* @example
|
|
934
|
+
* // Update or create a Campaign
|
|
935
|
+
* const campaign = await prisma.campaign.upsert({
|
|
936
|
+
* create: {
|
|
937
|
+
* // ... data to create a Campaign
|
|
938
|
+
* },
|
|
939
|
+
* update: {
|
|
940
|
+
* // ... in case it already exists, update
|
|
941
|
+
* },
|
|
942
|
+
* where: {
|
|
943
|
+
* // ... the filter for the Campaign we want to update
|
|
944
|
+
* }
|
|
945
|
+
* })
|
|
946
|
+
*/
|
|
947
|
+
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>;
|
|
948
|
+
/**
|
|
949
|
+
* Count the number of Campaigns.
|
|
950
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
951
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
952
|
+
* @param {CampaignCountArgs} args - Arguments to filter Campaigns to count.
|
|
953
|
+
* @example
|
|
954
|
+
* // Count the number of Campaigns
|
|
955
|
+
* const count = await prisma.campaign.count({
|
|
956
|
+
* where: {
|
|
957
|
+
* // ... the filter for the Campaigns we want to count
|
|
958
|
+
* }
|
|
959
|
+
* })
|
|
960
|
+
**/
|
|
961
|
+
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>;
|
|
962
|
+
/**
|
|
963
|
+
* Allows you to perform aggregations operations on a Campaign.
|
|
964
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
965
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
966
|
+
* @param {CampaignAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
967
|
+
* @example
|
|
968
|
+
* // Ordered by age ascending
|
|
969
|
+
* // Where email contains prisma.io
|
|
970
|
+
* // Limited to the 10 users
|
|
971
|
+
* const aggregations = await prisma.user.aggregate({
|
|
972
|
+
* _avg: {
|
|
973
|
+
* age: true,
|
|
974
|
+
* },
|
|
975
|
+
* where: {
|
|
976
|
+
* email: {
|
|
977
|
+
* contains: "prisma.io",
|
|
978
|
+
* },
|
|
979
|
+
* },
|
|
980
|
+
* orderBy: {
|
|
981
|
+
* age: "asc",
|
|
982
|
+
* },
|
|
983
|
+
* take: 10,
|
|
984
|
+
* })
|
|
985
|
+
**/
|
|
986
|
+
aggregate<T extends CampaignAggregateArgs>(args: Prisma.Subset<T, CampaignAggregateArgs>): Prisma.PrismaPromise<GetCampaignAggregateType<T>>;
|
|
987
|
+
/**
|
|
988
|
+
* Group by Campaign.
|
|
989
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
990
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
991
|
+
* @param {CampaignGroupByArgs} args - Group by arguments.
|
|
992
|
+
* @example
|
|
993
|
+
* // Group by city, order by createdAt, get count
|
|
994
|
+
* const result = await prisma.user.groupBy({
|
|
995
|
+
* by: ['city', 'createdAt'],
|
|
996
|
+
* orderBy: {
|
|
997
|
+
* createdAt: true
|
|
998
|
+
* },
|
|
999
|
+
* _count: {
|
|
1000
|
+
* _all: true
|
|
1001
|
+
* },
|
|
1002
|
+
* })
|
|
1003
|
+
*
|
|
1004
|
+
**/
|
|
1005
|
+
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 ? {
|
|
1006
|
+
orderBy: CampaignGroupByArgs['orderBy'];
|
|
1007
|
+
} : {
|
|
1008
|
+
orderBy?: CampaignGroupByArgs['orderBy'];
|
|
1009
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
1010
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
1011
|
+
Error,
|
|
1012
|
+
'Field ',
|
|
1013
|
+
P,
|
|
1014
|
+
` in "having" needs to be provided in "by"`
|
|
1015
|
+
];
|
|
1016
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1017
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1018
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1019
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1020
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1021
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1022
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, CampaignGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCampaignGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1023
|
+
/**
|
|
1024
|
+
* Fields of the Campaign model
|
|
1025
|
+
*/
|
|
1026
|
+
readonly fields: CampaignFieldRefs;
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* The delegate class that acts as a "Promise-like" for Campaign.
|
|
1030
|
+
* Why is this prefixed with `Prisma__`?
|
|
1031
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1032
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1033
|
+
*/
|
|
1034
|
+
export interface Prisma__CampaignClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1035
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1036
|
+
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>;
|
|
1037
|
+
/**
|
|
1038
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1039
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1040
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1041
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1042
|
+
*/
|
|
1043
|
+
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>;
|
|
1044
|
+
/**
|
|
1045
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1046
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1047
|
+
* @returns A Promise for the completion of the callback.
|
|
1048
|
+
*/
|
|
1049
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1050
|
+
/**
|
|
1051
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1052
|
+
* resolved value cannot be modified from the callback.
|
|
1053
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1054
|
+
* @returns A Promise for the completion of the callback.
|
|
1055
|
+
*/
|
|
1056
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1057
|
+
}
|
|
1058
|
+
/**
|
|
1059
|
+
* Fields of the Campaign model
|
|
1060
|
+
*/
|
|
1061
|
+
export interface CampaignFieldRefs {
|
|
1062
|
+
readonly id: Prisma.FieldRef<"Campaign", 'String'>;
|
|
1063
|
+
readonly title: Prisma.FieldRef<"Campaign", 'String'>;
|
|
1064
|
+
readonly type: Prisma.FieldRef<"Campaign", 'CampaignType'>;
|
|
1065
|
+
readonly validFrom: Prisma.FieldRef<"Campaign", 'DateTime'>;
|
|
1066
|
+
readonly validTo: Prisma.FieldRef<"Campaign", 'DateTime'>;
|
|
1067
|
+
readonly organizationId: Prisma.FieldRef<"Campaign", 'String'>;
|
|
1068
|
+
readonly amount: Prisma.FieldRef<"Campaign", 'Float'>;
|
|
1069
|
+
readonly percentage: Prisma.FieldRef<"Campaign", 'Float'>;
|
|
1070
|
+
readonly publishedAt: Prisma.FieldRef<"Campaign", 'DateTime'>;
|
|
1071
|
+
readonly publishedBy: Prisma.FieldRef<"Campaign", 'String'>;
|
|
1072
|
+
readonly createdAt: Prisma.FieldRef<"Campaign", 'DateTime'>;
|
|
1073
|
+
readonly updatedAt: Prisma.FieldRef<"Campaign", 'DateTime'>;
|
|
1074
|
+
}
|
|
1075
|
+
/**
|
|
1076
|
+
* Campaign findUnique
|
|
1077
|
+
*/
|
|
1078
|
+
export type CampaignFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1079
|
+
/**
|
|
1080
|
+
* Select specific fields to fetch from the Campaign
|
|
1081
|
+
*/
|
|
1082
|
+
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1083
|
+
/**
|
|
1084
|
+
* Omit specific fields from the Campaign
|
|
1085
|
+
*/
|
|
1086
|
+
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1087
|
+
/**
|
|
1088
|
+
* Choose, which related nodes to fetch as well
|
|
1089
|
+
*/
|
|
1090
|
+
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1091
|
+
/**
|
|
1092
|
+
* Filter, which Campaign to fetch.
|
|
1093
|
+
*/
|
|
1094
|
+
where: Prisma.CampaignWhereUniqueInput;
|
|
1095
|
+
};
|
|
1096
|
+
/**
|
|
1097
|
+
* Campaign findUniqueOrThrow
|
|
1098
|
+
*/
|
|
1099
|
+
export type CampaignFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1100
|
+
/**
|
|
1101
|
+
* Select specific fields to fetch from the Campaign
|
|
1102
|
+
*/
|
|
1103
|
+
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1104
|
+
/**
|
|
1105
|
+
* Omit specific fields from the Campaign
|
|
1106
|
+
*/
|
|
1107
|
+
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1108
|
+
/**
|
|
1109
|
+
* Choose, which related nodes to fetch as well
|
|
1110
|
+
*/
|
|
1111
|
+
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1112
|
+
/**
|
|
1113
|
+
* Filter, which Campaign to fetch.
|
|
1114
|
+
*/
|
|
1115
|
+
where: Prisma.CampaignWhereUniqueInput;
|
|
1116
|
+
};
|
|
1117
|
+
/**
|
|
1118
|
+
* Campaign findFirst
|
|
1119
|
+
*/
|
|
1120
|
+
export type CampaignFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1121
|
+
/**
|
|
1122
|
+
* Select specific fields to fetch from the Campaign
|
|
1123
|
+
*/
|
|
1124
|
+
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1125
|
+
/**
|
|
1126
|
+
* Omit specific fields from the Campaign
|
|
1127
|
+
*/
|
|
1128
|
+
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1129
|
+
/**
|
|
1130
|
+
* Choose, which related nodes to fetch as well
|
|
1131
|
+
*/
|
|
1132
|
+
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1133
|
+
/**
|
|
1134
|
+
* Filter, which Campaign to fetch.
|
|
1135
|
+
*/
|
|
1136
|
+
where?: Prisma.CampaignWhereInput;
|
|
1137
|
+
/**
|
|
1138
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1139
|
+
*
|
|
1140
|
+
* Determine the order of Campaigns to fetch.
|
|
1141
|
+
*/
|
|
1142
|
+
orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[];
|
|
1143
|
+
/**
|
|
1144
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1145
|
+
*
|
|
1146
|
+
* Sets the position for searching for Campaigns.
|
|
1147
|
+
*/
|
|
1148
|
+
cursor?: Prisma.CampaignWhereUniqueInput;
|
|
1149
|
+
/**
|
|
1150
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1151
|
+
*
|
|
1152
|
+
* Take `±n` Campaigns from the position of the cursor.
|
|
1153
|
+
*/
|
|
1154
|
+
take?: number;
|
|
1155
|
+
/**
|
|
1156
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1157
|
+
*
|
|
1158
|
+
* Skip the first `n` Campaigns.
|
|
1159
|
+
*/
|
|
1160
|
+
skip?: number;
|
|
1161
|
+
/**
|
|
1162
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1163
|
+
*
|
|
1164
|
+
* Filter by unique combinations of Campaigns.
|
|
1165
|
+
*/
|
|
1166
|
+
distinct?: Prisma.CampaignScalarFieldEnum | Prisma.CampaignScalarFieldEnum[];
|
|
1167
|
+
};
|
|
1168
|
+
/**
|
|
1169
|
+
* Campaign findFirstOrThrow
|
|
1170
|
+
*/
|
|
1171
|
+
export type CampaignFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1172
|
+
/**
|
|
1173
|
+
* Select specific fields to fetch from the Campaign
|
|
1174
|
+
*/
|
|
1175
|
+
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1176
|
+
/**
|
|
1177
|
+
* Omit specific fields from the Campaign
|
|
1178
|
+
*/
|
|
1179
|
+
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1180
|
+
/**
|
|
1181
|
+
* Choose, which related nodes to fetch as well
|
|
1182
|
+
*/
|
|
1183
|
+
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1184
|
+
/**
|
|
1185
|
+
* Filter, which Campaign to fetch.
|
|
1186
|
+
*/
|
|
1187
|
+
where?: Prisma.CampaignWhereInput;
|
|
1188
|
+
/**
|
|
1189
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1190
|
+
*
|
|
1191
|
+
* Determine the order of Campaigns to fetch.
|
|
1192
|
+
*/
|
|
1193
|
+
orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[];
|
|
1194
|
+
/**
|
|
1195
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1196
|
+
*
|
|
1197
|
+
* Sets the position for searching for Campaigns.
|
|
1198
|
+
*/
|
|
1199
|
+
cursor?: Prisma.CampaignWhereUniqueInput;
|
|
1200
|
+
/**
|
|
1201
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1202
|
+
*
|
|
1203
|
+
* Take `±n` Campaigns from the position of the cursor.
|
|
1204
|
+
*/
|
|
1205
|
+
take?: number;
|
|
1206
|
+
/**
|
|
1207
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1208
|
+
*
|
|
1209
|
+
* Skip the first `n` Campaigns.
|
|
1210
|
+
*/
|
|
1211
|
+
skip?: number;
|
|
1212
|
+
/**
|
|
1213
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1214
|
+
*
|
|
1215
|
+
* Filter by unique combinations of Campaigns.
|
|
1216
|
+
*/
|
|
1217
|
+
distinct?: Prisma.CampaignScalarFieldEnum | Prisma.CampaignScalarFieldEnum[];
|
|
1218
|
+
};
|
|
1219
|
+
/**
|
|
1220
|
+
* Campaign findMany
|
|
1221
|
+
*/
|
|
1222
|
+
export type CampaignFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1223
|
+
/**
|
|
1224
|
+
* Select specific fields to fetch from the Campaign
|
|
1225
|
+
*/
|
|
1226
|
+
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1227
|
+
/**
|
|
1228
|
+
* Omit specific fields from the Campaign
|
|
1229
|
+
*/
|
|
1230
|
+
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1231
|
+
/**
|
|
1232
|
+
* Choose, which related nodes to fetch as well
|
|
1233
|
+
*/
|
|
1234
|
+
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1235
|
+
/**
|
|
1236
|
+
* Filter, which Campaigns to fetch.
|
|
1237
|
+
*/
|
|
1238
|
+
where?: Prisma.CampaignWhereInput;
|
|
1239
|
+
/**
|
|
1240
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1241
|
+
*
|
|
1242
|
+
* Determine the order of Campaigns to fetch.
|
|
1243
|
+
*/
|
|
1244
|
+
orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[];
|
|
1245
|
+
/**
|
|
1246
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1247
|
+
*
|
|
1248
|
+
* Sets the position for listing Campaigns.
|
|
1249
|
+
*/
|
|
1250
|
+
cursor?: Prisma.CampaignWhereUniqueInput;
|
|
1251
|
+
/**
|
|
1252
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1253
|
+
*
|
|
1254
|
+
* Take `±n` Campaigns from the position of the cursor.
|
|
1255
|
+
*/
|
|
1256
|
+
take?: number;
|
|
1257
|
+
/**
|
|
1258
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1259
|
+
*
|
|
1260
|
+
* Skip the first `n` Campaigns.
|
|
1261
|
+
*/
|
|
1262
|
+
skip?: number;
|
|
1263
|
+
distinct?: Prisma.CampaignScalarFieldEnum | Prisma.CampaignScalarFieldEnum[];
|
|
1264
|
+
};
|
|
1265
|
+
/**
|
|
1266
|
+
* Campaign create
|
|
1267
|
+
*/
|
|
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
|
+
*/
|
|
1272
|
+
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1273
|
+
/**
|
|
1274
|
+
* Omit specific fields from the Campaign
|
|
1275
|
+
*/
|
|
1276
|
+
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* Choose, which related nodes to fetch as well
|
|
1279
|
+
*/
|
|
1280
|
+
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1281
|
+
/**
|
|
1282
|
+
* The data needed to create a Campaign.
|
|
1283
|
+
*/
|
|
1284
|
+
data: Prisma.XOR<Prisma.CampaignCreateInput, Prisma.CampaignUncheckedCreateInput>;
|
|
1285
|
+
};
|
|
1286
|
+
/**
|
|
1287
|
+
* Campaign createMany
|
|
1288
|
+
*/
|
|
1289
|
+
export type CampaignCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1290
|
+
/**
|
|
1291
|
+
* The data used to create many Campaigns.
|
|
1292
|
+
*/
|
|
1293
|
+
data: Prisma.CampaignCreateManyInput | Prisma.CampaignCreateManyInput[];
|
|
1294
|
+
skipDuplicates?: boolean;
|
|
1295
|
+
};
|
|
1296
|
+
/**
|
|
1297
|
+
* Campaign createManyAndReturn
|
|
1298
|
+
*/
|
|
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
|
+
*/
|
|
1303
|
+
select?: Prisma.CampaignSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1304
|
+
/**
|
|
1305
|
+
* Omit specific fields from the Campaign
|
|
1306
|
+
*/
|
|
1307
|
+
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1308
|
+
/**
|
|
1309
|
+
* The data used to create many Campaigns.
|
|
1310
|
+
*/
|
|
1311
|
+
data: Prisma.CampaignCreateManyInput | Prisma.CampaignCreateManyInput[];
|
|
1312
|
+
skipDuplicates?: boolean;
|
|
1313
|
+
/**
|
|
1314
|
+
* Choose, which related nodes to fetch as well
|
|
1315
|
+
*/
|
|
1316
|
+
include?: Prisma.CampaignIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1317
|
+
};
|
|
1318
|
+
/**
|
|
1319
|
+
* Campaign update
|
|
1320
|
+
*/
|
|
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
|
+
*/
|
|
1325
|
+
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1326
|
+
/**
|
|
1327
|
+
* Omit specific fields from the Campaign
|
|
1328
|
+
*/
|
|
1329
|
+
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1330
|
+
/**
|
|
1331
|
+
* Choose, which related nodes to fetch as well
|
|
1332
|
+
*/
|
|
1333
|
+
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1334
|
+
/**
|
|
1335
|
+
* The data needed to update a Campaign.
|
|
1336
|
+
*/
|
|
1337
|
+
data: Prisma.XOR<Prisma.CampaignUpdateInput, Prisma.CampaignUncheckedUpdateInput>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Choose, which Campaign to update.
|
|
1340
|
+
*/
|
|
1341
|
+
where: Prisma.CampaignWhereUniqueInput;
|
|
1342
|
+
};
|
|
1343
|
+
/**
|
|
1344
|
+
* Campaign updateMany
|
|
1345
|
+
*/
|
|
1346
|
+
export type CampaignUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1347
|
+
/**
|
|
1348
|
+
* The data used to update Campaigns.
|
|
1349
|
+
*/
|
|
1350
|
+
data: Prisma.XOR<Prisma.CampaignUpdateManyMutationInput, Prisma.CampaignUncheckedUpdateManyInput>;
|
|
1351
|
+
/**
|
|
1352
|
+
* Filter which Campaigns to update
|
|
1353
|
+
*/
|
|
1354
|
+
where?: Prisma.CampaignWhereInput;
|
|
1355
|
+
/**
|
|
1356
|
+
* Limit how many Campaigns to update.
|
|
1357
|
+
*/
|
|
1358
|
+
limit?: number;
|
|
1359
|
+
};
|
|
1360
|
+
/**
|
|
1361
|
+
* Campaign updateManyAndReturn
|
|
1362
|
+
*/
|
|
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
|
+
*/
|
|
1367
|
+
select?: Prisma.CampaignSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1368
|
+
/**
|
|
1369
|
+
* Omit specific fields from the Campaign
|
|
1370
|
+
*/
|
|
1371
|
+
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1372
|
+
/**
|
|
1373
|
+
* The data used to update Campaigns.
|
|
1374
|
+
*/
|
|
1375
|
+
data: Prisma.XOR<Prisma.CampaignUpdateManyMutationInput, Prisma.CampaignUncheckedUpdateManyInput>;
|
|
1376
|
+
/**
|
|
1377
|
+
* Filter which Campaigns to update
|
|
1378
|
+
*/
|
|
1379
|
+
where?: Prisma.CampaignWhereInput;
|
|
1380
|
+
/**
|
|
1381
|
+
* Limit how many Campaigns to update.
|
|
1382
|
+
*/
|
|
1383
|
+
limit?: number;
|
|
1384
|
+
/**
|
|
1385
|
+
* Choose, which related nodes to fetch as well
|
|
1386
|
+
*/
|
|
1387
|
+
include?: Prisma.CampaignIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1388
|
+
};
|
|
1389
|
+
/**
|
|
1390
|
+
* Campaign upsert
|
|
1391
|
+
*/
|
|
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
|
+
*/
|
|
1396
|
+
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1397
|
+
/**
|
|
1398
|
+
* Omit specific fields from the Campaign
|
|
1399
|
+
*/
|
|
1400
|
+
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1401
|
+
/**
|
|
1402
|
+
* Choose, which related nodes to fetch as well
|
|
1403
|
+
*/
|
|
1404
|
+
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1405
|
+
/**
|
|
1406
|
+
* The filter to search for the Campaign to update in case it exists.
|
|
1407
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
1416
|
+
update: Prisma.XOR<Prisma.CampaignUpdateInput, Prisma.CampaignUncheckedUpdateInput>;
|
|
1417
|
+
};
|
|
1418
|
+
/**
|
|
1419
|
+
* Campaign delete
|
|
1420
|
+
*/
|
|
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
|
+
*/
|
|
1425
|
+
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1426
|
+
/**
|
|
1427
|
+
* Omit specific fields from the Campaign
|
|
1428
|
+
*/
|
|
1429
|
+
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1430
|
+
/**
|
|
1431
|
+
* Choose, which related nodes to fetch as well
|
|
1432
|
+
*/
|
|
1433
|
+
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1434
|
+
/**
|
|
1435
|
+
* Filter which Campaign to delete.
|
|
1436
|
+
*/
|
|
1437
|
+
where: Prisma.CampaignWhereUniqueInput;
|
|
1438
|
+
};
|
|
1439
|
+
/**
|
|
1440
|
+
* Campaign deleteMany
|
|
1441
|
+
*/
|
|
1442
|
+
export type CampaignDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1443
|
+
/**
|
|
1444
|
+
* Filter which Campaigns to delete
|
|
1445
|
+
*/
|
|
1446
|
+
where?: Prisma.CampaignWhereInput;
|
|
1447
|
+
/**
|
|
1448
|
+
* Limit how many Campaigns to delete.
|
|
1449
|
+
*/
|
|
1450
|
+
limit?: number;
|
|
1451
|
+
};
|
|
1452
|
+
/**
|
|
1453
|
+
* Campaign without action
|
|
1454
|
+
*/
|
|
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
|
+
*/
|
|
1459
|
+
select?: Prisma.CampaignSelect<ExtArgs> | null;
|
|
1460
|
+
/**
|
|
1461
|
+
* Omit specific fields from the Campaign
|
|
1462
|
+
*/
|
|
1463
|
+
omit?: Prisma.CampaignOmit<ExtArgs> | null;
|
|
1464
|
+
/**
|
|
1465
|
+
* Choose, which related nodes to fetch as well
|
|
1466
|
+
*/
|
|
1467
|
+
include?: Prisma.CampaignInclude<ExtArgs> | null;
|
|
1468
|
+
};
|
|
1469
|
+
export {};
|