@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.
Files changed (412) hide show
  1. package/lib/generated/prisma/browser.d.ts +514 -0
  2. package/lib/generated/prisma/browser.js +57 -0
  3. package/lib/generated/prisma/browser.js.map +1 -0
  4. package/lib/generated/prisma/client.d.ts +531 -0
  5. package/lib/generated/prisma/client.js +69 -0
  6. package/lib/generated/prisma/client.js.map +1 -0
  7. package/lib/generated/prisma/commonInputTypes.d.ts +1529 -0
  8. package/lib/generated/prisma/commonInputTypes.js +12 -0
  9. package/lib/generated/prisma/commonInputTypes.js.map +1 -0
  10. package/lib/generated/prisma/dmmf.d.ts +4085 -0
  11. package/lib/generated/prisma/dmmf.js +27551 -0
  12. package/lib/generated/prisma/dmmf.js.map +1 -0
  13. package/lib/generated/prisma/enums.d.ts +216 -0
  14. package/lib/generated/prisma/enums.js +205 -0
  15. package/lib/generated/prisma/enums.js.map +1 -0
  16. package/lib/generated/prisma/internal/class.d.ts +1237 -0
  17. package/lib/generated/prisma/internal/class.js +79 -0
  18. package/lib/generated/prisma/internal/class.js.map +1 -0
  19. package/lib/generated/prisma/internal/prismaNamespace.d.ts +10091 -0
  20. package/lib/generated/prisma/internal/prismaNamespace.js +1721 -0
  21. package/lib/generated/prisma/internal/prismaNamespace.js.map +1 -0
  22. package/lib/generated/prisma/internal/prismaNamespaceBrowser.d.ts +1816 -0
  23. package/lib/generated/prisma/internal/prismaNamespaceBrowser.js +1692 -0
  24. package/lib/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
  25. package/lib/generated/prisma/kysely-types.d.ts +1499 -0
  26. package/lib/generated/prisma/kysely-types.js +196 -0
  27. package/lib/generated/prisma/kysely-types.js.map +1 -0
  28. package/lib/generated/prisma/models/Address.d.ts +1339 -0
  29. package/lib/generated/prisma/models/Address.js +12 -0
  30. package/lib/generated/prisma/models/Address.js.map +1 -0
  31. package/lib/generated/prisma/models/Administrator.d.ts +1633 -0
  32. package/lib/generated/prisma/models/Administrator.js +12 -0
  33. package/lib/generated/prisma/models/Administrator.js.map +1 -0
  34. package/lib/generated/prisma/models/AdministratorToPlatform.d.ts +1208 -0
  35. package/lib/generated/prisma/models/AdministratorToPlatform.js +12 -0
  36. package/lib/generated/prisma/models/AdministratorToPlatform.js.map +1 -0
  37. package/lib/generated/prisma/models/AdministratorToStore.d.ts +1201 -0
  38. package/lib/generated/prisma/models/AdministratorToStore.js +12 -0
  39. package/lib/generated/prisma/models/AdministratorToStore.js.map +1 -0
  40. package/lib/generated/prisma/models/ApiToken.d.ts +1125 -0
  41. package/lib/generated/prisma/models/ApiToken.js +12 -0
  42. package/lib/generated/prisma/models/ApiToken.js.map +1 -0
  43. package/lib/generated/prisma/models/AwsBucket.d.ts +1435 -0
  44. package/lib/generated/prisma/models/AwsBucket.js +12 -0
  45. package/lib/generated/prisma/models/AwsBucket.js.map +1 -0
  46. package/lib/generated/prisma/models/Card.d.ts +1533 -0
  47. package/lib/generated/prisma/models/Card.js +12 -0
  48. package/lib/generated/prisma/models/Card.js.map +1 -0
  49. package/lib/generated/prisma/models/Cart.d.ts +2315 -0
  50. package/lib/generated/prisma/models/Cart.js +12 -0
  51. package/lib/generated/prisma/models/Cart.js.map +1 -0
  52. package/lib/generated/prisma/models/CartCost.d.ts +1368 -0
  53. package/lib/generated/prisma/models/CartCost.js +12 -0
  54. package/lib/generated/prisma/models/CartCost.js.map +1 -0
  55. package/lib/generated/prisma/models/CartLine.d.ts +1948 -0
  56. package/lib/generated/prisma/models/CartLine.js +12 -0
  57. package/lib/generated/prisma/models/CartLine.js.map +1 -0
  58. package/lib/generated/prisma/models/CartLineModifier.d.ts +2061 -0
  59. package/lib/generated/prisma/models/CartLineModifier.js +12 -0
  60. package/lib/generated/prisma/models/CartLineModifier.js.map +1 -0
  61. package/lib/generated/prisma/models/CartLineModifierOption.d.ts +1435 -0
  62. package/lib/generated/prisma/models/CartLineModifierOption.js +12 -0
  63. package/lib/generated/prisma/models/CartLineModifierOption.js.map +1 -0
  64. package/lib/generated/prisma/models/Checkout.d.ts +3989 -0
  65. package/lib/generated/prisma/models/Checkout.js +12 -0
  66. package/lib/generated/prisma/models/Checkout.js.map +1 -0
  67. package/lib/generated/prisma/models/CheckoutGroup.d.ts +2604 -0
  68. package/lib/generated/prisma/models/CheckoutGroup.js +12 -0
  69. package/lib/generated/prisma/models/CheckoutGroup.js.map +1 -0
  70. package/lib/generated/prisma/models/CheckoutLine.d.ts +1932 -0
  71. package/lib/generated/prisma/models/CheckoutLine.js +12 -0
  72. package/lib/generated/prisma/models/CheckoutLine.js.map +1 -0
  73. package/lib/generated/prisma/models/CheckoutLineModifierOption.d.ts +1702 -0
  74. package/lib/generated/prisma/models/CheckoutLineModifierOption.js +12 -0
  75. package/lib/generated/prisma/models/CheckoutLineModifierOption.js.map +1 -0
  76. package/lib/generated/prisma/models/CheckoutLinesModifier.d.ts +2124 -0
  77. package/lib/generated/prisma/models/CheckoutLinesModifier.js +12 -0
  78. package/lib/generated/prisma/models/CheckoutLinesModifier.js.map +1 -0
  79. package/lib/generated/prisma/models/Collection.d.ts +1961 -0
  80. package/lib/generated/prisma/models/Collection.js +12 -0
  81. package/lib/generated/prisma/models/Collection.js.map +1 -0
  82. package/lib/generated/prisma/models/CollectionToPlatform.d.ts +1313 -0
  83. package/lib/generated/prisma/models/CollectionToPlatform.js +12 -0
  84. package/lib/generated/prisma/models/CollectionToPlatform.js.map +1 -0
  85. package/lib/generated/prisma/models/CollectionToProduct.d.ts +1342 -0
  86. package/lib/generated/prisma/models/CollectionToProduct.js +12 -0
  87. package/lib/generated/prisma/models/CollectionToProduct.js.map +1 -0
  88. package/lib/generated/prisma/models/CollectionToProductVariant.d.ts +1201 -0
  89. package/lib/generated/prisma/models/CollectionToProductVariant.js +12 -0
  90. package/lib/generated/prisma/models/CollectionToProductVariant.js.map +1 -0
  91. package/lib/generated/prisma/models/Customer.d.ts +2964 -0
  92. package/lib/generated/prisma/models/Customer.js +12 -0
  93. package/lib/generated/prisma/models/Customer.js.map +1 -0
  94. package/lib/generated/prisma/models/CustomerGroup.d.ts +1167 -0
  95. package/lib/generated/prisma/models/CustomerGroup.js +12 -0
  96. package/lib/generated/prisma/models/CustomerGroup.js.map +1 -0
  97. package/lib/generated/prisma/models/CustomerToAddress.d.ts +1243 -0
  98. package/lib/generated/prisma/models/CustomerToAddress.js +12 -0
  99. package/lib/generated/prisma/models/CustomerToAddress.js.map +1 -0
  100. package/lib/generated/prisma/models/CustomerToCustomerGroup.d.ts +1201 -0
  101. package/lib/generated/prisma/models/CustomerToCustomerGroup.js +12 -0
  102. package/lib/generated/prisma/models/CustomerToCustomerGroup.js.map +1 -0
  103. package/lib/generated/prisma/models/DiscountCode.d.ts +3139 -0
  104. package/lib/generated/prisma/models/DiscountCode.js +12 -0
  105. package/lib/generated/prisma/models/DiscountCode.js.map +1 -0
  106. package/lib/generated/prisma/models/DiscountCodeAppliedToCart.d.ts +1332 -0
  107. package/lib/generated/prisma/models/DiscountCodeAppliedToCart.js +12 -0
  108. package/lib/generated/prisma/models/DiscountCodeAppliedToCart.js.map +1 -0
  109. package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.d.ts +1389 -0
  110. package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.js +12 -0
  111. package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.js.map +1 -0
  112. package/lib/generated/prisma/models/DiscountCodeRedemption.d.ts +1537 -0
  113. package/lib/generated/prisma/models/DiscountCodeRedemption.js +12 -0
  114. package/lib/generated/prisma/models/DiscountCodeRedemption.js.map +1 -0
  115. package/lib/generated/prisma/models/EventLog.d.ts +1295 -0
  116. package/lib/generated/prisma/models/EventLog.js +12 -0
  117. package/lib/generated/prisma/models/EventLog.js.map +1 -0
  118. package/lib/generated/prisma/models/Facet.d.ts +1266 -0
  119. package/lib/generated/prisma/models/Facet.js +12 -0
  120. package/lib/generated/prisma/models/Facet.js.map +1 -0
  121. package/lib/generated/prisma/models/FacetOption.d.ts +1342 -0
  122. package/lib/generated/prisma/models/FacetOption.js +12 -0
  123. package/lib/generated/prisma/models/FacetOption.js.map +1 -0
  124. package/lib/generated/prisma/models/FacetOptionToPlatform.d.ts +1201 -0
  125. package/lib/generated/prisma/models/FacetOptionToPlatform.js +12 -0
  126. package/lib/generated/prisma/models/FacetOptionToPlatform.js.map +1 -0
  127. package/lib/generated/prisma/models/FacetToPlatform.d.ts +1201 -0
  128. package/lib/generated/prisma/models/FacetToPlatform.js +12 -0
  129. package/lib/generated/prisma/models/FacetToPlatform.js.map +1 -0
  130. package/lib/generated/prisma/models/FeatureFlag.d.ts +1412 -0
  131. package/lib/generated/prisma/models/FeatureFlag.js +12 -0
  132. package/lib/generated/prisma/models/FeatureFlag.js.map +1 -0
  133. package/lib/generated/prisma/models/FirebaseAdminConfiguration.d.ts +1059 -0
  134. package/lib/generated/prisma/models/FirebaseAdminConfiguration.js +12 -0
  135. package/lib/generated/prisma/models/FirebaseAdminConfiguration.js.map +1 -0
  136. package/lib/generated/prisma/models/FlaggedPayment.d.ts +1065 -0
  137. package/lib/generated/prisma/models/FlaggedPayment.js +12 -0
  138. package/lib/generated/prisma/models/FlaggedPayment.js.map +1 -0
  139. package/lib/generated/prisma/models/FreeItemRule.d.ts +1021 -0
  140. package/lib/generated/prisma/models/FreeItemRule.js +12 -0
  141. package/lib/generated/prisma/models/FreeItemRule.js.map +1 -0
  142. package/lib/generated/prisma/models/FreeItemToCustomer.d.ts +993 -0
  143. package/lib/generated/prisma/models/FreeItemToCustomer.js +12 -0
  144. package/lib/generated/prisma/models/FreeItemToCustomer.js.map +1 -0
  145. package/lib/generated/prisma/models/FulfillmentFees.d.ts +1365 -0
  146. package/lib/generated/prisma/models/FulfillmentFees.js +12 -0
  147. package/lib/generated/prisma/models/FulfillmentFees.js.map +1 -0
  148. package/lib/generated/prisma/models/Ingredient.d.ts +1886 -0
  149. package/lib/generated/prisma/models/Ingredient.js +12 -0
  150. package/lib/generated/prisma/models/Ingredient.js.map +1 -0
  151. package/lib/generated/prisma/models/IngredientToProductVariant.d.ts +1561 -0
  152. package/lib/generated/prisma/models/IngredientToProductVariant.js +12 -0
  153. package/lib/generated/prisma/models/IngredientToProductVariant.js.map +1 -0
  154. package/lib/generated/prisma/models/IngredientToStore.d.ts +1507 -0
  155. package/lib/generated/prisma/models/IngredientToStore.js +12 -0
  156. package/lib/generated/prisma/models/IngredientToStore.js.map +1 -0
  157. package/lib/generated/prisma/models/ManualCollectionProduct.d.ts +1256 -0
  158. package/lib/generated/prisma/models/ManualCollectionProduct.js +12 -0
  159. package/lib/generated/prisma/models/ManualCollectionProduct.js.map +1 -0
  160. package/lib/generated/prisma/models/Media.d.ts +2127 -0
  161. package/lib/generated/prisma/models/Media.js +12 -0
  162. package/lib/generated/prisma/models/Media.js.map +1 -0
  163. package/lib/generated/prisma/models/Modifier.d.ts +2597 -0
  164. package/lib/generated/prisma/models/Modifier.js +12 -0
  165. package/lib/generated/prisma/models/Modifier.js.map +1 -0
  166. package/lib/generated/prisma/models/ModifierGroup.d.ts +2099 -0
  167. package/lib/generated/prisma/models/ModifierGroup.js +12 -0
  168. package/lib/generated/prisma/models/ModifierGroup.js.map +1 -0
  169. package/lib/generated/prisma/models/ModifierGroupToProduct.d.ts +1249 -0
  170. package/lib/generated/prisma/models/ModifierGroupToProduct.js +12 -0
  171. package/lib/generated/prisma/models/ModifierGroupToProduct.js.map +1 -0
  172. package/lib/generated/prisma/models/ModifierOption.d.ts +1838 -0
  173. package/lib/generated/prisma/models/ModifierOption.js +12 -0
  174. package/lib/generated/prisma/models/ModifierOption.js.map +1 -0
  175. package/lib/generated/prisma/models/ModifierToModifierGroup.d.ts +1343 -0
  176. package/lib/generated/prisma/models/ModifierToModifierGroup.js +12 -0
  177. package/lib/generated/prisma/models/ModifierToModifierGroup.js.map +1 -0
  178. package/lib/generated/prisma/models/NmiSecurityKey.d.ts +1087 -0
  179. package/lib/generated/prisma/models/NmiSecurityKey.js +12 -0
  180. package/lib/generated/prisma/models/NmiSecurityKey.js.map +1 -0
  181. package/lib/generated/prisma/models/OneTimeToken.d.ts +1115 -0
  182. package/lib/generated/prisma/models/OneTimeToken.js +12 -0
  183. package/lib/generated/prisma/models/OneTimeToken.js.map +1 -0
  184. package/lib/generated/prisma/models/Payment.d.ts +1560 -0
  185. package/lib/generated/prisma/models/Payment.js +12 -0
  186. package/lib/generated/prisma/models/Payment.js.map +1 -0
  187. package/lib/generated/prisma/models/Platform.d.ts +7442 -0
  188. package/lib/generated/prisma/models/Platform.js +12 -0
  189. package/lib/generated/prisma/models/Platform.js.map +1 -0
  190. package/lib/generated/prisma/models/PlatformAwsConfiguration.d.ts +1333 -0
  191. package/lib/generated/prisma/models/PlatformAwsConfiguration.js +12 -0
  192. package/lib/generated/prisma/models/PlatformAwsConfiguration.js.map +1 -0
  193. package/lib/generated/prisma/models/PlatformMailerMessage.d.ts +1299 -0
  194. package/lib/generated/prisma/models/PlatformMailerMessage.js +12 -0
  195. package/lib/generated/prisma/models/PlatformMailerMessage.js.map +1 -0
  196. package/lib/generated/prisma/models/PrepTime.d.ts +1420 -0
  197. package/lib/generated/prisma/models/PrepTime.js +12 -0
  198. package/lib/generated/prisma/models/PrepTime.js.map +1 -0
  199. package/lib/generated/prisma/models/Product.d.ts +2975 -0
  200. package/lib/generated/prisma/models/Product.js +12 -0
  201. package/lib/generated/prisma/models/Product.js.map +1 -0
  202. package/lib/generated/prisma/models/ProductCategory.d.ts +2057 -0
  203. package/lib/generated/prisma/models/ProductCategory.js +12 -0
  204. package/lib/generated/prisma/models/ProductCategory.js.map +1 -0
  205. package/lib/generated/prisma/models/ProductCategoryToTag.d.ts +1201 -0
  206. package/lib/generated/prisma/models/ProductCategoryToTag.js +12 -0
  207. package/lib/generated/prisma/models/ProductCategoryToTag.js.map +1 -0
  208. package/lib/generated/prisma/models/ProductListing.d.ts +1747 -0
  209. package/lib/generated/prisma/models/ProductListing.js +12 -0
  210. package/lib/generated/prisma/models/ProductListing.js.map +1 -0
  211. package/lib/generated/prisma/models/ProductToTag.d.ts +1201 -0
  212. package/lib/generated/prisma/models/ProductToTag.js +12 -0
  213. package/lib/generated/prisma/models/ProductToTag.js.map +1 -0
  214. package/lib/generated/prisma/models/ProductVariant.d.ts +6964 -0
  215. package/lib/generated/prisma/models/ProductVariant.js +12 -0
  216. package/lib/generated/prisma/models/ProductVariant.js.map +1 -0
  217. package/lib/generated/prisma/models/ProductVariantConfiguration.d.ts +1775 -0
  218. package/lib/generated/prisma/models/ProductVariantConfiguration.js +12 -0
  219. package/lib/generated/prisma/models/ProductVariantConfiguration.js.map +1 -0
  220. package/lib/generated/prisma/models/ProductVariantListing.d.ts +2152 -0
  221. package/lib/generated/prisma/models/ProductVariantListing.js +12 -0
  222. package/lib/generated/prisma/models/ProductVariantListing.js.map +1 -0
  223. package/lib/generated/prisma/models/ProductVariantListingToMedia.d.ts +1401 -0
  224. package/lib/generated/prisma/models/ProductVariantListingToMedia.js +12 -0
  225. package/lib/generated/prisma/models/ProductVariantListingToMedia.js.map +1 -0
  226. package/lib/generated/prisma/models/ProductVariantPlatformPricing.d.ts +1420 -0
  227. package/lib/generated/prisma/models/ProductVariantPlatformPricing.js +12 -0
  228. package/lib/generated/prisma/models/ProductVariantPlatformPricing.js.map +1 -0
  229. package/lib/generated/prisma/models/ProductVariantRanking.d.ts +1402 -0
  230. package/lib/generated/prisma/models/ProductVariantRanking.js +12 -0
  231. package/lib/generated/prisma/models/ProductVariantRanking.js.map +1 -0
  232. package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.d.ts +1638 -0
  233. package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.js +12 -0
  234. package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.js.map +1 -0
  235. package/lib/generated/prisma/models/ProductVariantStorePricing.d.ts +1467 -0
  236. package/lib/generated/prisma/models/ProductVariantStorePricing.js +12 -0
  237. package/lib/generated/prisma/models/ProductVariantStorePricing.js.map +1 -0
  238. package/lib/generated/prisma/models/ProductVariantStoreRanking.d.ts +1890 -0
  239. package/lib/generated/prisma/models/ProductVariantStoreRanking.js +12 -0
  240. package/lib/generated/prisma/models/ProductVariantStoreRanking.js.map +1 -0
  241. package/lib/generated/prisma/models/ProductVariantToMedia.d.ts +1250 -0
  242. package/lib/generated/prisma/models/ProductVariantToMedia.js +12 -0
  243. package/lib/generated/prisma/models/ProductVariantToMedia.js.map +1 -0
  244. package/lib/generated/prisma/models/ProductVariantToTag.d.ts +1201 -0
  245. package/lib/generated/prisma/models/ProductVariantToTag.js +12 -0
  246. package/lib/generated/prisma/models/ProductVariantToTag.js.map +1 -0
  247. package/lib/generated/prisma/models/ProductVarietal.d.ts +1385 -0
  248. package/lib/generated/prisma/models/ProductVarietal.js +12 -0
  249. package/lib/generated/prisma/models/ProductVarietal.js.map +1 -0
  250. package/lib/generated/prisma/models/ProductsWithOverrides.d.ts +1782 -0
  251. package/lib/generated/prisma/models/ProductsWithOverrides.js +12 -0
  252. package/lib/generated/prisma/models/ProductsWithOverrides.js.map +1 -0
  253. package/lib/generated/prisma/models/PvStoreScheduledAvailability.d.ts +1931 -0
  254. package/lib/generated/prisma/models/PvStoreScheduledAvailability.js +12 -0
  255. package/lib/generated/prisma/models/PvStoreScheduledAvailability.js.map +1 -0
  256. package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.d.ts +1405 -0
  257. package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.js +12 -0
  258. package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.js.map +1 -0
  259. package/lib/generated/prisma/models/Refund.d.ts +1707 -0
  260. package/lib/generated/prisma/models/Refund.js +12 -0
  261. package/lib/generated/prisma/models/Refund.js.map +1 -0
  262. package/lib/generated/prisma/models/RefundLine.d.ts +1373 -0
  263. package/lib/generated/prisma/models/RefundLine.js +12 -0
  264. package/lib/generated/prisma/models/RefundLine.js.map +1 -0
  265. package/lib/generated/prisma/models/RelatedItems.d.ts +1431 -0
  266. package/lib/generated/prisma/models/RelatedItems.js +12 -0
  267. package/lib/generated/prisma/models/RelatedItems.js.map +1 -0
  268. package/lib/generated/prisma/models/Role.d.ts +1264 -0
  269. package/lib/generated/prisma/models/Role.js +12 -0
  270. package/lib/generated/prisma/models/Role.js.map +1 -0
  271. package/lib/generated/prisma/models/ScheduledTask.d.ts +1146 -0
  272. package/lib/generated/prisma/models/ScheduledTask.js +12 -0
  273. package/lib/generated/prisma/models/ScheduledTask.js.map +1 -0
  274. package/lib/generated/prisma/models/ShippingConfiguration.d.ts +1659 -0
  275. package/lib/generated/prisma/models/ShippingConfiguration.js +12 -0
  276. package/lib/generated/prisma/models/ShippingConfiguration.js.map +1 -0
  277. package/lib/generated/prisma/models/ShippingLabelFee.d.ts +1705 -0
  278. package/lib/generated/prisma/models/ShippingLabelFee.js +12 -0
  279. package/lib/generated/prisma/models/ShippingLabelFee.js.map +1 -0
  280. package/lib/generated/prisma/models/ShippingLabelRefund.d.ts +1520 -0
  281. package/lib/generated/prisma/models/ShippingLabelRefund.js +12 -0
  282. package/lib/generated/prisma/models/ShippingLabelRefund.js.map +1 -0
  283. package/lib/generated/prisma/models/SmsConversation.d.ts +1548 -0
  284. package/lib/generated/prisma/models/SmsConversation.js +12 -0
  285. package/lib/generated/prisma/models/SmsConversation.js.map +1 -0
  286. package/lib/generated/prisma/models/SmsConversationMessage.d.ts +1326 -0
  287. package/lib/generated/prisma/models/SmsConversationMessage.js +12 -0
  288. package/lib/generated/prisma/models/SmsConversationMessage.js.map +1 -0
  289. package/lib/generated/prisma/models/SmsMerchantNotificationMessage.d.ts +1125 -0
  290. package/lib/generated/prisma/models/SmsMerchantNotificationMessage.js +12 -0
  291. package/lib/generated/prisma/models/SmsMerchantNotificationMessage.js.map +1 -0
  292. package/lib/generated/prisma/models/StockLevel.d.ts +1425 -0
  293. package/lib/generated/prisma/models/StockLevel.js +12 -0
  294. package/lib/generated/prisma/models/StockLevel.js.map +1 -0
  295. package/lib/generated/prisma/models/StockLocation.d.ts +1652 -0
  296. package/lib/generated/prisma/models/StockLocation.js +12 -0
  297. package/lib/generated/prisma/models/StockLocation.js.map +1 -0
  298. package/lib/generated/prisma/models/StockLocationToPlatform.d.ts +1201 -0
  299. package/lib/generated/prisma/models/StockLocationToPlatform.js +12 -0
  300. package/lib/generated/prisma/models/StockLocationToPlatform.js.map +1 -0
  301. package/lib/generated/prisma/models/StockMovement.d.ts +1608 -0
  302. package/lib/generated/prisma/models/StockMovement.js +12 -0
  303. package/lib/generated/prisma/models/StockMovement.js.map +1 -0
  304. package/lib/generated/prisma/models/Store.d.ts +4487 -0
  305. package/lib/generated/prisma/models/Store.js +12 -0
  306. package/lib/generated/prisma/models/Store.js.map +1 -0
  307. package/lib/generated/prisma/models/StoreRestockingLog.d.ts +1297 -0
  308. package/lib/generated/prisma/models/StoreRestockingLog.js +12 -0
  309. package/lib/generated/prisma/models/StoreRestockingLog.js.map +1 -0
  310. package/lib/generated/prisma/models/StoreRestockingSchedule.d.ts +1932 -0
  311. package/lib/generated/prisma/models/StoreRestockingSchedule.js +12 -0
  312. package/lib/generated/prisma/models/StoreRestockingSchedule.js.map +1 -0
  313. package/lib/generated/prisma/models/StoreToAssociatedStoreType.d.ts +1294 -0
  314. package/lib/generated/prisma/models/StoreToAssociatedStoreType.js +12 -0
  315. package/lib/generated/prisma/models/StoreToAssociatedStoreType.js.map +1 -0
  316. package/lib/generated/prisma/models/StoreToPlatform.d.ts +1331 -0
  317. package/lib/generated/prisma/models/StoreToPlatform.js +12 -0
  318. package/lib/generated/prisma/models/StoreToPlatform.js.map +1 -0
  319. package/lib/generated/prisma/models/Tag.d.ts +1581 -0
  320. package/lib/generated/prisma/models/Tag.js +12 -0
  321. package/lib/generated/prisma/models/Tag.js.map +1 -0
  322. package/lib/generated/prisma/models/TaxCategory.d.ts +1169 -0
  323. package/lib/generated/prisma/models/TaxCategory.js +12 -0
  324. package/lib/generated/prisma/models/TaxCategory.js.map +1 -0
  325. package/lib/generated/prisma/models/Transaction.d.ts +1551 -0
  326. package/lib/generated/prisma/models/Transaction.js +12 -0
  327. package/lib/generated/prisma/models/Transaction.js.map +1 -0
  328. package/lib/generated/prisma/models/User.d.ts +1907 -0
  329. package/lib/generated/prisma/models/User.js +12 -0
  330. package/lib/generated/prisma/models/User.js.map +1 -0
  331. package/lib/generated/prisma/models/UserToRole.d.ts +1201 -0
  332. package/lib/generated/prisma/models/UserToRole.js +12 -0
  333. package/lib/generated/prisma/models/UserToRole.js.map +1 -0
  334. package/lib/generated/prisma/models.d.ts +103 -0
  335. package/lib/generated/prisma/models.js +3 -0
  336. package/lib/generated/prisma/models.js.map +1 -0
  337. package/lib/generated/prisma/pjtg.d.ts +145 -0
  338. package/lib/generated/prisma/pjtg.js +3 -0
  339. package/lib/generated/prisma/pjtg.js.map +1 -0
  340. package/lib/helpers.d.ts +37 -0
  341. package/lib/helpers.js +226 -0
  342. package/lib/helpers.js.map +1 -0
  343. package/lib/index.d.ts +10 -0
  344. package/lib/index.js.map +1 -0
  345. package/lib/kysely/index.d.ts +2 -0
  346. package/lib/kysely/index.js +19 -0
  347. package/lib/kysely/index.js.map +1 -0
  348. package/lib/kysely/kysely-db.d.ts +3 -0
  349. package/lib/kysely/kysely-db.js +3 -0
  350. package/lib/kysely/kysely-db.js.map +1 -0
  351. package/lib/kysely/utils/index.d.ts +4 -0
  352. package/lib/kysely/utils/index.js +21 -0
  353. package/lib/kysely/utils/index.js.map +1 -0
  354. package/lib/kysely/utils/json-array-from-no-subquery.d.ts +38 -0
  355. package/lib/kysely/utils/json-array-from-no-subquery.js +43 -0
  356. package/lib/kysely/utils/json-array-from-no-subquery.js.map +1 -0
  357. package/lib/kysely/utils/json-object-from-no-subquery.d.ts +40 -0
  358. package/lib/kysely/utils/json-object-from-no-subquery.js +45 -0
  359. package/lib/kysely/utils/json-object-from-no-subquery.js.map +1 -0
  360. package/lib/kysely/utils/serialize-bigint-value.d.ts +3 -0
  361. package/lib/kysely/utils/serialize-bigint-value.js +13 -0
  362. package/lib/kysely/utils/serialize-bigint-value.js.map +1 -0
  363. package/lib/kysely/utils/serialize-numeric-value.d.ts +4 -0
  364. package/lib/kysely/utils/serialize-numeric-value.js +11 -0
  365. package/lib/kysely/utils/serialize-numeric-value.js.map +1 -0
  366. package/lib/kysely/utils/shallow-dehydrate.d.ts +18 -0
  367. package/lib/kysely/utils/shallow-dehydrate.js +3 -0
  368. package/lib/kysely/utils/shallow-dehydrate.js.map +1 -0
  369. package/lib/prisma-module/index.d.ts +4 -0
  370. package/lib/prisma-module/index.js +21 -0
  371. package/lib/prisma-module/index.js.map +1 -0
  372. package/lib/prisma-module/prisma-options.d.ts +59 -0
  373. package/lib/prisma-module/prisma-options.js +3 -0
  374. package/lib/prisma-module/prisma-options.js.map +1 -0
  375. package/lib/prisma-module/prisma.constants.d.ts +1 -0
  376. package/lib/prisma-module/prisma.constants.js +5 -0
  377. package/lib/prisma-module/prisma.constants.js.map +1 -0
  378. package/lib/prisma-module/prisma.module.d.ts +8 -0
  379. package/lib/prisma-module/prisma.module.js +73 -0
  380. package/lib/prisma-module/prisma.module.js.map +1 -0
  381. package/lib/prisma-module/prisma.service.d.ts +5 -0
  382. package/lib/prisma-module/prisma.service.js +29 -0
  383. package/lib/prisma-module/prisma.service.js.map +1 -0
  384. package/lib/tsconfig.build.tsbuildinfo +1 -0
  385. package/lib/types.d.ts +7 -0
  386. package/lib/types.js +3 -0
  387. package/lib/types.js.map +1 -0
  388. package/lib/utils/deep-convert-formatted-string-to-original.d.ts +1 -0
  389. package/lib/utils/deep-convert-formatted-string-to-original.js +40 -0
  390. package/lib/utils/deep-convert-formatted-string-to-original.js.map +1 -0
  391. package/lib/utils/ignore-prisma-builtins.d.ts +1 -0
  392. package/lib/utils/ignore-prisma-builtins.js +3 -0
  393. package/lib/utils/ignore-prisma-builtins.js.map +1 -0
  394. package/lib/utils/index.d.ts +3 -0
  395. package/lib/utils/index.js +20 -0
  396. package/lib/utils/index.js.map +1 -0
  397. package/lib/utils/prisma-where-to-sql.d.ts +5 -0
  398. package/lib/utils/prisma-where-to-sql.js +94 -0
  399. package/lib/utils/prisma-where-to-sql.js.map +1 -0
  400. package/lib/web360-prisma.constants.d.ts +2 -0
  401. package/lib/web360-prisma.constants.js +6 -0
  402. package/lib/web360-prisma.constants.js.map +1 -0
  403. package/lib/web360-prisma.module.d.ts +7 -0
  404. package/lib/web360-prisma.module.js +81 -0
  405. package/lib/web360-prisma.module.js.map +1 -0
  406. package/lib/web360-prisma.options.d.ts +38 -0
  407. package/lib/web360-prisma.options.js +3 -0
  408. package/lib/web360-prisma.options.js.map +1 -0
  409. package/lib/web360-prisma.service.d.ts +57 -0
  410. package/lib/web360-prisma.service.js +57 -0
  411. package/lib/web360-prisma.service.js.map +1 -0
  412. package/package.json +4 -3
