@pos-360/prisma 1.0.0-beta.0 → 1.0.0-beta.2
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 +4 -3
|
@@ -0,0 +1,1425 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model StockLevel
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type StockLevelModel = runtime.Types.Result.DefaultSelection<Prisma.$StockLevelPayload>;
|
|
8
|
+
export type AggregateStockLevel = {
|
|
9
|
+
_count: StockLevelCountAggregateOutputType | null;
|
|
10
|
+
_avg: StockLevelAvgAggregateOutputType | null;
|
|
11
|
+
_sum: StockLevelSumAggregateOutputType | null;
|
|
12
|
+
_min: StockLevelMinAggregateOutputType | null;
|
|
13
|
+
_max: StockLevelMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type StockLevelAvgAggregateOutputType = {
|
|
16
|
+
id: number | null;
|
|
17
|
+
stockOnHand: number | null;
|
|
18
|
+
stockOnHold: number | null;
|
|
19
|
+
productVariantId: number | null;
|
|
20
|
+
stockLocationId: number | null;
|
|
21
|
+
};
|
|
22
|
+
export type StockLevelSumAggregateOutputType = {
|
|
23
|
+
id: bigint | null;
|
|
24
|
+
stockOnHand: number | null;
|
|
25
|
+
stockOnHold: number | null;
|
|
26
|
+
productVariantId: bigint | null;
|
|
27
|
+
stockLocationId: bigint | null;
|
|
28
|
+
};
|
|
29
|
+
export type StockLevelMinAggregateOutputType = {
|
|
30
|
+
id: bigint | null;
|
|
31
|
+
createdAt: Date | null;
|
|
32
|
+
updatedAt: Date | null;
|
|
33
|
+
stockOnHand: number | null;
|
|
34
|
+
stockOnHold: number | null;
|
|
35
|
+
productVariantId: bigint | null;
|
|
36
|
+
stockLocationId: bigint | null;
|
|
37
|
+
};
|
|
38
|
+
export type StockLevelMaxAggregateOutputType = {
|
|
39
|
+
id: bigint | null;
|
|
40
|
+
createdAt: Date | null;
|
|
41
|
+
updatedAt: Date | null;
|
|
42
|
+
stockOnHand: number | null;
|
|
43
|
+
stockOnHold: number | null;
|
|
44
|
+
productVariantId: bigint | null;
|
|
45
|
+
stockLocationId: bigint | null;
|
|
46
|
+
};
|
|
47
|
+
export type StockLevelCountAggregateOutputType = {
|
|
48
|
+
id: number;
|
|
49
|
+
createdAt: number;
|
|
50
|
+
updatedAt: number;
|
|
51
|
+
stockOnHand: number;
|
|
52
|
+
stockOnHold: number;
|
|
53
|
+
productVariantId: number;
|
|
54
|
+
stockLocationId: number;
|
|
55
|
+
_all: number;
|
|
56
|
+
};
|
|
57
|
+
export type StockLevelAvgAggregateInputType = {
|
|
58
|
+
id?: true;
|
|
59
|
+
stockOnHand?: true;
|
|
60
|
+
stockOnHold?: true;
|
|
61
|
+
productVariantId?: true;
|
|
62
|
+
stockLocationId?: true;
|
|
63
|
+
};
|
|
64
|
+
export type StockLevelSumAggregateInputType = {
|
|
65
|
+
id?: true;
|
|
66
|
+
stockOnHand?: true;
|
|
67
|
+
stockOnHold?: true;
|
|
68
|
+
productVariantId?: true;
|
|
69
|
+
stockLocationId?: true;
|
|
70
|
+
};
|
|
71
|
+
export type StockLevelMinAggregateInputType = {
|
|
72
|
+
id?: true;
|
|
73
|
+
createdAt?: true;
|
|
74
|
+
updatedAt?: true;
|
|
75
|
+
stockOnHand?: true;
|
|
76
|
+
stockOnHold?: true;
|
|
77
|
+
productVariantId?: true;
|
|
78
|
+
stockLocationId?: true;
|
|
79
|
+
};
|
|
80
|
+
export type StockLevelMaxAggregateInputType = {
|
|
81
|
+
id?: true;
|
|
82
|
+
createdAt?: true;
|
|
83
|
+
updatedAt?: true;
|
|
84
|
+
stockOnHand?: true;
|
|
85
|
+
stockOnHold?: true;
|
|
86
|
+
productVariantId?: true;
|
|
87
|
+
stockLocationId?: true;
|
|
88
|
+
};
|
|
89
|
+
export type StockLevelCountAggregateInputType = {
|
|
90
|
+
id?: true;
|
|
91
|
+
createdAt?: true;
|
|
92
|
+
updatedAt?: true;
|
|
93
|
+
stockOnHand?: true;
|
|
94
|
+
stockOnHold?: true;
|
|
95
|
+
productVariantId?: true;
|
|
96
|
+
stockLocationId?: true;
|
|
97
|
+
_all?: true;
|
|
98
|
+
};
|
|
99
|
+
export type StockLevelAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
100
|
+
/**
|
|
101
|
+
* Filter which StockLevel to aggregate.
|
|
102
|
+
*/
|
|
103
|
+
where?: Prisma.StockLevelWhereInput;
|
|
104
|
+
/**
|
|
105
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
106
|
+
*
|
|
107
|
+
* Determine the order of StockLevels to fetch.
|
|
108
|
+
*/
|
|
109
|
+
orderBy?: Prisma.StockLevelOrderByWithRelationInput | Prisma.StockLevelOrderByWithRelationInput[];
|
|
110
|
+
/**
|
|
111
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
112
|
+
*
|
|
113
|
+
* Sets the start position
|
|
114
|
+
*/
|
|
115
|
+
cursor?: Prisma.StockLevelWhereUniqueInput;
|
|
116
|
+
/**
|
|
117
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
118
|
+
*
|
|
119
|
+
* Take `±n` StockLevels from the position of the cursor.
|
|
120
|
+
*/
|
|
121
|
+
take?: number;
|
|
122
|
+
/**
|
|
123
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
124
|
+
*
|
|
125
|
+
* Skip the first `n` StockLevels.
|
|
126
|
+
*/
|
|
127
|
+
skip?: number;
|
|
128
|
+
/**
|
|
129
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
130
|
+
*
|
|
131
|
+
* Count returned StockLevels
|
|
132
|
+
**/
|
|
133
|
+
_count?: true | StockLevelCountAggregateInputType;
|
|
134
|
+
/**
|
|
135
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
136
|
+
*
|
|
137
|
+
* Select which fields to average
|
|
138
|
+
**/
|
|
139
|
+
_avg?: StockLevelAvgAggregateInputType;
|
|
140
|
+
/**
|
|
141
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
142
|
+
*
|
|
143
|
+
* Select which fields to sum
|
|
144
|
+
**/
|
|
145
|
+
_sum?: StockLevelSumAggregateInputType;
|
|
146
|
+
/**
|
|
147
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
148
|
+
*
|
|
149
|
+
* Select which fields to find the minimum value
|
|
150
|
+
**/
|
|
151
|
+
_min?: StockLevelMinAggregateInputType;
|
|
152
|
+
/**
|
|
153
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
154
|
+
*
|
|
155
|
+
* Select which fields to find the maximum value
|
|
156
|
+
**/
|
|
157
|
+
_max?: StockLevelMaxAggregateInputType;
|
|
158
|
+
};
|
|
159
|
+
export type GetStockLevelAggregateType<T extends StockLevelAggregateArgs> = {
|
|
160
|
+
[P in keyof T & keyof AggregateStockLevel]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateStockLevel[P]> : Prisma.GetScalarType<T[P], AggregateStockLevel[P]>;
|
|
161
|
+
};
|
|
162
|
+
export type StockLevelGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
163
|
+
where?: Prisma.StockLevelWhereInput;
|
|
164
|
+
orderBy?: Prisma.StockLevelOrderByWithAggregationInput | Prisma.StockLevelOrderByWithAggregationInput[];
|
|
165
|
+
by: Prisma.StockLevelScalarFieldEnum[] | Prisma.StockLevelScalarFieldEnum;
|
|
166
|
+
having?: Prisma.StockLevelScalarWhereWithAggregatesInput;
|
|
167
|
+
take?: number;
|
|
168
|
+
skip?: number;
|
|
169
|
+
_count?: StockLevelCountAggregateInputType | true;
|
|
170
|
+
_avg?: StockLevelAvgAggregateInputType;
|
|
171
|
+
_sum?: StockLevelSumAggregateInputType;
|
|
172
|
+
_min?: StockLevelMinAggregateInputType;
|
|
173
|
+
_max?: StockLevelMaxAggregateInputType;
|
|
174
|
+
};
|
|
175
|
+
export type StockLevelGroupByOutputType = {
|
|
176
|
+
id: bigint;
|
|
177
|
+
createdAt: Date;
|
|
178
|
+
updatedAt: Date;
|
|
179
|
+
stockOnHand: number;
|
|
180
|
+
stockOnHold: number;
|
|
181
|
+
productVariantId: bigint;
|
|
182
|
+
stockLocationId: bigint;
|
|
183
|
+
_count: StockLevelCountAggregateOutputType | null;
|
|
184
|
+
_avg: StockLevelAvgAggregateOutputType | null;
|
|
185
|
+
_sum: StockLevelSumAggregateOutputType | null;
|
|
186
|
+
_min: StockLevelMinAggregateOutputType | null;
|
|
187
|
+
_max: StockLevelMaxAggregateOutputType | null;
|
|
188
|
+
};
|
|
189
|
+
type GetStockLevelGroupByPayload<T extends StockLevelGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<StockLevelGroupByOutputType, T['by']> & {
|
|
190
|
+
[P in ((keyof T) & (keyof StockLevelGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], StockLevelGroupByOutputType[P]> : Prisma.GetScalarType<T[P], StockLevelGroupByOutputType[P]>;
|
|
191
|
+
}>>;
|
|
192
|
+
export type StockLevelWhereInput = {
|
|
193
|
+
AND?: Prisma.StockLevelWhereInput | Prisma.StockLevelWhereInput[];
|
|
194
|
+
OR?: Prisma.StockLevelWhereInput[];
|
|
195
|
+
NOT?: Prisma.StockLevelWhereInput | Prisma.StockLevelWhereInput[];
|
|
196
|
+
id?: Prisma.BigIntFilter<"StockLevel"> | bigint | number;
|
|
197
|
+
createdAt?: Prisma.DateTimeFilter<"StockLevel"> | Date | string;
|
|
198
|
+
updatedAt?: Prisma.DateTimeFilter<"StockLevel"> | Date | string;
|
|
199
|
+
stockOnHand?: Prisma.IntFilter<"StockLevel"> | number;
|
|
200
|
+
stockOnHold?: Prisma.IntFilter<"StockLevel"> | number;
|
|
201
|
+
productVariantId?: Prisma.BigIntFilter<"StockLevel"> | bigint | number;
|
|
202
|
+
stockLocationId?: Prisma.BigIntFilter<"StockLevel"> | bigint | number;
|
|
203
|
+
productVariant?: Prisma.XOR<Prisma.ProductVariantScalarRelationFilter, Prisma.ProductVariantWhereInput>;
|
|
204
|
+
stockLocation?: Prisma.XOR<Prisma.StockLocationScalarRelationFilter, Prisma.StockLocationWhereInput>;
|
|
205
|
+
};
|
|
206
|
+
export type StockLevelOrderByWithRelationInput = {
|
|
207
|
+
id?: Prisma.SortOrder;
|
|
208
|
+
createdAt?: Prisma.SortOrder;
|
|
209
|
+
updatedAt?: Prisma.SortOrder;
|
|
210
|
+
stockOnHand?: Prisma.SortOrder;
|
|
211
|
+
stockOnHold?: Prisma.SortOrder;
|
|
212
|
+
productVariantId?: Prisma.SortOrder;
|
|
213
|
+
stockLocationId?: Prisma.SortOrder;
|
|
214
|
+
productVariant?: Prisma.ProductVariantOrderByWithRelationInput;
|
|
215
|
+
stockLocation?: Prisma.StockLocationOrderByWithRelationInput;
|
|
216
|
+
};
|
|
217
|
+
export type StockLevelWhereUniqueInput = Prisma.AtLeast<{
|
|
218
|
+
id?: bigint | number;
|
|
219
|
+
productVariantId_stockLocationId?: Prisma.StockLevelProductVariantIdStockLocationIdCompoundUniqueInput;
|
|
220
|
+
AND?: Prisma.StockLevelWhereInput | Prisma.StockLevelWhereInput[];
|
|
221
|
+
OR?: Prisma.StockLevelWhereInput[];
|
|
222
|
+
NOT?: Prisma.StockLevelWhereInput | Prisma.StockLevelWhereInput[];
|
|
223
|
+
createdAt?: Prisma.DateTimeFilter<"StockLevel"> | Date | string;
|
|
224
|
+
updatedAt?: Prisma.DateTimeFilter<"StockLevel"> | Date | string;
|
|
225
|
+
stockOnHand?: Prisma.IntFilter<"StockLevel"> | number;
|
|
226
|
+
stockOnHold?: Prisma.IntFilter<"StockLevel"> | number;
|
|
227
|
+
productVariantId?: Prisma.BigIntFilter<"StockLevel"> | bigint | number;
|
|
228
|
+
stockLocationId?: Prisma.BigIntFilter<"StockLevel"> | bigint | number;
|
|
229
|
+
productVariant?: Prisma.XOR<Prisma.ProductVariantScalarRelationFilter, Prisma.ProductVariantWhereInput>;
|
|
230
|
+
stockLocation?: Prisma.XOR<Prisma.StockLocationScalarRelationFilter, Prisma.StockLocationWhereInput>;
|
|
231
|
+
}, "id" | "productVariantId_stockLocationId">;
|
|
232
|
+
export type StockLevelOrderByWithAggregationInput = {
|
|
233
|
+
id?: Prisma.SortOrder;
|
|
234
|
+
createdAt?: Prisma.SortOrder;
|
|
235
|
+
updatedAt?: Prisma.SortOrder;
|
|
236
|
+
stockOnHand?: Prisma.SortOrder;
|
|
237
|
+
stockOnHold?: Prisma.SortOrder;
|
|
238
|
+
productVariantId?: Prisma.SortOrder;
|
|
239
|
+
stockLocationId?: Prisma.SortOrder;
|
|
240
|
+
_count?: Prisma.StockLevelCountOrderByAggregateInput;
|
|
241
|
+
_avg?: Prisma.StockLevelAvgOrderByAggregateInput;
|
|
242
|
+
_max?: Prisma.StockLevelMaxOrderByAggregateInput;
|
|
243
|
+
_min?: Prisma.StockLevelMinOrderByAggregateInput;
|
|
244
|
+
_sum?: Prisma.StockLevelSumOrderByAggregateInput;
|
|
245
|
+
};
|
|
246
|
+
export type StockLevelScalarWhereWithAggregatesInput = {
|
|
247
|
+
AND?: Prisma.StockLevelScalarWhereWithAggregatesInput | Prisma.StockLevelScalarWhereWithAggregatesInput[];
|
|
248
|
+
OR?: Prisma.StockLevelScalarWhereWithAggregatesInput[];
|
|
249
|
+
NOT?: Prisma.StockLevelScalarWhereWithAggregatesInput | Prisma.StockLevelScalarWhereWithAggregatesInput[];
|
|
250
|
+
id?: Prisma.BigIntWithAggregatesFilter<"StockLevel"> | bigint | number;
|
|
251
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"StockLevel"> | Date | string;
|
|
252
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"StockLevel"> | Date | string;
|
|
253
|
+
stockOnHand?: Prisma.IntWithAggregatesFilter<"StockLevel"> | number;
|
|
254
|
+
stockOnHold?: Prisma.IntWithAggregatesFilter<"StockLevel"> | number;
|
|
255
|
+
productVariantId?: Prisma.BigIntWithAggregatesFilter<"StockLevel"> | bigint | number;
|
|
256
|
+
stockLocationId?: Prisma.BigIntWithAggregatesFilter<"StockLevel"> | bigint | number;
|
|
257
|
+
};
|
|
258
|
+
export type StockLevelCreateInput = {
|
|
259
|
+
id?: bigint | number;
|
|
260
|
+
createdAt?: Date | string;
|
|
261
|
+
updatedAt?: Date | string;
|
|
262
|
+
stockOnHand: number;
|
|
263
|
+
stockOnHold: number;
|
|
264
|
+
productVariant: Prisma.ProductVariantCreateNestedOneWithoutStockLevelsInput;
|
|
265
|
+
stockLocation: Prisma.StockLocationCreateNestedOneWithoutStockLevelsInput;
|
|
266
|
+
};
|
|
267
|
+
export type StockLevelUncheckedCreateInput = {
|
|
268
|
+
id?: bigint | number;
|
|
269
|
+
createdAt?: Date | string;
|
|
270
|
+
updatedAt?: Date | string;
|
|
271
|
+
stockOnHand: number;
|
|
272
|
+
stockOnHold: number;
|
|
273
|
+
productVariantId: bigint | number;
|
|
274
|
+
stockLocationId: bigint | number;
|
|
275
|
+
};
|
|
276
|
+
export type StockLevelUpdateInput = {
|
|
277
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
278
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
279
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
280
|
+
stockOnHand?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
281
|
+
stockOnHold?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
282
|
+
productVariant?: Prisma.ProductVariantUpdateOneRequiredWithoutStockLevelsNestedInput;
|
|
283
|
+
stockLocation?: Prisma.StockLocationUpdateOneRequiredWithoutStockLevelsNestedInput;
|
|
284
|
+
};
|
|
285
|
+
export type StockLevelUncheckedUpdateInput = {
|
|
286
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
287
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
288
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
289
|
+
stockOnHand?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
290
|
+
stockOnHold?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
291
|
+
productVariantId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
292
|
+
stockLocationId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
293
|
+
};
|
|
294
|
+
export type StockLevelCreateManyInput = {
|
|
295
|
+
id?: bigint | number;
|
|
296
|
+
createdAt?: Date | string;
|
|
297
|
+
updatedAt?: Date | string;
|
|
298
|
+
stockOnHand: number;
|
|
299
|
+
stockOnHold: number;
|
|
300
|
+
productVariantId: bigint | number;
|
|
301
|
+
stockLocationId: bigint | number;
|
|
302
|
+
};
|
|
303
|
+
export type StockLevelUpdateManyMutationInput = {
|
|
304
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
305
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
306
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
307
|
+
stockOnHand?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
308
|
+
stockOnHold?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
309
|
+
};
|
|
310
|
+
export type StockLevelUncheckedUpdateManyInput = {
|
|
311
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
312
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
313
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
314
|
+
stockOnHand?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
315
|
+
stockOnHold?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
316
|
+
productVariantId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
317
|
+
stockLocationId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
318
|
+
};
|
|
319
|
+
export type StockLevelListRelationFilter = {
|
|
320
|
+
every?: Prisma.StockLevelWhereInput;
|
|
321
|
+
some?: Prisma.StockLevelWhereInput;
|
|
322
|
+
none?: Prisma.StockLevelWhereInput;
|
|
323
|
+
};
|
|
324
|
+
export type StockLevelOrderByRelationAggregateInput = {
|
|
325
|
+
_count?: Prisma.SortOrder;
|
|
326
|
+
};
|
|
327
|
+
export type StockLevelProductVariantIdStockLocationIdCompoundUniqueInput = {
|
|
328
|
+
productVariantId: bigint | number;
|
|
329
|
+
stockLocationId: bigint | number;
|
|
330
|
+
};
|
|
331
|
+
export type StockLevelCountOrderByAggregateInput = {
|
|
332
|
+
id?: Prisma.SortOrder;
|
|
333
|
+
createdAt?: Prisma.SortOrder;
|
|
334
|
+
updatedAt?: Prisma.SortOrder;
|
|
335
|
+
stockOnHand?: Prisma.SortOrder;
|
|
336
|
+
stockOnHold?: Prisma.SortOrder;
|
|
337
|
+
productVariantId?: Prisma.SortOrder;
|
|
338
|
+
stockLocationId?: Prisma.SortOrder;
|
|
339
|
+
};
|
|
340
|
+
export type StockLevelAvgOrderByAggregateInput = {
|
|
341
|
+
id?: Prisma.SortOrder;
|
|
342
|
+
stockOnHand?: Prisma.SortOrder;
|
|
343
|
+
stockOnHold?: Prisma.SortOrder;
|
|
344
|
+
productVariantId?: Prisma.SortOrder;
|
|
345
|
+
stockLocationId?: Prisma.SortOrder;
|
|
346
|
+
};
|
|
347
|
+
export type StockLevelMaxOrderByAggregateInput = {
|
|
348
|
+
id?: Prisma.SortOrder;
|
|
349
|
+
createdAt?: Prisma.SortOrder;
|
|
350
|
+
updatedAt?: Prisma.SortOrder;
|
|
351
|
+
stockOnHand?: Prisma.SortOrder;
|
|
352
|
+
stockOnHold?: Prisma.SortOrder;
|
|
353
|
+
productVariantId?: Prisma.SortOrder;
|
|
354
|
+
stockLocationId?: Prisma.SortOrder;
|
|
355
|
+
};
|
|
356
|
+
export type StockLevelMinOrderByAggregateInput = {
|
|
357
|
+
id?: Prisma.SortOrder;
|
|
358
|
+
createdAt?: Prisma.SortOrder;
|
|
359
|
+
updatedAt?: Prisma.SortOrder;
|
|
360
|
+
stockOnHand?: Prisma.SortOrder;
|
|
361
|
+
stockOnHold?: Prisma.SortOrder;
|
|
362
|
+
productVariantId?: Prisma.SortOrder;
|
|
363
|
+
stockLocationId?: Prisma.SortOrder;
|
|
364
|
+
};
|
|
365
|
+
export type StockLevelSumOrderByAggregateInput = {
|
|
366
|
+
id?: Prisma.SortOrder;
|
|
367
|
+
stockOnHand?: Prisma.SortOrder;
|
|
368
|
+
stockOnHold?: Prisma.SortOrder;
|
|
369
|
+
productVariantId?: Prisma.SortOrder;
|
|
370
|
+
stockLocationId?: Prisma.SortOrder;
|
|
371
|
+
};
|
|
372
|
+
export type StockLevelCreateNestedManyWithoutProductVariantInput = {
|
|
373
|
+
create?: Prisma.XOR<Prisma.StockLevelCreateWithoutProductVariantInput, Prisma.StockLevelUncheckedCreateWithoutProductVariantInput> | Prisma.StockLevelCreateWithoutProductVariantInput[] | Prisma.StockLevelUncheckedCreateWithoutProductVariantInput[];
|
|
374
|
+
connectOrCreate?: Prisma.StockLevelCreateOrConnectWithoutProductVariantInput | Prisma.StockLevelCreateOrConnectWithoutProductVariantInput[];
|
|
375
|
+
createMany?: Prisma.StockLevelCreateManyProductVariantInputEnvelope;
|
|
376
|
+
connect?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
377
|
+
};
|
|
378
|
+
export type StockLevelUncheckedCreateNestedManyWithoutProductVariantInput = {
|
|
379
|
+
create?: Prisma.XOR<Prisma.StockLevelCreateWithoutProductVariantInput, Prisma.StockLevelUncheckedCreateWithoutProductVariantInput> | Prisma.StockLevelCreateWithoutProductVariantInput[] | Prisma.StockLevelUncheckedCreateWithoutProductVariantInput[];
|
|
380
|
+
connectOrCreate?: Prisma.StockLevelCreateOrConnectWithoutProductVariantInput | Prisma.StockLevelCreateOrConnectWithoutProductVariantInput[];
|
|
381
|
+
createMany?: Prisma.StockLevelCreateManyProductVariantInputEnvelope;
|
|
382
|
+
connect?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
383
|
+
};
|
|
384
|
+
export type StockLevelUpdateManyWithoutProductVariantNestedInput = {
|
|
385
|
+
create?: Prisma.XOR<Prisma.StockLevelCreateWithoutProductVariantInput, Prisma.StockLevelUncheckedCreateWithoutProductVariantInput> | Prisma.StockLevelCreateWithoutProductVariantInput[] | Prisma.StockLevelUncheckedCreateWithoutProductVariantInput[];
|
|
386
|
+
connectOrCreate?: Prisma.StockLevelCreateOrConnectWithoutProductVariantInput | Prisma.StockLevelCreateOrConnectWithoutProductVariantInput[];
|
|
387
|
+
upsert?: Prisma.StockLevelUpsertWithWhereUniqueWithoutProductVariantInput | Prisma.StockLevelUpsertWithWhereUniqueWithoutProductVariantInput[];
|
|
388
|
+
createMany?: Prisma.StockLevelCreateManyProductVariantInputEnvelope;
|
|
389
|
+
set?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
390
|
+
disconnect?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
391
|
+
delete?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
392
|
+
connect?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
393
|
+
update?: Prisma.StockLevelUpdateWithWhereUniqueWithoutProductVariantInput | Prisma.StockLevelUpdateWithWhereUniqueWithoutProductVariantInput[];
|
|
394
|
+
updateMany?: Prisma.StockLevelUpdateManyWithWhereWithoutProductVariantInput | Prisma.StockLevelUpdateManyWithWhereWithoutProductVariantInput[];
|
|
395
|
+
deleteMany?: Prisma.StockLevelScalarWhereInput | Prisma.StockLevelScalarWhereInput[];
|
|
396
|
+
};
|
|
397
|
+
export type StockLevelUncheckedUpdateManyWithoutProductVariantNestedInput = {
|
|
398
|
+
create?: Prisma.XOR<Prisma.StockLevelCreateWithoutProductVariantInput, Prisma.StockLevelUncheckedCreateWithoutProductVariantInput> | Prisma.StockLevelCreateWithoutProductVariantInput[] | Prisma.StockLevelUncheckedCreateWithoutProductVariantInput[];
|
|
399
|
+
connectOrCreate?: Prisma.StockLevelCreateOrConnectWithoutProductVariantInput | Prisma.StockLevelCreateOrConnectWithoutProductVariantInput[];
|
|
400
|
+
upsert?: Prisma.StockLevelUpsertWithWhereUniqueWithoutProductVariantInput | Prisma.StockLevelUpsertWithWhereUniqueWithoutProductVariantInput[];
|
|
401
|
+
createMany?: Prisma.StockLevelCreateManyProductVariantInputEnvelope;
|
|
402
|
+
set?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
403
|
+
disconnect?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
404
|
+
delete?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
405
|
+
connect?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
406
|
+
update?: Prisma.StockLevelUpdateWithWhereUniqueWithoutProductVariantInput | Prisma.StockLevelUpdateWithWhereUniqueWithoutProductVariantInput[];
|
|
407
|
+
updateMany?: Prisma.StockLevelUpdateManyWithWhereWithoutProductVariantInput | Prisma.StockLevelUpdateManyWithWhereWithoutProductVariantInput[];
|
|
408
|
+
deleteMany?: Prisma.StockLevelScalarWhereInput | Prisma.StockLevelScalarWhereInput[];
|
|
409
|
+
};
|
|
410
|
+
export type StockLevelCreateNestedManyWithoutStockLocationInput = {
|
|
411
|
+
create?: Prisma.XOR<Prisma.StockLevelCreateWithoutStockLocationInput, Prisma.StockLevelUncheckedCreateWithoutStockLocationInput> | Prisma.StockLevelCreateWithoutStockLocationInput[] | Prisma.StockLevelUncheckedCreateWithoutStockLocationInput[];
|
|
412
|
+
connectOrCreate?: Prisma.StockLevelCreateOrConnectWithoutStockLocationInput | Prisma.StockLevelCreateOrConnectWithoutStockLocationInput[];
|
|
413
|
+
createMany?: Prisma.StockLevelCreateManyStockLocationInputEnvelope;
|
|
414
|
+
connect?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
415
|
+
};
|
|
416
|
+
export type StockLevelUncheckedCreateNestedManyWithoutStockLocationInput = {
|
|
417
|
+
create?: Prisma.XOR<Prisma.StockLevelCreateWithoutStockLocationInput, Prisma.StockLevelUncheckedCreateWithoutStockLocationInput> | Prisma.StockLevelCreateWithoutStockLocationInput[] | Prisma.StockLevelUncheckedCreateWithoutStockLocationInput[];
|
|
418
|
+
connectOrCreate?: Prisma.StockLevelCreateOrConnectWithoutStockLocationInput | Prisma.StockLevelCreateOrConnectWithoutStockLocationInput[];
|
|
419
|
+
createMany?: Prisma.StockLevelCreateManyStockLocationInputEnvelope;
|
|
420
|
+
connect?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
421
|
+
};
|
|
422
|
+
export type StockLevelUpdateManyWithoutStockLocationNestedInput = {
|
|
423
|
+
create?: Prisma.XOR<Prisma.StockLevelCreateWithoutStockLocationInput, Prisma.StockLevelUncheckedCreateWithoutStockLocationInput> | Prisma.StockLevelCreateWithoutStockLocationInput[] | Prisma.StockLevelUncheckedCreateWithoutStockLocationInput[];
|
|
424
|
+
connectOrCreate?: Prisma.StockLevelCreateOrConnectWithoutStockLocationInput | Prisma.StockLevelCreateOrConnectWithoutStockLocationInput[];
|
|
425
|
+
upsert?: Prisma.StockLevelUpsertWithWhereUniqueWithoutStockLocationInput | Prisma.StockLevelUpsertWithWhereUniqueWithoutStockLocationInput[];
|
|
426
|
+
createMany?: Prisma.StockLevelCreateManyStockLocationInputEnvelope;
|
|
427
|
+
set?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
428
|
+
disconnect?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
429
|
+
delete?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
430
|
+
connect?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
431
|
+
update?: Prisma.StockLevelUpdateWithWhereUniqueWithoutStockLocationInput | Prisma.StockLevelUpdateWithWhereUniqueWithoutStockLocationInput[];
|
|
432
|
+
updateMany?: Prisma.StockLevelUpdateManyWithWhereWithoutStockLocationInput | Prisma.StockLevelUpdateManyWithWhereWithoutStockLocationInput[];
|
|
433
|
+
deleteMany?: Prisma.StockLevelScalarWhereInput | Prisma.StockLevelScalarWhereInput[];
|
|
434
|
+
};
|
|
435
|
+
export type StockLevelUncheckedUpdateManyWithoutStockLocationNestedInput = {
|
|
436
|
+
create?: Prisma.XOR<Prisma.StockLevelCreateWithoutStockLocationInput, Prisma.StockLevelUncheckedCreateWithoutStockLocationInput> | Prisma.StockLevelCreateWithoutStockLocationInput[] | Prisma.StockLevelUncheckedCreateWithoutStockLocationInput[];
|
|
437
|
+
connectOrCreate?: Prisma.StockLevelCreateOrConnectWithoutStockLocationInput | Prisma.StockLevelCreateOrConnectWithoutStockLocationInput[];
|
|
438
|
+
upsert?: Prisma.StockLevelUpsertWithWhereUniqueWithoutStockLocationInput | Prisma.StockLevelUpsertWithWhereUniqueWithoutStockLocationInput[];
|
|
439
|
+
createMany?: Prisma.StockLevelCreateManyStockLocationInputEnvelope;
|
|
440
|
+
set?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
441
|
+
disconnect?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
442
|
+
delete?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
443
|
+
connect?: Prisma.StockLevelWhereUniqueInput | Prisma.StockLevelWhereUniqueInput[];
|
|
444
|
+
update?: Prisma.StockLevelUpdateWithWhereUniqueWithoutStockLocationInput | Prisma.StockLevelUpdateWithWhereUniqueWithoutStockLocationInput[];
|
|
445
|
+
updateMany?: Prisma.StockLevelUpdateManyWithWhereWithoutStockLocationInput | Prisma.StockLevelUpdateManyWithWhereWithoutStockLocationInput[];
|
|
446
|
+
deleteMany?: Prisma.StockLevelScalarWhereInput | Prisma.StockLevelScalarWhereInput[];
|
|
447
|
+
};
|
|
448
|
+
export type StockLevelCreateWithoutProductVariantInput = {
|
|
449
|
+
id?: bigint | number;
|
|
450
|
+
createdAt?: Date | string;
|
|
451
|
+
updatedAt?: Date | string;
|
|
452
|
+
stockOnHand: number;
|
|
453
|
+
stockOnHold: number;
|
|
454
|
+
stockLocation: Prisma.StockLocationCreateNestedOneWithoutStockLevelsInput;
|
|
455
|
+
};
|
|
456
|
+
export type StockLevelUncheckedCreateWithoutProductVariantInput = {
|
|
457
|
+
id?: bigint | number;
|
|
458
|
+
createdAt?: Date | string;
|
|
459
|
+
updatedAt?: Date | string;
|
|
460
|
+
stockOnHand: number;
|
|
461
|
+
stockOnHold: number;
|
|
462
|
+
stockLocationId: bigint | number;
|
|
463
|
+
};
|
|
464
|
+
export type StockLevelCreateOrConnectWithoutProductVariantInput = {
|
|
465
|
+
where: Prisma.StockLevelWhereUniqueInput;
|
|
466
|
+
create: Prisma.XOR<Prisma.StockLevelCreateWithoutProductVariantInput, Prisma.StockLevelUncheckedCreateWithoutProductVariantInput>;
|
|
467
|
+
};
|
|
468
|
+
export type StockLevelCreateManyProductVariantInputEnvelope = {
|
|
469
|
+
data: Prisma.StockLevelCreateManyProductVariantInput | Prisma.StockLevelCreateManyProductVariantInput[];
|
|
470
|
+
skipDuplicates?: boolean;
|
|
471
|
+
};
|
|
472
|
+
export type StockLevelUpsertWithWhereUniqueWithoutProductVariantInput = {
|
|
473
|
+
where: Prisma.StockLevelWhereUniqueInput;
|
|
474
|
+
update: Prisma.XOR<Prisma.StockLevelUpdateWithoutProductVariantInput, Prisma.StockLevelUncheckedUpdateWithoutProductVariantInput>;
|
|
475
|
+
create: Prisma.XOR<Prisma.StockLevelCreateWithoutProductVariantInput, Prisma.StockLevelUncheckedCreateWithoutProductVariantInput>;
|
|
476
|
+
};
|
|
477
|
+
export type StockLevelUpdateWithWhereUniqueWithoutProductVariantInput = {
|
|
478
|
+
where: Prisma.StockLevelWhereUniqueInput;
|
|
479
|
+
data: Prisma.XOR<Prisma.StockLevelUpdateWithoutProductVariantInput, Prisma.StockLevelUncheckedUpdateWithoutProductVariantInput>;
|
|
480
|
+
};
|
|
481
|
+
export type StockLevelUpdateManyWithWhereWithoutProductVariantInput = {
|
|
482
|
+
where: Prisma.StockLevelScalarWhereInput;
|
|
483
|
+
data: Prisma.XOR<Prisma.StockLevelUpdateManyMutationInput, Prisma.StockLevelUncheckedUpdateManyWithoutProductVariantInput>;
|
|
484
|
+
};
|
|
485
|
+
export type StockLevelScalarWhereInput = {
|
|
486
|
+
AND?: Prisma.StockLevelScalarWhereInput | Prisma.StockLevelScalarWhereInput[];
|
|
487
|
+
OR?: Prisma.StockLevelScalarWhereInput[];
|
|
488
|
+
NOT?: Prisma.StockLevelScalarWhereInput | Prisma.StockLevelScalarWhereInput[];
|
|
489
|
+
id?: Prisma.BigIntFilter<"StockLevel"> | bigint | number;
|
|
490
|
+
createdAt?: Prisma.DateTimeFilter<"StockLevel"> | Date | string;
|
|
491
|
+
updatedAt?: Prisma.DateTimeFilter<"StockLevel"> | Date | string;
|
|
492
|
+
stockOnHand?: Prisma.IntFilter<"StockLevel"> | number;
|
|
493
|
+
stockOnHold?: Prisma.IntFilter<"StockLevel"> | number;
|
|
494
|
+
productVariantId?: Prisma.BigIntFilter<"StockLevel"> | bigint | number;
|
|
495
|
+
stockLocationId?: Prisma.BigIntFilter<"StockLevel"> | bigint | number;
|
|
496
|
+
};
|
|
497
|
+
export type StockLevelCreateWithoutStockLocationInput = {
|
|
498
|
+
id?: bigint | number;
|
|
499
|
+
createdAt?: Date | string;
|
|
500
|
+
updatedAt?: Date | string;
|
|
501
|
+
stockOnHand: number;
|
|
502
|
+
stockOnHold: number;
|
|
503
|
+
productVariant: Prisma.ProductVariantCreateNestedOneWithoutStockLevelsInput;
|
|
504
|
+
};
|
|
505
|
+
export type StockLevelUncheckedCreateWithoutStockLocationInput = {
|
|
506
|
+
id?: bigint | number;
|
|
507
|
+
createdAt?: Date | string;
|
|
508
|
+
updatedAt?: Date | string;
|
|
509
|
+
stockOnHand: number;
|
|
510
|
+
stockOnHold: number;
|
|
511
|
+
productVariantId: bigint | number;
|
|
512
|
+
};
|
|
513
|
+
export type StockLevelCreateOrConnectWithoutStockLocationInput = {
|
|
514
|
+
where: Prisma.StockLevelWhereUniqueInput;
|
|
515
|
+
create: Prisma.XOR<Prisma.StockLevelCreateWithoutStockLocationInput, Prisma.StockLevelUncheckedCreateWithoutStockLocationInput>;
|
|
516
|
+
};
|
|
517
|
+
export type StockLevelCreateManyStockLocationInputEnvelope = {
|
|
518
|
+
data: Prisma.StockLevelCreateManyStockLocationInput | Prisma.StockLevelCreateManyStockLocationInput[];
|
|
519
|
+
skipDuplicates?: boolean;
|
|
520
|
+
};
|
|
521
|
+
export type StockLevelUpsertWithWhereUniqueWithoutStockLocationInput = {
|
|
522
|
+
where: Prisma.StockLevelWhereUniqueInput;
|
|
523
|
+
update: Prisma.XOR<Prisma.StockLevelUpdateWithoutStockLocationInput, Prisma.StockLevelUncheckedUpdateWithoutStockLocationInput>;
|
|
524
|
+
create: Prisma.XOR<Prisma.StockLevelCreateWithoutStockLocationInput, Prisma.StockLevelUncheckedCreateWithoutStockLocationInput>;
|
|
525
|
+
};
|
|
526
|
+
export type StockLevelUpdateWithWhereUniqueWithoutStockLocationInput = {
|
|
527
|
+
where: Prisma.StockLevelWhereUniqueInput;
|
|
528
|
+
data: Prisma.XOR<Prisma.StockLevelUpdateWithoutStockLocationInput, Prisma.StockLevelUncheckedUpdateWithoutStockLocationInput>;
|
|
529
|
+
};
|
|
530
|
+
export type StockLevelUpdateManyWithWhereWithoutStockLocationInput = {
|
|
531
|
+
where: Prisma.StockLevelScalarWhereInput;
|
|
532
|
+
data: Prisma.XOR<Prisma.StockLevelUpdateManyMutationInput, Prisma.StockLevelUncheckedUpdateManyWithoutStockLocationInput>;
|
|
533
|
+
};
|
|
534
|
+
export type StockLevelCreateManyProductVariantInput = {
|
|
535
|
+
id?: bigint | number;
|
|
536
|
+
createdAt?: Date | string;
|
|
537
|
+
updatedAt?: Date | string;
|
|
538
|
+
stockOnHand: number;
|
|
539
|
+
stockOnHold: number;
|
|
540
|
+
stockLocationId: bigint | number;
|
|
541
|
+
};
|
|
542
|
+
export type StockLevelUpdateWithoutProductVariantInput = {
|
|
543
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
544
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
545
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
546
|
+
stockOnHand?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
547
|
+
stockOnHold?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
548
|
+
stockLocation?: Prisma.StockLocationUpdateOneRequiredWithoutStockLevelsNestedInput;
|
|
549
|
+
};
|
|
550
|
+
export type StockLevelUncheckedUpdateWithoutProductVariantInput = {
|
|
551
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
552
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
553
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
554
|
+
stockOnHand?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
555
|
+
stockOnHold?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
556
|
+
stockLocationId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
557
|
+
};
|
|
558
|
+
export type StockLevelUncheckedUpdateManyWithoutProductVariantInput = {
|
|
559
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
560
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
561
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
562
|
+
stockOnHand?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
563
|
+
stockOnHold?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
564
|
+
stockLocationId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
565
|
+
};
|
|
566
|
+
export type StockLevelCreateManyStockLocationInput = {
|
|
567
|
+
id?: bigint | number;
|
|
568
|
+
createdAt?: Date | string;
|
|
569
|
+
updatedAt?: Date | string;
|
|
570
|
+
stockOnHand: number;
|
|
571
|
+
stockOnHold: number;
|
|
572
|
+
productVariantId: bigint | number;
|
|
573
|
+
};
|
|
574
|
+
export type StockLevelUpdateWithoutStockLocationInput = {
|
|
575
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
576
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
577
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
578
|
+
stockOnHand?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
579
|
+
stockOnHold?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
580
|
+
productVariant?: Prisma.ProductVariantUpdateOneRequiredWithoutStockLevelsNestedInput;
|
|
581
|
+
};
|
|
582
|
+
export type StockLevelUncheckedUpdateWithoutStockLocationInput = {
|
|
583
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
584
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
585
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
586
|
+
stockOnHand?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
587
|
+
stockOnHold?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
588
|
+
productVariantId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
589
|
+
};
|
|
590
|
+
export type StockLevelUncheckedUpdateManyWithoutStockLocationInput = {
|
|
591
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
592
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
593
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
594
|
+
stockOnHand?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
595
|
+
stockOnHold?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
596
|
+
productVariantId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
597
|
+
};
|
|
598
|
+
export type StockLevelSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
599
|
+
id?: boolean;
|
|
600
|
+
createdAt?: boolean;
|
|
601
|
+
updatedAt?: boolean;
|
|
602
|
+
stockOnHand?: boolean;
|
|
603
|
+
stockOnHold?: boolean;
|
|
604
|
+
productVariantId?: boolean;
|
|
605
|
+
stockLocationId?: boolean;
|
|
606
|
+
productVariant?: boolean | Prisma.ProductVariantDefaultArgs<ExtArgs>;
|
|
607
|
+
stockLocation?: boolean | Prisma.StockLocationDefaultArgs<ExtArgs>;
|
|
608
|
+
}, ExtArgs["result"]["stockLevel"]>;
|
|
609
|
+
export type StockLevelSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
610
|
+
id?: boolean;
|
|
611
|
+
createdAt?: boolean;
|
|
612
|
+
updatedAt?: boolean;
|
|
613
|
+
stockOnHand?: boolean;
|
|
614
|
+
stockOnHold?: boolean;
|
|
615
|
+
productVariantId?: boolean;
|
|
616
|
+
stockLocationId?: boolean;
|
|
617
|
+
productVariant?: boolean | Prisma.ProductVariantDefaultArgs<ExtArgs>;
|
|
618
|
+
stockLocation?: boolean | Prisma.StockLocationDefaultArgs<ExtArgs>;
|
|
619
|
+
}, ExtArgs["result"]["stockLevel"]>;
|
|
620
|
+
export type StockLevelSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
621
|
+
id?: boolean;
|
|
622
|
+
createdAt?: boolean;
|
|
623
|
+
updatedAt?: boolean;
|
|
624
|
+
stockOnHand?: boolean;
|
|
625
|
+
stockOnHold?: boolean;
|
|
626
|
+
productVariantId?: boolean;
|
|
627
|
+
stockLocationId?: boolean;
|
|
628
|
+
productVariant?: boolean | Prisma.ProductVariantDefaultArgs<ExtArgs>;
|
|
629
|
+
stockLocation?: boolean | Prisma.StockLocationDefaultArgs<ExtArgs>;
|
|
630
|
+
}, ExtArgs["result"]["stockLevel"]>;
|
|
631
|
+
export type StockLevelSelectScalar = {
|
|
632
|
+
id?: boolean;
|
|
633
|
+
createdAt?: boolean;
|
|
634
|
+
updatedAt?: boolean;
|
|
635
|
+
stockOnHand?: boolean;
|
|
636
|
+
stockOnHold?: boolean;
|
|
637
|
+
productVariantId?: boolean;
|
|
638
|
+
stockLocationId?: boolean;
|
|
639
|
+
};
|
|
640
|
+
export type StockLevelOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "stockOnHand" | "stockOnHold" | "productVariantId" | "stockLocationId", ExtArgs["result"]["stockLevel"]>;
|
|
641
|
+
export type StockLevelInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
642
|
+
productVariant?: boolean | Prisma.ProductVariantDefaultArgs<ExtArgs>;
|
|
643
|
+
stockLocation?: boolean | Prisma.StockLocationDefaultArgs<ExtArgs>;
|
|
644
|
+
};
|
|
645
|
+
export type StockLevelIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
646
|
+
productVariant?: boolean | Prisma.ProductVariantDefaultArgs<ExtArgs>;
|
|
647
|
+
stockLocation?: boolean | Prisma.StockLocationDefaultArgs<ExtArgs>;
|
|
648
|
+
};
|
|
649
|
+
export type StockLevelIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
650
|
+
productVariant?: boolean | Prisma.ProductVariantDefaultArgs<ExtArgs>;
|
|
651
|
+
stockLocation?: boolean | Prisma.StockLocationDefaultArgs<ExtArgs>;
|
|
652
|
+
};
|
|
653
|
+
export type $StockLevelPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
654
|
+
name: "StockLevel";
|
|
655
|
+
objects: {
|
|
656
|
+
productVariant: Prisma.$ProductVariantPayload<ExtArgs>;
|
|
657
|
+
stockLocation: Prisma.$StockLocationPayload<ExtArgs>;
|
|
658
|
+
};
|
|
659
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
660
|
+
id: bigint;
|
|
661
|
+
createdAt: Date;
|
|
662
|
+
updatedAt: Date;
|
|
663
|
+
stockOnHand: number;
|
|
664
|
+
stockOnHold: number;
|
|
665
|
+
productVariantId: bigint;
|
|
666
|
+
stockLocationId: bigint;
|
|
667
|
+
}, ExtArgs["result"]["stockLevel"]>;
|
|
668
|
+
composites: {};
|
|
669
|
+
};
|
|
670
|
+
export type StockLevelGetPayload<S extends boolean | null | undefined | StockLevelDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$StockLevelPayload, S>;
|
|
671
|
+
export type StockLevelCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<StockLevelFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
672
|
+
select?: StockLevelCountAggregateInputType | true;
|
|
673
|
+
};
|
|
674
|
+
export interface StockLevelDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
675
|
+
[K: symbol]: {
|
|
676
|
+
types: Prisma.TypeMap<ExtArgs>['model']['StockLevel'];
|
|
677
|
+
meta: {
|
|
678
|
+
name: 'StockLevel';
|
|
679
|
+
};
|
|
680
|
+
};
|
|
681
|
+
/**
|
|
682
|
+
* Find zero or one StockLevel that matches the filter.
|
|
683
|
+
* @param {StockLevelFindUniqueArgs} args - Arguments to find a StockLevel
|
|
684
|
+
* @example
|
|
685
|
+
* // Get one StockLevel
|
|
686
|
+
* const stockLevel = await prisma.stockLevel.findUnique({
|
|
687
|
+
* where: {
|
|
688
|
+
* // ... provide filter here
|
|
689
|
+
* }
|
|
690
|
+
* })
|
|
691
|
+
*/
|
|
692
|
+
findUnique<T extends StockLevelFindUniqueArgs>(args: Prisma.SelectSubset<T, StockLevelFindUniqueArgs<ExtArgs>>): Prisma.Prisma__StockLevelClient<runtime.Types.Result.GetResult<Prisma.$StockLevelPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
693
|
+
/**
|
|
694
|
+
* Find one StockLevel that matches the filter or throw an error with `error.code='P2025'`
|
|
695
|
+
* if no matches were found.
|
|
696
|
+
* @param {StockLevelFindUniqueOrThrowArgs} args - Arguments to find a StockLevel
|
|
697
|
+
* @example
|
|
698
|
+
* // Get one StockLevel
|
|
699
|
+
* const stockLevel = await prisma.stockLevel.findUniqueOrThrow({
|
|
700
|
+
* where: {
|
|
701
|
+
* // ... provide filter here
|
|
702
|
+
* }
|
|
703
|
+
* })
|
|
704
|
+
*/
|
|
705
|
+
findUniqueOrThrow<T extends StockLevelFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, StockLevelFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__StockLevelClient<runtime.Types.Result.GetResult<Prisma.$StockLevelPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
706
|
+
/**
|
|
707
|
+
* Find the first StockLevel that matches the filter.
|
|
708
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
709
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
710
|
+
* @param {StockLevelFindFirstArgs} args - Arguments to find a StockLevel
|
|
711
|
+
* @example
|
|
712
|
+
* // Get one StockLevel
|
|
713
|
+
* const stockLevel = await prisma.stockLevel.findFirst({
|
|
714
|
+
* where: {
|
|
715
|
+
* // ... provide filter here
|
|
716
|
+
* }
|
|
717
|
+
* })
|
|
718
|
+
*/
|
|
719
|
+
findFirst<T extends StockLevelFindFirstArgs>(args?: Prisma.SelectSubset<T, StockLevelFindFirstArgs<ExtArgs>>): Prisma.Prisma__StockLevelClient<runtime.Types.Result.GetResult<Prisma.$StockLevelPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
720
|
+
/**
|
|
721
|
+
* Find the first StockLevel that matches the filter or
|
|
722
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
723
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
724
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
725
|
+
* @param {StockLevelFindFirstOrThrowArgs} args - Arguments to find a StockLevel
|
|
726
|
+
* @example
|
|
727
|
+
* // Get one StockLevel
|
|
728
|
+
* const stockLevel = await prisma.stockLevel.findFirstOrThrow({
|
|
729
|
+
* where: {
|
|
730
|
+
* // ... provide filter here
|
|
731
|
+
* }
|
|
732
|
+
* })
|
|
733
|
+
*/
|
|
734
|
+
findFirstOrThrow<T extends StockLevelFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, StockLevelFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__StockLevelClient<runtime.Types.Result.GetResult<Prisma.$StockLevelPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
735
|
+
/**
|
|
736
|
+
* Find zero or more StockLevels that matches the filter.
|
|
737
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
738
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
739
|
+
* @param {StockLevelFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
740
|
+
* @example
|
|
741
|
+
* // Get all StockLevels
|
|
742
|
+
* const stockLevels = await prisma.stockLevel.findMany()
|
|
743
|
+
*
|
|
744
|
+
* // Get first 10 StockLevels
|
|
745
|
+
* const stockLevels = await prisma.stockLevel.findMany({ take: 10 })
|
|
746
|
+
*
|
|
747
|
+
* // Only select the `id`
|
|
748
|
+
* const stockLevelWithIdOnly = await prisma.stockLevel.findMany({ select: { id: true } })
|
|
749
|
+
*
|
|
750
|
+
*/
|
|
751
|
+
findMany<T extends StockLevelFindManyArgs>(args?: Prisma.SelectSubset<T, StockLevelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockLevelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
752
|
+
/**
|
|
753
|
+
* Create a StockLevel.
|
|
754
|
+
* @param {StockLevelCreateArgs} args - Arguments to create a StockLevel.
|
|
755
|
+
* @example
|
|
756
|
+
* // Create one StockLevel
|
|
757
|
+
* const StockLevel = await prisma.stockLevel.create({
|
|
758
|
+
* data: {
|
|
759
|
+
* // ... data to create a StockLevel
|
|
760
|
+
* }
|
|
761
|
+
* })
|
|
762
|
+
*
|
|
763
|
+
*/
|
|
764
|
+
create<T extends StockLevelCreateArgs>(args: Prisma.SelectSubset<T, StockLevelCreateArgs<ExtArgs>>): Prisma.Prisma__StockLevelClient<runtime.Types.Result.GetResult<Prisma.$StockLevelPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
765
|
+
/**
|
|
766
|
+
* Create many StockLevels.
|
|
767
|
+
* @param {StockLevelCreateManyArgs} args - Arguments to create many StockLevels.
|
|
768
|
+
* @example
|
|
769
|
+
* // Create many StockLevels
|
|
770
|
+
* const stockLevel = await prisma.stockLevel.createMany({
|
|
771
|
+
* data: [
|
|
772
|
+
* // ... provide data here
|
|
773
|
+
* ]
|
|
774
|
+
* })
|
|
775
|
+
*
|
|
776
|
+
*/
|
|
777
|
+
createMany<T extends StockLevelCreateManyArgs>(args?: Prisma.SelectSubset<T, StockLevelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
778
|
+
/**
|
|
779
|
+
* Create many StockLevels and returns the data saved in the database.
|
|
780
|
+
* @param {StockLevelCreateManyAndReturnArgs} args - Arguments to create many StockLevels.
|
|
781
|
+
* @example
|
|
782
|
+
* // Create many StockLevels
|
|
783
|
+
* const stockLevel = await prisma.stockLevel.createManyAndReturn({
|
|
784
|
+
* data: [
|
|
785
|
+
* // ... provide data here
|
|
786
|
+
* ]
|
|
787
|
+
* })
|
|
788
|
+
*
|
|
789
|
+
* // Create many StockLevels and only return the `id`
|
|
790
|
+
* const stockLevelWithIdOnly = await prisma.stockLevel.createManyAndReturn({
|
|
791
|
+
* select: { id: true },
|
|
792
|
+
* data: [
|
|
793
|
+
* // ... provide data here
|
|
794
|
+
* ]
|
|
795
|
+
* })
|
|
796
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
797
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
798
|
+
*
|
|
799
|
+
*/
|
|
800
|
+
createManyAndReturn<T extends StockLevelCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, StockLevelCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockLevelPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
801
|
+
/**
|
|
802
|
+
* Delete a StockLevel.
|
|
803
|
+
* @param {StockLevelDeleteArgs} args - Arguments to delete one StockLevel.
|
|
804
|
+
* @example
|
|
805
|
+
* // Delete one StockLevel
|
|
806
|
+
* const StockLevel = await prisma.stockLevel.delete({
|
|
807
|
+
* where: {
|
|
808
|
+
* // ... filter to delete one StockLevel
|
|
809
|
+
* }
|
|
810
|
+
* })
|
|
811
|
+
*
|
|
812
|
+
*/
|
|
813
|
+
delete<T extends StockLevelDeleteArgs>(args: Prisma.SelectSubset<T, StockLevelDeleteArgs<ExtArgs>>): Prisma.Prisma__StockLevelClient<runtime.Types.Result.GetResult<Prisma.$StockLevelPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
814
|
+
/**
|
|
815
|
+
* Update one StockLevel.
|
|
816
|
+
* @param {StockLevelUpdateArgs} args - Arguments to update one StockLevel.
|
|
817
|
+
* @example
|
|
818
|
+
* // Update one StockLevel
|
|
819
|
+
* const stockLevel = await prisma.stockLevel.update({
|
|
820
|
+
* where: {
|
|
821
|
+
* // ... provide filter here
|
|
822
|
+
* },
|
|
823
|
+
* data: {
|
|
824
|
+
* // ... provide data here
|
|
825
|
+
* }
|
|
826
|
+
* })
|
|
827
|
+
*
|
|
828
|
+
*/
|
|
829
|
+
update<T extends StockLevelUpdateArgs>(args: Prisma.SelectSubset<T, StockLevelUpdateArgs<ExtArgs>>): Prisma.Prisma__StockLevelClient<runtime.Types.Result.GetResult<Prisma.$StockLevelPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
830
|
+
/**
|
|
831
|
+
* Delete zero or more StockLevels.
|
|
832
|
+
* @param {StockLevelDeleteManyArgs} args - Arguments to filter StockLevels to delete.
|
|
833
|
+
* @example
|
|
834
|
+
* // Delete a few StockLevels
|
|
835
|
+
* const { count } = await prisma.stockLevel.deleteMany({
|
|
836
|
+
* where: {
|
|
837
|
+
* // ... provide filter here
|
|
838
|
+
* }
|
|
839
|
+
* })
|
|
840
|
+
*
|
|
841
|
+
*/
|
|
842
|
+
deleteMany<T extends StockLevelDeleteManyArgs>(args?: Prisma.SelectSubset<T, StockLevelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
843
|
+
/**
|
|
844
|
+
* Update zero or more StockLevels.
|
|
845
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
846
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
847
|
+
* @param {StockLevelUpdateManyArgs} args - Arguments to update one or more rows.
|
|
848
|
+
* @example
|
|
849
|
+
* // Update many StockLevels
|
|
850
|
+
* const stockLevel = await prisma.stockLevel.updateMany({
|
|
851
|
+
* where: {
|
|
852
|
+
* // ... provide filter here
|
|
853
|
+
* },
|
|
854
|
+
* data: {
|
|
855
|
+
* // ... provide data here
|
|
856
|
+
* }
|
|
857
|
+
* })
|
|
858
|
+
*
|
|
859
|
+
*/
|
|
860
|
+
updateMany<T extends StockLevelUpdateManyArgs>(args: Prisma.SelectSubset<T, StockLevelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
861
|
+
/**
|
|
862
|
+
* Update zero or more StockLevels and returns the data updated in the database.
|
|
863
|
+
* @param {StockLevelUpdateManyAndReturnArgs} args - Arguments to update many StockLevels.
|
|
864
|
+
* @example
|
|
865
|
+
* // Update many StockLevels
|
|
866
|
+
* const stockLevel = await prisma.stockLevel.updateManyAndReturn({
|
|
867
|
+
* where: {
|
|
868
|
+
* // ... provide filter here
|
|
869
|
+
* },
|
|
870
|
+
* data: [
|
|
871
|
+
* // ... provide data here
|
|
872
|
+
* ]
|
|
873
|
+
* })
|
|
874
|
+
*
|
|
875
|
+
* // Update zero or more StockLevels and only return the `id`
|
|
876
|
+
* const stockLevelWithIdOnly = await prisma.stockLevel.updateManyAndReturn({
|
|
877
|
+
* select: { id: true },
|
|
878
|
+
* where: {
|
|
879
|
+
* // ... provide filter here
|
|
880
|
+
* },
|
|
881
|
+
* data: [
|
|
882
|
+
* // ... provide data here
|
|
883
|
+
* ]
|
|
884
|
+
* })
|
|
885
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
886
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
887
|
+
*
|
|
888
|
+
*/
|
|
889
|
+
updateManyAndReturn<T extends StockLevelUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, StockLevelUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockLevelPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
890
|
+
/**
|
|
891
|
+
* Create or update one StockLevel.
|
|
892
|
+
* @param {StockLevelUpsertArgs} args - Arguments to update or create a StockLevel.
|
|
893
|
+
* @example
|
|
894
|
+
* // Update or create a StockLevel
|
|
895
|
+
* const stockLevel = await prisma.stockLevel.upsert({
|
|
896
|
+
* create: {
|
|
897
|
+
* // ... data to create a StockLevel
|
|
898
|
+
* },
|
|
899
|
+
* update: {
|
|
900
|
+
* // ... in case it already exists, update
|
|
901
|
+
* },
|
|
902
|
+
* where: {
|
|
903
|
+
* // ... the filter for the StockLevel we want to update
|
|
904
|
+
* }
|
|
905
|
+
* })
|
|
906
|
+
*/
|
|
907
|
+
upsert<T extends StockLevelUpsertArgs>(args: Prisma.SelectSubset<T, StockLevelUpsertArgs<ExtArgs>>): Prisma.Prisma__StockLevelClient<runtime.Types.Result.GetResult<Prisma.$StockLevelPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
908
|
+
/**
|
|
909
|
+
* Count the number of StockLevels.
|
|
910
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
911
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
912
|
+
* @param {StockLevelCountArgs} args - Arguments to filter StockLevels to count.
|
|
913
|
+
* @example
|
|
914
|
+
* // Count the number of StockLevels
|
|
915
|
+
* const count = await prisma.stockLevel.count({
|
|
916
|
+
* where: {
|
|
917
|
+
* // ... the filter for the StockLevels we want to count
|
|
918
|
+
* }
|
|
919
|
+
* })
|
|
920
|
+
**/
|
|
921
|
+
count<T extends StockLevelCountArgs>(args?: Prisma.Subset<T, StockLevelCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], StockLevelCountAggregateOutputType> : number>;
|
|
922
|
+
/**
|
|
923
|
+
* Allows you to perform aggregations operations on a StockLevel.
|
|
924
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
925
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
926
|
+
* @param {StockLevelAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
927
|
+
* @example
|
|
928
|
+
* // Ordered by age ascending
|
|
929
|
+
* // Where email contains prisma.io
|
|
930
|
+
* // Limited to the 10 users
|
|
931
|
+
* const aggregations = await prisma.user.aggregate({
|
|
932
|
+
* _avg: {
|
|
933
|
+
* age: true,
|
|
934
|
+
* },
|
|
935
|
+
* where: {
|
|
936
|
+
* email: {
|
|
937
|
+
* contains: "prisma.io",
|
|
938
|
+
* },
|
|
939
|
+
* },
|
|
940
|
+
* orderBy: {
|
|
941
|
+
* age: "asc",
|
|
942
|
+
* },
|
|
943
|
+
* take: 10,
|
|
944
|
+
* })
|
|
945
|
+
**/
|
|
946
|
+
aggregate<T extends StockLevelAggregateArgs>(args: Prisma.Subset<T, StockLevelAggregateArgs>): Prisma.PrismaPromise<GetStockLevelAggregateType<T>>;
|
|
947
|
+
/**
|
|
948
|
+
* Group by StockLevel.
|
|
949
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
950
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
951
|
+
* @param {StockLevelGroupByArgs} args - Group by arguments.
|
|
952
|
+
* @example
|
|
953
|
+
* // Group by city, order by createdAt, get count
|
|
954
|
+
* const result = await prisma.user.groupBy({
|
|
955
|
+
* by: ['city', 'createdAt'],
|
|
956
|
+
* orderBy: {
|
|
957
|
+
* createdAt: true
|
|
958
|
+
* },
|
|
959
|
+
* _count: {
|
|
960
|
+
* _all: true
|
|
961
|
+
* },
|
|
962
|
+
* })
|
|
963
|
+
*
|
|
964
|
+
**/
|
|
965
|
+
groupBy<T extends StockLevelGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
966
|
+
orderBy: StockLevelGroupByArgs['orderBy'];
|
|
967
|
+
} : {
|
|
968
|
+
orderBy?: StockLevelGroupByArgs['orderBy'];
|
|
969
|
+
}, 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 ? {
|
|
970
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
971
|
+
Error,
|
|
972
|
+
'Field ',
|
|
973
|
+
P,
|
|
974
|
+
` in "having" needs to be provided in "by"`
|
|
975
|
+
];
|
|
976
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
977
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
978
|
+
}[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 ? {} : {
|
|
979
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
980
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
981
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
982
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, StockLevelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStockLevelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
983
|
+
/**
|
|
984
|
+
* Fields of the StockLevel model
|
|
985
|
+
*/
|
|
986
|
+
readonly fields: StockLevelFieldRefs;
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* The delegate class that acts as a "Promise-like" for StockLevel.
|
|
990
|
+
* Why is this prefixed with `Prisma__`?
|
|
991
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
992
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
993
|
+
*/
|
|
994
|
+
export interface Prisma__StockLevelClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
995
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
996
|
+
productVariant<T extends Prisma.ProductVariantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductVariantDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductVariantClient<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
997
|
+
stockLocation<T extends Prisma.StockLocationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.StockLocationDefaultArgs<ExtArgs>>): Prisma.Prisma__StockLocationClient<runtime.Types.Result.GetResult<Prisma.$StockLocationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
998
|
+
/**
|
|
999
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1000
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1001
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1002
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1003
|
+
*/
|
|
1004
|
+
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>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1007
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1008
|
+
* @returns A Promise for the completion of the callback.
|
|
1009
|
+
*/
|
|
1010
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1011
|
+
/**
|
|
1012
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1013
|
+
* resolved value cannot be modified from the callback.
|
|
1014
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1015
|
+
* @returns A Promise for the completion of the callback.
|
|
1016
|
+
*/
|
|
1017
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
* Fields of the StockLevel model
|
|
1021
|
+
*/
|
|
1022
|
+
export interface StockLevelFieldRefs {
|
|
1023
|
+
readonly id: Prisma.FieldRef<"StockLevel", 'BigInt'>;
|
|
1024
|
+
readonly createdAt: Prisma.FieldRef<"StockLevel", 'DateTime'>;
|
|
1025
|
+
readonly updatedAt: Prisma.FieldRef<"StockLevel", 'DateTime'>;
|
|
1026
|
+
readonly stockOnHand: Prisma.FieldRef<"StockLevel", 'Int'>;
|
|
1027
|
+
readonly stockOnHold: Prisma.FieldRef<"StockLevel", 'Int'>;
|
|
1028
|
+
readonly productVariantId: Prisma.FieldRef<"StockLevel", 'BigInt'>;
|
|
1029
|
+
readonly stockLocationId: Prisma.FieldRef<"StockLevel", 'BigInt'>;
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* StockLevel findUnique
|
|
1033
|
+
*/
|
|
1034
|
+
export type StockLevelFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1035
|
+
/**
|
|
1036
|
+
* Select specific fields to fetch from the StockLevel
|
|
1037
|
+
*/
|
|
1038
|
+
select?: Prisma.StockLevelSelect<ExtArgs> | null;
|
|
1039
|
+
/**
|
|
1040
|
+
* Omit specific fields from the StockLevel
|
|
1041
|
+
*/
|
|
1042
|
+
omit?: Prisma.StockLevelOmit<ExtArgs> | null;
|
|
1043
|
+
/**
|
|
1044
|
+
* Choose, which related nodes to fetch as well
|
|
1045
|
+
*/
|
|
1046
|
+
include?: Prisma.StockLevelInclude<ExtArgs> | null;
|
|
1047
|
+
/**
|
|
1048
|
+
* Filter, which StockLevel to fetch.
|
|
1049
|
+
*/
|
|
1050
|
+
where: Prisma.StockLevelWhereUniqueInput;
|
|
1051
|
+
};
|
|
1052
|
+
/**
|
|
1053
|
+
* StockLevel findUniqueOrThrow
|
|
1054
|
+
*/
|
|
1055
|
+
export type StockLevelFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1056
|
+
/**
|
|
1057
|
+
* Select specific fields to fetch from the StockLevel
|
|
1058
|
+
*/
|
|
1059
|
+
select?: Prisma.StockLevelSelect<ExtArgs> | null;
|
|
1060
|
+
/**
|
|
1061
|
+
* Omit specific fields from the StockLevel
|
|
1062
|
+
*/
|
|
1063
|
+
omit?: Prisma.StockLevelOmit<ExtArgs> | null;
|
|
1064
|
+
/**
|
|
1065
|
+
* Choose, which related nodes to fetch as well
|
|
1066
|
+
*/
|
|
1067
|
+
include?: Prisma.StockLevelInclude<ExtArgs> | null;
|
|
1068
|
+
/**
|
|
1069
|
+
* Filter, which StockLevel to fetch.
|
|
1070
|
+
*/
|
|
1071
|
+
where: Prisma.StockLevelWhereUniqueInput;
|
|
1072
|
+
};
|
|
1073
|
+
/**
|
|
1074
|
+
* StockLevel findFirst
|
|
1075
|
+
*/
|
|
1076
|
+
export type StockLevelFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1077
|
+
/**
|
|
1078
|
+
* Select specific fields to fetch from the StockLevel
|
|
1079
|
+
*/
|
|
1080
|
+
select?: Prisma.StockLevelSelect<ExtArgs> | null;
|
|
1081
|
+
/**
|
|
1082
|
+
* Omit specific fields from the StockLevel
|
|
1083
|
+
*/
|
|
1084
|
+
omit?: Prisma.StockLevelOmit<ExtArgs> | null;
|
|
1085
|
+
/**
|
|
1086
|
+
* Choose, which related nodes to fetch as well
|
|
1087
|
+
*/
|
|
1088
|
+
include?: Prisma.StockLevelInclude<ExtArgs> | null;
|
|
1089
|
+
/**
|
|
1090
|
+
* Filter, which StockLevel to fetch.
|
|
1091
|
+
*/
|
|
1092
|
+
where?: Prisma.StockLevelWhereInput;
|
|
1093
|
+
/**
|
|
1094
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1095
|
+
*
|
|
1096
|
+
* Determine the order of StockLevels to fetch.
|
|
1097
|
+
*/
|
|
1098
|
+
orderBy?: Prisma.StockLevelOrderByWithRelationInput | Prisma.StockLevelOrderByWithRelationInput[];
|
|
1099
|
+
/**
|
|
1100
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1101
|
+
*
|
|
1102
|
+
* Sets the position for searching for StockLevels.
|
|
1103
|
+
*/
|
|
1104
|
+
cursor?: Prisma.StockLevelWhereUniqueInput;
|
|
1105
|
+
/**
|
|
1106
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1107
|
+
*
|
|
1108
|
+
* Take `±n` StockLevels from the position of the cursor.
|
|
1109
|
+
*/
|
|
1110
|
+
take?: number;
|
|
1111
|
+
/**
|
|
1112
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1113
|
+
*
|
|
1114
|
+
* Skip the first `n` StockLevels.
|
|
1115
|
+
*/
|
|
1116
|
+
skip?: number;
|
|
1117
|
+
/**
|
|
1118
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1119
|
+
*
|
|
1120
|
+
* Filter by unique combinations of StockLevels.
|
|
1121
|
+
*/
|
|
1122
|
+
distinct?: Prisma.StockLevelScalarFieldEnum | Prisma.StockLevelScalarFieldEnum[];
|
|
1123
|
+
};
|
|
1124
|
+
/**
|
|
1125
|
+
* StockLevel findFirstOrThrow
|
|
1126
|
+
*/
|
|
1127
|
+
export type StockLevelFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1128
|
+
/**
|
|
1129
|
+
* Select specific fields to fetch from the StockLevel
|
|
1130
|
+
*/
|
|
1131
|
+
select?: Prisma.StockLevelSelect<ExtArgs> | null;
|
|
1132
|
+
/**
|
|
1133
|
+
* Omit specific fields from the StockLevel
|
|
1134
|
+
*/
|
|
1135
|
+
omit?: Prisma.StockLevelOmit<ExtArgs> | null;
|
|
1136
|
+
/**
|
|
1137
|
+
* Choose, which related nodes to fetch as well
|
|
1138
|
+
*/
|
|
1139
|
+
include?: Prisma.StockLevelInclude<ExtArgs> | null;
|
|
1140
|
+
/**
|
|
1141
|
+
* Filter, which StockLevel to fetch.
|
|
1142
|
+
*/
|
|
1143
|
+
where?: Prisma.StockLevelWhereInput;
|
|
1144
|
+
/**
|
|
1145
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1146
|
+
*
|
|
1147
|
+
* Determine the order of StockLevels to fetch.
|
|
1148
|
+
*/
|
|
1149
|
+
orderBy?: Prisma.StockLevelOrderByWithRelationInput | Prisma.StockLevelOrderByWithRelationInput[];
|
|
1150
|
+
/**
|
|
1151
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1152
|
+
*
|
|
1153
|
+
* Sets the position for searching for StockLevels.
|
|
1154
|
+
*/
|
|
1155
|
+
cursor?: Prisma.StockLevelWhereUniqueInput;
|
|
1156
|
+
/**
|
|
1157
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1158
|
+
*
|
|
1159
|
+
* Take `±n` StockLevels from the position of the cursor.
|
|
1160
|
+
*/
|
|
1161
|
+
take?: number;
|
|
1162
|
+
/**
|
|
1163
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1164
|
+
*
|
|
1165
|
+
* Skip the first `n` StockLevels.
|
|
1166
|
+
*/
|
|
1167
|
+
skip?: number;
|
|
1168
|
+
/**
|
|
1169
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1170
|
+
*
|
|
1171
|
+
* Filter by unique combinations of StockLevels.
|
|
1172
|
+
*/
|
|
1173
|
+
distinct?: Prisma.StockLevelScalarFieldEnum | Prisma.StockLevelScalarFieldEnum[];
|
|
1174
|
+
};
|
|
1175
|
+
/**
|
|
1176
|
+
* StockLevel findMany
|
|
1177
|
+
*/
|
|
1178
|
+
export type StockLevelFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1179
|
+
/**
|
|
1180
|
+
* Select specific fields to fetch from the StockLevel
|
|
1181
|
+
*/
|
|
1182
|
+
select?: Prisma.StockLevelSelect<ExtArgs> | null;
|
|
1183
|
+
/**
|
|
1184
|
+
* Omit specific fields from the StockLevel
|
|
1185
|
+
*/
|
|
1186
|
+
omit?: Prisma.StockLevelOmit<ExtArgs> | null;
|
|
1187
|
+
/**
|
|
1188
|
+
* Choose, which related nodes to fetch as well
|
|
1189
|
+
*/
|
|
1190
|
+
include?: Prisma.StockLevelInclude<ExtArgs> | null;
|
|
1191
|
+
/**
|
|
1192
|
+
* Filter, which StockLevels to fetch.
|
|
1193
|
+
*/
|
|
1194
|
+
where?: Prisma.StockLevelWhereInput;
|
|
1195
|
+
/**
|
|
1196
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1197
|
+
*
|
|
1198
|
+
* Determine the order of StockLevels to fetch.
|
|
1199
|
+
*/
|
|
1200
|
+
orderBy?: Prisma.StockLevelOrderByWithRelationInput | Prisma.StockLevelOrderByWithRelationInput[];
|
|
1201
|
+
/**
|
|
1202
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1203
|
+
*
|
|
1204
|
+
* Sets the position for listing StockLevels.
|
|
1205
|
+
*/
|
|
1206
|
+
cursor?: Prisma.StockLevelWhereUniqueInput;
|
|
1207
|
+
/**
|
|
1208
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1209
|
+
*
|
|
1210
|
+
* Take `±n` StockLevels from the position of the cursor.
|
|
1211
|
+
*/
|
|
1212
|
+
take?: number;
|
|
1213
|
+
/**
|
|
1214
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1215
|
+
*
|
|
1216
|
+
* Skip the first `n` StockLevels.
|
|
1217
|
+
*/
|
|
1218
|
+
skip?: number;
|
|
1219
|
+
distinct?: Prisma.StockLevelScalarFieldEnum | Prisma.StockLevelScalarFieldEnum[];
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
* StockLevel create
|
|
1223
|
+
*/
|
|
1224
|
+
export type StockLevelCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1225
|
+
/**
|
|
1226
|
+
* Select specific fields to fetch from the StockLevel
|
|
1227
|
+
*/
|
|
1228
|
+
select?: Prisma.StockLevelSelect<ExtArgs> | null;
|
|
1229
|
+
/**
|
|
1230
|
+
* Omit specific fields from the StockLevel
|
|
1231
|
+
*/
|
|
1232
|
+
omit?: Prisma.StockLevelOmit<ExtArgs> | null;
|
|
1233
|
+
/**
|
|
1234
|
+
* Choose, which related nodes to fetch as well
|
|
1235
|
+
*/
|
|
1236
|
+
include?: Prisma.StockLevelInclude<ExtArgs> | null;
|
|
1237
|
+
/**
|
|
1238
|
+
* The data needed to create a StockLevel.
|
|
1239
|
+
*/
|
|
1240
|
+
data: Prisma.XOR<Prisma.StockLevelCreateInput, Prisma.StockLevelUncheckedCreateInput>;
|
|
1241
|
+
};
|
|
1242
|
+
/**
|
|
1243
|
+
* StockLevel createMany
|
|
1244
|
+
*/
|
|
1245
|
+
export type StockLevelCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1246
|
+
/**
|
|
1247
|
+
* The data used to create many StockLevels.
|
|
1248
|
+
*/
|
|
1249
|
+
data: Prisma.StockLevelCreateManyInput | Prisma.StockLevelCreateManyInput[];
|
|
1250
|
+
skipDuplicates?: boolean;
|
|
1251
|
+
};
|
|
1252
|
+
/**
|
|
1253
|
+
* StockLevel createManyAndReturn
|
|
1254
|
+
*/
|
|
1255
|
+
export type StockLevelCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1256
|
+
/**
|
|
1257
|
+
* Select specific fields to fetch from the StockLevel
|
|
1258
|
+
*/
|
|
1259
|
+
select?: Prisma.StockLevelSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1260
|
+
/**
|
|
1261
|
+
* Omit specific fields from the StockLevel
|
|
1262
|
+
*/
|
|
1263
|
+
omit?: Prisma.StockLevelOmit<ExtArgs> | null;
|
|
1264
|
+
/**
|
|
1265
|
+
* The data used to create many StockLevels.
|
|
1266
|
+
*/
|
|
1267
|
+
data: Prisma.StockLevelCreateManyInput | Prisma.StockLevelCreateManyInput[];
|
|
1268
|
+
skipDuplicates?: boolean;
|
|
1269
|
+
/**
|
|
1270
|
+
* Choose, which related nodes to fetch as well
|
|
1271
|
+
*/
|
|
1272
|
+
include?: Prisma.StockLevelIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1273
|
+
};
|
|
1274
|
+
/**
|
|
1275
|
+
* StockLevel update
|
|
1276
|
+
*/
|
|
1277
|
+
export type StockLevelUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1278
|
+
/**
|
|
1279
|
+
* Select specific fields to fetch from the StockLevel
|
|
1280
|
+
*/
|
|
1281
|
+
select?: Prisma.StockLevelSelect<ExtArgs> | null;
|
|
1282
|
+
/**
|
|
1283
|
+
* Omit specific fields from the StockLevel
|
|
1284
|
+
*/
|
|
1285
|
+
omit?: Prisma.StockLevelOmit<ExtArgs> | null;
|
|
1286
|
+
/**
|
|
1287
|
+
* Choose, which related nodes to fetch as well
|
|
1288
|
+
*/
|
|
1289
|
+
include?: Prisma.StockLevelInclude<ExtArgs> | null;
|
|
1290
|
+
/**
|
|
1291
|
+
* The data needed to update a StockLevel.
|
|
1292
|
+
*/
|
|
1293
|
+
data: Prisma.XOR<Prisma.StockLevelUpdateInput, Prisma.StockLevelUncheckedUpdateInput>;
|
|
1294
|
+
/**
|
|
1295
|
+
* Choose, which StockLevel to update.
|
|
1296
|
+
*/
|
|
1297
|
+
where: Prisma.StockLevelWhereUniqueInput;
|
|
1298
|
+
};
|
|
1299
|
+
/**
|
|
1300
|
+
* StockLevel updateMany
|
|
1301
|
+
*/
|
|
1302
|
+
export type StockLevelUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1303
|
+
/**
|
|
1304
|
+
* The data used to update StockLevels.
|
|
1305
|
+
*/
|
|
1306
|
+
data: Prisma.XOR<Prisma.StockLevelUpdateManyMutationInput, Prisma.StockLevelUncheckedUpdateManyInput>;
|
|
1307
|
+
/**
|
|
1308
|
+
* Filter which StockLevels to update
|
|
1309
|
+
*/
|
|
1310
|
+
where?: Prisma.StockLevelWhereInput;
|
|
1311
|
+
/**
|
|
1312
|
+
* Limit how many StockLevels to update.
|
|
1313
|
+
*/
|
|
1314
|
+
limit?: number;
|
|
1315
|
+
};
|
|
1316
|
+
/**
|
|
1317
|
+
* StockLevel updateManyAndReturn
|
|
1318
|
+
*/
|
|
1319
|
+
export type StockLevelUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1320
|
+
/**
|
|
1321
|
+
* Select specific fields to fetch from the StockLevel
|
|
1322
|
+
*/
|
|
1323
|
+
select?: Prisma.StockLevelSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1324
|
+
/**
|
|
1325
|
+
* Omit specific fields from the StockLevel
|
|
1326
|
+
*/
|
|
1327
|
+
omit?: Prisma.StockLevelOmit<ExtArgs> | null;
|
|
1328
|
+
/**
|
|
1329
|
+
* The data used to update StockLevels.
|
|
1330
|
+
*/
|
|
1331
|
+
data: Prisma.XOR<Prisma.StockLevelUpdateManyMutationInput, Prisma.StockLevelUncheckedUpdateManyInput>;
|
|
1332
|
+
/**
|
|
1333
|
+
* Filter which StockLevels to update
|
|
1334
|
+
*/
|
|
1335
|
+
where?: Prisma.StockLevelWhereInput;
|
|
1336
|
+
/**
|
|
1337
|
+
* Limit how many StockLevels to update.
|
|
1338
|
+
*/
|
|
1339
|
+
limit?: number;
|
|
1340
|
+
/**
|
|
1341
|
+
* Choose, which related nodes to fetch as well
|
|
1342
|
+
*/
|
|
1343
|
+
include?: Prisma.StockLevelIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1344
|
+
};
|
|
1345
|
+
/**
|
|
1346
|
+
* StockLevel upsert
|
|
1347
|
+
*/
|
|
1348
|
+
export type StockLevelUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1349
|
+
/**
|
|
1350
|
+
* Select specific fields to fetch from the StockLevel
|
|
1351
|
+
*/
|
|
1352
|
+
select?: Prisma.StockLevelSelect<ExtArgs> | null;
|
|
1353
|
+
/**
|
|
1354
|
+
* Omit specific fields from the StockLevel
|
|
1355
|
+
*/
|
|
1356
|
+
omit?: Prisma.StockLevelOmit<ExtArgs> | null;
|
|
1357
|
+
/**
|
|
1358
|
+
* Choose, which related nodes to fetch as well
|
|
1359
|
+
*/
|
|
1360
|
+
include?: Prisma.StockLevelInclude<ExtArgs> | null;
|
|
1361
|
+
/**
|
|
1362
|
+
* The filter to search for the StockLevel to update in case it exists.
|
|
1363
|
+
*/
|
|
1364
|
+
where: Prisma.StockLevelWhereUniqueInput;
|
|
1365
|
+
/**
|
|
1366
|
+
* In case the StockLevel found by the `where` argument doesn't exist, create a new StockLevel with this data.
|
|
1367
|
+
*/
|
|
1368
|
+
create: Prisma.XOR<Prisma.StockLevelCreateInput, Prisma.StockLevelUncheckedCreateInput>;
|
|
1369
|
+
/**
|
|
1370
|
+
* In case the StockLevel was found with the provided `where` argument, update it with this data.
|
|
1371
|
+
*/
|
|
1372
|
+
update: Prisma.XOR<Prisma.StockLevelUpdateInput, Prisma.StockLevelUncheckedUpdateInput>;
|
|
1373
|
+
};
|
|
1374
|
+
/**
|
|
1375
|
+
* StockLevel delete
|
|
1376
|
+
*/
|
|
1377
|
+
export type StockLevelDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1378
|
+
/**
|
|
1379
|
+
* Select specific fields to fetch from the StockLevel
|
|
1380
|
+
*/
|
|
1381
|
+
select?: Prisma.StockLevelSelect<ExtArgs> | null;
|
|
1382
|
+
/**
|
|
1383
|
+
* Omit specific fields from the StockLevel
|
|
1384
|
+
*/
|
|
1385
|
+
omit?: Prisma.StockLevelOmit<ExtArgs> | null;
|
|
1386
|
+
/**
|
|
1387
|
+
* Choose, which related nodes to fetch as well
|
|
1388
|
+
*/
|
|
1389
|
+
include?: Prisma.StockLevelInclude<ExtArgs> | null;
|
|
1390
|
+
/**
|
|
1391
|
+
* Filter which StockLevel to delete.
|
|
1392
|
+
*/
|
|
1393
|
+
where: Prisma.StockLevelWhereUniqueInput;
|
|
1394
|
+
};
|
|
1395
|
+
/**
|
|
1396
|
+
* StockLevel deleteMany
|
|
1397
|
+
*/
|
|
1398
|
+
export type StockLevelDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1399
|
+
/**
|
|
1400
|
+
* Filter which StockLevels to delete
|
|
1401
|
+
*/
|
|
1402
|
+
where?: Prisma.StockLevelWhereInput;
|
|
1403
|
+
/**
|
|
1404
|
+
* Limit how many StockLevels to delete.
|
|
1405
|
+
*/
|
|
1406
|
+
limit?: number;
|
|
1407
|
+
};
|
|
1408
|
+
/**
|
|
1409
|
+
* StockLevel without action
|
|
1410
|
+
*/
|
|
1411
|
+
export type StockLevelDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1412
|
+
/**
|
|
1413
|
+
* Select specific fields to fetch from the StockLevel
|
|
1414
|
+
*/
|
|
1415
|
+
select?: Prisma.StockLevelSelect<ExtArgs> | null;
|
|
1416
|
+
/**
|
|
1417
|
+
* Omit specific fields from the StockLevel
|
|
1418
|
+
*/
|
|
1419
|
+
omit?: Prisma.StockLevelOmit<ExtArgs> | null;
|
|
1420
|
+
/**
|
|
1421
|
+
* Choose, which related nodes to fetch as well
|
|
1422
|
+
*/
|
|
1423
|
+
include?: Prisma.StockLevelInclude<ExtArgs> | null;
|
|
1424
|
+
};
|
|
1425
|
+
export {};
|