@pos-360/prisma 1.0.0-beta.0 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +3 -2
@@ -0,0 +1,1608 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model StockMovement
5
+ *
6
+ */
7
+ export type StockMovementModel = runtime.Types.Result.DefaultSelection<Prisma.$StockMovementPayload>;
8
+ export type AggregateStockMovement = {
9
+ _count: StockMovementCountAggregateOutputType | null;
10
+ _avg: StockMovementAvgAggregateOutputType | null;
11
+ _sum: StockMovementSumAggregateOutputType | null;
12
+ _min: StockMovementMinAggregateOutputType | null;
13
+ _max: StockMovementMaxAggregateOutputType | null;
14
+ };
15
+ export type StockMovementAvgAggregateOutputType = {
16
+ id: number | null;
17
+ stockLocationId: number | null;
18
+ productVariantId: number | null;
19
+ checkoutLineId: number | null;
20
+ quantity: number | null;
21
+ };
22
+ export type StockMovementSumAggregateOutputType = {
23
+ id: bigint | null;
24
+ stockLocationId: bigint | null;
25
+ productVariantId: bigint | null;
26
+ checkoutLineId: bigint | null;
27
+ quantity: bigint | null;
28
+ };
29
+ export type StockMovementMinAggregateOutputType = {
30
+ id: bigint | null;
31
+ createdAt: Date | null;
32
+ updatedAt: Date | null;
33
+ stockLocationId: bigint | null;
34
+ productVariantId: bigint | null;
35
+ type: string | null;
36
+ checkoutLineId: bigint | null;
37
+ quantity: bigint | null;
38
+ };
39
+ export type StockMovementMaxAggregateOutputType = {
40
+ id: bigint | null;
41
+ createdAt: Date | null;
42
+ updatedAt: Date | null;
43
+ stockLocationId: bigint | null;
44
+ productVariantId: bigint | null;
45
+ type: string | null;
46
+ checkoutLineId: bigint | null;
47
+ quantity: bigint | null;
48
+ };
49
+ export type StockMovementCountAggregateOutputType = {
50
+ id: number;
51
+ createdAt: number;
52
+ updatedAt: number;
53
+ stockLocationId: number;
54
+ productVariantId: number;
55
+ type: number;
56
+ checkoutLineId: number;
57
+ quantity: number;
58
+ _all: number;
59
+ };
60
+ export type StockMovementAvgAggregateInputType = {
61
+ id?: true;
62
+ stockLocationId?: true;
63
+ productVariantId?: true;
64
+ checkoutLineId?: true;
65
+ quantity?: true;
66
+ };
67
+ export type StockMovementSumAggregateInputType = {
68
+ id?: true;
69
+ stockLocationId?: true;
70
+ productVariantId?: true;
71
+ checkoutLineId?: true;
72
+ quantity?: true;
73
+ };
74
+ export type StockMovementMinAggregateInputType = {
75
+ id?: true;
76
+ createdAt?: true;
77
+ updatedAt?: true;
78
+ stockLocationId?: true;
79
+ productVariantId?: true;
80
+ type?: true;
81
+ checkoutLineId?: true;
82
+ quantity?: true;
83
+ };
84
+ export type StockMovementMaxAggregateInputType = {
85
+ id?: true;
86
+ createdAt?: true;
87
+ updatedAt?: true;
88
+ stockLocationId?: true;
89
+ productVariantId?: true;
90
+ type?: true;
91
+ checkoutLineId?: true;
92
+ quantity?: true;
93
+ };
94
+ export type StockMovementCountAggregateInputType = {
95
+ id?: true;
96
+ createdAt?: true;
97
+ updatedAt?: true;
98
+ stockLocationId?: true;
99
+ productVariantId?: true;
100
+ type?: true;
101
+ checkoutLineId?: true;
102
+ quantity?: true;
103
+ _all?: true;
104
+ };
105
+ export type StockMovementAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
106
+ /**
107
+ * Filter which StockMovement to aggregate.
108
+ */
109
+ where?: Prisma.StockMovementWhereInput;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
112
+ *
113
+ * Determine the order of StockMovements to fetch.
114
+ */
115
+ orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[];
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
118
+ *
119
+ * Sets the start position
120
+ */
121
+ cursor?: Prisma.StockMovementWhereUniqueInput;
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
124
+ *
125
+ * Take `±n` StockMovements from the position of the cursor.
126
+ */
127
+ take?: number;
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
130
+ *
131
+ * Skip the first `n` StockMovements.
132
+ */
133
+ skip?: number;
134
+ /**
135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
136
+ *
137
+ * Count returned StockMovements
138
+ **/
139
+ _count?: true | StockMovementCountAggregateInputType;
140
+ /**
141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
142
+ *
143
+ * Select which fields to average
144
+ **/
145
+ _avg?: StockMovementAvgAggregateInputType;
146
+ /**
147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
148
+ *
149
+ * Select which fields to sum
150
+ **/
151
+ _sum?: StockMovementSumAggregateInputType;
152
+ /**
153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
154
+ *
155
+ * Select which fields to find the minimum value
156
+ **/
157
+ _min?: StockMovementMinAggregateInputType;
158
+ /**
159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
160
+ *
161
+ * Select which fields to find the maximum value
162
+ **/
163
+ _max?: StockMovementMaxAggregateInputType;
164
+ };
165
+ export type GetStockMovementAggregateType<T extends StockMovementAggregateArgs> = {
166
+ [P in keyof T & keyof AggregateStockMovement]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateStockMovement[P]> : Prisma.GetScalarType<T[P], AggregateStockMovement[P]>;
167
+ };
168
+ export type StockMovementGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
169
+ where?: Prisma.StockMovementWhereInput;
170
+ orderBy?: Prisma.StockMovementOrderByWithAggregationInput | Prisma.StockMovementOrderByWithAggregationInput[];
171
+ by: Prisma.StockMovementScalarFieldEnum[] | Prisma.StockMovementScalarFieldEnum;
172
+ having?: Prisma.StockMovementScalarWhereWithAggregatesInput;
173
+ take?: number;
174
+ skip?: number;
175
+ _count?: StockMovementCountAggregateInputType | true;
176
+ _avg?: StockMovementAvgAggregateInputType;
177
+ _sum?: StockMovementSumAggregateInputType;
178
+ _min?: StockMovementMinAggregateInputType;
179
+ _max?: StockMovementMaxAggregateInputType;
180
+ };
181
+ export type StockMovementGroupByOutputType = {
182
+ id: bigint;
183
+ createdAt: Date;
184
+ updatedAt: Date;
185
+ stockLocationId: bigint;
186
+ productVariantId: bigint;
187
+ type: string;
188
+ checkoutLineId: bigint | null;
189
+ quantity: bigint;
190
+ _count: StockMovementCountAggregateOutputType | null;
191
+ _avg: StockMovementAvgAggregateOutputType | null;
192
+ _sum: StockMovementSumAggregateOutputType | null;
193
+ _min: StockMovementMinAggregateOutputType | null;
194
+ _max: StockMovementMaxAggregateOutputType | null;
195
+ };
196
+ type GetStockMovementGroupByPayload<T extends StockMovementGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<StockMovementGroupByOutputType, T['by']> & {
197
+ [P in ((keyof T) & (keyof StockMovementGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], StockMovementGroupByOutputType[P]> : Prisma.GetScalarType<T[P], StockMovementGroupByOutputType[P]>;
198
+ }>>;
199
+ export type StockMovementWhereInput = {
200
+ AND?: Prisma.StockMovementWhereInput | Prisma.StockMovementWhereInput[];
201
+ OR?: Prisma.StockMovementWhereInput[];
202
+ NOT?: Prisma.StockMovementWhereInput | Prisma.StockMovementWhereInput[];
203
+ id?: Prisma.BigIntFilter<"StockMovement"> | bigint | number;
204
+ createdAt?: Prisma.DateTimeFilter<"StockMovement"> | Date | string;
205
+ updatedAt?: Prisma.DateTimeFilter<"StockMovement"> | Date | string;
206
+ stockLocationId?: Prisma.BigIntFilter<"StockMovement"> | bigint | number;
207
+ productVariantId?: Prisma.BigIntFilter<"StockMovement"> | bigint | number;
208
+ type?: Prisma.StringFilter<"StockMovement"> | string;
209
+ checkoutLineId?: Prisma.BigIntNullableFilter<"StockMovement"> | bigint | number | null;
210
+ quantity?: Prisma.BigIntFilter<"StockMovement"> | bigint | number;
211
+ stockLocation?: Prisma.XOR<Prisma.StockLocationScalarRelationFilter, Prisma.StockLocationWhereInput>;
212
+ productVariant?: Prisma.XOR<Prisma.ProductVariantScalarRelationFilter, Prisma.ProductVariantWhereInput>;
213
+ checkoutLine?: Prisma.XOR<Prisma.CheckoutLineNullableScalarRelationFilter, Prisma.CheckoutLineWhereInput> | null;
214
+ };
215
+ export type StockMovementOrderByWithRelationInput = {
216
+ id?: Prisma.SortOrder;
217
+ createdAt?: Prisma.SortOrder;
218
+ updatedAt?: Prisma.SortOrder;
219
+ stockLocationId?: Prisma.SortOrder;
220
+ productVariantId?: Prisma.SortOrder;
221
+ type?: Prisma.SortOrder;
222
+ checkoutLineId?: Prisma.SortOrderInput | Prisma.SortOrder;
223
+ quantity?: Prisma.SortOrder;
224
+ stockLocation?: Prisma.StockLocationOrderByWithRelationInput;
225
+ productVariant?: Prisma.ProductVariantOrderByWithRelationInput;
226
+ checkoutLine?: Prisma.CheckoutLineOrderByWithRelationInput;
227
+ _relevance?: Prisma.StockMovementOrderByRelevanceInput;
228
+ };
229
+ export type StockMovementWhereUniqueInput = Prisma.AtLeast<{
230
+ id?: bigint | number;
231
+ AND?: Prisma.StockMovementWhereInput | Prisma.StockMovementWhereInput[];
232
+ OR?: Prisma.StockMovementWhereInput[];
233
+ NOT?: Prisma.StockMovementWhereInput | Prisma.StockMovementWhereInput[];
234
+ createdAt?: Prisma.DateTimeFilter<"StockMovement"> | Date | string;
235
+ updatedAt?: Prisma.DateTimeFilter<"StockMovement"> | Date | string;
236
+ stockLocationId?: Prisma.BigIntFilter<"StockMovement"> | bigint | number;
237
+ productVariantId?: Prisma.BigIntFilter<"StockMovement"> | bigint | number;
238
+ type?: Prisma.StringFilter<"StockMovement"> | string;
239
+ checkoutLineId?: Prisma.BigIntNullableFilter<"StockMovement"> | bigint | number | null;
240
+ quantity?: Prisma.BigIntFilter<"StockMovement"> | bigint | number;
241
+ stockLocation?: Prisma.XOR<Prisma.StockLocationScalarRelationFilter, Prisma.StockLocationWhereInput>;
242
+ productVariant?: Prisma.XOR<Prisma.ProductVariantScalarRelationFilter, Prisma.ProductVariantWhereInput>;
243
+ checkoutLine?: Prisma.XOR<Prisma.CheckoutLineNullableScalarRelationFilter, Prisma.CheckoutLineWhereInput> | null;
244
+ }, "id">;
245
+ export type StockMovementOrderByWithAggregationInput = {
246
+ id?: Prisma.SortOrder;
247
+ createdAt?: Prisma.SortOrder;
248
+ updatedAt?: Prisma.SortOrder;
249
+ stockLocationId?: Prisma.SortOrder;
250
+ productVariantId?: Prisma.SortOrder;
251
+ type?: Prisma.SortOrder;
252
+ checkoutLineId?: Prisma.SortOrderInput | Prisma.SortOrder;
253
+ quantity?: Prisma.SortOrder;
254
+ _count?: Prisma.StockMovementCountOrderByAggregateInput;
255
+ _avg?: Prisma.StockMovementAvgOrderByAggregateInput;
256
+ _max?: Prisma.StockMovementMaxOrderByAggregateInput;
257
+ _min?: Prisma.StockMovementMinOrderByAggregateInput;
258
+ _sum?: Prisma.StockMovementSumOrderByAggregateInput;
259
+ };
260
+ export type StockMovementScalarWhereWithAggregatesInput = {
261
+ AND?: Prisma.StockMovementScalarWhereWithAggregatesInput | Prisma.StockMovementScalarWhereWithAggregatesInput[];
262
+ OR?: Prisma.StockMovementScalarWhereWithAggregatesInput[];
263
+ NOT?: Prisma.StockMovementScalarWhereWithAggregatesInput | Prisma.StockMovementScalarWhereWithAggregatesInput[];
264
+ id?: Prisma.BigIntWithAggregatesFilter<"StockMovement"> | bigint | number;
265
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"StockMovement"> | Date | string;
266
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"StockMovement"> | Date | string;
267
+ stockLocationId?: Prisma.BigIntWithAggregatesFilter<"StockMovement"> | bigint | number;
268
+ productVariantId?: Prisma.BigIntWithAggregatesFilter<"StockMovement"> | bigint | number;
269
+ type?: Prisma.StringWithAggregatesFilter<"StockMovement"> | string;
270
+ checkoutLineId?: Prisma.BigIntNullableWithAggregatesFilter<"StockMovement"> | bigint | number | null;
271
+ quantity?: Prisma.BigIntWithAggregatesFilter<"StockMovement"> | bigint | number;
272
+ };
273
+ export type StockMovementCreateInput = {
274
+ id?: bigint | number;
275
+ createdAt?: Date | string;
276
+ updatedAt?: Date | string;
277
+ type: string;
278
+ quantity: bigint | number;
279
+ stockLocation: Prisma.StockLocationCreateNestedOneWithoutStockMovementInput;
280
+ productVariant: Prisma.ProductVariantCreateNestedOneWithoutStockMovementInput;
281
+ checkoutLine?: Prisma.CheckoutLineCreateNestedOneWithoutStockMovementInput;
282
+ };
283
+ export type StockMovementUncheckedCreateInput = {
284
+ id?: bigint | number;
285
+ createdAt?: Date | string;
286
+ updatedAt?: Date | string;
287
+ stockLocationId: bigint | number;
288
+ productVariantId: bigint | number;
289
+ type: string;
290
+ checkoutLineId?: bigint | number | null;
291
+ quantity: bigint | number;
292
+ };
293
+ export type StockMovementUpdateInput = {
294
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
295
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
296
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
297
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
298
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
299
+ stockLocation?: Prisma.StockLocationUpdateOneRequiredWithoutStockMovementNestedInput;
300
+ productVariant?: Prisma.ProductVariantUpdateOneRequiredWithoutStockMovementNestedInput;
301
+ checkoutLine?: Prisma.CheckoutLineUpdateOneWithoutStockMovementNestedInput;
302
+ };
303
+ export type StockMovementUncheckedUpdateInput = {
304
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
305
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
306
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
307
+ stockLocationId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
308
+ productVariantId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
309
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
310
+ checkoutLineId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
311
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
312
+ };
313
+ export type StockMovementCreateManyInput = {
314
+ id?: bigint | number;
315
+ createdAt?: Date | string;
316
+ updatedAt?: Date | string;
317
+ stockLocationId: bigint | number;
318
+ productVariantId: bigint | number;
319
+ type: string;
320
+ checkoutLineId?: bigint | number | null;
321
+ quantity: bigint | number;
322
+ };
323
+ export type StockMovementUpdateManyMutationInput = {
324
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
325
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
326
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
327
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
328
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
329
+ };
330
+ export type StockMovementUncheckedUpdateManyInput = {
331
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
332
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
333
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
334
+ stockLocationId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
335
+ productVariantId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
336
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
337
+ checkoutLineId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
338
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
339
+ };
340
+ export type StockMovementListRelationFilter = {
341
+ every?: Prisma.StockMovementWhereInput;
342
+ some?: Prisma.StockMovementWhereInput;
343
+ none?: Prisma.StockMovementWhereInput;
344
+ };
345
+ export type StockMovementOrderByRelationAggregateInput = {
346
+ _count?: Prisma.SortOrder;
347
+ };
348
+ export type StockMovementOrderByRelevanceInput = {
349
+ fields: Prisma.StockMovementOrderByRelevanceFieldEnum | Prisma.StockMovementOrderByRelevanceFieldEnum[];
350
+ sort: Prisma.SortOrder;
351
+ search: string;
352
+ };
353
+ export type StockMovementCountOrderByAggregateInput = {
354
+ id?: Prisma.SortOrder;
355
+ createdAt?: Prisma.SortOrder;
356
+ updatedAt?: Prisma.SortOrder;
357
+ stockLocationId?: Prisma.SortOrder;
358
+ productVariantId?: Prisma.SortOrder;
359
+ type?: Prisma.SortOrder;
360
+ checkoutLineId?: Prisma.SortOrder;
361
+ quantity?: Prisma.SortOrder;
362
+ };
363
+ export type StockMovementAvgOrderByAggregateInput = {
364
+ id?: Prisma.SortOrder;
365
+ stockLocationId?: Prisma.SortOrder;
366
+ productVariantId?: Prisma.SortOrder;
367
+ checkoutLineId?: Prisma.SortOrder;
368
+ quantity?: Prisma.SortOrder;
369
+ };
370
+ export type StockMovementMaxOrderByAggregateInput = {
371
+ id?: Prisma.SortOrder;
372
+ createdAt?: Prisma.SortOrder;
373
+ updatedAt?: Prisma.SortOrder;
374
+ stockLocationId?: Prisma.SortOrder;
375
+ productVariantId?: Prisma.SortOrder;
376
+ type?: Prisma.SortOrder;
377
+ checkoutLineId?: Prisma.SortOrder;
378
+ quantity?: Prisma.SortOrder;
379
+ };
380
+ export type StockMovementMinOrderByAggregateInput = {
381
+ id?: Prisma.SortOrder;
382
+ createdAt?: Prisma.SortOrder;
383
+ updatedAt?: Prisma.SortOrder;
384
+ stockLocationId?: Prisma.SortOrder;
385
+ productVariantId?: Prisma.SortOrder;
386
+ type?: Prisma.SortOrder;
387
+ checkoutLineId?: Prisma.SortOrder;
388
+ quantity?: Prisma.SortOrder;
389
+ };
390
+ export type StockMovementSumOrderByAggregateInput = {
391
+ id?: Prisma.SortOrder;
392
+ stockLocationId?: Prisma.SortOrder;
393
+ productVariantId?: Prisma.SortOrder;
394
+ checkoutLineId?: Prisma.SortOrder;
395
+ quantity?: Prisma.SortOrder;
396
+ };
397
+ export type StockMovementCreateNestedManyWithoutCheckoutLineInput = {
398
+ create?: Prisma.XOR<Prisma.StockMovementCreateWithoutCheckoutLineInput, Prisma.StockMovementUncheckedCreateWithoutCheckoutLineInput> | Prisma.StockMovementCreateWithoutCheckoutLineInput[] | Prisma.StockMovementUncheckedCreateWithoutCheckoutLineInput[];
399
+ connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutCheckoutLineInput | Prisma.StockMovementCreateOrConnectWithoutCheckoutLineInput[];
400
+ createMany?: Prisma.StockMovementCreateManyCheckoutLineInputEnvelope;
401
+ connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
402
+ };
403
+ export type StockMovementUncheckedCreateNestedManyWithoutCheckoutLineInput = {
404
+ create?: Prisma.XOR<Prisma.StockMovementCreateWithoutCheckoutLineInput, Prisma.StockMovementUncheckedCreateWithoutCheckoutLineInput> | Prisma.StockMovementCreateWithoutCheckoutLineInput[] | Prisma.StockMovementUncheckedCreateWithoutCheckoutLineInput[];
405
+ connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutCheckoutLineInput | Prisma.StockMovementCreateOrConnectWithoutCheckoutLineInput[];
406
+ createMany?: Prisma.StockMovementCreateManyCheckoutLineInputEnvelope;
407
+ connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
408
+ };
409
+ export type StockMovementUpdateManyWithoutCheckoutLineNestedInput = {
410
+ create?: Prisma.XOR<Prisma.StockMovementCreateWithoutCheckoutLineInput, Prisma.StockMovementUncheckedCreateWithoutCheckoutLineInput> | Prisma.StockMovementCreateWithoutCheckoutLineInput[] | Prisma.StockMovementUncheckedCreateWithoutCheckoutLineInput[];
411
+ connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutCheckoutLineInput | Prisma.StockMovementCreateOrConnectWithoutCheckoutLineInput[];
412
+ upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutCheckoutLineInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutCheckoutLineInput[];
413
+ createMany?: Prisma.StockMovementCreateManyCheckoutLineInputEnvelope;
414
+ set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
415
+ disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
416
+ delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
417
+ connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
418
+ update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutCheckoutLineInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutCheckoutLineInput[];
419
+ updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutCheckoutLineInput | Prisma.StockMovementUpdateManyWithWhereWithoutCheckoutLineInput[];
420
+ deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[];
421
+ };
422
+ export type StockMovementUncheckedUpdateManyWithoutCheckoutLineNestedInput = {
423
+ create?: Prisma.XOR<Prisma.StockMovementCreateWithoutCheckoutLineInput, Prisma.StockMovementUncheckedCreateWithoutCheckoutLineInput> | Prisma.StockMovementCreateWithoutCheckoutLineInput[] | Prisma.StockMovementUncheckedCreateWithoutCheckoutLineInput[];
424
+ connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutCheckoutLineInput | Prisma.StockMovementCreateOrConnectWithoutCheckoutLineInput[];
425
+ upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutCheckoutLineInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutCheckoutLineInput[];
426
+ createMany?: Prisma.StockMovementCreateManyCheckoutLineInputEnvelope;
427
+ set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
428
+ disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
429
+ delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
430
+ connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
431
+ update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutCheckoutLineInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutCheckoutLineInput[];
432
+ updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutCheckoutLineInput | Prisma.StockMovementUpdateManyWithWhereWithoutCheckoutLineInput[];
433
+ deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[];
434
+ };
435
+ export type StockMovementCreateNestedManyWithoutProductVariantInput = {
436
+ create?: Prisma.XOR<Prisma.StockMovementCreateWithoutProductVariantInput, Prisma.StockMovementUncheckedCreateWithoutProductVariantInput> | Prisma.StockMovementCreateWithoutProductVariantInput[] | Prisma.StockMovementUncheckedCreateWithoutProductVariantInput[];
437
+ connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutProductVariantInput | Prisma.StockMovementCreateOrConnectWithoutProductVariantInput[];
438
+ createMany?: Prisma.StockMovementCreateManyProductVariantInputEnvelope;
439
+ connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
440
+ };
441
+ export type StockMovementUncheckedCreateNestedManyWithoutProductVariantInput = {
442
+ create?: Prisma.XOR<Prisma.StockMovementCreateWithoutProductVariantInput, Prisma.StockMovementUncheckedCreateWithoutProductVariantInput> | Prisma.StockMovementCreateWithoutProductVariantInput[] | Prisma.StockMovementUncheckedCreateWithoutProductVariantInput[];
443
+ connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutProductVariantInput | Prisma.StockMovementCreateOrConnectWithoutProductVariantInput[];
444
+ createMany?: Prisma.StockMovementCreateManyProductVariantInputEnvelope;
445
+ connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
446
+ };
447
+ export type StockMovementUpdateManyWithoutProductVariantNestedInput = {
448
+ create?: Prisma.XOR<Prisma.StockMovementCreateWithoutProductVariantInput, Prisma.StockMovementUncheckedCreateWithoutProductVariantInput> | Prisma.StockMovementCreateWithoutProductVariantInput[] | Prisma.StockMovementUncheckedCreateWithoutProductVariantInput[];
449
+ connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutProductVariantInput | Prisma.StockMovementCreateOrConnectWithoutProductVariantInput[];
450
+ upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutProductVariantInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutProductVariantInput[];
451
+ createMany?: Prisma.StockMovementCreateManyProductVariantInputEnvelope;
452
+ set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
453
+ disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
454
+ delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
455
+ connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
456
+ update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutProductVariantInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutProductVariantInput[];
457
+ updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutProductVariantInput | Prisma.StockMovementUpdateManyWithWhereWithoutProductVariantInput[];
458
+ deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[];
459
+ };
460
+ export type StockMovementUncheckedUpdateManyWithoutProductVariantNestedInput = {
461
+ create?: Prisma.XOR<Prisma.StockMovementCreateWithoutProductVariantInput, Prisma.StockMovementUncheckedCreateWithoutProductVariantInput> | Prisma.StockMovementCreateWithoutProductVariantInput[] | Prisma.StockMovementUncheckedCreateWithoutProductVariantInput[];
462
+ connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutProductVariantInput | Prisma.StockMovementCreateOrConnectWithoutProductVariantInput[];
463
+ upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutProductVariantInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutProductVariantInput[];
464
+ createMany?: Prisma.StockMovementCreateManyProductVariantInputEnvelope;
465
+ set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
466
+ disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
467
+ delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
468
+ connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
469
+ update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutProductVariantInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutProductVariantInput[];
470
+ updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutProductVariantInput | Prisma.StockMovementUpdateManyWithWhereWithoutProductVariantInput[];
471
+ deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[];
472
+ };
473
+ export type StockMovementCreateNestedManyWithoutStockLocationInput = {
474
+ create?: Prisma.XOR<Prisma.StockMovementCreateWithoutStockLocationInput, Prisma.StockMovementUncheckedCreateWithoutStockLocationInput> | Prisma.StockMovementCreateWithoutStockLocationInput[] | Prisma.StockMovementUncheckedCreateWithoutStockLocationInput[];
475
+ connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutStockLocationInput | Prisma.StockMovementCreateOrConnectWithoutStockLocationInput[];
476
+ createMany?: Prisma.StockMovementCreateManyStockLocationInputEnvelope;
477
+ connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
478
+ };
479
+ export type StockMovementUncheckedCreateNestedManyWithoutStockLocationInput = {
480
+ create?: Prisma.XOR<Prisma.StockMovementCreateWithoutStockLocationInput, Prisma.StockMovementUncheckedCreateWithoutStockLocationInput> | Prisma.StockMovementCreateWithoutStockLocationInput[] | Prisma.StockMovementUncheckedCreateWithoutStockLocationInput[];
481
+ connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutStockLocationInput | Prisma.StockMovementCreateOrConnectWithoutStockLocationInput[];
482
+ createMany?: Prisma.StockMovementCreateManyStockLocationInputEnvelope;
483
+ connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
484
+ };
485
+ export type StockMovementUpdateManyWithoutStockLocationNestedInput = {
486
+ create?: Prisma.XOR<Prisma.StockMovementCreateWithoutStockLocationInput, Prisma.StockMovementUncheckedCreateWithoutStockLocationInput> | Prisma.StockMovementCreateWithoutStockLocationInput[] | Prisma.StockMovementUncheckedCreateWithoutStockLocationInput[];
487
+ connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutStockLocationInput | Prisma.StockMovementCreateOrConnectWithoutStockLocationInput[];
488
+ upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutStockLocationInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutStockLocationInput[];
489
+ createMany?: Prisma.StockMovementCreateManyStockLocationInputEnvelope;
490
+ set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
491
+ disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
492
+ delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
493
+ connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
494
+ update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutStockLocationInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutStockLocationInput[];
495
+ updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutStockLocationInput | Prisma.StockMovementUpdateManyWithWhereWithoutStockLocationInput[];
496
+ deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[];
497
+ };
498
+ export type StockMovementUncheckedUpdateManyWithoutStockLocationNestedInput = {
499
+ create?: Prisma.XOR<Prisma.StockMovementCreateWithoutStockLocationInput, Prisma.StockMovementUncheckedCreateWithoutStockLocationInput> | Prisma.StockMovementCreateWithoutStockLocationInput[] | Prisma.StockMovementUncheckedCreateWithoutStockLocationInput[];
500
+ connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutStockLocationInput | Prisma.StockMovementCreateOrConnectWithoutStockLocationInput[];
501
+ upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutStockLocationInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutStockLocationInput[];
502
+ createMany?: Prisma.StockMovementCreateManyStockLocationInputEnvelope;
503
+ set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
504
+ disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
505
+ delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
506
+ connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[];
507
+ update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutStockLocationInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutStockLocationInput[];
508
+ updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutStockLocationInput | Prisma.StockMovementUpdateManyWithWhereWithoutStockLocationInput[];
509
+ deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[];
510
+ };
511
+ export type StockMovementCreateWithoutCheckoutLineInput = {
512
+ id?: bigint | number;
513
+ createdAt?: Date | string;
514
+ updatedAt?: Date | string;
515
+ type: string;
516
+ quantity: bigint | number;
517
+ stockLocation: Prisma.StockLocationCreateNestedOneWithoutStockMovementInput;
518
+ productVariant: Prisma.ProductVariantCreateNestedOneWithoutStockMovementInput;
519
+ };
520
+ export type StockMovementUncheckedCreateWithoutCheckoutLineInput = {
521
+ id?: bigint | number;
522
+ createdAt?: Date | string;
523
+ updatedAt?: Date | string;
524
+ stockLocationId: bigint | number;
525
+ productVariantId: bigint | number;
526
+ type: string;
527
+ quantity: bigint | number;
528
+ };
529
+ export type StockMovementCreateOrConnectWithoutCheckoutLineInput = {
530
+ where: Prisma.StockMovementWhereUniqueInput;
531
+ create: Prisma.XOR<Prisma.StockMovementCreateWithoutCheckoutLineInput, Prisma.StockMovementUncheckedCreateWithoutCheckoutLineInput>;
532
+ };
533
+ export type StockMovementCreateManyCheckoutLineInputEnvelope = {
534
+ data: Prisma.StockMovementCreateManyCheckoutLineInput | Prisma.StockMovementCreateManyCheckoutLineInput[];
535
+ skipDuplicates?: boolean;
536
+ };
537
+ export type StockMovementUpsertWithWhereUniqueWithoutCheckoutLineInput = {
538
+ where: Prisma.StockMovementWhereUniqueInput;
539
+ update: Prisma.XOR<Prisma.StockMovementUpdateWithoutCheckoutLineInput, Prisma.StockMovementUncheckedUpdateWithoutCheckoutLineInput>;
540
+ create: Prisma.XOR<Prisma.StockMovementCreateWithoutCheckoutLineInput, Prisma.StockMovementUncheckedCreateWithoutCheckoutLineInput>;
541
+ };
542
+ export type StockMovementUpdateWithWhereUniqueWithoutCheckoutLineInput = {
543
+ where: Prisma.StockMovementWhereUniqueInput;
544
+ data: Prisma.XOR<Prisma.StockMovementUpdateWithoutCheckoutLineInput, Prisma.StockMovementUncheckedUpdateWithoutCheckoutLineInput>;
545
+ };
546
+ export type StockMovementUpdateManyWithWhereWithoutCheckoutLineInput = {
547
+ where: Prisma.StockMovementScalarWhereInput;
548
+ data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyWithoutCheckoutLineInput>;
549
+ };
550
+ export type StockMovementScalarWhereInput = {
551
+ AND?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[];
552
+ OR?: Prisma.StockMovementScalarWhereInput[];
553
+ NOT?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[];
554
+ id?: Prisma.BigIntFilter<"StockMovement"> | bigint | number;
555
+ createdAt?: Prisma.DateTimeFilter<"StockMovement"> | Date | string;
556
+ updatedAt?: Prisma.DateTimeFilter<"StockMovement"> | Date | string;
557
+ stockLocationId?: Prisma.BigIntFilter<"StockMovement"> | bigint | number;
558
+ productVariantId?: Prisma.BigIntFilter<"StockMovement"> | bigint | number;
559
+ type?: Prisma.StringFilter<"StockMovement"> | string;
560
+ checkoutLineId?: Prisma.BigIntNullableFilter<"StockMovement"> | bigint | number | null;
561
+ quantity?: Prisma.BigIntFilter<"StockMovement"> | bigint | number;
562
+ };
563
+ export type StockMovementCreateWithoutProductVariantInput = {
564
+ id?: bigint | number;
565
+ createdAt?: Date | string;
566
+ updatedAt?: Date | string;
567
+ type: string;
568
+ quantity: bigint | number;
569
+ stockLocation: Prisma.StockLocationCreateNestedOneWithoutStockMovementInput;
570
+ checkoutLine?: Prisma.CheckoutLineCreateNestedOneWithoutStockMovementInput;
571
+ };
572
+ export type StockMovementUncheckedCreateWithoutProductVariantInput = {
573
+ id?: bigint | number;
574
+ createdAt?: Date | string;
575
+ updatedAt?: Date | string;
576
+ stockLocationId: bigint | number;
577
+ type: string;
578
+ checkoutLineId?: bigint | number | null;
579
+ quantity: bigint | number;
580
+ };
581
+ export type StockMovementCreateOrConnectWithoutProductVariantInput = {
582
+ where: Prisma.StockMovementWhereUniqueInput;
583
+ create: Prisma.XOR<Prisma.StockMovementCreateWithoutProductVariantInput, Prisma.StockMovementUncheckedCreateWithoutProductVariantInput>;
584
+ };
585
+ export type StockMovementCreateManyProductVariantInputEnvelope = {
586
+ data: Prisma.StockMovementCreateManyProductVariantInput | Prisma.StockMovementCreateManyProductVariantInput[];
587
+ skipDuplicates?: boolean;
588
+ };
589
+ export type StockMovementUpsertWithWhereUniqueWithoutProductVariantInput = {
590
+ where: Prisma.StockMovementWhereUniqueInput;
591
+ update: Prisma.XOR<Prisma.StockMovementUpdateWithoutProductVariantInput, Prisma.StockMovementUncheckedUpdateWithoutProductVariantInput>;
592
+ create: Prisma.XOR<Prisma.StockMovementCreateWithoutProductVariantInput, Prisma.StockMovementUncheckedCreateWithoutProductVariantInput>;
593
+ };
594
+ export type StockMovementUpdateWithWhereUniqueWithoutProductVariantInput = {
595
+ where: Prisma.StockMovementWhereUniqueInput;
596
+ data: Prisma.XOR<Prisma.StockMovementUpdateWithoutProductVariantInput, Prisma.StockMovementUncheckedUpdateWithoutProductVariantInput>;
597
+ };
598
+ export type StockMovementUpdateManyWithWhereWithoutProductVariantInput = {
599
+ where: Prisma.StockMovementScalarWhereInput;
600
+ data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyWithoutProductVariantInput>;
601
+ };
602
+ export type StockMovementCreateWithoutStockLocationInput = {
603
+ id?: bigint | number;
604
+ createdAt?: Date | string;
605
+ updatedAt?: Date | string;
606
+ type: string;
607
+ quantity: bigint | number;
608
+ productVariant: Prisma.ProductVariantCreateNestedOneWithoutStockMovementInput;
609
+ checkoutLine?: Prisma.CheckoutLineCreateNestedOneWithoutStockMovementInput;
610
+ };
611
+ export type StockMovementUncheckedCreateWithoutStockLocationInput = {
612
+ id?: bigint | number;
613
+ createdAt?: Date | string;
614
+ updatedAt?: Date | string;
615
+ productVariantId: bigint | number;
616
+ type: string;
617
+ checkoutLineId?: bigint | number | null;
618
+ quantity: bigint | number;
619
+ };
620
+ export type StockMovementCreateOrConnectWithoutStockLocationInput = {
621
+ where: Prisma.StockMovementWhereUniqueInput;
622
+ create: Prisma.XOR<Prisma.StockMovementCreateWithoutStockLocationInput, Prisma.StockMovementUncheckedCreateWithoutStockLocationInput>;
623
+ };
624
+ export type StockMovementCreateManyStockLocationInputEnvelope = {
625
+ data: Prisma.StockMovementCreateManyStockLocationInput | Prisma.StockMovementCreateManyStockLocationInput[];
626
+ skipDuplicates?: boolean;
627
+ };
628
+ export type StockMovementUpsertWithWhereUniqueWithoutStockLocationInput = {
629
+ where: Prisma.StockMovementWhereUniqueInput;
630
+ update: Prisma.XOR<Prisma.StockMovementUpdateWithoutStockLocationInput, Prisma.StockMovementUncheckedUpdateWithoutStockLocationInput>;
631
+ create: Prisma.XOR<Prisma.StockMovementCreateWithoutStockLocationInput, Prisma.StockMovementUncheckedCreateWithoutStockLocationInput>;
632
+ };
633
+ export type StockMovementUpdateWithWhereUniqueWithoutStockLocationInput = {
634
+ where: Prisma.StockMovementWhereUniqueInput;
635
+ data: Prisma.XOR<Prisma.StockMovementUpdateWithoutStockLocationInput, Prisma.StockMovementUncheckedUpdateWithoutStockLocationInput>;
636
+ };
637
+ export type StockMovementUpdateManyWithWhereWithoutStockLocationInput = {
638
+ where: Prisma.StockMovementScalarWhereInput;
639
+ data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyWithoutStockLocationInput>;
640
+ };
641
+ export type StockMovementCreateManyCheckoutLineInput = {
642
+ id?: bigint | number;
643
+ createdAt?: Date | string;
644
+ updatedAt?: Date | string;
645
+ stockLocationId: bigint | number;
646
+ productVariantId: bigint | number;
647
+ type: string;
648
+ quantity: bigint | number;
649
+ };
650
+ export type StockMovementUpdateWithoutCheckoutLineInput = {
651
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
652
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
653
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
654
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
655
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
656
+ stockLocation?: Prisma.StockLocationUpdateOneRequiredWithoutStockMovementNestedInput;
657
+ productVariant?: Prisma.ProductVariantUpdateOneRequiredWithoutStockMovementNestedInput;
658
+ };
659
+ export type StockMovementUncheckedUpdateWithoutCheckoutLineInput = {
660
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
661
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
662
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
663
+ stockLocationId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
664
+ productVariantId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
665
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
666
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
667
+ };
668
+ export type StockMovementUncheckedUpdateManyWithoutCheckoutLineInput = {
669
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
670
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
671
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
672
+ stockLocationId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
673
+ productVariantId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
674
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
675
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
676
+ };
677
+ export type StockMovementCreateManyProductVariantInput = {
678
+ id?: bigint | number;
679
+ createdAt?: Date | string;
680
+ updatedAt?: Date | string;
681
+ stockLocationId: bigint | number;
682
+ type: string;
683
+ checkoutLineId?: bigint | number | null;
684
+ quantity: bigint | number;
685
+ };
686
+ export type StockMovementUpdateWithoutProductVariantInput = {
687
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
688
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
689
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
690
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
691
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
692
+ stockLocation?: Prisma.StockLocationUpdateOneRequiredWithoutStockMovementNestedInput;
693
+ checkoutLine?: Prisma.CheckoutLineUpdateOneWithoutStockMovementNestedInput;
694
+ };
695
+ export type StockMovementUncheckedUpdateWithoutProductVariantInput = {
696
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
697
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
698
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
699
+ stockLocationId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
700
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
701
+ checkoutLineId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
702
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
703
+ };
704
+ export type StockMovementUncheckedUpdateManyWithoutProductVariantInput = {
705
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
706
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
707
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
708
+ stockLocationId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
709
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
710
+ checkoutLineId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
711
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
712
+ };
713
+ export type StockMovementCreateManyStockLocationInput = {
714
+ id?: bigint | number;
715
+ createdAt?: Date | string;
716
+ updatedAt?: Date | string;
717
+ productVariantId: bigint | number;
718
+ type: string;
719
+ checkoutLineId?: bigint | number | null;
720
+ quantity: bigint | number;
721
+ };
722
+ export type StockMovementUpdateWithoutStockLocationInput = {
723
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
724
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
725
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
726
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
727
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
728
+ productVariant?: Prisma.ProductVariantUpdateOneRequiredWithoutStockMovementNestedInput;
729
+ checkoutLine?: Prisma.CheckoutLineUpdateOneWithoutStockMovementNestedInput;
730
+ };
731
+ export type StockMovementUncheckedUpdateWithoutStockLocationInput = {
732
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
733
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
734
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
735
+ productVariantId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
736
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
737
+ checkoutLineId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
738
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
739
+ };
740
+ export type StockMovementUncheckedUpdateManyWithoutStockLocationInput = {
741
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
742
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
743
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
744
+ productVariantId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
745
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
746
+ checkoutLineId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
747
+ quantity?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
748
+ };
749
+ export type StockMovementSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
750
+ id?: boolean;
751
+ createdAt?: boolean;
752
+ updatedAt?: boolean;
753
+ stockLocationId?: boolean;
754
+ productVariantId?: boolean;
755
+ type?: boolean;
756
+ checkoutLineId?: boolean;
757
+ quantity?: boolean;
758
+ stockLocation?: boolean | Prisma.StockLocationDefaultArgs<ExtArgs>;
759
+ productVariant?: boolean | Prisma.ProductVariantDefaultArgs<ExtArgs>;
760
+ checkoutLine?: boolean | Prisma.StockMovement$checkoutLineArgs<ExtArgs>;
761
+ }, ExtArgs["result"]["stockMovement"]>;
762
+ export type StockMovementSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
763
+ id?: boolean;
764
+ createdAt?: boolean;
765
+ updatedAt?: boolean;
766
+ stockLocationId?: boolean;
767
+ productVariantId?: boolean;
768
+ type?: boolean;
769
+ checkoutLineId?: boolean;
770
+ quantity?: boolean;
771
+ stockLocation?: boolean | Prisma.StockLocationDefaultArgs<ExtArgs>;
772
+ productVariant?: boolean | Prisma.ProductVariantDefaultArgs<ExtArgs>;
773
+ checkoutLine?: boolean | Prisma.StockMovement$checkoutLineArgs<ExtArgs>;
774
+ }, ExtArgs["result"]["stockMovement"]>;
775
+ export type StockMovementSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
776
+ id?: boolean;
777
+ createdAt?: boolean;
778
+ updatedAt?: boolean;
779
+ stockLocationId?: boolean;
780
+ productVariantId?: boolean;
781
+ type?: boolean;
782
+ checkoutLineId?: boolean;
783
+ quantity?: boolean;
784
+ stockLocation?: boolean | Prisma.StockLocationDefaultArgs<ExtArgs>;
785
+ productVariant?: boolean | Prisma.ProductVariantDefaultArgs<ExtArgs>;
786
+ checkoutLine?: boolean | Prisma.StockMovement$checkoutLineArgs<ExtArgs>;
787
+ }, ExtArgs["result"]["stockMovement"]>;
788
+ export type StockMovementSelectScalar = {
789
+ id?: boolean;
790
+ createdAt?: boolean;
791
+ updatedAt?: boolean;
792
+ stockLocationId?: boolean;
793
+ productVariantId?: boolean;
794
+ type?: boolean;
795
+ checkoutLineId?: boolean;
796
+ quantity?: boolean;
797
+ };
798
+ export type StockMovementOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "stockLocationId" | "productVariantId" | "type" | "checkoutLineId" | "quantity", ExtArgs["result"]["stockMovement"]>;
799
+ export type StockMovementInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
800
+ stockLocation?: boolean | Prisma.StockLocationDefaultArgs<ExtArgs>;
801
+ productVariant?: boolean | Prisma.ProductVariantDefaultArgs<ExtArgs>;
802
+ checkoutLine?: boolean | Prisma.StockMovement$checkoutLineArgs<ExtArgs>;
803
+ };
804
+ export type StockMovementIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
805
+ stockLocation?: boolean | Prisma.StockLocationDefaultArgs<ExtArgs>;
806
+ productVariant?: boolean | Prisma.ProductVariantDefaultArgs<ExtArgs>;
807
+ checkoutLine?: boolean | Prisma.StockMovement$checkoutLineArgs<ExtArgs>;
808
+ };
809
+ export type StockMovementIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
810
+ stockLocation?: boolean | Prisma.StockLocationDefaultArgs<ExtArgs>;
811
+ productVariant?: boolean | Prisma.ProductVariantDefaultArgs<ExtArgs>;
812
+ checkoutLine?: boolean | Prisma.StockMovement$checkoutLineArgs<ExtArgs>;
813
+ };
814
+ export type $StockMovementPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
815
+ name: "StockMovement";
816
+ objects: {
817
+ stockLocation: Prisma.$StockLocationPayload<ExtArgs>;
818
+ productVariant: Prisma.$ProductVariantPayload<ExtArgs>;
819
+ checkoutLine: Prisma.$CheckoutLinePayload<ExtArgs> | null;
820
+ };
821
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
822
+ id: bigint;
823
+ createdAt: Date;
824
+ updatedAt: Date;
825
+ stockLocationId: bigint;
826
+ productVariantId: bigint;
827
+ type: string;
828
+ checkoutLineId: bigint | null;
829
+ quantity: bigint;
830
+ }, ExtArgs["result"]["stockMovement"]>;
831
+ composites: {};
832
+ };
833
+ export type StockMovementGetPayload<S extends boolean | null | undefined | StockMovementDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$StockMovementPayload, S>;
834
+ export type StockMovementCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<StockMovementFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
835
+ select?: StockMovementCountAggregateInputType | true;
836
+ };
837
+ export interface StockMovementDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
838
+ [K: symbol]: {
839
+ types: Prisma.TypeMap<ExtArgs>['model']['StockMovement'];
840
+ meta: {
841
+ name: 'StockMovement';
842
+ };
843
+ };
844
+ /**
845
+ * Find zero or one StockMovement that matches the filter.
846
+ * @param {StockMovementFindUniqueArgs} args - Arguments to find a StockMovement
847
+ * @example
848
+ * // Get one StockMovement
849
+ * const stockMovement = await prisma.stockMovement.findUnique({
850
+ * where: {
851
+ * // ... provide filter here
852
+ * }
853
+ * })
854
+ */
855
+ findUnique<T extends StockMovementFindUniqueArgs>(args: Prisma.SelectSubset<T, StockMovementFindUniqueArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
856
+ /**
857
+ * Find one StockMovement that matches the filter or throw an error with `error.code='P2025'`
858
+ * if no matches were found.
859
+ * @param {StockMovementFindUniqueOrThrowArgs} args - Arguments to find a StockMovement
860
+ * @example
861
+ * // Get one StockMovement
862
+ * const stockMovement = await prisma.stockMovement.findUniqueOrThrow({
863
+ * where: {
864
+ * // ... provide filter here
865
+ * }
866
+ * })
867
+ */
868
+ findUniqueOrThrow<T extends StockMovementFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, StockMovementFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
869
+ /**
870
+ * Find the first StockMovement that matches the filter.
871
+ * Note, that providing `undefined` is treated as the value not being there.
872
+ * Read more here: https://pris.ly/d/null-undefined
873
+ * @param {StockMovementFindFirstArgs} args - Arguments to find a StockMovement
874
+ * @example
875
+ * // Get one StockMovement
876
+ * const stockMovement = await prisma.stockMovement.findFirst({
877
+ * where: {
878
+ * // ... provide filter here
879
+ * }
880
+ * })
881
+ */
882
+ findFirst<T extends StockMovementFindFirstArgs>(args?: Prisma.SelectSubset<T, StockMovementFindFirstArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
883
+ /**
884
+ * Find the first StockMovement that matches the filter or
885
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
886
+ * Note, that providing `undefined` is treated as the value not being there.
887
+ * Read more here: https://pris.ly/d/null-undefined
888
+ * @param {StockMovementFindFirstOrThrowArgs} args - Arguments to find a StockMovement
889
+ * @example
890
+ * // Get one StockMovement
891
+ * const stockMovement = await prisma.stockMovement.findFirstOrThrow({
892
+ * where: {
893
+ * // ... provide filter here
894
+ * }
895
+ * })
896
+ */
897
+ findFirstOrThrow<T extends StockMovementFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, StockMovementFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
898
+ /**
899
+ * Find zero or more StockMovements that matches the filter.
900
+ * Note, that providing `undefined` is treated as the value not being there.
901
+ * Read more here: https://pris.ly/d/null-undefined
902
+ * @param {StockMovementFindManyArgs} args - Arguments to filter and select certain fields only.
903
+ * @example
904
+ * // Get all StockMovements
905
+ * const stockMovements = await prisma.stockMovement.findMany()
906
+ *
907
+ * // Get first 10 StockMovements
908
+ * const stockMovements = await prisma.stockMovement.findMany({ take: 10 })
909
+ *
910
+ * // Only select the `id`
911
+ * const stockMovementWithIdOnly = await prisma.stockMovement.findMany({ select: { id: true } })
912
+ *
913
+ */
914
+ findMany<T extends StockMovementFindManyArgs>(args?: Prisma.SelectSubset<T, StockMovementFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
915
+ /**
916
+ * Create a StockMovement.
917
+ * @param {StockMovementCreateArgs} args - Arguments to create a StockMovement.
918
+ * @example
919
+ * // Create one StockMovement
920
+ * const StockMovement = await prisma.stockMovement.create({
921
+ * data: {
922
+ * // ... data to create a StockMovement
923
+ * }
924
+ * })
925
+ *
926
+ */
927
+ create<T extends StockMovementCreateArgs>(args: Prisma.SelectSubset<T, StockMovementCreateArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
928
+ /**
929
+ * Create many StockMovements.
930
+ * @param {StockMovementCreateManyArgs} args - Arguments to create many StockMovements.
931
+ * @example
932
+ * // Create many StockMovements
933
+ * const stockMovement = await prisma.stockMovement.createMany({
934
+ * data: [
935
+ * // ... provide data here
936
+ * ]
937
+ * })
938
+ *
939
+ */
940
+ createMany<T extends StockMovementCreateManyArgs>(args?: Prisma.SelectSubset<T, StockMovementCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
941
+ /**
942
+ * Create many StockMovements and returns the data saved in the database.
943
+ * @param {StockMovementCreateManyAndReturnArgs} args - Arguments to create many StockMovements.
944
+ * @example
945
+ * // Create many StockMovements
946
+ * const stockMovement = await prisma.stockMovement.createManyAndReturn({
947
+ * data: [
948
+ * // ... provide data here
949
+ * ]
950
+ * })
951
+ *
952
+ * // Create many StockMovements and only return the `id`
953
+ * const stockMovementWithIdOnly = await prisma.stockMovement.createManyAndReturn({
954
+ * select: { id: true },
955
+ * data: [
956
+ * // ... provide data here
957
+ * ]
958
+ * })
959
+ * Note, that providing `undefined` is treated as the value not being there.
960
+ * Read more here: https://pris.ly/d/null-undefined
961
+ *
962
+ */
963
+ createManyAndReturn<T extends StockMovementCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, StockMovementCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
964
+ /**
965
+ * Delete a StockMovement.
966
+ * @param {StockMovementDeleteArgs} args - Arguments to delete one StockMovement.
967
+ * @example
968
+ * // Delete one StockMovement
969
+ * const StockMovement = await prisma.stockMovement.delete({
970
+ * where: {
971
+ * // ... filter to delete one StockMovement
972
+ * }
973
+ * })
974
+ *
975
+ */
976
+ delete<T extends StockMovementDeleteArgs>(args: Prisma.SelectSubset<T, StockMovementDeleteArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
977
+ /**
978
+ * Update one StockMovement.
979
+ * @param {StockMovementUpdateArgs} args - Arguments to update one StockMovement.
980
+ * @example
981
+ * // Update one StockMovement
982
+ * const stockMovement = await prisma.stockMovement.update({
983
+ * where: {
984
+ * // ... provide filter here
985
+ * },
986
+ * data: {
987
+ * // ... provide data here
988
+ * }
989
+ * })
990
+ *
991
+ */
992
+ update<T extends StockMovementUpdateArgs>(args: Prisma.SelectSubset<T, StockMovementUpdateArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
993
+ /**
994
+ * Delete zero or more StockMovements.
995
+ * @param {StockMovementDeleteManyArgs} args - Arguments to filter StockMovements to delete.
996
+ * @example
997
+ * // Delete a few StockMovements
998
+ * const { count } = await prisma.stockMovement.deleteMany({
999
+ * where: {
1000
+ * // ... provide filter here
1001
+ * }
1002
+ * })
1003
+ *
1004
+ */
1005
+ deleteMany<T extends StockMovementDeleteManyArgs>(args?: Prisma.SelectSubset<T, StockMovementDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1006
+ /**
1007
+ * Update zero or more StockMovements.
1008
+ * Note, that providing `undefined` is treated as the value not being there.
1009
+ * Read more here: https://pris.ly/d/null-undefined
1010
+ * @param {StockMovementUpdateManyArgs} args - Arguments to update one or more rows.
1011
+ * @example
1012
+ * // Update many StockMovements
1013
+ * const stockMovement = await prisma.stockMovement.updateMany({
1014
+ * where: {
1015
+ * // ... provide filter here
1016
+ * },
1017
+ * data: {
1018
+ * // ... provide data here
1019
+ * }
1020
+ * })
1021
+ *
1022
+ */
1023
+ updateMany<T extends StockMovementUpdateManyArgs>(args: Prisma.SelectSubset<T, StockMovementUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1024
+ /**
1025
+ * Update zero or more StockMovements and returns the data updated in the database.
1026
+ * @param {StockMovementUpdateManyAndReturnArgs} args - Arguments to update many StockMovements.
1027
+ * @example
1028
+ * // Update many StockMovements
1029
+ * const stockMovement = await prisma.stockMovement.updateManyAndReturn({
1030
+ * where: {
1031
+ * // ... provide filter here
1032
+ * },
1033
+ * data: [
1034
+ * // ... provide data here
1035
+ * ]
1036
+ * })
1037
+ *
1038
+ * // Update zero or more StockMovements and only return the `id`
1039
+ * const stockMovementWithIdOnly = await prisma.stockMovement.updateManyAndReturn({
1040
+ * select: { id: true },
1041
+ * where: {
1042
+ * // ... provide filter here
1043
+ * },
1044
+ * data: [
1045
+ * // ... provide data here
1046
+ * ]
1047
+ * })
1048
+ * Note, that providing `undefined` is treated as the value not being there.
1049
+ * Read more here: https://pris.ly/d/null-undefined
1050
+ *
1051
+ */
1052
+ updateManyAndReturn<T extends StockMovementUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, StockMovementUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1053
+ /**
1054
+ * Create or update one StockMovement.
1055
+ * @param {StockMovementUpsertArgs} args - Arguments to update or create a StockMovement.
1056
+ * @example
1057
+ * // Update or create a StockMovement
1058
+ * const stockMovement = await prisma.stockMovement.upsert({
1059
+ * create: {
1060
+ * // ... data to create a StockMovement
1061
+ * },
1062
+ * update: {
1063
+ * // ... in case it already exists, update
1064
+ * },
1065
+ * where: {
1066
+ * // ... the filter for the StockMovement we want to update
1067
+ * }
1068
+ * })
1069
+ */
1070
+ upsert<T extends StockMovementUpsertArgs>(args: Prisma.SelectSubset<T, StockMovementUpsertArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1071
+ /**
1072
+ * Count the number of StockMovements.
1073
+ * Note, that providing `undefined` is treated as the value not being there.
1074
+ * Read more here: https://pris.ly/d/null-undefined
1075
+ * @param {StockMovementCountArgs} args - Arguments to filter StockMovements to count.
1076
+ * @example
1077
+ * // Count the number of StockMovements
1078
+ * const count = await prisma.stockMovement.count({
1079
+ * where: {
1080
+ * // ... the filter for the StockMovements we want to count
1081
+ * }
1082
+ * })
1083
+ **/
1084
+ count<T extends StockMovementCountArgs>(args?: Prisma.Subset<T, StockMovementCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], StockMovementCountAggregateOutputType> : number>;
1085
+ /**
1086
+ * Allows you to perform aggregations operations on a StockMovement.
1087
+ * Note, that providing `undefined` is treated as the value not being there.
1088
+ * Read more here: https://pris.ly/d/null-undefined
1089
+ * @param {StockMovementAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1090
+ * @example
1091
+ * // Ordered by age ascending
1092
+ * // Where email contains prisma.io
1093
+ * // Limited to the 10 users
1094
+ * const aggregations = await prisma.user.aggregate({
1095
+ * _avg: {
1096
+ * age: true,
1097
+ * },
1098
+ * where: {
1099
+ * email: {
1100
+ * contains: "prisma.io",
1101
+ * },
1102
+ * },
1103
+ * orderBy: {
1104
+ * age: "asc",
1105
+ * },
1106
+ * take: 10,
1107
+ * })
1108
+ **/
1109
+ aggregate<T extends StockMovementAggregateArgs>(args: Prisma.Subset<T, StockMovementAggregateArgs>): Prisma.PrismaPromise<GetStockMovementAggregateType<T>>;
1110
+ /**
1111
+ * Group by StockMovement.
1112
+ * Note, that providing `undefined` is treated as the value not being there.
1113
+ * Read more here: https://pris.ly/d/null-undefined
1114
+ * @param {StockMovementGroupByArgs} args - Group by arguments.
1115
+ * @example
1116
+ * // Group by city, order by createdAt, get count
1117
+ * const result = await prisma.user.groupBy({
1118
+ * by: ['city', 'createdAt'],
1119
+ * orderBy: {
1120
+ * createdAt: true
1121
+ * },
1122
+ * _count: {
1123
+ * _all: true
1124
+ * },
1125
+ * })
1126
+ *
1127
+ **/
1128
+ groupBy<T extends StockMovementGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1129
+ orderBy: StockMovementGroupByArgs['orderBy'];
1130
+ } : {
1131
+ orderBy?: StockMovementGroupByArgs['orderBy'];
1132
+ }, 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 ? {
1133
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1134
+ Error,
1135
+ 'Field ',
1136
+ P,
1137
+ ` in "having" needs to be provided in "by"`
1138
+ ];
1139
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1140
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1141
+ }[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 ? {} : {
1142
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1143
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1144
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1145
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, StockMovementGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStockMovementGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1146
+ /**
1147
+ * Fields of the StockMovement model
1148
+ */
1149
+ readonly fields: StockMovementFieldRefs;
1150
+ }
1151
+ /**
1152
+ * The delegate class that acts as a "Promise-like" for StockMovement.
1153
+ * Why is this prefixed with `Prisma__`?
1154
+ * Because we want to prevent naming conflicts as mentioned in
1155
+ * https://github.com/prisma/prisma-client-js/issues/707
1156
+ */
1157
+ export interface Prisma__StockMovementClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1158
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1159
+ stockLocation<T extends Prisma.StockLocationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.StockLocationDefaultArgs<ExtArgs>>): Prisma.Prisma__StockLocationClient<runtime.Types.Result.GetResult<Prisma.$StockLocationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1160
+ productVariant<T extends Prisma.ProductVariantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductVariantDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductVariantClient<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1161
+ checkoutLine<T extends Prisma.StockMovement$checkoutLineArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.StockMovement$checkoutLineArgs<ExtArgs>>): Prisma.Prisma__CheckoutLineClient<runtime.Types.Result.GetResult<Prisma.$CheckoutLinePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1162
+ /**
1163
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1164
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1165
+ * @param onrejected The callback to execute when the Promise is rejected.
1166
+ * @returns A Promise for the completion of which ever callback is executed.
1167
+ */
1168
+ 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>;
1169
+ /**
1170
+ * Attaches a callback for only the rejection of the Promise.
1171
+ * @param onrejected The callback to execute when the Promise is rejected.
1172
+ * @returns A Promise for the completion of the callback.
1173
+ */
1174
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1175
+ /**
1176
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1177
+ * resolved value cannot be modified from the callback.
1178
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1179
+ * @returns A Promise for the completion of the callback.
1180
+ */
1181
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1182
+ }
1183
+ /**
1184
+ * Fields of the StockMovement model
1185
+ */
1186
+ export interface StockMovementFieldRefs {
1187
+ readonly id: Prisma.FieldRef<"StockMovement", 'BigInt'>;
1188
+ readonly createdAt: Prisma.FieldRef<"StockMovement", 'DateTime'>;
1189
+ readonly updatedAt: Prisma.FieldRef<"StockMovement", 'DateTime'>;
1190
+ readonly stockLocationId: Prisma.FieldRef<"StockMovement", 'BigInt'>;
1191
+ readonly productVariantId: Prisma.FieldRef<"StockMovement", 'BigInt'>;
1192
+ readonly type: Prisma.FieldRef<"StockMovement", 'String'>;
1193
+ readonly checkoutLineId: Prisma.FieldRef<"StockMovement", 'BigInt'>;
1194
+ readonly quantity: Prisma.FieldRef<"StockMovement", 'BigInt'>;
1195
+ }
1196
+ /**
1197
+ * StockMovement findUnique
1198
+ */
1199
+ export type StockMovementFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1200
+ /**
1201
+ * Select specific fields to fetch from the StockMovement
1202
+ */
1203
+ select?: Prisma.StockMovementSelect<ExtArgs> | null;
1204
+ /**
1205
+ * Omit specific fields from the StockMovement
1206
+ */
1207
+ omit?: Prisma.StockMovementOmit<ExtArgs> | null;
1208
+ /**
1209
+ * Choose, which related nodes to fetch as well
1210
+ */
1211
+ include?: Prisma.StockMovementInclude<ExtArgs> | null;
1212
+ /**
1213
+ * Filter, which StockMovement to fetch.
1214
+ */
1215
+ where: Prisma.StockMovementWhereUniqueInput;
1216
+ };
1217
+ /**
1218
+ * StockMovement findUniqueOrThrow
1219
+ */
1220
+ export type StockMovementFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1221
+ /**
1222
+ * Select specific fields to fetch from the StockMovement
1223
+ */
1224
+ select?: Prisma.StockMovementSelect<ExtArgs> | null;
1225
+ /**
1226
+ * Omit specific fields from the StockMovement
1227
+ */
1228
+ omit?: Prisma.StockMovementOmit<ExtArgs> | null;
1229
+ /**
1230
+ * Choose, which related nodes to fetch as well
1231
+ */
1232
+ include?: Prisma.StockMovementInclude<ExtArgs> | null;
1233
+ /**
1234
+ * Filter, which StockMovement to fetch.
1235
+ */
1236
+ where: Prisma.StockMovementWhereUniqueInput;
1237
+ };
1238
+ /**
1239
+ * StockMovement findFirst
1240
+ */
1241
+ export type StockMovementFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1242
+ /**
1243
+ * Select specific fields to fetch from the StockMovement
1244
+ */
1245
+ select?: Prisma.StockMovementSelect<ExtArgs> | null;
1246
+ /**
1247
+ * Omit specific fields from the StockMovement
1248
+ */
1249
+ omit?: Prisma.StockMovementOmit<ExtArgs> | null;
1250
+ /**
1251
+ * Choose, which related nodes to fetch as well
1252
+ */
1253
+ include?: Prisma.StockMovementInclude<ExtArgs> | null;
1254
+ /**
1255
+ * Filter, which StockMovement to fetch.
1256
+ */
1257
+ where?: Prisma.StockMovementWhereInput;
1258
+ /**
1259
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1260
+ *
1261
+ * Determine the order of StockMovements to fetch.
1262
+ */
1263
+ orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[];
1264
+ /**
1265
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1266
+ *
1267
+ * Sets the position for searching for StockMovements.
1268
+ */
1269
+ cursor?: Prisma.StockMovementWhereUniqueInput;
1270
+ /**
1271
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1272
+ *
1273
+ * Take `±n` StockMovements from the position of the cursor.
1274
+ */
1275
+ take?: number;
1276
+ /**
1277
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1278
+ *
1279
+ * Skip the first `n` StockMovements.
1280
+ */
1281
+ skip?: number;
1282
+ /**
1283
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1284
+ *
1285
+ * Filter by unique combinations of StockMovements.
1286
+ */
1287
+ distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[];
1288
+ };
1289
+ /**
1290
+ * StockMovement findFirstOrThrow
1291
+ */
1292
+ export type StockMovementFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1293
+ /**
1294
+ * Select specific fields to fetch from the StockMovement
1295
+ */
1296
+ select?: Prisma.StockMovementSelect<ExtArgs> | null;
1297
+ /**
1298
+ * Omit specific fields from the StockMovement
1299
+ */
1300
+ omit?: Prisma.StockMovementOmit<ExtArgs> | null;
1301
+ /**
1302
+ * Choose, which related nodes to fetch as well
1303
+ */
1304
+ include?: Prisma.StockMovementInclude<ExtArgs> | null;
1305
+ /**
1306
+ * Filter, which StockMovement to fetch.
1307
+ */
1308
+ where?: Prisma.StockMovementWhereInput;
1309
+ /**
1310
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1311
+ *
1312
+ * Determine the order of StockMovements to fetch.
1313
+ */
1314
+ orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[];
1315
+ /**
1316
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1317
+ *
1318
+ * Sets the position for searching for StockMovements.
1319
+ */
1320
+ cursor?: Prisma.StockMovementWhereUniqueInput;
1321
+ /**
1322
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1323
+ *
1324
+ * Take `±n` StockMovements from the position of the cursor.
1325
+ */
1326
+ take?: number;
1327
+ /**
1328
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1329
+ *
1330
+ * Skip the first `n` StockMovements.
1331
+ */
1332
+ skip?: number;
1333
+ /**
1334
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1335
+ *
1336
+ * Filter by unique combinations of StockMovements.
1337
+ */
1338
+ distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[];
1339
+ };
1340
+ /**
1341
+ * StockMovement findMany
1342
+ */
1343
+ export type StockMovementFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1344
+ /**
1345
+ * Select specific fields to fetch from the StockMovement
1346
+ */
1347
+ select?: Prisma.StockMovementSelect<ExtArgs> | null;
1348
+ /**
1349
+ * Omit specific fields from the StockMovement
1350
+ */
1351
+ omit?: Prisma.StockMovementOmit<ExtArgs> | null;
1352
+ /**
1353
+ * Choose, which related nodes to fetch as well
1354
+ */
1355
+ include?: Prisma.StockMovementInclude<ExtArgs> | null;
1356
+ /**
1357
+ * Filter, which StockMovements to fetch.
1358
+ */
1359
+ where?: Prisma.StockMovementWhereInput;
1360
+ /**
1361
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1362
+ *
1363
+ * Determine the order of StockMovements to fetch.
1364
+ */
1365
+ orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[];
1366
+ /**
1367
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1368
+ *
1369
+ * Sets the position for listing StockMovements.
1370
+ */
1371
+ cursor?: Prisma.StockMovementWhereUniqueInput;
1372
+ /**
1373
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1374
+ *
1375
+ * Take `±n` StockMovements from the position of the cursor.
1376
+ */
1377
+ take?: number;
1378
+ /**
1379
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1380
+ *
1381
+ * Skip the first `n` StockMovements.
1382
+ */
1383
+ skip?: number;
1384
+ distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[];
1385
+ };
1386
+ /**
1387
+ * StockMovement create
1388
+ */
1389
+ export type StockMovementCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1390
+ /**
1391
+ * Select specific fields to fetch from the StockMovement
1392
+ */
1393
+ select?: Prisma.StockMovementSelect<ExtArgs> | null;
1394
+ /**
1395
+ * Omit specific fields from the StockMovement
1396
+ */
1397
+ omit?: Prisma.StockMovementOmit<ExtArgs> | null;
1398
+ /**
1399
+ * Choose, which related nodes to fetch as well
1400
+ */
1401
+ include?: Prisma.StockMovementInclude<ExtArgs> | null;
1402
+ /**
1403
+ * The data needed to create a StockMovement.
1404
+ */
1405
+ data: Prisma.XOR<Prisma.StockMovementCreateInput, Prisma.StockMovementUncheckedCreateInput>;
1406
+ };
1407
+ /**
1408
+ * StockMovement createMany
1409
+ */
1410
+ export type StockMovementCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1411
+ /**
1412
+ * The data used to create many StockMovements.
1413
+ */
1414
+ data: Prisma.StockMovementCreateManyInput | Prisma.StockMovementCreateManyInput[];
1415
+ skipDuplicates?: boolean;
1416
+ };
1417
+ /**
1418
+ * StockMovement createManyAndReturn
1419
+ */
1420
+ export type StockMovementCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1421
+ /**
1422
+ * Select specific fields to fetch from the StockMovement
1423
+ */
1424
+ select?: Prisma.StockMovementSelectCreateManyAndReturn<ExtArgs> | null;
1425
+ /**
1426
+ * Omit specific fields from the StockMovement
1427
+ */
1428
+ omit?: Prisma.StockMovementOmit<ExtArgs> | null;
1429
+ /**
1430
+ * The data used to create many StockMovements.
1431
+ */
1432
+ data: Prisma.StockMovementCreateManyInput | Prisma.StockMovementCreateManyInput[];
1433
+ skipDuplicates?: boolean;
1434
+ /**
1435
+ * Choose, which related nodes to fetch as well
1436
+ */
1437
+ include?: Prisma.StockMovementIncludeCreateManyAndReturn<ExtArgs> | null;
1438
+ };
1439
+ /**
1440
+ * StockMovement update
1441
+ */
1442
+ export type StockMovementUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1443
+ /**
1444
+ * Select specific fields to fetch from the StockMovement
1445
+ */
1446
+ select?: Prisma.StockMovementSelect<ExtArgs> | null;
1447
+ /**
1448
+ * Omit specific fields from the StockMovement
1449
+ */
1450
+ omit?: Prisma.StockMovementOmit<ExtArgs> | null;
1451
+ /**
1452
+ * Choose, which related nodes to fetch as well
1453
+ */
1454
+ include?: Prisma.StockMovementInclude<ExtArgs> | null;
1455
+ /**
1456
+ * The data needed to update a StockMovement.
1457
+ */
1458
+ data: Prisma.XOR<Prisma.StockMovementUpdateInput, Prisma.StockMovementUncheckedUpdateInput>;
1459
+ /**
1460
+ * Choose, which StockMovement to update.
1461
+ */
1462
+ where: Prisma.StockMovementWhereUniqueInput;
1463
+ };
1464
+ /**
1465
+ * StockMovement updateMany
1466
+ */
1467
+ export type StockMovementUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1468
+ /**
1469
+ * The data used to update StockMovements.
1470
+ */
1471
+ data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyInput>;
1472
+ /**
1473
+ * Filter which StockMovements to update
1474
+ */
1475
+ where?: Prisma.StockMovementWhereInput;
1476
+ /**
1477
+ * Limit how many StockMovements to update.
1478
+ */
1479
+ limit?: number;
1480
+ };
1481
+ /**
1482
+ * StockMovement updateManyAndReturn
1483
+ */
1484
+ export type StockMovementUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1485
+ /**
1486
+ * Select specific fields to fetch from the StockMovement
1487
+ */
1488
+ select?: Prisma.StockMovementSelectUpdateManyAndReturn<ExtArgs> | null;
1489
+ /**
1490
+ * Omit specific fields from the StockMovement
1491
+ */
1492
+ omit?: Prisma.StockMovementOmit<ExtArgs> | null;
1493
+ /**
1494
+ * The data used to update StockMovements.
1495
+ */
1496
+ data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyInput>;
1497
+ /**
1498
+ * Filter which StockMovements to update
1499
+ */
1500
+ where?: Prisma.StockMovementWhereInput;
1501
+ /**
1502
+ * Limit how many StockMovements to update.
1503
+ */
1504
+ limit?: number;
1505
+ /**
1506
+ * Choose, which related nodes to fetch as well
1507
+ */
1508
+ include?: Prisma.StockMovementIncludeUpdateManyAndReturn<ExtArgs> | null;
1509
+ };
1510
+ /**
1511
+ * StockMovement upsert
1512
+ */
1513
+ export type StockMovementUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1514
+ /**
1515
+ * Select specific fields to fetch from the StockMovement
1516
+ */
1517
+ select?: Prisma.StockMovementSelect<ExtArgs> | null;
1518
+ /**
1519
+ * Omit specific fields from the StockMovement
1520
+ */
1521
+ omit?: Prisma.StockMovementOmit<ExtArgs> | null;
1522
+ /**
1523
+ * Choose, which related nodes to fetch as well
1524
+ */
1525
+ include?: Prisma.StockMovementInclude<ExtArgs> | null;
1526
+ /**
1527
+ * The filter to search for the StockMovement to update in case it exists.
1528
+ */
1529
+ where: Prisma.StockMovementWhereUniqueInput;
1530
+ /**
1531
+ * In case the StockMovement found by the `where` argument doesn't exist, create a new StockMovement with this data.
1532
+ */
1533
+ create: Prisma.XOR<Prisma.StockMovementCreateInput, Prisma.StockMovementUncheckedCreateInput>;
1534
+ /**
1535
+ * In case the StockMovement was found with the provided `where` argument, update it with this data.
1536
+ */
1537
+ update: Prisma.XOR<Prisma.StockMovementUpdateInput, Prisma.StockMovementUncheckedUpdateInput>;
1538
+ };
1539
+ /**
1540
+ * StockMovement delete
1541
+ */
1542
+ export type StockMovementDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1543
+ /**
1544
+ * Select specific fields to fetch from the StockMovement
1545
+ */
1546
+ select?: Prisma.StockMovementSelect<ExtArgs> | null;
1547
+ /**
1548
+ * Omit specific fields from the StockMovement
1549
+ */
1550
+ omit?: Prisma.StockMovementOmit<ExtArgs> | null;
1551
+ /**
1552
+ * Choose, which related nodes to fetch as well
1553
+ */
1554
+ include?: Prisma.StockMovementInclude<ExtArgs> | null;
1555
+ /**
1556
+ * Filter which StockMovement to delete.
1557
+ */
1558
+ where: Prisma.StockMovementWhereUniqueInput;
1559
+ };
1560
+ /**
1561
+ * StockMovement deleteMany
1562
+ */
1563
+ export type StockMovementDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1564
+ /**
1565
+ * Filter which StockMovements to delete
1566
+ */
1567
+ where?: Prisma.StockMovementWhereInput;
1568
+ /**
1569
+ * Limit how many StockMovements to delete.
1570
+ */
1571
+ limit?: number;
1572
+ };
1573
+ /**
1574
+ * StockMovement.checkoutLine
1575
+ */
1576
+ export type StockMovement$checkoutLineArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1577
+ /**
1578
+ * Select specific fields to fetch from the CheckoutLine
1579
+ */
1580
+ select?: Prisma.CheckoutLineSelect<ExtArgs> | null;
1581
+ /**
1582
+ * Omit specific fields from the CheckoutLine
1583
+ */
1584
+ omit?: Prisma.CheckoutLineOmit<ExtArgs> | null;
1585
+ /**
1586
+ * Choose, which related nodes to fetch as well
1587
+ */
1588
+ include?: Prisma.CheckoutLineInclude<ExtArgs> | null;
1589
+ where?: Prisma.CheckoutLineWhereInput;
1590
+ };
1591
+ /**
1592
+ * StockMovement without action
1593
+ */
1594
+ export type StockMovementDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1595
+ /**
1596
+ * Select specific fields to fetch from the StockMovement
1597
+ */
1598
+ select?: Prisma.StockMovementSelect<ExtArgs> | null;
1599
+ /**
1600
+ * Omit specific fields from the StockMovement
1601
+ */
1602
+ omit?: Prisma.StockMovementOmit<ExtArgs> | null;
1603
+ /**
1604
+ * Choose, which related nodes to fetch as well
1605
+ */
1606
+ include?: Prisma.StockMovementInclude<ExtArgs> | null;
1607
+ };
1608
+ export {};