@@ -0,0 +1,1886 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model Ingredient
6
+ *
7
+ */
8
+ export type IngredientModel = runtime.Types.Result.DefaultSelection<Prisma.$IngredientPayload>;
9
+ export type AggregateIngredient = {
10
+ _count: IngredientCountAggregateOutputType | null;
11
+ _avg: IngredientAvgAggregateOutputType | null;
12
+ _sum: IngredientSumAggregateOutputType | null;
13
+ _min: IngredientMinAggregateOutputType | null;
14
+ _max: IngredientMaxAggregateOutputType | null;
15
+ };
16
+ export type IngredientAvgAggregateOutputType = {
17
+ id: number | null;
18
+ categoryId: number | null;
19
+ linkedProductVariantId: number | null;
20
+ };
21
+ export type IngredientSumAggregateOutputType = {
22
+ id: bigint | null;
23
+ categoryId: bigint | null;
24
+ linkedProductVariantId: bigint | null;
25
+ };
26
+ export type IngredientMinAggregateOutputType = {
27
+ id: bigint | null;
28
+ name: string | null;
29
+ description: string | null;
30
+ categoryId: bigint | null;
31
+ linkedProductVariantId: bigint | null;
32
+ unitOfMeasurement: $Enums.UnitOfMeasurement | null;
33
+ createdAt: Date | null;
34
+ updatedAt: Date | null;
35
+ };
36
+ export type IngredientMaxAggregateOutputType = {
37
+ id: bigint | null;
38
+ name: string | null;
39
+ description: string | null;
40
+ categoryId: bigint | null;
41
+ linkedProductVariantId: bigint | null;
42
+ unitOfMeasurement: $Enums.UnitOfMeasurement | null;
43
+ createdAt: Date | null;
44
+ updatedAt: Date | null;
45
+ };
46
+ export type IngredientCountAggregateOutputType = {
47
+ id: number;
48
+ name: number;
49
+ description: number;
50
+ categoryId: number;
51
+ linkedProductVariantId: number;
52
+ unitOfMeasurement: number;
53
+ createdAt: number;
54
+ updatedAt: number;
55
+ _all: number;
56
+ };
57
+ export type IngredientAvgAggregateInputType = {
58
+ id?: true;
59
+ categoryId?: true;
60
+ linkedProductVariantId?: true;
61
+ };
62
+ export type IngredientSumAggregateInputType = {
63
+ id?: true;
64
+ categoryId?: true;
65
+ linkedProductVariantId?: true;
66
+ };
67
+ export type IngredientMinAggregateInputType = {
68
+ id?: true;
69
+ name?: true;
70
+ description?: true;
71
+ categoryId?: true;
72
+ linkedProductVariantId?: true;
73
+ unitOfMeasurement?: true;
74
+ createdAt?: true;
75
+ updatedAt?: true;
76
+ };
77
+ export type IngredientMaxAggregateInputType = {
78
+ id?: true;
79
+ name?: true;
80
+ description?: true;
81
+ categoryId?: true;
82
+ linkedProductVariantId?: true;
83
+ unitOfMeasurement?: true;
84
+ createdAt?: true;
85
+ updatedAt?: true;
86
+ };
87
+ export type IngredientCountAggregateInputType = {
88
+ id?: true;
89
+ name?: true;
90
+ description?: true;
91
+ categoryId?: true;
92
+ linkedProductVariantId?: true;
93
+ unitOfMeasurement?: true;
94
+ createdAt?: true;
95
+ updatedAt?: true;
96
+ _all?: true;
97
+ };
98
+ export type IngredientAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
99
+ /**
100
+ * Filter which Ingredient to aggregate.
101
+ */
102
+ where?: Prisma.IngredientWhereInput;
103
+ /**
104
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
105
+ *
106
+ * Determine the order of Ingredients to fetch.
107
+ */
108
+ orderBy?: Prisma.IngredientOrderByWithRelationInput | Prisma.IngredientOrderByWithRelationInput[];
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
111
+ *
112
+ * Sets the start position
113
+ */
114
+ cursor?: Prisma.IngredientWhereUniqueInput;
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
117
+ *
118
+ * Take `±n` Ingredients from the position of the cursor.
119
+ */
120
+ take?: number;
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
123
+ *
124
+ * Skip the first `n` Ingredients.
125
+ */
126
+ skip?: number;
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
129
+ *
130
+ * Count returned Ingredients
131
+ **/
132
+ _count?: true | IngredientCountAggregateInputType;
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
135
+ *
136
+ * Select which fields to average
137
+ **/
138
+ _avg?: IngredientAvgAggregateInputType;
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
+ *
142
+ * Select which fields to sum
143
+ **/
144
+ _sum?: IngredientSumAggregateInputType;
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Select which fields to find the minimum value
149
+ **/
150
+ _min?: IngredientMinAggregateInputType;
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
+ *
154
+ * Select which fields to find the maximum value
155
+ **/
156
+ _max?: IngredientMaxAggregateInputType;
157
+ };
158
+ export type GetIngredientAggregateType<T extends IngredientAggregateArgs> = {
159
+ [P in keyof T & keyof AggregateIngredient]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateIngredient[P]> : Prisma.GetScalarType<T[P], AggregateIngredient[P]>;
160
+ };
161
+ export type IngredientGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
162
+ where?: Prisma.IngredientWhereInput;
163
+ orderBy?: Prisma.IngredientOrderByWithAggregationInput | Prisma.IngredientOrderByWithAggregationInput[];
164
+ by: Prisma.IngredientScalarFieldEnum[] | Prisma.IngredientScalarFieldEnum;
165
+ having?: Prisma.IngredientScalarWhereWithAggregatesInput;
166
+ take?: number;
167
+ skip?: number;
168
+ _count?: IngredientCountAggregateInputType | true;
169
+ _avg?: IngredientAvgAggregateInputType;
170
+ _sum?: IngredientSumAggregateInputType;
171
+ _min?: IngredientMinAggregateInputType;
172
+ _max?: IngredientMaxAggregateInputType;
173
+ };
174
+ export type IngredientGroupByOutputType = {
175
+ id: bigint;
176
+ name: string;
177
+ description: string | null;
178
+ categoryId: bigint | null;
179
+ linkedProductVariantId: bigint | null;
180
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
181
+ createdAt: Date;
182
+ updatedAt: Date;
183
+ _count: IngredientCountAggregateOutputType | null;
184
+ _avg: IngredientAvgAggregateOutputType | null;
185
+ _sum: IngredientSumAggregateOutputType | null;
186
+ _min: IngredientMinAggregateOutputType | null;
187
+ _max: IngredientMaxAggregateOutputType | null;
188
+ };
189
+ type GetIngredientGroupByPayload<T extends IngredientGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<IngredientGroupByOutputType, T['by']> & {
190
+ [P in ((keyof T) & (keyof IngredientGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], IngredientGroupByOutputType[P]> : Prisma.GetScalarType<T[P], IngredientGroupByOutputType[P]>;
191
+ }>>;
192
+ export type IngredientWhereInput = {
193
+ AND?: Prisma.IngredientWhereInput | Prisma.IngredientWhereInput[];
194
+ OR?: Prisma.IngredientWhereInput[];
195
+ NOT?: Prisma.IngredientWhereInput | Prisma.IngredientWhereInput[];
196
+ id?: Prisma.BigIntFilter<"Ingredient"> | bigint | number;
197
+ name?: Prisma.StringFilter<"Ingredient"> | string;
198
+ description?: Prisma.StringNullableFilter<"Ingredient"> | string | null;
199
+ categoryId?: Prisma.BigIntNullableFilter<"Ingredient"> | bigint | number | null;
200
+ linkedProductVariantId?: Prisma.BigIntNullableFilter<"Ingredient"> | bigint | number | null;
201
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFilter<"Ingredient"> | $Enums.UnitOfMeasurement;
202
+ createdAt?: Prisma.DateTimeFilter<"Ingredient"> | Date | string;
203
+ updatedAt?: Prisma.DateTimeFilter<"Ingredient"> | Date | string;
204
+ category?: Prisma.XOR<Prisma.ProductCategoryNullableScalarRelationFilter, Prisma.ProductCategoryWhereInput> | null;
205
+ productVariant?: Prisma.XOR<Prisma.ProductVariantNullableScalarRelationFilter, Prisma.ProductVariantWhereInput> | null;
206
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantListRelationFilter;
207
+ ingredientToStores?: Prisma.IngredientToStoreListRelationFilter;
208
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleListRelationFilter;
209
+ };
210
+ export type IngredientOrderByWithRelationInput = {
211
+ id?: Prisma.SortOrder;
212
+ name?: Prisma.SortOrder;
213
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
214
+ categoryId?: Prisma.SortOrderInput | Prisma.SortOrder;
215
+ linkedProductVariantId?: Prisma.SortOrderInput | Prisma.SortOrder;
216
+ unitOfMeasurement?: Prisma.SortOrder;
217
+ createdAt?: Prisma.SortOrder;
218
+ updatedAt?: Prisma.SortOrder;
219
+ category?: Prisma.ProductCategoryOrderByWithRelationInput;
220
+ productVariant?: Prisma.ProductVariantOrderByWithRelationInput;
221
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantOrderByRelationAggregateInput;
222
+ ingredientToStores?: Prisma.IngredientToStoreOrderByRelationAggregateInput;
223
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleOrderByRelationAggregateInput;
224
+ _relevance?: Prisma.IngredientOrderByRelevanceInput;
225
+ };
226
+ export type IngredientWhereUniqueInput = Prisma.AtLeast<{
227
+ id?: bigint | number;
228
+ AND?: Prisma.IngredientWhereInput | Prisma.IngredientWhereInput[];
229
+ OR?: Prisma.IngredientWhereInput[];
230
+ NOT?: Prisma.IngredientWhereInput | Prisma.IngredientWhereInput[];
231
+ name?: Prisma.StringFilter<"Ingredient"> | string;
232
+ description?: Prisma.StringNullableFilter<"Ingredient"> | string | null;
233
+ categoryId?: Prisma.BigIntNullableFilter<"Ingredient"> | bigint | number | null;
234
+ linkedProductVariantId?: Prisma.BigIntNullableFilter<"Ingredient"> | bigint | number | null;
235
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFilter<"Ingredient"> | $Enums.UnitOfMeasurement;
236
+ createdAt?: Prisma.DateTimeFilter<"Ingredient"> | Date | string;
237
+ updatedAt?: Prisma.DateTimeFilter<"Ingredient"> | Date | string;
238
+ category?: Prisma.XOR<Prisma.ProductCategoryNullableScalarRelationFilter, Prisma.ProductCategoryWhereInput> | null;
239
+ productVariant?: Prisma.XOR<Prisma.ProductVariantNullableScalarRelationFilter, Prisma.ProductVariantWhereInput> | null;
240
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantListRelationFilter;
241
+ ingredientToStores?: Prisma.IngredientToStoreListRelationFilter;
242
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleListRelationFilter;
243
+ }, "id">;
244
+ export type IngredientOrderByWithAggregationInput = {
245
+ id?: Prisma.SortOrder;
246
+ name?: Prisma.SortOrder;
247
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
248
+ categoryId?: Prisma.SortOrderInput | Prisma.SortOrder;
249
+ linkedProductVariantId?: Prisma.SortOrderInput | Prisma.SortOrder;
250
+ unitOfMeasurement?: Prisma.SortOrder;
251
+ createdAt?: Prisma.SortOrder;
252
+ updatedAt?: Prisma.SortOrder;
253
+ _count?: Prisma.IngredientCountOrderByAggregateInput;
254
+ _avg?: Prisma.IngredientAvgOrderByAggregateInput;
255
+ _max?: Prisma.IngredientMaxOrderByAggregateInput;
256
+ _min?: Prisma.IngredientMinOrderByAggregateInput;
257
+ _sum?: Prisma.IngredientSumOrderByAggregateInput;
258
+ };
259
+ export type IngredientScalarWhereWithAggregatesInput = {
260
+ AND?: Prisma.IngredientScalarWhereWithAggregatesInput | Prisma.IngredientScalarWhereWithAggregatesInput[];
261
+ OR?: Prisma.IngredientScalarWhereWithAggregatesInput[];
262
+ NOT?: Prisma.IngredientScalarWhereWithAggregatesInput | Prisma.IngredientScalarWhereWithAggregatesInput[];
263
+ id?: Prisma.BigIntWithAggregatesFilter<"Ingredient"> | bigint | number;
264
+ name?: Prisma.StringWithAggregatesFilter<"Ingredient"> | string;
265
+ description?: Prisma.StringNullableWithAggregatesFilter<"Ingredient"> | string | null;
266
+ categoryId?: Prisma.BigIntNullableWithAggregatesFilter<"Ingredient"> | bigint | number | null;
267
+ linkedProductVariantId?: Prisma.BigIntNullableWithAggregatesFilter<"Ingredient"> | bigint | number | null;
268
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementWithAggregatesFilter<"Ingredient"> | $Enums.UnitOfMeasurement;
269
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Ingredient"> | Date | string;
270
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Ingredient"> | Date | string;
271
+ };
272
+ export type IngredientCreateInput = {
273
+ id?: bigint | number;
274
+ name: string;
275
+ description?: string | null;
276
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
277
+ createdAt?: Date | string;
278
+ updatedAt?: Date | string;
279
+ category?: Prisma.ProductCategoryCreateNestedOneWithoutIngredientsInput;
280
+ productVariant?: Prisma.ProductVariantCreateNestedOneWithoutIngredientsInput;
281
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantCreateNestedManyWithoutIngredientInput;
282
+ ingredientToStores?: Prisma.IngredientToStoreCreateNestedManyWithoutIngredientInput;
283
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleCreateNestedManyWithoutIngredientInput;
284
+ };
285
+ export type IngredientUncheckedCreateInput = {
286
+ id?: bigint | number;
287
+ name: string;
288
+ description?: string | null;
289
+ categoryId?: bigint | number | null;
290
+ linkedProductVariantId?: bigint | number | null;
291
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
292
+ createdAt?: Date | string;
293
+ updatedAt?: Date | string;
294
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUncheckedCreateNestedManyWithoutIngredientInput;
295
+ ingredientToStores?: Prisma.IngredientToStoreUncheckedCreateNestedManyWithoutIngredientInput;
296
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUncheckedCreateNestedManyWithoutIngredientInput;
297
+ };
298
+ export type IngredientUpdateInput = {
299
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
300
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
301
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
302
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
303
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
304
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
305
+ category?: Prisma.ProductCategoryUpdateOneWithoutIngredientsNestedInput;
306
+ productVariant?: Prisma.ProductVariantUpdateOneWithoutIngredientsNestedInput;
307
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUpdateManyWithoutIngredientNestedInput;
308
+ ingredientToStores?: Prisma.IngredientToStoreUpdateManyWithoutIngredientNestedInput;
309
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUpdateManyWithoutIngredientNestedInput;
310
+ };
311
+ export type IngredientUncheckedUpdateInput = {
312
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
313
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
314
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
315
+ categoryId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
316
+ linkedProductVariantId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
317
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
318
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
319
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
320
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUncheckedUpdateManyWithoutIngredientNestedInput;
321
+ ingredientToStores?: Prisma.IngredientToStoreUncheckedUpdateManyWithoutIngredientNestedInput;
322
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUncheckedUpdateManyWithoutIngredientNestedInput;
323
+ };
324
+ export type IngredientCreateManyInput = {
325
+ id?: bigint | number;
326
+ name: string;
327
+ description?: string | null;
328
+ categoryId?: bigint | number | null;
329
+ linkedProductVariantId?: bigint | number | null;
330
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
331
+ createdAt?: Date | string;
332
+ updatedAt?: Date | string;
333
+ };
334
+ export type IngredientUpdateManyMutationInput = {
335
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
336
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
337
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
338
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
339
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
340
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
341
+ };
342
+ export type IngredientUncheckedUpdateManyInput = {
343
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
344
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
345
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
346
+ categoryId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
347
+ linkedProductVariantId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
348
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
349
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
350
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
351
+ };
352
+ export type IngredientOrderByRelevanceInput = {
353
+ fields: Prisma.IngredientOrderByRelevanceFieldEnum | Prisma.IngredientOrderByRelevanceFieldEnum[];
354
+ sort: Prisma.SortOrder;
355
+ search: string;
356
+ };
357
+ export type IngredientCountOrderByAggregateInput = {
358
+ id?: Prisma.SortOrder;
359
+ name?: Prisma.SortOrder;
360
+ description?: Prisma.SortOrder;
361
+ categoryId?: Prisma.SortOrder;
362
+ linkedProductVariantId?: Prisma.SortOrder;
363
+ unitOfMeasurement?: Prisma.SortOrder;
364
+ createdAt?: Prisma.SortOrder;
365
+ updatedAt?: Prisma.SortOrder;
366
+ };
367
+ export type IngredientAvgOrderByAggregateInput = {
368
+ id?: Prisma.SortOrder;
369
+ categoryId?: Prisma.SortOrder;
370
+ linkedProductVariantId?: Prisma.SortOrder;
371
+ };
372
+ export type IngredientMaxOrderByAggregateInput = {
373
+ id?: Prisma.SortOrder;
374
+ name?: Prisma.SortOrder;
375
+ description?: Prisma.SortOrder;
376
+ categoryId?: Prisma.SortOrder;
377
+ linkedProductVariantId?: Prisma.SortOrder;
378
+ unitOfMeasurement?: Prisma.SortOrder;
379
+ createdAt?: Prisma.SortOrder;
380
+ updatedAt?: Prisma.SortOrder;
381
+ };
382
+ export type IngredientMinOrderByAggregateInput = {
383
+ id?: Prisma.SortOrder;
384
+ name?: Prisma.SortOrder;
385
+ description?: Prisma.SortOrder;
386
+ categoryId?: Prisma.SortOrder;
387
+ linkedProductVariantId?: Prisma.SortOrder;
388
+ unitOfMeasurement?: Prisma.SortOrder;
389
+ createdAt?: Prisma.SortOrder;
390
+ updatedAt?: Prisma.SortOrder;
391
+ };
392
+ export type IngredientSumOrderByAggregateInput = {
393
+ id?: Prisma.SortOrder;
394
+ categoryId?: Prisma.SortOrder;
395
+ linkedProductVariantId?: Prisma.SortOrder;
396
+ };
397
+ export type IngredientScalarRelationFilter = {
398
+ is?: Prisma.IngredientWhereInput;
399
+ isNot?: Prisma.IngredientWhereInput;
400
+ };
401
+ export type IngredientListRelationFilter = {
402
+ every?: Prisma.IngredientWhereInput;
403
+ some?: Prisma.IngredientWhereInput;
404
+ none?: Prisma.IngredientWhereInput;
405
+ };
406
+ export type IngredientOrderByRelationAggregateInput = {
407
+ _count?: Prisma.SortOrder;
408
+ };
409
+ export type EnumUnitOfMeasurementFieldUpdateOperationsInput = {
410
+ set?: $Enums.UnitOfMeasurement;
411
+ };
412
+ export type IngredientCreateNestedOneWithoutIngredientToProductVariantsInput = {
413
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutIngredientToProductVariantsInput, Prisma.IngredientUncheckedCreateWithoutIngredientToProductVariantsInput>;
414
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutIngredientToProductVariantsInput;
415
+ connect?: Prisma.IngredientWhereUniqueInput;
416
+ };
417
+ export type IngredientUpdateOneRequiredWithoutIngredientToProductVariantsNestedInput = {
418
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutIngredientToProductVariantsInput, Prisma.IngredientUncheckedCreateWithoutIngredientToProductVariantsInput>;
419
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutIngredientToProductVariantsInput;
420
+ upsert?: Prisma.IngredientUpsertWithoutIngredientToProductVariantsInput;
421
+ connect?: Prisma.IngredientWhereUniqueInput;
422
+ update?: Prisma.XOR<Prisma.XOR<Prisma.IngredientUpdateToOneWithWhereWithoutIngredientToProductVariantsInput, Prisma.IngredientUpdateWithoutIngredientToProductVariantsInput>, Prisma.IngredientUncheckedUpdateWithoutIngredientToProductVariantsInput>;
423
+ };
424
+ export type IngredientCreateNestedOneWithoutIngredientToStoresInput = {
425
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutIngredientToStoresInput, Prisma.IngredientUncheckedCreateWithoutIngredientToStoresInput>;
426
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutIngredientToStoresInput;
427
+ connect?: Prisma.IngredientWhereUniqueInput;
428
+ };
429
+ export type IngredientUpdateOneRequiredWithoutIngredientToStoresNestedInput = {
430
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutIngredientToStoresInput, Prisma.IngredientUncheckedCreateWithoutIngredientToStoresInput>;
431
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutIngredientToStoresInput;
432
+ upsert?: Prisma.IngredientUpsertWithoutIngredientToStoresInput;
433
+ connect?: Prisma.IngredientWhereUniqueInput;
434
+ update?: Prisma.XOR<Prisma.XOR<Prisma.IngredientUpdateToOneWithWhereWithoutIngredientToStoresInput, Prisma.IngredientUpdateWithoutIngredientToStoresInput>, Prisma.IngredientUncheckedUpdateWithoutIngredientToStoresInput>;
435
+ };
436
+ export type IngredientCreateNestedManyWithoutCategoryInput = {
437
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutCategoryInput, Prisma.IngredientUncheckedCreateWithoutCategoryInput> | Prisma.IngredientCreateWithoutCategoryInput[] | Prisma.IngredientUncheckedCreateWithoutCategoryInput[];
438
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutCategoryInput | Prisma.IngredientCreateOrConnectWithoutCategoryInput[];
439
+ createMany?: Prisma.IngredientCreateManyCategoryInputEnvelope;
440
+ connect?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
441
+ };
442
+ export type IngredientUncheckedCreateNestedManyWithoutCategoryInput = {
443
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutCategoryInput, Prisma.IngredientUncheckedCreateWithoutCategoryInput> | Prisma.IngredientCreateWithoutCategoryInput[] | Prisma.IngredientUncheckedCreateWithoutCategoryInput[];
444
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutCategoryInput | Prisma.IngredientCreateOrConnectWithoutCategoryInput[];
445
+ createMany?: Prisma.IngredientCreateManyCategoryInputEnvelope;
446
+ connect?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
447
+ };
448
+ export type IngredientUpdateManyWithoutCategoryNestedInput = {
449
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutCategoryInput, Prisma.IngredientUncheckedCreateWithoutCategoryInput> | Prisma.IngredientCreateWithoutCategoryInput[] | Prisma.IngredientUncheckedCreateWithoutCategoryInput[];
450
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutCategoryInput | Prisma.IngredientCreateOrConnectWithoutCategoryInput[];
451
+ upsert?: Prisma.IngredientUpsertWithWhereUniqueWithoutCategoryInput | Prisma.IngredientUpsertWithWhereUniqueWithoutCategoryInput[];
452
+ createMany?: Prisma.IngredientCreateManyCategoryInputEnvelope;
453
+ set?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
454
+ disconnect?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
455
+ delete?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
456
+ connect?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
457
+ update?: Prisma.IngredientUpdateWithWhereUniqueWithoutCategoryInput | Prisma.IngredientUpdateWithWhereUniqueWithoutCategoryInput[];
458
+ updateMany?: Prisma.IngredientUpdateManyWithWhereWithoutCategoryInput | Prisma.IngredientUpdateManyWithWhereWithoutCategoryInput[];
459
+ deleteMany?: Prisma.IngredientScalarWhereInput | Prisma.IngredientScalarWhereInput[];
460
+ };
461
+ export type IngredientUncheckedUpdateManyWithoutCategoryNestedInput = {
462
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutCategoryInput, Prisma.IngredientUncheckedCreateWithoutCategoryInput> | Prisma.IngredientCreateWithoutCategoryInput[] | Prisma.IngredientUncheckedCreateWithoutCategoryInput[];
463
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutCategoryInput | Prisma.IngredientCreateOrConnectWithoutCategoryInput[];
464
+ upsert?: Prisma.IngredientUpsertWithWhereUniqueWithoutCategoryInput | Prisma.IngredientUpsertWithWhereUniqueWithoutCategoryInput[];
465
+ createMany?: Prisma.IngredientCreateManyCategoryInputEnvelope;
466
+ set?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
467
+ disconnect?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
468
+ delete?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
469
+ connect?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
470
+ update?: Prisma.IngredientUpdateWithWhereUniqueWithoutCategoryInput | Prisma.IngredientUpdateWithWhereUniqueWithoutCategoryInput[];
471
+ updateMany?: Prisma.IngredientUpdateManyWithWhereWithoutCategoryInput | Prisma.IngredientUpdateManyWithWhereWithoutCategoryInput[];
472
+ deleteMany?: Prisma.IngredientScalarWhereInput | Prisma.IngredientScalarWhereInput[];
473
+ };
474
+ export type IngredientCreateNestedManyWithoutProductVariantInput = {
475
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutProductVariantInput, Prisma.IngredientUncheckedCreateWithoutProductVariantInput> | Prisma.IngredientCreateWithoutProductVariantInput[] | Prisma.IngredientUncheckedCreateWithoutProductVariantInput[];
476
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutProductVariantInput | Prisma.IngredientCreateOrConnectWithoutProductVariantInput[];
477
+ createMany?: Prisma.IngredientCreateManyProductVariantInputEnvelope;
478
+ connect?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
479
+ };
480
+ export type IngredientUncheckedCreateNestedManyWithoutProductVariantInput = {
481
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutProductVariantInput, Prisma.IngredientUncheckedCreateWithoutProductVariantInput> | Prisma.IngredientCreateWithoutProductVariantInput[] | Prisma.IngredientUncheckedCreateWithoutProductVariantInput[];
482
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutProductVariantInput | Prisma.IngredientCreateOrConnectWithoutProductVariantInput[];
483
+ createMany?: Prisma.IngredientCreateManyProductVariantInputEnvelope;
484
+ connect?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
485
+ };
486
+ export type IngredientUpdateManyWithoutProductVariantNestedInput = {
487
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutProductVariantInput, Prisma.IngredientUncheckedCreateWithoutProductVariantInput> | Prisma.IngredientCreateWithoutProductVariantInput[] | Prisma.IngredientUncheckedCreateWithoutProductVariantInput[];
488
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutProductVariantInput | Prisma.IngredientCreateOrConnectWithoutProductVariantInput[];
489
+ upsert?: Prisma.IngredientUpsertWithWhereUniqueWithoutProductVariantInput | Prisma.IngredientUpsertWithWhereUniqueWithoutProductVariantInput[];
490
+ createMany?: Prisma.IngredientCreateManyProductVariantInputEnvelope;
491
+ set?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
492
+ disconnect?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
493
+ delete?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
494
+ connect?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
495
+ update?: Prisma.IngredientUpdateWithWhereUniqueWithoutProductVariantInput | Prisma.IngredientUpdateWithWhereUniqueWithoutProductVariantInput[];
496
+ updateMany?: Prisma.IngredientUpdateManyWithWhereWithoutProductVariantInput | Prisma.IngredientUpdateManyWithWhereWithoutProductVariantInput[];
497
+ deleteMany?: Prisma.IngredientScalarWhereInput | Prisma.IngredientScalarWhereInput[];
498
+ };
499
+ export type IngredientUncheckedUpdateManyWithoutProductVariantNestedInput = {
500
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutProductVariantInput, Prisma.IngredientUncheckedCreateWithoutProductVariantInput> | Prisma.IngredientCreateWithoutProductVariantInput[] | Prisma.IngredientUncheckedCreateWithoutProductVariantInput[];
501
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutProductVariantInput | Prisma.IngredientCreateOrConnectWithoutProductVariantInput[];
502
+ upsert?: Prisma.IngredientUpsertWithWhereUniqueWithoutProductVariantInput | Prisma.IngredientUpsertWithWhereUniqueWithoutProductVariantInput[];
503
+ createMany?: Prisma.IngredientCreateManyProductVariantInputEnvelope;
504
+ set?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
505
+ disconnect?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
506
+ delete?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
507
+ connect?: Prisma.IngredientWhereUniqueInput | Prisma.IngredientWhereUniqueInput[];
508
+ update?: Prisma.IngredientUpdateWithWhereUniqueWithoutProductVariantInput | Prisma.IngredientUpdateWithWhereUniqueWithoutProductVariantInput[];
509
+ updateMany?: Prisma.IngredientUpdateManyWithWhereWithoutProductVariantInput | Prisma.IngredientUpdateManyWithWhereWithoutProductVariantInput[];
510
+ deleteMany?: Prisma.IngredientScalarWhereInput | Prisma.IngredientScalarWhereInput[];
511
+ };
512
+ export type IngredientCreateNestedOneWithoutStoreRestockingSchedulesInput = {
513
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutStoreRestockingSchedulesInput, Prisma.IngredientUncheckedCreateWithoutStoreRestockingSchedulesInput>;
514
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutStoreRestockingSchedulesInput;
515
+ connect?: Prisma.IngredientWhereUniqueInput;
516
+ };
517
+ export type IngredientUpdateOneRequiredWithoutStoreRestockingSchedulesNestedInput = {
518
+ create?: Prisma.XOR<Prisma.IngredientCreateWithoutStoreRestockingSchedulesInput, Prisma.IngredientUncheckedCreateWithoutStoreRestockingSchedulesInput>;
519
+ connectOrCreate?: Prisma.IngredientCreateOrConnectWithoutStoreRestockingSchedulesInput;
520
+ upsert?: Prisma.IngredientUpsertWithoutStoreRestockingSchedulesInput;
521
+ connect?: Prisma.IngredientWhereUniqueInput;
522
+ update?: Prisma.XOR<Prisma.XOR<Prisma.IngredientUpdateToOneWithWhereWithoutStoreRestockingSchedulesInput, Prisma.IngredientUpdateWithoutStoreRestockingSchedulesInput>, Prisma.IngredientUncheckedUpdateWithoutStoreRestockingSchedulesInput>;
523
+ };
524
+ export type IngredientCreateWithoutIngredientToProductVariantsInput = {
525
+ id?: bigint | number;
526
+ name: string;
527
+ description?: string | null;
528
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
529
+ createdAt?: Date | string;
530
+ updatedAt?: Date | string;
531
+ category?: Prisma.ProductCategoryCreateNestedOneWithoutIngredientsInput;
532
+ productVariant?: Prisma.ProductVariantCreateNestedOneWithoutIngredientsInput;
533
+ ingredientToStores?: Prisma.IngredientToStoreCreateNestedManyWithoutIngredientInput;
534
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleCreateNestedManyWithoutIngredientInput;
535
+ };
536
+ export type IngredientUncheckedCreateWithoutIngredientToProductVariantsInput = {
537
+ id?: bigint | number;
538
+ name: string;
539
+ description?: string | null;
540
+ categoryId?: bigint | number | null;
541
+ linkedProductVariantId?: bigint | number | null;
542
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
543
+ createdAt?: Date | string;
544
+ updatedAt?: Date | string;
545
+ ingredientToStores?: Prisma.IngredientToStoreUncheckedCreateNestedManyWithoutIngredientInput;
546
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUncheckedCreateNestedManyWithoutIngredientInput;
547
+ };
548
+ export type IngredientCreateOrConnectWithoutIngredientToProductVariantsInput = {
549
+ where: Prisma.IngredientWhereUniqueInput;
550
+ create: Prisma.XOR<Prisma.IngredientCreateWithoutIngredientToProductVariantsInput, Prisma.IngredientUncheckedCreateWithoutIngredientToProductVariantsInput>;
551
+ };
552
+ export type IngredientUpsertWithoutIngredientToProductVariantsInput = {
553
+ update: Prisma.XOR<Prisma.IngredientUpdateWithoutIngredientToProductVariantsInput, Prisma.IngredientUncheckedUpdateWithoutIngredientToProductVariantsInput>;
554
+ create: Prisma.XOR<Prisma.IngredientCreateWithoutIngredientToProductVariantsInput, Prisma.IngredientUncheckedCreateWithoutIngredientToProductVariantsInput>;
555
+ where?: Prisma.IngredientWhereInput;
556
+ };
557
+ export type IngredientUpdateToOneWithWhereWithoutIngredientToProductVariantsInput = {
558
+ where?: Prisma.IngredientWhereInput;
559
+ data: Prisma.XOR<Prisma.IngredientUpdateWithoutIngredientToProductVariantsInput, Prisma.IngredientUncheckedUpdateWithoutIngredientToProductVariantsInput>;
560
+ };
561
+ export type IngredientUpdateWithoutIngredientToProductVariantsInput = {
562
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
563
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
564
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
565
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
566
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
567
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
568
+ category?: Prisma.ProductCategoryUpdateOneWithoutIngredientsNestedInput;
569
+ productVariant?: Prisma.ProductVariantUpdateOneWithoutIngredientsNestedInput;
570
+ ingredientToStores?: Prisma.IngredientToStoreUpdateManyWithoutIngredientNestedInput;
571
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUpdateManyWithoutIngredientNestedInput;
572
+ };
573
+ export type IngredientUncheckedUpdateWithoutIngredientToProductVariantsInput = {
574
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
575
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
576
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
577
+ categoryId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
578
+ linkedProductVariantId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
579
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
580
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
581
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
582
+ ingredientToStores?: Prisma.IngredientToStoreUncheckedUpdateManyWithoutIngredientNestedInput;
583
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUncheckedUpdateManyWithoutIngredientNestedInput;
584
+ };
585
+ export type IngredientCreateWithoutIngredientToStoresInput = {
586
+ id?: bigint | number;
587
+ name: string;
588
+ description?: string | null;
589
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
590
+ createdAt?: Date | string;
591
+ updatedAt?: Date | string;
592
+ category?: Prisma.ProductCategoryCreateNestedOneWithoutIngredientsInput;
593
+ productVariant?: Prisma.ProductVariantCreateNestedOneWithoutIngredientsInput;
594
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantCreateNestedManyWithoutIngredientInput;
595
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleCreateNestedManyWithoutIngredientInput;
596
+ };
597
+ export type IngredientUncheckedCreateWithoutIngredientToStoresInput = {
598
+ id?: bigint | number;
599
+ name: string;
600
+ description?: string | null;
601
+ categoryId?: bigint | number | null;
602
+ linkedProductVariantId?: bigint | number | null;
603
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
604
+ createdAt?: Date | string;
605
+ updatedAt?: Date | string;
606
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUncheckedCreateNestedManyWithoutIngredientInput;
607
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUncheckedCreateNestedManyWithoutIngredientInput;
608
+ };
609
+ export type IngredientCreateOrConnectWithoutIngredientToStoresInput = {
610
+ where: Prisma.IngredientWhereUniqueInput;
611
+ create: Prisma.XOR<Prisma.IngredientCreateWithoutIngredientToStoresInput, Prisma.IngredientUncheckedCreateWithoutIngredientToStoresInput>;
612
+ };
613
+ export type IngredientUpsertWithoutIngredientToStoresInput = {
614
+ update: Prisma.XOR<Prisma.IngredientUpdateWithoutIngredientToStoresInput, Prisma.IngredientUncheckedUpdateWithoutIngredientToStoresInput>;
615
+ create: Prisma.XOR<Prisma.IngredientCreateWithoutIngredientToStoresInput, Prisma.IngredientUncheckedCreateWithoutIngredientToStoresInput>;
616
+ where?: Prisma.IngredientWhereInput;
617
+ };
618
+ export type IngredientUpdateToOneWithWhereWithoutIngredientToStoresInput = {
619
+ where?: Prisma.IngredientWhereInput;
620
+ data: Prisma.XOR<Prisma.IngredientUpdateWithoutIngredientToStoresInput, Prisma.IngredientUncheckedUpdateWithoutIngredientToStoresInput>;
621
+ };
622
+ export type IngredientUpdateWithoutIngredientToStoresInput = {
623
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
624
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
625
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
626
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
627
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
628
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
629
+ category?: Prisma.ProductCategoryUpdateOneWithoutIngredientsNestedInput;
630
+ productVariant?: Prisma.ProductVariantUpdateOneWithoutIngredientsNestedInput;
631
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUpdateManyWithoutIngredientNestedInput;
632
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUpdateManyWithoutIngredientNestedInput;
633
+ };
634
+ export type IngredientUncheckedUpdateWithoutIngredientToStoresInput = {
635
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
636
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
637
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
638
+ categoryId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
639
+ linkedProductVariantId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
640
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
641
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
642
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
643
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUncheckedUpdateManyWithoutIngredientNestedInput;
644
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUncheckedUpdateManyWithoutIngredientNestedInput;
645
+ };
646
+ export type IngredientCreateWithoutCategoryInput = {
647
+ id?: bigint | number;
648
+ name: string;
649
+ description?: string | null;
650
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
651
+ createdAt?: Date | string;
652
+ updatedAt?: Date | string;
653
+ productVariant?: Prisma.ProductVariantCreateNestedOneWithoutIngredientsInput;
654
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantCreateNestedManyWithoutIngredientInput;
655
+ ingredientToStores?: Prisma.IngredientToStoreCreateNestedManyWithoutIngredientInput;
656
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleCreateNestedManyWithoutIngredientInput;
657
+ };
658
+ export type IngredientUncheckedCreateWithoutCategoryInput = {
659
+ id?: bigint | number;
660
+ name: string;
661
+ description?: string | null;
662
+ linkedProductVariantId?: bigint | number | null;
663
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
664
+ createdAt?: Date | string;
665
+ updatedAt?: Date | string;
666
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUncheckedCreateNestedManyWithoutIngredientInput;
667
+ ingredientToStores?: Prisma.IngredientToStoreUncheckedCreateNestedManyWithoutIngredientInput;
668
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUncheckedCreateNestedManyWithoutIngredientInput;
669
+ };
670
+ export type IngredientCreateOrConnectWithoutCategoryInput = {
671
+ where: Prisma.IngredientWhereUniqueInput;
672
+ create: Prisma.XOR<Prisma.IngredientCreateWithoutCategoryInput, Prisma.IngredientUncheckedCreateWithoutCategoryInput>;
673
+ };
674
+ export type IngredientCreateManyCategoryInputEnvelope = {
675
+ data: Prisma.IngredientCreateManyCategoryInput | Prisma.IngredientCreateManyCategoryInput[];
676
+ skipDuplicates?: boolean;
677
+ };
678
+ export type IngredientUpsertWithWhereUniqueWithoutCategoryInput = {
679
+ where: Prisma.IngredientWhereUniqueInput;
680
+ update: Prisma.XOR<Prisma.IngredientUpdateWithoutCategoryInput, Prisma.IngredientUncheckedUpdateWithoutCategoryInput>;
681
+ create: Prisma.XOR<Prisma.IngredientCreateWithoutCategoryInput, Prisma.IngredientUncheckedCreateWithoutCategoryInput>;
682
+ };
683
+ export type IngredientUpdateWithWhereUniqueWithoutCategoryInput = {
684
+ where: Prisma.IngredientWhereUniqueInput;
685
+ data: Prisma.XOR<Prisma.IngredientUpdateWithoutCategoryInput, Prisma.IngredientUncheckedUpdateWithoutCategoryInput>;
686
+ };
687
+ export type IngredientUpdateManyWithWhereWithoutCategoryInput = {
688
+ where: Prisma.IngredientScalarWhereInput;
689
+ data: Prisma.XOR<Prisma.IngredientUpdateManyMutationInput, Prisma.IngredientUncheckedUpdateManyWithoutCategoryInput>;
690
+ };
691
+ export type IngredientScalarWhereInput = {
692
+ AND?: Prisma.IngredientScalarWhereInput | Prisma.IngredientScalarWhereInput[];
693
+ OR?: Prisma.IngredientScalarWhereInput[];
694
+ NOT?: Prisma.IngredientScalarWhereInput | Prisma.IngredientScalarWhereInput[];
695
+ id?: Prisma.BigIntFilter<"Ingredient"> | bigint | number;
696
+ name?: Prisma.StringFilter<"Ingredient"> | string;
697
+ description?: Prisma.StringNullableFilter<"Ingredient"> | string | null;
698
+ categoryId?: Prisma.BigIntNullableFilter<"Ingredient"> | bigint | number | null;
699
+ linkedProductVariantId?: Prisma.BigIntNullableFilter<"Ingredient"> | bigint | number | null;
700
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFilter<"Ingredient"> | $Enums.UnitOfMeasurement;
701
+ createdAt?: Prisma.DateTimeFilter<"Ingredient"> | Date | string;
702
+ updatedAt?: Prisma.DateTimeFilter<"Ingredient"> | Date | string;
703
+ };
704
+ export type IngredientCreateWithoutProductVariantInput = {
705
+ id?: bigint | number;
706
+ name: string;
707
+ description?: string | null;
708
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
709
+ createdAt?: Date | string;
710
+ updatedAt?: Date | string;
711
+ category?: Prisma.ProductCategoryCreateNestedOneWithoutIngredientsInput;
712
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantCreateNestedManyWithoutIngredientInput;
713
+ ingredientToStores?: Prisma.IngredientToStoreCreateNestedManyWithoutIngredientInput;
714
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleCreateNestedManyWithoutIngredientInput;
715
+ };
716
+ export type IngredientUncheckedCreateWithoutProductVariantInput = {
717
+ id?: bigint | number;
718
+ name: string;
719
+ description?: string | null;
720
+ categoryId?: bigint | number | null;
721
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
722
+ createdAt?: Date | string;
723
+ updatedAt?: Date | string;
724
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUncheckedCreateNestedManyWithoutIngredientInput;
725
+ ingredientToStores?: Prisma.IngredientToStoreUncheckedCreateNestedManyWithoutIngredientInput;
726
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUncheckedCreateNestedManyWithoutIngredientInput;
727
+ };
728
+ export type IngredientCreateOrConnectWithoutProductVariantInput = {
729
+ where: Prisma.IngredientWhereUniqueInput;
730
+ create: Prisma.XOR<Prisma.IngredientCreateWithoutProductVariantInput, Prisma.IngredientUncheckedCreateWithoutProductVariantInput>;
731
+ };
732
+ export type IngredientCreateManyProductVariantInputEnvelope = {
733
+ data: Prisma.IngredientCreateManyProductVariantInput | Prisma.IngredientCreateManyProductVariantInput[];
734
+ skipDuplicates?: boolean;
735
+ };
736
+ export type IngredientUpsertWithWhereUniqueWithoutProductVariantInput = {
737
+ where: Prisma.IngredientWhereUniqueInput;
738
+ update: Prisma.XOR<Prisma.IngredientUpdateWithoutProductVariantInput, Prisma.IngredientUncheckedUpdateWithoutProductVariantInput>;
739
+ create: Prisma.XOR<Prisma.IngredientCreateWithoutProductVariantInput, Prisma.IngredientUncheckedCreateWithoutProductVariantInput>;
740
+ };
741
+ export type IngredientUpdateWithWhereUniqueWithoutProductVariantInput = {
742
+ where: Prisma.IngredientWhereUniqueInput;
743
+ data: Prisma.XOR<Prisma.IngredientUpdateWithoutProductVariantInput, Prisma.IngredientUncheckedUpdateWithoutProductVariantInput>;
744
+ };
745
+ export type IngredientUpdateManyWithWhereWithoutProductVariantInput = {
746
+ where: Prisma.IngredientScalarWhereInput;
747
+ data: Prisma.XOR<Prisma.IngredientUpdateManyMutationInput, Prisma.IngredientUncheckedUpdateManyWithoutProductVariantInput>;
748
+ };
749
+ export type IngredientCreateWithoutStoreRestockingSchedulesInput = {
750
+ id?: bigint | number;
751
+ name: string;
752
+ description?: string | null;
753
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
754
+ createdAt?: Date | string;
755
+ updatedAt?: Date | string;
756
+ category?: Prisma.ProductCategoryCreateNestedOneWithoutIngredientsInput;
757
+ productVariant?: Prisma.ProductVariantCreateNestedOneWithoutIngredientsInput;
758
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantCreateNestedManyWithoutIngredientInput;
759
+ ingredientToStores?: Prisma.IngredientToStoreCreateNestedManyWithoutIngredientInput;
760
+ };
761
+ export type IngredientUncheckedCreateWithoutStoreRestockingSchedulesInput = {
762
+ id?: bigint | number;
763
+ name: string;
764
+ description?: string | null;
765
+ categoryId?: bigint | number | null;
766
+ linkedProductVariantId?: bigint | number | null;
767
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
768
+ createdAt?: Date | string;
769
+ updatedAt?: Date | string;
770
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUncheckedCreateNestedManyWithoutIngredientInput;
771
+ ingredientToStores?: Prisma.IngredientToStoreUncheckedCreateNestedManyWithoutIngredientInput;
772
+ };
773
+ export type IngredientCreateOrConnectWithoutStoreRestockingSchedulesInput = {
774
+ where: Prisma.IngredientWhereUniqueInput;
775
+ create: Prisma.XOR<Prisma.IngredientCreateWithoutStoreRestockingSchedulesInput, Prisma.IngredientUncheckedCreateWithoutStoreRestockingSchedulesInput>;
776
+ };
777
+ export type IngredientUpsertWithoutStoreRestockingSchedulesInput = {
778
+ update: Prisma.XOR<Prisma.IngredientUpdateWithoutStoreRestockingSchedulesInput, Prisma.IngredientUncheckedUpdateWithoutStoreRestockingSchedulesInput>;
779
+ create: Prisma.XOR<Prisma.IngredientCreateWithoutStoreRestockingSchedulesInput, Prisma.IngredientUncheckedCreateWithoutStoreRestockingSchedulesInput>;
780
+ where?: Prisma.IngredientWhereInput;
781
+ };
782
+ export type IngredientUpdateToOneWithWhereWithoutStoreRestockingSchedulesInput = {
783
+ where?: Prisma.IngredientWhereInput;
784
+ data: Prisma.XOR<Prisma.IngredientUpdateWithoutStoreRestockingSchedulesInput, Prisma.IngredientUncheckedUpdateWithoutStoreRestockingSchedulesInput>;
785
+ };
786
+ export type IngredientUpdateWithoutStoreRestockingSchedulesInput = {
787
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
788
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
789
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
790
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
791
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
792
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
793
+ category?: Prisma.ProductCategoryUpdateOneWithoutIngredientsNestedInput;
794
+ productVariant?: Prisma.ProductVariantUpdateOneWithoutIngredientsNestedInput;
795
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUpdateManyWithoutIngredientNestedInput;
796
+ ingredientToStores?: Prisma.IngredientToStoreUpdateManyWithoutIngredientNestedInput;
797
+ };
798
+ export type IngredientUncheckedUpdateWithoutStoreRestockingSchedulesInput = {
799
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
800
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
801
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
802
+ categoryId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
803
+ linkedProductVariantId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
804
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
805
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
806
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
807
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUncheckedUpdateManyWithoutIngredientNestedInput;
808
+ ingredientToStores?: Prisma.IngredientToStoreUncheckedUpdateManyWithoutIngredientNestedInput;
809
+ };
810
+ export type IngredientCreateManyCategoryInput = {
811
+ id?: bigint | number;
812
+ name: string;
813
+ description?: string | null;
814
+ linkedProductVariantId?: bigint | number | null;
815
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
816
+ createdAt?: Date | string;
817
+ updatedAt?: Date | string;
818
+ };
819
+ export type IngredientUpdateWithoutCategoryInput = {
820
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
821
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
822
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
823
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
824
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
825
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
826
+ productVariant?: Prisma.ProductVariantUpdateOneWithoutIngredientsNestedInput;
827
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUpdateManyWithoutIngredientNestedInput;
828
+ ingredientToStores?: Prisma.IngredientToStoreUpdateManyWithoutIngredientNestedInput;
829
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUpdateManyWithoutIngredientNestedInput;
830
+ };
831
+ export type IngredientUncheckedUpdateWithoutCategoryInput = {
832
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
833
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
834
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
835
+ linkedProductVariantId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
836
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
837
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
838
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
839
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUncheckedUpdateManyWithoutIngredientNestedInput;
840
+ ingredientToStores?: Prisma.IngredientToStoreUncheckedUpdateManyWithoutIngredientNestedInput;
841
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUncheckedUpdateManyWithoutIngredientNestedInput;
842
+ };
843
+ export type IngredientUncheckedUpdateManyWithoutCategoryInput = {
844
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
845
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
846
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
847
+ linkedProductVariantId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
848
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
849
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
850
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
851
+ };
852
+ export type IngredientCreateManyProductVariantInput = {
853
+ id?: bigint | number;
854
+ name: string;
855
+ description?: string | null;
856
+ categoryId?: bigint | number | null;
857
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
858
+ createdAt?: Date | string;
859
+ updatedAt?: Date | string;
860
+ };
861
+ export type IngredientUpdateWithoutProductVariantInput = {
862
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
863
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
864
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
865
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
866
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
867
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
868
+ category?: Prisma.ProductCategoryUpdateOneWithoutIngredientsNestedInput;
869
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUpdateManyWithoutIngredientNestedInput;
870
+ ingredientToStores?: Prisma.IngredientToStoreUpdateManyWithoutIngredientNestedInput;
871
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUpdateManyWithoutIngredientNestedInput;
872
+ };
873
+ export type IngredientUncheckedUpdateWithoutProductVariantInput = {
874
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
875
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
876
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
877
+ categoryId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
878
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
879
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
880
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
881
+ ingredientToProductVariants?: Prisma.IngredientToProductVariantUncheckedUpdateManyWithoutIngredientNestedInput;
882
+ ingredientToStores?: Prisma.IngredientToStoreUncheckedUpdateManyWithoutIngredientNestedInput;
883
+ storeRestockingSchedules?: Prisma.StoreRestockingScheduleUncheckedUpdateManyWithoutIngredientNestedInput;
884
+ };
885
+ export type IngredientUncheckedUpdateManyWithoutProductVariantInput = {
886
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
887
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
888
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
889
+ categoryId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
890
+ unitOfMeasurement?: Prisma.EnumUnitOfMeasurementFieldUpdateOperationsInput | $Enums.UnitOfMeasurement;
891
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
892
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
893
+ };
894
+ /**
895
+ * Count Type IngredientCountOutputType
896
+ */
897
+ export type IngredientCountOutputType = {
898
+ ingredientToProductVariants: number;
899
+ ingredientToStores: number;
900
+ storeRestockingSchedules: number;
901
+ };
902
+ export type IngredientCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
903
+ ingredientToProductVariants?: boolean | IngredientCountOutputTypeCountIngredientToProductVariantsArgs;
904
+ ingredientToStores?: boolean | IngredientCountOutputTypeCountIngredientToStoresArgs;
905
+ storeRestockingSchedules?: boolean | IngredientCountOutputTypeCountStoreRestockingSchedulesArgs;
906
+ };
907
+ /**
908
+ * IngredientCountOutputType without action
909
+ */
910
+ export type IngredientCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
911
+ /**
912
+ * Select specific fields to fetch from the IngredientCountOutputType
913
+ */
914
+ select?: Prisma.IngredientCountOutputTypeSelect<ExtArgs> | null;
915
+ };
916
+ /**
917
+ * IngredientCountOutputType without action
918
+ */
919
+ export type IngredientCountOutputTypeCountIngredientToProductVariantsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
920
+ where?: Prisma.IngredientToProductVariantWhereInput;
921
+ };
922
+ /**
923
+ * IngredientCountOutputType without action
924
+ */
925
+ export type IngredientCountOutputTypeCountIngredientToStoresArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
926
+ where?: Prisma.IngredientToStoreWhereInput;
927
+ };
928
+ /**
929
+ * IngredientCountOutputType without action
930
+ */
931
+ export type IngredientCountOutputTypeCountStoreRestockingSchedulesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
932
+ where?: Prisma.StoreRestockingScheduleWhereInput;
933
+ };
934
+ export type IngredientSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
935
+ id?: boolean;
936
+ name?: boolean;
937
+ description?: boolean;
938
+ categoryId?: boolean;
939
+ linkedProductVariantId?: boolean;
940
+ unitOfMeasurement?: boolean;
941
+ createdAt?: boolean;
942
+ updatedAt?: boolean;
943
+ category?: boolean | Prisma.Ingredient$categoryArgs<ExtArgs>;
944
+ productVariant?: boolean | Prisma.Ingredient$productVariantArgs<ExtArgs>;
945
+ ingredientToProductVariants?: boolean | Prisma.Ingredient$ingredientToProductVariantsArgs<ExtArgs>;
946
+ ingredientToStores?: boolean | Prisma.Ingredient$ingredientToStoresArgs<ExtArgs>;
947
+ storeRestockingSchedules?: boolean | Prisma.Ingredient$storeRestockingSchedulesArgs<ExtArgs>;
948
+ _count?: boolean | Prisma.IngredientCountOutputTypeDefaultArgs<ExtArgs>;
949
+ }, ExtArgs["result"]["ingredient"]>;
950
+ export type IngredientSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
951
+ id?: boolean;
952
+ name?: boolean;
953
+ description?: boolean;
954
+ categoryId?: boolean;
955
+ linkedProductVariantId?: boolean;
956
+ unitOfMeasurement?: boolean;
957
+ createdAt?: boolean;
958
+ updatedAt?: boolean;
959
+ category?: boolean | Prisma.Ingredient$categoryArgs<ExtArgs>;
960
+ productVariant?: boolean | Prisma.Ingredient$productVariantArgs<ExtArgs>;
961
+ }, ExtArgs["result"]["ingredient"]>;
962
+ export type IngredientSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
963
+ id?: boolean;
964
+ name?: boolean;
965
+ description?: boolean;
966
+ categoryId?: boolean;
967
+ linkedProductVariantId?: boolean;
968
+ unitOfMeasurement?: boolean;
969
+ createdAt?: boolean;
970
+ updatedAt?: boolean;
971
+ category?: boolean | Prisma.Ingredient$categoryArgs<ExtArgs>;
972
+ productVariant?: boolean | Prisma.Ingredient$productVariantArgs<ExtArgs>;
973
+ }, ExtArgs["result"]["ingredient"]>;
974
+ export type IngredientSelectScalar = {
975
+ id?: boolean;
976
+ name?: boolean;
977
+ description?: boolean;
978
+ categoryId?: boolean;
979
+ linkedProductVariantId?: boolean;
980
+ unitOfMeasurement?: boolean;
981
+ createdAt?: boolean;
982
+ updatedAt?: boolean;
983
+ };
984
+ export type IngredientOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "categoryId" | "linkedProductVariantId" | "unitOfMeasurement" | "createdAt" | "updatedAt", ExtArgs["result"]["ingredient"]>;
985
+ export type IngredientInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
986
+ category?: boolean | Prisma.Ingredient$categoryArgs<ExtArgs>;
987
+ productVariant?: boolean | Prisma.Ingredient$productVariantArgs<ExtArgs>;
988
+ ingredientToProductVariants?: boolean | Prisma.Ingredient$ingredientToProductVariantsArgs<ExtArgs>;
989
+ ingredientToStores?: boolean | Prisma.Ingredient$ingredientToStoresArgs<ExtArgs>;
990
+ storeRestockingSchedules?: boolean | Prisma.Ingredient$storeRestockingSchedulesArgs<ExtArgs>;
991
+ _count?: boolean | Prisma.IngredientCountOutputTypeDefaultArgs<ExtArgs>;
992
+ };
993
+ export type IngredientIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
994
+ category?: boolean | Prisma.Ingredient$categoryArgs<ExtArgs>;
995
+ productVariant?: boolean | Prisma.Ingredient$productVariantArgs<ExtArgs>;
996
+ };
997
+ export type IngredientIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
998
+ category?: boolean | Prisma.Ingredient$categoryArgs<ExtArgs>;
999
+ productVariant?: boolean | Prisma.Ingredient$productVariantArgs<ExtArgs>;
1000
+ };
1001
+ export type $IngredientPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1002
+ name: "Ingredient";
1003
+ objects: {
1004
+ category: Prisma.$ProductCategoryPayload<ExtArgs> | null;
1005
+ productVariant: Prisma.$ProductVariantPayload<ExtArgs> | null;
1006
+ ingredientToProductVariants: Prisma.$IngredientToProductVariantPayload<ExtArgs>[];
1007
+ ingredientToStores: Prisma.$IngredientToStorePayload<ExtArgs>[];
1008
+ storeRestockingSchedules: Prisma.$StoreRestockingSchedulePayload<ExtArgs>[];
1009
+ };
1010
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1011
+ id: bigint;
1012
+ name: string;
1013
+ description: string | null;
1014
+ categoryId: bigint | null;
1015
+ linkedProductVariantId: bigint | null;
1016
+ unitOfMeasurement: $Enums.UnitOfMeasurement;
1017
+ createdAt: Date;
1018
+ updatedAt: Date;
1019
+ }, ExtArgs["result"]["ingredient"]>;
1020
+ composites: {};
1021
+ };
1022
+ export type IngredientGetPayload<S extends boolean | null | undefined | IngredientDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$IngredientPayload, S>;
1023
+ export type IngredientCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<IngredientFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1024
+ select?: IngredientCountAggregateInputType | true;
1025
+ };
1026
+ export interface IngredientDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1027
+ [K: symbol]: {
1028
+ types: Prisma.TypeMap<ExtArgs>['model']['Ingredient'];
1029
+ meta: {
1030
+ name: 'Ingredient';
1031
+ };
1032
+ };
1033
+ /**
1034
+ * Find zero or one Ingredient that matches the filter.
1035
+ * @param {IngredientFindUniqueArgs} args - Arguments to find a Ingredient
1036
+ * @example
1037
+ * // Get one Ingredient
1038
+ * const ingredient = await prisma.ingredient.findUnique({
1039
+ * where: {
1040
+ * // ... provide filter here
1041
+ * }
1042
+ * })
1043
+ */
1044
+ findUnique<T extends IngredientFindUniqueArgs>(args: Prisma.SelectSubset<T, IngredientFindUniqueArgs<ExtArgs>>): Prisma.Prisma__IngredientClient<runtime.Types.Result.GetResult<Prisma.$IngredientPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1045
+ /**
1046
+ * Find one Ingredient that matches the filter or throw an error with `error.code='P2025'`
1047
+ * if no matches were found.
1048
+ * @param {IngredientFindUniqueOrThrowArgs} args - Arguments to find a Ingredient
1049
+ * @example
1050
+ * // Get one Ingredient
1051
+ * const ingredient = await prisma.ingredient.findUniqueOrThrow({
1052
+ * where: {
1053
+ * // ... provide filter here
1054
+ * }
1055
+ * })
1056
+ */
1057
+ findUniqueOrThrow<T extends IngredientFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, IngredientFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__IngredientClient<runtime.Types.Result.GetResult<Prisma.$IngredientPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1058
+ /**
1059
+ * Find the first Ingredient that matches the filter.
1060
+ * Note, that providing `undefined` is treated as the value not being there.
1061
+ * Read more here: https://pris.ly/d/null-undefined
1062
+ * @param {IngredientFindFirstArgs} args - Arguments to find a Ingredient
1063
+ * @example
1064
+ * // Get one Ingredient
1065
+ * const ingredient = await prisma.ingredient.findFirst({
1066
+ * where: {
1067
+ * // ... provide filter here
1068
+ * }
1069
+ * })
1070
+ */
1071
+ findFirst<T extends IngredientFindFirstArgs>(args?: Prisma.SelectSubset<T, IngredientFindFirstArgs<ExtArgs>>): Prisma.Prisma__IngredientClient<runtime.Types.Result.GetResult<Prisma.$IngredientPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1072
+ /**
1073
+ * Find the first Ingredient that matches the filter or
1074
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1075
+ * Note, that providing `undefined` is treated as the value not being there.
1076
+ * Read more here: https://pris.ly/d/null-undefined
1077
+ * @param {IngredientFindFirstOrThrowArgs} args - Arguments to find a Ingredient
1078
+ * @example
1079
+ * // Get one Ingredient
1080
+ * const ingredient = await prisma.ingredient.findFirstOrThrow({
1081
+ * where: {
1082
+ * // ... provide filter here
1083
+ * }
1084
+ * })
1085
+ */
1086
+ findFirstOrThrow<T extends IngredientFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, IngredientFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__IngredientClient<runtime.Types.Result.GetResult<Prisma.$IngredientPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1087
+ /**
1088
+ * Find zero or more Ingredients that matches the filter.
1089
+ * Note, that providing `undefined` is treated as the value not being there.
1090
+ * Read more here: https://pris.ly/d/null-undefined
1091
+ * @param {IngredientFindManyArgs} args - Arguments to filter and select certain fields only.
1092
+ * @example
1093
+ * // Get all Ingredients
1094
+ * const ingredients = await prisma.ingredient.findMany()
1095
+ *
1096
+ * // Get first 10 Ingredients
1097
+ * const ingredients = await prisma.ingredient.findMany({ take: 10 })
1098
+ *
1099
+ * // Only select the `id`
1100
+ * const ingredientWithIdOnly = await prisma.ingredient.findMany({ select: { id: true } })
1101
+ *
1102
+ */
1103
+ findMany<T extends IngredientFindManyArgs>(args?: Prisma.SelectSubset<T, IngredientFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IngredientPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1104
+ /**
1105
+ * Create a Ingredient.
1106
+ * @param {IngredientCreateArgs} args - Arguments to create a Ingredient.
1107
+ * @example
1108
+ * // Create one Ingredient
1109
+ * const Ingredient = await prisma.ingredient.create({
1110
+ * data: {
1111
+ * // ... data to create a Ingredient
1112
+ * }
1113
+ * })
1114
+ *
1115
+ */
1116
+ create<T extends IngredientCreateArgs>(args: Prisma.SelectSubset<T, IngredientCreateArgs<ExtArgs>>): Prisma.Prisma__IngredientClient<runtime.Types.Result.GetResult<Prisma.$IngredientPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1117
+ /**
1118
+ * Create many Ingredients.
1119
+ * @param {IngredientCreateManyArgs} args - Arguments to create many Ingredients.
1120
+ * @example
1121
+ * // Create many Ingredients
1122
+ * const ingredient = await prisma.ingredient.createMany({
1123
+ * data: [
1124
+ * // ... provide data here
1125
+ * ]
1126
+ * })
1127
+ *
1128
+ */
1129
+ createMany<T extends IngredientCreateManyArgs>(args?: Prisma.SelectSubset<T, IngredientCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1130
+ /**
1131
+ * Create many Ingredients and returns the data saved in the database.
1132
+ * @param {IngredientCreateManyAndReturnArgs} args - Arguments to create many Ingredients.
1133
+ * @example
1134
+ * // Create many Ingredients
1135
+ * const ingredient = await prisma.ingredient.createManyAndReturn({
1136
+ * data: [
1137
+ * // ... provide data here
1138
+ * ]
1139
+ * })
1140
+ *
1141
+ * // Create many Ingredients and only return the `id`
1142
+ * const ingredientWithIdOnly = await prisma.ingredient.createManyAndReturn({
1143
+ * select: { id: true },
1144
+ * data: [
1145
+ * // ... provide data here
1146
+ * ]
1147
+ * })
1148
+ * Note, that providing `undefined` is treated as the value not being there.
1149
+ * Read more here: https://pris.ly/d/null-undefined
1150
+ *
1151
+ */
1152
+ createManyAndReturn<T extends IngredientCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, IngredientCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IngredientPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1153
+ /**
1154
+ * Delete a Ingredient.
1155
+ * @param {IngredientDeleteArgs} args - Arguments to delete one Ingredient.
1156
+ * @example
1157
+ * // Delete one Ingredient
1158
+ * const Ingredient = await prisma.ingredient.delete({
1159
+ * where: {
1160
+ * // ... filter to delete one Ingredient
1161
+ * }
1162
+ * })
1163
+ *
1164
+ */
1165
+ delete<T extends IngredientDeleteArgs>(args: Prisma.SelectSubset<T, IngredientDeleteArgs<ExtArgs>>): Prisma.Prisma__IngredientClient<runtime.Types.Result.GetResult<Prisma.$IngredientPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1166
+ /**
1167
+ * Update one Ingredient.
1168
+ * @param {IngredientUpdateArgs} args - Arguments to update one Ingredient.
1169
+ * @example
1170
+ * // Update one Ingredient
1171
+ * const ingredient = await prisma.ingredient.update({
1172
+ * where: {
1173
+ * // ... provide filter here
1174
+ * },
1175
+ * data: {
1176
+ * // ... provide data here
1177
+ * }
1178
+ * })
1179
+ *
1180
+ */
1181
+ update<T extends IngredientUpdateArgs>(args: Prisma.SelectSubset<T, IngredientUpdateArgs<ExtArgs>>): Prisma.Prisma__IngredientClient<runtime.Types.Result.GetResult<Prisma.$IngredientPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1182
+ /**
1183
+ * Delete zero or more Ingredients.
1184
+ * @param {IngredientDeleteManyArgs} args - Arguments to filter Ingredients to delete.
1185
+ * @example
1186
+ * // Delete a few Ingredients
1187
+ * const { count } = await prisma.ingredient.deleteMany({
1188
+ * where: {
1189
+ * // ... provide filter here
1190
+ * }
1191
+ * })
1192
+ *
1193
+ */
1194
+ deleteMany<T extends IngredientDeleteManyArgs>(args?: Prisma.SelectSubset<T, IngredientDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1195
+ /**
1196
+ * Update zero or more Ingredients.
1197
+ * Note, that providing `undefined` is treated as the value not being there.
1198
+ * Read more here: https://pris.ly/d/null-undefined
1199
+ * @param {IngredientUpdateManyArgs} args - Arguments to update one or more rows.
1200
+ * @example
1201
+ * // Update many Ingredients
1202
+ * const ingredient = await prisma.ingredient.updateMany({
1203
+ * where: {
1204
+ * // ... provide filter here
1205
+ * },
1206
+ * data: {
1207
+ * // ... provide data here
1208
+ * }
1209
+ * })
1210
+ *
1211
+ */
1212
+ updateMany<T extends IngredientUpdateManyArgs>(args: Prisma.SelectSubset<T, IngredientUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1213
+ /**
1214
+ * Update zero or more Ingredients and returns the data updated in the database.
1215
+ * @param {IngredientUpdateManyAndReturnArgs} args - Arguments to update many Ingredients.
1216
+ * @example
1217
+ * // Update many Ingredients
1218
+ * const ingredient = await prisma.ingredient.updateManyAndReturn({
1219
+ * where: {
1220
+ * // ... provide filter here
1221
+ * },
1222
+ * data: [
1223
+ * // ... provide data here
1224
+ * ]
1225
+ * })
1226
+ *
1227
+ * // Update zero or more Ingredients and only return the `id`
1228
+ * const ingredientWithIdOnly = await prisma.ingredient.updateManyAndReturn({
1229
+ * select: { id: true },
1230
+ * where: {
1231
+ * // ... provide filter here
1232
+ * },
1233
+ * data: [
1234
+ * // ... provide data here
1235
+ * ]
1236
+ * })
1237
+ * Note, that providing `undefined` is treated as the value not being there.
1238
+ * Read more here: https://pris.ly/d/null-undefined
1239
+ *
1240
+ */
1241
+ updateManyAndReturn<T extends IngredientUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, IngredientUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IngredientPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1242
+ /**
1243
+ * Create or update one Ingredient.
1244
+ * @param {IngredientUpsertArgs} args - Arguments to update or create a Ingredient.
1245
+ * @example
1246
+ * // Update or create a Ingredient
1247
+ * const ingredient = await prisma.ingredient.upsert({
1248
+ * create: {
1249
+ * // ... data to create a Ingredient
1250
+ * },
1251
+ * update: {
1252
+ * // ... in case it already exists, update
1253
+ * },
1254
+ * where: {
1255
+ * // ... the filter for the Ingredient we want to update
1256
+ * }
1257
+ * })
1258
+ */
1259
+ upsert<T extends IngredientUpsertArgs>(args: Prisma.SelectSubset<T, IngredientUpsertArgs<ExtArgs>>): Prisma.Prisma__IngredientClient<runtime.Types.Result.GetResult<Prisma.$IngredientPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1260
+ /**
1261
+ * Count the number of Ingredients.
1262
+ * Note, that providing `undefined` is treated as the value not being there.
1263
+ * Read more here: https://pris.ly/d/null-undefined
1264
+ * @param {IngredientCountArgs} args - Arguments to filter Ingredients to count.
1265
+ * @example
1266
+ * // Count the number of Ingredients
1267
+ * const count = await prisma.ingredient.count({
1268
+ * where: {
1269
+ * // ... the filter for the Ingredients we want to count
1270
+ * }
1271
+ * })
1272
+ **/
1273
+ count<T extends IngredientCountArgs>(args?: Prisma.Subset<T, IngredientCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], IngredientCountAggregateOutputType> : number>;
1274
+ /**
1275
+ * Allows you to perform aggregations operations on a Ingredient.
1276
+ * Note, that providing `undefined` is treated as the value not being there.
1277
+ * Read more here: https://pris.ly/d/null-undefined
1278
+ * @param {IngredientAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1279
+ * @example
1280
+ * // Ordered by age ascending
1281
+ * // Where email contains prisma.io
1282
+ * // Limited to the 10 users
1283
+ * const aggregations = await prisma.user.aggregate({
1284
+ * _avg: {
1285
+ * age: true,
1286
+ * },
1287
+ * where: {
1288
+ * email: {
1289
+ * contains: "prisma.io",
1290
+ * },
1291
+ * },
1292
+ * orderBy: {
1293
+ * age: "asc",
1294
+ * },
1295
+ * take: 10,
1296
+ * })
1297
+ **/
1298
+ aggregate<T extends IngredientAggregateArgs>(args: Prisma.Subset<T, IngredientAggregateArgs>): Prisma.PrismaPromise<GetIngredientAggregateType<T>>;
1299
+ /**
1300
+ * Group by Ingredient.
1301
+ * Note, that providing `undefined` is treated as the value not being there.
1302
+ * Read more here: https://pris.ly/d/null-undefined
1303
+ * @param {IngredientGroupByArgs} args - Group by arguments.
1304
+ * @example
1305
+ * // Group by city, order by createdAt, get count
1306
+ * const result = await prisma.user.groupBy({
1307
+ * by: ['city', 'createdAt'],
1308
+ * orderBy: {
1309
+ * createdAt: true
1310
+ * },
1311
+ * _count: {
1312
+ * _all: true
1313
+ * },
1314
+ * })
1315
+ *
1316
+ **/
1317
+ groupBy<T extends IngredientGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1318
+ orderBy: IngredientGroupByArgs['orderBy'];
1319
+ } : {
1320
+ orderBy?: IngredientGroupByArgs['orderBy'];
1321
+ }, 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 ? {
1322
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1323
+ Error,
1324
+ 'Field ',
1325
+ P,
1326
+ ` in "having" needs to be provided in "by"`
1327
+ ];
1328
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1329
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1330
+ }[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 ? {} : {
1331
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1332
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1333
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1334
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, IngredientGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIngredientGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1335
+ /**
1336
+ * Fields of the Ingredient model
1337
+ */
1338
+ readonly fields: IngredientFieldRefs;
1339
+ }
1340
+ /**
1341
+ * The delegate class that acts as a "Promise-like" for Ingredient.
1342
+ * Why is this prefixed with `Prisma__`?
1343
+ * Because we want to prevent naming conflicts as mentioned in
1344
+ * https://github.com/prisma/prisma-client-js/issues/707
1345
+ */
1346
+ export interface Prisma__IngredientClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1347
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1348
+ category<T extends Prisma.Ingredient$categoryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ingredient$categoryArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1349
+ productVariant<T extends Prisma.Ingredient$productVariantArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ingredient$productVariantArgs<ExtArgs>>): Prisma.Prisma__ProductVariantClient<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1350
+ ingredientToProductVariants<T extends Prisma.Ingredient$ingredientToProductVariantsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ingredient$ingredientToProductVariantsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IngredientToProductVariantPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1351
+ ingredientToStores<T extends Prisma.Ingredient$ingredientToStoresArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ingredient$ingredientToStoresArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IngredientToStorePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1352
+ storeRestockingSchedules<T extends Prisma.Ingredient$storeRestockingSchedulesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ingredient$storeRestockingSchedulesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StoreRestockingSchedulePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1353
+ /**
1354
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1355
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1356
+ * @param onrejected The callback to execute when the Promise is rejected.
1357
+ * @returns A Promise for the completion of which ever callback is executed.
1358
+ */
1359
+ 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>;
1360
+ /**
1361
+ * Attaches a callback for only the rejection of the Promise.
1362
+ * @param onrejected The callback to execute when the Promise is rejected.
1363
+ * @returns A Promise for the completion of the callback.
1364
+ */
1365
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1366
+ /**
1367
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1368
+ * resolved value cannot be modified from the callback.
1369
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1370
+ * @returns A Promise for the completion of the callback.
1371
+ */
1372
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1373
+ }
1374
+ /**
1375
+ * Fields of the Ingredient model
1376
+ */
1377
+ export interface IngredientFieldRefs {
1378
+ readonly id: Prisma.FieldRef<"Ingredient", 'BigInt'>;
1379
+ readonly name: Prisma.FieldRef<"Ingredient", 'String'>;
1380
+ readonly description: Prisma.FieldRef<"Ingredient", 'String'>;
1381
+ readonly categoryId: Prisma.FieldRef<"Ingredient", 'BigInt'>;
1382
+ readonly linkedProductVariantId: Prisma.FieldRef<"Ingredient", 'BigInt'>;
1383
+ readonly unitOfMeasurement: Prisma.FieldRef<"Ingredient", 'UnitOfMeasurement'>;
1384
+ readonly createdAt: Prisma.FieldRef<"Ingredient", 'DateTime'>;
1385
+ readonly updatedAt: Prisma.FieldRef<"Ingredient", 'DateTime'>;
1386
+ }
1387
+ /**
1388
+ * Ingredient findUnique
1389
+ */
1390
+ export type IngredientFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1391
+ /**
1392
+ * Select specific fields to fetch from the Ingredient
1393
+ */
1394
+ select?: Prisma.IngredientSelect<ExtArgs> | null;
1395
+ /**
1396
+ * Omit specific fields from the Ingredient
1397
+ */
1398
+ omit?: Prisma.IngredientOmit<ExtArgs> | null;
1399
+ /**
1400
+ * Choose, which related nodes to fetch as well
1401
+ */
1402
+ include?: Prisma.IngredientInclude<ExtArgs> | null;
1403
+ /**
1404
+ * Filter, which Ingredient to fetch.
1405
+ */
1406
+ where: Prisma.IngredientWhereUniqueInput;
1407
+ };
1408
+ /**
1409
+ * Ingredient findUniqueOrThrow
1410
+ */
1411
+ export type IngredientFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1412
+ /**
1413
+ * Select specific fields to fetch from the Ingredient
1414
+ */
1415
+ select?: Prisma.IngredientSelect<ExtArgs> | null;
1416
+ /**
1417
+ * Omit specific fields from the Ingredient
1418
+ */
1419
+ omit?: Prisma.IngredientOmit<ExtArgs> | null;
1420
+ /**
1421
+ * Choose, which related nodes to fetch as well
1422
+ */
1423
+ include?: Prisma.IngredientInclude<ExtArgs> | null;
1424
+ /**
1425
+ * Filter, which Ingredient to fetch.
1426
+ */
1427
+ where: Prisma.IngredientWhereUniqueInput;
1428
+ };
1429
+ /**
1430
+ * Ingredient findFirst
1431
+ */
1432
+ export type IngredientFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1433
+ /**
1434
+ * Select specific fields to fetch from the Ingredient
1435
+ */
1436
+ select?: Prisma.IngredientSelect<ExtArgs> | null;
1437
+ /**
1438
+ * Omit specific fields from the Ingredient
1439
+ */
1440
+ omit?: Prisma.IngredientOmit<ExtArgs> | null;
1441
+ /**
1442
+ * Choose, which related nodes to fetch as well
1443
+ */
1444
+ include?: Prisma.IngredientInclude<ExtArgs> | null;
1445
+ /**
1446
+ * Filter, which Ingredient to fetch.
1447
+ */
1448
+ where?: Prisma.IngredientWhereInput;
1449
+ /**
1450
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1451
+ *
1452
+ * Determine the order of Ingredients to fetch.
1453
+ */
1454
+ orderBy?: Prisma.IngredientOrderByWithRelationInput | Prisma.IngredientOrderByWithRelationInput[];
1455
+ /**
1456
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1457
+ *
1458
+ * Sets the position for searching for Ingredients.
1459
+ */
1460
+ cursor?: Prisma.IngredientWhereUniqueInput;
1461
+ /**
1462
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1463
+ *
1464
+ * Take `±n` Ingredients from the position of the cursor.
1465
+ */
1466
+ take?: number;
1467
+ /**
1468
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1469
+ *
1470
+ * Skip the first `n` Ingredients.
1471
+ */
1472
+ skip?: number;
1473
+ /**
1474
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1475
+ *
1476
+ * Filter by unique combinations of Ingredients.
1477
+ */
1478
+ distinct?: Prisma.IngredientScalarFieldEnum | Prisma.IngredientScalarFieldEnum[];
1479
+ };
1480
+ /**
1481
+ * Ingredient findFirstOrThrow
1482
+ */
1483
+ export type IngredientFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1484
+ /**
1485
+ * Select specific fields to fetch from the Ingredient
1486
+ */
1487
+ select?: Prisma.IngredientSelect<ExtArgs> | null;
1488
+ /**
1489
+ * Omit specific fields from the Ingredient
1490
+ */
1491
+ omit?: Prisma.IngredientOmit<ExtArgs> | null;
1492
+ /**
1493
+ * Choose, which related nodes to fetch as well
1494
+ */
1495
+ include?: Prisma.IngredientInclude<ExtArgs> | null;
1496
+ /**
1497
+ * Filter, which Ingredient to fetch.
1498
+ */
1499
+ where?: Prisma.IngredientWhereInput;
1500
+ /**
1501
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1502
+ *
1503
+ * Determine the order of Ingredients to fetch.
1504
+ */
1505
+ orderBy?: Prisma.IngredientOrderByWithRelationInput | Prisma.IngredientOrderByWithRelationInput[];
1506
+ /**
1507
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1508
+ *
1509
+ * Sets the position for searching for Ingredients.
1510
+ */
1511
+ cursor?: Prisma.IngredientWhereUniqueInput;
1512
+ /**
1513
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1514
+ *
1515
+ * Take `±n` Ingredients from the position of the cursor.
1516
+ */
1517
+ take?: number;
1518
+ /**
1519
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1520
+ *
1521
+ * Skip the first `n` Ingredients.
1522
+ */
1523
+ skip?: number;
1524
+ /**
1525
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1526
+ *
1527
+ * Filter by unique combinations of Ingredients.
1528
+ */
1529
+ distinct?: Prisma.IngredientScalarFieldEnum | Prisma.IngredientScalarFieldEnum[];
1530
+ };
1531
+ /**
1532
+ * Ingredient findMany
1533
+ */
1534
+ export type IngredientFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1535
+ /**
1536
+ * Select specific fields to fetch from the Ingredient
1537
+ */
1538
+ select?: Prisma.IngredientSelect<ExtArgs> | null;
1539
+ /**
1540
+ * Omit specific fields from the Ingredient
1541
+ */
1542
+ omit?: Prisma.IngredientOmit<ExtArgs> | null;
1543
+ /**
1544
+ * Choose, which related nodes to fetch as well
1545
+ */
1546
+ include?: Prisma.IngredientInclude<ExtArgs> | null;
1547
+ /**
1548
+ * Filter, which Ingredients to fetch.
1549
+ */
1550
+ where?: Prisma.IngredientWhereInput;
1551
+ /**
1552
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1553
+ *
1554
+ * Determine the order of Ingredients to fetch.
1555
+ */
1556
+ orderBy?: Prisma.IngredientOrderByWithRelationInput | Prisma.IngredientOrderByWithRelationInput[];
1557
+ /**
1558
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1559
+ *
1560
+ * Sets the position for listing Ingredients.
1561
+ */
1562
+ cursor?: Prisma.IngredientWhereUniqueInput;
1563
+ /**
1564
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1565
+ *
1566
+ * Take `±n` Ingredients from the position of the cursor.
1567
+ */
1568
+ take?: number;
1569
+ /**
1570
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1571
+ *
1572
+ * Skip the first `n` Ingredients.
1573
+ */
1574
+ skip?: number;
1575
+ distinct?: Prisma.IngredientScalarFieldEnum | Prisma.IngredientScalarFieldEnum[];
1576
+ };
1577
+ /**
1578
+ * Ingredient create
1579
+ */
1580
+ export type IngredientCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1581
+ /**
1582
+ * Select specific fields to fetch from the Ingredient
1583
+ */
1584
+ select?: Prisma.IngredientSelect<ExtArgs> | null;
1585
+ /**
1586
+ * Omit specific fields from the Ingredient
1587
+ */
1588
+ omit?: Prisma.IngredientOmit<ExtArgs> | null;
1589
+ /**
1590
+ * Choose, which related nodes to fetch as well
1591
+ */
1592
+ include?: Prisma.IngredientInclude<ExtArgs> | null;
1593
+ /**
1594
+ * The data needed to create a Ingredient.
1595
+ */
1596
+ data: Prisma.XOR<Prisma.IngredientCreateInput, Prisma.IngredientUncheckedCreateInput>;
1597
+ };
1598
+ /**
1599
+ * Ingredient createMany
1600
+ */
1601
+ export type IngredientCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1602
+ /**
1603
+ * The data used to create many Ingredients.
1604
+ */
1605
+ data: Prisma.IngredientCreateManyInput | Prisma.IngredientCreateManyInput[];
1606
+ skipDuplicates?: boolean;
1607
+ };
1608
+ /**
1609
+ * Ingredient createManyAndReturn
1610
+ */
1611
+ export type IngredientCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1612
+ /**
1613
+ * Select specific fields to fetch from the Ingredient
1614
+ */
1615
+ select?: Prisma.IngredientSelectCreateManyAndReturn<ExtArgs> | null;
1616
+ /**
1617
+ * Omit specific fields from the Ingredient
1618
+ */
1619
+ omit?: Prisma.IngredientOmit<ExtArgs> | null;
1620
+ /**
1621
+ * The data used to create many Ingredients.
1622
+ */
1623
+ data: Prisma.IngredientCreateManyInput | Prisma.IngredientCreateManyInput[];
1624
+ skipDuplicates?: boolean;
1625
+ /**
1626
+ * Choose, which related nodes to fetch as well
1627
+ */
1628
+ include?: Prisma.IngredientIncludeCreateManyAndReturn<ExtArgs> | null;
1629
+ };
1630
+ /**
1631
+ * Ingredient update
1632
+ */
1633
+ export type IngredientUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1634
+ /**
1635
+ * Select specific fields to fetch from the Ingredient
1636
+ */
1637
+ select?: Prisma.IngredientSelect<ExtArgs> | null;
1638
+ /**
1639
+ * Omit specific fields from the Ingredient
1640
+ */
1641
+ omit?: Prisma.IngredientOmit<ExtArgs> | null;
1642
+ /**
1643
+ * Choose, which related nodes to fetch as well
1644
+ */
1645
+ include?: Prisma.IngredientInclude<ExtArgs> | null;
1646
+ /**
1647
+ * The data needed to update a Ingredient.
1648
+ */
1649
+ data: Prisma.XOR<Prisma.IngredientUpdateInput, Prisma.IngredientUncheckedUpdateInput>;
1650
+ /**
1651
+ * Choose, which Ingredient to update.
1652
+ */
1653
+ where: Prisma.IngredientWhereUniqueInput;
1654
+ };
1655
+ /**
1656
+ * Ingredient updateMany
1657
+ */
1658
+ export type IngredientUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1659
+ /**
1660
+ * The data used to update Ingredients.
1661
+ */
1662
+ data: Prisma.XOR<Prisma.IngredientUpdateManyMutationInput, Prisma.IngredientUncheckedUpdateManyInput>;
1663
+ /**
1664
+ * Filter which Ingredients to update
1665
+ */
1666
+ where?: Prisma.IngredientWhereInput;
1667
+ /**
1668
+ * Limit how many Ingredients to update.
1669
+ */
1670
+ limit?: number;
1671
+ };
1672
+ /**
1673
+ * Ingredient updateManyAndReturn
1674
+ */
1675
+ export type IngredientUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1676
+ /**
1677
+ * Select specific fields to fetch from the Ingredient
1678
+ */
1679
+ select?: Prisma.IngredientSelectUpdateManyAndReturn<ExtArgs> | null;
1680
+ /**
1681
+ * Omit specific fields from the Ingredient
1682
+ */
1683
+ omit?: Prisma.IngredientOmit<ExtArgs> | null;
1684
+ /**
1685
+ * The data used to update Ingredients.
1686
+ */
1687
+ data: Prisma.XOR<Prisma.IngredientUpdateManyMutationInput, Prisma.IngredientUncheckedUpdateManyInput>;
1688
+ /**
1689
+ * Filter which Ingredients to update
1690
+ */
1691
+ where?: Prisma.IngredientWhereInput;
1692
+ /**
1693
+ * Limit how many Ingredients to update.
1694
+ */
1695
+ limit?: number;
1696
+ /**
1697
+ * Choose, which related nodes to fetch as well
1698
+ */
1699
+ include?: Prisma.IngredientIncludeUpdateManyAndReturn<ExtArgs> | null;
1700
+ };
1701
+ /**
1702
+ * Ingredient upsert
1703
+ */
1704
+ export type IngredientUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1705
+ /**
1706
+ * Select specific fields to fetch from the Ingredient
1707
+ */
1708
+ select?: Prisma.IngredientSelect<ExtArgs> | null;
1709
+ /**
1710
+ * Omit specific fields from the Ingredient
1711
+ */
1712
+ omit?: Prisma.IngredientOmit<ExtArgs> | null;
1713
+ /**
1714
+ * Choose, which related nodes to fetch as well
1715
+ */
1716
+ include?: Prisma.IngredientInclude<ExtArgs> | null;
1717
+ /**
1718
+ * The filter to search for the Ingredient to update in case it exists.
1719
+ */
1720
+ where: Prisma.IngredientWhereUniqueInput;
1721
+ /**
1722
+ * In case the Ingredient found by the `where` argument doesn't exist, create a new Ingredient with this data.
1723
+ */
1724
+ create: Prisma.XOR<Prisma.IngredientCreateInput, Prisma.IngredientUncheckedCreateInput>;
1725
+ /**
1726
+ * In case the Ingredient was found with the provided `where` argument, update it with this data.
1727
+ */
1728
+ update: Prisma.XOR<Prisma.IngredientUpdateInput, Prisma.IngredientUncheckedUpdateInput>;
1729
+ };
1730
+ /**
1731
+ * Ingredient delete
1732
+ */
1733
+ export type IngredientDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1734
+ /**
1735
+ * Select specific fields to fetch from the Ingredient
1736
+ */
1737
+ select?: Prisma.IngredientSelect<ExtArgs> | null;
1738
+ /**
1739
+ * Omit specific fields from the Ingredient
1740
+ */
1741
+ omit?: Prisma.IngredientOmit<ExtArgs> | null;
1742
+ /**
1743
+ * Choose, which related nodes to fetch as well
1744
+ */
1745
+ include?: Prisma.IngredientInclude<ExtArgs> | null;
1746
+ /**
1747
+ * Filter which Ingredient to delete.
1748
+ */
1749
+ where: Prisma.IngredientWhereUniqueInput;
1750
+ };
1751
+ /**
1752
+ * Ingredient deleteMany
1753
+ */
1754
+ export type IngredientDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1755
+ /**
1756
+ * Filter which Ingredients to delete
1757
+ */
1758
+ where?: Prisma.IngredientWhereInput;
1759
+ /**
1760
+ * Limit how many Ingredients to delete.
1761
+ */
1762
+ limit?: number;
1763
+ };
1764
+ /**
1765
+ * Ingredient.category
1766
+ */
1767
+ export type Ingredient$categoryArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1768
+ /**
1769
+ * Select specific fields to fetch from the ProductCategory
1770
+ */
1771
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1772
+ /**
1773
+ * Omit specific fields from the ProductCategory
1774
+ */
1775
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1776
+ /**
1777
+ * Choose, which related nodes to fetch as well
1778
+ */
1779
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1780
+ where?: Prisma.ProductCategoryWhereInput;
1781
+ };
1782
+ /**
1783
+ * Ingredient.productVariant
1784
+ */
1785
+ export type Ingredient$productVariantArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1786
+ /**
1787
+ * Select specific fields to fetch from the ProductVariant
1788
+ */
1789
+ select?: Prisma.ProductVariantSelect<ExtArgs> | null;
1790
+ /**
1791
+ * Omit specific fields from the ProductVariant
1792
+ */
1793
+ omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
1794
+ /**
1795
+ * Choose, which related nodes to fetch as well
1796
+ */
1797
+ include?: Prisma.ProductVariantInclude<ExtArgs> | null;
1798
+ where?: Prisma.ProductVariantWhereInput;
1799
+ };
1800
+ /**
1801
+ * Ingredient.ingredientToProductVariants
1802
+ */
1803
+ export type Ingredient$ingredientToProductVariantsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1804
+ /**
1805
+ * Select specific fields to fetch from the IngredientToProductVariant
1806
+ */
1807
+ select?: Prisma.IngredientToProductVariantSelect<ExtArgs> | null;
1808
+ /**
1809
+ * Omit specific fields from the IngredientToProductVariant
1810
+ */
1811
+ omit?: Prisma.IngredientToProductVariantOmit<ExtArgs> | null;
1812
+ /**
1813
+ * Choose, which related nodes to fetch as well
1814
+ */
1815
+ include?: Prisma.IngredientToProductVariantInclude<ExtArgs> | null;
1816
+ where?: Prisma.IngredientToProductVariantWhereInput;
1817
+ orderBy?: Prisma.IngredientToProductVariantOrderByWithRelationInput | Prisma.IngredientToProductVariantOrderByWithRelationInput[];
1818
+ cursor?: Prisma.IngredientToProductVariantWhereUniqueInput;
1819
+ take?: number;
1820
+ skip?: number;
1821
+ distinct?: Prisma.IngredientToProductVariantScalarFieldEnum | Prisma.IngredientToProductVariantScalarFieldEnum[];
1822
+ };
1823
+ /**
1824
+ * Ingredient.ingredientToStores
1825
+ */
1826
+ export type Ingredient$ingredientToStoresArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1827
+ /**
1828
+ * Select specific fields to fetch from the IngredientToStore
1829
+ */
1830
+ select?: Prisma.IngredientToStoreSelect<ExtArgs> | null;
1831
+ /**
1832
+ * Omit specific fields from the IngredientToStore
1833
+ */
1834
+ omit?: Prisma.IngredientToStoreOmit<ExtArgs> | null;
1835
+ /**
1836
+ * Choose, which related nodes to fetch as well
1837
+ */
1838
+ include?: Prisma.IngredientToStoreInclude<ExtArgs> | null;
1839
+ where?: Prisma.IngredientToStoreWhereInput;
1840
+ orderBy?: Prisma.IngredientToStoreOrderByWithRelationInput | Prisma.IngredientToStoreOrderByWithRelationInput[];
1841
+ cursor?: Prisma.IngredientToStoreWhereUniqueInput;
1842
+ take?: number;
1843
+ skip?: number;
1844
+ distinct?: Prisma.IngredientToStoreScalarFieldEnum | Prisma.IngredientToStoreScalarFieldEnum[];
1845
+ };
1846
+ /**
1847
+ * Ingredient.storeRestockingSchedules
1848
+ */
1849
+ export type Ingredient$storeRestockingSchedulesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1850
+ /**
1851
+ * Select specific fields to fetch from the StoreRestockingSchedule
1852
+ */
1853
+ select?: Prisma.StoreRestockingScheduleSelect<ExtArgs> | null;
1854
+ /**
1855
+ * Omit specific fields from the StoreRestockingSchedule
1856
+ */
1857
+ omit?: Prisma.StoreRestockingScheduleOmit<ExtArgs> | null;
1858
+ /**
1859
+ * Choose, which related nodes to fetch as well
1860
+ */
1861
+ include?: Prisma.StoreRestockingScheduleInclude<ExtArgs> | null;
1862
+ where?: Prisma.StoreRestockingScheduleWhereInput;
1863
+ orderBy?: Prisma.StoreRestockingScheduleOrderByWithRelationInput | Prisma.StoreRestockingScheduleOrderByWithRelationInput[];
1864
+ cursor?: Prisma.StoreRestockingScheduleWhereUniqueInput;
1865
+ take?: number;
1866
+ skip?: number;
1867
+ distinct?: Prisma.StoreRestockingScheduleScalarFieldEnum | Prisma.StoreRestockingScheduleScalarFieldEnum[];
1868
+ };
1869
+ /**
1870
+ * Ingredient without action
1871
+ */
1872
+ export type IngredientDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1873
+ /**
1874
+ * Select specific fields to fetch from the Ingredient
1875
+ */
1876
+ select?: Prisma.IngredientSelect<ExtArgs> | null;
1877
+ /**
1878
+ * Omit specific fields from the Ingredient
1879
+ */
1880
+ omit?: Prisma.IngredientOmit<ExtArgs> | null;
1881
+ /**
1882
+ * Choose, which related nodes to fetch as well
1883
+ */
1884
+ include?: Prisma.IngredientInclude<ExtArgs> | null;
1885
+ };
1886
+ export {};