@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,3139 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as $Enums from "../enums.js";
|
|
3
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
4
|
+
/**
|
|
5
|
+
* Model DiscountCode
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export type DiscountCodeModel = runtime.Types.Result.DefaultSelection<Prisma.$DiscountCodePayload>;
|
|
9
|
+
export type AggregateDiscountCode = {
|
|
10
|
+
_count: DiscountCodeCountAggregateOutputType | null;
|
|
11
|
+
_avg: DiscountCodeAvgAggregateOutputType | null;
|
|
12
|
+
_sum: DiscountCodeSumAggregateOutputType | null;
|
|
13
|
+
_min: DiscountCodeMinAggregateOutputType | null;
|
|
14
|
+
_max: DiscountCodeMaxAggregateOutputType | null;
|
|
15
|
+
};
|
|
16
|
+
export type DiscountCodeAvgAggregateOutputType = {
|
|
17
|
+
id: number | null;
|
|
18
|
+
maxGlobalRedemptions: number | null;
|
|
19
|
+
maxRedemptionsPerUser: number | null;
|
|
20
|
+
maxRedemptionsPerCart: number | null;
|
|
21
|
+
minCartValue: number | null;
|
|
22
|
+
discountPercentage: number | null;
|
|
23
|
+
discountAmount: number | null;
|
|
24
|
+
productIds: number | null;
|
|
25
|
+
productVariantIds: number | null;
|
|
26
|
+
categoryIds: number | null;
|
|
27
|
+
collectionIds: number | null;
|
|
28
|
+
buyXId: number | null;
|
|
29
|
+
buyXAmount: number | null;
|
|
30
|
+
buyXQty: number | null;
|
|
31
|
+
getYId: number | null;
|
|
32
|
+
getYAmount: number | null;
|
|
33
|
+
getYQty: number | null;
|
|
34
|
+
};
|
|
35
|
+
export type DiscountCodeSumAggregateOutputType = {
|
|
36
|
+
id: bigint | null;
|
|
37
|
+
maxGlobalRedemptions: number | null;
|
|
38
|
+
maxRedemptionsPerUser: number | null;
|
|
39
|
+
maxRedemptionsPerCart: number | null;
|
|
40
|
+
minCartValue: number | null;
|
|
41
|
+
discountPercentage: number | null;
|
|
42
|
+
discountAmount: number | null;
|
|
43
|
+
productIds: bigint[];
|
|
44
|
+
productVariantIds: bigint[];
|
|
45
|
+
categoryIds: bigint[];
|
|
46
|
+
collectionIds: bigint[];
|
|
47
|
+
buyXId: bigint | null;
|
|
48
|
+
buyXAmount: number | null;
|
|
49
|
+
buyXQty: number | null;
|
|
50
|
+
getYId: bigint | null;
|
|
51
|
+
getYAmount: number | null;
|
|
52
|
+
getYQty: number | null;
|
|
53
|
+
};
|
|
54
|
+
export type DiscountCodeMinAggregateOutputType = {
|
|
55
|
+
id: bigint | null;
|
|
56
|
+
code: string | null;
|
|
57
|
+
name: string | null;
|
|
58
|
+
message: string | null;
|
|
59
|
+
createdAt: Date | null;
|
|
60
|
+
updatedAt: Date | null;
|
|
61
|
+
platformId: string | null;
|
|
62
|
+
isActive: boolean | null;
|
|
63
|
+
startDate: Date | null;
|
|
64
|
+
expiryDate: Date | null;
|
|
65
|
+
isGlobal: boolean | null;
|
|
66
|
+
maxGlobalRedemptions: number | null;
|
|
67
|
+
maxRedemptionsPerUser: number | null;
|
|
68
|
+
maxRedemptionsPerCart: number | null;
|
|
69
|
+
minCartValue: number | null;
|
|
70
|
+
customerOnly: boolean | null;
|
|
71
|
+
timeStart: Date | null;
|
|
72
|
+
timeEnd: Date | null;
|
|
73
|
+
timezone: $Enums.Timezone | null;
|
|
74
|
+
discountType: $Enums.DiscountType | null;
|
|
75
|
+
discountApplicationType: $Enums.DiscountApplicationType | null;
|
|
76
|
+
discountPercentage: number | null;
|
|
77
|
+
discountAmount: number | null;
|
|
78
|
+
buyXId: bigint | null;
|
|
79
|
+
buyXAmount: number | null;
|
|
80
|
+
buyXQty: number | null;
|
|
81
|
+
buyXTargetType: $Enums.DiscountTargetType | null;
|
|
82
|
+
getYId: bigint | null;
|
|
83
|
+
getYAmount: number | null;
|
|
84
|
+
getYQty: number | null;
|
|
85
|
+
getYTargetType: $Enums.DiscountTargetType | null;
|
|
86
|
+
};
|
|
87
|
+
export type DiscountCodeMaxAggregateOutputType = {
|
|
88
|
+
id: bigint | null;
|
|
89
|
+
code: string | null;
|
|
90
|
+
name: string | null;
|
|
91
|
+
message: string | null;
|
|
92
|
+
createdAt: Date | null;
|
|
93
|
+
updatedAt: Date | null;
|
|
94
|
+
platformId: string | null;
|
|
95
|
+
isActive: boolean | null;
|
|
96
|
+
startDate: Date | null;
|
|
97
|
+
expiryDate: Date | null;
|
|
98
|
+
isGlobal: boolean | null;
|
|
99
|
+
maxGlobalRedemptions: number | null;
|
|
100
|
+
maxRedemptionsPerUser: number | null;
|
|
101
|
+
maxRedemptionsPerCart: number | null;
|
|
102
|
+
minCartValue: number | null;
|
|
103
|
+
customerOnly: boolean | null;
|
|
104
|
+
timeStart: Date | null;
|
|
105
|
+
timeEnd: Date | null;
|
|
106
|
+
timezone: $Enums.Timezone | null;
|
|
107
|
+
discountType: $Enums.DiscountType | null;
|
|
108
|
+
discountApplicationType: $Enums.DiscountApplicationType | null;
|
|
109
|
+
discountPercentage: number | null;
|
|
110
|
+
discountAmount: number | null;
|
|
111
|
+
buyXId: bigint | null;
|
|
112
|
+
buyXAmount: number | null;
|
|
113
|
+
buyXQty: number | null;
|
|
114
|
+
buyXTargetType: $Enums.DiscountTargetType | null;
|
|
115
|
+
getYId: bigint | null;
|
|
116
|
+
getYAmount: number | null;
|
|
117
|
+
getYQty: number | null;
|
|
118
|
+
getYTargetType: $Enums.DiscountTargetType | null;
|
|
119
|
+
};
|
|
120
|
+
export type DiscountCodeCountAggregateOutputType = {
|
|
121
|
+
id: number;
|
|
122
|
+
code: number;
|
|
123
|
+
name: number;
|
|
124
|
+
message: number;
|
|
125
|
+
createdAt: number;
|
|
126
|
+
updatedAt: number;
|
|
127
|
+
platformId: number;
|
|
128
|
+
storeIds: number;
|
|
129
|
+
isActive: number;
|
|
130
|
+
startDate: number;
|
|
131
|
+
expiryDate: number;
|
|
132
|
+
isGlobal: number;
|
|
133
|
+
maxGlobalRedemptions: number;
|
|
134
|
+
maxRedemptionsPerUser: number;
|
|
135
|
+
maxRedemptionsPerCart: number;
|
|
136
|
+
minCartValue: number;
|
|
137
|
+
customerOnly: number;
|
|
138
|
+
activeDays: number;
|
|
139
|
+
activeWeeks: number;
|
|
140
|
+
timeStart: number;
|
|
141
|
+
timeEnd: number;
|
|
142
|
+
timezone: number;
|
|
143
|
+
discountType: number;
|
|
144
|
+
discountApplicationType: number;
|
|
145
|
+
discountPercentage: number;
|
|
146
|
+
discountAmount: number;
|
|
147
|
+
productIds: number;
|
|
148
|
+
productVariantIds: number;
|
|
149
|
+
categoryIds: number;
|
|
150
|
+
collectionIds: number;
|
|
151
|
+
buyXId: number;
|
|
152
|
+
buyXAmount: number;
|
|
153
|
+
buyXQty: number;
|
|
154
|
+
buyXTargetType: number;
|
|
155
|
+
getYId: number;
|
|
156
|
+
getYAmount: number;
|
|
157
|
+
getYQty: number;
|
|
158
|
+
getYTargetType: number;
|
|
159
|
+
_all: number;
|
|
160
|
+
};
|
|
161
|
+
export type DiscountCodeAvgAggregateInputType = {
|
|
162
|
+
id?: true;
|
|
163
|
+
maxGlobalRedemptions?: true;
|
|
164
|
+
maxRedemptionsPerUser?: true;
|
|
165
|
+
maxRedemptionsPerCart?: true;
|
|
166
|
+
minCartValue?: true;
|
|
167
|
+
discountPercentage?: true;
|
|
168
|
+
discountAmount?: true;
|
|
169
|
+
productIds?: true;
|
|
170
|
+
productVariantIds?: true;
|
|
171
|
+
categoryIds?: true;
|
|
172
|
+
collectionIds?: true;
|
|
173
|
+
buyXId?: true;
|
|
174
|
+
buyXAmount?: true;
|
|
175
|
+
buyXQty?: true;
|
|
176
|
+
getYId?: true;
|
|
177
|
+
getYAmount?: true;
|
|
178
|
+
getYQty?: true;
|
|
179
|
+
};
|
|
180
|
+
export type DiscountCodeSumAggregateInputType = {
|
|
181
|
+
id?: true;
|
|
182
|
+
maxGlobalRedemptions?: true;
|
|
183
|
+
maxRedemptionsPerUser?: true;
|
|
184
|
+
maxRedemptionsPerCart?: true;
|
|
185
|
+
minCartValue?: true;
|
|
186
|
+
discountPercentage?: true;
|
|
187
|
+
discountAmount?: true;
|
|
188
|
+
productIds?: true;
|
|
189
|
+
productVariantIds?: true;
|
|
190
|
+
categoryIds?: true;
|
|
191
|
+
collectionIds?: true;
|
|
192
|
+
buyXId?: true;
|
|
193
|
+
buyXAmount?: true;
|
|
194
|
+
buyXQty?: true;
|
|
195
|
+
getYId?: true;
|
|
196
|
+
getYAmount?: true;
|
|
197
|
+
getYQty?: true;
|
|
198
|
+
};
|
|
199
|
+
export type DiscountCodeMinAggregateInputType = {
|
|
200
|
+
id?: true;
|
|
201
|
+
code?: true;
|
|
202
|
+
name?: true;
|
|
203
|
+
message?: true;
|
|
204
|
+
createdAt?: true;
|
|
205
|
+
updatedAt?: true;
|
|
206
|
+
platformId?: true;
|
|
207
|
+
isActive?: true;
|
|
208
|
+
startDate?: true;
|
|
209
|
+
expiryDate?: true;
|
|
210
|
+
isGlobal?: true;
|
|
211
|
+
maxGlobalRedemptions?: true;
|
|
212
|
+
maxRedemptionsPerUser?: true;
|
|
213
|
+
maxRedemptionsPerCart?: true;
|
|
214
|
+
minCartValue?: true;
|
|
215
|
+
customerOnly?: true;
|
|
216
|
+
timeStart?: true;
|
|
217
|
+
timeEnd?: true;
|
|
218
|
+
timezone?: true;
|
|
219
|
+
discountType?: true;
|
|
220
|
+
discountApplicationType?: true;
|
|
221
|
+
discountPercentage?: true;
|
|
222
|
+
discountAmount?: true;
|
|
223
|
+
buyXId?: true;
|
|
224
|
+
buyXAmount?: true;
|
|
225
|
+
buyXQty?: true;
|
|
226
|
+
buyXTargetType?: true;
|
|
227
|
+
getYId?: true;
|
|
228
|
+
getYAmount?: true;
|
|
229
|
+
getYQty?: true;
|
|
230
|
+
getYTargetType?: true;
|
|
231
|
+
};
|
|
232
|
+
export type DiscountCodeMaxAggregateInputType = {
|
|
233
|
+
id?: true;
|
|
234
|
+
code?: true;
|
|
235
|
+
name?: true;
|
|
236
|
+
message?: true;
|
|
237
|
+
createdAt?: true;
|
|
238
|
+
updatedAt?: true;
|
|
239
|
+
platformId?: true;
|
|
240
|
+
isActive?: true;
|
|
241
|
+
startDate?: true;
|
|
242
|
+
expiryDate?: true;
|
|
243
|
+
isGlobal?: true;
|
|
244
|
+
maxGlobalRedemptions?: true;
|
|
245
|
+
maxRedemptionsPerUser?: true;
|
|
246
|
+
maxRedemptionsPerCart?: true;
|
|
247
|
+
minCartValue?: true;
|
|
248
|
+
customerOnly?: true;
|
|
249
|
+
timeStart?: true;
|
|
250
|
+
timeEnd?: true;
|
|
251
|
+
timezone?: true;
|
|
252
|
+
discountType?: true;
|
|
253
|
+
discountApplicationType?: true;
|
|
254
|
+
discountPercentage?: true;
|
|
255
|
+
discountAmount?: true;
|
|
256
|
+
buyXId?: true;
|
|
257
|
+
buyXAmount?: true;
|
|
258
|
+
buyXQty?: true;
|
|
259
|
+
buyXTargetType?: true;
|
|
260
|
+
getYId?: true;
|
|
261
|
+
getYAmount?: true;
|
|
262
|
+
getYQty?: true;
|
|
263
|
+
getYTargetType?: true;
|
|
264
|
+
};
|
|
265
|
+
export type DiscountCodeCountAggregateInputType = {
|
|
266
|
+
id?: true;
|
|
267
|
+
code?: true;
|
|
268
|
+
name?: true;
|
|
269
|
+
message?: true;
|
|
270
|
+
createdAt?: true;
|
|
271
|
+
updatedAt?: true;
|
|
272
|
+
platformId?: true;
|
|
273
|
+
storeIds?: true;
|
|
274
|
+
isActive?: true;
|
|
275
|
+
startDate?: true;
|
|
276
|
+
expiryDate?: true;
|
|
277
|
+
isGlobal?: true;
|
|
278
|
+
maxGlobalRedemptions?: true;
|
|
279
|
+
maxRedemptionsPerUser?: true;
|
|
280
|
+
maxRedemptionsPerCart?: true;
|
|
281
|
+
minCartValue?: true;
|
|
282
|
+
customerOnly?: true;
|
|
283
|
+
activeDays?: true;
|
|
284
|
+
activeWeeks?: true;
|
|
285
|
+
timeStart?: true;
|
|
286
|
+
timeEnd?: true;
|
|
287
|
+
timezone?: true;
|
|
288
|
+
discountType?: true;
|
|
289
|
+
discountApplicationType?: true;
|
|
290
|
+
discountPercentage?: true;
|
|
291
|
+
discountAmount?: true;
|
|
292
|
+
productIds?: true;
|
|
293
|
+
productVariantIds?: true;
|
|
294
|
+
categoryIds?: true;
|
|
295
|
+
collectionIds?: true;
|
|
296
|
+
buyXId?: true;
|
|
297
|
+
buyXAmount?: true;
|
|
298
|
+
buyXQty?: true;
|
|
299
|
+
buyXTargetType?: true;
|
|
300
|
+
getYId?: true;
|
|
301
|
+
getYAmount?: true;
|
|
302
|
+
getYQty?: true;
|
|
303
|
+
getYTargetType?: true;
|
|
304
|
+
_all?: true;
|
|
305
|
+
};
|
|
306
|
+
export type DiscountCodeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
307
|
+
/**
|
|
308
|
+
* Filter which DiscountCode to aggregate.
|
|
309
|
+
*/
|
|
310
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
311
|
+
/**
|
|
312
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
313
|
+
*
|
|
314
|
+
* Determine the order of DiscountCodes to fetch.
|
|
315
|
+
*/
|
|
316
|
+
orderBy?: Prisma.DiscountCodeOrderByWithRelationInput | Prisma.DiscountCodeOrderByWithRelationInput[];
|
|
317
|
+
/**
|
|
318
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
319
|
+
*
|
|
320
|
+
* Sets the start position
|
|
321
|
+
*/
|
|
322
|
+
cursor?: Prisma.DiscountCodeWhereUniqueInput;
|
|
323
|
+
/**
|
|
324
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
325
|
+
*
|
|
326
|
+
* Take `±n` DiscountCodes from the position of the cursor.
|
|
327
|
+
*/
|
|
328
|
+
take?: number;
|
|
329
|
+
/**
|
|
330
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
331
|
+
*
|
|
332
|
+
* Skip the first `n` DiscountCodes.
|
|
333
|
+
*/
|
|
334
|
+
skip?: number;
|
|
335
|
+
/**
|
|
336
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
337
|
+
*
|
|
338
|
+
* Count returned DiscountCodes
|
|
339
|
+
**/
|
|
340
|
+
_count?: true | DiscountCodeCountAggregateInputType;
|
|
341
|
+
/**
|
|
342
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
343
|
+
*
|
|
344
|
+
* Select which fields to average
|
|
345
|
+
**/
|
|
346
|
+
_avg?: DiscountCodeAvgAggregateInputType;
|
|
347
|
+
/**
|
|
348
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
349
|
+
*
|
|
350
|
+
* Select which fields to sum
|
|
351
|
+
**/
|
|
352
|
+
_sum?: DiscountCodeSumAggregateInputType;
|
|
353
|
+
/**
|
|
354
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
355
|
+
*
|
|
356
|
+
* Select which fields to find the minimum value
|
|
357
|
+
**/
|
|
358
|
+
_min?: DiscountCodeMinAggregateInputType;
|
|
359
|
+
/**
|
|
360
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
361
|
+
*
|
|
362
|
+
* Select which fields to find the maximum value
|
|
363
|
+
**/
|
|
364
|
+
_max?: DiscountCodeMaxAggregateInputType;
|
|
365
|
+
};
|
|
366
|
+
export type GetDiscountCodeAggregateType<T extends DiscountCodeAggregateArgs> = {
|
|
367
|
+
[P in keyof T & keyof AggregateDiscountCode]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDiscountCode[P]> : Prisma.GetScalarType<T[P], AggregateDiscountCode[P]>;
|
|
368
|
+
};
|
|
369
|
+
export type DiscountCodeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
370
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
371
|
+
orderBy?: Prisma.DiscountCodeOrderByWithAggregationInput | Prisma.DiscountCodeOrderByWithAggregationInput[];
|
|
372
|
+
by: Prisma.DiscountCodeScalarFieldEnum[] | Prisma.DiscountCodeScalarFieldEnum;
|
|
373
|
+
having?: Prisma.DiscountCodeScalarWhereWithAggregatesInput;
|
|
374
|
+
take?: number;
|
|
375
|
+
skip?: number;
|
|
376
|
+
_count?: DiscountCodeCountAggregateInputType | true;
|
|
377
|
+
_avg?: DiscountCodeAvgAggregateInputType;
|
|
378
|
+
_sum?: DiscountCodeSumAggregateInputType;
|
|
379
|
+
_min?: DiscountCodeMinAggregateInputType;
|
|
380
|
+
_max?: DiscountCodeMaxAggregateInputType;
|
|
381
|
+
};
|
|
382
|
+
export type DiscountCodeGroupByOutputType = {
|
|
383
|
+
id: bigint;
|
|
384
|
+
code: string;
|
|
385
|
+
name: string;
|
|
386
|
+
message: string | null;
|
|
387
|
+
createdAt: Date;
|
|
388
|
+
updatedAt: Date;
|
|
389
|
+
platformId: string | null;
|
|
390
|
+
storeIds: string[];
|
|
391
|
+
isActive: boolean;
|
|
392
|
+
startDate: Date;
|
|
393
|
+
expiryDate: Date;
|
|
394
|
+
isGlobal: boolean;
|
|
395
|
+
maxGlobalRedemptions: number | null;
|
|
396
|
+
maxRedemptionsPerUser: number | null;
|
|
397
|
+
maxRedemptionsPerCart: number | null;
|
|
398
|
+
minCartValue: number | null;
|
|
399
|
+
customerOnly: boolean;
|
|
400
|
+
activeDays: $Enums.ActiveDays[];
|
|
401
|
+
activeWeeks: $Enums.ActiveWeeks[];
|
|
402
|
+
timeStart: Date | null;
|
|
403
|
+
timeEnd: Date | null;
|
|
404
|
+
timezone: $Enums.Timezone;
|
|
405
|
+
discountType: $Enums.DiscountType;
|
|
406
|
+
discountApplicationType: $Enums.DiscountApplicationType;
|
|
407
|
+
discountPercentage: number | null;
|
|
408
|
+
discountAmount: number | null;
|
|
409
|
+
productIds: bigint[];
|
|
410
|
+
productVariantIds: bigint[];
|
|
411
|
+
categoryIds: bigint[];
|
|
412
|
+
collectionIds: bigint[];
|
|
413
|
+
buyXId: bigint | null;
|
|
414
|
+
buyXAmount: number | null;
|
|
415
|
+
buyXQty: number | null;
|
|
416
|
+
buyXTargetType: $Enums.DiscountTargetType | null;
|
|
417
|
+
getYId: bigint | null;
|
|
418
|
+
getYAmount: number | null;
|
|
419
|
+
getYQty: number | null;
|
|
420
|
+
getYTargetType: $Enums.DiscountTargetType | null;
|
|
421
|
+
_count: DiscountCodeCountAggregateOutputType | null;
|
|
422
|
+
_avg: DiscountCodeAvgAggregateOutputType | null;
|
|
423
|
+
_sum: DiscountCodeSumAggregateOutputType | null;
|
|
424
|
+
_min: DiscountCodeMinAggregateOutputType | null;
|
|
425
|
+
_max: DiscountCodeMaxAggregateOutputType | null;
|
|
426
|
+
};
|
|
427
|
+
type GetDiscountCodeGroupByPayload<T extends DiscountCodeGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<DiscountCodeGroupByOutputType, T['by']> & {
|
|
428
|
+
[P in ((keyof T) & (keyof DiscountCodeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], DiscountCodeGroupByOutputType[P]> : Prisma.GetScalarType<T[P], DiscountCodeGroupByOutputType[P]>;
|
|
429
|
+
}>>;
|
|
430
|
+
export type DiscountCodeWhereInput = {
|
|
431
|
+
AND?: Prisma.DiscountCodeWhereInput | Prisma.DiscountCodeWhereInput[];
|
|
432
|
+
OR?: Prisma.DiscountCodeWhereInput[];
|
|
433
|
+
NOT?: Prisma.DiscountCodeWhereInput | Prisma.DiscountCodeWhereInput[];
|
|
434
|
+
id?: Prisma.BigIntFilter<"DiscountCode"> | bigint | number;
|
|
435
|
+
code?: Prisma.StringFilter<"DiscountCode"> | string;
|
|
436
|
+
name?: Prisma.StringFilter<"DiscountCode"> | string;
|
|
437
|
+
message?: Prisma.StringNullableFilter<"DiscountCode"> | string | null;
|
|
438
|
+
createdAt?: Prisma.DateTimeFilter<"DiscountCode"> | Date | string;
|
|
439
|
+
updatedAt?: Prisma.DateTimeFilter<"DiscountCode"> | Date | string;
|
|
440
|
+
platformId?: Prisma.StringNullableFilter<"DiscountCode"> | string | null;
|
|
441
|
+
storeIds?: Prisma.StringNullableListFilter<"DiscountCode">;
|
|
442
|
+
isActive?: Prisma.BoolFilter<"DiscountCode"> | boolean;
|
|
443
|
+
startDate?: Prisma.DateTimeFilter<"DiscountCode"> | Date | string;
|
|
444
|
+
expiryDate?: Prisma.DateTimeFilter<"DiscountCode"> | Date | string;
|
|
445
|
+
isGlobal?: Prisma.BoolFilter<"DiscountCode"> | boolean;
|
|
446
|
+
maxGlobalRedemptions?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
447
|
+
maxRedemptionsPerUser?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
448
|
+
maxRedemptionsPerCart?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
449
|
+
minCartValue?: Prisma.FloatNullableFilter<"DiscountCode"> | number | null;
|
|
450
|
+
customerOnly?: Prisma.BoolFilter<"DiscountCode"> | boolean;
|
|
451
|
+
activeDays?: Prisma.EnumActiveDaysNullableListFilter<"DiscountCode">;
|
|
452
|
+
activeWeeks?: Prisma.EnumActiveWeeksNullableListFilter<"DiscountCode">;
|
|
453
|
+
timeStart?: Prisma.DateTimeNullableFilter<"DiscountCode"> | Date | string | null;
|
|
454
|
+
timeEnd?: Prisma.DateTimeNullableFilter<"DiscountCode"> | Date | string | null;
|
|
455
|
+
timezone?: Prisma.EnumTimezoneFilter<"DiscountCode"> | $Enums.Timezone;
|
|
456
|
+
discountType?: Prisma.EnumDiscountTypeFilter<"DiscountCode"> | $Enums.DiscountType;
|
|
457
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFilter<"DiscountCode"> | $Enums.DiscountApplicationType;
|
|
458
|
+
discountPercentage?: Prisma.FloatNullableFilter<"DiscountCode"> | number | null;
|
|
459
|
+
discountAmount?: Prisma.FloatNullableFilter<"DiscountCode"> | number | null;
|
|
460
|
+
productIds?: Prisma.BigIntNullableListFilter<"DiscountCode">;
|
|
461
|
+
productVariantIds?: Prisma.BigIntNullableListFilter<"DiscountCode">;
|
|
462
|
+
categoryIds?: Prisma.BigIntNullableListFilter<"DiscountCode">;
|
|
463
|
+
collectionIds?: Prisma.BigIntNullableListFilter<"DiscountCode">;
|
|
464
|
+
buyXId?: Prisma.BigIntNullableFilter<"DiscountCode"> | bigint | number | null;
|
|
465
|
+
buyXAmount?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
466
|
+
buyXQty?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
467
|
+
buyXTargetType?: Prisma.EnumDiscountTargetTypeNullableFilter<"DiscountCode"> | $Enums.DiscountTargetType | null;
|
|
468
|
+
getYId?: Prisma.BigIntNullableFilter<"DiscountCode"> | bigint | number | null;
|
|
469
|
+
getYAmount?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
470
|
+
getYQty?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
471
|
+
getYTargetType?: Prisma.EnumDiscountTargetTypeNullableFilter<"DiscountCode"> | $Enums.DiscountTargetType | null;
|
|
472
|
+
redemptions?: Prisma.DiscountCodeRedemptionListRelationFilter;
|
|
473
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartListRelationFilter;
|
|
474
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartListRelationFilter;
|
|
475
|
+
cartLine?: Prisma.CartLineListRelationFilter;
|
|
476
|
+
};
|
|
477
|
+
export type DiscountCodeOrderByWithRelationInput = {
|
|
478
|
+
id?: Prisma.SortOrder;
|
|
479
|
+
code?: Prisma.SortOrder;
|
|
480
|
+
name?: Prisma.SortOrder;
|
|
481
|
+
message?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
482
|
+
createdAt?: Prisma.SortOrder;
|
|
483
|
+
updatedAt?: Prisma.SortOrder;
|
|
484
|
+
platformId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
485
|
+
storeIds?: Prisma.SortOrder;
|
|
486
|
+
isActive?: Prisma.SortOrder;
|
|
487
|
+
startDate?: Prisma.SortOrder;
|
|
488
|
+
expiryDate?: Prisma.SortOrder;
|
|
489
|
+
isGlobal?: Prisma.SortOrder;
|
|
490
|
+
maxGlobalRedemptions?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
491
|
+
maxRedemptionsPerUser?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
492
|
+
maxRedemptionsPerCart?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
493
|
+
minCartValue?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
494
|
+
customerOnly?: Prisma.SortOrder;
|
|
495
|
+
activeDays?: Prisma.SortOrder;
|
|
496
|
+
activeWeeks?: Prisma.SortOrder;
|
|
497
|
+
timeStart?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
498
|
+
timeEnd?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
499
|
+
timezone?: Prisma.SortOrder;
|
|
500
|
+
discountType?: Prisma.SortOrder;
|
|
501
|
+
discountApplicationType?: Prisma.SortOrder;
|
|
502
|
+
discountPercentage?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
503
|
+
discountAmount?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
504
|
+
productIds?: Prisma.SortOrder;
|
|
505
|
+
productVariantIds?: Prisma.SortOrder;
|
|
506
|
+
categoryIds?: Prisma.SortOrder;
|
|
507
|
+
collectionIds?: Prisma.SortOrder;
|
|
508
|
+
buyXId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
509
|
+
buyXAmount?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
510
|
+
buyXQty?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
511
|
+
buyXTargetType?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
512
|
+
getYId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
513
|
+
getYAmount?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
514
|
+
getYQty?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
515
|
+
getYTargetType?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
516
|
+
redemptions?: Prisma.DiscountCodeRedemptionOrderByRelationAggregateInput;
|
|
517
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartOrderByRelationAggregateInput;
|
|
518
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartOrderByRelationAggregateInput;
|
|
519
|
+
cartLine?: Prisma.CartLineOrderByRelationAggregateInput;
|
|
520
|
+
_relevance?: Prisma.DiscountCodeOrderByRelevanceInput;
|
|
521
|
+
};
|
|
522
|
+
export type DiscountCodeWhereUniqueInput = Prisma.AtLeast<{
|
|
523
|
+
id?: bigint | number;
|
|
524
|
+
platformId_code?: Prisma.DiscountCodePlatformIdCodeCompoundUniqueInput;
|
|
525
|
+
AND?: Prisma.DiscountCodeWhereInput | Prisma.DiscountCodeWhereInput[];
|
|
526
|
+
OR?: Prisma.DiscountCodeWhereInput[];
|
|
527
|
+
NOT?: Prisma.DiscountCodeWhereInput | Prisma.DiscountCodeWhereInput[];
|
|
528
|
+
code?: Prisma.StringFilter<"DiscountCode"> | string;
|
|
529
|
+
name?: Prisma.StringFilter<"DiscountCode"> | string;
|
|
530
|
+
message?: Prisma.StringNullableFilter<"DiscountCode"> | string | null;
|
|
531
|
+
createdAt?: Prisma.DateTimeFilter<"DiscountCode"> | Date | string;
|
|
532
|
+
updatedAt?: Prisma.DateTimeFilter<"DiscountCode"> | Date | string;
|
|
533
|
+
platformId?: Prisma.StringNullableFilter<"DiscountCode"> | string | null;
|
|
534
|
+
storeIds?: Prisma.StringNullableListFilter<"DiscountCode">;
|
|
535
|
+
isActive?: Prisma.BoolFilter<"DiscountCode"> | boolean;
|
|
536
|
+
startDate?: Prisma.DateTimeFilter<"DiscountCode"> | Date | string;
|
|
537
|
+
expiryDate?: Prisma.DateTimeFilter<"DiscountCode"> | Date | string;
|
|
538
|
+
isGlobal?: Prisma.BoolFilter<"DiscountCode"> | boolean;
|
|
539
|
+
maxGlobalRedemptions?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
540
|
+
maxRedemptionsPerUser?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
541
|
+
maxRedemptionsPerCart?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
542
|
+
minCartValue?: Prisma.FloatNullableFilter<"DiscountCode"> | number | null;
|
|
543
|
+
customerOnly?: Prisma.BoolFilter<"DiscountCode"> | boolean;
|
|
544
|
+
activeDays?: Prisma.EnumActiveDaysNullableListFilter<"DiscountCode">;
|
|
545
|
+
activeWeeks?: Prisma.EnumActiveWeeksNullableListFilter<"DiscountCode">;
|
|
546
|
+
timeStart?: Prisma.DateTimeNullableFilter<"DiscountCode"> | Date | string | null;
|
|
547
|
+
timeEnd?: Prisma.DateTimeNullableFilter<"DiscountCode"> | Date | string | null;
|
|
548
|
+
timezone?: Prisma.EnumTimezoneFilter<"DiscountCode"> | $Enums.Timezone;
|
|
549
|
+
discountType?: Prisma.EnumDiscountTypeFilter<"DiscountCode"> | $Enums.DiscountType;
|
|
550
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFilter<"DiscountCode"> | $Enums.DiscountApplicationType;
|
|
551
|
+
discountPercentage?: Prisma.FloatNullableFilter<"DiscountCode"> | number | null;
|
|
552
|
+
discountAmount?: Prisma.FloatNullableFilter<"DiscountCode"> | number | null;
|
|
553
|
+
productIds?: Prisma.BigIntNullableListFilter<"DiscountCode">;
|
|
554
|
+
productVariantIds?: Prisma.BigIntNullableListFilter<"DiscountCode">;
|
|
555
|
+
categoryIds?: Prisma.BigIntNullableListFilter<"DiscountCode">;
|
|
556
|
+
collectionIds?: Prisma.BigIntNullableListFilter<"DiscountCode">;
|
|
557
|
+
buyXId?: Prisma.BigIntNullableFilter<"DiscountCode"> | bigint | number | null;
|
|
558
|
+
buyXAmount?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
559
|
+
buyXQty?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
560
|
+
buyXTargetType?: Prisma.EnumDiscountTargetTypeNullableFilter<"DiscountCode"> | $Enums.DiscountTargetType | null;
|
|
561
|
+
getYId?: Prisma.BigIntNullableFilter<"DiscountCode"> | bigint | number | null;
|
|
562
|
+
getYAmount?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
563
|
+
getYQty?: Prisma.IntNullableFilter<"DiscountCode"> | number | null;
|
|
564
|
+
getYTargetType?: Prisma.EnumDiscountTargetTypeNullableFilter<"DiscountCode"> | $Enums.DiscountTargetType | null;
|
|
565
|
+
redemptions?: Prisma.DiscountCodeRedemptionListRelationFilter;
|
|
566
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartListRelationFilter;
|
|
567
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartListRelationFilter;
|
|
568
|
+
cartLine?: Prisma.CartLineListRelationFilter;
|
|
569
|
+
}, "id" | "platformId_code">;
|
|
570
|
+
export type DiscountCodeOrderByWithAggregationInput = {
|
|
571
|
+
id?: Prisma.SortOrder;
|
|
572
|
+
code?: Prisma.SortOrder;
|
|
573
|
+
name?: Prisma.SortOrder;
|
|
574
|
+
message?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
575
|
+
createdAt?: Prisma.SortOrder;
|
|
576
|
+
updatedAt?: Prisma.SortOrder;
|
|
577
|
+
platformId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
578
|
+
storeIds?: Prisma.SortOrder;
|
|
579
|
+
isActive?: Prisma.SortOrder;
|
|
580
|
+
startDate?: Prisma.SortOrder;
|
|
581
|
+
expiryDate?: Prisma.SortOrder;
|
|
582
|
+
isGlobal?: Prisma.SortOrder;
|
|
583
|
+
maxGlobalRedemptions?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
584
|
+
maxRedemptionsPerUser?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
585
|
+
maxRedemptionsPerCart?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
586
|
+
minCartValue?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
587
|
+
customerOnly?: Prisma.SortOrder;
|
|
588
|
+
activeDays?: Prisma.SortOrder;
|
|
589
|
+
activeWeeks?: Prisma.SortOrder;
|
|
590
|
+
timeStart?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
591
|
+
timeEnd?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
592
|
+
timezone?: Prisma.SortOrder;
|
|
593
|
+
discountType?: Prisma.SortOrder;
|
|
594
|
+
discountApplicationType?: Prisma.SortOrder;
|
|
595
|
+
discountPercentage?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
596
|
+
discountAmount?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
597
|
+
productIds?: Prisma.SortOrder;
|
|
598
|
+
productVariantIds?: Prisma.SortOrder;
|
|
599
|
+
categoryIds?: Prisma.SortOrder;
|
|
600
|
+
collectionIds?: Prisma.SortOrder;
|
|
601
|
+
buyXId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
602
|
+
buyXAmount?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
603
|
+
buyXQty?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
604
|
+
buyXTargetType?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
605
|
+
getYId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
606
|
+
getYAmount?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
607
|
+
getYQty?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
608
|
+
getYTargetType?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
609
|
+
_count?: Prisma.DiscountCodeCountOrderByAggregateInput;
|
|
610
|
+
_avg?: Prisma.DiscountCodeAvgOrderByAggregateInput;
|
|
611
|
+
_max?: Prisma.DiscountCodeMaxOrderByAggregateInput;
|
|
612
|
+
_min?: Prisma.DiscountCodeMinOrderByAggregateInput;
|
|
613
|
+
_sum?: Prisma.DiscountCodeSumOrderByAggregateInput;
|
|
614
|
+
};
|
|
615
|
+
export type DiscountCodeScalarWhereWithAggregatesInput = {
|
|
616
|
+
AND?: Prisma.DiscountCodeScalarWhereWithAggregatesInput | Prisma.DiscountCodeScalarWhereWithAggregatesInput[];
|
|
617
|
+
OR?: Prisma.DiscountCodeScalarWhereWithAggregatesInput[];
|
|
618
|
+
NOT?: Prisma.DiscountCodeScalarWhereWithAggregatesInput | Prisma.DiscountCodeScalarWhereWithAggregatesInput[];
|
|
619
|
+
id?: Prisma.BigIntWithAggregatesFilter<"DiscountCode"> | bigint | number;
|
|
620
|
+
code?: Prisma.StringWithAggregatesFilter<"DiscountCode"> | string;
|
|
621
|
+
name?: Prisma.StringWithAggregatesFilter<"DiscountCode"> | string;
|
|
622
|
+
message?: Prisma.StringNullableWithAggregatesFilter<"DiscountCode"> | string | null;
|
|
623
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"DiscountCode"> | Date | string;
|
|
624
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DiscountCode"> | Date | string;
|
|
625
|
+
platformId?: Prisma.StringNullableWithAggregatesFilter<"DiscountCode"> | string | null;
|
|
626
|
+
storeIds?: Prisma.StringNullableListFilter<"DiscountCode">;
|
|
627
|
+
isActive?: Prisma.BoolWithAggregatesFilter<"DiscountCode"> | boolean;
|
|
628
|
+
startDate?: Prisma.DateTimeWithAggregatesFilter<"DiscountCode"> | Date | string;
|
|
629
|
+
expiryDate?: Prisma.DateTimeWithAggregatesFilter<"DiscountCode"> | Date | string;
|
|
630
|
+
isGlobal?: Prisma.BoolWithAggregatesFilter<"DiscountCode"> | boolean;
|
|
631
|
+
maxGlobalRedemptions?: Prisma.IntNullableWithAggregatesFilter<"DiscountCode"> | number | null;
|
|
632
|
+
maxRedemptionsPerUser?: Prisma.IntNullableWithAggregatesFilter<"DiscountCode"> | number | null;
|
|
633
|
+
maxRedemptionsPerCart?: Prisma.IntNullableWithAggregatesFilter<"DiscountCode"> | number | null;
|
|
634
|
+
minCartValue?: Prisma.FloatNullableWithAggregatesFilter<"DiscountCode"> | number | null;
|
|
635
|
+
customerOnly?: Prisma.BoolWithAggregatesFilter<"DiscountCode"> | boolean;
|
|
636
|
+
activeDays?: Prisma.EnumActiveDaysNullableListFilter<"DiscountCode">;
|
|
637
|
+
activeWeeks?: Prisma.EnumActiveWeeksNullableListFilter<"DiscountCode">;
|
|
638
|
+
timeStart?: Prisma.DateTimeNullableWithAggregatesFilter<"DiscountCode"> | Date | string | null;
|
|
639
|
+
timeEnd?: Prisma.DateTimeNullableWithAggregatesFilter<"DiscountCode"> | Date | string | null;
|
|
640
|
+
timezone?: Prisma.EnumTimezoneWithAggregatesFilter<"DiscountCode"> | $Enums.Timezone;
|
|
641
|
+
discountType?: Prisma.EnumDiscountTypeWithAggregatesFilter<"DiscountCode"> | $Enums.DiscountType;
|
|
642
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeWithAggregatesFilter<"DiscountCode"> | $Enums.DiscountApplicationType;
|
|
643
|
+
discountPercentage?: Prisma.FloatNullableWithAggregatesFilter<"DiscountCode"> | number | null;
|
|
644
|
+
discountAmount?: Prisma.FloatNullableWithAggregatesFilter<"DiscountCode"> | number | null;
|
|
645
|
+
productIds?: Prisma.BigIntNullableListFilter<"DiscountCode">;
|
|
646
|
+
productVariantIds?: Prisma.BigIntNullableListFilter<"DiscountCode">;
|
|
647
|
+
categoryIds?: Prisma.BigIntNullableListFilter<"DiscountCode">;
|
|
648
|
+
collectionIds?: Prisma.BigIntNullableListFilter<"DiscountCode">;
|
|
649
|
+
buyXId?: Prisma.BigIntNullableWithAggregatesFilter<"DiscountCode"> | bigint | number | null;
|
|
650
|
+
buyXAmount?: Prisma.IntNullableWithAggregatesFilter<"DiscountCode"> | number | null;
|
|
651
|
+
buyXQty?: Prisma.IntNullableWithAggregatesFilter<"DiscountCode"> | number | null;
|
|
652
|
+
buyXTargetType?: Prisma.EnumDiscountTargetTypeNullableWithAggregatesFilter<"DiscountCode"> | $Enums.DiscountTargetType | null;
|
|
653
|
+
getYId?: Prisma.BigIntNullableWithAggregatesFilter<"DiscountCode"> | bigint | number | null;
|
|
654
|
+
getYAmount?: Prisma.IntNullableWithAggregatesFilter<"DiscountCode"> | number | null;
|
|
655
|
+
getYQty?: Prisma.IntNullableWithAggregatesFilter<"DiscountCode"> | number | null;
|
|
656
|
+
getYTargetType?: Prisma.EnumDiscountTargetTypeNullableWithAggregatesFilter<"DiscountCode"> | $Enums.DiscountTargetType | null;
|
|
657
|
+
};
|
|
658
|
+
export type DiscountCodeCreateInput = {
|
|
659
|
+
id?: bigint | number;
|
|
660
|
+
code: string;
|
|
661
|
+
name: string;
|
|
662
|
+
message?: string | null;
|
|
663
|
+
createdAt?: Date | string;
|
|
664
|
+
updatedAt?: Date | string;
|
|
665
|
+
platformId?: string | null;
|
|
666
|
+
storeIds?: Prisma.DiscountCodeCreatestoreIdsInput | string[];
|
|
667
|
+
isActive?: boolean;
|
|
668
|
+
startDate: Date | string;
|
|
669
|
+
expiryDate: Date | string;
|
|
670
|
+
isGlobal?: boolean;
|
|
671
|
+
maxGlobalRedemptions?: number | null;
|
|
672
|
+
maxRedemptionsPerUser?: number | null;
|
|
673
|
+
maxRedemptionsPerCart?: number | null;
|
|
674
|
+
minCartValue?: number | null;
|
|
675
|
+
customerOnly?: boolean;
|
|
676
|
+
activeDays?: Prisma.DiscountCodeCreateactiveDaysInput | $Enums.ActiveDays[];
|
|
677
|
+
activeWeeks?: Prisma.DiscountCodeCreateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
678
|
+
timeStart?: Date | string | null;
|
|
679
|
+
timeEnd?: Date | string | null;
|
|
680
|
+
timezone?: $Enums.Timezone;
|
|
681
|
+
discountType?: $Enums.DiscountType;
|
|
682
|
+
discountApplicationType?: $Enums.DiscountApplicationType;
|
|
683
|
+
discountPercentage?: number | null;
|
|
684
|
+
discountAmount?: number | null;
|
|
685
|
+
productIds?: Prisma.DiscountCodeCreateproductIdsInput | bigint[] | number[];
|
|
686
|
+
productVariantIds?: Prisma.DiscountCodeCreateproductVariantIdsInput | bigint[] | number[];
|
|
687
|
+
categoryIds?: Prisma.DiscountCodeCreatecategoryIdsInput | bigint[] | number[];
|
|
688
|
+
collectionIds?: Prisma.DiscountCodeCreatecollectionIdsInput | bigint[] | number[];
|
|
689
|
+
buyXId?: bigint | number | null;
|
|
690
|
+
buyXAmount?: number | null;
|
|
691
|
+
buyXQty?: number | null;
|
|
692
|
+
buyXTargetType?: $Enums.DiscountTargetType | null;
|
|
693
|
+
getYId?: bigint | number | null;
|
|
694
|
+
getYAmount?: number | null;
|
|
695
|
+
getYQty?: number | null;
|
|
696
|
+
getYTargetType?: $Enums.DiscountTargetType | null;
|
|
697
|
+
redemptions?: Prisma.DiscountCodeRedemptionCreateNestedManyWithoutDiscountCodeInput;
|
|
698
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartCreateNestedManyWithoutDiscountCodeInput;
|
|
699
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutDiscountCodeInput;
|
|
700
|
+
cartLine?: Prisma.CartLineCreateNestedManyWithoutDiscountCodeInput;
|
|
701
|
+
};
|
|
702
|
+
export type DiscountCodeUncheckedCreateInput = {
|
|
703
|
+
id?: bigint | number;
|
|
704
|
+
code: string;
|
|
705
|
+
name: string;
|
|
706
|
+
message?: string | null;
|
|
707
|
+
createdAt?: Date | string;
|
|
708
|
+
updatedAt?: Date | string;
|
|
709
|
+
platformId?: string | null;
|
|
710
|
+
storeIds?: Prisma.DiscountCodeCreatestoreIdsInput | string[];
|
|
711
|
+
isActive?: boolean;
|
|
712
|
+
startDate: Date | string;
|
|
713
|
+
expiryDate: Date | string;
|
|
714
|
+
isGlobal?: boolean;
|
|
715
|
+
maxGlobalRedemptions?: number | null;
|
|
716
|
+
maxRedemptionsPerUser?: number | null;
|
|
717
|
+
maxRedemptionsPerCart?: number | null;
|
|
718
|
+
minCartValue?: number | null;
|
|
719
|
+
customerOnly?: boolean;
|
|
720
|
+
activeDays?: Prisma.DiscountCodeCreateactiveDaysInput | $Enums.ActiveDays[];
|
|
721
|
+
activeWeeks?: Prisma.DiscountCodeCreateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
722
|
+
timeStart?: Date | string | null;
|
|
723
|
+
timeEnd?: Date | string | null;
|
|
724
|
+
timezone?: $Enums.Timezone;
|
|
725
|
+
discountType?: $Enums.DiscountType;
|
|
726
|
+
discountApplicationType?: $Enums.DiscountApplicationType;
|
|
727
|
+
discountPercentage?: number | null;
|
|
728
|
+
discountAmount?: number | null;
|
|
729
|
+
productIds?: Prisma.DiscountCodeCreateproductIdsInput | bigint[] | number[];
|
|
730
|
+
productVariantIds?: Prisma.DiscountCodeCreateproductVariantIdsInput | bigint[] | number[];
|
|
731
|
+
categoryIds?: Prisma.DiscountCodeCreatecategoryIdsInput | bigint[] | number[];
|
|
732
|
+
collectionIds?: Prisma.DiscountCodeCreatecollectionIdsInput | bigint[] | number[];
|
|
733
|
+
buyXId?: bigint | number | null;
|
|
734
|
+
buyXAmount?: number | null;
|
|
735
|
+
buyXQty?: number | null;
|
|
736
|
+
buyXTargetType?: $Enums.DiscountTargetType | null;
|
|
737
|
+
getYId?: bigint | number | null;
|
|
738
|
+
getYAmount?: number | null;
|
|
739
|
+
getYQty?: number | null;
|
|
740
|
+
getYTargetType?: $Enums.DiscountTargetType | null;
|
|
741
|
+
redemptions?: Prisma.DiscountCodeRedemptionUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
742
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
743
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
744
|
+
cartLine?: Prisma.CartLineUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
745
|
+
};
|
|
746
|
+
export type DiscountCodeUpdateInput = {
|
|
747
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
748
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
749
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
750
|
+
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
751
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
752
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
753
|
+
platformId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
754
|
+
storeIds?: Prisma.DiscountCodeUpdatestoreIdsInput | string[];
|
|
755
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
756
|
+
startDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
757
|
+
expiryDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
758
|
+
isGlobal?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
759
|
+
maxGlobalRedemptions?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
760
|
+
maxRedemptionsPerUser?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
761
|
+
maxRedemptionsPerCart?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
762
|
+
minCartValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
763
|
+
customerOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
764
|
+
activeDays?: Prisma.DiscountCodeUpdateactiveDaysInput | $Enums.ActiveDays[];
|
|
765
|
+
activeWeeks?: Prisma.DiscountCodeUpdateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
766
|
+
timeStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
767
|
+
timeEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
768
|
+
timezone?: Prisma.EnumTimezoneFieldUpdateOperationsInput | $Enums.Timezone;
|
|
769
|
+
discountType?: Prisma.EnumDiscountTypeFieldUpdateOperationsInput | $Enums.DiscountType;
|
|
770
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFieldUpdateOperationsInput | $Enums.DiscountApplicationType;
|
|
771
|
+
discountPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
772
|
+
discountAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
773
|
+
productIds?: Prisma.DiscountCodeUpdateproductIdsInput | bigint[] | number[];
|
|
774
|
+
productVariantIds?: Prisma.DiscountCodeUpdateproductVariantIdsInput | bigint[] | number[];
|
|
775
|
+
categoryIds?: Prisma.DiscountCodeUpdatecategoryIdsInput | bigint[] | number[];
|
|
776
|
+
collectionIds?: Prisma.DiscountCodeUpdatecollectionIdsInput | bigint[] | number[];
|
|
777
|
+
buyXId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
778
|
+
buyXAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
779
|
+
buyXQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
780
|
+
buyXTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
781
|
+
getYId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
782
|
+
getYAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
783
|
+
getYQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
784
|
+
getYTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
785
|
+
redemptions?: Prisma.DiscountCodeRedemptionUpdateManyWithoutDiscountCodeNestedInput;
|
|
786
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartUpdateManyWithoutDiscountCodeNestedInput;
|
|
787
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutDiscountCodeNestedInput;
|
|
788
|
+
cartLine?: Prisma.CartLineUpdateManyWithoutDiscountCodeNestedInput;
|
|
789
|
+
};
|
|
790
|
+
export type DiscountCodeUncheckedUpdateInput = {
|
|
791
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
792
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
793
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
794
|
+
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
795
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
796
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
797
|
+
platformId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
798
|
+
storeIds?: Prisma.DiscountCodeUpdatestoreIdsInput | string[];
|
|
799
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
800
|
+
startDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
801
|
+
expiryDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
802
|
+
isGlobal?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
803
|
+
maxGlobalRedemptions?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
804
|
+
maxRedemptionsPerUser?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
805
|
+
maxRedemptionsPerCart?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
806
|
+
minCartValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
807
|
+
customerOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
808
|
+
activeDays?: Prisma.DiscountCodeUpdateactiveDaysInput | $Enums.ActiveDays[];
|
|
809
|
+
activeWeeks?: Prisma.DiscountCodeUpdateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
810
|
+
timeStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
811
|
+
timeEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
812
|
+
timezone?: Prisma.EnumTimezoneFieldUpdateOperationsInput | $Enums.Timezone;
|
|
813
|
+
discountType?: Prisma.EnumDiscountTypeFieldUpdateOperationsInput | $Enums.DiscountType;
|
|
814
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFieldUpdateOperationsInput | $Enums.DiscountApplicationType;
|
|
815
|
+
discountPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
816
|
+
discountAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
817
|
+
productIds?: Prisma.DiscountCodeUpdateproductIdsInput | bigint[] | number[];
|
|
818
|
+
productVariantIds?: Prisma.DiscountCodeUpdateproductVariantIdsInput | bigint[] | number[];
|
|
819
|
+
categoryIds?: Prisma.DiscountCodeUpdatecategoryIdsInput | bigint[] | number[];
|
|
820
|
+
collectionIds?: Prisma.DiscountCodeUpdatecollectionIdsInput | bigint[] | number[];
|
|
821
|
+
buyXId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
822
|
+
buyXAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
823
|
+
buyXQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
824
|
+
buyXTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
825
|
+
getYId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
826
|
+
getYAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
827
|
+
getYQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
828
|
+
getYTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
829
|
+
redemptions?: Prisma.DiscountCodeRedemptionUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
830
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
831
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
832
|
+
cartLine?: Prisma.CartLineUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
833
|
+
};
|
|
834
|
+
export type DiscountCodeCreateManyInput = {
|
|
835
|
+
id?: bigint | number;
|
|
836
|
+
code: string;
|
|
837
|
+
name: string;
|
|
838
|
+
message?: string | null;
|
|
839
|
+
createdAt?: Date | string;
|
|
840
|
+
updatedAt?: Date | string;
|
|
841
|
+
platformId?: string | null;
|
|
842
|
+
storeIds?: Prisma.DiscountCodeCreatestoreIdsInput | string[];
|
|
843
|
+
isActive?: boolean;
|
|
844
|
+
startDate: Date | string;
|
|
845
|
+
expiryDate: Date | string;
|
|
846
|
+
isGlobal?: boolean;
|
|
847
|
+
maxGlobalRedemptions?: number | null;
|
|
848
|
+
maxRedemptionsPerUser?: number | null;
|
|
849
|
+
maxRedemptionsPerCart?: number | null;
|
|
850
|
+
minCartValue?: number | null;
|
|
851
|
+
customerOnly?: boolean;
|
|
852
|
+
activeDays?: Prisma.DiscountCodeCreateactiveDaysInput | $Enums.ActiveDays[];
|
|
853
|
+
activeWeeks?: Prisma.DiscountCodeCreateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
854
|
+
timeStart?: Date | string | null;
|
|
855
|
+
timeEnd?: Date | string | null;
|
|
856
|
+
timezone?: $Enums.Timezone;
|
|
857
|
+
discountType?: $Enums.DiscountType;
|
|
858
|
+
discountApplicationType?: $Enums.DiscountApplicationType;
|
|
859
|
+
discountPercentage?: number | null;
|
|
860
|
+
discountAmount?: number | null;
|
|
861
|
+
productIds?: Prisma.DiscountCodeCreateproductIdsInput | bigint[] | number[];
|
|
862
|
+
productVariantIds?: Prisma.DiscountCodeCreateproductVariantIdsInput | bigint[] | number[];
|
|
863
|
+
categoryIds?: Prisma.DiscountCodeCreatecategoryIdsInput | bigint[] | number[];
|
|
864
|
+
collectionIds?: Prisma.DiscountCodeCreatecollectionIdsInput | bigint[] | number[];
|
|
865
|
+
buyXId?: bigint | number | null;
|
|
866
|
+
buyXAmount?: number | null;
|
|
867
|
+
buyXQty?: number | null;
|
|
868
|
+
buyXTargetType?: $Enums.DiscountTargetType | null;
|
|
869
|
+
getYId?: bigint | number | null;
|
|
870
|
+
getYAmount?: number | null;
|
|
871
|
+
getYQty?: number | null;
|
|
872
|
+
getYTargetType?: $Enums.DiscountTargetType | null;
|
|
873
|
+
};
|
|
874
|
+
export type DiscountCodeUpdateManyMutationInput = {
|
|
875
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
876
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
877
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
878
|
+
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
879
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
880
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
881
|
+
platformId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
882
|
+
storeIds?: Prisma.DiscountCodeUpdatestoreIdsInput | string[];
|
|
883
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
884
|
+
startDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
885
|
+
expiryDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
886
|
+
isGlobal?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
887
|
+
maxGlobalRedemptions?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
888
|
+
maxRedemptionsPerUser?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
889
|
+
maxRedemptionsPerCart?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
890
|
+
minCartValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
891
|
+
customerOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
892
|
+
activeDays?: Prisma.DiscountCodeUpdateactiveDaysInput | $Enums.ActiveDays[];
|
|
893
|
+
activeWeeks?: Prisma.DiscountCodeUpdateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
894
|
+
timeStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
895
|
+
timeEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
896
|
+
timezone?: Prisma.EnumTimezoneFieldUpdateOperationsInput | $Enums.Timezone;
|
|
897
|
+
discountType?: Prisma.EnumDiscountTypeFieldUpdateOperationsInput | $Enums.DiscountType;
|
|
898
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFieldUpdateOperationsInput | $Enums.DiscountApplicationType;
|
|
899
|
+
discountPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
900
|
+
discountAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
901
|
+
productIds?: Prisma.DiscountCodeUpdateproductIdsInput | bigint[] | number[];
|
|
902
|
+
productVariantIds?: Prisma.DiscountCodeUpdateproductVariantIdsInput | bigint[] | number[];
|
|
903
|
+
categoryIds?: Prisma.DiscountCodeUpdatecategoryIdsInput | bigint[] | number[];
|
|
904
|
+
collectionIds?: Prisma.DiscountCodeUpdatecollectionIdsInput | bigint[] | number[];
|
|
905
|
+
buyXId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
906
|
+
buyXAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
907
|
+
buyXQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
908
|
+
buyXTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
909
|
+
getYId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
910
|
+
getYAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
911
|
+
getYQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
912
|
+
getYTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
913
|
+
};
|
|
914
|
+
export type DiscountCodeUncheckedUpdateManyInput = {
|
|
915
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
916
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
917
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
918
|
+
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
919
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
920
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
921
|
+
platformId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
922
|
+
storeIds?: Prisma.DiscountCodeUpdatestoreIdsInput | string[];
|
|
923
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
924
|
+
startDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
925
|
+
expiryDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
926
|
+
isGlobal?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
927
|
+
maxGlobalRedemptions?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
928
|
+
maxRedemptionsPerUser?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
929
|
+
maxRedemptionsPerCart?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
930
|
+
minCartValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
931
|
+
customerOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
932
|
+
activeDays?: Prisma.DiscountCodeUpdateactiveDaysInput | $Enums.ActiveDays[];
|
|
933
|
+
activeWeeks?: Prisma.DiscountCodeUpdateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
934
|
+
timeStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
935
|
+
timeEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
936
|
+
timezone?: Prisma.EnumTimezoneFieldUpdateOperationsInput | $Enums.Timezone;
|
|
937
|
+
discountType?: Prisma.EnumDiscountTypeFieldUpdateOperationsInput | $Enums.DiscountType;
|
|
938
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFieldUpdateOperationsInput | $Enums.DiscountApplicationType;
|
|
939
|
+
discountPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
940
|
+
discountAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
941
|
+
productIds?: Prisma.DiscountCodeUpdateproductIdsInput | bigint[] | number[];
|
|
942
|
+
productVariantIds?: Prisma.DiscountCodeUpdateproductVariantIdsInput | bigint[] | number[];
|
|
943
|
+
categoryIds?: Prisma.DiscountCodeUpdatecategoryIdsInput | bigint[] | number[];
|
|
944
|
+
collectionIds?: Prisma.DiscountCodeUpdatecollectionIdsInput | bigint[] | number[];
|
|
945
|
+
buyXId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
946
|
+
buyXAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
947
|
+
buyXQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
948
|
+
buyXTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
949
|
+
getYId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
950
|
+
getYAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
951
|
+
getYQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
952
|
+
getYTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
953
|
+
};
|
|
954
|
+
export type DiscountCodeNullableScalarRelationFilter = {
|
|
955
|
+
is?: Prisma.DiscountCodeWhereInput | null;
|
|
956
|
+
isNot?: Prisma.DiscountCodeWhereInput | null;
|
|
957
|
+
};
|
|
958
|
+
export type DiscountCodeScalarRelationFilter = {
|
|
959
|
+
is?: Prisma.DiscountCodeWhereInput;
|
|
960
|
+
isNot?: Prisma.DiscountCodeWhereInput;
|
|
961
|
+
};
|
|
962
|
+
export type EnumActiveDaysNullableListFilter<$PrismaModel = never> = {
|
|
963
|
+
equals?: $Enums.ActiveDays[] | Prisma.ListEnumActiveDaysFieldRefInput<$PrismaModel> | null;
|
|
964
|
+
has?: $Enums.ActiveDays | Prisma.EnumActiveDaysFieldRefInput<$PrismaModel> | null;
|
|
965
|
+
hasEvery?: $Enums.ActiveDays[] | Prisma.ListEnumActiveDaysFieldRefInput<$PrismaModel>;
|
|
966
|
+
hasSome?: $Enums.ActiveDays[] | Prisma.ListEnumActiveDaysFieldRefInput<$PrismaModel>;
|
|
967
|
+
isEmpty?: boolean;
|
|
968
|
+
};
|
|
969
|
+
export type EnumActiveWeeksNullableListFilter<$PrismaModel = never> = {
|
|
970
|
+
equals?: $Enums.ActiveWeeks[] | Prisma.ListEnumActiveWeeksFieldRefInput<$PrismaModel> | null;
|
|
971
|
+
has?: $Enums.ActiveWeeks | Prisma.EnumActiveWeeksFieldRefInput<$PrismaModel> | null;
|
|
972
|
+
hasEvery?: $Enums.ActiveWeeks[] | Prisma.ListEnumActiveWeeksFieldRefInput<$PrismaModel>;
|
|
973
|
+
hasSome?: $Enums.ActiveWeeks[] | Prisma.ListEnumActiveWeeksFieldRefInput<$PrismaModel>;
|
|
974
|
+
isEmpty?: boolean;
|
|
975
|
+
};
|
|
976
|
+
export type BigIntNullableListFilter<$PrismaModel = never> = {
|
|
977
|
+
equals?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel> | null;
|
|
978
|
+
has?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null;
|
|
979
|
+
hasEvery?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>;
|
|
980
|
+
hasSome?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>;
|
|
981
|
+
isEmpty?: boolean;
|
|
982
|
+
};
|
|
983
|
+
export type DiscountCodeOrderByRelevanceInput = {
|
|
984
|
+
fields: Prisma.DiscountCodeOrderByRelevanceFieldEnum | Prisma.DiscountCodeOrderByRelevanceFieldEnum[];
|
|
985
|
+
sort: Prisma.SortOrder;
|
|
986
|
+
search: string;
|
|
987
|
+
};
|
|
988
|
+
export type DiscountCodePlatformIdCodeCompoundUniqueInput = {
|
|
989
|
+
platformId: string;
|
|
990
|
+
code: string;
|
|
991
|
+
};
|
|
992
|
+
export type DiscountCodeCountOrderByAggregateInput = {
|
|
993
|
+
id?: Prisma.SortOrder;
|
|
994
|
+
code?: Prisma.SortOrder;
|
|
995
|
+
name?: Prisma.SortOrder;
|
|
996
|
+
message?: Prisma.SortOrder;
|
|
997
|
+
createdAt?: Prisma.SortOrder;
|
|
998
|
+
updatedAt?: Prisma.SortOrder;
|
|
999
|
+
platformId?: Prisma.SortOrder;
|
|
1000
|
+
storeIds?: Prisma.SortOrder;
|
|
1001
|
+
isActive?: Prisma.SortOrder;
|
|
1002
|
+
startDate?: Prisma.SortOrder;
|
|
1003
|
+
expiryDate?: Prisma.SortOrder;
|
|
1004
|
+
isGlobal?: Prisma.SortOrder;
|
|
1005
|
+
maxGlobalRedemptions?: Prisma.SortOrder;
|
|
1006
|
+
maxRedemptionsPerUser?: Prisma.SortOrder;
|
|
1007
|
+
maxRedemptionsPerCart?: Prisma.SortOrder;
|
|
1008
|
+
minCartValue?: Prisma.SortOrder;
|
|
1009
|
+
customerOnly?: Prisma.SortOrder;
|
|
1010
|
+
activeDays?: Prisma.SortOrder;
|
|
1011
|
+
activeWeeks?: Prisma.SortOrder;
|
|
1012
|
+
timeStart?: Prisma.SortOrder;
|
|
1013
|
+
timeEnd?: Prisma.SortOrder;
|
|
1014
|
+
timezone?: Prisma.SortOrder;
|
|
1015
|
+
discountType?: Prisma.SortOrder;
|
|
1016
|
+
discountApplicationType?: Prisma.SortOrder;
|
|
1017
|
+
discountPercentage?: Prisma.SortOrder;
|
|
1018
|
+
discountAmount?: Prisma.SortOrder;
|
|
1019
|
+
productIds?: Prisma.SortOrder;
|
|
1020
|
+
productVariantIds?: Prisma.SortOrder;
|
|
1021
|
+
categoryIds?: Prisma.SortOrder;
|
|
1022
|
+
collectionIds?: Prisma.SortOrder;
|
|
1023
|
+
buyXId?: Prisma.SortOrder;
|
|
1024
|
+
buyXAmount?: Prisma.SortOrder;
|
|
1025
|
+
buyXQty?: Prisma.SortOrder;
|
|
1026
|
+
buyXTargetType?: Prisma.SortOrder;
|
|
1027
|
+
getYId?: Prisma.SortOrder;
|
|
1028
|
+
getYAmount?: Prisma.SortOrder;
|
|
1029
|
+
getYQty?: Prisma.SortOrder;
|
|
1030
|
+
getYTargetType?: Prisma.SortOrder;
|
|
1031
|
+
};
|
|
1032
|
+
export type DiscountCodeAvgOrderByAggregateInput = {
|
|
1033
|
+
id?: Prisma.SortOrder;
|
|
1034
|
+
maxGlobalRedemptions?: Prisma.SortOrder;
|
|
1035
|
+
maxRedemptionsPerUser?: Prisma.SortOrder;
|
|
1036
|
+
maxRedemptionsPerCart?: Prisma.SortOrder;
|
|
1037
|
+
minCartValue?: Prisma.SortOrder;
|
|
1038
|
+
discountPercentage?: Prisma.SortOrder;
|
|
1039
|
+
discountAmount?: Prisma.SortOrder;
|
|
1040
|
+
productIds?: Prisma.SortOrder;
|
|
1041
|
+
productVariantIds?: Prisma.SortOrder;
|
|
1042
|
+
categoryIds?: Prisma.SortOrder;
|
|
1043
|
+
collectionIds?: Prisma.SortOrder;
|
|
1044
|
+
buyXId?: Prisma.SortOrder;
|
|
1045
|
+
buyXAmount?: Prisma.SortOrder;
|
|
1046
|
+
buyXQty?: Prisma.SortOrder;
|
|
1047
|
+
getYId?: Prisma.SortOrder;
|
|
1048
|
+
getYAmount?: Prisma.SortOrder;
|
|
1049
|
+
getYQty?: Prisma.SortOrder;
|
|
1050
|
+
};
|
|
1051
|
+
export type DiscountCodeMaxOrderByAggregateInput = {
|
|
1052
|
+
id?: Prisma.SortOrder;
|
|
1053
|
+
code?: Prisma.SortOrder;
|
|
1054
|
+
name?: Prisma.SortOrder;
|
|
1055
|
+
message?: Prisma.SortOrder;
|
|
1056
|
+
createdAt?: Prisma.SortOrder;
|
|
1057
|
+
updatedAt?: Prisma.SortOrder;
|
|
1058
|
+
platformId?: Prisma.SortOrder;
|
|
1059
|
+
isActive?: Prisma.SortOrder;
|
|
1060
|
+
startDate?: Prisma.SortOrder;
|
|
1061
|
+
expiryDate?: Prisma.SortOrder;
|
|
1062
|
+
isGlobal?: Prisma.SortOrder;
|
|
1063
|
+
maxGlobalRedemptions?: Prisma.SortOrder;
|
|
1064
|
+
maxRedemptionsPerUser?: Prisma.SortOrder;
|
|
1065
|
+
maxRedemptionsPerCart?: Prisma.SortOrder;
|
|
1066
|
+
minCartValue?: Prisma.SortOrder;
|
|
1067
|
+
customerOnly?: Prisma.SortOrder;
|
|
1068
|
+
timeStart?: Prisma.SortOrder;
|
|
1069
|
+
timeEnd?: Prisma.SortOrder;
|
|
1070
|
+
timezone?: Prisma.SortOrder;
|
|
1071
|
+
discountType?: Prisma.SortOrder;
|
|
1072
|
+
discountApplicationType?: Prisma.SortOrder;
|
|
1073
|
+
discountPercentage?: Prisma.SortOrder;
|
|
1074
|
+
discountAmount?: Prisma.SortOrder;
|
|
1075
|
+
buyXId?: Prisma.SortOrder;
|
|
1076
|
+
buyXAmount?: Prisma.SortOrder;
|
|
1077
|
+
buyXQty?: Prisma.SortOrder;
|
|
1078
|
+
buyXTargetType?: Prisma.SortOrder;
|
|
1079
|
+
getYId?: Prisma.SortOrder;
|
|
1080
|
+
getYAmount?: Prisma.SortOrder;
|
|
1081
|
+
getYQty?: Prisma.SortOrder;
|
|
1082
|
+
getYTargetType?: Prisma.SortOrder;
|
|
1083
|
+
};
|
|
1084
|
+
export type DiscountCodeMinOrderByAggregateInput = {
|
|
1085
|
+
id?: Prisma.SortOrder;
|
|
1086
|
+
code?: Prisma.SortOrder;
|
|
1087
|
+
name?: Prisma.SortOrder;
|
|
1088
|
+
message?: Prisma.SortOrder;
|
|
1089
|
+
createdAt?: Prisma.SortOrder;
|
|
1090
|
+
updatedAt?: Prisma.SortOrder;
|
|
1091
|
+
platformId?: Prisma.SortOrder;
|
|
1092
|
+
isActive?: Prisma.SortOrder;
|
|
1093
|
+
startDate?: Prisma.SortOrder;
|
|
1094
|
+
expiryDate?: Prisma.SortOrder;
|
|
1095
|
+
isGlobal?: Prisma.SortOrder;
|
|
1096
|
+
maxGlobalRedemptions?: Prisma.SortOrder;
|
|
1097
|
+
maxRedemptionsPerUser?: Prisma.SortOrder;
|
|
1098
|
+
maxRedemptionsPerCart?: Prisma.SortOrder;
|
|
1099
|
+
minCartValue?: Prisma.SortOrder;
|
|
1100
|
+
customerOnly?: Prisma.SortOrder;
|
|
1101
|
+
timeStart?: Prisma.SortOrder;
|
|
1102
|
+
timeEnd?: Prisma.SortOrder;
|
|
1103
|
+
timezone?: Prisma.SortOrder;
|
|
1104
|
+
discountType?: Prisma.SortOrder;
|
|
1105
|
+
discountApplicationType?: Prisma.SortOrder;
|
|
1106
|
+
discountPercentage?: Prisma.SortOrder;
|
|
1107
|
+
discountAmount?: Prisma.SortOrder;
|
|
1108
|
+
buyXId?: Prisma.SortOrder;
|
|
1109
|
+
buyXAmount?: Prisma.SortOrder;
|
|
1110
|
+
buyXQty?: Prisma.SortOrder;
|
|
1111
|
+
buyXTargetType?: Prisma.SortOrder;
|
|
1112
|
+
getYId?: Prisma.SortOrder;
|
|
1113
|
+
getYAmount?: Prisma.SortOrder;
|
|
1114
|
+
getYQty?: Prisma.SortOrder;
|
|
1115
|
+
getYTargetType?: Prisma.SortOrder;
|
|
1116
|
+
};
|
|
1117
|
+
export type DiscountCodeSumOrderByAggregateInput = {
|
|
1118
|
+
id?: Prisma.SortOrder;
|
|
1119
|
+
maxGlobalRedemptions?: Prisma.SortOrder;
|
|
1120
|
+
maxRedemptionsPerUser?: Prisma.SortOrder;
|
|
1121
|
+
maxRedemptionsPerCart?: Prisma.SortOrder;
|
|
1122
|
+
minCartValue?: Prisma.SortOrder;
|
|
1123
|
+
discountPercentage?: Prisma.SortOrder;
|
|
1124
|
+
discountAmount?: Prisma.SortOrder;
|
|
1125
|
+
productIds?: Prisma.SortOrder;
|
|
1126
|
+
productVariantIds?: Prisma.SortOrder;
|
|
1127
|
+
categoryIds?: Prisma.SortOrder;
|
|
1128
|
+
collectionIds?: Prisma.SortOrder;
|
|
1129
|
+
buyXId?: Prisma.SortOrder;
|
|
1130
|
+
buyXAmount?: Prisma.SortOrder;
|
|
1131
|
+
buyXQty?: Prisma.SortOrder;
|
|
1132
|
+
getYId?: Prisma.SortOrder;
|
|
1133
|
+
getYAmount?: Prisma.SortOrder;
|
|
1134
|
+
getYQty?: Prisma.SortOrder;
|
|
1135
|
+
};
|
|
1136
|
+
export type DiscountCodeCreateNestedOneWithoutCartLineInput = {
|
|
1137
|
+
create?: Prisma.XOR<Prisma.DiscountCodeCreateWithoutCartLineInput, Prisma.DiscountCodeUncheckedCreateWithoutCartLineInput>;
|
|
1138
|
+
connectOrCreate?: Prisma.DiscountCodeCreateOrConnectWithoutCartLineInput;
|
|
1139
|
+
connect?: Prisma.DiscountCodeWhereUniqueInput;
|
|
1140
|
+
};
|
|
1141
|
+
export type DiscountCodeUpdateOneWithoutCartLineNestedInput = {
|
|
1142
|
+
create?: Prisma.XOR<Prisma.DiscountCodeCreateWithoutCartLineInput, Prisma.DiscountCodeUncheckedCreateWithoutCartLineInput>;
|
|
1143
|
+
connectOrCreate?: Prisma.DiscountCodeCreateOrConnectWithoutCartLineInput;
|
|
1144
|
+
upsert?: Prisma.DiscountCodeUpsertWithoutCartLineInput;
|
|
1145
|
+
disconnect?: Prisma.DiscountCodeWhereInput | boolean;
|
|
1146
|
+
delete?: Prisma.DiscountCodeWhereInput | boolean;
|
|
1147
|
+
connect?: Prisma.DiscountCodeWhereUniqueInput;
|
|
1148
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.DiscountCodeUpdateToOneWithWhereWithoutCartLineInput, Prisma.DiscountCodeUpdateWithoutCartLineInput>, Prisma.DiscountCodeUncheckedUpdateWithoutCartLineInput>;
|
|
1149
|
+
};
|
|
1150
|
+
export type DiscountCodeCreateNestedOneWithoutDiscountCodesAppliedToCartInput = {
|
|
1151
|
+
create?: Prisma.XOR<Prisma.DiscountCodeCreateWithoutDiscountCodesAppliedToCartInput, Prisma.DiscountCodeUncheckedCreateWithoutDiscountCodesAppliedToCartInput>;
|
|
1152
|
+
connectOrCreate?: Prisma.DiscountCodeCreateOrConnectWithoutDiscountCodesAppliedToCartInput;
|
|
1153
|
+
connect?: Prisma.DiscountCodeWhereUniqueInput;
|
|
1154
|
+
};
|
|
1155
|
+
export type DiscountCodeUpdateOneRequiredWithoutDiscountCodesAppliedToCartNestedInput = {
|
|
1156
|
+
create?: Prisma.XOR<Prisma.DiscountCodeCreateWithoutDiscountCodesAppliedToCartInput, Prisma.DiscountCodeUncheckedCreateWithoutDiscountCodesAppliedToCartInput>;
|
|
1157
|
+
connectOrCreate?: Prisma.DiscountCodeCreateOrConnectWithoutDiscountCodesAppliedToCartInput;
|
|
1158
|
+
upsert?: Prisma.DiscountCodeUpsertWithoutDiscountCodesAppliedToCartInput;
|
|
1159
|
+
connect?: Prisma.DiscountCodeWhereUniqueInput;
|
|
1160
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.DiscountCodeUpdateToOneWithWhereWithoutDiscountCodesAppliedToCartInput, Prisma.DiscountCodeUpdateWithoutDiscountCodesAppliedToCartInput>, Prisma.DiscountCodeUncheckedUpdateWithoutDiscountCodesAppliedToCartInput>;
|
|
1161
|
+
};
|
|
1162
|
+
export type DiscountCodeCreateNestedOneWithoutDiscountCodeRedeemedOnCartInput = {
|
|
1163
|
+
create?: Prisma.XOR<Prisma.DiscountCodeCreateWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
1164
|
+
connectOrCreate?: Prisma.DiscountCodeCreateOrConnectWithoutDiscountCodeRedeemedOnCartInput;
|
|
1165
|
+
connect?: Prisma.DiscountCodeWhereUniqueInput;
|
|
1166
|
+
};
|
|
1167
|
+
export type DiscountCodeUpdateOneRequiredWithoutDiscountCodeRedeemedOnCartNestedInput = {
|
|
1168
|
+
create?: Prisma.XOR<Prisma.DiscountCodeCreateWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
1169
|
+
connectOrCreate?: Prisma.DiscountCodeCreateOrConnectWithoutDiscountCodeRedeemedOnCartInput;
|
|
1170
|
+
upsert?: Prisma.DiscountCodeUpsertWithoutDiscountCodeRedeemedOnCartInput;
|
|
1171
|
+
connect?: Prisma.DiscountCodeWhereUniqueInput;
|
|
1172
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.DiscountCodeUpdateToOneWithWhereWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeUpdateWithoutDiscountCodeRedeemedOnCartInput>, Prisma.DiscountCodeUncheckedUpdateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
1173
|
+
};
|
|
1174
|
+
export type DiscountCodeCreateNestedOneWithoutRedemptionsInput = {
|
|
1175
|
+
create?: Prisma.XOR<Prisma.DiscountCodeCreateWithoutRedemptionsInput, Prisma.DiscountCodeUncheckedCreateWithoutRedemptionsInput>;
|
|
1176
|
+
connectOrCreate?: Prisma.DiscountCodeCreateOrConnectWithoutRedemptionsInput;
|
|
1177
|
+
connect?: Prisma.DiscountCodeWhereUniqueInput;
|
|
1178
|
+
};
|
|
1179
|
+
export type DiscountCodeUpdateOneRequiredWithoutRedemptionsNestedInput = {
|
|
1180
|
+
create?: Prisma.XOR<Prisma.DiscountCodeCreateWithoutRedemptionsInput, Prisma.DiscountCodeUncheckedCreateWithoutRedemptionsInput>;
|
|
1181
|
+
connectOrCreate?: Prisma.DiscountCodeCreateOrConnectWithoutRedemptionsInput;
|
|
1182
|
+
upsert?: Prisma.DiscountCodeUpsertWithoutRedemptionsInput;
|
|
1183
|
+
connect?: Prisma.DiscountCodeWhereUniqueInput;
|
|
1184
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.DiscountCodeUpdateToOneWithWhereWithoutRedemptionsInput, Prisma.DiscountCodeUpdateWithoutRedemptionsInput>, Prisma.DiscountCodeUncheckedUpdateWithoutRedemptionsInput>;
|
|
1185
|
+
};
|
|
1186
|
+
export type DiscountCodeCreatestoreIdsInput = {
|
|
1187
|
+
set: string[];
|
|
1188
|
+
};
|
|
1189
|
+
export type DiscountCodeCreateactiveDaysInput = {
|
|
1190
|
+
set: $Enums.ActiveDays[];
|
|
1191
|
+
};
|
|
1192
|
+
export type DiscountCodeCreateactiveWeeksInput = {
|
|
1193
|
+
set: $Enums.ActiveWeeks[];
|
|
1194
|
+
};
|
|
1195
|
+
export type DiscountCodeCreateproductIdsInput = {
|
|
1196
|
+
set: bigint[] | number[];
|
|
1197
|
+
};
|
|
1198
|
+
export type DiscountCodeCreateproductVariantIdsInput = {
|
|
1199
|
+
set: bigint[] | number[];
|
|
1200
|
+
};
|
|
1201
|
+
export type DiscountCodeCreatecategoryIdsInput = {
|
|
1202
|
+
set: bigint[] | number[];
|
|
1203
|
+
};
|
|
1204
|
+
export type DiscountCodeCreatecollectionIdsInput = {
|
|
1205
|
+
set: bigint[] | number[];
|
|
1206
|
+
};
|
|
1207
|
+
export type DiscountCodeUpdatestoreIdsInput = {
|
|
1208
|
+
set?: string[];
|
|
1209
|
+
push?: string | string[];
|
|
1210
|
+
};
|
|
1211
|
+
export type NullableFloatFieldUpdateOperationsInput = {
|
|
1212
|
+
set?: number | null;
|
|
1213
|
+
increment?: number;
|
|
1214
|
+
decrement?: number;
|
|
1215
|
+
multiply?: number;
|
|
1216
|
+
divide?: number;
|
|
1217
|
+
};
|
|
1218
|
+
export type DiscountCodeUpdateactiveDaysInput = {
|
|
1219
|
+
set?: $Enums.ActiveDays[];
|
|
1220
|
+
push?: $Enums.ActiveDays | $Enums.ActiveDays[];
|
|
1221
|
+
};
|
|
1222
|
+
export type DiscountCodeUpdateactiveWeeksInput = {
|
|
1223
|
+
set?: $Enums.ActiveWeeks[];
|
|
1224
|
+
push?: $Enums.ActiveWeeks | $Enums.ActiveWeeks[];
|
|
1225
|
+
};
|
|
1226
|
+
export type EnumTimezoneFieldUpdateOperationsInput = {
|
|
1227
|
+
set?: $Enums.Timezone;
|
|
1228
|
+
};
|
|
1229
|
+
export type EnumDiscountTypeFieldUpdateOperationsInput = {
|
|
1230
|
+
set?: $Enums.DiscountType;
|
|
1231
|
+
};
|
|
1232
|
+
export type EnumDiscountApplicationTypeFieldUpdateOperationsInput = {
|
|
1233
|
+
set?: $Enums.DiscountApplicationType;
|
|
1234
|
+
};
|
|
1235
|
+
export type DiscountCodeUpdateproductIdsInput = {
|
|
1236
|
+
set?: bigint[] | number[];
|
|
1237
|
+
push?: bigint | number | bigint[] | number[];
|
|
1238
|
+
};
|
|
1239
|
+
export type DiscountCodeUpdateproductVariantIdsInput = {
|
|
1240
|
+
set?: bigint[] | number[];
|
|
1241
|
+
push?: bigint | number | bigint[] | number[];
|
|
1242
|
+
};
|
|
1243
|
+
export type DiscountCodeUpdatecategoryIdsInput = {
|
|
1244
|
+
set?: bigint[] | number[];
|
|
1245
|
+
push?: bigint | number | bigint[] | number[];
|
|
1246
|
+
};
|
|
1247
|
+
export type DiscountCodeUpdatecollectionIdsInput = {
|
|
1248
|
+
set?: bigint[] | number[];
|
|
1249
|
+
push?: bigint | number | bigint[] | number[];
|
|
1250
|
+
};
|
|
1251
|
+
export type NullableEnumDiscountTargetTypeFieldUpdateOperationsInput = {
|
|
1252
|
+
set?: $Enums.DiscountTargetType | null;
|
|
1253
|
+
};
|
|
1254
|
+
export type DiscountCodeCreateWithoutCartLineInput = {
|
|
1255
|
+
id?: bigint | number;
|
|
1256
|
+
code: string;
|
|
1257
|
+
name: string;
|
|
1258
|
+
message?: string | null;
|
|
1259
|
+
createdAt?: Date | string;
|
|
1260
|
+
updatedAt?: Date | string;
|
|
1261
|
+
platformId?: string | null;
|
|
1262
|
+
storeIds?: Prisma.DiscountCodeCreatestoreIdsInput | string[];
|
|
1263
|
+
isActive?: boolean;
|
|
1264
|
+
startDate: Date | string;
|
|
1265
|
+
expiryDate: Date | string;
|
|
1266
|
+
isGlobal?: boolean;
|
|
1267
|
+
maxGlobalRedemptions?: number | null;
|
|
1268
|
+
maxRedemptionsPerUser?: number | null;
|
|
1269
|
+
maxRedemptionsPerCart?: number | null;
|
|
1270
|
+
minCartValue?: number | null;
|
|
1271
|
+
customerOnly?: boolean;
|
|
1272
|
+
activeDays?: Prisma.DiscountCodeCreateactiveDaysInput | $Enums.ActiveDays[];
|
|
1273
|
+
activeWeeks?: Prisma.DiscountCodeCreateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1274
|
+
timeStart?: Date | string | null;
|
|
1275
|
+
timeEnd?: Date | string | null;
|
|
1276
|
+
timezone?: $Enums.Timezone;
|
|
1277
|
+
discountType?: $Enums.DiscountType;
|
|
1278
|
+
discountApplicationType?: $Enums.DiscountApplicationType;
|
|
1279
|
+
discountPercentage?: number | null;
|
|
1280
|
+
discountAmount?: number | null;
|
|
1281
|
+
productIds?: Prisma.DiscountCodeCreateproductIdsInput | bigint[] | number[];
|
|
1282
|
+
productVariantIds?: Prisma.DiscountCodeCreateproductVariantIdsInput | bigint[] | number[];
|
|
1283
|
+
categoryIds?: Prisma.DiscountCodeCreatecategoryIdsInput | bigint[] | number[];
|
|
1284
|
+
collectionIds?: Prisma.DiscountCodeCreatecollectionIdsInput | bigint[] | number[];
|
|
1285
|
+
buyXId?: bigint | number | null;
|
|
1286
|
+
buyXAmount?: number | null;
|
|
1287
|
+
buyXQty?: number | null;
|
|
1288
|
+
buyXTargetType?: $Enums.DiscountTargetType | null;
|
|
1289
|
+
getYId?: bigint | number | null;
|
|
1290
|
+
getYAmount?: number | null;
|
|
1291
|
+
getYQty?: number | null;
|
|
1292
|
+
getYTargetType?: $Enums.DiscountTargetType | null;
|
|
1293
|
+
redemptions?: Prisma.DiscountCodeRedemptionCreateNestedManyWithoutDiscountCodeInput;
|
|
1294
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartCreateNestedManyWithoutDiscountCodeInput;
|
|
1295
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutDiscountCodeInput;
|
|
1296
|
+
};
|
|
1297
|
+
export type DiscountCodeUncheckedCreateWithoutCartLineInput = {
|
|
1298
|
+
id?: bigint | number;
|
|
1299
|
+
code: string;
|
|
1300
|
+
name: string;
|
|
1301
|
+
message?: string | null;
|
|
1302
|
+
createdAt?: Date | string;
|
|
1303
|
+
updatedAt?: Date | string;
|
|
1304
|
+
platformId?: string | null;
|
|
1305
|
+
storeIds?: Prisma.DiscountCodeCreatestoreIdsInput | string[];
|
|
1306
|
+
isActive?: boolean;
|
|
1307
|
+
startDate: Date | string;
|
|
1308
|
+
expiryDate: Date | string;
|
|
1309
|
+
isGlobal?: boolean;
|
|
1310
|
+
maxGlobalRedemptions?: number | null;
|
|
1311
|
+
maxRedemptionsPerUser?: number | null;
|
|
1312
|
+
maxRedemptionsPerCart?: number | null;
|
|
1313
|
+
minCartValue?: number | null;
|
|
1314
|
+
customerOnly?: boolean;
|
|
1315
|
+
activeDays?: Prisma.DiscountCodeCreateactiveDaysInput | $Enums.ActiveDays[];
|
|
1316
|
+
activeWeeks?: Prisma.DiscountCodeCreateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1317
|
+
timeStart?: Date | string | null;
|
|
1318
|
+
timeEnd?: Date | string | null;
|
|
1319
|
+
timezone?: $Enums.Timezone;
|
|
1320
|
+
discountType?: $Enums.DiscountType;
|
|
1321
|
+
discountApplicationType?: $Enums.DiscountApplicationType;
|
|
1322
|
+
discountPercentage?: number | null;
|
|
1323
|
+
discountAmount?: number | null;
|
|
1324
|
+
productIds?: Prisma.DiscountCodeCreateproductIdsInput | bigint[] | number[];
|
|
1325
|
+
productVariantIds?: Prisma.DiscountCodeCreateproductVariantIdsInput | bigint[] | number[];
|
|
1326
|
+
categoryIds?: Prisma.DiscountCodeCreatecategoryIdsInput | bigint[] | number[];
|
|
1327
|
+
collectionIds?: Prisma.DiscountCodeCreatecollectionIdsInput | bigint[] | number[];
|
|
1328
|
+
buyXId?: bigint | number | null;
|
|
1329
|
+
buyXAmount?: number | null;
|
|
1330
|
+
buyXQty?: number | null;
|
|
1331
|
+
buyXTargetType?: $Enums.DiscountTargetType | null;
|
|
1332
|
+
getYId?: bigint | number | null;
|
|
1333
|
+
getYAmount?: number | null;
|
|
1334
|
+
getYQty?: number | null;
|
|
1335
|
+
getYTargetType?: $Enums.DiscountTargetType | null;
|
|
1336
|
+
redemptions?: Prisma.DiscountCodeRedemptionUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
1337
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
1338
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
1339
|
+
};
|
|
1340
|
+
export type DiscountCodeCreateOrConnectWithoutCartLineInput = {
|
|
1341
|
+
where: Prisma.DiscountCodeWhereUniqueInput;
|
|
1342
|
+
create: Prisma.XOR<Prisma.DiscountCodeCreateWithoutCartLineInput, Prisma.DiscountCodeUncheckedCreateWithoutCartLineInput>;
|
|
1343
|
+
};
|
|
1344
|
+
export type DiscountCodeUpsertWithoutCartLineInput = {
|
|
1345
|
+
update: Prisma.XOR<Prisma.DiscountCodeUpdateWithoutCartLineInput, Prisma.DiscountCodeUncheckedUpdateWithoutCartLineInput>;
|
|
1346
|
+
create: Prisma.XOR<Prisma.DiscountCodeCreateWithoutCartLineInput, Prisma.DiscountCodeUncheckedCreateWithoutCartLineInput>;
|
|
1347
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
1348
|
+
};
|
|
1349
|
+
export type DiscountCodeUpdateToOneWithWhereWithoutCartLineInput = {
|
|
1350
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
1351
|
+
data: Prisma.XOR<Prisma.DiscountCodeUpdateWithoutCartLineInput, Prisma.DiscountCodeUncheckedUpdateWithoutCartLineInput>;
|
|
1352
|
+
};
|
|
1353
|
+
export type DiscountCodeUpdateWithoutCartLineInput = {
|
|
1354
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
1355
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1356
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1357
|
+
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1358
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1359
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1360
|
+
platformId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1361
|
+
storeIds?: Prisma.DiscountCodeUpdatestoreIdsInput | string[];
|
|
1362
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1363
|
+
startDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1364
|
+
expiryDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1365
|
+
isGlobal?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1366
|
+
maxGlobalRedemptions?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1367
|
+
maxRedemptionsPerUser?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1368
|
+
maxRedemptionsPerCart?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1369
|
+
minCartValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1370
|
+
customerOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1371
|
+
activeDays?: Prisma.DiscountCodeUpdateactiveDaysInput | $Enums.ActiveDays[];
|
|
1372
|
+
activeWeeks?: Prisma.DiscountCodeUpdateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1373
|
+
timeStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1374
|
+
timeEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1375
|
+
timezone?: Prisma.EnumTimezoneFieldUpdateOperationsInput | $Enums.Timezone;
|
|
1376
|
+
discountType?: Prisma.EnumDiscountTypeFieldUpdateOperationsInput | $Enums.DiscountType;
|
|
1377
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFieldUpdateOperationsInput | $Enums.DiscountApplicationType;
|
|
1378
|
+
discountPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1379
|
+
discountAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1380
|
+
productIds?: Prisma.DiscountCodeUpdateproductIdsInput | bigint[] | number[];
|
|
1381
|
+
productVariantIds?: Prisma.DiscountCodeUpdateproductVariantIdsInput | bigint[] | number[];
|
|
1382
|
+
categoryIds?: Prisma.DiscountCodeUpdatecategoryIdsInput | bigint[] | number[];
|
|
1383
|
+
collectionIds?: Prisma.DiscountCodeUpdatecollectionIdsInput | bigint[] | number[];
|
|
1384
|
+
buyXId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1385
|
+
buyXAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1386
|
+
buyXQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1387
|
+
buyXTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1388
|
+
getYId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1389
|
+
getYAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1390
|
+
getYQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1391
|
+
getYTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1392
|
+
redemptions?: Prisma.DiscountCodeRedemptionUpdateManyWithoutDiscountCodeNestedInput;
|
|
1393
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartUpdateManyWithoutDiscountCodeNestedInput;
|
|
1394
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutDiscountCodeNestedInput;
|
|
1395
|
+
};
|
|
1396
|
+
export type DiscountCodeUncheckedUpdateWithoutCartLineInput = {
|
|
1397
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
1398
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1399
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1400
|
+
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1401
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1402
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1403
|
+
platformId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1404
|
+
storeIds?: Prisma.DiscountCodeUpdatestoreIdsInput | string[];
|
|
1405
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1406
|
+
startDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1407
|
+
expiryDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1408
|
+
isGlobal?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1409
|
+
maxGlobalRedemptions?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1410
|
+
maxRedemptionsPerUser?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1411
|
+
maxRedemptionsPerCart?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1412
|
+
minCartValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1413
|
+
customerOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1414
|
+
activeDays?: Prisma.DiscountCodeUpdateactiveDaysInput | $Enums.ActiveDays[];
|
|
1415
|
+
activeWeeks?: Prisma.DiscountCodeUpdateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1416
|
+
timeStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1417
|
+
timeEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1418
|
+
timezone?: Prisma.EnumTimezoneFieldUpdateOperationsInput | $Enums.Timezone;
|
|
1419
|
+
discountType?: Prisma.EnumDiscountTypeFieldUpdateOperationsInput | $Enums.DiscountType;
|
|
1420
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFieldUpdateOperationsInput | $Enums.DiscountApplicationType;
|
|
1421
|
+
discountPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1422
|
+
discountAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1423
|
+
productIds?: Prisma.DiscountCodeUpdateproductIdsInput | bigint[] | number[];
|
|
1424
|
+
productVariantIds?: Prisma.DiscountCodeUpdateproductVariantIdsInput | bigint[] | number[];
|
|
1425
|
+
categoryIds?: Prisma.DiscountCodeUpdatecategoryIdsInput | bigint[] | number[];
|
|
1426
|
+
collectionIds?: Prisma.DiscountCodeUpdatecollectionIdsInput | bigint[] | number[];
|
|
1427
|
+
buyXId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1428
|
+
buyXAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1429
|
+
buyXQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1430
|
+
buyXTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1431
|
+
getYId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1432
|
+
getYAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1433
|
+
getYQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1434
|
+
getYTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1435
|
+
redemptions?: Prisma.DiscountCodeRedemptionUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
1436
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
1437
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
1438
|
+
};
|
|
1439
|
+
export type DiscountCodeCreateWithoutDiscountCodesAppliedToCartInput = {
|
|
1440
|
+
id?: bigint | number;
|
|
1441
|
+
code: string;
|
|
1442
|
+
name: string;
|
|
1443
|
+
message?: string | null;
|
|
1444
|
+
createdAt?: Date | string;
|
|
1445
|
+
updatedAt?: Date | string;
|
|
1446
|
+
platformId?: string | null;
|
|
1447
|
+
storeIds?: Prisma.DiscountCodeCreatestoreIdsInput | string[];
|
|
1448
|
+
isActive?: boolean;
|
|
1449
|
+
startDate: Date | string;
|
|
1450
|
+
expiryDate: Date | string;
|
|
1451
|
+
isGlobal?: boolean;
|
|
1452
|
+
maxGlobalRedemptions?: number | null;
|
|
1453
|
+
maxRedemptionsPerUser?: number | null;
|
|
1454
|
+
maxRedemptionsPerCart?: number | null;
|
|
1455
|
+
minCartValue?: number | null;
|
|
1456
|
+
customerOnly?: boolean;
|
|
1457
|
+
activeDays?: Prisma.DiscountCodeCreateactiveDaysInput | $Enums.ActiveDays[];
|
|
1458
|
+
activeWeeks?: Prisma.DiscountCodeCreateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1459
|
+
timeStart?: Date | string | null;
|
|
1460
|
+
timeEnd?: Date | string | null;
|
|
1461
|
+
timezone?: $Enums.Timezone;
|
|
1462
|
+
discountType?: $Enums.DiscountType;
|
|
1463
|
+
discountApplicationType?: $Enums.DiscountApplicationType;
|
|
1464
|
+
discountPercentage?: number | null;
|
|
1465
|
+
discountAmount?: number | null;
|
|
1466
|
+
productIds?: Prisma.DiscountCodeCreateproductIdsInput | bigint[] | number[];
|
|
1467
|
+
productVariantIds?: Prisma.DiscountCodeCreateproductVariantIdsInput | bigint[] | number[];
|
|
1468
|
+
categoryIds?: Prisma.DiscountCodeCreatecategoryIdsInput | bigint[] | number[];
|
|
1469
|
+
collectionIds?: Prisma.DiscountCodeCreatecollectionIdsInput | bigint[] | number[];
|
|
1470
|
+
buyXId?: bigint | number | null;
|
|
1471
|
+
buyXAmount?: number | null;
|
|
1472
|
+
buyXQty?: number | null;
|
|
1473
|
+
buyXTargetType?: $Enums.DiscountTargetType | null;
|
|
1474
|
+
getYId?: bigint | number | null;
|
|
1475
|
+
getYAmount?: number | null;
|
|
1476
|
+
getYQty?: number | null;
|
|
1477
|
+
getYTargetType?: $Enums.DiscountTargetType | null;
|
|
1478
|
+
redemptions?: Prisma.DiscountCodeRedemptionCreateNestedManyWithoutDiscountCodeInput;
|
|
1479
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutDiscountCodeInput;
|
|
1480
|
+
cartLine?: Prisma.CartLineCreateNestedManyWithoutDiscountCodeInput;
|
|
1481
|
+
};
|
|
1482
|
+
export type DiscountCodeUncheckedCreateWithoutDiscountCodesAppliedToCartInput = {
|
|
1483
|
+
id?: bigint | number;
|
|
1484
|
+
code: string;
|
|
1485
|
+
name: string;
|
|
1486
|
+
message?: string | null;
|
|
1487
|
+
createdAt?: Date | string;
|
|
1488
|
+
updatedAt?: Date | string;
|
|
1489
|
+
platformId?: string | null;
|
|
1490
|
+
storeIds?: Prisma.DiscountCodeCreatestoreIdsInput | string[];
|
|
1491
|
+
isActive?: boolean;
|
|
1492
|
+
startDate: Date | string;
|
|
1493
|
+
expiryDate: Date | string;
|
|
1494
|
+
isGlobal?: boolean;
|
|
1495
|
+
maxGlobalRedemptions?: number | null;
|
|
1496
|
+
maxRedemptionsPerUser?: number | null;
|
|
1497
|
+
maxRedemptionsPerCart?: number | null;
|
|
1498
|
+
minCartValue?: number | null;
|
|
1499
|
+
customerOnly?: boolean;
|
|
1500
|
+
activeDays?: Prisma.DiscountCodeCreateactiveDaysInput | $Enums.ActiveDays[];
|
|
1501
|
+
activeWeeks?: Prisma.DiscountCodeCreateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1502
|
+
timeStart?: Date | string | null;
|
|
1503
|
+
timeEnd?: Date | string | null;
|
|
1504
|
+
timezone?: $Enums.Timezone;
|
|
1505
|
+
discountType?: $Enums.DiscountType;
|
|
1506
|
+
discountApplicationType?: $Enums.DiscountApplicationType;
|
|
1507
|
+
discountPercentage?: number | null;
|
|
1508
|
+
discountAmount?: number | null;
|
|
1509
|
+
productIds?: Prisma.DiscountCodeCreateproductIdsInput | bigint[] | number[];
|
|
1510
|
+
productVariantIds?: Prisma.DiscountCodeCreateproductVariantIdsInput | bigint[] | number[];
|
|
1511
|
+
categoryIds?: Prisma.DiscountCodeCreatecategoryIdsInput | bigint[] | number[];
|
|
1512
|
+
collectionIds?: Prisma.DiscountCodeCreatecollectionIdsInput | bigint[] | number[];
|
|
1513
|
+
buyXId?: bigint | number | null;
|
|
1514
|
+
buyXAmount?: number | null;
|
|
1515
|
+
buyXQty?: number | null;
|
|
1516
|
+
buyXTargetType?: $Enums.DiscountTargetType | null;
|
|
1517
|
+
getYId?: bigint | number | null;
|
|
1518
|
+
getYAmount?: number | null;
|
|
1519
|
+
getYQty?: number | null;
|
|
1520
|
+
getYTargetType?: $Enums.DiscountTargetType | null;
|
|
1521
|
+
redemptions?: Prisma.DiscountCodeRedemptionUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
1522
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
1523
|
+
cartLine?: Prisma.CartLineUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
1524
|
+
};
|
|
1525
|
+
export type DiscountCodeCreateOrConnectWithoutDiscountCodesAppliedToCartInput = {
|
|
1526
|
+
where: Prisma.DiscountCodeWhereUniqueInput;
|
|
1527
|
+
create: Prisma.XOR<Prisma.DiscountCodeCreateWithoutDiscountCodesAppliedToCartInput, Prisma.DiscountCodeUncheckedCreateWithoutDiscountCodesAppliedToCartInput>;
|
|
1528
|
+
};
|
|
1529
|
+
export type DiscountCodeUpsertWithoutDiscountCodesAppliedToCartInput = {
|
|
1530
|
+
update: Prisma.XOR<Prisma.DiscountCodeUpdateWithoutDiscountCodesAppliedToCartInput, Prisma.DiscountCodeUncheckedUpdateWithoutDiscountCodesAppliedToCartInput>;
|
|
1531
|
+
create: Prisma.XOR<Prisma.DiscountCodeCreateWithoutDiscountCodesAppliedToCartInput, Prisma.DiscountCodeUncheckedCreateWithoutDiscountCodesAppliedToCartInput>;
|
|
1532
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
1533
|
+
};
|
|
1534
|
+
export type DiscountCodeUpdateToOneWithWhereWithoutDiscountCodesAppliedToCartInput = {
|
|
1535
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
1536
|
+
data: Prisma.XOR<Prisma.DiscountCodeUpdateWithoutDiscountCodesAppliedToCartInput, Prisma.DiscountCodeUncheckedUpdateWithoutDiscountCodesAppliedToCartInput>;
|
|
1537
|
+
};
|
|
1538
|
+
export type DiscountCodeUpdateWithoutDiscountCodesAppliedToCartInput = {
|
|
1539
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
1540
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1541
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1542
|
+
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1543
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1544
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1545
|
+
platformId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1546
|
+
storeIds?: Prisma.DiscountCodeUpdatestoreIdsInput | string[];
|
|
1547
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1548
|
+
startDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1549
|
+
expiryDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1550
|
+
isGlobal?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1551
|
+
maxGlobalRedemptions?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1552
|
+
maxRedemptionsPerUser?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1553
|
+
maxRedemptionsPerCart?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1554
|
+
minCartValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1555
|
+
customerOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1556
|
+
activeDays?: Prisma.DiscountCodeUpdateactiveDaysInput | $Enums.ActiveDays[];
|
|
1557
|
+
activeWeeks?: Prisma.DiscountCodeUpdateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1558
|
+
timeStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1559
|
+
timeEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1560
|
+
timezone?: Prisma.EnumTimezoneFieldUpdateOperationsInput | $Enums.Timezone;
|
|
1561
|
+
discountType?: Prisma.EnumDiscountTypeFieldUpdateOperationsInput | $Enums.DiscountType;
|
|
1562
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFieldUpdateOperationsInput | $Enums.DiscountApplicationType;
|
|
1563
|
+
discountPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1564
|
+
discountAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1565
|
+
productIds?: Prisma.DiscountCodeUpdateproductIdsInput | bigint[] | number[];
|
|
1566
|
+
productVariantIds?: Prisma.DiscountCodeUpdateproductVariantIdsInput | bigint[] | number[];
|
|
1567
|
+
categoryIds?: Prisma.DiscountCodeUpdatecategoryIdsInput | bigint[] | number[];
|
|
1568
|
+
collectionIds?: Prisma.DiscountCodeUpdatecollectionIdsInput | bigint[] | number[];
|
|
1569
|
+
buyXId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1570
|
+
buyXAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1571
|
+
buyXQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1572
|
+
buyXTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1573
|
+
getYId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1574
|
+
getYAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1575
|
+
getYQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1576
|
+
getYTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1577
|
+
redemptions?: Prisma.DiscountCodeRedemptionUpdateManyWithoutDiscountCodeNestedInput;
|
|
1578
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutDiscountCodeNestedInput;
|
|
1579
|
+
cartLine?: Prisma.CartLineUpdateManyWithoutDiscountCodeNestedInput;
|
|
1580
|
+
};
|
|
1581
|
+
export type DiscountCodeUncheckedUpdateWithoutDiscountCodesAppliedToCartInput = {
|
|
1582
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
1583
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1584
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1585
|
+
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1586
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1587
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1588
|
+
platformId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1589
|
+
storeIds?: Prisma.DiscountCodeUpdatestoreIdsInput | string[];
|
|
1590
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1591
|
+
startDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1592
|
+
expiryDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1593
|
+
isGlobal?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1594
|
+
maxGlobalRedemptions?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1595
|
+
maxRedemptionsPerUser?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1596
|
+
maxRedemptionsPerCart?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1597
|
+
minCartValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1598
|
+
customerOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1599
|
+
activeDays?: Prisma.DiscountCodeUpdateactiveDaysInput | $Enums.ActiveDays[];
|
|
1600
|
+
activeWeeks?: Prisma.DiscountCodeUpdateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1601
|
+
timeStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1602
|
+
timeEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1603
|
+
timezone?: Prisma.EnumTimezoneFieldUpdateOperationsInput | $Enums.Timezone;
|
|
1604
|
+
discountType?: Prisma.EnumDiscountTypeFieldUpdateOperationsInput | $Enums.DiscountType;
|
|
1605
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFieldUpdateOperationsInput | $Enums.DiscountApplicationType;
|
|
1606
|
+
discountPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1607
|
+
discountAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1608
|
+
productIds?: Prisma.DiscountCodeUpdateproductIdsInput | bigint[] | number[];
|
|
1609
|
+
productVariantIds?: Prisma.DiscountCodeUpdateproductVariantIdsInput | bigint[] | number[];
|
|
1610
|
+
categoryIds?: Prisma.DiscountCodeUpdatecategoryIdsInput | bigint[] | number[];
|
|
1611
|
+
collectionIds?: Prisma.DiscountCodeUpdatecollectionIdsInput | bigint[] | number[];
|
|
1612
|
+
buyXId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1613
|
+
buyXAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1614
|
+
buyXQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1615
|
+
buyXTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1616
|
+
getYId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1617
|
+
getYAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1618
|
+
getYQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1619
|
+
getYTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1620
|
+
redemptions?: Prisma.DiscountCodeRedemptionUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
1621
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
1622
|
+
cartLine?: Prisma.CartLineUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
1623
|
+
};
|
|
1624
|
+
export type DiscountCodeCreateWithoutDiscountCodeRedeemedOnCartInput = {
|
|
1625
|
+
id?: bigint | number;
|
|
1626
|
+
code: string;
|
|
1627
|
+
name: string;
|
|
1628
|
+
message?: string | null;
|
|
1629
|
+
createdAt?: Date | string;
|
|
1630
|
+
updatedAt?: Date | string;
|
|
1631
|
+
platformId?: string | null;
|
|
1632
|
+
storeIds?: Prisma.DiscountCodeCreatestoreIdsInput | string[];
|
|
1633
|
+
isActive?: boolean;
|
|
1634
|
+
startDate: Date | string;
|
|
1635
|
+
expiryDate: Date | string;
|
|
1636
|
+
isGlobal?: boolean;
|
|
1637
|
+
maxGlobalRedemptions?: number | null;
|
|
1638
|
+
maxRedemptionsPerUser?: number | null;
|
|
1639
|
+
maxRedemptionsPerCart?: number | null;
|
|
1640
|
+
minCartValue?: number | null;
|
|
1641
|
+
customerOnly?: boolean;
|
|
1642
|
+
activeDays?: Prisma.DiscountCodeCreateactiveDaysInput | $Enums.ActiveDays[];
|
|
1643
|
+
activeWeeks?: Prisma.DiscountCodeCreateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1644
|
+
timeStart?: Date | string | null;
|
|
1645
|
+
timeEnd?: Date | string | null;
|
|
1646
|
+
timezone?: $Enums.Timezone;
|
|
1647
|
+
discountType?: $Enums.DiscountType;
|
|
1648
|
+
discountApplicationType?: $Enums.DiscountApplicationType;
|
|
1649
|
+
discountPercentage?: number | null;
|
|
1650
|
+
discountAmount?: number | null;
|
|
1651
|
+
productIds?: Prisma.DiscountCodeCreateproductIdsInput | bigint[] | number[];
|
|
1652
|
+
productVariantIds?: Prisma.DiscountCodeCreateproductVariantIdsInput | bigint[] | number[];
|
|
1653
|
+
categoryIds?: Prisma.DiscountCodeCreatecategoryIdsInput | bigint[] | number[];
|
|
1654
|
+
collectionIds?: Prisma.DiscountCodeCreatecollectionIdsInput | bigint[] | number[];
|
|
1655
|
+
buyXId?: bigint | number | null;
|
|
1656
|
+
buyXAmount?: number | null;
|
|
1657
|
+
buyXQty?: number | null;
|
|
1658
|
+
buyXTargetType?: $Enums.DiscountTargetType | null;
|
|
1659
|
+
getYId?: bigint | number | null;
|
|
1660
|
+
getYAmount?: number | null;
|
|
1661
|
+
getYQty?: number | null;
|
|
1662
|
+
getYTargetType?: $Enums.DiscountTargetType | null;
|
|
1663
|
+
redemptions?: Prisma.DiscountCodeRedemptionCreateNestedManyWithoutDiscountCodeInput;
|
|
1664
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartCreateNestedManyWithoutDiscountCodeInput;
|
|
1665
|
+
cartLine?: Prisma.CartLineCreateNestedManyWithoutDiscountCodeInput;
|
|
1666
|
+
};
|
|
1667
|
+
export type DiscountCodeUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput = {
|
|
1668
|
+
id?: bigint | number;
|
|
1669
|
+
code: string;
|
|
1670
|
+
name: string;
|
|
1671
|
+
message?: string | null;
|
|
1672
|
+
createdAt?: Date | string;
|
|
1673
|
+
updatedAt?: Date | string;
|
|
1674
|
+
platformId?: string | null;
|
|
1675
|
+
storeIds?: Prisma.DiscountCodeCreatestoreIdsInput | string[];
|
|
1676
|
+
isActive?: boolean;
|
|
1677
|
+
startDate: Date | string;
|
|
1678
|
+
expiryDate: Date | string;
|
|
1679
|
+
isGlobal?: boolean;
|
|
1680
|
+
maxGlobalRedemptions?: number | null;
|
|
1681
|
+
maxRedemptionsPerUser?: number | null;
|
|
1682
|
+
maxRedemptionsPerCart?: number | null;
|
|
1683
|
+
minCartValue?: number | null;
|
|
1684
|
+
customerOnly?: boolean;
|
|
1685
|
+
activeDays?: Prisma.DiscountCodeCreateactiveDaysInput | $Enums.ActiveDays[];
|
|
1686
|
+
activeWeeks?: Prisma.DiscountCodeCreateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1687
|
+
timeStart?: Date | string | null;
|
|
1688
|
+
timeEnd?: Date | string | null;
|
|
1689
|
+
timezone?: $Enums.Timezone;
|
|
1690
|
+
discountType?: $Enums.DiscountType;
|
|
1691
|
+
discountApplicationType?: $Enums.DiscountApplicationType;
|
|
1692
|
+
discountPercentage?: number | null;
|
|
1693
|
+
discountAmount?: number | null;
|
|
1694
|
+
productIds?: Prisma.DiscountCodeCreateproductIdsInput | bigint[] | number[];
|
|
1695
|
+
productVariantIds?: Prisma.DiscountCodeCreateproductVariantIdsInput | bigint[] | number[];
|
|
1696
|
+
categoryIds?: Prisma.DiscountCodeCreatecategoryIdsInput | bigint[] | number[];
|
|
1697
|
+
collectionIds?: Prisma.DiscountCodeCreatecollectionIdsInput | bigint[] | number[];
|
|
1698
|
+
buyXId?: bigint | number | null;
|
|
1699
|
+
buyXAmount?: number | null;
|
|
1700
|
+
buyXQty?: number | null;
|
|
1701
|
+
buyXTargetType?: $Enums.DiscountTargetType | null;
|
|
1702
|
+
getYId?: bigint | number | null;
|
|
1703
|
+
getYAmount?: number | null;
|
|
1704
|
+
getYQty?: number | null;
|
|
1705
|
+
getYTargetType?: $Enums.DiscountTargetType | null;
|
|
1706
|
+
redemptions?: Prisma.DiscountCodeRedemptionUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
1707
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
1708
|
+
cartLine?: Prisma.CartLineUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
1709
|
+
};
|
|
1710
|
+
export type DiscountCodeCreateOrConnectWithoutDiscountCodeRedeemedOnCartInput = {
|
|
1711
|
+
where: Prisma.DiscountCodeWhereUniqueInput;
|
|
1712
|
+
create: Prisma.XOR<Prisma.DiscountCodeCreateWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
1713
|
+
};
|
|
1714
|
+
export type DiscountCodeUpsertWithoutDiscountCodeRedeemedOnCartInput = {
|
|
1715
|
+
update: Prisma.XOR<Prisma.DiscountCodeUpdateWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeUncheckedUpdateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
1716
|
+
create: Prisma.XOR<Prisma.DiscountCodeCreateWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
1717
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
1718
|
+
};
|
|
1719
|
+
export type DiscountCodeUpdateToOneWithWhereWithoutDiscountCodeRedeemedOnCartInput = {
|
|
1720
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
1721
|
+
data: Prisma.XOR<Prisma.DiscountCodeUpdateWithoutDiscountCodeRedeemedOnCartInput, Prisma.DiscountCodeUncheckedUpdateWithoutDiscountCodeRedeemedOnCartInput>;
|
|
1722
|
+
};
|
|
1723
|
+
export type DiscountCodeUpdateWithoutDiscountCodeRedeemedOnCartInput = {
|
|
1724
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
1725
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1726
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1727
|
+
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1728
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1729
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1730
|
+
platformId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1731
|
+
storeIds?: Prisma.DiscountCodeUpdatestoreIdsInput | string[];
|
|
1732
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1733
|
+
startDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1734
|
+
expiryDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1735
|
+
isGlobal?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1736
|
+
maxGlobalRedemptions?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1737
|
+
maxRedemptionsPerUser?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1738
|
+
maxRedemptionsPerCart?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1739
|
+
minCartValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1740
|
+
customerOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1741
|
+
activeDays?: Prisma.DiscountCodeUpdateactiveDaysInput | $Enums.ActiveDays[];
|
|
1742
|
+
activeWeeks?: Prisma.DiscountCodeUpdateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1743
|
+
timeStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1744
|
+
timeEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1745
|
+
timezone?: Prisma.EnumTimezoneFieldUpdateOperationsInput | $Enums.Timezone;
|
|
1746
|
+
discountType?: Prisma.EnumDiscountTypeFieldUpdateOperationsInput | $Enums.DiscountType;
|
|
1747
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFieldUpdateOperationsInput | $Enums.DiscountApplicationType;
|
|
1748
|
+
discountPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1749
|
+
discountAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1750
|
+
productIds?: Prisma.DiscountCodeUpdateproductIdsInput | bigint[] | number[];
|
|
1751
|
+
productVariantIds?: Prisma.DiscountCodeUpdateproductVariantIdsInput | bigint[] | number[];
|
|
1752
|
+
categoryIds?: Prisma.DiscountCodeUpdatecategoryIdsInput | bigint[] | number[];
|
|
1753
|
+
collectionIds?: Prisma.DiscountCodeUpdatecollectionIdsInput | bigint[] | number[];
|
|
1754
|
+
buyXId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1755
|
+
buyXAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1756
|
+
buyXQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1757
|
+
buyXTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1758
|
+
getYId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1759
|
+
getYAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1760
|
+
getYQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1761
|
+
getYTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1762
|
+
redemptions?: Prisma.DiscountCodeRedemptionUpdateManyWithoutDiscountCodeNestedInput;
|
|
1763
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartUpdateManyWithoutDiscountCodeNestedInput;
|
|
1764
|
+
cartLine?: Prisma.CartLineUpdateManyWithoutDiscountCodeNestedInput;
|
|
1765
|
+
};
|
|
1766
|
+
export type DiscountCodeUncheckedUpdateWithoutDiscountCodeRedeemedOnCartInput = {
|
|
1767
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
1768
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1769
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1770
|
+
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1771
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1772
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1773
|
+
platformId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1774
|
+
storeIds?: Prisma.DiscountCodeUpdatestoreIdsInput | string[];
|
|
1775
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1776
|
+
startDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1777
|
+
expiryDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1778
|
+
isGlobal?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1779
|
+
maxGlobalRedemptions?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1780
|
+
maxRedemptionsPerUser?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1781
|
+
maxRedemptionsPerCart?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1782
|
+
minCartValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1783
|
+
customerOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1784
|
+
activeDays?: Prisma.DiscountCodeUpdateactiveDaysInput | $Enums.ActiveDays[];
|
|
1785
|
+
activeWeeks?: Prisma.DiscountCodeUpdateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1786
|
+
timeStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1787
|
+
timeEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1788
|
+
timezone?: Prisma.EnumTimezoneFieldUpdateOperationsInput | $Enums.Timezone;
|
|
1789
|
+
discountType?: Prisma.EnumDiscountTypeFieldUpdateOperationsInput | $Enums.DiscountType;
|
|
1790
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFieldUpdateOperationsInput | $Enums.DiscountApplicationType;
|
|
1791
|
+
discountPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1792
|
+
discountAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1793
|
+
productIds?: Prisma.DiscountCodeUpdateproductIdsInput | bigint[] | number[];
|
|
1794
|
+
productVariantIds?: Prisma.DiscountCodeUpdateproductVariantIdsInput | bigint[] | number[];
|
|
1795
|
+
categoryIds?: Prisma.DiscountCodeUpdatecategoryIdsInput | bigint[] | number[];
|
|
1796
|
+
collectionIds?: Prisma.DiscountCodeUpdatecollectionIdsInput | bigint[] | number[];
|
|
1797
|
+
buyXId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1798
|
+
buyXAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1799
|
+
buyXQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1800
|
+
buyXTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1801
|
+
getYId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1802
|
+
getYAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1803
|
+
getYQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1804
|
+
getYTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1805
|
+
redemptions?: Prisma.DiscountCodeRedemptionUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
1806
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
1807
|
+
cartLine?: Prisma.CartLineUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
1808
|
+
};
|
|
1809
|
+
export type DiscountCodeCreateWithoutRedemptionsInput = {
|
|
1810
|
+
id?: bigint | number;
|
|
1811
|
+
code: string;
|
|
1812
|
+
name: string;
|
|
1813
|
+
message?: string | null;
|
|
1814
|
+
createdAt?: Date | string;
|
|
1815
|
+
updatedAt?: Date | string;
|
|
1816
|
+
platformId?: string | null;
|
|
1817
|
+
storeIds?: Prisma.DiscountCodeCreatestoreIdsInput | string[];
|
|
1818
|
+
isActive?: boolean;
|
|
1819
|
+
startDate: Date | string;
|
|
1820
|
+
expiryDate: Date | string;
|
|
1821
|
+
isGlobal?: boolean;
|
|
1822
|
+
maxGlobalRedemptions?: number | null;
|
|
1823
|
+
maxRedemptionsPerUser?: number | null;
|
|
1824
|
+
maxRedemptionsPerCart?: number | null;
|
|
1825
|
+
minCartValue?: number | null;
|
|
1826
|
+
customerOnly?: boolean;
|
|
1827
|
+
activeDays?: Prisma.DiscountCodeCreateactiveDaysInput | $Enums.ActiveDays[];
|
|
1828
|
+
activeWeeks?: Prisma.DiscountCodeCreateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1829
|
+
timeStart?: Date | string | null;
|
|
1830
|
+
timeEnd?: Date | string | null;
|
|
1831
|
+
timezone?: $Enums.Timezone;
|
|
1832
|
+
discountType?: $Enums.DiscountType;
|
|
1833
|
+
discountApplicationType?: $Enums.DiscountApplicationType;
|
|
1834
|
+
discountPercentage?: number | null;
|
|
1835
|
+
discountAmount?: number | null;
|
|
1836
|
+
productIds?: Prisma.DiscountCodeCreateproductIdsInput | bigint[] | number[];
|
|
1837
|
+
productVariantIds?: Prisma.DiscountCodeCreateproductVariantIdsInput | bigint[] | number[];
|
|
1838
|
+
categoryIds?: Prisma.DiscountCodeCreatecategoryIdsInput | bigint[] | number[];
|
|
1839
|
+
collectionIds?: Prisma.DiscountCodeCreatecollectionIdsInput | bigint[] | number[];
|
|
1840
|
+
buyXId?: bigint | number | null;
|
|
1841
|
+
buyXAmount?: number | null;
|
|
1842
|
+
buyXQty?: number | null;
|
|
1843
|
+
buyXTargetType?: $Enums.DiscountTargetType | null;
|
|
1844
|
+
getYId?: bigint | number | null;
|
|
1845
|
+
getYAmount?: number | null;
|
|
1846
|
+
getYQty?: number | null;
|
|
1847
|
+
getYTargetType?: $Enums.DiscountTargetType | null;
|
|
1848
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartCreateNestedManyWithoutDiscountCodeInput;
|
|
1849
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutDiscountCodeInput;
|
|
1850
|
+
cartLine?: Prisma.CartLineCreateNestedManyWithoutDiscountCodeInput;
|
|
1851
|
+
};
|
|
1852
|
+
export type DiscountCodeUncheckedCreateWithoutRedemptionsInput = {
|
|
1853
|
+
id?: bigint | number;
|
|
1854
|
+
code: string;
|
|
1855
|
+
name: string;
|
|
1856
|
+
message?: string | null;
|
|
1857
|
+
createdAt?: Date | string;
|
|
1858
|
+
updatedAt?: Date | string;
|
|
1859
|
+
platformId?: string | null;
|
|
1860
|
+
storeIds?: Prisma.DiscountCodeCreatestoreIdsInput | string[];
|
|
1861
|
+
isActive?: boolean;
|
|
1862
|
+
startDate: Date | string;
|
|
1863
|
+
expiryDate: Date | string;
|
|
1864
|
+
isGlobal?: boolean;
|
|
1865
|
+
maxGlobalRedemptions?: number | null;
|
|
1866
|
+
maxRedemptionsPerUser?: number | null;
|
|
1867
|
+
maxRedemptionsPerCart?: number | null;
|
|
1868
|
+
minCartValue?: number | null;
|
|
1869
|
+
customerOnly?: boolean;
|
|
1870
|
+
activeDays?: Prisma.DiscountCodeCreateactiveDaysInput | $Enums.ActiveDays[];
|
|
1871
|
+
activeWeeks?: Prisma.DiscountCodeCreateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1872
|
+
timeStart?: Date | string | null;
|
|
1873
|
+
timeEnd?: Date | string | null;
|
|
1874
|
+
timezone?: $Enums.Timezone;
|
|
1875
|
+
discountType?: $Enums.DiscountType;
|
|
1876
|
+
discountApplicationType?: $Enums.DiscountApplicationType;
|
|
1877
|
+
discountPercentage?: number | null;
|
|
1878
|
+
discountAmount?: number | null;
|
|
1879
|
+
productIds?: Prisma.DiscountCodeCreateproductIdsInput | bigint[] | number[];
|
|
1880
|
+
productVariantIds?: Prisma.DiscountCodeCreateproductVariantIdsInput | bigint[] | number[];
|
|
1881
|
+
categoryIds?: Prisma.DiscountCodeCreatecategoryIdsInput | bigint[] | number[];
|
|
1882
|
+
collectionIds?: Prisma.DiscountCodeCreatecollectionIdsInput | bigint[] | number[];
|
|
1883
|
+
buyXId?: bigint | number | null;
|
|
1884
|
+
buyXAmount?: number | null;
|
|
1885
|
+
buyXQty?: number | null;
|
|
1886
|
+
buyXTargetType?: $Enums.DiscountTargetType | null;
|
|
1887
|
+
getYId?: bigint | number | null;
|
|
1888
|
+
getYAmount?: number | null;
|
|
1889
|
+
getYQty?: number | null;
|
|
1890
|
+
getYTargetType?: $Enums.DiscountTargetType | null;
|
|
1891
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
1892
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
1893
|
+
cartLine?: Prisma.CartLineUncheckedCreateNestedManyWithoutDiscountCodeInput;
|
|
1894
|
+
};
|
|
1895
|
+
export type DiscountCodeCreateOrConnectWithoutRedemptionsInput = {
|
|
1896
|
+
where: Prisma.DiscountCodeWhereUniqueInput;
|
|
1897
|
+
create: Prisma.XOR<Prisma.DiscountCodeCreateWithoutRedemptionsInput, Prisma.DiscountCodeUncheckedCreateWithoutRedemptionsInput>;
|
|
1898
|
+
};
|
|
1899
|
+
export type DiscountCodeUpsertWithoutRedemptionsInput = {
|
|
1900
|
+
update: Prisma.XOR<Prisma.DiscountCodeUpdateWithoutRedemptionsInput, Prisma.DiscountCodeUncheckedUpdateWithoutRedemptionsInput>;
|
|
1901
|
+
create: Prisma.XOR<Prisma.DiscountCodeCreateWithoutRedemptionsInput, Prisma.DiscountCodeUncheckedCreateWithoutRedemptionsInput>;
|
|
1902
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
1903
|
+
};
|
|
1904
|
+
export type DiscountCodeUpdateToOneWithWhereWithoutRedemptionsInput = {
|
|
1905
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
1906
|
+
data: Prisma.XOR<Prisma.DiscountCodeUpdateWithoutRedemptionsInput, Prisma.DiscountCodeUncheckedUpdateWithoutRedemptionsInput>;
|
|
1907
|
+
};
|
|
1908
|
+
export type DiscountCodeUpdateWithoutRedemptionsInput = {
|
|
1909
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
1910
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1911
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1912
|
+
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1913
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1914
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1915
|
+
platformId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1916
|
+
storeIds?: Prisma.DiscountCodeUpdatestoreIdsInput | string[];
|
|
1917
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1918
|
+
startDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1919
|
+
expiryDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1920
|
+
isGlobal?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1921
|
+
maxGlobalRedemptions?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1922
|
+
maxRedemptionsPerUser?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1923
|
+
maxRedemptionsPerCart?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1924
|
+
minCartValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1925
|
+
customerOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1926
|
+
activeDays?: Prisma.DiscountCodeUpdateactiveDaysInput | $Enums.ActiveDays[];
|
|
1927
|
+
activeWeeks?: Prisma.DiscountCodeUpdateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1928
|
+
timeStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1929
|
+
timeEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1930
|
+
timezone?: Prisma.EnumTimezoneFieldUpdateOperationsInput | $Enums.Timezone;
|
|
1931
|
+
discountType?: Prisma.EnumDiscountTypeFieldUpdateOperationsInput | $Enums.DiscountType;
|
|
1932
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFieldUpdateOperationsInput | $Enums.DiscountApplicationType;
|
|
1933
|
+
discountPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1934
|
+
discountAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1935
|
+
productIds?: Prisma.DiscountCodeUpdateproductIdsInput | bigint[] | number[];
|
|
1936
|
+
productVariantIds?: Prisma.DiscountCodeUpdateproductVariantIdsInput | bigint[] | number[];
|
|
1937
|
+
categoryIds?: Prisma.DiscountCodeUpdatecategoryIdsInput | bigint[] | number[];
|
|
1938
|
+
collectionIds?: Prisma.DiscountCodeUpdatecollectionIdsInput | bigint[] | number[];
|
|
1939
|
+
buyXId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1940
|
+
buyXAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1941
|
+
buyXQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1942
|
+
buyXTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1943
|
+
getYId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1944
|
+
getYAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1945
|
+
getYQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1946
|
+
getYTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1947
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartUpdateManyWithoutDiscountCodeNestedInput;
|
|
1948
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutDiscountCodeNestedInput;
|
|
1949
|
+
cartLine?: Prisma.CartLineUpdateManyWithoutDiscountCodeNestedInput;
|
|
1950
|
+
};
|
|
1951
|
+
export type DiscountCodeUncheckedUpdateWithoutRedemptionsInput = {
|
|
1952
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
1953
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1954
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
1955
|
+
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1956
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1957
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1958
|
+
platformId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
1959
|
+
storeIds?: Prisma.DiscountCodeUpdatestoreIdsInput | string[];
|
|
1960
|
+
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1961
|
+
startDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1962
|
+
expiryDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
1963
|
+
isGlobal?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1964
|
+
maxGlobalRedemptions?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1965
|
+
maxRedemptionsPerUser?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1966
|
+
maxRedemptionsPerCart?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1967
|
+
minCartValue?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1968
|
+
customerOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
1969
|
+
activeDays?: Prisma.DiscountCodeUpdateactiveDaysInput | $Enums.ActiveDays[];
|
|
1970
|
+
activeWeeks?: Prisma.DiscountCodeUpdateactiveWeeksInput | $Enums.ActiveWeeks[];
|
|
1971
|
+
timeStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1972
|
+
timeEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
1973
|
+
timezone?: Prisma.EnumTimezoneFieldUpdateOperationsInput | $Enums.Timezone;
|
|
1974
|
+
discountType?: Prisma.EnumDiscountTypeFieldUpdateOperationsInput | $Enums.DiscountType;
|
|
1975
|
+
discountApplicationType?: Prisma.EnumDiscountApplicationTypeFieldUpdateOperationsInput | $Enums.DiscountApplicationType;
|
|
1976
|
+
discountPercentage?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1977
|
+
discountAmount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
1978
|
+
productIds?: Prisma.DiscountCodeUpdateproductIdsInput | bigint[] | number[];
|
|
1979
|
+
productVariantIds?: Prisma.DiscountCodeUpdateproductVariantIdsInput | bigint[] | number[];
|
|
1980
|
+
categoryIds?: Prisma.DiscountCodeUpdatecategoryIdsInput | bigint[] | number[];
|
|
1981
|
+
collectionIds?: Prisma.DiscountCodeUpdatecollectionIdsInput | bigint[] | number[];
|
|
1982
|
+
buyXId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1983
|
+
buyXAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1984
|
+
buyXQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1985
|
+
buyXTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1986
|
+
getYId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
1987
|
+
getYAmount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1988
|
+
getYQty?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
1989
|
+
getYTargetType?: Prisma.NullableEnumDiscountTargetTypeFieldUpdateOperationsInput | $Enums.DiscountTargetType | null;
|
|
1990
|
+
discountCodesAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
1991
|
+
discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
1992
|
+
cartLine?: Prisma.CartLineUncheckedUpdateManyWithoutDiscountCodeNestedInput;
|
|
1993
|
+
};
|
|
1994
|
+
/**
|
|
1995
|
+
* Count Type DiscountCodeCountOutputType
|
|
1996
|
+
*/
|
|
1997
|
+
export type DiscountCodeCountOutputType = {
|
|
1998
|
+
redemptions: number;
|
|
1999
|
+
discountCodesAppliedToCart: number;
|
|
2000
|
+
discountCodeRedeemedOnCart: number;
|
|
2001
|
+
cartLine: number;
|
|
2002
|
+
};
|
|
2003
|
+
export type DiscountCodeCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2004
|
+
redemptions?: boolean | DiscountCodeCountOutputTypeCountRedemptionsArgs;
|
|
2005
|
+
discountCodesAppliedToCart?: boolean | DiscountCodeCountOutputTypeCountDiscountCodesAppliedToCartArgs;
|
|
2006
|
+
discountCodeRedeemedOnCart?: boolean | DiscountCodeCountOutputTypeCountDiscountCodeRedeemedOnCartArgs;
|
|
2007
|
+
cartLine?: boolean | DiscountCodeCountOutputTypeCountCartLineArgs;
|
|
2008
|
+
};
|
|
2009
|
+
/**
|
|
2010
|
+
* DiscountCodeCountOutputType without action
|
|
2011
|
+
*/
|
|
2012
|
+
export type DiscountCodeCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2013
|
+
/**
|
|
2014
|
+
* Select specific fields to fetch from the DiscountCodeCountOutputType
|
|
2015
|
+
*/
|
|
2016
|
+
select?: Prisma.DiscountCodeCountOutputTypeSelect<ExtArgs> | null;
|
|
2017
|
+
};
|
|
2018
|
+
/**
|
|
2019
|
+
* DiscountCodeCountOutputType without action
|
|
2020
|
+
*/
|
|
2021
|
+
export type DiscountCodeCountOutputTypeCountRedemptionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2022
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
2023
|
+
};
|
|
2024
|
+
/**
|
|
2025
|
+
* DiscountCodeCountOutputType without action
|
|
2026
|
+
*/
|
|
2027
|
+
export type DiscountCodeCountOutputTypeCountDiscountCodesAppliedToCartArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2028
|
+
where?: Prisma.DiscountCodeAppliedToCartWhereInput;
|
|
2029
|
+
};
|
|
2030
|
+
/**
|
|
2031
|
+
* DiscountCodeCountOutputType without action
|
|
2032
|
+
*/
|
|
2033
|
+
export type DiscountCodeCountOutputTypeCountDiscountCodeRedeemedOnCartArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2034
|
+
where?: Prisma.DiscountCodeRedeemedOnCartWhereInput;
|
|
2035
|
+
};
|
|
2036
|
+
/**
|
|
2037
|
+
* DiscountCodeCountOutputType without action
|
|
2038
|
+
*/
|
|
2039
|
+
export type DiscountCodeCountOutputTypeCountCartLineArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2040
|
+
where?: Prisma.CartLineWhereInput;
|
|
2041
|
+
};
|
|
2042
|
+
export type DiscountCodeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
2043
|
+
id?: boolean;
|
|
2044
|
+
code?: boolean;
|
|
2045
|
+
name?: boolean;
|
|
2046
|
+
message?: boolean;
|
|
2047
|
+
createdAt?: boolean;
|
|
2048
|
+
updatedAt?: boolean;
|
|
2049
|
+
platformId?: boolean;
|
|
2050
|
+
storeIds?: boolean;
|
|
2051
|
+
isActive?: boolean;
|
|
2052
|
+
startDate?: boolean;
|
|
2053
|
+
expiryDate?: boolean;
|
|
2054
|
+
isGlobal?: boolean;
|
|
2055
|
+
maxGlobalRedemptions?: boolean;
|
|
2056
|
+
maxRedemptionsPerUser?: boolean;
|
|
2057
|
+
maxRedemptionsPerCart?: boolean;
|
|
2058
|
+
minCartValue?: boolean;
|
|
2059
|
+
customerOnly?: boolean;
|
|
2060
|
+
activeDays?: boolean;
|
|
2061
|
+
activeWeeks?: boolean;
|
|
2062
|
+
timeStart?: boolean;
|
|
2063
|
+
timeEnd?: boolean;
|
|
2064
|
+
timezone?: boolean;
|
|
2065
|
+
discountType?: boolean;
|
|
2066
|
+
discountApplicationType?: boolean;
|
|
2067
|
+
discountPercentage?: boolean;
|
|
2068
|
+
discountAmount?: boolean;
|
|
2069
|
+
productIds?: boolean;
|
|
2070
|
+
productVariantIds?: boolean;
|
|
2071
|
+
categoryIds?: boolean;
|
|
2072
|
+
collectionIds?: boolean;
|
|
2073
|
+
buyXId?: boolean;
|
|
2074
|
+
buyXAmount?: boolean;
|
|
2075
|
+
buyXQty?: boolean;
|
|
2076
|
+
buyXTargetType?: boolean;
|
|
2077
|
+
getYId?: boolean;
|
|
2078
|
+
getYAmount?: boolean;
|
|
2079
|
+
getYQty?: boolean;
|
|
2080
|
+
getYTargetType?: boolean;
|
|
2081
|
+
redemptions?: boolean | Prisma.DiscountCode$redemptionsArgs<ExtArgs>;
|
|
2082
|
+
discountCodesAppliedToCart?: boolean | Prisma.DiscountCode$discountCodesAppliedToCartArgs<ExtArgs>;
|
|
2083
|
+
discountCodeRedeemedOnCart?: boolean | Prisma.DiscountCode$discountCodeRedeemedOnCartArgs<ExtArgs>;
|
|
2084
|
+
cartLine?: boolean | Prisma.DiscountCode$cartLineArgs<ExtArgs>;
|
|
2085
|
+
_count?: boolean | Prisma.DiscountCodeCountOutputTypeDefaultArgs<ExtArgs>;
|
|
2086
|
+
}, ExtArgs["result"]["discountCode"]>;
|
|
2087
|
+
export type DiscountCodeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
2088
|
+
id?: boolean;
|
|
2089
|
+
code?: boolean;
|
|
2090
|
+
name?: boolean;
|
|
2091
|
+
message?: boolean;
|
|
2092
|
+
createdAt?: boolean;
|
|
2093
|
+
updatedAt?: boolean;
|
|
2094
|
+
platformId?: boolean;
|
|
2095
|
+
storeIds?: boolean;
|
|
2096
|
+
isActive?: boolean;
|
|
2097
|
+
startDate?: boolean;
|
|
2098
|
+
expiryDate?: boolean;
|
|
2099
|
+
isGlobal?: boolean;
|
|
2100
|
+
maxGlobalRedemptions?: boolean;
|
|
2101
|
+
maxRedemptionsPerUser?: boolean;
|
|
2102
|
+
maxRedemptionsPerCart?: boolean;
|
|
2103
|
+
minCartValue?: boolean;
|
|
2104
|
+
customerOnly?: boolean;
|
|
2105
|
+
activeDays?: boolean;
|
|
2106
|
+
activeWeeks?: boolean;
|
|
2107
|
+
timeStart?: boolean;
|
|
2108
|
+
timeEnd?: boolean;
|
|
2109
|
+
timezone?: boolean;
|
|
2110
|
+
discountType?: boolean;
|
|
2111
|
+
discountApplicationType?: boolean;
|
|
2112
|
+
discountPercentage?: boolean;
|
|
2113
|
+
discountAmount?: boolean;
|
|
2114
|
+
productIds?: boolean;
|
|
2115
|
+
productVariantIds?: boolean;
|
|
2116
|
+
categoryIds?: boolean;
|
|
2117
|
+
collectionIds?: boolean;
|
|
2118
|
+
buyXId?: boolean;
|
|
2119
|
+
buyXAmount?: boolean;
|
|
2120
|
+
buyXQty?: boolean;
|
|
2121
|
+
buyXTargetType?: boolean;
|
|
2122
|
+
getYId?: boolean;
|
|
2123
|
+
getYAmount?: boolean;
|
|
2124
|
+
getYQty?: boolean;
|
|
2125
|
+
getYTargetType?: boolean;
|
|
2126
|
+
}, ExtArgs["result"]["discountCode"]>;
|
|
2127
|
+
export type DiscountCodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
2128
|
+
id?: boolean;
|
|
2129
|
+
code?: boolean;
|
|
2130
|
+
name?: boolean;
|
|
2131
|
+
message?: boolean;
|
|
2132
|
+
createdAt?: boolean;
|
|
2133
|
+
updatedAt?: boolean;
|
|
2134
|
+
platformId?: boolean;
|
|
2135
|
+
storeIds?: boolean;
|
|
2136
|
+
isActive?: boolean;
|
|
2137
|
+
startDate?: boolean;
|
|
2138
|
+
expiryDate?: boolean;
|
|
2139
|
+
isGlobal?: boolean;
|
|
2140
|
+
maxGlobalRedemptions?: boolean;
|
|
2141
|
+
maxRedemptionsPerUser?: boolean;
|
|
2142
|
+
maxRedemptionsPerCart?: boolean;
|
|
2143
|
+
minCartValue?: boolean;
|
|
2144
|
+
customerOnly?: boolean;
|
|
2145
|
+
activeDays?: boolean;
|
|
2146
|
+
activeWeeks?: boolean;
|
|
2147
|
+
timeStart?: boolean;
|
|
2148
|
+
timeEnd?: boolean;
|
|
2149
|
+
timezone?: boolean;
|
|
2150
|
+
discountType?: boolean;
|
|
2151
|
+
discountApplicationType?: boolean;
|
|
2152
|
+
discountPercentage?: boolean;
|
|
2153
|
+
discountAmount?: boolean;
|
|
2154
|
+
productIds?: boolean;
|
|
2155
|
+
productVariantIds?: boolean;
|
|
2156
|
+
categoryIds?: boolean;
|
|
2157
|
+
collectionIds?: boolean;
|
|
2158
|
+
buyXId?: boolean;
|
|
2159
|
+
buyXAmount?: boolean;
|
|
2160
|
+
buyXQty?: boolean;
|
|
2161
|
+
buyXTargetType?: boolean;
|
|
2162
|
+
getYId?: boolean;
|
|
2163
|
+
getYAmount?: boolean;
|
|
2164
|
+
getYQty?: boolean;
|
|
2165
|
+
getYTargetType?: boolean;
|
|
2166
|
+
}, ExtArgs["result"]["discountCode"]>;
|
|
2167
|
+
export type DiscountCodeSelectScalar = {
|
|
2168
|
+
id?: boolean;
|
|
2169
|
+
code?: boolean;
|
|
2170
|
+
name?: boolean;
|
|
2171
|
+
message?: boolean;
|
|
2172
|
+
createdAt?: boolean;
|
|
2173
|
+
updatedAt?: boolean;
|
|
2174
|
+
platformId?: boolean;
|
|
2175
|
+
storeIds?: boolean;
|
|
2176
|
+
isActive?: boolean;
|
|
2177
|
+
startDate?: boolean;
|
|
2178
|
+
expiryDate?: boolean;
|
|
2179
|
+
isGlobal?: boolean;
|
|
2180
|
+
maxGlobalRedemptions?: boolean;
|
|
2181
|
+
maxRedemptionsPerUser?: boolean;
|
|
2182
|
+
maxRedemptionsPerCart?: boolean;
|
|
2183
|
+
minCartValue?: boolean;
|
|
2184
|
+
customerOnly?: boolean;
|
|
2185
|
+
activeDays?: boolean;
|
|
2186
|
+
activeWeeks?: boolean;
|
|
2187
|
+
timeStart?: boolean;
|
|
2188
|
+
timeEnd?: boolean;
|
|
2189
|
+
timezone?: boolean;
|
|
2190
|
+
discountType?: boolean;
|
|
2191
|
+
discountApplicationType?: boolean;
|
|
2192
|
+
discountPercentage?: boolean;
|
|
2193
|
+
discountAmount?: boolean;
|
|
2194
|
+
productIds?: boolean;
|
|
2195
|
+
productVariantIds?: boolean;
|
|
2196
|
+
categoryIds?: boolean;
|
|
2197
|
+
collectionIds?: boolean;
|
|
2198
|
+
buyXId?: boolean;
|
|
2199
|
+
buyXAmount?: boolean;
|
|
2200
|
+
buyXQty?: boolean;
|
|
2201
|
+
buyXTargetType?: boolean;
|
|
2202
|
+
getYId?: boolean;
|
|
2203
|
+
getYAmount?: boolean;
|
|
2204
|
+
getYQty?: boolean;
|
|
2205
|
+
getYTargetType?: boolean;
|
|
2206
|
+
};
|
|
2207
|
+
export type DiscountCodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "name" | "message" | "createdAt" | "updatedAt" | "platformId" | "storeIds" | "isActive" | "startDate" | "expiryDate" | "isGlobal" | "maxGlobalRedemptions" | "maxRedemptionsPerUser" | "maxRedemptionsPerCart" | "minCartValue" | "customerOnly" | "activeDays" | "activeWeeks" | "timeStart" | "timeEnd" | "timezone" | "discountType" | "discountApplicationType" | "discountPercentage" | "discountAmount" | "productIds" | "productVariantIds" | "categoryIds" | "collectionIds" | "buyXId" | "buyXAmount" | "buyXQty" | "buyXTargetType" | "getYId" | "getYAmount" | "getYQty" | "getYTargetType", ExtArgs["result"]["discountCode"]>;
|
|
2208
|
+
export type DiscountCodeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2209
|
+
redemptions?: boolean | Prisma.DiscountCode$redemptionsArgs<ExtArgs>;
|
|
2210
|
+
discountCodesAppliedToCart?: boolean | Prisma.DiscountCode$discountCodesAppliedToCartArgs<ExtArgs>;
|
|
2211
|
+
discountCodeRedeemedOnCart?: boolean | Prisma.DiscountCode$discountCodeRedeemedOnCartArgs<ExtArgs>;
|
|
2212
|
+
cartLine?: boolean | Prisma.DiscountCode$cartLineArgs<ExtArgs>;
|
|
2213
|
+
_count?: boolean | Prisma.DiscountCodeCountOutputTypeDefaultArgs<ExtArgs>;
|
|
2214
|
+
};
|
|
2215
|
+
export type DiscountCodeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
|
|
2216
|
+
export type DiscountCodeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
|
|
2217
|
+
export type $DiscountCodePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2218
|
+
name: "DiscountCode";
|
|
2219
|
+
objects: {
|
|
2220
|
+
redemptions: Prisma.$DiscountCodeRedemptionPayload<ExtArgs>[];
|
|
2221
|
+
discountCodesAppliedToCart: Prisma.$DiscountCodeAppliedToCartPayload<ExtArgs>[];
|
|
2222
|
+
discountCodeRedeemedOnCart: Prisma.$DiscountCodeRedeemedOnCartPayload<ExtArgs>[];
|
|
2223
|
+
cartLine: Prisma.$CartLinePayload<ExtArgs>[];
|
|
2224
|
+
};
|
|
2225
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
2226
|
+
id: bigint;
|
|
2227
|
+
code: string;
|
|
2228
|
+
name: string;
|
|
2229
|
+
message: string | null;
|
|
2230
|
+
createdAt: Date;
|
|
2231
|
+
updatedAt: Date;
|
|
2232
|
+
platformId: string | null;
|
|
2233
|
+
storeIds: string[];
|
|
2234
|
+
isActive: boolean;
|
|
2235
|
+
startDate: Date;
|
|
2236
|
+
expiryDate: Date;
|
|
2237
|
+
isGlobal: boolean;
|
|
2238
|
+
maxGlobalRedemptions: number | null;
|
|
2239
|
+
maxRedemptionsPerUser: number | null;
|
|
2240
|
+
maxRedemptionsPerCart: number | null;
|
|
2241
|
+
minCartValue: number | null;
|
|
2242
|
+
customerOnly: boolean;
|
|
2243
|
+
activeDays: $Enums.ActiveDays[];
|
|
2244
|
+
activeWeeks: $Enums.ActiveWeeks[];
|
|
2245
|
+
timeStart: Date | null;
|
|
2246
|
+
timeEnd: Date | null;
|
|
2247
|
+
timezone: $Enums.Timezone;
|
|
2248
|
+
discountType: $Enums.DiscountType;
|
|
2249
|
+
discountApplicationType: $Enums.DiscountApplicationType;
|
|
2250
|
+
discountPercentage: number | null;
|
|
2251
|
+
discountAmount: number | null;
|
|
2252
|
+
productIds: bigint[];
|
|
2253
|
+
productVariantIds: bigint[];
|
|
2254
|
+
categoryIds: bigint[];
|
|
2255
|
+
collectionIds: bigint[];
|
|
2256
|
+
buyXId: bigint | null;
|
|
2257
|
+
buyXAmount: number | null;
|
|
2258
|
+
buyXQty: number | null;
|
|
2259
|
+
buyXTargetType: $Enums.DiscountTargetType | null;
|
|
2260
|
+
getYId: bigint | null;
|
|
2261
|
+
getYAmount: number | null;
|
|
2262
|
+
getYQty: number | null;
|
|
2263
|
+
getYTargetType: $Enums.DiscountTargetType | null;
|
|
2264
|
+
}, ExtArgs["result"]["discountCode"]>;
|
|
2265
|
+
composites: {};
|
|
2266
|
+
};
|
|
2267
|
+
export type DiscountCodeGetPayload<S extends boolean | null | undefined | DiscountCodeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload, S>;
|
|
2268
|
+
export type DiscountCodeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<DiscountCodeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
2269
|
+
select?: DiscountCodeCountAggregateInputType | true;
|
|
2270
|
+
};
|
|
2271
|
+
export interface DiscountCodeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
2272
|
+
[K: symbol]: {
|
|
2273
|
+
types: Prisma.TypeMap<ExtArgs>['model']['DiscountCode'];
|
|
2274
|
+
meta: {
|
|
2275
|
+
name: 'DiscountCode';
|
|
2276
|
+
};
|
|
2277
|
+
};
|
|
2278
|
+
/**
|
|
2279
|
+
* Find zero or one DiscountCode that matches the filter.
|
|
2280
|
+
* @param {DiscountCodeFindUniqueArgs} args - Arguments to find a DiscountCode
|
|
2281
|
+
* @example
|
|
2282
|
+
* // Get one DiscountCode
|
|
2283
|
+
* const discountCode = await prisma.discountCode.findUnique({
|
|
2284
|
+
* where: {
|
|
2285
|
+
* // ... provide filter here
|
|
2286
|
+
* }
|
|
2287
|
+
* })
|
|
2288
|
+
*/
|
|
2289
|
+
findUnique<T extends DiscountCodeFindUniqueArgs>(args: Prisma.SelectSubset<T, DiscountCodeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2290
|
+
/**
|
|
2291
|
+
* Find one DiscountCode that matches the filter or throw an error with `error.code='P2025'`
|
|
2292
|
+
* if no matches were found.
|
|
2293
|
+
* @param {DiscountCodeFindUniqueOrThrowArgs} args - Arguments to find a DiscountCode
|
|
2294
|
+
* @example
|
|
2295
|
+
* // Get one DiscountCode
|
|
2296
|
+
* const discountCode = await prisma.discountCode.findUniqueOrThrow({
|
|
2297
|
+
* where: {
|
|
2298
|
+
* // ... provide filter here
|
|
2299
|
+
* }
|
|
2300
|
+
* })
|
|
2301
|
+
*/
|
|
2302
|
+
findUniqueOrThrow<T extends DiscountCodeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DiscountCodeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2303
|
+
/**
|
|
2304
|
+
* Find the first DiscountCode that matches the filter.
|
|
2305
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2306
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2307
|
+
* @param {DiscountCodeFindFirstArgs} args - Arguments to find a DiscountCode
|
|
2308
|
+
* @example
|
|
2309
|
+
* // Get one DiscountCode
|
|
2310
|
+
* const discountCode = await prisma.discountCode.findFirst({
|
|
2311
|
+
* where: {
|
|
2312
|
+
* // ... provide filter here
|
|
2313
|
+
* }
|
|
2314
|
+
* })
|
|
2315
|
+
*/
|
|
2316
|
+
findFirst<T extends DiscountCodeFindFirstArgs>(args?: Prisma.SelectSubset<T, DiscountCodeFindFirstArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
2317
|
+
/**
|
|
2318
|
+
* Find the first DiscountCode that matches the filter or
|
|
2319
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
2320
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2321
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2322
|
+
* @param {DiscountCodeFindFirstOrThrowArgs} args - Arguments to find a DiscountCode
|
|
2323
|
+
* @example
|
|
2324
|
+
* // Get one DiscountCode
|
|
2325
|
+
* const discountCode = await prisma.discountCode.findFirstOrThrow({
|
|
2326
|
+
* where: {
|
|
2327
|
+
* // ... provide filter here
|
|
2328
|
+
* }
|
|
2329
|
+
* })
|
|
2330
|
+
*/
|
|
2331
|
+
findFirstOrThrow<T extends DiscountCodeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DiscountCodeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2332
|
+
/**
|
|
2333
|
+
* Find zero or more DiscountCodes that matches the filter.
|
|
2334
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2335
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2336
|
+
* @param {DiscountCodeFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
2337
|
+
* @example
|
|
2338
|
+
* // Get all DiscountCodes
|
|
2339
|
+
* const discountCodes = await prisma.discountCode.findMany()
|
|
2340
|
+
*
|
|
2341
|
+
* // Get first 10 DiscountCodes
|
|
2342
|
+
* const discountCodes = await prisma.discountCode.findMany({ take: 10 })
|
|
2343
|
+
*
|
|
2344
|
+
* // Only select the `id`
|
|
2345
|
+
* const discountCodeWithIdOnly = await prisma.discountCode.findMany({ select: { id: true } })
|
|
2346
|
+
*
|
|
2347
|
+
*/
|
|
2348
|
+
findMany<T extends DiscountCodeFindManyArgs>(args?: Prisma.SelectSubset<T, DiscountCodeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
2349
|
+
/**
|
|
2350
|
+
* Create a DiscountCode.
|
|
2351
|
+
* @param {DiscountCodeCreateArgs} args - Arguments to create a DiscountCode.
|
|
2352
|
+
* @example
|
|
2353
|
+
* // Create one DiscountCode
|
|
2354
|
+
* const DiscountCode = await prisma.discountCode.create({
|
|
2355
|
+
* data: {
|
|
2356
|
+
* // ... data to create a DiscountCode
|
|
2357
|
+
* }
|
|
2358
|
+
* })
|
|
2359
|
+
*
|
|
2360
|
+
*/
|
|
2361
|
+
create<T extends DiscountCodeCreateArgs>(args: Prisma.SelectSubset<T, DiscountCodeCreateArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2362
|
+
/**
|
|
2363
|
+
* Create many DiscountCodes.
|
|
2364
|
+
* @param {DiscountCodeCreateManyArgs} args - Arguments to create many DiscountCodes.
|
|
2365
|
+
* @example
|
|
2366
|
+
* // Create many DiscountCodes
|
|
2367
|
+
* const discountCode = await prisma.discountCode.createMany({
|
|
2368
|
+
* data: [
|
|
2369
|
+
* // ... provide data here
|
|
2370
|
+
* ]
|
|
2371
|
+
* })
|
|
2372
|
+
*
|
|
2373
|
+
*/
|
|
2374
|
+
createMany<T extends DiscountCodeCreateManyArgs>(args?: Prisma.SelectSubset<T, DiscountCodeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
2375
|
+
/**
|
|
2376
|
+
* Create many DiscountCodes and returns the data saved in the database.
|
|
2377
|
+
* @param {DiscountCodeCreateManyAndReturnArgs} args - Arguments to create many DiscountCodes.
|
|
2378
|
+
* @example
|
|
2379
|
+
* // Create many DiscountCodes
|
|
2380
|
+
* const discountCode = await prisma.discountCode.createManyAndReturn({
|
|
2381
|
+
* data: [
|
|
2382
|
+
* // ... provide data here
|
|
2383
|
+
* ]
|
|
2384
|
+
* })
|
|
2385
|
+
*
|
|
2386
|
+
* // Create many DiscountCodes and only return the `id`
|
|
2387
|
+
* const discountCodeWithIdOnly = await prisma.discountCode.createManyAndReturn({
|
|
2388
|
+
* select: { id: true },
|
|
2389
|
+
* data: [
|
|
2390
|
+
* // ... provide data here
|
|
2391
|
+
* ]
|
|
2392
|
+
* })
|
|
2393
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2394
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2395
|
+
*
|
|
2396
|
+
*/
|
|
2397
|
+
createManyAndReturn<T extends DiscountCodeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DiscountCodeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
2398
|
+
/**
|
|
2399
|
+
* Delete a DiscountCode.
|
|
2400
|
+
* @param {DiscountCodeDeleteArgs} args - Arguments to delete one DiscountCode.
|
|
2401
|
+
* @example
|
|
2402
|
+
* // Delete one DiscountCode
|
|
2403
|
+
* const DiscountCode = await prisma.discountCode.delete({
|
|
2404
|
+
* where: {
|
|
2405
|
+
* // ... filter to delete one DiscountCode
|
|
2406
|
+
* }
|
|
2407
|
+
* })
|
|
2408
|
+
*
|
|
2409
|
+
*/
|
|
2410
|
+
delete<T extends DiscountCodeDeleteArgs>(args: Prisma.SelectSubset<T, DiscountCodeDeleteArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2411
|
+
/**
|
|
2412
|
+
* Update one DiscountCode.
|
|
2413
|
+
* @param {DiscountCodeUpdateArgs} args - Arguments to update one DiscountCode.
|
|
2414
|
+
* @example
|
|
2415
|
+
* // Update one DiscountCode
|
|
2416
|
+
* const discountCode = await prisma.discountCode.update({
|
|
2417
|
+
* where: {
|
|
2418
|
+
* // ... provide filter here
|
|
2419
|
+
* },
|
|
2420
|
+
* data: {
|
|
2421
|
+
* // ... provide data here
|
|
2422
|
+
* }
|
|
2423
|
+
* })
|
|
2424
|
+
*
|
|
2425
|
+
*/
|
|
2426
|
+
update<T extends DiscountCodeUpdateArgs>(args: Prisma.SelectSubset<T, DiscountCodeUpdateArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2427
|
+
/**
|
|
2428
|
+
* Delete zero or more DiscountCodes.
|
|
2429
|
+
* @param {DiscountCodeDeleteManyArgs} args - Arguments to filter DiscountCodes to delete.
|
|
2430
|
+
* @example
|
|
2431
|
+
* // Delete a few DiscountCodes
|
|
2432
|
+
* const { count } = await prisma.discountCode.deleteMany({
|
|
2433
|
+
* where: {
|
|
2434
|
+
* // ... provide filter here
|
|
2435
|
+
* }
|
|
2436
|
+
* })
|
|
2437
|
+
*
|
|
2438
|
+
*/
|
|
2439
|
+
deleteMany<T extends DiscountCodeDeleteManyArgs>(args?: Prisma.SelectSubset<T, DiscountCodeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
2440
|
+
/**
|
|
2441
|
+
* Update zero or more DiscountCodes.
|
|
2442
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2443
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2444
|
+
* @param {DiscountCodeUpdateManyArgs} args - Arguments to update one or more rows.
|
|
2445
|
+
* @example
|
|
2446
|
+
* // Update many DiscountCodes
|
|
2447
|
+
* const discountCode = await prisma.discountCode.updateMany({
|
|
2448
|
+
* where: {
|
|
2449
|
+
* // ... provide filter here
|
|
2450
|
+
* },
|
|
2451
|
+
* data: {
|
|
2452
|
+
* // ... provide data here
|
|
2453
|
+
* }
|
|
2454
|
+
* })
|
|
2455
|
+
*
|
|
2456
|
+
*/
|
|
2457
|
+
updateMany<T extends DiscountCodeUpdateManyArgs>(args: Prisma.SelectSubset<T, DiscountCodeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
2458
|
+
/**
|
|
2459
|
+
* Update zero or more DiscountCodes and returns the data updated in the database.
|
|
2460
|
+
* @param {DiscountCodeUpdateManyAndReturnArgs} args - Arguments to update many DiscountCodes.
|
|
2461
|
+
* @example
|
|
2462
|
+
* // Update many DiscountCodes
|
|
2463
|
+
* const discountCode = await prisma.discountCode.updateManyAndReturn({
|
|
2464
|
+
* where: {
|
|
2465
|
+
* // ... provide filter here
|
|
2466
|
+
* },
|
|
2467
|
+
* data: [
|
|
2468
|
+
* // ... provide data here
|
|
2469
|
+
* ]
|
|
2470
|
+
* })
|
|
2471
|
+
*
|
|
2472
|
+
* // Update zero or more DiscountCodes and only return the `id`
|
|
2473
|
+
* const discountCodeWithIdOnly = await prisma.discountCode.updateManyAndReturn({
|
|
2474
|
+
* select: { id: true },
|
|
2475
|
+
* where: {
|
|
2476
|
+
* // ... provide filter here
|
|
2477
|
+
* },
|
|
2478
|
+
* data: [
|
|
2479
|
+
* // ... provide data here
|
|
2480
|
+
* ]
|
|
2481
|
+
* })
|
|
2482
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2483
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2484
|
+
*
|
|
2485
|
+
*/
|
|
2486
|
+
updateManyAndReturn<T extends DiscountCodeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DiscountCodeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
2487
|
+
/**
|
|
2488
|
+
* Create or update one DiscountCode.
|
|
2489
|
+
* @param {DiscountCodeUpsertArgs} args - Arguments to update or create a DiscountCode.
|
|
2490
|
+
* @example
|
|
2491
|
+
* // Update or create a DiscountCode
|
|
2492
|
+
* const discountCode = await prisma.discountCode.upsert({
|
|
2493
|
+
* create: {
|
|
2494
|
+
* // ... data to create a DiscountCode
|
|
2495
|
+
* },
|
|
2496
|
+
* update: {
|
|
2497
|
+
* // ... in case it already exists, update
|
|
2498
|
+
* },
|
|
2499
|
+
* where: {
|
|
2500
|
+
* // ... the filter for the DiscountCode we want to update
|
|
2501
|
+
* }
|
|
2502
|
+
* })
|
|
2503
|
+
*/
|
|
2504
|
+
upsert<T extends DiscountCodeUpsertArgs>(args: Prisma.SelectSubset<T, DiscountCodeUpsertArgs<ExtArgs>>): Prisma.Prisma__DiscountCodeClient<runtime.Types.Result.GetResult<Prisma.$DiscountCodePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
2505
|
+
/**
|
|
2506
|
+
* Count the number of DiscountCodes.
|
|
2507
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2508
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2509
|
+
* @param {DiscountCodeCountArgs} args - Arguments to filter DiscountCodes to count.
|
|
2510
|
+
* @example
|
|
2511
|
+
* // Count the number of DiscountCodes
|
|
2512
|
+
* const count = await prisma.discountCode.count({
|
|
2513
|
+
* where: {
|
|
2514
|
+
* // ... the filter for the DiscountCodes we want to count
|
|
2515
|
+
* }
|
|
2516
|
+
* })
|
|
2517
|
+
**/
|
|
2518
|
+
count<T extends DiscountCodeCountArgs>(args?: Prisma.Subset<T, DiscountCodeCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], DiscountCodeCountAggregateOutputType> : number>;
|
|
2519
|
+
/**
|
|
2520
|
+
* Allows you to perform aggregations operations on a DiscountCode.
|
|
2521
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2522
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2523
|
+
* @param {DiscountCodeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
2524
|
+
* @example
|
|
2525
|
+
* // Ordered by age ascending
|
|
2526
|
+
* // Where email contains prisma.io
|
|
2527
|
+
* // Limited to the 10 users
|
|
2528
|
+
* const aggregations = await prisma.user.aggregate({
|
|
2529
|
+
* _avg: {
|
|
2530
|
+
* age: true,
|
|
2531
|
+
* },
|
|
2532
|
+
* where: {
|
|
2533
|
+
* email: {
|
|
2534
|
+
* contains: "prisma.io",
|
|
2535
|
+
* },
|
|
2536
|
+
* },
|
|
2537
|
+
* orderBy: {
|
|
2538
|
+
* age: "asc",
|
|
2539
|
+
* },
|
|
2540
|
+
* take: 10,
|
|
2541
|
+
* })
|
|
2542
|
+
**/
|
|
2543
|
+
aggregate<T extends DiscountCodeAggregateArgs>(args: Prisma.Subset<T, DiscountCodeAggregateArgs>): Prisma.PrismaPromise<GetDiscountCodeAggregateType<T>>;
|
|
2544
|
+
/**
|
|
2545
|
+
* Group by DiscountCode.
|
|
2546
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
2547
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
2548
|
+
* @param {DiscountCodeGroupByArgs} args - Group by arguments.
|
|
2549
|
+
* @example
|
|
2550
|
+
* // Group by city, order by createdAt, get count
|
|
2551
|
+
* const result = await prisma.user.groupBy({
|
|
2552
|
+
* by: ['city', 'createdAt'],
|
|
2553
|
+
* orderBy: {
|
|
2554
|
+
* createdAt: true
|
|
2555
|
+
* },
|
|
2556
|
+
* _count: {
|
|
2557
|
+
* _all: true
|
|
2558
|
+
* },
|
|
2559
|
+
* })
|
|
2560
|
+
*
|
|
2561
|
+
**/
|
|
2562
|
+
groupBy<T extends DiscountCodeGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
2563
|
+
orderBy: DiscountCodeGroupByArgs['orderBy'];
|
|
2564
|
+
} : {
|
|
2565
|
+
orderBy?: DiscountCodeGroupByArgs['orderBy'];
|
|
2566
|
+
}, 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 ? {
|
|
2567
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
2568
|
+
Error,
|
|
2569
|
+
'Field ',
|
|
2570
|
+
P,
|
|
2571
|
+
` in "having" needs to be provided in "by"`
|
|
2572
|
+
];
|
|
2573
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
2574
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
2575
|
+
}[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 ? {} : {
|
|
2576
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
2577
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
2578
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
2579
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, DiscountCodeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDiscountCodeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
2580
|
+
/**
|
|
2581
|
+
* Fields of the DiscountCode model
|
|
2582
|
+
*/
|
|
2583
|
+
readonly fields: DiscountCodeFieldRefs;
|
|
2584
|
+
}
|
|
2585
|
+
/**
|
|
2586
|
+
* The delegate class that acts as a "Promise-like" for DiscountCode.
|
|
2587
|
+
* Why is this prefixed with `Prisma__`?
|
|
2588
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
2589
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
2590
|
+
*/
|
|
2591
|
+
export interface Prisma__DiscountCodeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
2592
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
2593
|
+
redemptions<T extends Prisma.DiscountCode$redemptionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscountCode$redemptionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedemptionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
2594
|
+
discountCodesAppliedToCart<T extends Prisma.DiscountCode$discountCodesAppliedToCartArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscountCode$discountCodesAppliedToCartArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscountCodeAppliedToCartPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
2595
|
+
discountCodeRedeemedOnCart<T extends Prisma.DiscountCode$discountCodeRedeemedOnCartArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscountCode$discountCodeRedeemedOnCartArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedeemedOnCartPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
2596
|
+
cartLine<T extends Prisma.DiscountCode$cartLineArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DiscountCode$cartLineArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CartLinePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
2597
|
+
/**
|
|
2598
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
2599
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
2600
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
2601
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
2602
|
+
*/
|
|
2603
|
+
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>;
|
|
2604
|
+
/**
|
|
2605
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
2606
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
2607
|
+
* @returns A Promise for the completion of the callback.
|
|
2608
|
+
*/
|
|
2609
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
2610
|
+
/**
|
|
2611
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
2612
|
+
* resolved value cannot be modified from the callback.
|
|
2613
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
2614
|
+
* @returns A Promise for the completion of the callback.
|
|
2615
|
+
*/
|
|
2616
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
2617
|
+
}
|
|
2618
|
+
/**
|
|
2619
|
+
* Fields of the DiscountCode model
|
|
2620
|
+
*/
|
|
2621
|
+
export interface DiscountCodeFieldRefs {
|
|
2622
|
+
readonly id: Prisma.FieldRef<"DiscountCode", 'BigInt'>;
|
|
2623
|
+
readonly code: Prisma.FieldRef<"DiscountCode", 'String'>;
|
|
2624
|
+
readonly name: Prisma.FieldRef<"DiscountCode", 'String'>;
|
|
2625
|
+
readonly message: Prisma.FieldRef<"DiscountCode", 'String'>;
|
|
2626
|
+
readonly createdAt: Prisma.FieldRef<"DiscountCode", 'DateTime'>;
|
|
2627
|
+
readonly updatedAt: Prisma.FieldRef<"DiscountCode", 'DateTime'>;
|
|
2628
|
+
readonly platformId: Prisma.FieldRef<"DiscountCode", 'String'>;
|
|
2629
|
+
readonly storeIds: Prisma.FieldRef<"DiscountCode", 'String[]'>;
|
|
2630
|
+
readonly isActive: Prisma.FieldRef<"DiscountCode", 'Boolean'>;
|
|
2631
|
+
readonly startDate: Prisma.FieldRef<"DiscountCode", 'DateTime'>;
|
|
2632
|
+
readonly expiryDate: Prisma.FieldRef<"DiscountCode", 'DateTime'>;
|
|
2633
|
+
readonly isGlobal: Prisma.FieldRef<"DiscountCode", 'Boolean'>;
|
|
2634
|
+
readonly maxGlobalRedemptions: Prisma.FieldRef<"DiscountCode", 'Int'>;
|
|
2635
|
+
readonly maxRedemptionsPerUser: Prisma.FieldRef<"DiscountCode", 'Int'>;
|
|
2636
|
+
readonly maxRedemptionsPerCart: Prisma.FieldRef<"DiscountCode", 'Int'>;
|
|
2637
|
+
readonly minCartValue: Prisma.FieldRef<"DiscountCode", 'Float'>;
|
|
2638
|
+
readonly customerOnly: Prisma.FieldRef<"DiscountCode", 'Boolean'>;
|
|
2639
|
+
readonly activeDays: Prisma.FieldRef<"DiscountCode", 'ActiveDays[]'>;
|
|
2640
|
+
readonly activeWeeks: Prisma.FieldRef<"DiscountCode", 'ActiveWeeks[]'>;
|
|
2641
|
+
readonly timeStart: Prisma.FieldRef<"DiscountCode", 'DateTime'>;
|
|
2642
|
+
readonly timeEnd: Prisma.FieldRef<"DiscountCode", 'DateTime'>;
|
|
2643
|
+
readonly timezone: Prisma.FieldRef<"DiscountCode", 'Timezone'>;
|
|
2644
|
+
readonly discountType: Prisma.FieldRef<"DiscountCode", 'DiscountType'>;
|
|
2645
|
+
readonly discountApplicationType: Prisma.FieldRef<"DiscountCode", 'DiscountApplicationType'>;
|
|
2646
|
+
readonly discountPercentage: Prisma.FieldRef<"DiscountCode", 'Float'>;
|
|
2647
|
+
readonly discountAmount: Prisma.FieldRef<"DiscountCode", 'Float'>;
|
|
2648
|
+
readonly productIds: Prisma.FieldRef<"DiscountCode", 'BigInt[]'>;
|
|
2649
|
+
readonly productVariantIds: Prisma.FieldRef<"DiscountCode", 'BigInt[]'>;
|
|
2650
|
+
readonly categoryIds: Prisma.FieldRef<"DiscountCode", 'BigInt[]'>;
|
|
2651
|
+
readonly collectionIds: Prisma.FieldRef<"DiscountCode", 'BigInt[]'>;
|
|
2652
|
+
readonly buyXId: Prisma.FieldRef<"DiscountCode", 'BigInt'>;
|
|
2653
|
+
readonly buyXAmount: Prisma.FieldRef<"DiscountCode", 'Int'>;
|
|
2654
|
+
readonly buyXQty: Prisma.FieldRef<"DiscountCode", 'Int'>;
|
|
2655
|
+
readonly buyXTargetType: Prisma.FieldRef<"DiscountCode", 'DiscountTargetType'>;
|
|
2656
|
+
readonly getYId: Prisma.FieldRef<"DiscountCode", 'BigInt'>;
|
|
2657
|
+
readonly getYAmount: Prisma.FieldRef<"DiscountCode", 'Int'>;
|
|
2658
|
+
readonly getYQty: Prisma.FieldRef<"DiscountCode", 'Int'>;
|
|
2659
|
+
readonly getYTargetType: Prisma.FieldRef<"DiscountCode", 'DiscountTargetType'>;
|
|
2660
|
+
}
|
|
2661
|
+
/**
|
|
2662
|
+
* DiscountCode findUnique
|
|
2663
|
+
*/
|
|
2664
|
+
export type DiscountCodeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2665
|
+
/**
|
|
2666
|
+
* Select specific fields to fetch from the DiscountCode
|
|
2667
|
+
*/
|
|
2668
|
+
select?: Prisma.DiscountCodeSelect<ExtArgs> | null;
|
|
2669
|
+
/**
|
|
2670
|
+
* Omit specific fields from the DiscountCode
|
|
2671
|
+
*/
|
|
2672
|
+
omit?: Prisma.DiscountCodeOmit<ExtArgs> | null;
|
|
2673
|
+
/**
|
|
2674
|
+
* Choose, which related nodes to fetch as well
|
|
2675
|
+
*/
|
|
2676
|
+
include?: Prisma.DiscountCodeInclude<ExtArgs> | null;
|
|
2677
|
+
/**
|
|
2678
|
+
* Filter, which DiscountCode to fetch.
|
|
2679
|
+
*/
|
|
2680
|
+
where: Prisma.DiscountCodeWhereUniqueInput;
|
|
2681
|
+
};
|
|
2682
|
+
/**
|
|
2683
|
+
* DiscountCode findUniqueOrThrow
|
|
2684
|
+
*/
|
|
2685
|
+
export type DiscountCodeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2686
|
+
/**
|
|
2687
|
+
* Select specific fields to fetch from the DiscountCode
|
|
2688
|
+
*/
|
|
2689
|
+
select?: Prisma.DiscountCodeSelect<ExtArgs> | null;
|
|
2690
|
+
/**
|
|
2691
|
+
* Omit specific fields from the DiscountCode
|
|
2692
|
+
*/
|
|
2693
|
+
omit?: Prisma.DiscountCodeOmit<ExtArgs> | null;
|
|
2694
|
+
/**
|
|
2695
|
+
* Choose, which related nodes to fetch as well
|
|
2696
|
+
*/
|
|
2697
|
+
include?: Prisma.DiscountCodeInclude<ExtArgs> | null;
|
|
2698
|
+
/**
|
|
2699
|
+
* Filter, which DiscountCode to fetch.
|
|
2700
|
+
*/
|
|
2701
|
+
where: Prisma.DiscountCodeWhereUniqueInput;
|
|
2702
|
+
};
|
|
2703
|
+
/**
|
|
2704
|
+
* DiscountCode findFirst
|
|
2705
|
+
*/
|
|
2706
|
+
export type DiscountCodeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2707
|
+
/**
|
|
2708
|
+
* Select specific fields to fetch from the DiscountCode
|
|
2709
|
+
*/
|
|
2710
|
+
select?: Prisma.DiscountCodeSelect<ExtArgs> | null;
|
|
2711
|
+
/**
|
|
2712
|
+
* Omit specific fields from the DiscountCode
|
|
2713
|
+
*/
|
|
2714
|
+
omit?: Prisma.DiscountCodeOmit<ExtArgs> | null;
|
|
2715
|
+
/**
|
|
2716
|
+
* Choose, which related nodes to fetch as well
|
|
2717
|
+
*/
|
|
2718
|
+
include?: Prisma.DiscountCodeInclude<ExtArgs> | null;
|
|
2719
|
+
/**
|
|
2720
|
+
* Filter, which DiscountCode to fetch.
|
|
2721
|
+
*/
|
|
2722
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
2723
|
+
/**
|
|
2724
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2725
|
+
*
|
|
2726
|
+
* Determine the order of DiscountCodes to fetch.
|
|
2727
|
+
*/
|
|
2728
|
+
orderBy?: Prisma.DiscountCodeOrderByWithRelationInput | Prisma.DiscountCodeOrderByWithRelationInput[];
|
|
2729
|
+
/**
|
|
2730
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2731
|
+
*
|
|
2732
|
+
* Sets the position for searching for DiscountCodes.
|
|
2733
|
+
*/
|
|
2734
|
+
cursor?: Prisma.DiscountCodeWhereUniqueInput;
|
|
2735
|
+
/**
|
|
2736
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2737
|
+
*
|
|
2738
|
+
* Take `±n` DiscountCodes from the position of the cursor.
|
|
2739
|
+
*/
|
|
2740
|
+
take?: number;
|
|
2741
|
+
/**
|
|
2742
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2743
|
+
*
|
|
2744
|
+
* Skip the first `n` DiscountCodes.
|
|
2745
|
+
*/
|
|
2746
|
+
skip?: number;
|
|
2747
|
+
/**
|
|
2748
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2749
|
+
*
|
|
2750
|
+
* Filter by unique combinations of DiscountCodes.
|
|
2751
|
+
*/
|
|
2752
|
+
distinct?: Prisma.DiscountCodeScalarFieldEnum | Prisma.DiscountCodeScalarFieldEnum[];
|
|
2753
|
+
};
|
|
2754
|
+
/**
|
|
2755
|
+
* DiscountCode findFirstOrThrow
|
|
2756
|
+
*/
|
|
2757
|
+
export type DiscountCodeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2758
|
+
/**
|
|
2759
|
+
* Select specific fields to fetch from the DiscountCode
|
|
2760
|
+
*/
|
|
2761
|
+
select?: Prisma.DiscountCodeSelect<ExtArgs> | null;
|
|
2762
|
+
/**
|
|
2763
|
+
* Omit specific fields from the DiscountCode
|
|
2764
|
+
*/
|
|
2765
|
+
omit?: Prisma.DiscountCodeOmit<ExtArgs> | null;
|
|
2766
|
+
/**
|
|
2767
|
+
* Choose, which related nodes to fetch as well
|
|
2768
|
+
*/
|
|
2769
|
+
include?: Prisma.DiscountCodeInclude<ExtArgs> | null;
|
|
2770
|
+
/**
|
|
2771
|
+
* Filter, which DiscountCode to fetch.
|
|
2772
|
+
*/
|
|
2773
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
2774
|
+
/**
|
|
2775
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2776
|
+
*
|
|
2777
|
+
* Determine the order of DiscountCodes to fetch.
|
|
2778
|
+
*/
|
|
2779
|
+
orderBy?: Prisma.DiscountCodeOrderByWithRelationInput | Prisma.DiscountCodeOrderByWithRelationInput[];
|
|
2780
|
+
/**
|
|
2781
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2782
|
+
*
|
|
2783
|
+
* Sets the position for searching for DiscountCodes.
|
|
2784
|
+
*/
|
|
2785
|
+
cursor?: Prisma.DiscountCodeWhereUniqueInput;
|
|
2786
|
+
/**
|
|
2787
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2788
|
+
*
|
|
2789
|
+
* Take `±n` DiscountCodes from the position of the cursor.
|
|
2790
|
+
*/
|
|
2791
|
+
take?: number;
|
|
2792
|
+
/**
|
|
2793
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2794
|
+
*
|
|
2795
|
+
* Skip the first `n` DiscountCodes.
|
|
2796
|
+
*/
|
|
2797
|
+
skip?: number;
|
|
2798
|
+
/**
|
|
2799
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2800
|
+
*
|
|
2801
|
+
* Filter by unique combinations of DiscountCodes.
|
|
2802
|
+
*/
|
|
2803
|
+
distinct?: Prisma.DiscountCodeScalarFieldEnum | Prisma.DiscountCodeScalarFieldEnum[];
|
|
2804
|
+
};
|
|
2805
|
+
/**
|
|
2806
|
+
* DiscountCode findMany
|
|
2807
|
+
*/
|
|
2808
|
+
export type DiscountCodeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2809
|
+
/**
|
|
2810
|
+
* Select specific fields to fetch from the DiscountCode
|
|
2811
|
+
*/
|
|
2812
|
+
select?: Prisma.DiscountCodeSelect<ExtArgs> | null;
|
|
2813
|
+
/**
|
|
2814
|
+
* Omit specific fields from the DiscountCode
|
|
2815
|
+
*/
|
|
2816
|
+
omit?: Prisma.DiscountCodeOmit<ExtArgs> | null;
|
|
2817
|
+
/**
|
|
2818
|
+
* Choose, which related nodes to fetch as well
|
|
2819
|
+
*/
|
|
2820
|
+
include?: Prisma.DiscountCodeInclude<ExtArgs> | null;
|
|
2821
|
+
/**
|
|
2822
|
+
* Filter, which DiscountCodes to fetch.
|
|
2823
|
+
*/
|
|
2824
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
2825
|
+
/**
|
|
2826
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2827
|
+
*
|
|
2828
|
+
* Determine the order of DiscountCodes to fetch.
|
|
2829
|
+
*/
|
|
2830
|
+
orderBy?: Prisma.DiscountCodeOrderByWithRelationInput | Prisma.DiscountCodeOrderByWithRelationInput[];
|
|
2831
|
+
/**
|
|
2832
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2833
|
+
*
|
|
2834
|
+
* Sets the position for listing DiscountCodes.
|
|
2835
|
+
*/
|
|
2836
|
+
cursor?: Prisma.DiscountCodeWhereUniqueInput;
|
|
2837
|
+
/**
|
|
2838
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2839
|
+
*
|
|
2840
|
+
* Take `±n` DiscountCodes from the position of the cursor.
|
|
2841
|
+
*/
|
|
2842
|
+
take?: number;
|
|
2843
|
+
/**
|
|
2844
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2845
|
+
*
|
|
2846
|
+
* Skip the first `n` DiscountCodes.
|
|
2847
|
+
*/
|
|
2848
|
+
skip?: number;
|
|
2849
|
+
distinct?: Prisma.DiscountCodeScalarFieldEnum | Prisma.DiscountCodeScalarFieldEnum[];
|
|
2850
|
+
};
|
|
2851
|
+
/**
|
|
2852
|
+
* DiscountCode create
|
|
2853
|
+
*/
|
|
2854
|
+
export type DiscountCodeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2855
|
+
/**
|
|
2856
|
+
* Select specific fields to fetch from the DiscountCode
|
|
2857
|
+
*/
|
|
2858
|
+
select?: Prisma.DiscountCodeSelect<ExtArgs> | null;
|
|
2859
|
+
/**
|
|
2860
|
+
* Omit specific fields from the DiscountCode
|
|
2861
|
+
*/
|
|
2862
|
+
omit?: Prisma.DiscountCodeOmit<ExtArgs> | null;
|
|
2863
|
+
/**
|
|
2864
|
+
* Choose, which related nodes to fetch as well
|
|
2865
|
+
*/
|
|
2866
|
+
include?: Prisma.DiscountCodeInclude<ExtArgs> | null;
|
|
2867
|
+
/**
|
|
2868
|
+
* The data needed to create a DiscountCode.
|
|
2869
|
+
*/
|
|
2870
|
+
data: Prisma.XOR<Prisma.DiscountCodeCreateInput, Prisma.DiscountCodeUncheckedCreateInput>;
|
|
2871
|
+
};
|
|
2872
|
+
/**
|
|
2873
|
+
* DiscountCode createMany
|
|
2874
|
+
*/
|
|
2875
|
+
export type DiscountCodeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2876
|
+
/**
|
|
2877
|
+
* The data used to create many DiscountCodes.
|
|
2878
|
+
*/
|
|
2879
|
+
data: Prisma.DiscountCodeCreateManyInput | Prisma.DiscountCodeCreateManyInput[];
|
|
2880
|
+
skipDuplicates?: boolean;
|
|
2881
|
+
};
|
|
2882
|
+
/**
|
|
2883
|
+
* DiscountCode createManyAndReturn
|
|
2884
|
+
*/
|
|
2885
|
+
export type DiscountCodeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2886
|
+
/**
|
|
2887
|
+
* Select specific fields to fetch from the DiscountCode
|
|
2888
|
+
*/
|
|
2889
|
+
select?: Prisma.DiscountCodeSelectCreateManyAndReturn<ExtArgs> | null;
|
|
2890
|
+
/**
|
|
2891
|
+
* Omit specific fields from the DiscountCode
|
|
2892
|
+
*/
|
|
2893
|
+
omit?: Prisma.DiscountCodeOmit<ExtArgs> | null;
|
|
2894
|
+
/**
|
|
2895
|
+
* The data used to create many DiscountCodes.
|
|
2896
|
+
*/
|
|
2897
|
+
data: Prisma.DiscountCodeCreateManyInput | Prisma.DiscountCodeCreateManyInput[];
|
|
2898
|
+
skipDuplicates?: boolean;
|
|
2899
|
+
};
|
|
2900
|
+
/**
|
|
2901
|
+
* DiscountCode update
|
|
2902
|
+
*/
|
|
2903
|
+
export type DiscountCodeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2904
|
+
/**
|
|
2905
|
+
* Select specific fields to fetch from the DiscountCode
|
|
2906
|
+
*/
|
|
2907
|
+
select?: Prisma.DiscountCodeSelect<ExtArgs> | null;
|
|
2908
|
+
/**
|
|
2909
|
+
* Omit specific fields from the DiscountCode
|
|
2910
|
+
*/
|
|
2911
|
+
omit?: Prisma.DiscountCodeOmit<ExtArgs> | null;
|
|
2912
|
+
/**
|
|
2913
|
+
* Choose, which related nodes to fetch as well
|
|
2914
|
+
*/
|
|
2915
|
+
include?: Prisma.DiscountCodeInclude<ExtArgs> | null;
|
|
2916
|
+
/**
|
|
2917
|
+
* The data needed to update a DiscountCode.
|
|
2918
|
+
*/
|
|
2919
|
+
data: Prisma.XOR<Prisma.DiscountCodeUpdateInput, Prisma.DiscountCodeUncheckedUpdateInput>;
|
|
2920
|
+
/**
|
|
2921
|
+
* Choose, which DiscountCode to update.
|
|
2922
|
+
*/
|
|
2923
|
+
where: Prisma.DiscountCodeWhereUniqueInput;
|
|
2924
|
+
};
|
|
2925
|
+
/**
|
|
2926
|
+
* DiscountCode updateMany
|
|
2927
|
+
*/
|
|
2928
|
+
export type DiscountCodeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2929
|
+
/**
|
|
2930
|
+
* The data used to update DiscountCodes.
|
|
2931
|
+
*/
|
|
2932
|
+
data: Prisma.XOR<Prisma.DiscountCodeUpdateManyMutationInput, Prisma.DiscountCodeUncheckedUpdateManyInput>;
|
|
2933
|
+
/**
|
|
2934
|
+
* Filter which DiscountCodes to update
|
|
2935
|
+
*/
|
|
2936
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
2937
|
+
/**
|
|
2938
|
+
* Limit how many DiscountCodes to update.
|
|
2939
|
+
*/
|
|
2940
|
+
limit?: number;
|
|
2941
|
+
};
|
|
2942
|
+
/**
|
|
2943
|
+
* DiscountCode updateManyAndReturn
|
|
2944
|
+
*/
|
|
2945
|
+
export type DiscountCodeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2946
|
+
/**
|
|
2947
|
+
* Select specific fields to fetch from the DiscountCode
|
|
2948
|
+
*/
|
|
2949
|
+
select?: Prisma.DiscountCodeSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
2950
|
+
/**
|
|
2951
|
+
* Omit specific fields from the DiscountCode
|
|
2952
|
+
*/
|
|
2953
|
+
omit?: Prisma.DiscountCodeOmit<ExtArgs> | null;
|
|
2954
|
+
/**
|
|
2955
|
+
* The data used to update DiscountCodes.
|
|
2956
|
+
*/
|
|
2957
|
+
data: Prisma.XOR<Prisma.DiscountCodeUpdateManyMutationInput, Prisma.DiscountCodeUncheckedUpdateManyInput>;
|
|
2958
|
+
/**
|
|
2959
|
+
* Filter which DiscountCodes to update
|
|
2960
|
+
*/
|
|
2961
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
2962
|
+
/**
|
|
2963
|
+
* Limit how many DiscountCodes to update.
|
|
2964
|
+
*/
|
|
2965
|
+
limit?: number;
|
|
2966
|
+
};
|
|
2967
|
+
/**
|
|
2968
|
+
* DiscountCode upsert
|
|
2969
|
+
*/
|
|
2970
|
+
export type DiscountCodeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2971
|
+
/**
|
|
2972
|
+
* Select specific fields to fetch from the DiscountCode
|
|
2973
|
+
*/
|
|
2974
|
+
select?: Prisma.DiscountCodeSelect<ExtArgs> | null;
|
|
2975
|
+
/**
|
|
2976
|
+
* Omit specific fields from the DiscountCode
|
|
2977
|
+
*/
|
|
2978
|
+
omit?: Prisma.DiscountCodeOmit<ExtArgs> | null;
|
|
2979
|
+
/**
|
|
2980
|
+
* Choose, which related nodes to fetch as well
|
|
2981
|
+
*/
|
|
2982
|
+
include?: Prisma.DiscountCodeInclude<ExtArgs> | null;
|
|
2983
|
+
/**
|
|
2984
|
+
* The filter to search for the DiscountCode to update in case it exists.
|
|
2985
|
+
*/
|
|
2986
|
+
where: Prisma.DiscountCodeWhereUniqueInput;
|
|
2987
|
+
/**
|
|
2988
|
+
* In case the DiscountCode found by the `where` argument doesn't exist, create a new DiscountCode with this data.
|
|
2989
|
+
*/
|
|
2990
|
+
create: Prisma.XOR<Prisma.DiscountCodeCreateInput, Prisma.DiscountCodeUncheckedCreateInput>;
|
|
2991
|
+
/**
|
|
2992
|
+
* In case the DiscountCode was found with the provided `where` argument, update it with this data.
|
|
2993
|
+
*/
|
|
2994
|
+
update: Prisma.XOR<Prisma.DiscountCodeUpdateInput, Prisma.DiscountCodeUncheckedUpdateInput>;
|
|
2995
|
+
};
|
|
2996
|
+
/**
|
|
2997
|
+
* DiscountCode delete
|
|
2998
|
+
*/
|
|
2999
|
+
export type DiscountCodeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3000
|
+
/**
|
|
3001
|
+
* Select specific fields to fetch from the DiscountCode
|
|
3002
|
+
*/
|
|
3003
|
+
select?: Prisma.DiscountCodeSelect<ExtArgs> | null;
|
|
3004
|
+
/**
|
|
3005
|
+
* Omit specific fields from the DiscountCode
|
|
3006
|
+
*/
|
|
3007
|
+
omit?: Prisma.DiscountCodeOmit<ExtArgs> | null;
|
|
3008
|
+
/**
|
|
3009
|
+
* Choose, which related nodes to fetch as well
|
|
3010
|
+
*/
|
|
3011
|
+
include?: Prisma.DiscountCodeInclude<ExtArgs> | null;
|
|
3012
|
+
/**
|
|
3013
|
+
* Filter which DiscountCode to delete.
|
|
3014
|
+
*/
|
|
3015
|
+
where: Prisma.DiscountCodeWhereUniqueInput;
|
|
3016
|
+
};
|
|
3017
|
+
/**
|
|
3018
|
+
* DiscountCode deleteMany
|
|
3019
|
+
*/
|
|
3020
|
+
export type DiscountCodeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3021
|
+
/**
|
|
3022
|
+
* Filter which DiscountCodes to delete
|
|
3023
|
+
*/
|
|
3024
|
+
where?: Prisma.DiscountCodeWhereInput;
|
|
3025
|
+
/**
|
|
3026
|
+
* Limit how many DiscountCodes to delete.
|
|
3027
|
+
*/
|
|
3028
|
+
limit?: number;
|
|
3029
|
+
};
|
|
3030
|
+
/**
|
|
3031
|
+
* DiscountCode.redemptions
|
|
3032
|
+
*/
|
|
3033
|
+
export type DiscountCode$redemptionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3034
|
+
/**
|
|
3035
|
+
* Select specific fields to fetch from the DiscountCodeRedemption
|
|
3036
|
+
*/
|
|
3037
|
+
select?: Prisma.DiscountCodeRedemptionSelect<ExtArgs> | null;
|
|
3038
|
+
/**
|
|
3039
|
+
* Omit specific fields from the DiscountCodeRedemption
|
|
3040
|
+
*/
|
|
3041
|
+
omit?: Prisma.DiscountCodeRedemptionOmit<ExtArgs> | null;
|
|
3042
|
+
/**
|
|
3043
|
+
* Choose, which related nodes to fetch as well
|
|
3044
|
+
*/
|
|
3045
|
+
include?: Prisma.DiscountCodeRedemptionInclude<ExtArgs> | null;
|
|
3046
|
+
where?: Prisma.DiscountCodeRedemptionWhereInput;
|
|
3047
|
+
orderBy?: Prisma.DiscountCodeRedemptionOrderByWithRelationInput | Prisma.DiscountCodeRedemptionOrderByWithRelationInput[];
|
|
3048
|
+
cursor?: Prisma.DiscountCodeRedemptionWhereUniqueInput;
|
|
3049
|
+
take?: number;
|
|
3050
|
+
skip?: number;
|
|
3051
|
+
distinct?: Prisma.DiscountCodeRedemptionScalarFieldEnum | Prisma.DiscountCodeRedemptionScalarFieldEnum[];
|
|
3052
|
+
};
|
|
3053
|
+
/**
|
|
3054
|
+
* DiscountCode.discountCodesAppliedToCart
|
|
3055
|
+
*/
|
|
3056
|
+
export type DiscountCode$discountCodesAppliedToCartArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3057
|
+
/**
|
|
3058
|
+
* Select specific fields to fetch from the DiscountCodeAppliedToCart
|
|
3059
|
+
*/
|
|
3060
|
+
select?: Prisma.DiscountCodeAppliedToCartSelect<ExtArgs> | null;
|
|
3061
|
+
/**
|
|
3062
|
+
* Omit specific fields from the DiscountCodeAppliedToCart
|
|
3063
|
+
*/
|
|
3064
|
+
omit?: Prisma.DiscountCodeAppliedToCartOmit<ExtArgs> | null;
|
|
3065
|
+
/**
|
|
3066
|
+
* Choose, which related nodes to fetch as well
|
|
3067
|
+
*/
|
|
3068
|
+
include?: Prisma.DiscountCodeAppliedToCartInclude<ExtArgs> | null;
|
|
3069
|
+
where?: Prisma.DiscountCodeAppliedToCartWhereInput;
|
|
3070
|
+
orderBy?: Prisma.DiscountCodeAppliedToCartOrderByWithRelationInput | Prisma.DiscountCodeAppliedToCartOrderByWithRelationInput[];
|
|
3071
|
+
cursor?: Prisma.DiscountCodeAppliedToCartWhereUniqueInput;
|
|
3072
|
+
take?: number;
|
|
3073
|
+
skip?: number;
|
|
3074
|
+
distinct?: Prisma.DiscountCodeAppliedToCartScalarFieldEnum | Prisma.DiscountCodeAppliedToCartScalarFieldEnum[];
|
|
3075
|
+
};
|
|
3076
|
+
/**
|
|
3077
|
+
* DiscountCode.discountCodeRedeemedOnCart
|
|
3078
|
+
*/
|
|
3079
|
+
export type DiscountCode$discountCodeRedeemedOnCartArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3080
|
+
/**
|
|
3081
|
+
* Select specific fields to fetch from the DiscountCodeRedeemedOnCart
|
|
3082
|
+
*/
|
|
3083
|
+
select?: Prisma.DiscountCodeRedeemedOnCartSelect<ExtArgs> | null;
|
|
3084
|
+
/**
|
|
3085
|
+
* Omit specific fields from the DiscountCodeRedeemedOnCart
|
|
3086
|
+
*/
|
|
3087
|
+
omit?: Prisma.DiscountCodeRedeemedOnCartOmit<ExtArgs> | null;
|
|
3088
|
+
/**
|
|
3089
|
+
* Choose, which related nodes to fetch as well
|
|
3090
|
+
*/
|
|
3091
|
+
include?: Prisma.DiscountCodeRedeemedOnCartInclude<ExtArgs> | null;
|
|
3092
|
+
where?: Prisma.DiscountCodeRedeemedOnCartWhereInput;
|
|
3093
|
+
orderBy?: Prisma.DiscountCodeRedeemedOnCartOrderByWithRelationInput | Prisma.DiscountCodeRedeemedOnCartOrderByWithRelationInput[];
|
|
3094
|
+
cursor?: Prisma.DiscountCodeRedeemedOnCartWhereUniqueInput;
|
|
3095
|
+
take?: number;
|
|
3096
|
+
skip?: number;
|
|
3097
|
+
distinct?: Prisma.DiscountCodeRedeemedOnCartScalarFieldEnum | Prisma.DiscountCodeRedeemedOnCartScalarFieldEnum[];
|
|
3098
|
+
};
|
|
3099
|
+
/**
|
|
3100
|
+
* DiscountCode.cartLine
|
|
3101
|
+
*/
|
|
3102
|
+
export type DiscountCode$cartLineArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3103
|
+
/**
|
|
3104
|
+
* Select specific fields to fetch from the CartLine
|
|
3105
|
+
*/
|
|
3106
|
+
select?: Prisma.CartLineSelect<ExtArgs> | null;
|
|
3107
|
+
/**
|
|
3108
|
+
* Omit specific fields from the CartLine
|
|
3109
|
+
*/
|
|
3110
|
+
omit?: Prisma.CartLineOmit<ExtArgs> | null;
|
|
3111
|
+
/**
|
|
3112
|
+
* Choose, which related nodes to fetch as well
|
|
3113
|
+
*/
|
|
3114
|
+
include?: Prisma.CartLineInclude<ExtArgs> | null;
|
|
3115
|
+
where?: Prisma.CartLineWhereInput;
|
|
3116
|
+
orderBy?: Prisma.CartLineOrderByWithRelationInput | Prisma.CartLineOrderByWithRelationInput[];
|
|
3117
|
+
cursor?: Prisma.CartLineWhereUniqueInput;
|
|
3118
|
+
take?: number;
|
|
3119
|
+
skip?: number;
|
|
3120
|
+
distinct?: Prisma.CartLineScalarFieldEnum | Prisma.CartLineScalarFieldEnum[];
|
|
3121
|
+
};
|
|
3122
|
+
/**
|
|
3123
|
+
* DiscountCode without action
|
|
3124
|
+
*/
|
|
3125
|
+
export type DiscountCodeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
3126
|
+
/**
|
|
3127
|
+
* Select specific fields to fetch from the DiscountCode
|
|
3128
|
+
*/
|
|
3129
|
+
select?: Prisma.DiscountCodeSelect<ExtArgs> | null;
|
|
3130
|
+
/**
|
|
3131
|
+
* Omit specific fields from the DiscountCode
|
|
3132
|
+
*/
|
|
3133
|
+
omit?: Prisma.DiscountCodeOmit<ExtArgs> | null;
|
|
3134
|
+
/**
|
|
3135
|
+
* Choose, which related nodes to fetch as well
|
|
3136
|
+
*/
|
|
3137
|
+
include?: Prisma.DiscountCodeInclude<ExtArgs> | null;
|
|
3138
|
+
};
|
|
3139
|
+
export {};
|