@pos-360/prisma 1.0.0-beta.0 → 1.0.0-beta.1
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/lib/generated/prisma/browser.d.ts +514 -0
- package/lib/generated/prisma/browser.js +57 -0
- package/lib/generated/prisma/browser.js.map +1 -0
- package/lib/generated/prisma/client.d.ts +531 -0
- package/lib/generated/prisma/client.js +69 -0
- package/lib/generated/prisma/client.js.map +1 -0
- package/lib/generated/prisma/commonInputTypes.d.ts +1529 -0
- package/lib/generated/prisma/commonInputTypes.js +12 -0
- package/lib/generated/prisma/commonInputTypes.js.map +1 -0
- package/lib/generated/prisma/dmmf.d.ts +4085 -0
- package/lib/generated/prisma/dmmf.js +27551 -0
- package/lib/generated/prisma/dmmf.js.map +1 -0
- package/lib/generated/prisma/enums.d.ts +216 -0
- package/lib/generated/prisma/enums.js +205 -0
- package/lib/generated/prisma/enums.js.map +1 -0
- package/lib/generated/prisma/internal/class.d.ts +1237 -0
- package/lib/generated/prisma/internal/class.js +79 -0
- package/lib/generated/prisma/internal/class.js.map +1 -0
- package/lib/generated/prisma/internal/prismaNamespace.d.ts +10091 -0
- package/lib/generated/prisma/internal/prismaNamespace.js +1721 -0
- package/lib/generated/prisma/internal/prismaNamespace.js.map +1 -0
- package/lib/generated/prisma/internal/prismaNamespaceBrowser.d.ts +1816 -0
- package/lib/generated/prisma/internal/prismaNamespaceBrowser.js +1692 -0
- package/lib/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
- package/lib/generated/prisma/kysely-types.d.ts +1499 -0
- package/lib/generated/prisma/kysely-types.js +196 -0
- package/lib/generated/prisma/kysely-types.js.map +1 -0
- package/lib/generated/prisma/models/Address.d.ts +1339 -0
- package/lib/generated/prisma/models/Address.js +12 -0
- package/lib/generated/prisma/models/Address.js.map +1 -0
- package/lib/generated/prisma/models/Administrator.d.ts +1633 -0
- package/lib/generated/prisma/models/Administrator.js +12 -0
- package/lib/generated/prisma/models/Administrator.js.map +1 -0
- package/lib/generated/prisma/models/AdministratorToPlatform.d.ts +1208 -0
- package/lib/generated/prisma/models/AdministratorToPlatform.js +12 -0
- package/lib/generated/prisma/models/AdministratorToPlatform.js.map +1 -0
- package/lib/generated/prisma/models/AdministratorToStore.d.ts +1201 -0
- package/lib/generated/prisma/models/AdministratorToStore.js +12 -0
- package/lib/generated/prisma/models/AdministratorToStore.js.map +1 -0
- package/lib/generated/prisma/models/ApiToken.d.ts +1125 -0
- package/lib/generated/prisma/models/ApiToken.js +12 -0
- package/lib/generated/prisma/models/ApiToken.js.map +1 -0
- package/lib/generated/prisma/models/AwsBucket.d.ts +1435 -0
- package/lib/generated/prisma/models/AwsBucket.js +12 -0
- package/lib/generated/prisma/models/AwsBucket.js.map +1 -0
- package/lib/generated/prisma/models/Card.d.ts +1533 -0
- package/lib/generated/prisma/models/Card.js +12 -0
- package/lib/generated/prisma/models/Card.js.map +1 -0
- package/lib/generated/prisma/models/Cart.d.ts +2315 -0
- package/lib/generated/prisma/models/Cart.js +12 -0
- package/lib/generated/prisma/models/Cart.js.map +1 -0
- package/lib/generated/prisma/models/CartCost.d.ts +1368 -0
- package/lib/generated/prisma/models/CartCost.js +12 -0
- package/lib/generated/prisma/models/CartCost.js.map +1 -0
- package/lib/generated/prisma/models/CartLine.d.ts +1948 -0
- package/lib/generated/prisma/models/CartLine.js +12 -0
- package/lib/generated/prisma/models/CartLine.js.map +1 -0
- package/lib/generated/prisma/models/CartLineModifier.d.ts +2061 -0
- package/lib/generated/prisma/models/CartLineModifier.js +12 -0
- package/lib/generated/prisma/models/CartLineModifier.js.map +1 -0
- package/lib/generated/prisma/models/CartLineModifierOption.d.ts +1435 -0
- package/lib/generated/prisma/models/CartLineModifierOption.js +12 -0
- package/lib/generated/prisma/models/CartLineModifierOption.js.map +1 -0
- package/lib/generated/prisma/models/Checkout.d.ts +3989 -0
- package/lib/generated/prisma/models/Checkout.js +12 -0
- package/lib/generated/prisma/models/Checkout.js.map +1 -0
- package/lib/generated/prisma/models/CheckoutGroup.d.ts +2604 -0
- package/lib/generated/prisma/models/CheckoutGroup.js +12 -0
- package/lib/generated/prisma/models/CheckoutGroup.js.map +1 -0
- package/lib/generated/prisma/models/CheckoutLine.d.ts +1932 -0
- package/lib/generated/prisma/models/CheckoutLine.js +12 -0
- package/lib/generated/prisma/models/CheckoutLine.js.map +1 -0
- package/lib/generated/prisma/models/CheckoutLineModifierOption.d.ts +1702 -0
- package/lib/generated/prisma/models/CheckoutLineModifierOption.js +12 -0
- package/lib/generated/prisma/models/CheckoutLineModifierOption.js.map +1 -0
- package/lib/generated/prisma/models/CheckoutLinesModifier.d.ts +2124 -0
- package/lib/generated/prisma/models/CheckoutLinesModifier.js +12 -0
- package/lib/generated/prisma/models/CheckoutLinesModifier.js.map +1 -0
- package/lib/generated/prisma/models/Collection.d.ts +1961 -0
- package/lib/generated/prisma/models/Collection.js +12 -0
- package/lib/generated/prisma/models/Collection.js.map +1 -0
- package/lib/generated/prisma/models/CollectionToPlatform.d.ts +1313 -0
- package/lib/generated/prisma/models/CollectionToPlatform.js +12 -0
- package/lib/generated/prisma/models/CollectionToPlatform.js.map +1 -0
- package/lib/generated/prisma/models/CollectionToProduct.d.ts +1342 -0
- package/lib/generated/prisma/models/CollectionToProduct.js +12 -0
- package/lib/generated/prisma/models/CollectionToProduct.js.map +1 -0
- package/lib/generated/prisma/models/CollectionToProductVariant.d.ts +1201 -0
- package/lib/generated/prisma/models/CollectionToProductVariant.js +12 -0
- package/lib/generated/prisma/models/CollectionToProductVariant.js.map +1 -0
- package/lib/generated/prisma/models/Customer.d.ts +2964 -0
- package/lib/generated/prisma/models/Customer.js +12 -0
- package/lib/generated/prisma/models/Customer.js.map +1 -0
- package/lib/generated/prisma/models/CustomerGroup.d.ts +1167 -0
- package/lib/generated/prisma/models/CustomerGroup.js +12 -0
- package/lib/generated/prisma/models/CustomerGroup.js.map +1 -0
- package/lib/generated/prisma/models/CustomerToAddress.d.ts +1243 -0
- package/lib/generated/prisma/models/CustomerToAddress.js +12 -0
- package/lib/generated/prisma/models/CustomerToAddress.js.map +1 -0
- package/lib/generated/prisma/models/CustomerToCustomerGroup.d.ts +1201 -0
- package/lib/generated/prisma/models/CustomerToCustomerGroup.js +12 -0
- package/lib/generated/prisma/models/CustomerToCustomerGroup.js.map +1 -0
- package/lib/generated/prisma/models/DiscountCode.d.ts +3139 -0
- package/lib/generated/prisma/models/DiscountCode.js +12 -0
- package/lib/generated/prisma/models/DiscountCode.js.map +1 -0
- package/lib/generated/prisma/models/DiscountCodeAppliedToCart.d.ts +1332 -0
- package/lib/generated/prisma/models/DiscountCodeAppliedToCart.js +12 -0
- package/lib/generated/prisma/models/DiscountCodeAppliedToCart.js.map +1 -0
- package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.d.ts +1389 -0
- package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.js +12 -0
- package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.js.map +1 -0
- package/lib/generated/prisma/models/DiscountCodeRedemption.d.ts +1537 -0
- package/lib/generated/prisma/models/DiscountCodeRedemption.js +12 -0
- package/lib/generated/prisma/models/DiscountCodeRedemption.js.map +1 -0
- package/lib/generated/prisma/models/EventLog.d.ts +1295 -0
- package/lib/generated/prisma/models/EventLog.js +12 -0
- package/lib/generated/prisma/models/EventLog.js.map +1 -0
- package/lib/generated/prisma/models/Facet.d.ts +1266 -0
- package/lib/generated/prisma/models/Facet.js +12 -0
- package/lib/generated/prisma/models/Facet.js.map +1 -0
- package/lib/generated/prisma/models/FacetOption.d.ts +1342 -0
- package/lib/generated/prisma/models/FacetOption.js +12 -0
- package/lib/generated/prisma/models/FacetOption.js.map +1 -0
- package/lib/generated/prisma/models/FacetOptionToPlatform.d.ts +1201 -0
- package/lib/generated/prisma/models/FacetOptionToPlatform.js +12 -0
- package/lib/generated/prisma/models/FacetOptionToPlatform.js.map +1 -0
- package/lib/generated/prisma/models/FacetToPlatform.d.ts +1201 -0
- package/lib/generated/prisma/models/FacetToPlatform.js +12 -0
- package/lib/generated/prisma/models/FacetToPlatform.js.map +1 -0
- package/lib/generated/prisma/models/FeatureFlag.d.ts +1412 -0
- package/lib/generated/prisma/models/FeatureFlag.js +12 -0
- package/lib/generated/prisma/models/FeatureFlag.js.map +1 -0
- package/lib/generated/prisma/models/FirebaseAdminConfiguration.d.ts +1059 -0
- package/lib/generated/prisma/models/FirebaseAdminConfiguration.js +12 -0
- package/lib/generated/prisma/models/FirebaseAdminConfiguration.js.map +1 -0
- package/lib/generated/prisma/models/FlaggedPayment.d.ts +1065 -0
- package/lib/generated/prisma/models/FlaggedPayment.js +12 -0
- package/lib/generated/prisma/models/FlaggedPayment.js.map +1 -0
- package/lib/generated/prisma/models/FreeItemRule.d.ts +1021 -0
- package/lib/generated/prisma/models/FreeItemRule.js +12 -0
- package/lib/generated/prisma/models/FreeItemRule.js.map +1 -0
- package/lib/generated/prisma/models/FreeItemToCustomer.d.ts +993 -0
- package/lib/generated/prisma/models/FreeItemToCustomer.js +12 -0
- package/lib/generated/prisma/models/FreeItemToCustomer.js.map +1 -0
- package/lib/generated/prisma/models/FulfillmentFees.d.ts +1365 -0
- package/lib/generated/prisma/models/FulfillmentFees.js +12 -0
- package/lib/generated/prisma/models/FulfillmentFees.js.map +1 -0
- package/lib/generated/prisma/models/Ingredient.d.ts +1886 -0
- package/lib/generated/prisma/models/Ingredient.js +12 -0
- package/lib/generated/prisma/models/Ingredient.js.map +1 -0
- package/lib/generated/prisma/models/IngredientToProductVariant.d.ts +1561 -0
- package/lib/generated/prisma/models/IngredientToProductVariant.js +12 -0
- package/lib/generated/prisma/models/IngredientToProductVariant.js.map +1 -0
- package/lib/generated/prisma/models/IngredientToStore.d.ts +1507 -0
- package/lib/generated/prisma/models/IngredientToStore.js +12 -0
- package/lib/generated/prisma/models/IngredientToStore.js.map +1 -0
- package/lib/generated/prisma/models/ManualCollectionProduct.d.ts +1256 -0
- package/lib/generated/prisma/models/ManualCollectionProduct.js +12 -0
- package/lib/generated/prisma/models/ManualCollectionProduct.js.map +1 -0
- package/lib/generated/prisma/models/Media.d.ts +2127 -0
- package/lib/generated/prisma/models/Media.js +12 -0
- package/lib/generated/prisma/models/Media.js.map +1 -0
- package/lib/generated/prisma/models/Modifier.d.ts +2597 -0
- package/lib/generated/prisma/models/Modifier.js +12 -0
- package/lib/generated/prisma/models/Modifier.js.map +1 -0
- package/lib/generated/prisma/models/ModifierGroup.d.ts +2099 -0
- package/lib/generated/prisma/models/ModifierGroup.js +12 -0
- package/lib/generated/prisma/models/ModifierGroup.js.map +1 -0
- package/lib/generated/prisma/models/ModifierGroupToProduct.d.ts +1249 -0
- package/lib/generated/prisma/models/ModifierGroupToProduct.js +12 -0
- package/lib/generated/prisma/models/ModifierGroupToProduct.js.map +1 -0
- package/lib/generated/prisma/models/ModifierOption.d.ts +1838 -0
- package/lib/generated/prisma/models/ModifierOption.js +12 -0
- package/lib/generated/prisma/models/ModifierOption.js.map +1 -0
- package/lib/generated/prisma/models/ModifierToModifierGroup.d.ts +1343 -0
- package/lib/generated/prisma/models/ModifierToModifierGroup.js +12 -0
- package/lib/generated/prisma/models/ModifierToModifierGroup.js.map +1 -0
- package/lib/generated/prisma/models/NmiSecurityKey.d.ts +1087 -0
- package/lib/generated/prisma/models/NmiSecurityKey.js +12 -0
- package/lib/generated/prisma/models/NmiSecurityKey.js.map +1 -0
- package/lib/generated/prisma/models/OneTimeToken.d.ts +1115 -0
- package/lib/generated/prisma/models/OneTimeToken.js +12 -0
- package/lib/generated/prisma/models/OneTimeToken.js.map +1 -0
- package/lib/generated/prisma/models/Payment.d.ts +1560 -0
- package/lib/generated/prisma/models/Payment.js +12 -0
- package/lib/generated/prisma/models/Payment.js.map +1 -0
- package/lib/generated/prisma/models/Platform.d.ts +7442 -0
- package/lib/generated/prisma/models/Platform.js +12 -0
- package/lib/generated/prisma/models/Platform.js.map +1 -0
- package/lib/generated/prisma/models/PlatformAwsConfiguration.d.ts +1333 -0
- package/lib/generated/prisma/models/PlatformAwsConfiguration.js +12 -0
- package/lib/generated/prisma/models/PlatformAwsConfiguration.js.map +1 -0
- package/lib/generated/prisma/models/PlatformMailerMessage.d.ts +1299 -0
- package/lib/generated/prisma/models/PlatformMailerMessage.js +12 -0
- package/lib/generated/prisma/models/PlatformMailerMessage.js.map +1 -0
- package/lib/generated/prisma/models/PrepTime.d.ts +1420 -0
- package/lib/generated/prisma/models/PrepTime.js +12 -0
- package/lib/generated/prisma/models/PrepTime.js.map +1 -0
- package/lib/generated/prisma/models/Product.d.ts +2975 -0
- package/lib/generated/prisma/models/Product.js +12 -0
- package/lib/generated/prisma/models/Product.js.map +1 -0
- package/lib/generated/prisma/models/ProductCategory.d.ts +2057 -0
- package/lib/generated/prisma/models/ProductCategory.js +12 -0
- package/lib/generated/prisma/models/ProductCategory.js.map +1 -0
- package/lib/generated/prisma/models/ProductCategoryToTag.d.ts +1201 -0
- package/lib/generated/prisma/models/ProductCategoryToTag.js +12 -0
- package/lib/generated/prisma/models/ProductCategoryToTag.js.map +1 -0
- package/lib/generated/prisma/models/ProductListing.d.ts +1747 -0
- package/lib/generated/prisma/models/ProductListing.js +12 -0
- package/lib/generated/prisma/models/ProductListing.js.map +1 -0
- package/lib/generated/prisma/models/ProductToTag.d.ts +1201 -0
- package/lib/generated/prisma/models/ProductToTag.js +12 -0
- package/lib/generated/prisma/models/ProductToTag.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariant.d.ts +6964 -0
- package/lib/generated/prisma/models/ProductVariant.js +12 -0
- package/lib/generated/prisma/models/ProductVariant.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantConfiguration.d.ts +1775 -0
- package/lib/generated/prisma/models/ProductVariantConfiguration.js +12 -0
- package/lib/generated/prisma/models/ProductVariantConfiguration.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantListing.d.ts +2152 -0
- package/lib/generated/prisma/models/ProductVariantListing.js +12 -0
- package/lib/generated/prisma/models/ProductVariantListing.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantListingToMedia.d.ts +1401 -0
- package/lib/generated/prisma/models/ProductVariantListingToMedia.js +12 -0
- package/lib/generated/prisma/models/ProductVariantListingToMedia.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantPlatformPricing.d.ts +1420 -0
- package/lib/generated/prisma/models/ProductVariantPlatformPricing.js +12 -0
- package/lib/generated/prisma/models/ProductVariantPlatformPricing.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantRanking.d.ts +1402 -0
- package/lib/generated/prisma/models/ProductVariantRanking.js +12 -0
- package/lib/generated/prisma/models/ProductVariantRanking.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.d.ts +1638 -0
- package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.js +12 -0
- package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantStorePricing.d.ts +1467 -0
- package/lib/generated/prisma/models/ProductVariantStorePricing.js +12 -0
- package/lib/generated/prisma/models/ProductVariantStorePricing.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantStoreRanking.d.ts +1890 -0
- package/lib/generated/prisma/models/ProductVariantStoreRanking.js +12 -0
- package/lib/generated/prisma/models/ProductVariantStoreRanking.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantToMedia.d.ts +1250 -0
- package/lib/generated/prisma/models/ProductVariantToMedia.js +12 -0
- package/lib/generated/prisma/models/ProductVariantToMedia.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantToTag.d.ts +1201 -0
- package/lib/generated/prisma/models/ProductVariantToTag.js +12 -0
- package/lib/generated/prisma/models/ProductVariantToTag.js.map +1 -0
- package/lib/generated/prisma/models/ProductVarietal.d.ts +1385 -0
- package/lib/generated/prisma/models/ProductVarietal.js +12 -0
- package/lib/generated/prisma/models/ProductVarietal.js.map +1 -0
- package/lib/generated/prisma/models/ProductsWithOverrides.d.ts +1782 -0
- package/lib/generated/prisma/models/ProductsWithOverrides.js +12 -0
- package/lib/generated/prisma/models/ProductsWithOverrides.js.map +1 -0
- package/lib/generated/prisma/models/PvStoreScheduledAvailability.d.ts +1931 -0
- package/lib/generated/prisma/models/PvStoreScheduledAvailability.js +12 -0
- package/lib/generated/prisma/models/PvStoreScheduledAvailability.js.map +1 -0
- package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.d.ts +1405 -0
- package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.js +12 -0
- package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.js.map +1 -0
- package/lib/generated/prisma/models/Refund.d.ts +1707 -0
- package/lib/generated/prisma/models/Refund.js +12 -0
- package/lib/generated/prisma/models/Refund.js.map +1 -0
- package/lib/generated/prisma/models/RefundLine.d.ts +1373 -0
- package/lib/generated/prisma/models/RefundLine.js +12 -0
- package/lib/generated/prisma/models/RefundLine.js.map +1 -0
- package/lib/generated/prisma/models/RelatedItems.d.ts +1431 -0
- package/lib/generated/prisma/models/RelatedItems.js +12 -0
- package/lib/generated/prisma/models/RelatedItems.js.map +1 -0
- package/lib/generated/prisma/models/Role.d.ts +1264 -0
- package/lib/generated/prisma/models/Role.js +12 -0
- package/lib/generated/prisma/models/Role.js.map +1 -0
- package/lib/generated/prisma/models/ScheduledTask.d.ts +1146 -0
- package/lib/generated/prisma/models/ScheduledTask.js +12 -0
- package/lib/generated/prisma/models/ScheduledTask.js.map +1 -0
- package/lib/generated/prisma/models/ShippingConfiguration.d.ts +1659 -0
- package/lib/generated/prisma/models/ShippingConfiguration.js +12 -0
- package/lib/generated/prisma/models/ShippingConfiguration.js.map +1 -0
- package/lib/generated/prisma/models/ShippingLabelFee.d.ts +1705 -0
- package/lib/generated/prisma/models/ShippingLabelFee.js +12 -0
- package/lib/generated/prisma/models/ShippingLabelFee.js.map +1 -0
- package/lib/generated/prisma/models/ShippingLabelRefund.d.ts +1520 -0
- package/lib/generated/prisma/models/ShippingLabelRefund.js +12 -0
- package/lib/generated/prisma/models/ShippingLabelRefund.js.map +1 -0
- package/lib/generated/prisma/models/SmsConversation.d.ts +1548 -0
- package/lib/generated/prisma/models/SmsConversation.js +12 -0
- package/lib/generated/prisma/models/SmsConversation.js.map +1 -0
- package/lib/generated/prisma/models/SmsConversationMessage.d.ts +1326 -0
- package/lib/generated/prisma/models/SmsConversationMessage.js +12 -0
- package/lib/generated/prisma/models/SmsConversationMessage.js.map +1 -0
- package/lib/generated/prisma/models/SmsMerchantNotificationMessage.d.ts +1125 -0
- package/lib/generated/prisma/models/SmsMerchantNotificationMessage.js +12 -0
- package/lib/generated/prisma/models/SmsMerchantNotificationMessage.js.map +1 -0
- package/lib/generated/prisma/models/StockLevel.d.ts +1425 -0
- package/lib/generated/prisma/models/StockLevel.js +12 -0
- package/lib/generated/prisma/models/StockLevel.js.map +1 -0
- package/lib/generated/prisma/models/StockLocation.d.ts +1652 -0
- package/lib/generated/prisma/models/StockLocation.js +12 -0
- package/lib/generated/prisma/models/StockLocation.js.map +1 -0
- package/lib/generated/prisma/models/StockLocationToPlatform.d.ts +1201 -0
- package/lib/generated/prisma/models/StockLocationToPlatform.js +12 -0
- package/lib/generated/prisma/models/StockLocationToPlatform.js.map +1 -0
- package/lib/generated/prisma/models/StockMovement.d.ts +1608 -0
- package/lib/generated/prisma/models/StockMovement.js +12 -0
- package/lib/generated/prisma/models/StockMovement.js.map +1 -0
- package/lib/generated/prisma/models/Store.d.ts +4487 -0
- package/lib/generated/prisma/models/Store.js +12 -0
- package/lib/generated/prisma/models/Store.js.map +1 -0
- package/lib/generated/prisma/models/StoreRestockingLog.d.ts +1297 -0
- package/lib/generated/prisma/models/StoreRestockingLog.js +12 -0
- package/lib/generated/prisma/models/StoreRestockingLog.js.map +1 -0
- package/lib/generated/prisma/models/StoreRestockingSchedule.d.ts +1932 -0
- package/lib/generated/prisma/models/StoreRestockingSchedule.js +12 -0
- package/lib/generated/prisma/models/StoreRestockingSchedule.js.map +1 -0
- package/lib/generated/prisma/models/StoreToAssociatedStoreType.d.ts +1294 -0
- package/lib/generated/prisma/models/StoreToAssociatedStoreType.js +12 -0
- package/lib/generated/prisma/models/StoreToAssociatedStoreType.js.map +1 -0
- package/lib/generated/prisma/models/StoreToPlatform.d.ts +1331 -0
- package/lib/generated/prisma/models/StoreToPlatform.js +12 -0
- package/lib/generated/prisma/models/StoreToPlatform.js.map +1 -0
- package/lib/generated/prisma/models/Tag.d.ts +1581 -0
- package/lib/generated/prisma/models/Tag.js +12 -0
- package/lib/generated/prisma/models/Tag.js.map +1 -0
- package/lib/generated/prisma/models/TaxCategory.d.ts +1169 -0
- package/lib/generated/prisma/models/TaxCategory.js +12 -0
- package/lib/generated/prisma/models/TaxCategory.js.map +1 -0
- package/lib/generated/prisma/models/Transaction.d.ts +1551 -0
- package/lib/generated/prisma/models/Transaction.js +12 -0
- package/lib/generated/prisma/models/Transaction.js.map +1 -0
- package/lib/generated/prisma/models/User.d.ts +1907 -0
- package/lib/generated/prisma/models/User.js +12 -0
- package/lib/generated/prisma/models/User.js.map +1 -0
- package/lib/generated/prisma/models/UserToRole.d.ts +1201 -0
- package/lib/generated/prisma/models/UserToRole.js +12 -0
- package/lib/generated/prisma/models/UserToRole.js.map +1 -0
- package/lib/generated/prisma/models.d.ts +103 -0
- package/lib/generated/prisma/models.js +3 -0
- package/lib/generated/prisma/models.js.map +1 -0
- package/lib/generated/prisma/pjtg.d.ts +145 -0
- package/lib/generated/prisma/pjtg.js +3 -0
- package/lib/generated/prisma/pjtg.js.map +1 -0
- package/lib/helpers.d.ts +37 -0
- package/lib/helpers.js +226 -0
- package/lib/helpers.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js.map +1 -0
- package/lib/kysely/index.d.ts +2 -0
- package/lib/kysely/index.js +19 -0
- package/lib/kysely/index.js.map +1 -0
- package/lib/kysely/kysely-db.d.ts +3 -0
- package/lib/kysely/kysely-db.js +3 -0
- package/lib/kysely/kysely-db.js.map +1 -0
- package/lib/kysely/utils/index.d.ts +4 -0
- package/lib/kysely/utils/index.js +21 -0
- package/lib/kysely/utils/index.js.map +1 -0
- package/lib/kysely/utils/json-array-from-no-subquery.d.ts +38 -0
- package/lib/kysely/utils/json-array-from-no-subquery.js +43 -0
- package/lib/kysely/utils/json-array-from-no-subquery.js.map +1 -0
- package/lib/kysely/utils/json-object-from-no-subquery.d.ts +40 -0
- package/lib/kysely/utils/json-object-from-no-subquery.js +45 -0
- package/lib/kysely/utils/json-object-from-no-subquery.js.map +1 -0
- package/lib/kysely/utils/serialize-bigint-value.d.ts +3 -0
- package/lib/kysely/utils/serialize-bigint-value.js +13 -0
- package/lib/kysely/utils/serialize-bigint-value.js.map +1 -0
- package/lib/kysely/utils/serialize-numeric-value.d.ts +4 -0
- package/lib/kysely/utils/serialize-numeric-value.js +11 -0
- package/lib/kysely/utils/serialize-numeric-value.js.map +1 -0
- package/lib/kysely/utils/shallow-dehydrate.d.ts +18 -0
- package/lib/kysely/utils/shallow-dehydrate.js +3 -0
- package/lib/kysely/utils/shallow-dehydrate.js.map +1 -0
- package/lib/prisma-module/index.d.ts +4 -0
- package/lib/prisma-module/index.js +21 -0
- package/lib/prisma-module/index.js.map +1 -0
- package/lib/prisma-module/prisma-options.d.ts +59 -0
- package/lib/prisma-module/prisma-options.js +3 -0
- package/lib/prisma-module/prisma-options.js.map +1 -0
- package/lib/prisma-module/prisma.constants.d.ts +1 -0
- package/lib/prisma-module/prisma.constants.js +5 -0
- package/lib/prisma-module/prisma.constants.js.map +1 -0
- package/lib/prisma-module/prisma.module.d.ts +8 -0
- package/lib/prisma-module/prisma.module.js +73 -0
- package/lib/prisma-module/prisma.module.js.map +1 -0
- package/lib/prisma-module/prisma.service.d.ts +5 -0
- package/lib/prisma-module/prisma.service.js +29 -0
- package/lib/prisma-module/prisma.service.js.map +1 -0
- package/lib/tsconfig.build.tsbuildinfo +1 -0
- package/lib/types.d.ts +7 -0
- package/lib/types.js +3 -0
- package/lib/types.js.map +1 -0
- package/lib/utils/deep-convert-formatted-string-to-original.d.ts +1 -0
- package/lib/utils/deep-convert-formatted-string-to-original.js +40 -0
- package/lib/utils/deep-convert-formatted-string-to-original.js.map +1 -0
- package/lib/utils/ignore-prisma-builtins.d.ts +1 -0
- package/lib/utils/ignore-prisma-builtins.js +3 -0
- package/lib/utils/ignore-prisma-builtins.js.map +1 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.js +20 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/prisma-where-to-sql.d.ts +5 -0
- package/lib/utils/prisma-where-to-sql.js +94 -0
- package/lib/utils/prisma-where-to-sql.js.map +1 -0
- package/lib/web360-prisma.constants.d.ts +2 -0
- package/lib/web360-prisma.constants.js +6 -0
- package/lib/web360-prisma.constants.js.map +1 -0
- package/lib/web360-prisma.module.d.ts +7 -0
- package/lib/web360-prisma.module.js +81 -0
- package/lib/web360-prisma.module.js.map +1 -0
- package/lib/web360-prisma.options.d.ts +38 -0
- package/lib/web360-prisma.options.js +3 -0
- package/lib/web360-prisma.options.js.map +1 -0
- package/lib/web360-prisma.service.d.ts +57 -0
- package/lib/web360-prisma.service.js +57 -0
- package/lib/web360-prisma.service.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,1537 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model DiscountCodeRedemption
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type DiscountCodeRedemptionModel = runtime.Types.Result.DefaultSelection<Prisma.$DiscountCodeRedemptionPayload>;
|
|
8
|
+
export type AggregateDiscountCodeRedemption = {
|
|
9
|
+
_count: DiscountCodeRedemptionCountAggregateOutputType | null;
|
|
10
|
+
_avg: DiscountCodeRedemptionAvgAggregateOutputType | null;
|
|
11
|
+
_sum: DiscountCodeRedemptionSumAggregateOutputType | null;
|
|
12
|
+
_min: DiscountCodeRedemptionMinAggregateOutputType | null;
|
|
13
|
+
_max: DiscountCodeRedemptionMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type DiscountCodeRedemptionAvgAggregateOutputType = {
|
|
16
|
+
id: number | null;
|
|
17
|
+
customerId: number | null;
|
|
18
|
+
discountCodeId: number | null;
|
|
19
|
+
};
|
|
20
|
+
export type DiscountCodeRedemptionSumAggregateOutputType = {
|
|
21
|
+
id: bigint | null;
|
|
22
|
+
customerId: bigint | null;
|
|
23
|
+
discountCodeId: bigint | null;
|
|
24
|
+
};
|
|
25
|
+
export type DiscountCodeRedemptionMinAggregateOutputType = {
|
|
26
|
+
id: bigint | null;
|
|
27
|
+
customerId: bigint | null;
|
|
28
|
+
discountCodeId: bigint | null;
|
|
29
|
+
redeemedAt: Date | null;
|
|
30
|
+
};
|
|
31
|
+
export type DiscountCodeRedemptionMaxAggregateOutputType = {
|
|
32
|
+
id: bigint | null;
|
|
33
|
+
customerId: bigint | null;
|
|
34
|
+
discountCodeId: bigint | null;
|
|
35
|
+
redeemedAt: Date | null;
|
|
36
|
+
};
|
|
37
|
+
export type DiscountCodeRedemptionCountAggregateOutputType = {
|
|
38
|
+
id: number;
|
|
39
|
+
customerId: number;
|
|
40
|
+
discountCodeId: number;
|
|
41
|
+
redeemedAt: number;
|
|
42
|
+
_all: number;
|
|
43
|
+
};
|
|
44
|
+
export type DiscountCodeRedemptionAvgAggregateInputType = {
|
|
45
|
+
id?: true;
|
|
46
|
+
customerId?: true;
|
|
47
|
+
discountCodeId?: true;
|
|
48
|
+
};
|
|
49
|
+
export type DiscountCodeRedemptionSumAggregateInputType = {
|
|
50
|
+
id?: true;
|
|
51
|
+
customerId?: true;
|
|
52
|
+
discountCodeId?: true;
|
|
53
|
+
};
|
|
54
|
+
export type DiscountCodeRedemptionMinAggregateInputType = {
|
|
55
|
+
id?: true;
|
|
56
|
+
customerId?: true;
|
|
57
|
+
discountCodeId?: true;
|
|
58
|
+
redeemedAt?: true;
|
|
59
|
+
};
|
|
60
|
+
export type DiscountCodeRedemptionMaxAggregateInputType = {
|
|
61
|
+
id?: true;
|
|
62
|
+
customerId?: true;
|
|
63
|
+
discountCodeId?: true;
|
|
64
|
+
redeemedAt?: true;
|
|
65
|
+
};
|
|
66
|
+
export type DiscountCodeRedemptionCountAggregateInputType = {
|
|
67
|
+
id?: true;
|
|
68
|
+
customerId?: true;
|
|
69
|
+
discountCodeId?: true;
|
|
70
|
+
redeemedAt?: true;
|
|
71
|
+
_all?: true;
|
|
72
|
+
};
|
|
73
|
+
export type DiscountCodeRedemptionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
74
|
+
/**
|
|
75
|
+
* Filter which DiscountCodeRedemption to aggregate.
|
|
76
|
+
*/
|
|
77
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
78
|
+
/**
|
|
79
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
80
|
+
*
|
|
81
|
+
* Determine the order of DiscountCodeRedemptions to fetch.
|
|
82
|
+
*/
|
|
83
|
+
orderBy?: Prisma.DiscountCodeRedemptionOrderByWithRelationInput | Prisma.DiscountCodeRedemptionOrderByWithRelationInput[];
|
|
84
|
+
/**
|
|
85
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
86
|
+
*
|
|
87
|
+
* Sets the start position
|
|
88
|
+
*/
|
|
89
|
+
cursor?: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
90
|
+
/**
|
|
91
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
92
|
+
*
|
|
93
|
+
* Take `±n` DiscountCodeRedemptions from the position of the cursor.
|
|
94
|
+
*/
|
|
95
|
+
take?: number;
|
|
96
|
+
/**
|
|
97
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
98
|
+
*
|
|
99
|
+
* Skip the first `n` DiscountCodeRedemptions.
|
|
100
|
+
*/
|
|
101
|
+
skip?: number;
|
|
102
|
+
/**
|
|
103
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
104
|
+
*
|
|
105
|
+
* Count returned DiscountCodeRedemptions
|
|
106
|
+
**/
|
|
107
|
+
_count?: true | DiscountCodeRedemptionCountAggregateInputType;
|
|
108
|
+
/**
|
|
109
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
110
|
+
*
|
|
111
|
+
* Select which fields to average
|
|
112
|
+
**/
|
|
113
|
+
_avg?: DiscountCodeRedemptionAvgAggregateInputType;
|
|
114
|
+
/**
|
|
115
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
116
|
+
*
|
|
117
|
+
* Select which fields to sum
|
|
118
|
+
**/
|
|
119
|
+
_sum?: DiscountCodeRedemptionSumAggregateInputType;
|
|
120
|
+
/**
|
|
121
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
122
|
+
*
|
|
123
|
+
* Select which fields to find the minimum value
|
|
124
|
+
**/
|
|
125
|
+
_min?: DiscountCodeRedemptionMinAggregateInputType;
|
|
126
|
+
/**
|
|
127
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
128
|
+
*
|
|
129
|
+
* Select which fields to find the maximum value
|
|
130
|
+
**/
|
|
131
|
+
_max?: DiscountCodeRedemptionMaxAggregateInputType;
|
|
132
|
+
};
|
|
133
|
+
export type GetDiscountCodeRedemptionAggregateType<T extends DiscountCodeRedemptionAggregateArgs> = {
|
|
134
|
+
[P in keyof T & keyof AggregateDiscountCodeRedemption]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDiscountCodeRedemption[P]> : Prisma.GetScalarType<T[P], AggregateDiscountCodeRedemption[P]>;
|
|
135
|
+
};
|
|
136
|
+
export type DiscountCodeRedemptionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
137
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
138
|
+
orderBy?: Prisma.DiscountCodeRedemptionOrderByWithAggregationInput | Prisma.DiscountCodeRedemptionOrderByWithAggregationInput[];
|
|
139
|
+
by: Prisma.DiscountCodeRedemptionScalarFieldEnum[] | Prisma.DiscountCodeRedemptionScalarFieldEnum;
|
|
140
|
+
having?: Prisma.DiscountCodeRedemptionScalarWhereWithAggregatesInput;
|
|
141
|
+
take?: number;
|
|
142
|
+
skip?: number;
|
|
143
|
+
_count?: DiscountCodeRedemptionCountAggregateInputType | true;
|
|
144
|
+
_avg?: DiscountCodeRedemptionAvgAggregateInputType;
|
|
145
|
+
_sum?: DiscountCodeRedemptionSumAggregateInputType;
|
|
146
|
+
_min?: DiscountCodeRedemptionMinAggregateInputType;
|
|
147
|
+
_max?: DiscountCodeRedemptionMaxAggregateInputType;
|
|
148
|
+
};
|
|
149
|
+
export type DiscountCodeRedemptionGroupByOutputType = {
|
|
150
|
+
id: bigint;
|
|
151
|
+
customerId: bigint | null;
|
|
152
|
+
discountCodeId: bigint;
|
|
153
|
+
redeemedAt: Date;
|
|
154
|
+
_count: DiscountCodeRedemptionCountAggregateOutputType | null;
|
|
155
|
+
_avg: DiscountCodeRedemptionAvgAggregateOutputType | null;
|
|
156
|
+
_sum: DiscountCodeRedemptionSumAggregateOutputType | null;
|
|
157
|
+
_min: DiscountCodeRedemptionMinAggregateOutputType | null;
|
|
158
|
+
_max: DiscountCodeRedemptionMaxAggregateOutputType | null;
|
|
159
|
+
};
|
|
160
|
+
type GetDiscountCodeRedemptionGroupByPayload<T extends DiscountCodeRedemptionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<DiscountCodeRedemptionGroupByOutputType, T['by']> & {
|
|
161
|
+
[P in ((keyof T) & (keyof DiscountCodeRedemptionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], DiscountCodeRedemptionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], DiscountCodeRedemptionGroupByOutputType[P]>;
|
|
162
|
+
}>>;
|
|
163
|
+
export type DiscountCodeRedemptionWhereInput = {
|
|
164
|
+
AND?: Prisma.DiscountCodeRedemptionWhereInput | Prisma.DiscountCodeRedemptionWhereInput[];
|
|
165
|
+
OR?: Prisma.DiscountCodeRedemptionWhereInput[];
|
|
166
|
+
NOT?: Prisma.DiscountCodeRedemptionWhereInput | Prisma.DiscountCodeRedemptionWhereInput[];
|
|
167
|
+
id?: Prisma.BigIntFilter<"DiscountCodeRedemption"> | bigint | number;
|
|
168
|
+
customerId?: Prisma.BigIntNullableFilter<"DiscountCodeRedemption"> | bigint | number | null;
|
|
169
|
+
discountCodeId?: Prisma.BigIntFilter<"DiscountCodeRedemption"> | bigint | number;
|
|
170
|
+
redeemedAt?: Prisma.DateTimeFilter<"DiscountCodeRedemption"> | Date | string;
|
|
171
|
+
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null;
|
|
172
|
+
discountCode?: Prisma.XOR<Prisma.DiscountCodeScalarRelationFilter, Prisma.DiscountCodeWhereInput>;
|
|
173
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartListRelationFilter;
|
|
174
|
+
cartLine?: Prisma.CartLineListRelationFilter;
|
|
175
|
+
};
|
|
176
|
+
export type DiscountCodeRedemptionOrderByWithRelationInput = {
|
|
177
|
+
id?: Prisma.SortOrder;
|
|
178
|
+
customerId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
179
|
+
discountCodeId?: Prisma.SortOrder;
|
|
180
|
+
redeemedAt?: Prisma.SortOrder;
|
|
181
|
+
customer?: Prisma.CustomerOrderByWithRelationInput;
|
|
182
|
+
discountCode?: Prisma.DiscountCodeOrderByWithRelationInput;
|
|
183
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartOrderByRelationAggregateInput;
|
|
184
|
+
cartLine?: Prisma.CartLineOrderByRelationAggregateInput;
|
|
185
|
+
};
|
|
186
|
+
export type DiscountCodeRedemptionWhereUniqueInput = Prisma.AtLeast<{
|
|
187
|
+
id?: bigint | number;
|
|
188
|
+
AND?: Prisma.DiscountCodeRedemptionWhereInput | Prisma.DiscountCodeRedemptionWhereInput[];
|
|
189
|
+
OR?: Prisma.DiscountCodeRedemptionWhereInput[];
|
|
190
|
+
NOT?: Prisma.DiscountCodeRedemptionWhereInput | Prisma.DiscountCodeRedemptionWhereInput[];
|
|
191
|
+
customerId?: Prisma.BigIntNullableFilter<"DiscountCodeRedemption"> | bigint | number | null;
|
|
192
|
+
discountCodeId?: Prisma.BigIntFilter<"DiscountCodeRedemption"> | bigint | number;
|
|
193
|
+
redeemedAt?: Prisma.DateTimeFilter<"DiscountCodeRedemption"> | Date | string;
|
|
194
|
+
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null;
|
|
195
|
+
discountCode?: Prisma.XOR<Prisma.DiscountCodeScalarRelationFilter, Prisma.DiscountCodeWhereInput>;
|
|
196
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartListRelationFilter;
|
|
197
|
+
cartLine?: Prisma.CartLineListRelationFilter;
|
|
198
|
+
}, "id">;
|
|
199
|
+
export type DiscountCodeRedemptionOrderByWithAggregationInput = {
|
|
200
|
+
id?: Prisma.SortOrder;
|
|
201
|
+
customerId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
202
|
+
discountCodeId?: Prisma.SortOrder;
|
|
203
|
+
redeemedAt?: Prisma.SortOrder;
|
|
204
|
+
_count?: Prisma.DiscountCodeRedemptionCountOrderByAggregateInput;
|
|
205
|
+
_avg?: Prisma.DiscountCodeRedemptionAvgOrderByAggregateInput;
|
|
206
|
+
_max?: Prisma.DiscountCodeRedemptionMaxOrderByAggregateInput;
|
|
207
|
+
_min?: Prisma.DiscountCodeRedemptionMinOrderByAggregateInput;
|
|
208
|
+
_sum?: Prisma.DiscountCodeRedemptionSumOrderByAggregateInput;
|
|
209
|
+
};
|
|
210
|
+
export type DiscountCodeRedemptionScalarWhereWithAggregatesInput = {
|
|
211
|
+
AND?: Prisma.DiscountCodeRedemptionScalarWhereWithAggregatesInput | Prisma.DiscountCodeRedemptionScalarWhereWithAggregatesInput[];
|
|
212
|
+
OR?: Prisma.DiscountCodeRedemptionScalarWhereWithAggregatesInput[];
|
|
213
|
+
NOT?: Prisma.DiscountCodeRedemptionScalarWhereWithAggregatesInput | Prisma.DiscountCodeRedemptionScalarWhereWithAggregatesInput[];
|
|
214
|
+
id?: Prisma.BigIntWithAggregatesFilter<"DiscountCodeRedemption"> | bigint | number;
|
|
215
|
+
customerId?: Prisma.BigIntNullableWithAggregatesFilter<"DiscountCodeRedemption"> | bigint | number | null;
|
|
216
|
+
discountCodeId?: Prisma.BigIntWithAggregatesFilter<"DiscountCodeRedemption"> | bigint | number;
|
|
217
|
+
redeemedAt?: Prisma.DateTimeWithAggregatesFilter<"DiscountCodeRedemption"> | Date | string;
|
|
218
|
+
};
|
|
219
|
+
export type DiscountCodeRedemptionCreateInput = {
|
|
220
|
+
id?: bigint | number;
|
|
221
|
+
redeemedAt?: Date | string;
|
|
222
|
+
customer?: Prisma.CustomerCreateNestedOneWithoutRedemptionsInput;
|
|
223
|
+
discountCode: Prisma.DiscountCodeCreateNestedOneWithoutRedemptionsInput;
|
|
224
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
225
|
+
cartLine?: Prisma.CartLineCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
226
|
+
};
|
|
227
|
+
export type DiscountCodeRedemptionUncheckedCreateInput = {
|
|
228
|
+
id?: bigint | number;
|
|
229
|
+
customerId?: bigint | number | null;
|
|
230
|
+
discountCodeId: bigint | number;
|
|
231
|
+
redeemedAt?: Date | string;
|
|
232
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
233
|
+
cartLine?: Prisma.CartLineUncheckedCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
234
|
+
};
|
|
235
|
+
export type DiscountCodeRedemptionUpdateInput = {
|
|
236
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
237
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
238
|
+
customer?: Prisma.CustomerUpdateOneWithoutRedemptionsNestedInput;
|
|
239
|
+
discountCode?: Prisma.DiscountCodeUpdateOneRequiredWithoutRedemptionsNestedInput;
|
|
240
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
241
|
+
cartLine?: Prisma.CartLineUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
242
|
+
};
|
|
243
|
+
export type DiscountCodeRedemptionUncheckedUpdateInput = {
|
|
244
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
245
|
+
customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
246
|
+
discountCodeId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
247
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
248
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
249
|
+
cartLine?: Prisma.CartLineUncheckedUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
250
|
+
};
|
|
251
|
+
export type DiscountCodeRedemptionCreateManyInput = {
|
|
252
|
+
id?: bigint | number;
|
|
253
|
+
customerId?: bigint | number | null;
|
|
254
|
+
discountCodeId: bigint | number;
|
|
255
|
+
redeemedAt?: Date | string;
|
|
256
|
+
};
|
|
257
|
+
export type DiscountCodeRedemptionUpdateManyMutationInput = {
|
|
258
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
259
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
260
|
+
};
|
|
261
|
+
export type DiscountCodeRedemptionUncheckedUpdateManyInput = {
|
|
262
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
263
|
+
customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
264
|
+
discountCodeId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
265
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
266
|
+
};
|
|
267
|
+
export type DiscountCodeRedemptionListRelationFilter = {
|
|
268
|
+
every?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
269
|
+
some?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
270
|
+
none?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
271
|
+
};
|
|
272
|
+
export type DiscountCodeRedemptionOrderByRelationAggregateInput = {
|
|
273
|
+
_count?: Prisma.SortOrder;
|
|
274
|
+
};
|
|
275
|
+
export type DiscountCodeRedemptionNullableScalarRelationFilter = {
|
|
276
|
+
is?: Prisma.DiscountCodeRedemptionWhereInput | null;
|
|
277
|
+
isNot?: Prisma.DiscountCodeRedemptionWhereInput | null;
|
|
278
|
+
};
|
|
279
|
+
export type DiscountCodeRedemptionScalarRelationFilter = {
|
|
280
|
+
is?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
281
|
+
isNot?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
282
|
+
};
|
|
283
|
+
export type DiscountCodeRedemptionCountOrderByAggregateInput = {
|
|
284
|
+
id?: Prisma.SortOrder;
|
|
285
|
+
customerId?: Prisma.SortOrder;
|
|
286
|
+
discountCodeId?: Prisma.SortOrder;
|
|
287
|
+
redeemedAt?: Prisma.SortOrder;
|
|
288
|
+
};
|
|
289
|
+
export type DiscountCodeRedemptionAvgOrderByAggregateInput = {
|
|
290
|
+
id?: Prisma.SortOrder;
|
|
291
|
+
customerId?: Prisma.SortOrder;
|
|
292
|
+
discountCodeId?: Prisma.SortOrder;
|
|
293
|
+
};
|
|
294
|
+
export type DiscountCodeRedemptionMaxOrderByAggregateInput = {
|
|
295
|
+
id?: Prisma.SortOrder;
|
|
296
|
+
customerId?: Prisma.SortOrder;
|
|
297
|
+
discountCodeId?: Prisma.SortOrder;
|
|
298
|
+
redeemedAt?: Prisma.SortOrder;
|
|
299
|
+
};
|
|
300
|
+
export type DiscountCodeRedemptionMinOrderByAggregateInput = {
|
|
301
|
+
id?: Prisma.SortOrder;
|
|
302
|
+
customerId?: Prisma.SortOrder;
|
|
303
|
+
discountCodeId?: Prisma.SortOrder;
|
|
304
|
+
redeemedAt?: Prisma.SortOrder;
|
|
305
|
+
};
|
|
306
|
+
export type DiscountCodeRedemptionSumOrderByAggregateInput = {
|
|
307
|
+
id?: Prisma.SortOrder;
|
|
308
|
+
customerId?: Prisma.SortOrder;
|
|
309
|
+
discountCodeId?: Prisma.SortOrder;
|
|
310
|
+
};
|
|
311
|
+
export type DiscountCodeRedemptionCreateNestedManyWithoutCustomerInput = {
|
|
312
|
+
create?: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutCustomerInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCustomerInput> | Prisma.DiscountCodeRedemptionCreateWithoutCustomerInput[] | Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCustomerInput[];
|
|
313
|
+
connectOrCreate?: Prisma.DiscountCodeRedemptionCreateOrConnectWithoutCustomerInput | Prisma.DiscountCodeRedemptionCreateOrConnectWithoutCustomerInput[];
|
|
314
|
+
createMany?: Prisma.DiscountCodeRedemptionCreateManyCustomerInputEnvelope;
|
|
315
|
+
connect?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
316
|
+
};
|
|
317
|
+
export type DiscountCodeRedemptionUncheckedCreateNestedManyWithoutCustomerInput = {
|
|
318
|
+
create?: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutCustomerInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCustomerInput> | Prisma.DiscountCodeRedemptionCreateWithoutCustomerInput[] | Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCustomerInput[];
|
|
319
|
+
connectOrCreate?: Prisma.DiscountCodeRedemptionCreateOrConnectWithoutCustomerInput | Prisma.DiscountCodeRedemptionCreateOrConnectWithoutCustomerInput[];
|
|
320
|
+
createMany?: Prisma.DiscountCodeRedemptionCreateManyCustomerInputEnvelope;
|
|
321
|
+
connect?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
322
|
+
};
|
|
323
|
+
export type DiscountCodeRedemptionUpdateManyWithoutCustomerNestedInput = {
|
|
324
|
+
create?: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutCustomerInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCustomerInput> | Prisma.DiscountCodeRedemptionCreateWithoutCustomerInput[] | Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCustomerInput[];
|
|
325
|
+
connectOrCreate?: Prisma.DiscountCodeRedemptionCreateOrConnectWithoutCustomerInput | Prisma.DiscountCodeRedemptionCreateOrConnectWithoutCustomerInput[];
|
|
326
|
+
upsert?: Prisma.DiscountCodeRedemptionUpsertWithWhereUniqueWithoutCustomerInput | Prisma.DiscountCodeRedemptionUpsertWithWhereUniqueWithoutCustomerInput[];
|
|
327
|
+
createMany?: Prisma.DiscountCodeRedemptionCreateManyCustomerInputEnvelope;
|
|
328
|
+
set?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
329
|
+
disconnect?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
330
|
+
delete?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
331
|
+
connect?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
332
|
+
update?: Prisma.DiscountCodeRedemptionUpdateWithWhereUniqueWithoutCustomerInput | Prisma.DiscountCodeRedemptionUpdateWithWhereUniqueWithoutCustomerInput[];
|
|
333
|
+
updateMany?: Prisma.DiscountCodeRedemptionUpdateManyWithWhereWithoutCustomerInput | Prisma.DiscountCodeRedemptionUpdateManyWithWhereWithoutCustomerInput[];
|
|
334
|
+
deleteMany?: Prisma.DiscountCodeRedemptionScalarWhereInput | Prisma.DiscountCodeRedemptionScalarWhereInput[];
|
|
335
|
+
};
|
|
336
|
+
export type DiscountCodeRedemptionUncheckedUpdateManyWithoutCustomerNestedInput = {
|
|
337
|
+
create?: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutCustomerInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCustomerInput> | Prisma.DiscountCodeRedemptionCreateWithoutCustomerInput[] | Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCustomerInput[];
|
|
338
|
+
connectOrCreate?: Prisma.DiscountCodeRedemptionCreateOrConnectWithoutCustomerInput | Prisma.DiscountCodeRedemptionCreateOrConnectWithoutCustomerInput[];
|
|
339
|
+
upsert?: Prisma.DiscountCodeRedemptionUpsertWithWhereUniqueWithoutCustomerInput | Prisma.DiscountCodeRedemptionUpsertWithWhereUniqueWithoutCustomerInput[];
|
|
340
|
+
createMany?: Prisma.DiscountCodeRedemptionCreateManyCustomerInputEnvelope;
|
|
341
|
+
set?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
342
|
+
disconnect?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
343
|
+
delete?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
344
|
+
connect?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
345
|
+
update?: Prisma.DiscountCodeRedemptionUpdateWithWhereUniqueWithoutCustomerInput | Prisma.DiscountCodeRedemptionUpdateWithWhereUniqueWithoutCustomerInput[];
|
|
346
|
+
updateMany?: Prisma.DiscountCodeRedemptionUpdateManyWithWhereWithoutCustomerInput | Prisma.DiscountCodeRedemptionUpdateManyWithWhereWithoutCustomerInput[];
|
|
347
|
+
deleteMany?: Prisma.DiscountCodeRedemptionScalarWhereInput | Prisma.DiscountCodeRedemptionScalarWhereInput[];
|
|
348
|
+
};
|
|
349
|
+
export type DiscountCodeRedemptionCreateNestedOneWithoutCartLineInput = {
|
|
350
|
+
create?: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutCartLineInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCartLineInput>;
|
|
351
|
+
connectOrCreate?: Prisma.DiscountCodeRedemptionCreateOrConnectWithoutCartLineInput;
|
|
352
|
+
connect?: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
353
|
+
};
|
|
354
|
+
export type DiscountCodeRedemptionUpdateOneWithoutCartLineNestedInput = {
|
|
355
|
+
create?: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutCartLineInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCartLineInput>;
|
|
356
|
+
connectOrCreate?: Prisma.DiscountCodeRedemptionCreateOrConnectWithoutCartLineInput;
|
|
357
|
+
upsert?: Prisma.DiscountCodeRedemptionUpsertWithoutCartLineInput;
|
|
358
|
+
disconnect?: Prisma.DiscountCodeRedemptionWhereInput | boolean;
|
|
359
|
+
delete?: Prisma.DiscountCodeRedemptionWhereInput | boolean;
|
|
360
|
+
connect?: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
361
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateToOneWithWhereWithoutCartLineInput, Prisma.DiscountCodeRedemptionUpdateWithoutCartLineInput>, Prisma.DiscountCodeRedemptionUncheckedUpdateWithoutCartLineInput>;
|
|
362
|
+
};
|
|
363
|
+
export type DiscountCodeRedemptionCreateNestedOneWithoutDiscountCodeRedeemedOnCartInput = {
|
|
364
|
+
create?: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
365
|
+
connectOrCreate?: Prisma.DiscountCodeRedemptionCreateOrConnectWithoutDiscountCodeRedeemedOnCartInput;
|
|
366
|
+
connect?: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
367
|
+
};
|
|
368
|
+
export type DiscountCodeRedemptionUpdateOneRequiredWithoutDiscountCodeRedeemedOnCartNestedInput = {
|
|
369
|
+
create?: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
370
|
+
connectOrCreate?: Prisma.DiscountCodeRedemptionCreateOrConnectWithoutDiscountCodeRedeemedOnCartInput;
|
|
371
|
+
upsert?: Prisma.DiscountCodeRedemptionUpsertWithoutDiscountCodeRedeemedOnCartInput;
|
|
372
|
+
connect?: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
373
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateToOneWithWhereWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeRedemptionUpdateWithoutDiscountCodeRedeemedOnCartInput>, Prisma.DiscountCodeRedemptionUncheckedUpdateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
374
|
+
};
|
|
375
|
+
export type DiscountCodeRedemptionCreateNestedManyWithoutDiscountCodeInput = {
|
|
376
|
+
create?: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeInput> | Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeInput[] | Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeInput[];
|
|
377
|
+
connectOrCreate?: Prisma.DiscountCodeRedemptionCreateOrConnectWithoutDiscountCodeInput | Prisma.DiscountCodeRedemptionCreateOrConnectWithoutDiscountCodeInput[];
|
|
378
|
+
createMany?: Prisma.DiscountCodeRedemptionCreateManyDiscountCodeInputEnvelope;
|
|
379
|
+
connect?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
380
|
+
};
|
|
381
|
+
export type DiscountCodeRedemptionUncheckedCreateNestedManyWithoutDiscountCodeInput = {
|
|
382
|
+
create?: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeInput> | Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeInput[] | Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeInput[];
|
|
383
|
+
connectOrCreate?: Prisma.DiscountCodeRedemptionCreateOrConnectWithoutDiscountCodeInput | Prisma.DiscountCodeRedemptionCreateOrConnectWithoutDiscountCodeInput[];
|
|
384
|
+
createMany?: Prisma.DiscountCodeRedemptionCreateManyDiscountCodeInputEnvelope;
|
|
385
|
+
connect?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
386
|
+
};
|
|
387
|
+
export type DiscountCodeRedemptionUpdateManyWithoutDiscountCodeNestedInput = {
|
|
388
|
+
create?: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeInput> | Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeInput[] | Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeInput[];
|
|
389
|
+
connectOrCreate?: Prisma.DiscountCodeRedemptionCreateOrConnectWithoutDiscountCodeInput | Prisma.DiscountCodeRedemptionCreateOrConnectWithoutDiscountCodeInput[];
|
|
390
|
+
upsert?: Prisma.DiscountCodeRedemptionUpsertWithWhereUniqueWithoutDiscountCodeInput | Prisma.DiscountCodeRedemptionUpsertWithWhereUniqueWithoutDiscountCodeInput[];
|
|
391
|
+
createMany?: Prisma.DiscountCodeRedemptionCreateManyDiscountCodeInputEnvelope;
|
|
392
|
+
set?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
393
|
+
disconnect?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
394
|
+
delete?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
395
|
+
connect?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
396
|
+
update?: Prisma.DiscountCodeRedemptionUpdateWithWhereUniqueWithoutDiscountCodeInput | Prisma.DiscountCodeRedemptionUpdateWithWhereUniqueWithoutDiscountCodeInput[];
|
|
397
|
+
updateMany?: Prisma.DiscountCodeRedemptionUpdateManyWithWhereWithoutDiscountCodeInput | Prisma.DiscountCodeRedemptionUpdateManyWithWhereWithoutDiscountCodeInput[];
|
|
398
|
+
deleteMany?: Prisma.DiscountCodeRedemptionScalarWhereInput | Prisma.DiscountCodeRedemptionScalarWhereInput[];
|
|
399
|
+
};
|
|
400
|
+
export type DiscountCodeRedemptionUncheckedUpdateManyWithoutDiscountCodeNestedInput = {
|
|
401
|
+
create?: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeInput> | Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeInput[] | Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeInput[];
|
|
402
|
+
connectOrCreate?: Prisma.DiscountCodeRedemptionCreateOrConnectWithoutDiscountCodeInput | Prisma.DiscountCodeRedemptionCreateOrConnectWithoutDiscountCodeInput[];
|
|
403
|
+
upsert?: Prisma.DiscountCodeRedemptionUpsertWithWhereUniqueWithoutDiscountCodeInput | Prisma.DiscountCodeRedemptionUpsertWithWhereUniqueWithoutDiscountCodeInput[];
|
|
404
|
+
createMany?: Prisma.DiscountCodeRedemptionCreateManyDiscountCodeInputEnvelope;
|
|
405
|
+
set?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
406
|
+
disconnect?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
407
|
+
delete?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
408
|
+
connect?: Prisma.DiscountCodeRedemptionWhereUniqueInput | Prisma.DiscountCodeRedemptionWhereUniqueInput[];
|
|
409
|
+
update?: Prisma.DiscountCodeRedemptionUpdateWithWhereUniqueWithoutDiscountCodeInput | Prisma.DiscountCodeRedemptionUpdateWithWhereUniqueWithoutDiscountCodeInput[];
|
|
410
|
+
updateMany?: Prisma.DiscountCodeRedemptionUpdateManyWithWhereWithoutDiscountCodeInput | Prisma.DiscountCodeRedemptionUpdateManyWithWhereWithoutDiscountCodeInput[];
|
|
411
|
+
deleteMany?: Prisma.DiscountCodeRedemptionScalarWhereInput | Prisma.DiscountCodeRedemptionScalarWhereInput[];
|
|
412
|
+
};
|
|
413
|
+
export type DiscountCodeRedemptionCreateWithoutCustomerInput = {
|
|
414
|
+
id?: bigint | number;
|
|
415
|
+
redeemedAt?: Date | string;
|
|
416
|
+
discountCode: Prisma.DiscountCodeCreateNestedOneWithoutRedemptionsInput;
|
|
417
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
418
|
+
cartLine?: Prisma.CartLineCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
419
|
+
};
|
|
420
|
+
export type DiscountCodeRedemptionUncheckedCreateWithoutCustomerInput = {
|
|
421
|
+
id?: bigint | number;
|
|
422
|
+
discountCodeId: bigint | number;
|
|
423
|
+
redeemedAt?: Date | string;
|
|
424
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
425
|
+
cartLine?: Prisma.CartLineUncheckedCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
426
|
+
};
|
|
427
|
+
export type DiscountCodeRedemptionCreateOrConnectWithoutCustomerInput = {
|
|
428
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
429
|
+
create: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutCustomerInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCustomerInput>;
|
|
430
|
+
};
|
|
431
|
+
export type DiscountCodeRedemptionCreateManyCustomerInputEnvelope = {
|
|
432
|
+
data: Prisma.DiscountCodeRedemptionCreateManyCustomerInput | Prisma.DiscountCodeRedemptionCreateManyCustomerInput[];
|
|
433
|
+
skipDuplicates?: boolean;
|
|
434
|
+
};
|
|
435
|
+
export type DiscountCodeRedemptionUpsertWithWhereUniqueWithoutCustomerInput = {
|
|
436
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
437
|
+
update: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateWithoutCustomerInput, Prisma.DiscountCodeRedemptionUncheckedUpdateWithoutCustomerInput>;
|
|
438
|
+
create: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutCustomerInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCustomerInput>;
|
|
439
|
+
};
|
|
440
|
+
export type DiscountCodeRedemptionUpdateWithWhereUniqueWithoutCustomerInput = {
|
|
441
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
442
|
+
data: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateWithoutCustomerInput, Prisma.DiscountCodeRedemptionUncheckedUpdateWithoutCustomerInput>;
|
|
443
|
+
};
|
|
444
|
+
export type DiscountCodeRedemptionUpdateManyWithWhereWithoutCustomerInput = {
|
|
445
|
+
where: Prisma.DiscountCodeRedemptionScalarWhereInput;
|
|
446
|
+
data: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateManyMutationInput, Prisma.DiscountCodeRedemptionUncheckedUpdateManyWithoutCustomerInput>;
|
|
447
|
+
};
|
|
448
|
+
export type DiscountCodeRedemptionScalarWhereInput = {
|
|
449
|
+
AND?: Prisma.DiscountCodeRedemptionScalarWhereInput | Prisma.DiscountCodeRedemptionScalarWhereInput[];
|
|
450
|
+
OR?: Prisma.DiscountCodeRedemptionScalarWhereInput[];
|
|
451
|
+
NOT?: Prisma.DiscountCodeRedemptionScalarWhereInput | Prisma.DiscountCodeRedemptionScalarWhereInput[];
|
|
452
|
+
id?: Prisma.BigIntFilter<"DiscountCodeRedemption"> | bigint | number;
|
|
453
|
+
customerId?: Prisma.BigIntNullableFilter<"DiscountCodeRedemption"> | bigint | number | null;
|
|
454
|
+
discountCodeId?: Prisma.BigIntFilter<"DiscountCodeRedemption"> | bigint | number;
|
|
455
|
+
redeemedAt?: Prisma.DateTimeFilter<"DiscountCodeRedemption"> | Date | string;
|
|
456
|
+
};
|
|
457
|
+
export type DiscountCodeRedemptionCreateWithoutCartLineInput = {
|
|
458
|
+
id?: bigint | number;
|
|
459
|
+
redeemedAt?: Date | string;
|
|
460
|
+
customer?: Prisma.CustomerCreateNestedOneWithoutRedemptionsInput;
|
|
461
|
+
discountCode: Prisma.DiscountCodeCreateNestedOneWithoutRedemptionsInput;
|
|
462
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
463
|
+
};
|
|
464
|
+
export type DiscountCodeRedemptionUncheckedCreateWithoutCartLineInput = {
|
|
465
|
+
id?: bigint | number;
|
|
466
|
+
customerId?: bigint | number | null;
|
|
467
|
+
discountCodeId: bigint | number;
|
|
468
|
+
redeemedAt?: Date | string;
|
|
469
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
470
|
+
};
|
|
471
|
+
export type DiscountCodeRedemptionCreateOrConnectWithoutCartLineInput = {
|
|
472
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
473
|
+
create: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutCartLineInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCartLineInput>;
|
|
474
|
+
};
|
|
475
|
+
export type DiscountCodeRedemptionUpsertWithoutCartLineInput = {
|
|
476
|
+
update: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateWithoutCartLineInput, Prisma.DiscountCodeRedemptionUncheckedUpdateWithoutCartLineInput>;
|
|
477
|
+
create: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutCartLineInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutCartLineInput>;
|
|
478
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
479
|
+
};
|
|
480
|
+
export type DiscountCodeRedemptionUpdateToOneWithWhereWithoutCartLineInput = {
|
|
481
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
482
|
+
data: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateWithoutCartLineInput, Prisma.DiscountCodeRedemptionUncheckedUpdateWithoutCartLineInput>;
|
|
483
|
+
};
|
|
484
|
+
export type DiscountCodeRedemptionUpdateWithoutCartLineInput = {
|
|
485
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
486
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
487
|
+
customer?: Prisma.CustomerUpdateOneWithoutRedemptionsNestedInput;
|
|
488
|
+
discountCode?: Prisma.DiscountCodeUpdateOneRequiredWithoutRedemptionsNestedInput;
|
|
489
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
490
|
+
};
|
|
491
|
+
export type DiscountCodeRedemptionUncheckedUpdateWithoutCartLineInput = {
|
|
492
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
493
|
+
customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
494
|
+
discountCodeId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
495
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
496
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
497
|
+
};
|
|
498
|
+
export type DiscountCodeRedemptionCreateWithoutDiscountCodeRedeemedOnCartInput = {
|
|
499
|
+
id?: bigint | number;
|
|
500
|
+
redeemedAt?: Date | string;
|
|
501
|
+
customer?: Prisma.CustomerCreateNestedOneWithoutRedemptionsInput;
|
|
502
|
+
discountCode: Prisma.DiscountCodeCreateNestedOneWithoutRedemptionsInput;
|
|
503
|
+
cartLine?: Prisma.CartLineCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
504
|
+
};
|
|
505
|
+
export type DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput = {
|
|
506
|
+
id?: bigint | number;
|
|
507
|
+
customerId?: bigint | number | null;
|
|
508
|
+
discountCodeId: bigint | number;
|
|
509
|
+
redeemedAt?: Date | string;
|
|
510
|
+
cartLine?: Prisma.CartLineUncheckedCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
511
|
+
};
|
|
512
|
+
export type DiscountCodeRedemptionCreateOrConnectWithoutDiscountCodeRedeemedOnCartInput = {
|
|
513
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
514
|
+
create: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
515
|
+
};
|
|
516
|
+
export type DiscountCodeRedemptionUpsertWithoutDiscountCodeRedeemedOnCartInput = {
|
|
517
|
+
update: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeRedemptionUncheckedUpdateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
518
|
+
create: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
519
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
520
|
+
};
|
|
521
|
+
export type DiscountCodeRedemptionUpdateToOneWithWhereWithoutDiscountCodeRedeemedOnCartInput = {
|
|
522
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
523
|
+
data: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeRedemptionUncheckedUpdateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
524
|
+
};
|
|
525
|
+
export type DiscountCodeRedemptionUpdateWithoutDiscountCodeRedeemedOnCartInput = {
|
|
526
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
527
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
528
|
+
customer?: Prisma.CustomerUpdateOneWithoutRedemptionsNestedInput;
|
|
529
|
+
discountCode?: Prisma.DiscountCodeUpdateOneRequiredWithoutRedemptionsNestedInput;
|
|
530
|
+
cartLine?: Prisma.CartLineUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
531
|
+
};
|
|
532
|
+
export type DiscountCodeRedemptionUncheckedUpdateWithoutDiscountCodeRedeemedOnCartInput = {
|
|
533
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
534
|
+
customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
535
|
+
discountCodeId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
536
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
537
|
+
cartLine?: Prisma.CartLineUncheckedUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
538
|
+
};
|
|
539
|
+
export type DiscountCodeRedemptionCreateWithoutDiscountCodeInput = {
|
|
540
|
+
id?: bigint | number;
|
|
541
|
+
redeemedAt?: Date | string;
|
|
542
|
+
customer?: Prisma.CustomerCreateNestedOneWithoutRedemptionsInput;
|
|
543
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
544
|
+
cartLine?: Prisma.CartLineCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
545
|
+
};
|
|
546
|
+
export type DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeInput = {
|
|
547
|
+
id?: bigint | number;
|
|
548
|
+
customerId?: bigint | number | null;
|
|
549
|
+
redeemedAt?: Date | string;
|
|
550
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
551
|
+
cartLine?: Prisma.CartLineUncheckedCreateNestedManyWithoutDiscountCodeRedemptionInput;
|
|
552
|
+
};
|
|
553
|
+
export type DiscountCodeRedemptionCreateOrConnectWithoutDiscountCodeInput = {
|
|
554
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
555
|
+
create: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeInput>;
|
|
556
|
+
};
|
|
557
|
+
export type DiscountCodeRedemptionCreateManyDiscountCodeInputEnvelope = {
|
|
558
|
+
data: Prisma.DiscountCodeRedemptionCreateManyDiscountCodeInput | Prisma.DiscountCodeRedemptionCreateManyDiscountCodeInput[];
|
|
559
|
+
skipDuplicates?: boolean;
|
|
560
|
+
};
|
|
561
|
+
export type DiscountCodeRedemptionUpsertWithWhereUniqueWithoutDiscountCodeInput = {
|
|
562
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
563
|
+
update: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateWithoutDiscountCodeInput, Prisma.DiscountCodeRedemptionUncheckedUpdateWithoutDiscountCodeInput>;
|
|
564
|
+
create: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateWithoutDiscountCodeInput, Prisma.DiscountCodeRedemptionUncheckedCreateWithoutDiscountCodeInput>;
|
|
565
|
+
};
|
|
566
|
+
export type DiscountCodeRedemptionUpdateWithWhereUniqueWithoutDiscountCodeInput = {
|
|
567
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
568
|
+
data: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateWithoutDiscountCodeInput, Prisma.DiscountCodeRedemptionUncheckedUpdateWithoutDiscountCodeInput>;
|
|
569
|
+
};
|
|
570
|
+
export type DiscountCodeRedemptionUpdateManyWithWhereWithoutDiscountCodeInput = {
|
|
571
|
+
where: Prisma.DiscountCodeRedemptionScalarWhereInput;
|
|
572
|
+
data: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateManyMutationInput, Prisma.DiscountCodeRedemptionUncheckedUpdateManyWithoutDiscountCodeInput>;
|
|
573
|
+
};
|
|
574
|
+
export type DiscountCodeRedemptionCreateManyCustomerInput = {
|
|
575
|
+
id?: bigint | number;
|
|
576
|
+
discountCodeId: bigint | number;
|
|
577
|
+
redeemedAt?: Date | string;
|
|
578
|
+
};
|
|
579
|
+
export type DiscountCodeRedemptionUpdateWithoutCustomerInput = {
|
|
580
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
581
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
582
|
+
discountCode?: Prisma.DiscountCodeUpdateOneRequiredWithoutRedemptionsNestedInput;
|
|
583
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
584
|
+
cartLine?: Prisma.CartLineUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
585
|
+
};
|
|
586
|
+
export type DiscountCodeRedemptionUncheckedUpdateWithoutCustomerInput = {
|
|
587
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
588
|
+
discountCodeId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
589
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
590
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
591
|
+
cartLine?: Prisma.CartLineUncheckedUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
592
|
+
};
|
|
593
|
+
export type DiscountCodeRedemptionUncheckedUpdateManyWithoutCustomerInput = {
|
|
594
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
595
|
+
discountCodeId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
596
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
597
|
+
};
|
|
598
|
+
export type DiscountCodeRedemptionCreateManyDiscountCodeInput = {
|
|
599
|
+
id?: bigint | number;
|
|
600
|
+
customerId?: bigint | number | null;
|
|
601
|
+
redeemedAt?: Date | string;
|
|
602
|
+
};
|
|
603
|
+
export type DiscountCodeRedemptionUpdateWithoutDiscountCodeInput = {
|
|
604
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
605
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
606
|
+
customer?: Prisma.CustomerUpdateOneWithoutRedemptionsNestedInput;
|
|
607
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
608
|
+
cartLine?: Prisma.CartLineUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
609
|
+
};
|
|
610
|
+
export type DiscountCodeRedemptionUncheckedUpdateWithoutDiscountCodeInput = {
|
|
611
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
612
|
+
customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
613
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
614
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
615
|
+
cartLine?: Prisma.CartLineUncheckedUpdateManyWithoutDiscountCodeRedemptionNestedInput;
|
|
616
|
+
};
|
|
617
|
+
export type DiscountCodeRedemptionUncheckedUpdateManyWithoutDiscountCodeInput = {
|
|
618
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
619
|
+
customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
620
|
+
redeemedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
621
|
+
};
|
|
622
|
+
/**
|
|
623
|
+
* Count Type DiscountCodeRedemptionCountOutputType
|
|
624
|
+
*/
|
|
625
|
+
export type DiscountCodeRedemptionCountOutputType = {
|
|
626
|
+
discountCodeRedeemedOnCart: number;
|
|
627
|
+
cartLine: number;
|
|
628
|
+
};
|
|
629
|
+
export type DiscountCodeRedemptionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
630
|
+
discountCodeRedeemedOnCart?: boolean | DiscountCodeRedemptionCountOutputTypeCountDiscountCodeRedeemedOnCartArgs;
|
|
631
|
+
cartLine?: boolean | DiscountCodeRedemptionCountOutputTypeCountCartLineArgs;
|
|
632
|
+
};
|
|
633
|
+
/**
|
|
634
|
+
* DiscountCodeRedemptionCountOutputType without action
|
|
635
|
+
*/
|
|
636
|
+
export type DiscountCodeRedemptionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
637
|
+
/**
|
|
638
|
+
* Select specific fields to fetch from the DiscountCodeRedemptionCountOutputType
|
|
639
|
+
*/
|
|
640
|
+
select?: Prisma.DiscountCodeRedemptionCountOutputTypeSelect<ExtArgs> | null;
|
|
641
|
+
};
|
|
642
|
+
/**
|
|
643
|
+
* DiscountCodeRedemptionCountOutputType without action
|
|
644
|
+
*/
|
|
645
|
+
export type DiscountCodeRedemptionCountOutputTypeCountDiscountCodeRedeemedOnCartArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
646
|
+
where?: Prisma.DiscountCodeRedeemedOnCartWhereInput;
|
|
647
|
+
};
|
|
648
|
+
/**
|
|
649
|
+
* DiscountCodeRedemptionCountOutputType without action
|
|
650
|
+
*/
|
|
651
|
+
export type DiscountCodeRedemptionCountOutputTypeCountCartLineArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
652
|
+
where?: Prisma.CartLineWhereInput;
|
|
653
|
+
};
|
|
654
|
+
export type DiscountCodeRedemptionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
655
|
+
id?: boolean;
|
|
656
|
+
customerId?: boolean;
|
|
657
|
+
discountCodeId?: boolean;
|
|
658
|
+
redeemedAt?: boolean;
|
|
659
|
+
customer?: boolean | Prisma.DiscountCodeRedemption$customerArgs<ExtArgs>;
|
|
660
|
+
discountCode?: boolean | Prisma.DiscountCodeDefaultArgs<ExtArgs>;
|
|
661
|
+
discountCodeRedeemedOnCart?: boolean | Prisma.DiscountCodeRedemption$discountCodeRedeemedOnCartArgs<ExtArgs>;
|
|
662
|
+
cartLine?: boolean | Prisma.DiscountCodeRedemption$cartLineArgs<ExtArgs>;
|
|
663
|
+
_count?: boolean | Prisma.DiscountCodeRedemptionCountOutputTypeDefaultArgs<ExtArgs>;
|
|
664
|
+
}, ExtArgs["result"]["discountCodeRedemption"]>;
|
|
665
|
+
export type DiscountCodeRedemptionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
666
|
+
id?: boolean;
|
|
667
|
+
customerId?: boolean;
|
|
668
|
+
discountCodeId?: boolean;
|
|
669
|
+
redeemedAt?: boolean;
|
|
670
|
+
customer?: boolean | Prisma.DiscountCodeRedemption$customerArgs<ExtArgs>;
|
|
671
|
+
discountCode?: boolean | Prisma.DiscountCodeDefaultArgs<ExtArgs>;
|
|
672
|
+
}, ExtArgs["result"]["discountCodeRedemption"]>;
|
|
673
|
+
export type DiscountCodeRedemptionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
674
|
+
id?: boolean;
|
|
675
|
+
customerId?: boolean;
|
|
676
|
+
discountCodeId?: boolean;
|
|
677
|
+
redeemedAt?: boolean;
|
|
678
|
+
customer?: boolean | Prisma.DiscountCodeRedemption$customerArgs<ExtArgs>;
|
|
679
|
+
discountCode?: boolean | Prisma.DiscountCodeDefaultArgs<ExtArgs>;
|
|
680
|
+
}, ExtArgs["result"]["discountCodeRedemption"]>;
|
|
681
|
+
export type DiscountCodeRedemptionSelectScalar = {
|
|
682
|
+
id?: boolean;
|
|
683
|
+
customerId?: boolean;
|
|
684
|
+
discountCodeId?: boolean;
|
|
685
|
+
redeemedAt?: boolean;
|
|
686
|
+
};
|
|
687
|
+
export type DiscountCodeRedemptionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "customerId" | "discountCodeId" | "redeemedAt", ExtArgs["result"]["discountCodeRedemption"]>;
|
|
688
|
+
export type DiscountCodeRedemptionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
689
|
+
customer?: boolean | Prisma.DiscountCodeRedemption$customerArgs<ExtArgs>;
|
|
690
|
+
discountCode?: boolean | Prisma.DiscountCodeDefaultArgs<ExtArgs>;
|
|
691
|
+
discountCodeRedeemedOnCart?: boolean | Prisma.DiscountCodeRedemption$discountCodeRedeemedOnCartArgs<ExtArgs>;
|
|
692
|
+
cartLine?: boolean | Prisma.DiscountCodeRedemption$cartLineArgs<ExtArgs>;
|
|
693
|
+
_count?: boolean | Prisma.DiscountCodeRedemptionCountOutputTypeDefaultArgs<ExtArgs>;
|
|
694
|
+
};
|
|
695
|
+
export type DiscountCodeRedemptionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
696
|
+
customer?: boolean | Prisma.DiscountCodeRedemption$customerArgs<ExtArgs>;
|
|
697
|
+
discountCode?: boolean | Prisma.DiscountCodeDefaultArgs<ExtArgs>;
|
|
698
|
+
};
|
|
699
|
+
export type DiscountCodeRedemptionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
700
|
+
customer?: boolean | Prisma.DiscountCodeRedemption$customerArgs<ExtArgs>;
|
|
701
|
+
discountCode?: boolean | Prisma.DiscountCodeDefaultArgs<ExtArgs>;
|
|
702
|
+
};
|
|
703
|
+
export type $DiscountCodeRedemptionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
704
|
+
name: "DiscountCodeRedemption";
|
|
705
|
+
objects: {
|
|
706
|
+
customer: Prisma.$CustomerPayload<ExtArgs> | null;
|
|
707
|
+
discountCode: Prisma.$DiscountCodePayload<ExtArgs>;
|
|
708
|
+
discountCodeRedeemedOnCart: Prisma.$DiscountCodeRedeemedOnCartPayload<ExtArgs>[];
|
|
709
|
+
cartLine: Prisma.$CartLinePayload<ExtArgs>[];
|
|
710
|
+
};
|
|
711
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
712
|
+
id: bigint;
|
|
713
|
+
customerId: bigint | null;
|
|
714
|
+
discountCodeId: bigint;
|
|
715
|
+
redeemedAt: Date;
|
|
716
|
+
}, ExtArgs["result"]["discountCodeRedemption"]>;
|
|
717
|
+
composites: {};
|
|
718
|
+
};
|
|
719
|
+
export type DiscountCodeRedemptionGetPayload<S extends boolean | null | undefined | DiscountCodeRedemptionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload, S>;
|
|
720
|
+
export type DiscountCodeRedemptionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<DiscountCodeRedemptionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
721
|
+
select?: DiscountCodeRedemptionCountAggregateInputType | true;
|
|
722
|
+
};
|
|
723
|
+
export interface DiscountCodeRedemptionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
724
|
+
[K: symbol]: {
|
|
725
|
+
types: Prisma.TypeMap<ExtArgs>['model']['DiscountCodeRedemption'];
|
|
726
|
+
meta: {
|
|
727
|
+
name: 'DiscountCodeRedemption';
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
/**
|
|
731
|
+
* Find zero or one DiscountCodeRedemption that matches the filter.
|
|
732
|
+
* @param {DiscountCodeRedemptionFindUniqueArgs} args - Arguments to find a DiscountCodeRedemption
|
|
733
|
+
* @example
|
|
734
|
+
* // Get one DiscountCodeRedemption
|
|
735
|
+
* const discountCodeRedemption = await prisma.discountCodeRedemption.findUnique({
|
|
736
|
+
* where: {
|
|
737
|
+
* // ... provide filter here
|
|
738
|
+
* }
|
|
739
|
+
* })
|
|
740
|
+
*/
|
|
741
|
+
findUnique<T extends DiscountCodeRedemptionFindUniqueArgs>(args: Prisma.SelectSubset<T, DiscountCodeRedemptionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeRedemptionClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
742
|
+
/**
|
|
743
|
+
* Find one DiscountCodeRedemption that matches the filter or throw an error with `error.code='P2025'`
|
|
744
|
+
* if no matches were found.
|
|
745
|
+
* @param {DiscountCodeRedemptionFindUniqueOrThrowArgs} args - Arguments to find a DiscountCodeRedemption
|
|
746
|
+
* @example
|
|
747
|
+
* // Get one DiscountCodeRedemption
|
|
748
|
+
* const discountCodeRedemption = await prisma.discountCodeRedemption.findUniqueOrThrow({
|
|
749
|
+
* where: {
|
|
750
|
+
* // ... provide filter here
|
|
751
|
+
* }
|
|
752
|
+
* })
|
|
753
|
+
*/
|
|
754
|
+
findUniqueOrThrow<T extends DiscountCodeRedemptionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DiscountCodeRedemptionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeRedemptionClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
755
|
+
/**
|
|
756
|
+
* Find the first DiscountCodeRedemption that matches the filter.
|
|
757
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
758
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
759
|
+
* @param {DiscountCodeRedemptionFindFirstArgs} args - Arguments to find a DiscountCodeRedemption
|
|
760
|
+
* @example
|
|
761
|
+
* // Get one DiscountCodeRedemption
|
|
762
|
+
* const discountCodeRedemption = await prisma.discountCodeRedemption.findFirst({
|
|
763
|
+
* where: {
|
|
764
|
+
* // ... provide filter here
|
|
765
|
+
* }
|
|
766
|
+
* })
|
|
767
|
+
*/
|
|
768
|
+
findFirst<T extends DiscountCodeRedemptionFindFirstArgs>(args?: Prisma.SelectSubset<T, DiscountCodeRedemptionFindFirstArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeRedemptionClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
769
|
+
/**
|
|
770
|
+
* Find the first DiscountCodeRedemption that matches the filter or
|
|
771
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
772
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
773
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
774
|
+
* @param {DiscountCodeRedemptionFindFirstOrThrowArgs} args - Arguments to find a DiscountCodeRedemption
|
|
775
|
+
* @example
|
|
776
|
+
* // Get one DiscountCodeRedemption
|
|
777
|
+
* const discountCodeRedemption = await prisma.discountCodeRedemption.findFirstOrThrow({
|
|
778
|
+
* where: {
|
|
779
|
+
* // ... provide filter here
|
|
780
|
+
* }
|
|
781
|
+
* })
|
|
782
|
+
*/
|
|
783
|
+
findFirstOrThrow<T extends DiscountCodeRedemptionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DiscountCodeRedemptionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeRedemptionClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
784
|
+
/**
|
|
785
|
+
* Find zero or more DiscountCodeRedemptions that matches the filter.
|
|
786
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
787
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
788
|
+
* @param {DiscountCodeRedemptionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
789
|
+
* @example
|
|
790
|
+
* // Get all DiscountCodeRedemptions
|
|
791
|
+
* const discountCodeRedemptions = await prisma.discountCodeRedemption.findMany()
|
|
792
|
+
*
|
|
793
|
+
* // Get first 10 DiscountCodeRedemptions
|
|
794
|
+
* const discountCodeRedemptions = await prisma.discountCodeRedemption.findMany({ take: 10 })
|
|
795
|
+
*
|
|
796
|
+
* // Only select the `id`
|
|
797
|
+
* const discountCodeRedemptionWithIdOnly = await prisma.discountCodeRedemption.findMany({ select: { id: true } })
|
|
798
|
+
*
|
|
799
|
+
*/
|
|
800
|
+
findMany<T extends DiscountCodeRedemptionFindManyArgs>(args?: Prisma.SelectSubset<T, DiscountCodeRedemptionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
801
|
+
/**
|
|
802
|
+
* Create a DiscountCodeRedemption.
|
|
803
|
+
* @param {DiscountCodeRedemptionCreateArgs} args - Arguments to create a DiscountCodeRedemption.
|
|
804
|
+
* @example
|
|
805
|
+
* // Create one DiscountCodeRedemption
|
|
806
|
+
* const DiscountCodeRedemption = await prisma.discountCodeRedemption.create({
|
|
807
|
+
* data: {
|
|
808
|
+
* // ... data to create a DiscountCodeRedemption
|
|
809
|
+
* }
|
|
810
|
+
* })
|
|
811
|
+
*
|
|
812
|
+
*/
|
|
813
|
+
create<T extends DiscountCodeRedemptionCreateArgs>(args: Prisma.SelectSubset<T, DiscountCodeRedemptionCreateArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeRedemptionClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
814
|
+
/**
|
|
815
|
+
* Create many DiscountCodeRedemptions.
|
|
816
|
+
* @param {DiscountCodeRedemptionCreateManyArgs} args - Arguments to create many DiscountCodeRedemptions.
|
|
817
|
+
* @example
|
|
818
|
+
* // Create many DiscountCodeRedemptions
|
|
819
|
+
* const discountCodeRedemption = await prisma.discountCodeRedemption.createMany({
|
|
820
|
+
* data: [
|
|
821
|
+
* // ... provide data here
|
|
822
|
+
* ]
|
|
823
|
+
* })
|
|
824
|
+
*
|
|
825
|
+
*/
|
|
826
|
+
createMany<T extends DiscountCodeRedemptionCreateManyArgs>(args?: Prisma.SelectSubset<T, DiscountCodeRedemptionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
827
|
+
/**
|
|
828
|
+
* Create many DiscountCodeRedemptions and returns the data saved in the database.
|
|
829
|
+
* @param {DiscountCodeRedemptionCreateManyAndReturnArgs} args - Arguments to create many DiscountCodeRedemptions.
|
|
830
|
+
* @example
|
|
831
|
+
* // Create many DiscountCodeRedemptions
|
|
832
|
+
* const discountCodeRedemption = await prisma.discountCodeRedemption.createManyAndReturn({
|
|
833
|
+
* data: [
|
|
834
|
+
* // ... provide data here
|
|
835
|
+
* ]
|
|
836
|
+
* })
|
|
837
|
+
*
|
|
838
|
+
* // Create many DiscountCodeRedemptions and only return the `id`
|
|
839
|
+
* const discountCodeRedemptionWithIdOnly = await prisma.discountCodeRedemption.createManyAndReturn({
|
|
840
|
+
* select: { id: true },
|
|
841
|
+
* data: [
|
|
842
|
+
* // ... provide data here
|
|
843
|
+
* ]
|
|
844
|
+
* })
|
|
845
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
846
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
847
|
+
*
|
|
848
|
+
*/
|
|
849
|
+
createManyAndReturn<T extends DiscountCodeRedemptionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DiscountCodeRedemptionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
850
|
+
/**
|
|
851
|
+
* Delete a DiscountCodeRedemption.
|
|
852
|
+
* @param {DiscountCodeRedemptionDeleteArgs} args - Arguments to delete one DiscountCodeRedemption.
|
|
853
|
+
* @example
|
|
854
|
+
* // Delete one DiscountCodeRedemption
|
|
855
|
+
* const DiscountCodeRedemption = await prisma.discountCodeRedemption.delete({
|
|
856
|
+
* where: {
|
|
857
|
+
* // ... filter to delete one DiscountCodeRedemption
|
|
858
|
+
* }
|
|
859
|
+
* })
|
|
860
|
+
*
|
|
861
|
+
*/
|
|
862
|
+
delete<T extends DiscountCodeRedemptionDeleteArgs>(args: Prisma.SelectSubset<T, DiscountCodeRedemptionDeleteArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeRedemptionClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
863
|
+
/**
|
|
864
|
+
* Update one DiscountCodeRedemption.
|
|
865
|
+
* @param {DiscountCodeRedemptionUpdateArgs} args - Arguments to update one DiscountCodeRedemption.
|
|
866
|
+
* @example
|
|
867
|
+
* // Update one DiscountCodeRedemption
|
|
868
|
+
* const discountCodeRedemption = await prisma.discountCodeRedemption.update({
|
|
869
|
+
* where: {
|
|
870
|
+
* // ... provide filter here
|
|
871
|
+
* },
|
|
872
|
+
* data: {
|
|
873
|
+
* // ... provide data here
|
|
874
|
+
* }
|
|
875
|
+
* })
|
|
876
|
+
*
|
|
877
|
+
*/
|
|
878
|
+
update<T extends DiscountCodeRedemptionUpdateArgs>(args: Prisma.SelectSubset<T, DiscountCodeRedemptionUpdateArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeRedemptionClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
879
|
+
/**
|
|
880
|
+
* Delete zero or more DiscountCodeRedemptions.
|
|
881
|
+
* @param {DiscountCodeRedemptionDeleteManyArgs} args - Arguments to filter DiscountCodeRedemptions to delete.
|
|
882
|
+
* @example
|
|
883
|
+
* // Delete a few DiscountCodeRedemptions
|
|
884
|
+
* const { count } = await prisma.discountCodeRedemption.deleteMany({
|
|
885
|
+
* where: {
|
|
886
|
+
* // ... provide filter here
|
|
887
|
+
* }
|
|
888
|
+
* })
|
|
889
|
+
*
|
|
890
|
+
*/
|
|
891
|
+
deleteMany<T extends DiscountCodeRedemptionDeleteManyArgs>(args?: Prisma.SelectSubset<T, DiscountCodeRedemptionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
892
|
+
/**
|
|
893
|
+
* Update zero or more DiscountCodeRedemptions.
|
|
894
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
895
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
896
|
+
* @param {DiscountCodeRedemptionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
897
|
+
* @example
|
|
898
|
+
* // Update many DiscountCodeRedemptions
|
|
899
|
+
* const discountCodeRedemption = await prisma.discountCodeRedemption.updateMany({
|
|
900
|
+
* where: {
|
|
901
|
+
* // ... provide filter here
|
|
902
|
+
* },
|
|
903
|
+
* data: {
|
|
904
|
+
* // ... provide data here
|
|
905
|
+
* }
|
|
906
|
+
* })
|
|
907
|
+
*
|
|
908
|
+
*/
|
|
909
|
+
updateMany<T extends DiscountCodeRedemptionUpdateManyArgs>(args: Prisma.SelectSubset<T, DiscountCodeRedemptionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
910
|
+
/**
|
|
911
|
+
* Update zero or more DiscountCodeRedemptions and returns the data updated in the database.
|
|
912
|
+
* @param {DiscountCodeRedemptionUpdateManyAndReturnArgs} args - Arguments to update many DiscountCodeRedemptions.
|
|
913
|
+
* @example
|
|
914
|
+
* // Update many DiscountCodeRedemptions
|
|
915
|
+
* const discountCodeRedemption = await prisma.discountCodeRedemption.updateManyAndReturn({
|
|
916
|
+
* where: {
|
|
917
|
+
* // ... provide filter here
|
|
918
|
+
* },
|
|
919
|
+
* data: [
|
|
920
|
+
* // ... provide data here
|
|
921
|
+
* ]
|
|
922
|
+
* })
|
|
923
|
+
*
|
|
924
|
+
* // Update zero or more DiscountCodeRedemptions and only return the `id`
|
|
925
|
+
* const discountCodeRedemptionWithIdOnly = await prisma.discountCodeRedemption.updateManyAndReturn({
|
|
926
|
+
* select: { id: true },
|
|
927
|
+
* where: {
|
|
928
|
+
* // ... provide filter here
|
|
929
|
+
* },
|
|
930
|
+
* data: [
|
|
931
|
+
* // ... provide data here
|
|
932
|
+
* ]
|
|
933
|
+
* })
|
|
934
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
935
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
936
|
+
*
|
|
937
|
+
*/
|
|
938
|
+
updateManyAndReturn<T extends DiscountCodeRedemptionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DiscountCodeRedemptionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
939
|
+
/**
|
|
940
|
+
* Create or update one DiscountCodeRedemption.
|
|
941
|
+
* @param {DiscountCodeRedemptionUpsertArgs} args - Arguments to update or create a DiscountCodeRedemption.
|
|
942
|
+
* @example
|
|
943
|
+
* // Update or create a DiscountCodeRedemption
|
|
944
|
+
* const discountCodeRedemption = await prisma.discountCodeRedemption.upsert({
|
|
945
|
+
* create: {
|
|
946
|
+
* // ... data to create a DiscountCodeRedemption
|
|
947
|
+
* },
|
|
948
|
+
* update: {
|
|
949
|
+
* // ... in case it already exists, update
|
|
950
|
+
* },
|
|
951
|
+
* where: {
|
|
952
|
+
* // ... the filter for the DiscountCodeRedemption we want to update
|
|
953
|
+
* }
|
|
954
|
+
* })
|
|
955
|
+
*/
|
|
956
|
+
upsert<T extends DiscountCodeRedemptionUpsertArgs>(args: Prisma.SelectSubset<T, DiscountCodeRedemptionUpsertArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeRedemptionClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
957
|
+
/**
|
|
958
|
+
* Count the number of DiscountCodeRedemptions.
|
|
959
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
960
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
961
|
+
* @param {DiscountCodeRedemptionCountArgs} args - Arguments to filter DiscountCodeRedemptions to count.
|
|
962
|
+
* @example
|
|
963
|
+
* // Count the number of DiscountCodeRedemptions
|
|
964
|
+
* const count = await prisma.discountCodeRedemption.count({
|
|
965
|
+
* where: {
|
|
966
|
+
* // ... the filter for the DiscountCodeRedemptions we want to count
|
|
967
|
+
* }
|
|
968
|
+
* })
|
|
969
|
+
**/
|
|
970
|
+
count<T extends DiscountCodeRedemptionCountArgs>(args?: Prisma.Subset<T, DiscountCodeRedemptionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], DiscountCodeRedemptionCountAggregateOutputType> : number>;
|
|
971
|
+
/**
|
|
972
|
+
* Allows you to perform aggregations operations on a DiscountCodeRedemption.
|
|
973
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
974
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
975
|
+
* @param {DiscountCodeRedemptionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
976
|
+
* @example
|
|
977
|
+
* // Ordered by age ascending
|
|
978
|
+
* // Where email contains prisma.io
|
|
979
|
+
* // Limited to the 10 users
|
|
980
|
+
* const aggregations = await prisma.user.aggregate({
|
|
981
|
+
* _avg: {
|
|
982
|
+
* age: true,
|
|
983
|
+
* },
|
|
984
|
+
* where: {
|
|
985
|
+
* email: {
|
|
986
|
+
* contains: "prisma.io",
|
|
987
|
+
* },
|
|
988
|
+
* },
|
|
989
|
+
* orderBy: {
|
|
990
|
+
* age: "asc",
|
|
991
|
+
* },
|
|
992
|
+
* take: 10,
|
|
993
|
+
* })
|
|
994
|
+
**/
|
|
995
|
+
aggregate<T extends DiscountCodeRedemptionAggregateArgs>(args: Prisma.Subset<T, DiscountCodeRedemptionAggregateArgs>): Prisma.PrismaPromise<GetDiscountCodeRedemptionAggregateType<T>>;
|
|
996
|
+
/**
|
|
997
|
+
* Group by DiscountCodeRedemption.
|
|
998
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
999
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1000
|
+
* @param {DiscountCodeRedemptionGroupByArgs} args - Group by arguments.
|
|
1001
|
+
* @example
|
|
1002
|
+
* // Group by city, order by createdAt, get count
|
|
1003
|
+
* const result = await prisma.user.groupBy({
|
|
1004
|
+
* by: ['city', 'createdAt'],
|
|
1005
|
+
* orderBy: {
|
|
1006
|
+
* createdAt: true
|
|
1007
|
+
* },
|
|
1008
|
+
* _count: {
|
|
1009
|
+
* _all: true
|
|
1010
|
+
* },
|
|
1011
|
+
* })
|
|
1012
|
+
*
|
|
1013
|
+
**/
|
|
1014
|
+
groupBy<T extends DiscountCodeRedemptionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1015
|
+
orderBy: DiscountCodeRedemptionGroupByArgs['orderBy'];
|
|
1016
|
+
} : {
|
|
1017
|
+
orderBy?: DiscountCodeRedemptionGroupByArgs['orderBy'];
|
|
1018
|
+
}, 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 ? {
|
|
1019
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
1020
|
+
Error,
|
|
1021
|
+
'Field ',
|
|
1022
|
+
P,
|
|
1023
|
+
` in "having" needs to be provided in "by"`
|
|
1024
|
+
];
|
|
1025
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1026
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1027
|
+
}[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 ? {} : {
|
|
1028
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1029
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1030
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1031
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, DiscountCodeRedemptionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDiscountCodeRedemptionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Fields of the DiscountCodeRedemption model
|
|
1034
|
+
*/
|
|
1035
|
+
readonly fields: DiscountCodeRedemptionFieldRefs;
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* The delegate class that acts as a "Promise-like" for DiscountCodeRedemption.
|
|
1039
|
+
* Why is this prefixed with `Prisma__`?
|
|
1040
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1041
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1042
|
+
*/
|
|
1043
|
+
export interface Prisma__DiscountCodeRedemptionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1044
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1045
|
+
customer<T extends Prisma.DiscountCodeRedemption$customerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscountCodeRedemption$customerArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1046
|
+
discountCode<T extends Prisma.DiscountCodeDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscountCodeDefaultArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1047
|
+
discountCodeRedeemedOnCart<T extends Prisma.DiscountCodeRedemption$discountCodeRedeemedOnCartArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscountCodeRedemption$discountCodeRedeemedOnCartArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedeemedOnCartPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1048
|
+
cartLine<T extends Prisma.DiscountCodeRedemption$cartLineArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscountCodeRedemption$cartLineArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CartLinePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1049
|
+
/**
|
|
1050
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1051
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1052
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1053
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1054
|
+
*/
|
|
1055
|
+
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>;
|
|
1056
|
+
/**
|
|
1057
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1058
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1059
|
+
* @returns A Promise for the completion of the callback.
|
|
1060
|
+
*/
|
|
1061
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1064
|
+
* resolved value cannot be modified from the callback.
|
|
1065
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1066
|
+
* @returns A Promise for the completion of the callback.
|
|
1067
|
+
*/
|
|
1068
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Fields of the DiscountCodeRedemption model
|
|
1072
|
+
*/
|
|
1073
|
+
export interface DiscountCodeRedemptionFieldRefs {
|
|
1074
|
+
readonly id: Prisma.FieldRef<"DiscountCodeRedemption", 'BigInt'>;
|
|
1075
|
+
readonly customerId: Prisma.FieldRef<"DiscountCodeRedemption", 'BigInt'>;
|
|
1076
|
+
readonly discountCodeId: Prisma.FieldRef<"DiscountCodeRedemption", 'BigInt'>;
|
|
1077
|
+
readonly redeemedAt: Prisma.FieldRef<"DiscountCodeRedemption", 'DateTime'>;
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
* DiscountCodeRedemption findUnique
|
|
1081
|
+
*/
|
|
1082
|
+
export type DiscountCodeRedemptionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1083
|
+
/**
|
|
1084
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
1085
|
+
*/
|
|
1086
|
+
select?: Prisma.DiscountCodeRedemptionSelect<ExtArgs> | null;
|
|
1087
|
+
/**
|
|
1088
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
1089
|
+
*/
|
|
1090
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
1091
|
+
/**
|
|
1092
|
+
* Choose, which related nodes to fetch as well
|
|
1093
|
+
*/
|
|
1094
|
+
include?: Prisma.DiscountCodeRedemptionInclude<ExtArgs> | null;
|
|
1095
|
+
/**
|
|
1096
|
+
* Filter, which DiscountCodeRedemption to fetch.
|
|
1097
|
+
*/
|
|
1098
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
1099
|
+
};
|
|
1100
|
+
/**
|
|
1101
|
+
* DiscountCodeRedemption findUniqueOrThrow
|
|
1102
|
+
*/
|
|
1103
|
+
export type DiscountCodeRedemptionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1104
|
+
/**
|
|
1105
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
1106
|
+
*/
|
|
1107
|
+
select?: Prisma.DiscountCodeRedemptionSelect<ExtArgs> | null;
|
|
1108
|
+
/**
|
|
1109
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
1110
|
+
*/
|
|
1111
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
1112
|
+
/**
|
|
1113
|
+
* Choose, which related nodes to fetch as well
|
|
1114
|
+
*/
|
|
1115
|
+
include?: Prisma.DiscountCodeRedemptionInclude<ExtArgs> | null;
|
|
1116
|
+
/**
|
|
1117
|
+
* Filter, which DiscountCodeRedemption to fetch.
|
|
1118
|
+
*/
|
|
1119
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
1120
|
+
};
|
|
1121
|
+
/**
|
|
1122
|
+
* DiscountCodeRedemption findFirst
|
|
1123
|
+
*/
|
|
1124
|
+
export type DiscountCodeRedemptionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1125
|
+
/**
|
|
1126
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
1127
|
+
*/
|
|
1128
|
+
select?: Prisma.DiscountCodeRedemptionSelect<ExtArgs> | null;
|
|
1129
|
+
/**
|
|
1130
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
1131
|
+
*/
|
|
1132
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
1133
|
+
/**
|
|
1134
|
+
* Choose, which related nodes to fetch as well
|
|
1135
|
+
*/
|
|
1136
|
+
include?: Prisma.DiscountCodeRedemptionInclude<ExtArgs> | null;
|
|
1137
|
+
/**
|
|
1138
|
+
* Filter, which DiscountCodeRedemption to fetch.
|
|
1139
|
+
*/
|
|
1140
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
1141
|
+
/**
|
|
1142
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1143
|
+
*
|
|
1144
|
+
* Determine the order of DiscountCodeRedemptions to fetch.
|
|
1145
|
+
*/
|
|
1146
|
+
orderBy?: Prisma.DiscountCodeRedemptionOrderByWithRelationInput | Prisma.DiscountCodeRedemptionOrderByWithRelationInput[];
|
|
1147
|
+
/**
|
|
1148
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1149
|
+
*
|
|
1150
|
+
* Sets the position for searching for DiscountCodeRedemptions.
|
|
1151
|
+
*/
|
|
1152
|
+
cursor?: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
1153
|
+
/**
|
|
1154
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1155
|
+
*
|
|
1156
|
+
* Take `±n` DiscountCodeRedemptions from the position of the cursor.
|
|
1157
|
+
*/
|
|
1158
|
+
take?: number;
|
|
1159
|
+
/**
|
|
1160
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1161
|
+
*
|
|
1162
|
+
* Skip the first `n` DiscountCodeRedemptions.
|
|
1163
|
+
*/
|
|
1164
|
+
skip?: number;
|
|
1165
|
+
/**
|
|
1166
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1167
|
+
*
|
|
1168
|
+
* Filter by unique combinations of DiscountCodeRedemptions.
|
|
1169
|
+
*/
|
|
1170
|
+
distinct?: Prisma.DiscountCodeRedemptionScalarFieldEnum | Prisma.DiscountCodeRedemptionScalarFieldEnum[];
|
|
1171
|
+
};
|
|
1172
|
+
/**
|
|
1173
|
+
* DiscountCodeRedemption findFirstOrThrow
|
|
1174
|
+
*/
|
|
1175
|
+
export type DiscountCodeRedemptionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1176
|
+
/**
|
|
1177
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
1178
|
+
*/
|
|
1179
|
+
select?: Prisma.DiscountCodeRedemptionSelect<ExtArgs> | null;
|
|
1180
|
+
/**
|
|
1181
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
1182
|
+
*/
|
|
1183
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
1184
|
+
/**
|
|
1185
|
+
* Choose, which related nodes to fetch as well
|
|
1186
|
+
*/
|
|
1187
|
+
include?: Prisma.DiscountCodeRedemptionInclude<ExtArgs> | null;
|
|
1188
|
+
/**
|
|
1189
|
+
* Filter, which DiscountCodeRedemption to fetch.
|
|
1190
|
+
*/
|
|
1191
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
1192
|
+
/**
|
|
1193
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1194
|
+
*
|
|
1195
|
+
* Determine the order of DiscountCodeRedemptions to fetch.
|
|
1196
|
+
*/
|
|
1197
|
+
orderBy?: Prisma.DiscountCodeRedemptionOrderByWithRelationInput | Prisma.DiscountCodeRedemptionOrderByWithRelationInput[];
|
|
1198
|
+
/**
|
|
1199
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1200
|
+
*
|
|
1201
|
+
* Sets the position for searching for DiscountCodeRedemptions.
|
|
1202
|
+
*/
|
|
1203
|
+
cursor?: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
1204
|
+
/**
|
|
1205
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1206
|
+
*
|
|
1207
|
+
* Take `±n` DiscountCodeRedemptions from the position of the cursor.
|
|
1208
|
+
*/
|
|
1209
|
+
take?: number;
|
|
1210
|
+
/**
|
|
1211
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1212
|
+
*
|
|
1213
|
+
* Skip the first `n` DiscountCodeRedemptions.
|
|
1214
|
+
*/
|
|
1215
|
+
skip?: number;
|
|
1216
|
+
/**
|
|
1217
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1218
|
+
*
|
|
1219
|
+
* Filter by unique combinations of DiscountCodeRedemptions.
|
|
1220
|
+
*/
|
|
1221
|
+
distinct?: Prisma.DiscountCodeRedemptionScalarFieldEnum | Prisma.DiscountCodeRedemptionScalarFieldEnum[];
|
|
1222
|
+
};
|
|
1223
|
+
/**
|
|
1224
|
+
* DiscountCodeRedemption findMany
|
|
1225
|
+
*/
|
|
1226
|
+
export type DiscountCodeRedemptionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1227
|
+
/**
|
|
1228
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
1229
|
+
*/
|
|
1230
|
+
select?: Prisma.DiscountCodeRedemptionSelect<ExtArgs> | null;
|
|
1231
|
+
/**
|
|
1232
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
1233
|
+
*/
|
|
1234
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
1235
|
+
/**
|
|
1236
|
+
* Choose, which related nodes to fetch as well
|
|
1237
|
+
*/
|
|
1238
|
+
include?: Prisma.DiscountCodeRedemptionInclude<ExtArgs> | null;
|
|
1239
|
+
/**
|
|
1240
|
+
* Filter, which DiscountCodeRedemptions to fetch.
|
|
1241
|
+
*/
|
|
1242
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
1243
|
+
/**
|
|
1244
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1245
|
+
*
|
|
1246
|
+
* Determine the order of DiscountCodeRedemptions to fetch.
|
|
1247
|
+
*/
|
|
1248
|
+
orderBy?: Prisma.DiscountCodeRedemptionOrderByWithRelationInput | Prisma.DiscountCodeRedemptionOrderByWithRelationInput[];
|
|
1249
|
+
/**
|
|
1250
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1251
|
+
*
|
|
1252
|
+
* Sets the position for listing DiscountCodeRedemptions.
|
|
1253
|
+
*/
|
|
1254
|
+
cursor?: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
1255
|
+
/**
|
|
1256
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1257
|
+
*
|
|
1258
|
+
* Take `±n` DiscountCodeRedemptions from the position of the cursor.
|
|
1259
|
+
*/
|
|
1260
|
+
take?: number;
|
|
1261
|
+
/**
|
|
1262
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1263
|
+
*
|
|
1264
|
+
* Skip the first `n` DiscountCodeRedemptions.
|
|
1265
|
+
*/
|
|
1266
|
+
skip?: number;
|
|
1267
|
+
distinct?: Prisma.DiscountCodeRedemptionScalarFieldEnum | Prisma.DiscountCodeRedemptionScalarFieldEnum[];
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1270
|
+
* DiscountCodeRedemption create
|
|
1271
|
+
*/
|
|
1272
|
+
export type DiscountCodeRedemptionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1273
|
+
/**
|
|
1274
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
1275
|
+
*/
|
|
1276
|
+
select?: Prisma.DiscountCodeRedemptionSelect<ExtArgs> | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
1279
|
+
*/
|
|
1280
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
1281
|
+
/**
|
|
1282
|
+
* Choose, which related nodes to fetch as well
|
|
1283
|
+
*/
|
|
1284
|
+
include?: Prisma.DiscountCodeRedemptionInclude<ExtArgs> | null;
|
|
1285
|
+
/**
|
|
1286
|
+
* The data needed to create a DiscountCodeRedemption.
|
|
1287
|
+
*/
|
|
1288
|
+
data: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateInput, Prisma.DiscountCodeRedemptionUncheckedCreateInput>;
|
|
1289
|
+
};
|
|
1290
|
+
/**
|
|
1291
|
+
* DiscountCodeRedemption createMany
|
|
1292
|
+
*/
|
|
1293
|
+
export type DiscountCodeRedemptionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1294
|
+
/**
|
|
1295
|
+
* The data used to create many DiscountCodeRedemptions.
|
|
1296
|
+
*/
|
|
1297
|
+
data: Prisma.DiscountCodeRedemptionCreateManyInput | Prisma.DiscountCodeRedemptionCreateManyInput[];
|
|
1298
|
+
skipDuplicates?: boolean;
|
|
1299
|
+
};
|
|
1300
|
+
/**
|
|
1301
|
+
* DiscountCodeRedemption createManyAndReturn
|
|
1302
|
+
*/
|
|
1303
|
+
export type DiscountCodeRedemptionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1304
|
+
/**
|
|
1305
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
1306
|
+
*/
|
|
1307
|
+
select?: Prisma.DiscountCodeRedemptionSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1308
|
+
/**
|
|
1309
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
1310
|
+
*/
|
|
1311
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
1312
|
+
/**
|
|
1313
|
+
* The data used to create many DiscountCodeRedemptions.
|
|
1314
|
+
*/
|
|
1315
|
+
data: Prisma.DiscountCodeRedemptionCreateManyInput | Prisma.DiscountCodeRedemptionCreateManyInput[];
|
|
1316
|
+
skipDuplicates?: boolean;
|
|
1317
|
+
/**
|
|
1318
|
+
* Choose, which related nodes to fetch as well
|
|
1319
|
+
*/
|
|
1320
|
+
include?: Prisma.DiscountCodeRedemptionIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1321
|
+
};
|
|
1322
|
+
/**
|
|
1323
|
+
* DiscountCodeRedemption update
|
|
1324
|
+
*/
|
|
1325
|
+
export type DiscountCodeRedemptionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1326
|
+
/**
|
|
1327
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
1328
|
+
*/
|
|
1329
|
+
select?: Prisma.DiscountCodeRedemptionSelect<ExtArgs> | null;
|
|
1330
|
+
/**
|
|
1331
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
1332
|
+
*/
|
|
1333
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
1334
|
+
/**
|
|
1335
|
+
* Choose, which related nodes to fetch as well
|
|
1336
|
+
*/
|
|
1337
|
+
include?: Prisma.DiscountCodeRedemptionInclude<ExtArgs> | null;
|
|
1338
|
+
/**
|
|
1339
|
+
* The data needed to update a DiscountCodeRedemption.
|
|
1340
|
+
*/
|
|
1341
|
+
data: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateInput, Prisma.DiscountCodeRedemptionUncheckedUpdateInput>;
|
|
1342
|
+
/**
|
|
1343
|
+
* Choose, which DiscountCodeRedemption to update.
|
|
1344
|
+
*/
|
|
1345
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
1346
|
+
};
|
|
1347
|
+
/**
|
|
1348
|
+
* DiscountCodeRedemption updateMany
|
|
1349
|
+
*/
|
|
1350
|
+
export type DiscountCodeRedemptionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1351
|
+
/**
|
|
1352
|
+
* The data used to update DiscountCodeRedemptions.
|
|
1353
|
+
*/
|
|
1354
|
+
data: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateManyMutationInput, Prisma.DiscountCodeRedemptionUncheckedUpdateManyInput>;
|
|
1355
|
+
/**
|
|
1356
|
+
* Filter which DiscountCodeRedemptions to update
|
|
1357
|
+
*/
|
|
1358
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
1359
|
+
/**
|
|
1360
|
+
* Limit how many DiscountCodeRedemptions to update.
|
|
1361
|
+
*/
|
|
1362
|
+
limit?: number;
|
|
1363
|
+
};
|
|
1364
|
+
/**
|
|
1365
|
+
* DiscountCodeRedemption updateManyAndReturn
|
|
1366
|
+
*/
|
|
1367
|
+
export type DiscountCodeRedemptionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1368
|
+
/**
|
|
1369
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
1370
|
+
*/
|
|
1371
|
+
select?: Prisma.DiscountCodeRedemptionSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1372
|
+
/**
|
|
1373
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
1374
|
+
*/
|
|
1375
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
1376
|
+
/**
|
|
1377
|
+
* The data used to update DiscountCodeRedemptions.
|
|
1378
|
+
*/
|
|
1379
|
+
data: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateManyMutationInput, Prisma.DiscountCodeRedemptionUncheckedUpdateManyInput>;
|
|
1380
|
+
/**
|
|
1381
|
+
* Filter which DiscountCodeRedemptions to update
|
|
1382
|
+
*/
|
|
1383
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
1384
|
+
/**
|
|
1385
|
+
* Limit how many DiscountCodeRedemptions to update.
|
|
1386
|
+
*/
|
|
1387
|
+
limit?: number;
|
|
1388
|
+
/**
|
|
1389
|
+
* Choose, which related nodes to fetch as well
|
|
1390
|
+
*/
|
|
1391
|
+
include?: Prisma.DiscountCodeRedemptionIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1392
|
+
};
|
|
1393
|
+
/**
|
|
1394
|
+
* DiscountCodeRedemption upsert
|
|
1395
|
+
*/
|
|
1396
|
+
export type DiscountCodeRedemptionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1397
|
+
/**
|
|
1398
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
1399
|
+
*/
|
|
1400
|
+
select?: Prisma.DiscountCodeRedemptionSelect<ExtArgs> | null;
|
|
1401
|
+
/**
|
|
1402
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
1403
|
+
*/
|
|
1404
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
1405
|
+
/**
|
|
1406
|
+
* Choose, which related nodes to fetch as well
|
|
1407
|
+
*/
|
|
1408
|
+
include?: Prisma.DiscountCodeRedemptionInclude<ExtArgs> | null;
|
|
1409
|
+
/**
|
|
1410
|
+
* The filter to search for the DiscountCodeRedemption to update in case it exists.
|
|
1411
|
+
*/
|
|
1412
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
1413
|
+
/**
|
|
1414
|
+
* In case the DiscountCodeRedemption found by the `where` argument doesn't exist, create a new DiscountCodeRedemption with this data.
|
|
1415
|
+
*/
|
|
1416
|
+
create: Prisma.XOR<Prisma.DiscountCodeRedemptionCreateInput, Prisma.DiscountCodeRedemptionUncheckedCreateInput>;
|
|
1417
|
+
/**
|
|
1418
|
+
* In case the DiscountCodeRedemption was found with the provided `where` argument, update it with this data.
|
|
1419
|
+
*/
|
|
1420
|
+
update: Prisma.XOR<Prisma.DiscountCodeRedemptionUpdateInput, Prisma.DiscountCodeRedemptionUncheckedUpdateInput>;
|
|
1421
|
+
};
|
|
1422
|
+
/**
|
|
1423
|
+
* DiscountCodeRedemption delete
|
|
1424
|
+
*/
|
|
1425
|
+
export type DiscountCodeRedemptionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1426
|
+
/**
|
|
1427
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
1428
|
+
*/
|
|
1429
|
+
select?: Prisma.DiscountCodeRedemptionSelect<ExtArgs> | null;
|
|
1430
|
+
/**
|
|
1431
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
1432
|
+
*/
|
|
1433
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
1434
|
+
/**
|
|
1435
|
+
* Choose, which related nodes to fetch as well
|
|
1436
|
+
*/
|
|
1437
|
+
include?: Prisma.DiscountCodeRedemptionInclude<ExtArgs> | null;
|
|
1438
|
+
/**
|
|
1439
|
+
* Filter which DiscountCodeRedemption to delete.
|
|
1440
|
+
*/
|
|
1441
|
+
where: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
1442
|
+
};
|
|
1443
|
+
/**
|
|
1444
|
+
* DiscountCodeRedemption deleteMany
|
|
1445
|
+
*/
|
|
1446
|
+
export type DiscountCodeRedemptionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1447
|
+
/**
|
|
1448
|
+
* Filter which DiscountCodeRedemptions to delete
|
|
1449
|
+
*/
|
|
1450
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
1451
|
+
/**
|
|
1452
|
+
* Limit how many DiscountCodeRedemptions to delete.
|
|
1453
|
+
*/
|
|
1454
|
+
limit?: number;
|
|
1455
|
+
};
|
|
1456
|
+
/**
|
|
1457
|
+
* DiscountCodeRedemption.customer
|
|
1458
|
+
*/
|
|
1459
|
+
export type DiscountCodeRedemption$customerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1460
|
+
/**
|
|
1461
|
+
* Select specific fields to fetch from the Customer
|
|
1462
|
+
*/
|
|
1463
|
+
select?: Prisma.CustomerSelect<ExtArgs> | null;
|
|
1464
|
+
/**
|
|
1465
|
+
* Omit specific fields from the Customer
|
|
1466
|
+
*/
|
|
1467
|
+
omit?: Prisma.CustomerOmit<ExtArgs> | null;
|
|
1468
|
+
/**
|
|
1469
|
+
* Choose, which related nodes to fetch as well
|
|
1470
|
+
*/
|
|
1471
|
+
include?: Prisma.CustomerInclude<ExtArgs> | null;
|
|
1472
|
+
where?: Prisma.CustomerWhereInput;
|
|
1473
|
+
};
|
|
1474
|
+
/**
|
|
1475
|
+
* DiscountCodeRedemption.discountCodeRedeemedOnCart
|
|
1476
|
+
*/
|
|
1477
|
+
export type DiscountCodeRedemption$discountCodeRedeemedOnCartArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1478
|
+
/**
|
|
1479
|
+
* Select specific fields to fetch from the DiscountCodeRedeemedOnCart
|
|
1480
|
+
*/
|
|
1481
|
+
select?: Prisma.DiscountCodeRedeemedOnCartSelect<ExtArgs> | null;
|
|
1482
|
+
/**
|
|
1483
|
+
* Omit specific fields from the DiscountCodeRedeemedOnCart
|
|
1484
|
+
*/
|
|
1485
|
+
omit?: Prisma.DiscountCodeRedeemedOnCartOmit<ExtArgs> | null;
|
|
1486
|
+
/**
|
|
1487
|
+
* Choose, which related nodes to fetch as well
|
|
1488
|
+
*/
|
|
1489
|
+
include?: Prisma.DiscountCodeRedeemedOnCartInclude<ExtArgs> | null;
|
|
1490
|
+
where?: Prisma.DiscountCodeRedeemedOnCartWhereInput;
|
|
1491
|
+
orderBy?: Prisma.DiscountCodeRedeemedOnCartOrderByWithRelationInput | Prisma.DiscountCodeRedeemedOnCartOrderByWithRelationInput[];
|
|
1492
|
+
cursor?: Prisma.DiscountCodeRedeemedOnCartWhereUniqueInput;
|
|
1493
|
+
take?: number;
|
|
1494
|
+
skip?: number;
|
|
1495
|
+
distinct?: Prisma.DiscountCodeRedeemedOnCartScalarFieldEnum | Prisma.DiscountCodeRedeemedOnCartScalarFieldEnum[];
|
|
1496
|
+
};
|
|
1497
|
+
/**
|
|
1498
|
+
* DiscountCodeRedemption.cartLine
|
|
1499
|
+
*/
|
|
1500
|
+
export type DiscountCodeRedemption$cartLineArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1501
|
+
/**
|
|
1502
|
+
* Select specific fields to fetch from the CartLine
|
|
1503
|
+
*/
|
|
1504
|
+
select?: Prisma.CartLineSelect<ExtArgs> | null;
|
|
1505
|
+
/**
|
|
1506
|
+
* Omit specific fields from the CartLine
|
|
1507
|
+
*/
|
|
1508
|
+
omit?: Prisma.CartLineOmit<ExtArgs> | null;
|
|
1509
|
+
/**
|
|
1510
|
+
* Choose, which related nodes to fetch as well
|
|
1511
|
+
*/
|
|
1512
|
+
include?: Prisma.CartLineInclude<ExtArgs> | null;
|
|
1513
|
+
where?: Prisma.CartLineWhereInput;
|
|
1514
|
+
orderBy?: Prisma.CartLineOrderByWithRelationInput | Prisma.CartLineOrderByWithRelationInput[];
|
|
1515
|
+
cursor?: Prisma.CartLineWhereUniqueInput;
|
|
1516
|
+
take?: number;
|
|
1517
|
+
skip?: number;
|
|
1518
|
+
distinct?: Prisma.CartLineScalarFieldEnum | Prisma.CartLineScalarFieldEnum[];
|
|
1519
|
+
};
|
|
1520
|
+
/**
|
|
1521
|
+
* DiscountCodeRedemption without action
|
|
1522
|
+
*/
|
|
1523
|
+
export type DiscountCodeRedemptionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1524
|
+
/**
|
|
1525
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
1526
|
+
*/
|
|
1527
|
+
select?: Prisma.DiscountCodeRedemptionSelect<ExtArgs> | null;
|
|
1528
|
+
/**
|
|
1529
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
1530
|
+
*/
|
|
1531
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
1532
|
+
/**
|
|
1533
|
+
* Choose, which related nodes to fetch as well
|
|
1534
|
+
*/
|
|
1535
|
+
include?: Prisma.DiscountCodeRedemptionInclude<ExtArgs> | null;
|
|
1536
|
+
};
|
|
1537
|
+
export {};
|