@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,2315 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model Cart
6
+ *
7
+ */
8
+ export type CartModel = runtime.Types.Result.DefaultSelection<Prisma.$CartPayload>;
9
+ export type AggregateCart = {
10
+ _count: CartCountAggregateOutputType | null;
11
+ _avg: CartAvgAggregateOutputType | null;
12
+ _sum: CartSumAggregateOutputType | null;
13
+ _min: CartMinAggregateOutputType | null;
14
+ _max: CartMaxAggregateOutputType | null;
15
+ };
16
+ export type CartAvgAggregateOutputType = {
17
+ id: number | null;
18
+ customerId: number | null;
19
+ version: number | null;
20
+ };
21
+ export type CartSumAggregateOutputType = {
22
+ id: bigint | null;
23
+ customerId: bigint | null;
24
+ version: number | null;
25
+ };
26
+ export type CartMinAggregateOutputType = {
27
+ id: bigint | null;
28
+ customerId: bigint | null;
29
+ platformId: string | null;
30
+ storeId: string | null;
31
+ createdAt: Date | null;
32
+ updatedAt: Date | null;
33
+ openedAt: Date | null;
34
+ active: boolean | null;
35
+ closedAt: Date | null;
36
+ note: string | null;
37
+ currencyCode: $Enums.CurrencyCode | null;
38
+ version: number | null;
39
+ isValid: boolean | null;
40
+ invalidReason: string | null;
41
+ };
42
+ export type CartMaxAggregateOutputType = {
43
+ id: bigint | null;
44
+ customerId: bigint | null;
45
+ platformId: string | null;
46
+ storeId: string | null;
47
+ createdAt: Date | null;
48
+ updatedAt: Date | null;
49
+ openedAt: Date | null;
50
+ active: boolean | null;
51
+ closedAt: Date | null;
52
+ note: string | null;
53
+ currencyCode: $Enums.CurrencyCode | null;
54
+ version: number | null;
55
+ isValid: boolean | null;
56
+ invalidReason: string | null;
57
+ };
58
+ export type CartCountAggregateOutputType = {
59
+ id: number;
60
+ customerId: number;
61
+ platformId: number;
62
+ storeId: number;
63
+ createdAt: number;
64
+ updatedAt: number;
65
+ openedAt: number;
66
+ active: number;
67
+ closedAt: number;
68
+ note: number;
69
+ currencyCode: number;
70
+ version: number;
71
+ isValid: number;
72
+ invalidReason: number;
73
+ _all: number;
74
+ };
75
+ export type CartAvgAggregateInputType = {
76
+ id?: true;
77
+ customerId?: true;
78
+ version?: true;
79
+ };
80
+ export type CartSumAggregateInputType = {
81
+ id?: true;
82
+ customerId?: true;
83
+ version?: true;
84
+ };
85
+ export type CartMinAggregateInputType = {
86
+ id?: true;
87
+ customerId?: true;
88
+ platformId?: true;
89
+ storeId?: true;
90
+ createdAt?: true;
91
+ updatedAt?: true;
92
+ openedAt?: true;
93
+ active?: true;
94
+ closedAt?: true;
95
+ note?: true;
96
+ currencyCode?: true;
97
+ version?: true;
98
+ isValid?: true;
99
+ invalidReason?: true;
100
+ };
101
+ export type CartMaxAggregateInputType = {
102
+ id?: true;
103
+ customerId?: true;
104
+ platformId?: true;
105
+ storeId?: true;
106
+ createdAt?: true;
107
+ updatedAt?: true;
108
+ openedAt?: true;
109
+ active?: true;
110
+ closedAt?: true;
111
+ note?: true;
112
+ currencyCode?: true;
113
+ version?: true;
114
+ isValid?: true;
115
+ invalidReason?: true;
116
+ };
117
+ export type CartCountAggregateInputType = {
118
+ id?: true;
119
+ customerId?: true;
120
+ platformId?: true;
121
+ storeId?: true;
122
+ createdAt?: true;
123
+ updatedAt?: true;
124
+ openedAt?: true;
125
+ active?: true;
126
+ closedAt?: true;
127
+ note?: true;
128
+ currencyCode?: true;
129
+ version?: true;
130
+ isValid?: true;
131
+ invalidReason?: true;
132
+ _all?: true;
133
+ };
134
+ export type CartAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
135
+ /**
136
+ * Filter which Cart to aggregate.
137
+ */
138
+ where?: Prisma.CartWhereInput;
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
141
+ *
142
+ * Determine the order of Carts to fetch.
143
+ */
144
+ orderBy?: Prisma.CartOrderByWithRelationInput | Prisma.CartOrderByWithRelationInput[];
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
147
+ *
148
+ * Sets the start position
149
+ */
150
+ cursor?: Prisma.CartWhereUniqueInput;
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
153
+ *
154
+ * Take `±n` Carts from the position of the cursor.
155
+ */
156
+ take?: number;
157
+ /**
158
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
159
+ *
160
+ * Skip the first `n` Carts.
161
+ */
162
+ skip?: number;
163
+ /**
164
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
165
+ *
166
+ * Count returned Carts
167
+ **/
168
+ _count?: true | CartCountAggregateInputType;
169
+ /**
170
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
171
+ *
172
+ * Select which fields to average
173
+ **/
174
+ _avg?: CartAvgAggregateInputType;
175
+ /**
176
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
177
+ *
178
+ * Select which fields to sum
179
+ **/
180
+ _sum?: CartSumAggregateInputType;
181
+ /**
182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
183
+ *
184
+ * Select which fields to find the minimum value
185
+ **/
186
+ _min?: CartMinAggregateInputType;
187
+ /**
188
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
189
+ *
190
+ * Select which fields to find the maximum value
191
+ **/
192
+ _max?: CartMaxAggregateInputType;
193
+ };
194
+ export type GetCartAggregateType<T extends CartAggregateArgs> = {
195
+ [P in keyof T & keyof AggregateCart]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateCart[P]> : Prisma.GetScalarType<T[P], AggregateCart[P]>;
196
+ };
197
+ export type CartGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
198
+ where?: Prisma.CartWhereInput;
199
+ orderBy?: Prisma.CartOrderByWithAggregationInput | Prisma.CartOrderByWithAggregationInput[];
200
+ by: Prisma.CartScalarFieldEnum[] | Prisma.CartScalarFieldEnum;
201
+ having?: Prisma.CartScalarWhereWithAggregatesInput;
202
+ take?: number;
203
+ skip?: number;
204
+ _count?: CartCountAggregateInputType | true;
205
+ _avg?: CartAvgAggregateInputType;
206
+ _sum?: CartSumAggregateInputType;
207
+ _min?: CartMinAggregateInputType;
208
+ _max?: CartMaxAggregateInputType;
209
+ };
210
+ export type CartGroupByOutputType = {
211
+ id: bigint;
212
+ customerId: bigint | null;
213
+ platformId: string;
214
+ storeId: string;
215
+ createdAt: Date;
216
+ updatedAt: Date;
217
+ openedAt: Date | null;
218
+ active: boolean;
219
+ closedAt: Date | null;
220
+ note: string | null;
221
+ currencyCode: $Enums.CurrencyCode;
222
+ version: number;
223
+ isValid: boolean;
224
+ invalidReason: string | null;
225
+ _count: CartCountAggregateOutputType | null;
226
+ _avg: CartAvgAggregateOutputType | null;
227
+ _sum: CartSumAggregateOutputType | null;
228
+ _min: CartMinAggregateOutputType | null;
229
+ _max: CartMaxAggregateOutputType | null;
230
+ };
231
+ type GetCartGroupByPayload<T extends CartGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<CartGroupByOutputType, T['by']> & {
232
+ [P in ((keyof T) & (keyof CartGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], CartGroupByOutputType[P]> : Prisma.GetScalarType<T[P], CartGroupByOutputType[P]>;
233
+ }>>;
234
+ export type CartWhereInput = {
235
+ AND?: Prisma.CartWhereInput | Prisma.CartWhereInput[];
236
+ OR?: Prisma.CartWhereInput[];
237
+ NOT?: Prisma.CartWhereInput | Prisma.CartWhereInput[];
238
+ id?: Prisma.BigIntFilter<"Cart"> | bigint | number;
239
+ customerId?: Prisma.BigIntNullableFilter<"Cart"> | bigint | number | null;
240
+ platformId?: Prisma.StringFilter<"Cart"> | string;
241
+ storeId?: Prisma.StringFilter<"Cart"> | string;
242
+ createdAt?: Prisma.DateTimeFilter<"Cart"> | Date | string;
243
+ updatedAt?: Prisma.DateTimeFilter<"Cart"> | Date | string;
244
+ openedAt?: Prisma.DateTimeNullableFilter<"Cart"> | Date | string | null;
245
+ active?: Prisma.BoolFilter<"Cart"> | boolean;
246
+ closedAt?: Prisma.DateTimeNullableFilter<"Cart"> | Date | string | null;
247
+ note?: Prisma.StringNullableFilter<"Cart"> | string | null;
248
+ currencyCode?: Prisma.EnumCurrencyCodeFilter<"Cart"> | $Enums.CurrencyCode;
249
+ version?: Prisma.IntFilter<"Cart"> | number;
250
+ isValid?: Prisma.BoolFilter<"Cart"> | boolean;
251
+ invalidReason?: Prisma.StringNullableFilter<"Cart"> | string | null;
252
+ customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null;
253
+ cartLines?: Prisma.CartLineListRelationFilter;
254
+ cost?: Prisma.XOR<Prisma.CartCostNullableScalarRelationFilter, Prisma.CartCostWhereInput> | null;
255
+ checkout?: Prisma.XOR<Prisma.CheckoutNullableScalarRelationFilter, Prisma.CheckoutWhereInput> | null;
256
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartListRelationFilter;
257
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartListRelationFilter;
258
+ };
259
+ export type CartOrderByWithRelationInput = {
260
+ id?: Prisma.SortOrder;
261
+ customerId?: Prisma.SortOrderInput | Prisma.SortOrder;
262
+ platformId?: Prisma.SortOrder;
263
+ storeId?: Prisma.SortOrder;
264
+ createdAt?: Prisma.SortOrder;
265
+ updatedAt?: Prisma.SortOrder;
266
+ openedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
267
+ active?: Prisma.SortOrder;
268
+ closedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
269
+ note?: Prisma.SortOrderInput | Prisma.SortOrder;
270
+ currencyCode?: Prisma.SortOrder;
271
+ version?: Prisma.SortOrder;
272
+ isValid?: Prisma.SortOrder;
273
+ invalidReason?: Prisma.SortOrderInput | Prisma.SortOrder;
274
+ customer?: Prisma.CustomerOrderByWithRelationInput;
275
+ cartLines?: Prisma.CartLineOrderByRelationAggregateInput;
276
+ cost?: Prisma.CartCostOrderByWithRelationInput;
277
+ checkout?: Prisma.CheckoutOrderByWithRelationInput;
278
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartOrderByRelationAggregateInput;
279
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartOrderByRelationAggregateInput;
280
+ _relevance?: Prisma.CartOrderByRelevanceInput;
281
+ };
282
+ export type CartWhereUniqueInput = Prisma.AtLeast<{
283
+ id?: bigint | number;
284
+ AND?: Prisma.CartWhereInput | Prisma.CartWhereInput[];
285
+ OR?: Prisma.CartWhereInput[];
286
+ NOT?: Prisma.CartWhereInput | Prisma.CartWhereInput[];
287
+ customerId?: Prisma.BigIntNullableFilter<"Cart"> | bigint | number | null;
288
+ platformId?: Prisma.StringFilter<"Cart"> | string;
289
+ storeId?: Prisma.StringFilter<"Cart"> | string;
290
+ createdAt?: Prisma.DateTimeFilter<"Cart"> | Date | string;
291
+ updatedAt?: Prisma.DateTimeFilter<"Cart"> | Date | string;
292
+ openedAt?: Prisma.DateTimeNullableFilter<"Cart"> | Date | string | null;
293
+ active?: Prisma.BoolFilter<"Cart"> | boolean;
294
+ closedAt?: Prisma.DateTimeNullableFilter<"Cart"> | Date | string | null;
295
+ note?: Prisma.StringNullableFilter<"Cart"> | string | null;
296
+ currencyCode?: Prisma.EnumCurrencyCodeFilter<"Cart"> | $Enums.CurrencyCode;
297
+ version?: Prisma.IntFilter<"Cart"> | number;
298
+ isValid?: Prisma.BoolFilter<"Cart"> | boolean;
299
+ invalidReason?: Prisma.StringNullableFilter<"Cart"> | string | null;
300
+ customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null;
301
+ cartLines?: Prisma.CartLineListRelationFilter;
302
+ cost?: Prisma.XOR<Prisma.CartCostNullableScalarRelationFilter, Prisma.CartCostWhereInput> | null;
303
+ checkout?: Prisma.XOR<Prisma.CheckoutNullableScalarRelationFilter, Prisma.CheckoutWhereInput> | null;
304
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartListRelationFilter;
305
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartListRelationFilter;
306
+ }, "id">;
307
+ export type CartOrderByWithAggregationInput = {
308
+ id?: Prisma.SortOrder;
309
+ customerId?: Prisma.SortOrderInput | Prisma.SortOrder;
310
+ platformId?: Prisma.SortOrder;
311
+ storeId?: Prisma.SortOrder;
312
+ createdAt?: Prisma.SortOrder;
313
+ updatedAt?: Prisma.SortOrder;
314
+ openedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
315
+ active?: Prisma.SortOrder;
316
+ closedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
317
+ note?: Prisma.SortOrderInput | Prisma.SortOrder;
318
+ currencyCode?: Prisma.SortOrder;
319
+ version?: Prisma.SortOrder;
320
+ isValid?: Prisma.SortOrder;
321
+ invalidReason?: Prisma.SortOrderInput | Prisma.SortOrder;
322
+ _count?: Prisma.CartCountOrderByAggregateInput;
323
+ _avg?: Prisma.CartAvgOrderByAggregateInput;
324
+ _max?: Prisma.CartMaxOrderByAggregateInput;
325
+ _min?: Prisma.CartMinOrderByAggregateInput;
326
+ _sum?: Prisma.CartSumOrderByAggregateInput;
327
+ };
328
+ export type CartScalarWhereWithAggregatesInput = {
329
+ AND?: Prisma.CartScalarWhereWithAggregatesInput | Prisma.CartScalarWhereWithAggregatesInput[];
330
+ OR?: Prisma.CartScalarWhereWithAggregatesInput[];
331
+ NOT?: Prisma.CartScalarWhereWithAggregatesInput | Prisma.CartScalarWhereWithAggregatesInput[];
332
+ id?: Prisma.BigIntWithAggregatesFilter<"Cart"> | bigint | number;
333
+ customerId?: Prisma.BigIntNullableWithAggregatesFilter<"Cart"> | bigint | number | null;
334
+ platformId?: Prisma.StringWithAggregatesFilter<"Cart"> | string;
335
+ storeId?: Prisma.StringWithAggregatesFilter<"Cart"> | string;
336
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Cart"> | Date | string;
337
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Cart"> | Date | string;
338
+ openedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Cart"> | Date | string | null;
339
+ active?: Prisma.BoolWithAggregatesFilter<"Cart"> | boolean;
340
+ closedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Cart"> | Date | string | null;
341
+ note?: Prisma.StringNullableWithAggregatesFilter<"Cart"> | string | null;
342
+ currencyCode?: Prisma.EnumCurrencyCodeWithAggregatesFilter<"Cart"> | $Enums.CurrencyCode;
343
+ version?: Prisma.IntWithAggregatesFilter<"Cart"> | number;
344
+ isValid?: Prisma.BoolWithAggregatesFilter<"Cart"> | boolean;
345
+ invalidReason?: Prisma.StringNullableWithAggregatesFilter<"Cart"> | string | null;
346
+ };
347
+ export type CartCreateInput = {
348
+ id?: bigint | number;
349
+ platformId: string;
350
+ storeId: string;
351
+ createdAt?: Date | string;
352
+ updatedAt?: Date | string;
353
+ openedAt?: Date | string | null;
354
+ active?: boolean;
355
+ closedAt?: Date | string | null;
356
+ note?: string | null;
357
+ currencyCode: $Enums.CurrencyCode;
358
+ version?: number;
359
+ isValid?: boolean;
360
+ invalidReason?: string | null;
361
+ customer?: Prisma.CustomerCreateNestedOneWithoutCartsInput;
362
+ cartLines?: Prisma.CartLineCreateNestedManyWithoutCartInput;
363
+ cost?: Prisma.CartCostCreateNestedOneWithoutCartInput;
364
+ checkout?: Prisma.CheckoutCreateNestedOneWithoutCartInput;
365
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartCreateNestedManyWithoutCartInput;
366
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutCartInput;
367
+ };
368
+ export type CartUncheckedCreateInput = {
369
+ id?: bigint | number;
370
+ customerId?: bigint | number | null;
371
+ platformId: string;
372
+ storeId: string;
373
+ createdAt?: Date | string;
374
+ updatedAt?: Date | string;
375
+ openedAt?: Date | string | null;
376
+ active?: boolean;
377
+ closedAt?: Date | string | null;
378
+ note?: string | null;
379
+ currencyCode: $Enums.CurrencyCode;
380
+ version?: number;
381
+ isValid?: boolean;
382
+ invalidReason?: string | null;
383
+ cartLines?: Prisma.CartLineUncheckedCreateNestedManyWithoutCartInput;
384
+ cost?: Prisma.CartCostUncheckedCreateNestedOneWithoutCartInput;
385
+ checkout?: Prisma.CheckoutUncheckedCreateNestedOneWithoutCartInput;
386
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedCreateNestedManyWithoutCartInput;
387
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutCartInput;
388
+ };
389
+ export type CartUpdateInput = {
390
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
391
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
392
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
393
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
394
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
395
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
396
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
397
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
398
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
399
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
400
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
401
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
402
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
403
+ customer?: Prisma.CustomerUpdateOneWithoutCartsNestedInput;
404
+ cartLines?: Prisma.CartLineUpdateManyWithoutCartNestedInput;
405
+ cost?: Prisma.CartCostUpdateOneWithoutCartNestedInput;
406
+ checkout?: Prisma.CheckoutUpdateOneWithoutCartNestedInput;
407
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUpdateManyWithoutCartNestedInput;
408
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutCartNestedInput;
409
+ };
410
+ export type CartUncheckedUpdateInput = {
411
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
412
+ customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
413
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
414
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
415
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
416
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
417
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
418
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
419
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
420
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
421
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
422
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
423
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
424
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
425
+ cartLines?: Prisma.CartLineUncheckedUpdateManyWithoutCartNestedInput;
426
+ cost?: Prisma.CartCostUncheckedUpdateOneWithoutCartNestedInput;
427
+ checkout?: Prisma.CheckoutUncheckedUpdateOneWithoutCartNestedInput;
428
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedUpdateManyWithoutCartNestedInput;
429
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutCartNestedInput;
430
+ };
431
+ export type CartCreateManyInput = {
432
+ id?: bigint | number;
433
+ customerId?: bigint | number | null;
434
+ platformId: string;
435
+ storeId: string;
436
+ createdAt?: Date | string;
437
+ updatedAt?: Date | string;
438
+ openedAt?: Date | string | null;
439
+ active?: boolean;
440
+ closedAt?: Date | string | null;
441
+ note?: string | null;
442
+ currencyCode: $Enums.CurrencyCode;
443
+ version?: number;
444
+ isValid?: boolean;
445
+ invalidReason?: string | null;
446
+ };
447
+ export type CartUpdateManyMutationInput = {
448
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
449
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
450
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
451
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
452
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
453
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
454
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
455
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
456
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
457
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
458
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
459
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
460
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
461
+ };
462
+ export type CartUncheckedUpdateManyInput = {
463
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
464
+ customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
465
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
466
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
467
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
468
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
469
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
470
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
471
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
472
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
473
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
474
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
475
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
476
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
477
+ };
478
+ export type CartListRelationFilter = {
479
+ every?: Prisma.CartWhereInput;
480
+ some?: Prisma.CartWhereInput;
481
+ none?: Prisma.CartWhereInput;
482
+ };
483
+ export type CartOrderByRelationAggregateInput = {
484
+ _count?: Prisma.SortOrder;
485
+ };
486
+ export type CartScalarRelationFilter = {
487
+ is?: Prisma.CartWhereInput;
488
+ isNot?: Prisma.CartWhereInput;
489
+ };
490
+ export type CartOrderByRelevanceInput = {
491
+ fields: Prisma.CartOrderByRelevanceFieldEnum | Prisma.CartOrderByRelevanceFieldEnum[];
492
+ sort: Prisma.SortOrder;
493
+ search: string;
494
+ };
495
+ export type CartCountOrderByAggregateInput = {
496
+ id?: Prisma.SortOrder;
497
+ customerId?: Prisma.SortOrder;
498
+ platformId?: Prisma.SortOrder;
499
+ storeId?: Prisma.SortOrder;
500
+ createdAt?: Prisma.SortOrder;
501
+ updatedAt?: Prisma.SortOrder;
502
+ openedAt?: Prisma.SortOrder;
503
+ active?: Prisma.SortOrder;
504
+ closedAt?: Prisma.SortOrder;
505
+ note?: Prisma.SortOrder;
506
+ currencyCode?: Prisma.SortOrder;
507
+ version?: Prisma.SortOrder;
508
+ isValid?: Prisma.SortOrder;
509
+ invalidReason?: Prisma.SortOrder;
510
+ };
511
+ export type CartAvgOrderByAggregateInput = {
512
+ id?: Prisma.SortOrder;
513
+ customerId?: Prisma.SortOrder;
514
+ version?: Prisma.SortOrder;
515
+ };
516
+ export type CartMaxOrderByAggregateInput = {
517
+ id?: Prisma.SortOrder;
518
+ customerId?: Prisma.SortOrder;
519
+ platformId?: Prisma.SortOrder;
520
+ storeId?: Prisma.SortOrder;
521
+ createdAt?: Prisma.SortOrder;
522
+ updatedAt?: Prisma.SortOrder;
523
+ openedAt?: Prisma.SortOrder;
524
+ active?: Prisma.SortOrder;
525
+ closedAt?: Prisma.SortOrder;
526
+ note?: Prisma.SortOrder;
527
+ currencyCode?: Prisma.SortOrder;
528
+ version?: Prisma.SortOrder;
529
+ isValid?: Prisma.SortOrder;
530
+ invalidReason?: Prisma.SortOrder;
531
+ };
532
+ export type CartMinOrderByAggregateInput = {
533
+ id?: Prisma.SortOrder;
534
+ customerId?: Prisma.SortOrder;
535
+ platformId?: Prisma.SortOrder;
536
+ storeId?: Prisma.SortOrder;
537
+ createdAt?: Prisma.SortOrder;
538
+ updatedAt?: Prisma.SortOrder;
539
+ openedAt?: Prisma.SortOrder;
540
+ active?: Prisma.SortOrder;
541
+ closedAt?: Prisma.SortOrder;
542
+ note?: Prisma.SortOrder;
543
+ currencyCode?: Prisma.SortOrder;
544
+ version?: Prisma.SortOrder;
545
+ isValid?: Prisma.SortOrder;
546
+ invalidReason?: Prisma.SortOrder;
547
+ };
548
+ export type CartSumOrderByAggregateInput = {
549
+ id?: Prisma.SortOrder;
550
+ customerId?: Prisma.SortOrder;
551
+ version?: Prisma.SortOrder;
552
+ };
553
+ export type CartCreateNestedManyWithoutCustomerInput = {
554
+ create?: Prisma.XOR<Prisma.CartCreateWithoutCustomerInput, Prisma.CartUncheckedCreateWithoutCustomerInput> | Prisma.CartCreateWithoutCustomerInput[] | Prisma.CartUncheckedCreateWithoutCustomerInput[];
555
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutCustomerInput | Prisma.CartCreateOrConnectWithoutCustomerInput[];
556
+ createMany?: Prisma.CartCreateManyCustomerInputEnvelope;
557
+ connect?: Prisma.CartWhereUniqueInput | Prisma.CartWhereUniqueInput[];
558
+ };
559
+ export type CartUncheckedCreateNestedManyWithoutCustomerInput = {
560
+ create?: Prisma.XOR<Prisma.CartCreateWithoutCustomerInput, Prisma.CartUncheckedCreateWithoutCustomerInput> | Prisma.CartCreateWithoutCustomerInput[] | Prisma.CartUncheckedCreateWithoutCustomerInput[];
561
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutCustomerInput | Prisma.CartCreateOrConnectWithoutCustomerInput[];
562
+ createMany?: Prisma.CartCreateManyCustomerInputEnvelope;
563
+ connect?: Prisma.CartWhereUniqueInput | Prisma.CartWhereUniqueInput[];
564
+ };
565
+ export type CartUpdateManyWithoutCustomerNestedInput = {
566
+ create?: Prisma.XOR<Prisma.CartCreateWithoutCustomerInput, Prisma.CartUncheckedCreateWithoutCustomerInput> | Prisma.CartCreateWithoutCustomerInput[] | Prisma.CartUncheckedCreateWithoutCustomerInput[];
567
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutCustomerInput | Prisma.CartCreateOrConnectWithoutCustomerInput[];
568
+ upsert?: Prisma.CartUpsertWithWhereUniqueWithoutCustomerInput | Prisma.CartUpsertWithWhereUniqueWithoutCustomerInput[];
569
+ createMany?: Prisma.CartCreateManyCustomerInputEnvelope;
570
+ set?: Prisma.CartWhereUniqueInput | Prisma.CartWhereUniqueInput[];
571
+ disconnect?: Prisma.CartWhereUniqueInput | Prisma.CartWhereUniqueInput[];
572
+ delete?: Prisma.CartWhereUniqueInput | Prisma.CartWhereUniqueInput[];
573
+ connect?: Prisma.CartWhereUniqueInput | Prisma.CartWhereUniqueInput[];
574
+ update?: Prisma.CartUpdateWithWhereUniqueWithoutCustomerInput | Prisma.CartUpdateWithWhereUniqueWithoutCustomerInput[];
575
+ updateMany?: Prisma.CartUpdateManyWithWhereWithoutCustomerInput | Prisma.CartUpdateManyWithWhereWithoutCustomerInput[];
576
+ deleteMany?: Prisma.CartScalarWhereInput | Prisma.CartScalarWhereInput[];
577
+ };
578
+ export type CartUncheckedUpdateManyWithoutCustomerNestedInput = {
579
+ create?: Prisma.XOR<Prisma.CartCreateWithoutCustomerInput, Prisma.CartUncheckedCreateWithoutCustomerInput> | Prisma.CartCreateWithoutCustomerInput[] | Prisma.CartUncheckedCreateWithoutCustomerInput[];
580
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutCustomerInput | Prisma.CartCreateOrConnectWithoutCustomerInput[];
581
+ upsert?: Prisma.CartUpsertWithWhereUniqueWithoutCustomerInput | Prisma.CartUpsertWithWhereUniqueWithoutCustomerInput[];
582
+ createMany?: Prisma.CartCreateManyCustomerInputEnvelope;
583
+ set?: Prisma.CartWhereUniqueInput | Prisma.CartWhereUniqueInput[];
584
+ disconnect?: Prisma.CartWhereUniqueInput | Prisma.CartWhereUniqueInput[];
585
+ delete?: Prisma.CartWhereUniqueInput | Prisma.CartWhereUniqueInput[];
586
+ connect?: Prisma.CartWhereUniqueInput | Prisma.CartWhereUniqueInput[];
587
+ update?: Prisma.CartUpdateWithWhereUniqueWithoutCustomerInput | Prisma.CartUpdateWithWhereUniqueWithoutCustomerInput[];
588
+ updateMany?: Prisma.CartUpdateManyWithWhereWithoutCustomerInput | Prisma.CartUpdateManyWithWhereWithoutCustomerInput[];
589
+ deleteMany?: Prisma.CartScalarWhereInput | Prisma.CartScalarWhereInput[];
590
+ };
591
+ export type CartCreateNestedOneWithoutCostInput = {
592
+ create?: Prisma.XOR<Prisma.CartCreateWithoutCostInput, Prisma.CartUncheckedCreateWithoutCostInput>;
593
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutCostInput;
594
+ connect?: Prisma.CartWhereUniqueInput;
595
+ };
596
+ export type CartUpdateOneRequiredWithoutCostNestedInput = {
597
+ create?: Prisma.XOR<Prisma.CartCreateWithoutCostInput, Prisma.CartUncheckedCreateWithoutCostInput>;
598
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutCostInput;
599
+ upsert?: Prisma.CartUpsertWithoutCostInput;
600
+ connect?: Prisma.CartWhereUniqueInput;
601
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CartUpdateToOneWithWhereWithoutCostInput, Prisma.CartUpdateWithoutCostInput>, Prisma.CartUncheckedUpdateWithoutCostInput>;
602
+ };
603
+ export type CartCreateNestedOneWithoutCartLinesInput = {
604
+ create?: Prisma.XOR<Prisma.CartCreateWithoutCartLinesInput, Prisma.CartUncheckedCreateWithoutCartLinesInput>;
605
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutCartLinesInput;
606
+ connect?: Prisma.CartWhereUniqueInput;
607
+ };
608
+ export type CartUpdateOneRequiredWithoutCartLinesNestedInput = {
609
+ create?: Prisma.XOR<Prisma.CartCreateWithoutCartLinesInput, Prisma.CartUncheckedCreateWithoutCartLinesInput>;
610
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutCartLinesInput;
611
+ upsert?: Prisma.CartUpsertWithoutCartLinesInput;
612
+ connect?: Prisma.CartWhereUniqueInput;
613
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CartUpdateToOneWithWhereWithoutCartLinesInput, Prisma.CartUpdateWithoutCartLinesInput>, Prisma.CartUncheckedUpdateWithoutCartLinesInput>;
614
+ };
615
+ export type EnumCurrencyCodeFieldUpdateOperationsInput = {
616
+ set?: $Enums.CurrencyCode;
617
+ };
618
+ export type CartCreateNestedOneWithoutCheckoutInput = {
619
+ create?: Prisma.XOR<Prisma.CartCreateWithoutCheckoutInput, Prisma.CartUncheckedCreateWithoutCheckoutInput>;
620
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutCheckoutInput;
621
+ connect?: Prisma.CartWhereUniqueInput;
622
+ };
623
+ export type CartUpdateOneRequiredWithoutCheckoutNestedInput = {
624
+ create?: Prisma.XOR<Prisma.CartCreateWithoutCheckoutInput, Prisma.CartUncheckedCreateWithoutCheckoutInput>;
625
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutCheckoutInput;
626
+ upsert?: Prisma.CartUpsertWithoutCheckoutInput;
627
+ connect?: Prisma.CartWhereUniqueInput;
628
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CartUpdateToOneWithWhereWithoutCheckoutInput, Prisma.CartUpdateWithoutCheckoutInput>, Prisma.CartUncheckedUpdateWithoutCheckoutInput>;
629
+ };
630
+ export type CartCreateNestedOneWithoutDiscountCodeAppliedToCartInput = {
631
+ create?: Prisma.XOR<Prisma.CartCreateWithoutDiscountCodeAppliedToCartInput, Prisma.CartUncheckedCreateWithoutDiscountCodeAppliedToCartInput>;
632
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutDiscountCodeAppliedToCartInput;
633
+ connect?: Prisma.CartWhereUniqueInput;
634
+ };
635
+ export type CartUpdateOneRequiredWithoutDiscountCodeAppliedToCartNestedInput = {
636
+ create?: Prisma.XOR<Prisma.CartCreateWithoutDiscountCodeAppliedToCartInput, Prisma.CartUncheckedCreateWithoutDiscountCodeAppliedToCartInput>;
637
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutDiscountCodeAppliedToCartInput;
638
+ upsert?: Prisma.CartUpsertWithoutDiscountCodeAppliedToCartInput;
639
+ connect?: Prisma.CartWhereUniqueInput;
640
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CartUpdateToOneWithWhereWithoutDiscountCodeAppliedToCartInput, Prisma.CartUpdateWithoutDiscountCodeAppliedToCartInput>, Prisma.CartUncheckedUpdateWithoutDiscountCodeAppliedToCartInput>;
641
+ };
642
+ export type CartCreateNestedOneWithoutDiscountCodeRedeemedOnCartInput = {
643
+ create?: Prisma.XOR<Prisma.CartCreateWithoutDiscountCodeRedeemedOnCartInput, Prisma.CartUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput>;
644
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutDiscountCodeRedeemedOnCartInput;
645
+ connect?: Prisma.CartWhereUniqueInput;
646
+ };
647
+ export type CartUpdateOneRequiredWithoutDiscountCodeRedeemedOnCartNestedInput = {
648
+ create?: Prisma.XOR<Prisma.CartCreateWithoutDiscountCodeRedeemedOnCartInput, Prisma.CartUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput>;
649
+ connectOrCreate?: Prisma.CartCreateOrConnectWithoutDiscountCodeRedeemedOnCartInput;
650
+ upsert?: Prisma.CartUpsertWithoutDiscountCodeRedeemedOnCartInput;
651
+ connect?: Prisma.CartWhereUniqueInput;
652
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CartUpdateToOneWithWhereWithoutDiscountCodeRedeemedOnCartInput, Prisma.CartUpdateWithoutDiscountCodeRedeemedOnCartInput>, Prisma.CartUncheckedUpdateWithoutDiscountCodeRedeemedOnCartInput>;
653
+ };
654
+ export type CartCreateWithoutCustomerInput = {
655
+ id?: bigint | number;
656
+ platformId: string;
657
+ storeId: string;
658
+ createdAt?: Date | string;
659
+ updatedAt?: Date | string;
660
+ openedAt?: Date | string | null;
661
+ active?: boolean;
662
+ closedAt?: Date | string | null;
663
+ note?: string | null;
664
+ currencyCode: $Enums.CurrencyCode;
665
+ version?: number;
666
+ isValid?: boolean;
667
+ invalidReason?: string | null;
668
+ cartLines?: Prisma.CartLineCreateNestedManyWithoutCartInput;
669
+ cost?: Prisma.CartCostCreateNestedOneWithoutCartInput;
670
+ checkout?: Prisma.CheckoutCreateNestedOneWithoutCartInput;
671
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartCreateNestedManyWithoutCartInput;
672
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutCartInput;
673
+ };
674
+ export type CartUncheckedCreateWithoutCustomerInput = {
675
+ id?: bigint | number;
676
+ platformId: string;
677
+ storeId: string;
678
+ createdAt?: Date | string;
679
+ updatedAt?: Date | string;
680
+ openedAt?: Date | string | null;
681
+ active?: boolean;
682
+ closedAt?: Date | string | null;
683
+ note?: string | null;
684
+ currencyCode: $Enums.CurrencyCode;
685
+ version?: number;
686
+ isValid?: boolean;
687
+ invalidReason?: string | null;
688
+ cartLines?: Prisma.CartLineUncheckedCreateNestedManyWithoutCartInput;
689
+ cost?: Prisma.CartCostUncheckedCreateNestedOneWithoutCartInput;
690
+ checkout?: Prisma.CheckoutUncheckedCreateNestedOneWithoutCartInput;
691
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedCreateNestedManyWithoutCartInput;
692
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutCartInput;
693
+ };
694
+ export type CartCreateOrConnectWithoutCustomerInput = {
695
+ where: Prisma.CartWhereUniqueInput;
696
+ create: Prisma.XOR<Prisma.CartCreateWithoutCustomerInput, Prisma.CartUncheckedCreateWithoutCustomerInput>;
697
+ };
698
+ export type CartCreateManyCustomerInputEnvelope = {
699
+ data: Prisma.CartCreateManyCustomerInput | Prisma.CartCreateManyCustomerInput[];
700
+ skipDuplicates?: boolean;
701
+ };
702
+ export type CartUpsertWithWhereUniqueWithoutCustomerInput = {
703
+ where: Prisma.CartWhereUniqueInput;
704
+ update: Prisma.XOR<Prisma.CartUpdateWithoutCustomerInput, Prisma.CartUncheckedUpdateWithoutCustomerInput>;
705
+ create: Prisma.XOR<Prisma.CartCreateWithoutCustomerInput, Prisma.CartUncheckedCreateWithoutCustomerInput>;
706
+ };
707
+ export type CartUpdateWithWhereUniqueWithoutCustomerInput = {
708
+ where: Prisma.CartWhereUniqueInput;
709
+ data: Prisma.XOR<Prisma.CartUpdateWithoutCustomerInput, Prisma.CartUncheckedUpdateWithoutCustomerInput>;
710
+ };
711
+ export type CartUpdateManyWithWhereWithoutCustomerInput = {
712
+ where: Prisma.CartScalarWhereInput;
713
+ data: Prisma.XOR<Prisma.CartUpdateManyMutationInput, Prisma.CartUncheckedUpdateManyWithoutCustomerInput>;
714
+ };
715
+ export type CartScalarWhereInput = {
716
+ AND?: Prisma.CartScalarWhereInput | Prisma.CartScalarWhereInput[];
717
+ OR?: Prisma.CartScalarWhereInput[];
718
+ NOT?: Prisma.CartScalarWhereInput | Prisma.CartScalarWhereInput[];
719
+ id?: Prisma.BigIntFilter<"Cart"> | bigint | number;
720
+ customerId?: Prisma.BigIntNullableFilter<"Cart"> | bigint | number | null;
721
+ platformId?: Prisma.StringFilter<"Cart"> | string;
722
+ storeId?: Prisma.StringFilter<"Cart"> | string;
723
+ createdAt?: Prisma.DateTimeFilter<"Cart"> | Date | string;
724
+ updatedAt?: Prisma.DateTimeFilter<"Cart"> | Date | string;
725
+ openedAt?: Prisma.DateTimeNullableFilter<"Cart"> | Date | string | null;
726
+ active?: Prisma.BoolFilter<"Cart"> | boolean;
727
+ closedAt?: Prisma.DateTimeNullableFilter<"Cart"> | Date | string | null;
728
+ note?: Prisma.StringNullableFilter<"Cart"> | string | null;
729
+ currencyCode?: Prisma.EnumCurrencyCodeFilter<"Cart"> | $Enums.CurrencyCode;
730
+ version?: Prisma.IntFilter<"Cart"> | number;
731
+ isValid?: Prisma.BoolFilter<"Cart"> | boolean;
732
+ invalidReason?: Prisma.StringNullableFilter<"Cart"> | string | null;
733
+ };
734
+ export type CartCreateWithoutCostInput = {
735
+ id?: bigint | number;
736
+ platformId: string;
737
+ storeId: string;
738
+ createdAt?: Date | string;
739
+ updatedAt?: Date | string;
740
+ openedAt?: Date | string | null;
741
+ active?: boolean;
742
+ closedAt?: Date | string | null;
743
+ note?: string | null;
744
+ currencyCode: $Enums.CurrencyCode;
745
+ version?: number;
746
+ isValid?: boolean;
747
+ invalidReason?: string | null;
748
+ customer?: Prisma.CustomerCreateNestedOneWithoutCartsInput;
749
+ cartLines?: Prisma.CartLineCreateNestedManyWithoutCartInput;
750
+ checkout?: Prisma.CheckoutCreateNestedOneWithoutCartInput;
751
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartCreateNestedManyWithoutCartInput;
752
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutCartInput;
753
+ };
754
+ export type CartUncheckedCreateWithoutCostInput = {
755
+ id?: bigint | number;
756
+ customerId?: bigint | number | null;
757
+ platformId: string;
758
+ storeId: string;
759
+ createdAt?: Date | string;
760
+ updatedAt?: Date | string;
761
+ openedAt?: Date | string | null;
762
+ active?: boolean;
763
+ closedAt?: Date | string | null;
764
+ note?: string | null;
765
+ currencyCode: $Enums.CurrencyCode;
766
+ version?: number;
767
+ isValid?: boolean;
768
+ invalidReason?: string | null;
769
+ cartLines?: Prisma.CartLineUncheckedCreateNestedManyWithoutCartInput;
770
+ checkout?: Prisma.CheckoutUncheckedCreateNestedOneWithoutCartInput;
771
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedCreateNestedManyWithoutCartInput;
772
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutCartInput;
773
+ };
774
+ export type CartCreateOrConnectWithoutCostInput = {
775
+ where: Prisma.CartWhereUniqueInput;
776
+ create: Prisma.XOR<Prisma.CartCreateWithoutCostInput, Prisma.CartUncheckedCreateWithoutCostInput>;
777
+ };
778
+ export type CartUpsertWithoutCostInput = {
779
+ update: Prisma.XOR<Prisma.CartUpdateWithoutCostInput, Prisma.CartUncheckedUpdateWithoutCostInput>;
780
+ create: Prisma.XOR<Prisma.CartCreateWithoutCostInput, Prisma.CartUncheckedCreateWithoutCostInput>;
781
+ where?: Prisma.CartWhereInput;
782
+ };
783
+ export type CartUpdateToOneWithWhereWithoutCostInput = {
784
+ where?: Prisma.CartWhereInput;
785
+ data: Prisma.XOR<Prisma.CartUpdateWithoutCostInput, Prisma.CartUncheckedUpdateWithoutCostInput>;
786
+ };
787
+ export type CartUpdateWithoutCostInput = {
788
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
789
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
790
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
791
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
792
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
793
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
794
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
795
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
796
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
797
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
798
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
799
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
800
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
801
+ customer?: Prisma.CustomerUpdateOneWithoutCartsNestedInput;
802
+ cartLines?: Prisma.CartLineUpdateManyWithoutCartNestedInput;
803
+ checkout?: Prisma.CheckoutUpdateOneWithoutCartNestedInput;
804
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUpdateManyWithoutCartNestedInput;
805
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutCartNestedInput;
806
+ };
807
+ export type CartUncheckedUpdateWithoutCostInput = {
808
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
809
+ customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
810
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
811
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
812
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
813
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
814
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
815
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
816
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
817
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
818
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
819
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
820
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
821
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
822
+ cartLines?: Prisma.CartLineUncheckedUpdateManyWithoutCartNestedInput;
823
+ checkout?: Prisma.CheckoutUncheckedUpdateOneWithoutCartNestedInput;
824
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedUpdateManyWithoutCartNestedInput;
825
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutCartNestedInput;
826
+ };
827
+ export type CartCreateWithoutCartLinesInput = {
828
+ id?: bigint | number;
829
+ platformId: string;
830
+ storeId: string;
831
+ createdAt?: Date | string;
832
+ updatedAt?: Date | string;
833
+ openedAt?: Date | string | null;
834
+ active?: boolean;
835
+ closedAt?: Date | string | null;
836
+ note?: string | null;
837
+ currencyCode: $Enums.CurrencyCode;
838
+ version?: number;
839
+ isValid?: boolean;
840
+ invalidReason?: string | null;
841
+ customer?: Prisma.CustomerCreateNestedOneWithoutCartsInput;
842
+ cost?: Prisma.CartCostCreateNestedOneWithoutCartInput;
843
+ checkout?: Prisma.CheckoutCreateNestedOneWithoutCartInput;
844
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartCreateNestedManyWithoutCartInput;
845
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutCartInput;
846
+ };
847
+ export type CartUncheckedCreateWithoutCartLinesInput = {
848
+ id?: bigint | number;
849
+ customerId?: bigint | number | null;
850
+ platformId: string;
851
+ storeId: string;
852
+ createdAt?: Date | string;
853
+ updatedAt?: Date | string;
854
+ openedAt?: Date | string | null;
855
+ active?: boolean;
856
+ closedAt?: Date | string | null;
857
+ note?: string | null;
858
+ currencyCode: $Enums.CurrencyCode;
859
+ version?: number;
860
+ isValid?: boolean;
861
+ invalidReason?: string | null;
862
+ cost?: Prisma.CartCostUncheckedCreateNestedOneWithoutCartInput;
863
+ checkout?: Prisma.CheckoutUncheckedCreateNestedOneWithoutCartInput;
864
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedCreateNestedManyWithoutCartInput;
865
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutCartInput;
866
+ };
867
+ export type CartCreateOrConnectWithoutCartLinesInput = {
868
+ where: Prisma.CartWhereUniqueInput;
869
+ create: Prisma.XOR<Prisma.CartCreateWithoutCartLinesInput, Prisma.CartUncheckedCreateWithoutCartLinesInput>;
870
+ };
871
+ export type CartUpsertWithoutCartLinesInput = {
872
+ update: Prisma.XOR<Prisma.CartUpdateWithoutCartLinesInput, Prisma.CartUncheckedUpdateWithoutCartLinesInput>;
873
+ create: Prisma.XOR<Prisma.CartCreateWithoutCartLinesInput, Prisma.CartUncheckedCreateWithoutCartLinesInput>;
874
+ where?: Prisma.CartWhereInput;
875
+ };
876
+ export type CartUpdateToOneWithWhereWithoutCartLinesInput = {
877
+ where?: Prisma.CartWhereInput;
878
+ data: Prisma.XOR<Prisma.CartUpdateWithoutCartLinesInput, Prisma.CartUncheckedUpdateWithoutCartLinesInput>;
879
+ };
880
+ export type CartUpdateWithoutCartLinesInput = {
881
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
882
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
883
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
884
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
885
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
886
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
887
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
888
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
889
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
890
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
891
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
892
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
893
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
894
+ customer?: Prisma.CustomerUpdateOneWithoutCartsNestedInput;
895
+ cost?: Prisma.CartCostUpdateOneWithoutCartNestedInput;
896
+ checkout?: Prisma.CheckoutUpdateOneWithoutCartNestedInput;
897
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUpdateManyWithoutCartNestedInput;
898
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutCartNestedInput;
899
+ };
900
+ export type CartUncheckedUpdateWithoutCartLinesInput = {
901
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
902
+ customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
903
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
904
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
905
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
906
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
907
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
908
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
909
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
910
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
911
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
912
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
913
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
914
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
915
+ cost?: Prisma.CartCostUncheckedUpdateOneWithoutCartNestedInput;
916
+ checkout?: Prisma.CheckoutUncheckedUpdateOneWithoutCartNestedInput;
917
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedUpdateManyWithoutCartNestedInput;
918
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutCartNestedInput;
919
+ };
920
+ export type CartCreateWithoutCheckoutInput = {
921
+ id?: bigint | number;
922
+ platformId: string;
923
+ storeId: string;
924
+ createdAt?: Date | string;
925
+ updatedAt?: Date | string;
926
+ openedAt?: Date | string | null;
927
+ active?: boolean;
928
+ closedAt?: Date | string | null;
929
+ note?: string | null;
930
+ currencyCode: $Enums.CurrencyCode;
931
+ version?: number;
932
+ isValid?: boolean;
933
+ invalidReason?: string | null;
934
+ customer?: Prisma.CustomerCreateNestedOneWithoutCartsInput;
935
+ cartLines?: Prisma.CartLineCreateNestedManyWithoutCartInput;
936
+ cost?: Prisma.CartCostCreateNestedOneWithoutCartInput;
937
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartCreateNestedManyWithoutCartInput;
938
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutCartInput;
939
+ };
940
+ export type CartUncheckedCreateWithoutCheckoutInput = {
941
+ id?: bigint | number;
942
+ customerId?: bigint | number | null;
943
+ platformId: string;
944
+ storeId: string;
945
+ createdAt?: Date | string;
946
+ updatedAt?: Date | string;
947
+ openedAt?: Date | string | null;
948
+ active?: boolean;
949
+ closedAt?: Date | string | null;
950
+ note?: string | null;
951
+ currencyCode: $Enums.CurrencyCode;
952
+ version?: number;
953
+ isValid?: boolean;
954
+ invalidReason?: string | null;
955
+ cartLines?: Prisma.CartLineUncheckedCreateNestedManyWithoutCartInput;
956
+ cost?: Prisma.CartCostUncheckedCreateNestedOneWithoutCartInput;
957
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedCreateNestedManyWithoutCartInput;
958
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutCartInput;
959
+ };
960
+ export type CartCreateOrConnectWithoutCheckoutInput = {
961
+ where: Prisma.CartWhereUniqueInput;
962
+ create: Prisma.XOR<Prisma.CartCreateWithoutCheckoutInput, Prisma.CartUncheckedCreateWithoutCheckoutInput>;
963
+ };
964
+ export type CartUpsertWithoutCheckoutInput = {
965
+ update: Prisma.XOR<Prisma.CartUpdateWithoutCheckoutInput, Prisma.CartUncheckedUpdateWithoutCheckoutInput>;
966
+ create: Prisma.XOR<Prisma.CartCreateWithoutCheckoutInput, Prisma.CartUncheckedCreateWithoutCheckoutInput>;
967
+ where?: Prisma.CartWhereInput;
968
+ };
969
+ export type CartUpdateToOneWithWhereWithoutCheckoutInput = {
970
+ where?: Prisma.CartWhereInput;
971
+ data: Prisma.XOR<Prisma.CartUpdateWithoutCheckoutInput, Prisma.CartUncheckedUpdateWithoutCheckoutInput>;
972
+ };
973
+ export type CartUpdateWithoutCheckoutInput = {
974
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
975
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
976
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
977
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
978
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
979
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
980
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
981
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
982
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
983
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
984
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
985
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
986
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
987
+ customer?: Prisma.CustomerUpdateOneWithoutCartsNestedInput;
988
+ cartLines?: Prisma.CartLineUpdateManyWithoutCartNestedInput;
989
+ cost?: Prisma.CartCostUpdateOneWithoutCartNestedInput;
990
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUpdateManyWithoutCartNestedInput;
991
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutCartNestedInput;
992
+ };
993
+ export type CartUncheckedUpdateWithoutCheckoutInput = {
994
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
995
+ customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
996
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
997
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
998
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
999
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1000
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1001
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1002
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1003
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1004
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
1005
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
1006
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1007
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1008
+ cartLines?: Prisma.CartLineUncheckedUpdateManyWithoutCartNestedInput;
1009
+ cost?: Prisma.CartCostUncheckedUpdateOneWithoutCartNestedInput;
1010
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedUpdateManyWithoutCartNestedInput;
1011
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutCartNestedInput;
1012
+ };
1013
+ export type CartCreateWithoutDiscountCodeAppliedToCartInput = {
1014
+ id?: bigint | number;
1015
+ platformId: string;
1016
+ storeId: string;
1017
+ createdAt?: Date | string;
1018
+ updatedAt?: Date | string;
1019
+ openedAt?: Date | string | null;
1020
+ active?: boolean;
1021
+ closedAt?: Date | string | null;
1022
+ note?: string | null;
1023
+ currencyCode: $Enums.CurrencyCode;
1024
+ version?: number;
1025
+ isValid?: boolean;
1026
+ invalidReason?: string | null;
1027
+ customer?: Prisma.CustomerCreateNestedOneWithoutCartsInput;
1028
+ cartLines?: Prisma.CartLineCreateNestedManyWithoutCartInput;
1029
+ cost?: Prisma.CartCostCreateNestedOneWithoutCartInput;
1030
+ checkout?: Prisma.CheckoutCreateNestedOneWithoutCartInput;
1031
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartCreateNestedManyWithoutCartInput;
1032
+ };
1033
+ export type CartUncheckedCreateWithoutDiscountCodeAppliedToCartInput = {
1034
+ id?: bigint | number;
1035
+ customerId?: bigint | number | null;
1036
+ platformId: string;
1037
+ storeId: string;
1038
+ createdAt?: Date | string;
1039
+ updatedAt?: Date | string;
1040
+ openedAt?: Date | string | null;
1041
+ active?: boolean;
1042
+ closedAt?: Date | string | null;
1043
+ note?: string | null;
1044
+ currencyCode: $Enums.CurrencyCode;
1045
+ version?: number;
1046
+ isValid?: boolean;
1047
+ invalidReason?: string | null;
1048
+ cartLines?: Prisma.CartLineUncheckedCreateNestedManyWithoutCartInput;
1049
+ cost?: Prisma.CartCostUncheckedCreateNestedOneWithoutCartInput;
1050
+ checkout?: Prisma.CheckoutUncheckedCreateNestedOneWithoutCartInput;
1051
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedCreateNestedManyWithoutCartInput;
1052
+ };
1053
+ export type CartCreateOrConnectWithoutDiscountCodeAppliedToCartInput = {
1054
+ where: Prisma.CartWhereUniqueInput;
1055
+ create: Prisma.XOR<Prisma.CartCreateWithoutDiscountCodeAppliedToCartInput, Prisma.CartUncheckedCreateWithoutDiscountCodeAppliedToCartInput>;
1056
+ };
1057
+ export type CartUpsertWithoutDiscountCodeAppliedToCartInput = {
1058
+ update: Prisma.XOR<Prisma.CartUpdateWithoutDiscountCodeAppliedToCartInput, Prisma.CartUncheckedUpdateWithoutDiscountCodeAppliedToCartInput>;
1059
+ create: Prisma.XOR<Prisma.CartCreateWithoutDiscountCodeAppliedToCartInput, Prisma.CartUncheckedCreateWithoutDiscountCodeAppliedToCartInput>;
1060
+ where?: Prisma.CartWhereInput;
1061
+ };
1062
+ export type CartUpdateToOneWithWhereWithoutDiscountCodeAppliedToCartInput = {
1063
+ where?: Prisma.CartWhereInput;
1064
+ data: Prisma.XOR<Prisma.CartUpdateWithoutDiscountCodeAppliedToCartInput, Prisma.CartUncheckedUpdateWithoutDiscountCodeAppliedToCartInput>;
1065
+ };
1066
+ export type CartUpdateWithoutDiscountCodeAppliedToCartInput = {
1067
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
1068
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
1069
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
1070
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1071
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1072
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1073
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1074
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1075
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1076
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
1077
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
1078
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1079
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1080
+ customer?: Prisma.CustomerUpdateOneWithoutCartsNestedInput;
1081
+ cartLines?: Prisma.CartLineUpdateManyWithoutCartNestedInput;
1082
+ cost?: Prisma.CartCostUpdateOneWithoutCartNestedInput;
1083
+ checkout?: Prisma.CheckoutUpdateOneWithoutCartNestedInput;
1084
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutCartNestedInput;
1085
+ };
1086
+ export type CartUncheckedUpdateWithoutDiscountCodeAppliedToCartInput = {
1087
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
1088
+ customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
1089
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
1090
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
1091
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1092
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1093
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1094
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1095
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1096
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1097
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
1098
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
1099
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1100
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1101
+ cartLines?: Prisma.CartLineUncheckedUpdateManyWithoutCartNestedInput;
1102
+ cost?: Prisma.CartCostUncheckedUpdateOneWithoutCartNestedInput;
1103
+ checkout?: Prisma.CheckoutUncheckedUpdateOneWithoutCartNestedInput;
1104
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutCartNestedInput;
1105
+ };
1106
+ export type CartCreateWithoutDiscountCodeRedeemedOnCartInput = {
1107
+ id?: bigint | number;
1108
+ platformId: string;
1109
+ storeId: string;
1110
+ createdAt?: Date | string;
1111
+ updatedAt?: Date | string;
1112
+ openedAt?: Date | string | null;
1113
+ active?: boolean;
1114
+ closedAt?: Date | string | null;
1115
+ note?: string | null;
1116
+ currencyCode: $Enums.CurrencyCode;
1117
+ version?: number;
1118
+ isValid?: boolean;
1119
+ invalidReason?: string | null;
1120
+ customer?: Prisma.CustomerCreateNestedOneWithoutCartsInput;
1121
+ cartLines?: Prisma.CartLineCreateNestedManyWithoutCartInput;
1122
+ cost?: Prisma.CartCostCreateNestedOneWithoutCartInput;
1123
+ checkout?: Prisma.CheckoutCreateNestedOneWithoutCartInput;
1124
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartCreateNestedManyWithoutCartInput;
1125
+ };
1126
+ export type CartUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput = {
1127
+ id?: bigint | number;
1128
+ customerId?: bigint | number | null;
1129
+ platformId: string;
1130
+ storeId: string;
1131
+ createdAt?: Date | string;
1132
+ updatedAt?: Date | string;
1133
+ openedAt?: Date | string | null;
1134
+ active?: boolean;
1135
+ closedAt?: Date | string | null;
1136
+ note?: string | null;
1137
+ currencyCode: $Enums.CurrencyCode;
1138
+ version?: number;
1139
+ isValid?: boolean;
1140
+ invalidReason?: string | null;
1141
+ cartLines?: Prisma.CartLineUncheckedCreateNestedManyWithoutCartInput;
1142
+ cost?: Prisma.CartCostUncheckedCreateNestedOneWithoutCartInput;
1143
+ checkout?: Prisma.CheckoutUncheckedCreateNestedOneWithoutCartInput;
1144
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedCreateNestedManyWithoutCartInput;
1145
+ };
1146
+ export type CartCreateOrConnectWithoutDiscountCodeRedeemedOnCartInput = {
1147
+ where: Prisma.CartWhereUniqueInput;
1148
+ create: Prisma.XOR<Prisma.CartCreateWithoutDiscountCodeRedeemedOnCartInput, Prisma.CartUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput>;
1149
+ };
1150
+ export type CartUpsertWithoutDiscountCodeRedeemedOnCartInput = {
1151
+ update: Prisma.XOR<Prisma.CartUpdateWithoutDiscountCodeRedeemedOnCartInput, Prisma.CartUncheckedUpdateWithoutDiscountCodeRedeemedOnCartInput>;
1152
+ create: Prisma.XOR<Prisma.CartCreateWithoutDiscountCodeRedeemedOnCartInput, Prisma.CartUncheckedCreateWithoutDiscountCodeRedeemedOnCartInput>;
1153
+ where?: Prisma.CartWhereInput;
1154
+ };
1155
+ export type CartUpdateToOneWithWhereWithoutDiscountCodeRedeemedOnCartInput = {
1156
+ where?: Prisma.CartWhereInput;
1157
+ data: Prisma.XOR<Prisma.CartUpdateWithoutDiscountCodeRedeemedOnCartInput, Prisma.CartUncheckedUpdateWithoutDiscountCodeRedeemedOnCartInput>;
1158
+ };
1159
+ export type CartUpdateWithoutDiscountCodeRedeemedOnCartInput = {
1160
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
1161
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
1162
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
1163
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1164
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1165
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1166
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1167
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1168
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1169
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
1170
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
1171
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1172
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1173
+ customer?: Prisma.CustomerUpdateOneWithoutCartsNestedInput;
1174
+ cartLines?: Prisma.CartLineUpdateManyWithoutCartNestedInput;
1175
+ cost?: Prisma.CartCostUpdateOneWithoutCartNestedInput;
1176
+ checkout?: Prisma.CheckoutUpdateOneWithoutCartNestedInput;
1177
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUpdateManyWithoutCartNestedInput;
1178
+ };
1179
+ export type CartUncheckedUpdateWithoutDiscountCodeRedeemedOnCartInput = {
1180
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
1181
+ customerId?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
1182
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
1183
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
1184
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1185
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1186
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1187
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1188
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1189
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1190
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
1191
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
1192
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1193
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1194
+ cartLines?: Prisma.CartLineUncheckedUpdateManyWithoutCartNestedInput;
1195
+ cost?: Prisma.CartCostUncheckedUpdateOneWithoutCartNestedInput;
1196
+ checkout?: Prisma.CheckoutUncheckedUpdateOneWithoutCartNestedInput;
1197
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedUpdateManyWithoutCartNestedInput;
1198
+ };
1199
+ export type CartCreateManyCustomerInput = {
1200
+ id?: bigint | number;
1201
+ platformId: string;
1202
+ storeId: string;
1203
+ createdAt?: Date | string;
1204
+ updatedAt?: Date | string;
1205
+ openedAt?: Date | string | null;
1206
+ active?: boolean;
1207
+ closedAt?: Date | string | null;
1208
+ note?: string | null;
1209
+ currencyCode: $Enums.CurrencyCode;
1210
+ version?: number;
1211
+ isValid?: boolean;
1212
+ invalidReason?: string | null;
1213
+ };
1214
+ export type CartUpdateWithoutCustomerInput = {
1215
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
1216
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
1217
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
1218
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1219
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1220
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1221
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1222
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1223
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1224
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
1225
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
1226
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1227
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1228
+ cartLines?: Prisma.CartLineUpdateManyWithoutCartNestedInput;
1229
+ cost?: Prisma.CartCostUpdateOneWithoutCartNestedInput;
1230
+ checkout?: Prisma.CheckoutUpdateOneWithoutCartNestedInput;
1231
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUpdateManyWithoutCartNestedInput;
1232
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUpdateManyWithoutCartNestedInput;
1233
+ };
1234
+ export type CartUncheckedUpdateWithoutCustomerInput = {
1235
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
1236
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
1237
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
1238
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1239
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1240
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1241
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1242
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1243
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1244
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
1245
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
1246
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1247
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1248
+ cartLines?: Prisma.CartLineUncheckedUpdateManyWithoutCartNestedInput;
1249
+ cost?: Prisma.CartCostUncheckedUpdateOneWithoutCartNestedInput;
1250
+ checkout?: Prisma.CheckoutUncheckedUpdateOneWithoutCartNestedInput;
1251
+ discountCodeAppliedToCart?: Prisma.DiscountCodeAppliedToCartUncheckedUpdateManyWithoutCartNestedInput;
1252
+ discountCodeRedeemedOnCart?: Prisma.DiscountCodeRedeemedOnCartUncheckedUpdateManyWithoutCartNestedInput;
1253
+ };
1254
+ export type CartUncheckedUpdateManyWithoutCustomerInput = {
1255
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
1256
+ platformId?: Prisma.StringFieldUpdateOperationsInput | string;
1257
+ storeId?: Prisma.StringFieldUpdateOperationsInput | string;
1258
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1259
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1260
+ openedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1261
+ active?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1262
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1263
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1264
+ currencyCode?: Prisma.EnumCurrencyCodeFieldUpdateOperationsInput | $Enums.CurrencyCode;
1265
+ version?: Prisma.IntFieldUpdateOperationsInput | number;
1266
+ isValid?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1267
+ invalidReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1268
+ };
1269
+ /**
1270
+ * Count Type CartCountOutputType
1271
+ */
1272
+ export type CartCountOutputType = {
1273
+ cartLines: number;
1274
+ discountCodeAppliedToCart: number;
1275
+ discountCodeRedeemedOnCart: number;
1276
+ };
1277
+ export type CartCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1278
+ cartLines?: boolean | CartCountOutputTypeCountCartLinesArgs;
1279
+ discountCodeAppliedToCart?: boolean | CartCountOutputTypeCountDiscountCodeAppliedToCartArgs;
1280
+ discountCodeRedeemedOnCart?: boolean | CartCountOutputTypeCountDiscountCodeRedeemedOnCartArgs;
1281
+ };
1282
+ /**
1283
+ * CartCountOutputType without action
1284
+ */
1285
+ export type CartCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1286
+ /**
1287
+ * Select specific fields to fetch from the CartCountOutputType
1288
+ */
1289
+ select?: Prisma.CartCountOutputTypeSelect<ExtArgs> | null;
1290
+ };
1291
+ /**
1292
+ * CartCountOutputType without action
1293
+ */
1294
+ export type CartCountOutputTypeCountCartLinesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1295
+ where?: Prisma.CartLineWhereInput;
1296
+ };
1297
+ /**
1298
+ * CartCountOutputType without action
1299
+ */
1300
+ export type CartCountOutputTypeCountDiscountCodeAppliedToCartArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1301
+ where?: Prisma.DiscountCodeAppliedToCartWhereInput;
1302
+ };
1303
+ /**
1304
+ * CartCountOutputType without action
1305
+ */
1306
+ export type CartCountOutputTypeCountDiscountCodeRedeemedOnCartArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1307
+ where?: Prisma.DiscountCodeRedeemedOnCartWhereInput;
1308
+ };
1309
+ export type CartSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1310
+ id?: boolean;
1311
+ customerId?: boolean;
1312
+ platformId?: boolean;
1313
+ storeId?: boolean;
1314
+ createdAt?: boolean;
1315
+ updatedAt?: boolean;
1316
+ openedAt?: boolean;
1317
+ active?: boolean;
1318
+ closedAt?: boolean;
1319
+ note?: boolean;
1320
+ currencyCode?: boolean;
1321
+ version?: boolean;
1322
+ isValid?: boolean;
1323
+ invalidReason?: boolean;
1324
+ customer?: boolean | Prisma.Cart$customerArgs<ExtArgs>;
1325
+ cartLines?: boolean | Prisma.Cart$cartLinesArgs<ExtArgs>;
1326
+ cost?: boolean | Prisma.Cart$costArgs<ExtArgs>;
1327
+ checkout?: boolean | Prisma.Cart$checkoutArgs<ExtArgs>;
1328
+ discountCodeAppliedToCart?: boolean | Prisma.Cart$discountCodeAppliedToCartArgs<ExtArgs>;
1329
+ discountCodeRedeemedOnCart?: boolean | Prisma.Cart$discountCodeRedeemedOnCartArgs<ExtArgs>;
1330
+ _count?: boolean | Prisma.CartCountOutputTypeDefaultArgs<ExtArgs>;
1331
+ }, ExtArgs["result"]["cart"]>;
1332
+ export type CartSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1333
+ id?: boolean;
1334
+ customerId?: boolean;
1335
+ platformId?: boolean;
1336
+ storeId?: boolean;
1337
+ createdAt?: boolean;
1338
+ updatedAt?: boolean;
1339
+ openedAt?: boolean;
1340
+ active?: boolean;
1341
+ closedAt?: boolean;
1342
+ note?: boolean;
1343
+ currencyCode?: boolean;
1344
+ version?: boolean;
1345
+ isValid?: boolean;
1346
+ invalidReason?: boolean;
1347
+ customer?: boolean | Prisma.Cart$customerArgs<ExtArgs>;
1348
+ }, ExtArgs["result"]["cart"]>;
1349
+ export type CartSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1350
+ id?: boolean;
1351
+ customerId?: boolean;
1352
+ platformId?: boolean;
1353
+ storeId?: boolean;
1354
+ createdAt?: boolean;
1355
+ updatedAt?: boolean;
1356
+ openedAt?: boolean;
1357
+ active?: boolean;
1358
+ closedAt?: boolean;
1359
+ note?: boolean;
1360
+ currencyCode?: boolean;
1361
+ version?: boolean;
1362
+ isValid?: boolean;
1363
+ invalidReason?: boolean;
1364
+ customer?: boolean | Prisma.Cart$customerArgs<ExtArgs>;
1365
+ }, ExtArgs["result"]["cart"]>;
1366
+ export type CartSelectScalar = {
1367
+ id?: boolean;
1368
+ customerId?: boolean;
1369
+ platformId?: boolean;
1370
+ storeId?: boolean;
1371
+ createdAt?: boolean;
1372
+ updatedAt?: boolean;
1373
+ openedAt?: boolean;
1374
+ active?: boolean;
1375
+ closedAt?: boolean;
1376
+ note?: boolean;
1377
+ currencyCode?: boolean;
1378
+ version?: boolean;
1379
+ isValid?: boolean;
1380
+ invalidReason?: boolean;
1381
+ };
1382
+ export type CartOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "customerId" | "platformId" | "storeId" | "createdAt" | "updatedAt" | "openedAt" | "active" | "closedAt" | "note" | "currencyCode" | "version" | "isValid" | "invalidReason", ExtArgs["result"]["cart"]>;
1383
+ export type CartInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1384
+ customer?: boolean | Prisma.Cart$customerArgs<ExtArgs>;
1385
+ cartLines?: boolean | Prisma.Cart$cartLinesArgs<ExtArgs>;
1386
+ cost?: boolean | Prisma.Cart$costArgs<ExtArgs>;
1387
+ checkout?: boolean | Prisma.Cart$checkoutArgs<ExtArgs>;
1388
+ discountCodeAppliedToCart?: boolean | Prisma.Cart$discountCodeAppliedToCartArgs<ExtArgs>;
1389
+ discountCodeRedeemedOnCart?: boolean | Prisma.Cart$discountCodeRedeemedOnCartArgs<ExtArgs>;
1390
+ _count?: boolean | Prisma.CartCountOutputTypeDefaultArgs<ExtArgs>;
1391
+ };
1392
+ export type CartIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1393
+ customer?: boolean | Prisma.Cart$customerArgs<ExtArgs>;
1394
+ };
1395
+ export type CartIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1396
+ customer?: boolean | Prisma.Cart$customerArgs<ExtArgs>;
1397
+ };
1398
+ export type $CartPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1399
+ name: "Cart";
1400
+ objects: {
1401
+ customer: Prisma.$CustomerPayload<ExtArgs> | null;
1402
+ cartLines: Prisma.$CartLinePayload<ExtArgs>[];
1403
+ cost: Prisma.$CartCostPayload<ExtArgs> | null;
1404
+ checkout: Prisma.$CheckoutPayload<ExtArgs> | null;
1405
+ discountCodeAppliedToCart: Prisma.$DiscountCodeAppliedToCartPayload<ExtArgs>[];
1406
+ discountCodeRedeemedOnCart: Prisma.$DiscountCodeRedeemedOnCartPayload<ExtArgs>[];
1407
+ };
1408
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1409
+ id: bigint;
1410
+ customerId: bigint | null;
1411
+ platformId: string;
1412
+ storeId: string;
1413
+ createdAt: Date;
1414
+ updatedAt: Date;
1415
+ openedAt: Date | null;
1416
+ active: boolean;
1417
+ closedAt: Date | null;
1418
+ note: string | null;
1419
+ currencyCode: $Enums.CurrencyCode;
1420
+ version: number;
1421
+ isValid: boolean;
1422
+ invalidReason: string | null;
1423
+ }, ExtArgs["result"]["cart"]>;
1424
+ composites: {};
1425
+ };
1426
+ export type CartGetPayload<S extends boolean | null | undefined | CartDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CartPayload, S>;
1427
+ export type CartCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<CartFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1428
+ select?: CartCountAggregateInputType | true;
1429
+ };
1430
+ export interface CartDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1431
+ [K: symbol]: {
1432
+ types: Prisma.TypeMap<ExtArgs>['model']['Cart'];
1433
+ meta: {
1434
+ name: 'Cart';
1435
+ };
1436
+ };
1437
+ /**
1438
+ * Find zero or one Cart that matches the filter.
1439
+ * @param {CartFindUniqueArgs} args - Arguments to find a Cart
1440
+ * @example
1441
+ * // Get one Cart
1442
+ * const cart = await prisma.cart.findUnique({
1443
+ * where: {
1444
+ * // ... provide filter here
1445
+ * }
1446
+ * })
1447
+ */
1448
+ findUnique<T extends CartFindUniqueArgs>(args: Prisma.SelectSubset<T, CartFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CartClient<runtime.Types.Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1449
+ /**
1450
+ * Find one Cart that matches the filter or throw an error with `error.code='P2025'`
1451
+ * if no matches were found.
1452
+ * @param {CartFindUniqueOrThrowArgs} args - Arguments to find a Cart
1453
+ * @example
1454
+ * // Get one Cart
1455
+ * const cart = await prisma.cart.findUniqueOrThrow({
1456
+ * where: {
1457
+ * // ... provide filter here
1458
+ * }
1459
+ * })
1460
+ */
1461
+ findUniqueOrThrow<T extends CartFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CartFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CartClient<runtime.Types.Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1462
+ /**
1463
+ * Find the first Cart that matches the filter.
1464
+ * Note, that providing `undefined` is treated as the value not being there.
1465
+ * Read more here: https://pris.ly/d/null-undefined
1466
+ * @param {CartFindFirstArgs} args - Arguments to find a Cart
1467
+ * @example
1468
+ * // Get one Cart
1469
+ * const cart = await prisma.cart.findFirst({
1470
+ * where: {
1471
+ * // ... provide filter here
1472
+ * }
1473
+ * })
1474
+ */
1475
+ findFirst<T extends CartFindFirstArgs>(args?: Prisma.SelectSubset<T, CartFindFirstArgs<ExtArgs>>): Prisma.Prisma__CartClient<runtime.Types.Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1476
+ /**
1477
+ * Find the first Cart that matches the filter or
1478
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1479
+ * Note, that providing `undefined` is treated as the value not being there.
1480
+ * Read more here: https://pris.ly/d/null-undefined
1481
+ * @param {CartFindFirstOrThrowArgs} args - Arguments to find a Cart
1482
+ * @example
1483
+ * // Get one Cart
1484
+ * const cart = await prisma.cart.findFirstOrThrow({
1485
+ * where: {
1486
+ * // ... provide filter here
1487
+ * }
1488
+ * })
1489
+ */
1490
+ findFirstOrThrow<T extends CartFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CartFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CartClient<runtime.Types.Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1491
+ /**
1492
+ * Find zero or more Carts that matches the filter.
1493
+ * Note, that providing `undefined` is treated as the value not being there.
1494
+ * Read more here: https://pris.ly/d/null-undefined
1495
+ * @param {CartFindManyArgs} args - Arguments to filter and select certain fields only.
1496
+ * @example
1497
+ * // Get all Carts
1498
+ * const carts = await prisma.cart.findMany()
1499
+ *
1500
+ * // Get first 10 Carts
1501
+ * const carts = await prisma.cart.findMany({ take: 10 })
1502
+ *
1503
+ * // Only select the `id`
1504
+ * const cartWithIdOnly = await prisma.cart.findMany({ select: { id: true } })
1505
+ *
1506
+ */
1507
+ findMany<T extends CartFindManyArgs>(args?: Prisma.SelectSubset<T, CartFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1508
+ /**
1509
+ * Create a Cart.
1510
+ * @param {CartCreateArgs} args - Arguments to create a Cart.
1511
+ * @example
1512
+ * // Create one Cart
1513
+ * const Cart = await prisma.cart.create({
1514
+ * data: {
1515
+ * // ... data to create a Cart
1516
+ * }
1517
+ * })
1518
+ *
1519
+ */
1520
+ create<T extends CartCreateArgs>(args: Prisma.SelectSubset<T, CartCreateArgs<ExtArgs>>): Prisma.Prisma__CartClient<runtime.Types.Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1521
+ /**
1522
+ * Create many Carts.
1523
+ * @param {CartCreateManyArgs} args - Arguments to create many Carts.
1524
+ * @example
1525
+ * // Create many Carts
1526
+ * const cart = await prisma.cart.createMany({
1527
+ * data: [
1528
+ * // ... provide data here
1529
+ * ]
1530
+ * })
1531
+ *
1532
+ */
1533
+ createMany<T extends CartCreateManyArgs>(args?: Prisma.SelectSubset<T, CartCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1534
+ /**
1535
+ * Create many Carts and returns the data saved in the database.
1536
+ * @param {CartCreateManyAndReturnArgs} args - Arguments to create many Carts.
1537
+ * @example
1538
+ * // Create many Carts
1539
+ * const cart = await prisma.cart.createManyAndReturn({
1540
+ * data: [
1541
+ * // ... provide data here
1542
+ * ]
1543
+ * })
1544
+ *
1545
+ * // Create many Carts and only return the `id`
1546
+ * const cartWithIdOnly = await prisma.cart.createManyAndReturn({
1547
+ * select: { id: true },
1548
+ * data: [
1549
+ * // ... provide data here
1550
+ * ]
1551
+ * })
1552
+ * Note, that providing `undefined` is treated as the value not being there.
1553
+ * Read more here: https://pris.ly/d/null-undefined
1554
+ *
1555
+ */
1556
+ createManyAndReturn<T extends CartCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CartCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1557
+ /**
1558
+ * Delete a Cart.
1559
+ * @param {CartDeleteArgs} args - Arguments to delete one Cart.
1560
+ * @example
1561
+ * // Delete one Cart
1562
+ * const Cart = await prisma.cart.delete({
1563
+ * where: {
1564
+ * // ... filter to delete one Cart
1565
+ * }
1566
+ * })
1567
+ *
1568
+ */
1569
+ delete<T extends CartDeleteArgs>(args: Prisma.SelectSubset<T, CartDeleteArgs<ExtArgs>>): Prisma.Prisma__CartClient<runtime.Types.Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1570
+ /**
1571
+ * Update one Cart.
1572
+ * @param {CartUpdateArgs} args - Arguments to update one Cart.
1573
+ * @example
1574
+ * // Update one Cart
1575
+ * const cart = await prisma.cart.update({
1576
+ * where: {
1577
+ * // ... provide filter here
1578
+ * },
1579
+ * data: {
1580
+ * // ... provide data here
1581
+ * }
1582
+ * })
1583
+ *
1584
+ */
1585
+ update<T extends CartUpdateArgs>(args: Prisma.SelectSubset<T, CartUpdateArgs<ExtArgs>>): Prisma.Prisma__CartClient<runtime.Types.Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1586
+ /**
1587
+ * Delete zero or more Carts.
1588
+ * @param {CartDeleteManyArgs} args - Arguments to filter Carts to delete.
1589
+ * @example
1590
+ * // Delete a few Carts
1591
+ * const { count } = await prisma.cart.deleteMany({
1592
+ * where: {
1593
+ * // ... provide filter here
1594
+ * }
1595
+ * })
1596
+ *
1597
+ */
1598
+ deleteMany<T extends CartDeleteManyArgs>(args?: Prisma.SelectSubset<T, CartDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1599
+ /**
1600
+ * Update zero or more Carts.
1601
+ * Note, that providing `undefined` is treated as the value not being there.
1602
+ * Read more here: https://pris.ly/d/null-undefined
1603
+ * @param {CartUpdateManyArgs} args - Arguments to update one or more rows.
1604
+ * @example
1605
+ * // Update many Carts
1606
+ * const cart = await prisma.cart.updateMany({
1607
+ * where: {
1608
+ * // ... provide filter here
1609
+ * },
1610
+ * data: {
1611
+ * // ... provide data here
1612
+ * }
1613
+ * })
1614
+ *
1615
+ */
1616
+ updateMany<T extends CartUpdateManyArgs>(args: Prisma.SelectSubset<T, CartUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1617
+ /**
1618
+ * Update zero or more Carts and returns the data updated in the database.
1619
+ * @param {CartUpdateManyAndReturnArgs} args - Arguments to update many Carts.
1620
+ * @example
1621
+ * // Update many Carts
1622
+ * const cart = await prisma.cart.updateManyAndReturn({
1623
+ * where: {
1624
+ * // ... provide filter here
1625
+ * },
1626
+ * data: [
1627
+ * // ... provide data here
1628
+ * ]
1629
+ * })
1630
+ *
1631
+ * // Update zero or more Carts and only return the `id`
1632
+ * const cartWithIdOnly = await prisma.cart.updateManyAndReturn({
1633
+ * select: { id: true },
1634
+ * where: {
1635
+ * // ... provide filter here
1636
+ * },
1637
+ * data: [
1638
+ * // ... provide data here
1639
+ * ]
1640
+ * })
1641
+ * Note, that providing `undefined` is treated as the value not being there.
1642
+ * Read more here: https://pris.ly/d/null-undefined
1643
+ *
1644
+ */
1645
+ updateManyAndReturn<T extends CartUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CartUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1646
+ /**
1647
+ * Create or update one Cart.
1648
+ * @param {CartUpsertArgs} args - Arguments to update or create a Cart.
1649
+ * @example
1650
+ * // Update or create a Cart
1651
+ * const cart = await prisma.cart.upsert({
1652
+ * create: {
1653
+ * // ... data to create a Cart
1654
+ * },
1655
+ * update: {
1656
+ * // ... in case it already exists, update
1657
+ * },
1658
+ * where: {
1659
+ * // ... the filter for the Cart we want to update
1660
+ * }
1661
+ * })
1662
+ */
1663
+ upsert<T extends CartUpsertArgs>(args: Prisma.SelectSubset<T, CartUpsertArgs<ExtArgs>>): Prisma.Prisma__CartClient<runtime.Types.Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1664
+ /**
1665
+ * Count the number of Carts.
1666
+ * Note, that providing `undefined` is treated as the value not being there.
1667
+ * Read more here: https://pris.ly/d/null-undefined
1668
+ * @param {CartCountArgs} args - Arguments to filter Carts to count.
1669
+ * @example
1670
+ * // Count the number of Carts
1671
+ * const count = await prisma.cart.count({
1672
+ * where: {
1673
+ * // ... the filter for the Carts we want to count
1674
+ * }
1675
+ * })
1676
+ **/
1677
+ count<T extends CartCountArgs>(args?: Prisma.Subset<T, CartCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], CartCountAggregateOutputType> : number>;
1678
+ /**
1679
+ * Allows you to perform aggregations operations on a Cart.
1680
+ * Note, that providing `undefined` is treated as the value not being there.
1681
+ * Read more here: https://pris.ly/d/null-undefined
1682
+ * @param {CartAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1683
+ * @example
1684
+ * // Ordered by age ascending
1685
+ * // Where email contains prisma.io
1686
+ * // Limited to the 10 users
1687
+ * const aggregations = await prisma.user.aggregate({
1688
+ * _avg: {
1689
+ * age: true,
1690
+ * },
1691
+ * where: {
1692
+ * email: {
1693
+ * contains: "prisma.io",
1694
+ * },
1695
+ * },
1696
+ * orderBy: {
1697
+ * age: "asc",
1698
+ * },
1699
+ * take: 10,
1700
+ * })
1701
+ **/
1702
+ aggregate<T extends CartAggregateArgs>(args: Prisma.Subset<T, CartAggregateArgs>): Prisma.PrismaPromise<GetCartAggregateType<T>>;
1703
+ /**
1704
+ * Group by Cart.
1705
+ * Note, that providing `undefined` is treated as the value not being there.
1706
+ * Read more here: https://pris.ly/d/null-undefined
1707
+ * @param {CartGroupByArgs} args - Group by arguments.
1708
+ * @example
1709
+ * // Group by city, order by createdAt, get count
1710
+ * const result = await prisma.user.groupBy({
1711
+ * by: ['city', 'createdAt'],
1712
+ * orderBy: {
1713
+ * createdAt: true
1714
+ * },
1715
+ * _count: {
1716
+ * _all: true
1717
+ * },
1718
+ * })
1719
+ *
1720
+ **/
1721
+ groupBy<T extends CartGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1722
+ orderBy: CartGroupByArgs['orderBy'];
1723
+ } : {
1724
+ orderBy?: CartGroupByArgs['orderBy'];
1725
+ }, 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 ? {
1726
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1727
+ Error,
1728
+ 'Field ',
1729
+ P,
1730
+ ` in "having" needs to be provided in "by"`
1731
+ ];
1732
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1733
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1734
+ }[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 ? {} : {
1735
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1736
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1737
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1738
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, CartGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCartGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1739
+ /**
1740
+ * Fields of the Cart model
1741
+ */
1742
+ readonly fields: CartFieldRefs;
1743
+ }
1744
+ /**
1745
+ * The delegate class that acts as a "Promise-like" for Cart.
1746
+ * Why is this prefixed with `Prisma__`?
1747
+ * Because we want to prevent naming conflicts as mentioned in
1748
+ * https://github.com/prisma/prisma-client-js/issues/707
1749
+ */
1750
+ export interface Prisma__CartClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1751
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1752
+ customer<T extends Prisma.Cart$customerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Cart$customerArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1753
+ cartLines<T extends Prisma.Cart$cartLinesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Cart$cartLinesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CartLinePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1754
+ cost<T extends Prisma.Cart$costArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Cart$costArgs<ExtArgs>>): Prisma.Prisma__CartCostClient<runtime.Types.Result.GetResult<Prisma.$CartCostPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1755
+ checkout<T extends Prisma.Cart$checkoutArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Cart$checkoutArgs<ExtArgs>>): Prisma.Prisma__CheckoutClient<runtime.Types.Result.GetResult<Prisma.$CheckoutPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1756
+ discountCodeAppliedToCart<T extends Prisma.Cart$discountCodeAppliedToCartArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Cart$discountCodeAppliedToCartArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscountCodeAppliedToCartPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1757
+ discountCodeRedeemedOnCart<T extends Prisma.Cart$discountCodeRedeemedOnCartArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Cart$discountCodeRedeemedOnCartArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DiscountCodeRedeemedOnCartPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1758
+ /**
1759
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1760
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1761
+ * @param onrejected The callback to execute when the Promise is rejected.
1762
+ * @returns A Promise for the completion of which ever callback is executed.
1763
+ */
1764
+ 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>;
1765
+ /**
1766
+ * Attaches a callback for only the rejection of the Promise.
1767
+ * @param onrejected The callback to execute when the Promise is rejected.
1768
+ * @returns A Promise for the completion of the callback.
1769
+ */
1770
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1771
+ /**
1772
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1773
+ * resolved value cannot be modified from the callback.
1774
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1775
+ * @returns A Promise for the completion of the callback.
1776
+ */
1777
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1778
+ }
1779
+ /**
1780
+ * Fields of the Cart model
1781
+ */
1782
+ export interface CartFieldRefs {
1783
+ readonly id: Prisma.FieldRef<"Cart", 'BigInt'>;
1784
+ readonly customerId: Prisma.FieldRef<"Cart", 'BigInt'>;
1785
+ readonly platformId: Prisma.FieldRef<"Cart", 'String'>;
1786
+ readonly storeId: Prisma.FieldRef<"Cart", 'String'>;
1787
+ readonly createdAt: Prisma.FieldRef<"Cart", 'DateTime'>;
1788
+ readonly updatedAt: Prisma.FieldRef<"Cart", 'DateTime'>;
1789
+ readonly openedAt: Prisma.FieldRef<"Cart", 'DateTime'>;
1790
+ readonly active: Prisma.FieldRef<"Cart", 'Boolean'>;
1791
+ readonly closedAt: Prisma.FieldRef<"Cart", 'DateTime'>;
1792
+ readonly note: Prisma.FieldRef<"Cart", 'String'>;
1793
+ readonly currencyCode: Prisma.FieldRef<"Cart", 'CurrencyCode'>;
1794
+ readonly version: Prisma.FieldRef<"Cart", 'Int'>;
1795
+ readonly isValid: Prisma.FieldRef<"Cart", 'Boolean'>;
1796
+ readonly invalidReason: Prisma.FieldRef<"Cart", 'String'>;
1797
+ }
1798
+ /**
1799
+ * Cart findUnique
1800
+ */
1801
+ export type CartFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1802
+ /**
1803
+ * Select specific fields to fetch from the Cart
1804
+ */
1805
+ select?: Prisma.CartSelect<ExtArgs> | null;
1806
+ /**
1807
+ * Omit specific fields from the Cart
1808
+ */
1809
+ omit?: Prisma.CartOmit<ExtArgs> | null;
1810
+ /**
1811
+ * Choose, which related nodes to fetch as well
1812
+ */
1813
+ include?: Prisma.CartInclude<ExtArgs> | null;
1814
+ /**
1815
+ * Filter, which Cart to fetch.
1816
+ */
1817
+ where: Prisma.CartWhereUniqueInput;
1818
+ };
1819
+ /**
1820
+ * Cart findUniqueOrThrow
1821
+ */
1822
+ export type CartFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1823
+ /**
1824
+ * Select specific fields to fetch from the Cart
1825
+ */
1826
+ select?: Prisma.CartSelect<ExtArgs> | null;
1827
+ /**
1828
+ * Omit specific fields from the Cart
1829
+ */
1830
+ omit?: Prisma.CartOmit<ExtArgs> | null;
1831
+ /**
1832
+ * Choose, which related nodes to fetch as well
1833
+ */
1834
+ include?: Prisma.CartInclude<ExtArgs> | null;
1835
+ /**
1836
+ * Filter, which Cart to fetch.
1837
+ */
1838
+ where: Prisma.CartWhereUniqueInput;
1839
+ };
1840
+ /**
1841
+ * Cart findFirst
1842
+ */
1843
+ export type CartFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1844
+ /**
1845
+ * Select specific fields to fetch from the Cart
1846
+ */
1847
+ select?: Prisma.CartSelect<ExtArgs> | null;
1848
+ /**
1849
+ * Omit specific fields from the Cart
1850
+ */
1851
+ omit?: Prisma.CartOmit<ExtArgs> | null;
1852
+ /**
1853
+ * Choose, which related nodes to fetch as well
1854
+ */
1855
+ include?: Prisma.CartInclude<ExtArgs> | null;
1856
+ /**
1857
+ * Filter, which Cart to fetch.
1858
+ */
1859
+ where?: Prisma.CartWhereInput;
1860
+ /**
1861
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1862
+ *
1863
+ * Determine the order of Carts to fetch.
1864
+ */
1865
+ orderBy?: Prisma.CartOrderByWithRelationInput | Prisma.CartOrderByWithRelationInput[];
1866
+ /**
1867
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1868
+ *
1869
+ * Sets the position for searching for Carts.
1870
+ */
1871
+ cursor?: Prisma.CartWhereUniqueInput;
1872
+ /**
1873
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1874
+ *
1875
+ * Take `±n` Carts from the position of the cursor.
1876
+ */
1877
+ take?: number;
1878
+ /**
1879
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1880
+ *
1881
+ * Skip the first `n` Carts.
1882
+ */
1883
+ skip?: number;
1884
+ /**
1885
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1886
+ *
1887
+ * Filter by unique combinations of Carts.
1888
+ */
1889
+ distinct?: Prisma.CartScalarFieldEnum | Prisma.CartScalarFieldEnum[];
1890
+ };
1891
+ /**
1892
+ * Cart findFirstOrThrow
1893
+ */
1894
+ export type CartFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1895
+ /**
1896
+ * Select specific fields to fetch from the Cart
1897
+ */
1898
+ select?: Prisma.CartSelect<ExtArgs> | null;
1899
+ /**
1900
+ * Omit specific fields from the Cart
1901
+ */
1902
+ omit?: Prisma.CartOmit<ExtArgs> | null;
1903
+ /**
1904
+ * Choose, which related nodes to fetch as well
1905
+ */
1906
+ include?: Prisma.CartInclude<ExtArgs> | null;
1907
+ /**
1908
+ * Filter, which Cart to fetch.
1909
+ */
1910
+ where?: Prisma.CartWhereInput;
1911
+ /**
1912
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1913
+ *
1914
+ * Determine the order of Carts to fetch.
1915
+ */
1916
+ orderBy?: Prisma.CartOrderByWithRelationInput | Prisma.CartOrderByWithRelationInput[];
1917
+ /**
1918
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1919
+ *
1920
+ * Sets the position for searching for Carts.
1921
+ */
1922
+ cursor?: Prisma.CartWhereUniqueInput;
1923
+ /**
1924
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1925
+ *
1926
+ * Take `±n` Carts from the position of the cursor.
1927
+ */
1928
+ take?: number;
1929
+ /**
1930
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1931
+ *
1932
+ * Skip the first `n` Carts.
1933
+ */
1934
+ skip?: number;
1935
+ /**
1936
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1937
+ *
1938
+ * Filter by unique combinations of Carts.
1939
+ */
1940
+ distinct?: Prisma.CartScalarFieldEnum | Prisma.CartScalarFieldEnum[];
1941
+ };
1942
+ /**
1943
+ * Cart findMany
1944
+ */
1945
+ export type CartFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1946
+ /**
1947
+ * Select specific fields to fetch from the Cart
1948
+ */
1949
+ select?: Prisma.CartSelect<ExtArgs> | null;
1950
+ /**
1951
+ * Omit specific fields from the Cart
1952
+ */
1953
+ omit?: Prisma.CartOmit<ExtArgs> | null;
1954
+ /**
1955
+ * Choose, which related nodes to fetch as well
1956
+ */
1957
+ include?: Prisma.CartInclude<ExtArgs> | null;
1958
+ /**
1959
+ * Filter, which Carts to fetch.
1960
+ */
1961
+ where?: Prisma.CartWhereInput;
1962
+ /**
1963
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1964
+ *
1965
+ * Determine the order of Carts to fetch.
1966
+ */
1967
+ orderBy?: Prisma.CartOrderByWithRelationInput | Prisma.CartOrderByWithRelationInput[];
1968
+ /**
1969
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1970
+ *
1971
+ * Sets the position for listing Carts.
1972
+ */
1973
+ cursor?: Prisma.CartWhereUniqueInput;
1974
+ /**
1975
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1976
+ *
1977
+ * Take `±n` Carts from the position of the cursor.
1978
+ */
1979
+ take?: number;
1980
+ /**
1981
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1982
+ *
1983
+ * Skip the first `n` Carts.
1984
+ */
1985
+ skip?: number;
1986
+ distinct?: Prisma.CartScalarFieldEnum | Prisma.CartScalarFieldEnum[];
1987
+ };
1988
+ /**
1989
+ * Cart create
1990
+ */
1991
+ export type CartCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1992
+ /**
1993
+ * Select specific fields to fetch from the Cart
1994
+ */
1995
+ select?: Prisma.CartSelect<ExtArgs> | null;
1996
+ /**
1997
+ * Omit specific fields from the Cart
1998
+ */
1999
+ omit?: Prisma.CartOmit<ExtArgs> | null;
2000
+ /**
2001
+ * Choose, which related nodes to fetch as well
2002
+ */
2003
+ include?: Prisma.CartInclude<ExtArgs> | null;
2004
+ /**
2005
+ * The data needed to create a Cart.
2006
+ */
2007
+ data: Prisma.XOR<Prisma.CartCreateInput, Prisma.CartUncheckedCreateInput>;
2008
+ };
2009
+ /**
2010
+ * Cart createMany
2011
+ */
2012
+ export type CartCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2013
+ /**
2014
+ * The data used to create many Carts.
2015
+ */
2016
+ data: Prisma.CartCreateManyInput | Prisma.CartCreateManyInput[];
2017
+ skipDuplicates?: boolean;
2018
+ };
2019
+ /**
2020
+ * Cart createManyAndReturn
2021
+ */
2022
+ export type CartCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2023
+ /**
2024
+ * Select specific fields to fetch from the Cart
2025
+ */
2026
+ select?: Prisma.CartSelectCreateManyAndReturn<ExtArgs> | null;
2027
+ /**
2028
+ * Omit specific fields from the Cart
2029
+ */
2030
+ omit?: Prisma.CartOmit<ExtArgs> | null;
2031
+ /**
2032
+ * The data used to create many Carts.
2033
+ */
2034
+ data: Prisma.CartCreateManyInput | Prisma.CartCreateManyInput[];
2035
+ skipDuplicates?: boolean;
2036
+ /**
2037
+ * Choose, which related nodes to fetch as well
2038
+ */
2039
+ include?: Prisma.CartIncludeCreateManyAndReturn<ExtArgs> | null;
2040
+ };
2041
+ /**
2042
+ * Cart update
2043
+ */
2044
+ export type CartUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2045
+ /**
2046
+ * Select specific fields to fetch from the Cart
2047
+ */
2048
+ select?: Prisma.CartSelect<ExtArgs> | null;
2049
+ /**
2050
+ * Omit specific fields from the Cart
2051
+ */
2052
+ omit?: Prisma.CartOmit<ExtArgs> | null;
2053
+ /**
2054
+ * Choose, which related nodes to fetch as well
2055
+ */
2056
+ include?: Prisma.CartInclude<ExtArgs> | null;
2057
+ /**
2058
+ * The data needed to update a Cart.
2059
+ */
2060
+ data: Prisma.XOR<Prisma.CartUpdateInput, Prisma.CartUncheckedUpdateInput>;
2061
+ /**
2062
+ * Choose, which Cart to update.
2063
+ */
2064
+ where: Prisma.CartWhereUniqueInput;
2065
+ };
2066
+ /**
2067
+ * Cart updateMany
2068
+ */
2069
+ export type CartUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2070
+ /**
2071
+ * The data used to update Carts.
2072
+ */
2073
+ data: Prisma.XOR<Prisma.CartUpdateManyMutationInput, Prisma.CartUncheckedUpdateManyInput>;
2074
+ /**
2075
+ * Filter which Carts to update
2076
+ */
2077
+ where?: Prisma.CartWhereInput;
2078
+ /**
2079
+ * Limit how many Carts to update.
2080
+ */
2081
+ limit?: number;
2082
+ };
2083
+ /**
2084
+ * Cart updateManyAndReturn
2085
+ */
2086
+ export type CartUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2087
+ /**
2088
+ * Select specific fields to fetch from the Cart
2089
+ */
2090
+ select?: Prisma.CartSelectUpdateManyAndReturn<ExtArgs> | null;
2091
+ /**
2092
+ * Omit specific fields from the Cart
2093
+ */
2094
+ omit?: Prisma.CartOmit<ExtArgs> | null;
2095
+ /**
2096
+ * The data used to update Carts.
2097
+ */
2098
+ data: Prisma.XOR<Prisma.CartUpdateManyMutationInput, Prisma.CartUncheckedUpdateManyInput>;
2099
+ /**
2100
+ * Filter which Carts to update
2101
+ */
2102
+ where?: Prisma.CartWhereInput;
2103
+ /**
2104
+ * Limit how many Carts to update.
2105
+ */
2106
+ limit?: number;
2107
+ /**
2108
+ * Choose, which related nodes to fetch as well
2109
+ */
2110
+ include?: Prisma.CartIncludeUpdateManyAndReturn<ExtArgs> | null;
2111
+ };
2112
+ /**
2113
+ * Cart upsert
2114
+ */
2115
+ export type CartUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2116
+ /**
2117
+ * Select specific fields to fetch from the Cart
2118
+ */
2119
+ select?: Prisma.CartSelect<ExtArgs> | null;
2120
+ /**
2121
+ * Omit specific fields from the Cart
2122
+ */
2123
+ omit?: Prisma.CartOmit<ExtArgs> | null;
2124
+ /**
2125
+ * Choose, which related nodes to fetch as well
2126
+ */
2127
+ include?: Prisma.CartInclude<ExtArgs> | null;
2128
+ /**
2129
+ * The filter to search for the Cart to update in case it exists.
2130
+ */
2131
+ where: Prisma.CartWhereUniqueInput;
2132
+ /**
2133
+ * In case the Cart found by the `where` argument doesn't exist, create a new Cart with this data.
2134
+ */
2135
+ create: Prisma.XOR<Prisma.CartCreateInput, Prisma.CartUncheckedCreateInput>;
2136
+ /**
2137
+ * In case the Cart was found with the provided `where` argument, update it with this data.
2138
+ */
2139
+ update: Prisma.XOR<Prisma.CartUpdateInput, Prisma.CartUncheckedUpdateInput>;
2140
+ };
2141
+ /**
2142
+ * Cart delete
2143
+ */
2144
+ export type CartDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2145
+ /**
2146
+ * Select specific fields to fetch from the Cart
2147
+ */
2148
+ select?: Prisma.CartSelect<ExtArgs> | null;
2149
+ /**
2150
+ * Omit specific fields from the Cart
2151
+ */
2152
+ omit?: Prisma.CartOmit<ExtArgs> | null;
2153
+ /**
2154
+ * Choose, which related nodes to fetch as well
2155
+ */
2156
+ include?: Prisma.CartInclude<ExtArgs> | null;
2157
+ /**
2158
+ * Filter which Cart to delete.
2159
+ */
2160
+ where: Prisma.CartWhereUniqueInput;
2161
+ };
2162
+ /**
2163
+ * Cart deleteMany
2164
+ */
2165
+ export type CartDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2166
+ /**
2167
+ * Filter which Carts to delete
2168
+ */
2169
+ where?: Prisma.CartWhereInput;
2170
+ /**
2171
+ * Limit how many Carts to delete.
2172
+ */
2173
+ limit?: number;
2174
+ };
2175
+ /**
2176
+ * Cart.customer
2177
+ */
2178
+ export type Cart$customerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2179
+ /**
2180
+ * Select specific fields to fetch from the Customer
2181
+ */
2182
+ select?: Prisma.CustomerSelect<ExtArgs> | null;
2183
+ /**
2184
+ * Omit specific fields from the Customer
2185
+ */
2186
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
2187
+ /**
2188
+ * Choose, which related nodes to fetch as well
2189
+ */
2190
+ include?: Prisma.CustomerInclude<ExtArgs> | null;
2191
+ where?: Prisma.CustomerWhereInput;
2192
+ };
2193
+ /**
2194
+ * Cart.cartLines
2195
+ */
2196
+ export type Cart$cartLinesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2197
+ /**
2198
+ * Select specific fields to fetch from the CartLine
2199
+ */
2200
+ select?: Prisma.CartLineSelect<ExtArgs> | null;
2201
+ /**
2202
+ * Omit specific fields from the CartLine
2203
+ */
2204
+ omit?: Prisma.CartLineOmit<ExtArgs> | null;
2205
+ /**
2206
+ * Choose, which related nodes to fetch as well
2207
+ */
2208
+ include?: Prisma.CartLineInclude<ExtArgs> | null;
2209
+ where?: Prisma.CartLineWhereInput;
2210
+ orderBy?: Prisma.CartLineOrderByWithRelationInput | Prisma.CartLineOrderByWithRelationInput[];
2211
+ cursor?: Prisma.CartLineWhereUniqueInput;
2212
+ take?: number;
2213
+ skip?: number;
2214
+ distinct?: Prisma.CartLineScalarFieldEnum | Prisma.CartLineScalarFieldEnum[];
2215
+ };
2216
+ /**
2217
+ * Cart.cost
2218
+ */
2219
+ export type Cart$costArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2220
+ /**
2221
+ * Select specific fields to fetch from the CartCost
2222
+ */
2223
+ select?: Prisma.CartCostSelect<ExtArgs> | null;
2224
+ /**
2225
+ * Omit specific fields from the CartCost
2226
+ */
2227
+ omit?: Prisma.CartCostOmit<ExtArgs> | null;
2228
+ /**
2229
+ * Choose, which related nodes to fetch as well
2230
+ */
2231
+ include?: Prisma.CartCostInclude<ExtArgs> | null;
2232
+ where?: Prisma.CartCostWhereInput;
2233
+ };
2234
+ /**
2235
+ * Cart.checkout
2236
+ */
2237
+ export type Cart$checkoutArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2238
+ /**
2239
+ * Select specific fields to fetch from the Checkout
2240
+ */
2241
+ select?: Prisma.CheckoutSelect<ExtArgs> | null;
2242
+ /**
2243
+ * Omit specific fields from the Checkout
2244
+ */
2245
+ omit?: Prisma.CheckoutOmit<ExtArgs> | null;
2246
+ /**
2247
+ * Choose, which related nodes to fetch as well
2248
+ */
2249
+ include?: Prisma.CheckoutInclude<ExtArgs> | null;
2250
+ where?: Prisma.CheckoutWhereInput;
2251
+ };
2252
+ /**
2253
+ * Cart.discountCodeAppliedToCart
2254
+ */
2255
+ export type Cart$discountCodeAppliedToCartArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2256
+ /**
2257
+ * Select specific fields to fetch from the DiscountCodeAppliedToCart
2258
+ */
2259
+ select?: Prisma.DiscountCodeAppliedToCartSelect<ExtArgs> | null;
2260
+ /**
2261
+ * Omit specific fields from the DiscountCodeAppliedToCart
2262
+ */
2263
+ omit?: Prisma.DiscountCodeAppliedToCartOmit<ExtArgs> | null;
2264
+ /**
2265
+ * Choose, which related nodes to fetch as well
2266
+ */
2267
+ include?: Prisma.DiscountCodeAppliedToCartInclude<ExtArgs> | null;
2268
+ where?: Prisma.DiscountCodeAppliedToCartWhereInput;
2269
+ orderBy?: Prisma.DiscountCodeAppliedToCartOrderByWithRelationInput | Prisma.DiscountCodeAppliedToCartOrderByWithRelationInput[];
2270
+ cursor?: Prisma.DiscountCodeAppliedToCartWhereUniqueInput;
2271
+ take?: number;
2272
+ skip?: number;
2273
+ distinct?: Prisma.DiscountCodeAppliedToCartScalarFieldEnum | Prisma.DiscountCodeAppliedToCartScalarFieldEnum[];
2274
+ };
2275
+ /**
2276
+ * Cart.discountCodeRedeemedOnCart
2277
+ */
2278
+ export type Cart$discountCodeRedeemedOnCartArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2279
+ /**
2280
+ * Select specific fields to fetch from the DiscountCodeRedeemedOnCart
2281
+ */
2282
+ select?: Prisma.DiscountCodeRedeemedOnCartSelect<ExtArgs> | null;
2283
+ /**
2284
+ * Omit specific fields from the DiscountCodeRedeemedOnCart
2285
+ */
2286
+ omit?: Prisma.DiscountCodeRedeemedOnCartOmit<ExtArgs> | null;
2287
+ /**
2288
+ * Choose, which related nodes to fetch as well
2289
+ */
2290
+ include?: Prisma.DiscountCodeRedeemedOnCartInclude<ExtArgs> | null;
2291
+ where?: Prisma.DiscountCodeRedeemedOnCartWhereInput;
2292
+ orderBy?: Prisma.DiscountCodeRedeemedOnCartOrderByWithRelationInput | Prisma.DiscountCodeRedeemedOnCartOrderByWithRelationInput[];
2293
+ cursor?: Prisma.DiscountCodeRedeemedOnCartWhereUniqueInput;
2294
+ take?: number;
2295
+ skip?: number;
2296
+ distinct?: Prisma.DiscountCodeRedeemedOnCartScalarFieldEnum | Prisma.DiscountCodeRedeemedOnCartScalarFieldEnum[];
2297
+ };
2298
+ /**
2299
+ * Cart without action
2300
+ */
2301
+ export type CartDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2302
+ /**
2303
+ * Select specific fields to fetch from the Cart
2304
+ */
2305
+ select?: Prisma.CartSelect<ExtArgs> | null;
2306
+ /**
2307
+ * Omit specific fields from the Cart
2308
+ */
2309
+ omit?: Prisma.CartOmit<ExtArgs> | null;
2310
+ /**
2311
+ * Choose, which related nodes to fetch as well
2312
+ */
2313
+ include?: Prisma.CartInclude<ExtArgs> | null;
2314
+ };
2315
+ export {};