@commercejs/platform 0.1.0

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 (402) hide show
  1. package/README.md +156 -0
  2. package/dist/__tests__/platform.drizzle.test.d.ts +2 -0
  3. package/dist/__tests__/platform.drizzle.test.d.ts.map +1 -0
  4. package/dist/__tests__/platform.drizzle.test.js +27 -0
  5. package/dist/__tests__/platform.drizzle.test.js.map +1 -0
  6. package/dist/__tests__/platform.prisma.test.d.ts +2 -0
  7. package/dist/__tests__/platform.prisma.test.d.ts.map +1 -0
  8. package/dist/__tests__/platform.prisma.test.js +27 -0
  9. package/dist/__tests__/platform.prisma.test.js.map +1 -0
  10. package/dist/__tests__/platform.suite.d.ts +8 -0
  11. package/dist/__tests__/platform.suite.d.ts.map +1 -0
  12. package/dist/__tests__/platform.suite.js +406 -0
  13. package/dist/__tests__/platform.suite.js.map +1 -0
  14. package/dist/adapter.d.ts +20 -0
  15. package/dist/adapter.d.ts.map +1 -0
  16. package/dist/adapter.js +122 -0
  17. package/dist/adapter.js.map +1 -0
  18. package/dist/database/drizzle/client.d.ts +13 -0
  19. package/dist/database/drizzle/client.d.ts.map +1 -0
  20. package/dist/database/drizzle/client.js +29 -0
  21. package/dist/database/drizzle/client.js.map +1 -0
  22. package/dist/database/drizzle/index.d.ts +5 -0
  23. package/dist/database/drizzle/index.d.ts.map +1 -0
  24. package/dist/database/drizzle/index.js +7 -0
  25. package/dist/database/drizzle/index.js.map +1 -0
  26. package/dist/database/drizzle/migrate.d.ts +9 -0
  27. package/dist/database/drizzle/migrate.d.ts.map +1 -0
  28. package/dist/database/drizzle/migrate.js +317 -0
  29. package/dist/database/drizzle/migrate.js.map +1 -0
  30. package/dist/database/drizzle/queries/brands.d.ts +26 -0
  31. package/dist/database/drizzle/queries/brands.d.ts.map +1 -0
  32. package/dist/database/drizzle/queries/brands.js +19 -0
  33. package/dist/database/drizzle/queries/brands.js.map +1 -0
  34. package/dist/database/drizzle/queries/cart.d.ts +61 -0
  35. package/dist/database/drizzle/queries/cart.d.ts.map +1 -0
  36. package/dist/database/drizzle/queries/cart.js +57 -0
  37. package/dist/database/drizzle/queries/cart.js.map +1 -0
  38. package/dist/database/drizzle/queries/catalog.d.ts +149 -0
  39. package/dist/database/drizzle/queries/catalog.d.ts.map +1 -0
  40. package/dist/database/drizzle/queries/catalog.js +88 -0
  41. package/dist/database/drizzle/queries/catalog.js.map +1 -0
  42. package/dist/database/drizzle/queries/countries.d.ts +22 -0
  43. package/dist/database/drizzle/queries/countries.d.ts.map +1 -0
  44. package/dist/database/drizzle/queries/countries.js +19 -0
  45. package/dist/database/drizzle/queries/countries.js.map +1 -0
  46. package/dist/database/drizzle/queries/customers.d.ts +87 -0
  47. package/dist/database/drizzle/queries/customers.d.ts.map +1 -0
  48. package/dist/database/drizzle/queries/customers.js +41 -0
  49. package/dist/database/drizzle/queries/customers.js.map +1 -0
  50. package/dist/database/drizzle/queries/index.d.ts +12 -0
  51. package/dist/database/drizzle/queries/index.d.ts.map +1 -0
  52. package/dist/database/drizzle/queries/index.js +28 -0
  53. package/dist/database/drizzle/queries/index.js.map +1 -0
  54. package/dist/database/drizzle/queries/orders.d.ts +74 -0
  55. package/dist/database/drizzle/queries/orders.d.ts.map +1 -0
  56. package/dist/database/drizzle/queries/orders.js +39 -0
  57. package/dist/database/drizzle/queries/orders.js.map +1 -0
  58. package/dist/database/drizzle/queries/promotions.d.ts +61 -0
  59. package/dist/database/drizzle/queries/promotions.d.ts.map +1 -0
  60. package/dist/database/drizzle/queries/promotions.js +39 -0
  61. package/dist/database/drizzle/queries/promotions.js.map +1 -0
  62. package/dist/database/drizzle/queries/returns.d.ts +62 -0
  63. package/dist/database/drizzle/queries/returns.d.ts.map +1 -0
  64. package/dist/database/drizzle/queries/returns.js +58 -0
  65. package/dist/database/drizzle/queries/returns.js.map +1 -0
  66. package/dist/database/drizzle/queries/reviews.d.ts +25 -0
  67. package/dist/database/drizzle/queries/reviews.d.ts.map +1 -0
  68. package/dist/database/drizzle/queries/reviews.js +57 -0
  69. package/dist/database/drizzle/queries/reviews.js.map +1 -0
  70. package/dist/database/drizzle/queries/store.d.ts +22 -0
  71. package/dist/database/drizzle/queries/store.d.ts.map +1 -0
  72. package/dist/database/drizzle/queries/store.js +14 -0
  73. package/dist/database/drizzle/queries/store.js.map +1 -0
  74. package/dist/database/drizzle/queries/wishlists.d.ts +31 -0
  75. package/dist/database/drizzle/queries/wishlists.d.ts.map +1 -0
  76. package/dist/database/drizzle/queries/wishlists.js +44 -0
  77. package/dist/database/drizzle/queries/wishlists.js.map +1 -0
  78. package/dist/database/drizzle/schema/brands.d.ts +196 -0
  79. package/dist/database/drizzle/schema/brands.d.ts.map +1 -0
  80. package/dist/database/drizzle/schema/brands.js +17 -0
  81. package/dist/database/drizzle/schema/brands.js.map +1 -0
  82. package/dist/database/drizzle/schema/carts.d.ts +294 -0
  83. package/dist/database/drizzle/schema/carts.d.ts.map +1 -0
  84. package/dist/database/drizzle/schema/carts.js +28 -0
  85. package/dist/database/drizzle/schema/carts.js.map +1 -0
  86. package/dist/database/drizzle/schema/categories.d.ts +215 -0
  87. package/dist/database/drizzle/schema/categories.d.ts.map +1 -0
  88. package/dist/database/drizzle/schema/categories.js +18 -0
  89. package/dist/database/drizzle/schema/categories.js.map +1 -0
  90. package/dist/database/drizzle/schema/countries.d.ts +158 -0
  91. package/dist/database/drizzle/schema/countries.d.ts.map +1 -0
  92. package/dist/database/drizzle/schema/countries.js +15 -0
  93. package/dist/database/drizzle/schema/countries.js.map +1 -0
  94. package/dist/database/drizzle/schema/customers.d.ts +469 -0
  95. package/dist/database/drizzle/schema/customers.d.ts.map +1 -0
  96. package/dist/database/drizzle/schema/customers.js +33 -0
  97. package/dist/database/drizzle/schema/customers.js.map +1 -0
  98. package/dist/database/drizzle/schema/index.d.ts +13 -0
  99. package/dist/database/drizzle/schema/index.d.ts.map +1 -0
  100. package/dist/database/drizzle/schema/index.js +16 -0
  101. package/dist/database/drizzle/schema/index.js.map +1 -0
  102. package/dist/database/drizzle/schema/orders.d.ts +722 -0
  103. package/dist/database/drizzle/schema/orders.d.ts.map +1 -0
  104. package/dist/database/drizzle/schema/orders.js +63 -0
  105. package/dist/database/drizzle/schema/orders.js.map +1 -0
  106. package/dist/database/drizzle/schema/products.d.ts +1180 -0
  107. package/dist/database/drizzle/schema/products.d.ts.map +1 -0
  108. package/dist/database/drizzle/schema/products.js +99 -0
  109. package/dist/database/drizzle/schema/products.js.map +1 -0
  110. package/dist/database/drizzle/schema/promotions.d.ts +474 -0
  111. package/dist/database/drizzle/schema/promotions.d.ts.map +1 -0
  112. package/dist/database/drizzle/schema/promotions.js +34 -0
  113. package/dist/database/drizzle/schema/promotions.js.map +1 -0
  114. package/dist/database/drizzle/schema/returns.d.ts +467 -0
  115. package/dist/database/drizzle/schema/returns.d.ts.map +1 -0
  116. package/dist/database/drizzle/schema/returns.js +34 -0
  117. package/dist/database/drizzle/schema/returns.js.map +1 -0
  118. package/dist/database/drizzle/schema/reviews.d.ts +175 -0
  119. package/dist/database/drizzle/schema/reviews.d.ts.map +1 -0
  120. package/dist/database/drizzle/schema/reviews.js +17 -0
  121. package/dist/database/drizzle/schema/reviews.js.map +1 -0
  122. package/dist/database/drizzle/schema/store.d.ts +350 -0
  123. package/dist/database/drizzle/schema/store.d.ts.map +1 -0
  124. package/dist/database/drizzle/schema/store.js +25 -0
  125. package/dist/database/drizzle/schema/store.js.map +1 -0
  126. package/dist/database/drizzle/schema/wishlists.d.ts +167 -0
  127. package/dist/database/drizzle/schema/wishlists.d.ts.map +1 -0
  128. package/dist/database/drizzle/schema/wishlists.js +19 -0
  129. package/dist/database/drizzle/schema/wishlists.js.map +1 -0
  130. package/dist/database/drizzle/seed.d.ts +6 -0
  131. package/dist/database/drizzle/seed.d.ts.map +1 -0
  132. package/dist/database/drizzle/seed.js +166 -0
  133. package/dist/database/drizzle/seed.js.map +1 -0
  134. package/dist/database/index.d.ts +8 -0
  135. package/dist/database/index.d.ts.map +1 -0
  136. package/dist/database/index.js +12 -0
  137. package/dist/database/index.js.map +1 -0
  138. package/dist/database/prisma/client.d.ts +13 -0
  139. package/dist/database/prisma/client.d.ts.map +1 -0
  140. package/dist/database/prisma/client.js +25 -0
  141. package/dist/database/prisma/client.js.map +1 -0
  142. package/dist/database/prisma/generated/browser.d.ts +135 -0
  143. package/dist/database/prisma/generated/browser.d.ts.map +1 -0
  144. package/dist/database/prisma/generated/browser.js +18 -0
  145. package/dist/database/prisma/generated/browser.js.map +1 -0
  146. package/dist/database/prisma/generated/client.d.ts +152 -0
  147. package/dist/database/prisma/generated/client.d.ts.map +1 -0
  148. package/dist/database/prisma/generated/client.js +33 -0
  149. package/dist/database/prisma/generated/client.js.map +1 -0
  150. package/dist/database/prisma/generated/commonInputTypes.d.ts +344 -0
  151. package/dist/database/prisma/generated/commonInputTypes.d.ts.map +1 -0
  152. package/dist/database/prisma/generated/commonInputTypes.js +11 -0
  153. package/dist/database/prisma/generated/commonInputTypes.js.map +1 -0
  154. package/dist/database/prisma/generated/enums.d.ts +2 -0
  155. package/dist/database/prisma/generated/enums.d.ts.map +1 -0
  156. package/dist/database/prisma/generated/enums.js +11 -0
  157. package/dist/database/prisma/generated/enums.js.map +1 -0
  158. package/dist/database/prisma/generated/internal/class.d.ts +402 -0
  159. package/dist/database/prisma/generated/internal/class.d.ts.map +1 -0
  160. package/dist/database/prisma/generated/internal/class.js +42 -0
  161. package/dist/database/prisma/generated/internal/class.js.map +1 -0
  162. package/dist/database/prisma/generated/internal/prismaNamespace.d.ts +2735 -0
  163. package/dist/database/prisma/generated/internal/prismaNamespace.d.ts.map +1 -0
  164. package/dist/database/prisma/generated/internal/prismaNamespace.js +415 -0
  165. package/dist/database/prisma/generated/internal/prismaNamespace.js.map +1 -0
  166. package/dist/database/prisma/generated/internal/prismaNamespaceBrowser.d.ts +400 -0
  167. package/dist/database/prisma/generated/internal/prismaNamespaceBrowser.d.ts.map +1 -0
  168. package/dist/database/prisma/generated/internal/prismaNamespaceBrowser.js +386 -0
  169. package/dist/database/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -0
  170. package/dist/database/prisma/generated/models/Brand.d.ts +1141 -0
  171. package/dist/database/prisma/generated/models/Brand.d.ts.map +1 -0
  172. package/dist/database/prisma/generated/models/Brand.js +2 -0
  173. package/dist/database/prisma/generated/models/Brand.js.map +1 -0
  174. package/dist/database/prisma/generated/models/Cart.d.ts +1464 -0
  175. package/dist/database/prisma/generated/models/Cart.d.ts.map +1 -0
  176. package/dist/database/prisma/generated/models/Cart.js +2 -0
  177. package/dist/database/prisma/generated/models/Cart.js.map +1 -0
  178. package/dist/database/prisma/generated/models/CartItem.d.ts +1487 -0
  179. package/dist/database/prisma/generated/models/CartItem.d.ts.map +1 -0
  180. package/dist/database/prisma/generated/models/CartItem.js +2 -0
  181. package/dist/database/prisma/generated/models/CartItem.js.map +1 -0
  182. package/dist/database/prisma/generated/models/Category.d.ts +1717 -0
  183. package/dist/database/prisma/generated/models/Category.d.ts.map +1 -0
  184. package/dist/database/prisma/generated/models/Category.js +2 -0
  185. package/dist/database/prisma/generated/models/Category.js.map +1 -0
  186. package/dist/database/prisma/generated/models/Country.d.ts +1076 -0
  187. package/dist/database/prisma/generated/models/Country.d.ts.map +1 -0
  188. package/dist/database/prisma/generated/models/Country.js +2 -0
  189. package/dist/database/prisma/generated/models/Country.js.map +1 -0
  190. package/dist/database/prisma/generated/models/Coupon.d.ts +1242 -0
  191. package/dist/database/prisma/generated/models/Coupon.d.ts.map +1 -0
  192. package/dist/database/prisma/generated/models/Coupon.js +2 -0
  193. package/dist/database/prisma/generated/models/Coupon.js.map +1 -0
  194. package/dist/database/prisma/generated/models/Customer.d.ts +1536 -0
  195. package/dist/database/prisma/generated/models/Customer.d.ts.map +1 -0
  196. package/dist/database/prisma/generated/models/Customer.js +2 -0
  197. package/dist/database/prisma/generated/models/Customer.js.map +1 -0
  198. package/dist/database/prisma/generated/models/CustomerAddress.d.ts +1519 -0
  199. package/dist/database/prisma/generated/models/CustomerAddress.d.ts.map +1 -0
  200. package/dist/database/prisma/generated/models/CustomerAddress.js +2 -0
  201. package/dist/database/prisma/generated/models/CustomerAddress.js.map +1 -0
  202. package/dist/database/prisma/generated/models/Order.d.ts +2136 -0
  203. package/dist/database/prisma/generated/models/Order.d.ts.map +1 -0
  204. package/dist/database/prisma/generated/models/Order.js +2 -0
  205. package/dist/database/prisma/generated/models/Order.js.map +1 -0
  206. package/dist/database/prisma/generated/models/OrderHistory.d.ts +1204 -0
  207. package/dist/database/prisma/generated/models/OrderHistory.d.ts.map +1 -0
  208. package/dist/database/prisma/generated/models/OrderHistory.js +2 -0
  209. package/dist/database/prisma/generated/models/OrderHistory.js.map +1 -0
  210. package/dist/database/prisma/generated/models/OrderItem.d.ts +1464 -0
  211. package/dist/database/prisma/generated/models/OrderItem.d.ts.map +1 -0
  212. package/dist/database/prisma/generated/models/OrderItem.js +2 -0
  213. package/dist/database/prisma/generated/models/OrderItem.js.map +1 -0
  214. package/dist/database/prisma/generated/models/Product.d.ts +2969 -0
  215. package/dist/database/prisma/generated/models/Product.d.ts.map +1 -0
  216. package/dist/database/prisma/generated/models/Product.js +2 -0
  217. package/dist/database/prisma/generated/models/Product.js.map +1 -0
  218. package/dist/database/prisma/generated/models/ProductAttribute.d.ts +1239 -0
  219. package/dist/database/prisma/generated/models/ProductAttribute.d.ts.map +1 -0
  220. package/dist/database/prisma/generated/models/ProductAttribute.js +2 -0
  221. package/dist/database/prisma/generated/models/ProductAttribute.js.map +1 -0
  222. package/dist/database/prisma/generated/models/ProductCategory.d.ts +1154 -0
  223. package/dist/database/prisma/generated/models/ProductCategory.d.ts.map +1 -0
  224. package/dist/database/prisma/generated/models/ProductCategory.js +2 -0
  225. package/dist/database/prisma/generated/models/ProductCategory.js.map +1 -0
  226. package/dist/database/prisma/generated/models/ProductImage.d.ts +1242 -0
  227. package/dist/database/prisma/generated/models/ProductImage.d.ts.map +1 -0
  228. package/dist/database/prisma/generated/models/ProductImage.js +2 -0
  229. package/dist/database/prisma/generated/models/ProductImage.js.map +1 -0
  230. package/dist/database/prisma/generated/models/ProductOption.d.ts +1328 -0
  231. package/dist/database/prisma/generated/models/ProductOption.d.ts.map +1 -0
  232. package/dist/database/prisma/generated/models/ProductOption.js +2 -0
  233. package/dist/database/prisma/generated/models/ProductOption.js.map +1 -0
  234. package/dist/database/prisma/generated/models/ProductOptionValue.d.ts +1207 -0
  235. package/dist/database/prisma/generated/models/ProductOptionValue.d.ts.map +1 -0
  236. package/dist/database/prisma/generated/models/ProductOptionValue.js +2 -0
  237. package/dist/database/prisma/generated/models/ProductOptionValue.js.map +1 -0
  238. package/dist/database/prisma/generated/models/ProductTag.d.ts +1099 -0
  239. package/dist/database/prisma/generated/models/ProductTag.d.ts.map +1 -0
  240. package/dist/database/prisma/generated/models/ProductTag.js +2 -0
  241. package/dist/database/prisma/generated/models/ProductTag.js.map +1 -0
  242. package/dist/database/prisma/generated/models/ProductVariant.d.ts +1543 -0
  243. package/dist/database/prisma/generated/models/ProductVariant.d.ts.map +1 -0
  244. package/dist/database/prisma/generated/models/ProductVariant.js +2 -0
  245. package/dist/database/prisma/generated/models/ProductVariant.js.map +1 -0
  246. package/dist/database/prisma/generated/models/Promotion.d.ts +1658 -0
  247. package/dist/database/prisma/generated/models/Promotion.d.ts.map +1 -0
  248. package/dist/database/prisma/generated/models/Promotion.js +2 -0
  249. package/dist/database/prisma/generated/models/Promotion.js.map +1 -0
  250. package/dist/database/prisma/generated/models/Return.d.ts +1448 -0
  251. package/dist/database/prisma/generated/models/Return.d.ts.map +1 -0
  252. package/dist/database/prisma/generated/models/Return.js +2 -0
  253. package/dist/database/prisma/generated/models/Return.js.map +1 -0
  254. package/dist/database/prisma/generated/models/ReturnItem.d.ts +1417 -0
  255. package/dist/database/prisma/generated/models/ReturnItem.d.ts.map +1 -0
  256. package/dist/database/prisma/generated/models/ReturnItem.js +2 -0
  257. package/dist/database/prisma/generated/models/ReturnItem.js.map +1 -0
  258. package/dist/database/prisma/generated/models/Review.d.ts +1142 -0
  259. package/dist/database/prisma/generated/models/Review.d.ts.map +1 -0
  260. package/dist/database/prisma/generated/models/Review.js +2 -0
  261. package/dist/database/prisma/generated/models/Review.js.map +1 -0
  262. package/dist/database/prisma/generated/models/StoreInfo.d.ts +1356 -0
  263. package/dist/database/prisma/generated/models/StoreInfo.d.ts.map +1 -0
  264. package/dist/database/prisma/generated/models/StoreInfo.js +2 -0
  265. package/dist/database/prisma/generated/models/StoreInfo.js.map +1 -0
  266. package/dist/database/prisma/generated/models/Wishlist.d.ts +1090 -0
  267. package/dist/database/prisma/generated/models/Wishlist.d.ts.map +1 -0
  268. package/dist/database/prisma/generated/models/Wishlist.js +2 -0
  269. package/dist/database/prisma/generated/models/Wishlist.js.map +1 -0
  270. package/dist/database/prisma/generated/models/WishlistItem.d.ts +1169 -0
  271. package/dist/database/prisma/generated/models/WishlistItem.d.ts.map +1 -0
  272. package/dist/database/prisma/generated/models/WishlistItem.js +2 -0
  273. package/dist/database/prisma/generated/models/WishlistItem.js.map +1 -0
  274. package/dist/database/prisma/generated/models.d.ts +28 -0
  275. package/dist/database/prisma/generated/models.d.ts.map +1 -0
  276. package/dist/database/prisma/generated/models.js +2 -0
  277. package/dist/database/prisma/generated/models.js.map +1 -0
  278. package/dist/database/prisma/index.d.ts +5 -0
  279. package/dist/database/prisma/index.d.ts.map +1 -0
  280. package/dist/database/prisma/index.js +7 -0
  281. package/dist/database/prisma/index.js.map +1 -0
  282. package/dist/database/prisma/migrate.d.ts +8 -0
  283. package/dist/database/prisma/migrate.d.ts.map +1 -0
  284. package/dist/database/prisma/migrate.js +323 -0
  285. package/dist/database/prisma/migrate.js.map +1 -0
  286. package/dist/database/prisma/queries/brands.d.ts +26 -0
  287. package/dist/database/prisma/queries/brands.d.ts.map +1 -0
  288. package/dist/database/prisma/queries/brands.js +17 -0
  289. package/dist/database/prisma/queries/brands.js.map +1 -0
  290. package/dist/database/prisma/queries/cart.d.ts +61 -0
  291. package/dist/database/prisma/queries/cart.d.ts.map +1 -0
  292. package/dist/database/prisma/queries/cart.js +68 -0
  293. package/dist/database/prisma/queries/cart.js.map +1 -0
  294. package/dist/database/prisma/queries/catalog.d.ts +149 -0
  295. package/dist/database/prisma/queries/catalog.d.ts.map +1 -0
  296. package/dist/database/prisma/queries/catalog.js +94 -0
  297. package/dist/database/prisma/queries/catalog.js.map +1 -0
  298. package/dist/database/prisma/queries/countries.d.ts +22 -0
  299. package/dist/database/prisma/queries/countries.d.ts.map +1 -0
  300. package/dist/database/prisma/queries/countries.js +17 -0
  301. package/dist/database/prisma/queries/countries.js.map +1 -0
  302. package/dist/database/prisma/queries/customers.d.ts +87 -0
  303. package/dist/database/prisma/queries/customers.d.ts.map +1 -0
  304. package/dist/database/prisma/queries/customers.js +32 -0
  305. package/dist/database/prisma/queries/customers.js.map +1 -0
  306. package/dist/database/prisma/queries/index.d.ts +12 -0
  307. package/dist/database/prisma/queries/index.d.ts.map +1 -0
  308. package/dist/database/prisma/queries/index.js +28 -0
  309. package/dist/database/prisma/queries/index.js.map +1 -0
  310. package/dist/database/prisma/queries/orders.d.ts +74 -0
  311. package/dist/database/prisma/queries/orders.d.ts.map +1 -0
  312. package/dist/database/prisma/queries/orders.js +49 -0
  313. package/dist/database/prisma/queries/orders.js.map +1 -0
  314. package/dist/database/prisma/queries/promotions.d.ts +81 -0
  315. package/dist/database/prisma/queries/promotions.d.ts.map +1 -0
  316. package/dist/database/prisma/queries/promotions.js +31 -0
  317. package/dist/database/prisma/queries/promotions.js.map +1 -0
  318. package/dist/database/prisma/queries/returns.d.ts +102 -0
  319. package/dist/database/prisma/queries/returns.d.ts.map +1 -0
  320. package/dist/database/prisma/queries/returns.js +50 -0
  321. package/dist/database/prisma/queries/returns.js.map +1 -0
  322. package/dist/database/prisma/queries/reviews.d.ts +25 -0
  323. package/dist/database/prisma/queries/reviews.d.ts.map +1 -0
  324. package/dist/database/prisma/queries/reviews.js +50 -0
  325. package/dist/database/prisma/queries/reviews.js.map +1 -0
  326. package/dist/database/prisma/queries/store.d.ts +22 -0
  327. package/dist/database/prisma/queries/store.d.ts.map +1 -0
  328. package/dist/database/prisma/queries/store.js +31 -0
  329. package/dist/database/prisma/queries/store.js.map +1 -0
  330. package/dist/database/prisma/queries/wishlists.d.ts +37 -0
  331. package/dist/database/prisma/queries/wishlists.d.ts.map +1 -0
  332. package/dist/database/prisma/queries/wishlists.js +37 -0
  333. package/dist/database/prisma/queries/wishlists.js.map +1 -0
  334. package/dist/database/prisma/seed.d.ts +5 -0
  335. package/dist/database/prisma/seed.d.ts.map +1 -0
  336. package/dist/database/prisma/seed.js +127 -0
  337. package/dist/database/prisma/seed.js.map +1 -0
  338. package/dist/domains/brands.d.ts +5 -0
  339. package/dist/domains/brands.d.ts.map +1 -0
  340. package/dist/domains/brands.js +21 -0
  341. package/dist/domains/brands.js.map +1 -0
  342. package/dist/domains/cart.d.ts +11 -0
  343. package/dist/domains/cart.d.ts.map +1 -0
  344. package/dist/domains/cart.js +110 -0
  345. package/dist/domains/cart.js.map +1 -0
  346. package/dist/domains/catalog.d.ts +7 -0
  347. package/dist/domains/catalog.d.ts.map +1 -0
  348. package/dist/domains/catalog.js +157 -0
  349. package/dist/domains/catalog.js.map +1 -0
  350. package/dist/domains/checkout.d.ts +11 -0
  351. package/dist/domains/checkout.d.ts.map +1 -0
  352. package/dist/domains/checkout.js +174 -0
  353. package/dist/domains/checkout.js.map +1 -0
  354. package/dist/domains/countries.d.ts +5 -0
  355. package/dist/domains/countries.d.ts.map +1 -0
  356. package/dist/domains/countries.js +21 -0
  357. package/dist/domains/countries.js.map +1 -0
  358. package/dist/domains/customers.d.ts +17 -0
  359. package/dist/domains/customers.d.ts.map +1 -0
  360. package/dist/domains/customers.js +179 -0
  361. package/dist/domains/customers.js.map +1 -0
  362. package/dist/domains/helpers.d.ts +14 -0
  363. package/dist/domains/helpers.d.ts.map +1 -0
  364. package/dist/domains/helpers.js +46 -0
  365. package/dist/domains/helpers.js.map +1 -0
  366. package/dist/domains/not-supported.d.ts +31 -0
  367. package/dist/domains/not-supported.d.ts.map +1 -0
  368. package/dist/domains/not-supported.js +43 -0
  369. package/dist/domains/not-supported.js.map +1 -0
  370. package/dist/domains/orders.d.ts +12 -0
  371. package/dist/domains/orders.d.ts.map +1 -0
  372. package/dist/domains/orders.js +184 -0
  373. package/dist/domains/orders.js.map +1 -0
  374. package/dist/domains/promotions.d.ts +6 -0
  375. package/dist/domains/promotions.d.ts.map +1 -0
  376. package/dist/domains/promotions.js +56 -0
  377. package/dist/domains/promotions.js.map +1 -0
  378. package/dist/domains/returns.d.ts +15 -0
  379. package/dist/domains/returns.d.ts.map +1 -0
  380. package/dist/domains/returns.js +83 -0
  381. package/dist/domains/returns.js.map +1 -0
  382. package/dist/domains/reviews.d.ts +16 -0
  383. package/dist/domains/reviews.d.ts.map +1 -0
  384. package/dist/domains/reviews.js +60 -0
  385. package/dist/domains/reviews.js.map +1 -0
  386. package/dist/domains/store.d.ts +5 -0
  387. package/dist/domains/store.d.ts.map +1 -0
  388. package/dist/domains/store.js +45 -0
  389. package/dist/domains/store.js.map +1 -0
  390. package/dist/domains/wishlist.d.ts +9 -0
  391. package/dist/domains/wishlist.d.ts.map +1 -0
  392. package/dist/domains/wishlist.js +76 -0
  393. package/dist/domains/wishlist.js.map +1 -0
  394. package/dist/index.d.ts +9 -0
  395. package/dist/index.d.ts.map +1 -0
  396. package/dist/index.js +15 -0
  397. package/dist/index.js.map +1 -0
  398. package/dist/types.d.ts +8 -0
  399. package/dist/types.d.ts.map +1 -0
  400. package/dist/types.js +5 -0
  401. package/dist/types.js.map +1 -0
  402. package/package.json +49 -0
@@ -0,0 +1,1536 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Customer
5
+ *
6
+ */
7
+ export type CustomerModel = runtime.Types.Result.DefaultSelection<Prisma.$CustomerPayload>;
8
+ export type AggregateCustomer = {
9
+ _count: CustomerCountAggregateOutputType | null;
10
+ _min: CustomerMinAggregateOutputType | null;
11
+ _max: CustomerMaxAggregateOutputType | null;
12
+ };
13
+ export type CustomerMinAggregateOutputType = {
14
+ id: string | null;
15
+ email: string | null;
16
+ passwordHash: string | null;
17
+ firstName: string | null;
18
+ lastName: string | null;
19
+ phone: string | null;
20
+ defaultAddressId: string | null;
21
+ createdAt: string | null;
22
+ updatedAt: string | null;
23
+ };
24
+ export type CustomerMaxAggregateOutputType = {
25
+ id: string | null;
26
+ email: string | null;
27
+ passwordHash: string | null;
28
+ firstName: string | null;
29
+ lastName: string | null;
30
+ phone: string | null;
31
+ defaultAddressId: string | null;
32
+ createdAt: string | null;
33
+ updatedAt: string | null;
34
+ };
35
+ export type CustomerCountAggregateOutputType = {
36
+ id: number;
37
+ email: number;
38
+ passwordHash: number;
39
+ firstName: number;
40
+ lastName: number;
41
+ phone: number;
42
+ defaultAddressId: number;
43
+ createdAt: number;
44
+ updatedAt: number;
45
+ _all: number;
46
+ };
47
+ export type CustomerMinAggregateInputType = {
48
+ id?: true;
49
+ email?: true;
50
+ passwordHash?: true;
51
+ firstName?: true;
52
+ lastName?: true;
53
+ phone?: true;
54
+ defaultAddressId?: true;
55
+ createdAt?: true;
56
+ updatedAt?: true;
57
+ };
58
+ export type CustomerMaxAggregateInputType = {
59
+ id?: true;
60
+ email?: true;
61
+ passwordHash?: true;
62
+ firstName?: true;
63
+ lastName?: true;
64
+ phone?: true;
65
+ defaultAddressId?: true;
66
+ createdAt?: true;
67
+ updatedAt?: true;
68
+ };
69
+ export type CustomerCountAggregateInputType = {
70
+ id?: true;
71
+ email?: true;
72
+ passwordHash?: true;
73
+ firstName?: true;
74
+ lastName?: true;
75
+ phone?: true;
76
+ defaultAddressId?: true;
77
+ createdAt?: true;
78
+ updatedAt?: true;
79
+ _all?: true;
80
+ };
81
+ export type CustomerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
82
+ /**
83
+ * Filter which Customer to aggregate.
84
+ */
85
+ where?: Prisma.CustomerWhereInput;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
88
+ *
89
+ * Determine the order of Customers to fetch.
90
+ */
91
+ orderBy?: Prisma.CustomerOrderByWithRelationInput | Prisma.CustomerOrderByWithRelationInput[];
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
94
+ *
95
+ * Sets the start position
96
+ */
97
+ cursor?: Prisma.CustomerWhereUniqueInput;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
100
+ *
101
+ * Take `±n` Customers from the position of the cursor.
102
+ */
103
+ take?: number;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
106
+ *
107
+ * Skip the first `n` Customers.
108
+ */
109
+ skip?: number;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Count returned Customers
114
+ **/
115
+ _count?: true | CustomerCountAggregateInputType;
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
118
+ *
119
+ * Select which fields to find the minimum value
120
+ **/
121
+ _min?: CustomerMinAggregateInputType;
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
124
+ *
125
+ * Select which fields to find the maximum value
126
+ **/
127
+ _max?: CustomerMaxAggregateInputType;
128
+ };
129
+ export type GetCustomerAggregateType<T extends CustomerAggregateArgs> = {
130
+ [P in keyof T & keyof AggregateCustomer]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateCustomer[P]> : Prisma.GetScalarType<T[P], AggregateCustomer[P]>;
131
+ };
132
+ export type CustomerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
133
+ where?: Prisma.CustomerWhereInput;
134
+ orderBy?: Prisma.CustomerOrderByWithAggregationInput | Prisma.CustomerOrderByWithAggregationInput[];
135
+ by: Prisma.CustomerScalarFieldEnum[] | Prisma.CustomerScalarFieldEnum;
136
+ having?: Prisma.CustomerScalarWhereWithAggregatesInput;
137
+ take?: number;
138
+ skip?: number;
139
+ _count?: CustomerCountAggregateInputType | true;
140
+ _min?: CustomerMinAggregateInputType;
141
+ _max?: CustomerMaxAggregateInputType;
142
+ };
143
+ export type CustomerGroupByOutputType = {
144
+ id: string;
145
+ email: string;
146
+ passwordHash: string;
147
+ firstName: string | null;
148
+ lastName: string | null;
149
+ phone: string | null;
150
+ defaultAddressId: string | null;
151
+ createdAt: string;
152
+ updatedAt: string;
153
+ _count: CustomerCountAggregateOutputType | null;
154
+ _min: CustomerMinAggregateOutputType | null;
155
+ _max: CustomerMaxAggregateOutputType | null;
156
+ };
157
+ type GetCustomerGroupByPayload<T extends CustomerGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<CustomerGroupByOutputType, T['by']> & {
158
+ [P in ((keyof T) & (keyof CustomerGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], CustomerGroupByOutputType[P]> : Prisma.GetScalarType<T[P], CustomerGroupByOutputType[P]>;
159
+ }>>;
160
+ export type CustomerWhereInput = {
161
+ AND?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[];
162
+ OR?: Prisma.CustomerWhereInput[];
163
+ NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[];
164
+ id?: Prisma.StringFilter<"Customer"> | string;
165
+ email?: Prisma.StringFilter<"Customer"> | string;
166
+ passwordHash?: Prisma.StringFilter<"Customer"> | string;
167
+ firstName?: Prisma.StringNullableFilter<"Customer"> | string | null;
168
+ lastName?: Prisma.StringNullableFilter<"Customer"> | string | null;
169
+ phone?: Prisma.StringNullableFilter<"Customer"> | string | null;
170
+ defaultAddressId?: Prisma.StringNullableFilter<"Customer"> | string | null;
171
+ createdAt?: Prisma.StringFilter<"Customer"> | string;
172
+ updatedAt?: Prisma.StringFilter<"Customer"> | string;
173
+ addresses?: Prisma.CustomerAddressListRelationFilter;
174
+ carts?: Prisma.CartListRelationFilter;
175
+ orders?: Prisma.OrderListRelationFilter;
176
+ };
177
+ export type CustomerOrderByWithRelationInput = {
178
+ id?: Prisma.SortOrder;
179
+ email?: Prisma.SortOrder;
180
+ passwordHash?: Prisma.SortOrder;
181
+ firstName?: Prisma.SortOrderInput | Prisma.SortOrder;
182
+ lastName?: Prisma.SortOrderInput | Prisma.SortOrder;
183
+ phone?: Prisma.SortOrderInput | Prisma.SortOrder;
184
+ defaultAddressId?: Prisma.SortOrderInput | Prisma.SortOrder;
185
+ createdAt?: Prisma.SortOrder;
186
+ updatedAt?: Prisma.SortOrder;
187
+ addresses?: Prisma.CustomerAddressOrderByRelationAggregateInput;
188
+ carts?: Prisma.CartOrderByRelationAggregateInput;
189
+ orders?: Prisma.OrderOrderByRelationAggregateInput;
190
+ };
191
+ export type CustomerWhereUniqueInput = Prisma.AtLeast<{
192
+ id?: string;
193
+ email?: string;
194
+ AND?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[];
195
+ OR?: Prisma.CustomerWhereInput[];
196
+ NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[];
197
+ passwordHash?: Prisma.StringFilter<"Customer"> | string;
198
+ firstName?: Prisma.StringNullableFilter<"Customer"> | string | null;
199
+ lastName?: Prisma.StringNullableFilter<"Customer"> | string | null;
200
+ phone?: Prisma.StringNullableFilter<"Customer"> | string | null;
201
+ defaultAddressId?: Prisma.StringNullableFilter<"Customer"> | string | null;
202
+ createdAt?: Prisma.StringFilter<"Customer"> | string;
203
+ updatedAt?: Prisma.StringFilter<"Customer"> | string;
204
+ addresses?: Prisma.CustomerAddressListRelationFilter;
205
+ carts?: Prisma.CartListRelationFilter;
206
+ orders?: Prisma.OrderListRelationFilter;
207
+ }, "id" | "email">;
208
+ export type CustomerOrderByWithAggregationInput = {
209
+ id?: Prisma.SortOrder;
210
+ email?: Prisma.SortOrder;
211
+ passwordHash?: Prisma.SortOrder;
212
+ firstName?: Prisma.SortOrderInput | Prisma.SortOrder;
213
+ lastName?: Prisma.SortOrderInput | Prisma.SortOrder;
214
+ phone?: Prisma.SortOrderInput | Prisma.SortOrder;
215
+ defaultAddressId?: Prisma.SortOrderInput | Prisma.SortOrder;
216
+ createdAt?: Prisma.SortOrder;
217
+ updatedAt?: Prisma.SortOrder;
218
+ _count?: Prisma.CustomerCountOrderByAggregateInput;
219
+ _max?: Prisma.CustomerMaxOrderByAggregateInput;
220
+ _min?: Prisma.CustomerMinOrderByAggregateInput;
221
+ };
222
+ export type CustomerScalarWhereWithAggregatesInput = {
223
+ AND?: Prisma.CustomerScalarWhereWithAggregatesInput | Prisma.CustomerScalarWhereWithAggregatesInput[];
224
+ OR?: Prisma.CustomerScalarWhereWithAggregatesInput[];
225
+ NOT?: Prisma.CustomerScalarWhereWithAggregatesInput | Prisma.CustomerScalarWhereWithAggregatesInput[];
226
+ id?: Prisma.StringWithAggregatesFilter<"Customer"> | string;
227
+ email?: Prisma.StringWithAggregatesFilter<"Customer"> | string;
228
+ passwordHash?: Prisma.StringWithAggregatesFilter<"Customer"> | string;
229
+ firstName?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null;
230
+ lastName?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null;
231
+ phone?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null;
232
+ defaultAddressId?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null;
233
+ createdAt?: Prisma.StringWithAggregatesFilter<"Customer"> | string;
234
+ updatedAt?: Prisma.StringWithAggregatesFilter<"Customer"> | string;
235
+ };
236
+ export type CustomerCreateInput = {
237
+ id?: string;
238
+ email: string;
239
+ passwordHash: string;
240
+ firstName?: string | null;
241
+ lastName?: string | null;
242
+ phone?: string | null;
243
+ defaultAddressId?: string | null;
244
+ createdAt: string;
245
+ updatedAt: string;
246
+ addresses?: Prisma.CustomerAddressCreateNestedManyWithoutCustomerInput;
247
+ carts?: Prisma.CartCreateNestedManyWithoutCustomerInput;
248
+ orders?: Prisma.OrderCreateNestedManyWithoutCustomerInput;
249
+ };
250
+ export type CustomerUncheckedCreateInput = {
251
+ id?: string;
252
+ email: string;
253
+ passwordHash: string;
254
+ firstName?: string | null;
255
+ lastName?: string | null;
256
+ phone?: string | null;
257
+ defaultAddressId?: string | null;
258
+ createdAt: string;
259
+ updatedAt: string;
260
+ addresses?: Prisma.CustomerAddressUncheckedCreateNestedManyWithoutCustomerInput;
261
+ carts?: Prisma.CartUncheckedCreateNestedManyWithoutCustomerInput;
262
+ orders?: Prisma.OrderUncheckedCreateNestedManyWithoutCustomerInput;
263
+ };
264
+ export type CustomerUpdateInput = {
265
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
266
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
267
+ passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
268
+ firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
269
+ lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
270
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
271
+ defaultAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
272
+ createdAt?: Prisma.StringFieldUpdateOperationsInput | string;
273
+ updatedAt?: Prisma.StringFieldUpdateOperationsInput | string;
274
+ addresses?: Prisma.CustomerAddressUpdateManyWithoutCustomerNestedInput;
275
+ carts?: Prisma.CartUpdateManyWithoutCustomerNestedInput;
276
+ orders?: Prisma.OrderUpdateManyWithoutCustomerNestedInput;
277
+ };
278
+ export type CustomerUncheckedUpdateInput = {
279
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
280
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
281
+ passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
282
+ firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
283
+ lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
284
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
285
+ defaultAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
286
+ createdAt?: Prisma.StringFieldUpdateOperationsInput | string;
287
+ updatedAt?: Prisma.StringFieldUpdateOperationsInput | string;
288
+ addresses?: Prisma.CustomerAddressUncheckedUpdateManyWithoutCustomerNestedInput;
289
+ carts?: Prisma.CartUncheckedUpdateManyWithoutCustomerNestedInput;
290
+ orders?: Prisma.OrderUncheckedUpdateManyWithoutCustomerNestedInput;
291
+ };
292
+ export type CustomerCreateManyInput = {
293
+ id?: string;
294
+ email: string;
295
+ passwordHash: string;
296
+ firstName?: string | null;
297
+ lastName?: string | null;
298
+ phone?: string | null;
299
+ defaultAddressId?: string | null;
300
+ createdAt: string;
301
+ updatedAt: string;
302
+ };
303
+ export type CustomerUpdateManyMutationInput = {
304
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
305
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
306
+ passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
307
+ firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
308
+ lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
309
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
310
+ defaultAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
311
+ createdAt?: Prisma.StringFieldUpdateOperationsInput | string;
312
+ updatedAt?: Prisma.StringFieldUpdateOperationsInput | string;
313
+ };
314
+ export type CustomerUncheckedUpdateManyInput = {
315
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
316
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
317
+ passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
318
+ firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
319
+ lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
320
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
321
+ defaultAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
322
+ createdAt?: Prisma.StringFieldUpdateOperationsInput | string;
323
+ updatedAt?: Prisma.StringFieldUpdateOperationsInput | string;
324
+ };
325
+ export type CustomerNullableScalarRelationFilter = {
326
+ is?: Prisma.CustomerWhereInput | null;
327
+ isNot?: Prisma.CustomerWhereInput | null;
328
+ };
329
+ export type CustomerCountOrderByAggregateInput = {
330
+ id?: Prisma.SortOrder;
331
+ email?: Prisma.SortOrder;
332
+ passwordHash?: Prisma.SortOrder;
333
+ firstName?: Prisma.SortOrder;
334
+ lastName?: Prisma.SortOrder;
335
+ phone?: Prisma.SortOrder;
336
+ defaultAddressId?: Prisma.SortOrder;
337
+ createdAt?: Prisma.SortOrder;
338
+ updatedAt?: Prisma.SortOrder;
339
+ };
340
+ export type CustomerMaxOrderByAggregateInput = {
341
+ id?: Prisma.SortOrder;
342
+ email?: Prisma.SortOrder;
343
+ passwordHash?: Prisma.SortOrder;
344
+ firstName?: Prisma.SortOrder;
345
+ lastName?: Prisma.SortOrder;
346
+ phone?: Prisma.SortOrder;
347
+ defaultAddressId?: Prisma.SortOrder;
348
+ createdAt?: Prisma.SortOrder;
349
+ updatedAt?: Prisma.SortOrder;
350
+ };
351
+ export type CustomerMinOrderByAggregateInput = {
352
+ id?: Prisma.SortOrder;
353
+ email?: Prisma.SortOrder;
354
+ passwordHash?: Prisma.SortOrder;
355
+ firstName?: Prisma.SortOrder;
356
+ lastName?: Prisma.SortOrder;
357
+ phone?: Prisma.SortOrder;
358
+ defaultAddressId?: Prisma.SortOrder;
359
+ createdAt?: Prisma.SortOrder;
360
+ updatedAt?: Prisma.SortOrder;
361
+ };
362
+ export type CustomerScalarRelationFilter = {
363
+ is?: Prisma.CustomerWhereInput;
364
+ isNot?: Prisma.CustomerWhereInput;
365
+ };
366
+ export type CustomerCreateNestedOneWithoutCartsInput = {
367
+ create?: Prisma.XOR<Prisma.CustomerCreateWithoutCartsInput, Prisma.CustomerUncheckedCreateWithoutCartsInput>;
368
+ connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCartsInput;
369
+ connect?: Prisma.CustomerWhereUniqueInput;
370
+ };
371
+ export type CustomerUpdateOneWithoutCartsNestedInput = {
372
+ create?: Prisma.XOR<Prisma.CustomerCreateWithoutCartsInput, Prisma.CustomerUncheckedCreateWithoutCartsInput>;
373
+ connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCartsInput;
374
+ upsert?: Prisma.CustomerUpsertWithoutCartsInput;
375
+ disconnect?: Prisma.CustomerWhereInput | boolean;
376
+ delete?: Prisma.CustomerWhereInput | boolean;
377
+ connect?: Prisma.CustomerWhereUniqueInput;
378
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutCartsInput, Prisma.CustomerUpdateWithoutCartsInput>, Prisma.CustomerUncheckedUpdateWithoutCartsInput>;
379
+ };
380
+ export type CustomerCreateNestedOneWithoutAddressesInput = {
381
+ create?: Prisma.XOR<Prisma.CustomerCreateWithoutAddressesInput, Prisma.CustomerUncheckedCreateWithoutAddressesInput>;
382
+ connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutAddressesInput;
383
+ connect?: Prisma.CustomerWhereUniqueInput;
384
+ };
385
+ export type CustomerUpdateOneRequiredWithoutAddressesNestedInput = {
386
+ create?: Prisma.XOR<Prisma.CustomerCreateWithoutAddressesInput, Prisma.CustomerUncheckedCreateWithoutAddressesInput>;
387
+ connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutAddressesInput;
388
+ upsert?: Prisma.CustomerUpsertWithoutAddressesInput;
389
+ connect?: Prisma.CustomerWhereUniqueInput;
390
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutAddressesInput, Prisma.CustomerUpdateWithoutAddressesInput>, Prisma.CustomerUncheckedUpdateWithoutAddressesInput>;
391
+ };
392
+ export type CustomerCreateNestedOneWithoutOrdersInput = {
393
+ create?: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>;
394
+ connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutOrdersInput;
395
+ connect?: Prisma.CustomerWhereUniqueInput;
396
+ };
397
+ export type CustomerUpdateOneWithoutOrdersNestedInput = {
398
+ create?: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>;
399
+ connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutOrdersInput;
400
+ upsert?: Prisma.CustomerUpsertWithoutOrdersInput;
401
+ disconnect?: Prisma.CustomerWhereInput | boolean;
402
+ delete?: Prisma.CustomerWhereInput | boolean;
403
+ connect?: Prisma.CustomerWhereUniqueInput;
404
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutOrdersInput, Prisma.CustomerUpdateWithoutOrdersInput>, Prisma.CustomerUncheckedUpdateWithoutOrdersInput>;
405
+ };
406
+ export type CustomerCreateWithoutCartsInput = {
407
+ id?: string;
408
+ email: string;
409
+ passwordHash: string;
410
+ firstName?: string | null;
411
+ lastName?: string | null;
412
+ phone?: string | null;
413
+ defaultAddressId?: string | null;
414
+ createdAt: string;
415
+ updatedAt: string;
416
+ addresses?: Prisma.CustomerAddressCreateNestedManyWithoutCustomerInput;
417
+ orders?: Prisma.OrderCreateNestedManyWithoutCustomerInput;
418
+ };
419
+ export type CustomerUncheckedCreateWithoutCartsInput = {
420
+ id?: string;
421
+ email: string;
422
+ passwordHash: string;
423
+ firstName?: string | null;
424
+ lastName?: string | null;
425
+ phone?: string | null;
426
+ defaultAddressId?: string | null;
427
+ createdAt: string;
428
+ updatedAt: string;
429
+ addresses?: Prisma.CustomerAddressUncheckedCreateNestedManyWithoutCustomerInput;
430
+ orders?: Prisma.OrderUncheckedCreateNestedManyWithoutCustomerInput;
431
+ };
432
+ export type CustomerCreateOrConnectWithoutCartsInput = {
433
+ where: Prisma.CustomerWhereUniqueInput;
434
+ create: Prisma.XOR<Prisma.CustomerCreateWithoutCartsInput, Prisma.CustomerUncheckedCreateWithoutCartsInput>;
435
+ };
436
+ export type CustomerUpsertWithoutCartsInput = {
437
+ update: Prisma.XOR<Prisma.CustomerUpdateWithoutCartsInput, Prisma.CustomerUncheckedUpdateWithoutCartsInput>;
438
+ create: Prisma.XOR<Prisma.CustomerCreateWithoutCartsInput, Prisma.CustomerUncheckedCreateWithoutCartsInput>;
439
+ where?: Prisma.CustomerWhereInput;
440
+ };
441
+ export type CustomerUpdateToOneWithWhereWithoutCartsInput = {
442
+ where?: Prisma.CustomerWhereInput;
443
+ data: Prisma.XOR<Prisma.CustomerUpdateWithoutCartsInput, Prisma.CustomerUncheckedUpdateWithoutCartsInput>;
444
+ };
445
+ export type CustomerUpdateWithoutCartsInput = {
446
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
447
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
448
+ passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
449
+ firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
450
+ lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
451
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
452
+ defaultAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
453
+ createdAt?: Prisma.StringFieldUpdateOperationsInput | string;
454
+ updatedAt?: Prisma.StringFieldUpdateOperationsInput | string;
455
+ addresses?: Prisma.CustomerAddressUpdateManyWithoutCustomerNestedInput;
456
+ orders?: Prisma.OrderUpdateManyWithoutCustomerNestedInput;
457
+ };
458
+ export type CustomerUncheckedUpdateWithoutCartsInput = {
459
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
460
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
461
+ passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
462
+ firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
463
+ lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
464
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
465
+ defaultAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
466
+ createdAt?: Prisma.StringFieldUpdateOperationsInput | string;
467
+ updatedAt?: Prisma.StringFieldUpdateOperationsInput | string;
468
+ addresses?: Prisma.CustomerAddressUncheckedUpdateManyWithoutCustomerNestedInput;
469
+ orders?: Prisma.OrderUncheckedUpdateManyWithoutCustomerNestedInput;
470
+ };
471
+ export type CustomerCreateWithoutAddressesInput = {
472
+ id?: string;
473
+ email: string;
474
+ passwordHash: string;
475
+ firstName?: string | null;
476
+ lastName?: string | null;
477
+ phone?: string | null;
478
+ defaultAddressId?: string | null;
479
+ createdAt: string;
480
+ updatedAt: string;
481
+ carts?: Prisma.CartCreateNestedManyWithoutCustomerInput;
482
+ orders?: Prisma.OrderCreateNestedManyWithoutCustomerInput;
483
+ };
484
+ export type CustomerUncheckedCreateWithoutAddressesInput = {
485
+ id?: string;
486
+ email: string;
487
+ passwordHash: string;
488
+ firstName?: string | null;
489
+ lastName?: string | null;
490
+ phone?: string | null;
491
+ defaultAddressId?: string | null;
492
+ createdAt: string;
493
+ updatedAt: string;
494
+ carts?: Prisma.CartUncheckedCreateNestedManyWithoutCustomerInput;
495
+ orders?: Prisma.OrderUncheckedCreateNestedManyWithoutCustomerInput;
496
+ };
497
+ export type CustomerCreateOrConnectWithoutAddressesInput = {
498
+ where: Prisma.CustomerWhereUniqueInput;
499
+ create: Prisma.XOR<Prisma.CustomerCreateWithoutAddressesInput, Prisma.CustomerUncheckedCreateWithoutAddressesInput>;
500
+ };
501
+ export type CustomerUpsertWithoutAddressesInput = {
502
+ update: Prisma.XOR<Prisma.CustomerUpdateWithoutAddressesInput, Prisma.CustomerUncheckedUpdateWithoutAddressesInput>;
503
+ create: Prisma.XOR<Prisma.CustomerCreateWithoutAddressesInput, Prisma.CustomerUncheckedCreateWithoutAddressesInput>;
504
+ where?: Prisma.CustomerWhereInput;
505
+ };
506
+ export type CustomerUpdateToOneWithWhereWithoutAddressesInput = {
507
+ where?: Prisma.CustomerWhereInput;
508
+ data: Prisma.XOR<Prisma.CustomerUpdateWithoutAddressesInput, Prisma.CustomerUncheckedUpdateWithoutAddressesInput>;
509
+ };
510
+ export type CustomerUpdateWithoutAddressesInput = {
511
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
512
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
513
+ passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
514
+ firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
515
+ lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
516
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
517
+ defaultAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
518
+ createdAt?: Prisma.StringFieldUpdateOperationsInput | string;
519
+ updatedAt?: Prisma.StringFieldUpdateOperationsInput | string;
520
+ carts?: Prisma.CartUpdateManyWithoutCustomerNestedInput;
521
+ orders?: Prisma.OrderUpdateManyWithoutCustomerNestedInput;
522
+ };
523
+ export type CustomerUncheckedUpdateWithoutAddressesInput = {
524
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
525
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
526
+ passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
527
+ firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
528
+ lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
529
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
530
+ defaultAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
531
+ createdAt?: Prisma.StringFieldUpdateOperationsInput | string;
532
+ updatedAt?: Prisma.StringFieldUpdateOperationsInput | string;
533
+ carts?: Prisma.CartUncheckedUpdateManyWithoutCustomerNestedInput;
534
+ orders?: Prisma.OrderUncheckedUpdateManyWithoutCustomerNestedInput;
535
+ };
536
+ export type CustomerCreateWithoutOrdersInput = {
537
+ id?: string;
538
+ email: string;
539
+ passwordHash: string;
540
+ firstName?: string | null;
541
+ lastName?: string | null;
542
+ phone?: string | null;
543
+ defaultAddressId?: string | null;
544
+ createdAt: string;
545
+ updatedAt: string;
546
+ addresses?: Prisma.CustomerAddressCreateNestedManyWithoutCustomerInput;
547
+ carts?: Prisma.CartCreateNestedManyWithoutCustomerInput;
548
+ };
549
+ export type CustomerUncheckedCreateWithoutOrdersInput = {
550
+ id?: string;
551
+ email: string;
552
+ passwordHash: string;
553
+ firstName?: string | null;
554
+ lastName?: string | null;
555
+ phone?: string | null;
556
+ defaultAddressId?: string | null;
557
+ createdAt: string;
558
+ updatedAt: string;
559
+ addresses?: Prisma.CustomerAddressUncheckedCreateNestedManyWithoutCustomerInput;
560
+ carts?: Prisma.CartUncheckedCreateNestedManyWithoutCustomerInput;
561
+ };
562
+ export type CustomerCreateOrConnectWithoutOrdersInput = {
563
+ where: Prisma.CustomerWhereUniqueInput;
564
+ create: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>;
565
+ };
566
+ export type CustomerUpsertWithoutOrdersInput = {
567
+ update: Prisma.XOR<Prisma.CustomerUpdateWithoutOrdersInput, Prisma.CustomerUncheckedUpdateWithoutOrdersInput>;
568
+ create: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>;
569
+ where?: Prisma.CustomerWhereInput;
570
+ };
571
+ export type CustomerUpdateToOneWithWhereWithoutOrdersInput = {
572
+ where?: Prisma.CustomerWhereInput;
573
+ data: Prisma.XOR<Prisma.CustomerUpdateWithoutOrdersInput, Prisma.CustomerUncheckedUpdateWithoutOrdersInput>;
574
+ };
575
+ export type CustomerUpdateWithoutOrdersInput = {
576
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
577
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
578
+ passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
579
+ firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
580
+ lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
581
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
582
+ defaultAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
583
+ createdAt?: Prisma.StringFieldUpdateOperationsInput | string;
584
+ updatedAt?: Prisma.StringFieldUpdateOperationsInput | string;
585
+ addresses?: Prisma.CustomerAddressUpdateManyWithoutCustomerNestedInput;
586
+ carts?: Prisma.CartUpdateManyWithoutCustomerNestedInput;
587
+ };
588
+ export type CustomerUncheckedUpdateWithoutOrdersInput = {
589
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
590
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
591
+ passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
592
+ firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
593
+ lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
594
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
595
+ defaultAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
596
+ createdAt?: Prisma.StringFieldUpdateOperationsInput | string;
597
+ updatedAt?: Prisma.StringFieldUpdateOperationsInput | string;
598
+ addresses?: Prisma.CustomerAddressUncheckedUpdateManyWithoutCustomerNestedInput;
599
+ carts?: Prisma.CartUncheckedUpdateManyWithoutCustomerNestedInput;
600
+ };
601
+ /**
602
+ * Count Type CustomerCountOutputType
603
+ */
604
+ export type CustomerCountOutputType = {
605
+ addresses: number;
606
+ carts: number;
607
+ orders: number;
608
+ };
609
+ export type CustomerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
610
+ addresses?: boolean | CustomerCountOutputTypeCountAddressesArgs;
611
+ carts?: boolean | CustomerCountOutputTypeCountCartsArgs;
612
+ orders?: boolean | CustomerCountOutputTypeCountOrdersArgs;
613
+ };
614
+ /**
615
+ * CustomerCountOutputType without action
616
+ */
617
+ export type CustomerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
618
+ /**
619
+ * Select specific fields to fetch from the CustomerCountOutputType
620
+ */
621
+ select?: Prisma.CustomerCountOutputTypeSelect<ExtArgs> | null;
622
+ };
623
+ /**
624
+ * CustomerCountOutputType without action
625
+ */
626
+ export type CustomerCountOutputTypeCountAddressesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
627
+ where?: Prisma.CustomerAddressWhereInput;
628
+ };
629
+ /**
630
+ * CustomerCountOutputType without action
631
+ */
632
+ export type CustomerCountOutputTypeCountCartsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
633
+ where?: Prisma.CartWhereInput;
634
+ };
635
+ /**
636
+ * CustomerCountOutputType without action
637
+ */
638
+ export type CustomerCountOutputTypeCountOrdersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
639
+ where?: Prisma.OrderWhereInput;
640
+ };
641
+ export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
642
+ id?: boolean;
643
+ email?: boolean;
644
+ passwordHash?: boolean;
645
+ firstName?: boolean;
646
+ lastName?: boolean;
647
+ phone?: boolean;
648
+ defaultAddressId?: boolean;
649
+ createdAt?: boolean;
650
+ updatedAt?: boolean;
651
+ addresses?: boolean | Prisma.Customer$addressesArgs<ExtArgs>;
652
+ carts?: boolean | Prisma.Customer$cartsArgs<ExtArgs>;
653
+ orders?: boolean | Prisma.Customer$ordersArgs<ExtArgs>;
654
+ _count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>;
655
+ }, ExtArgs["result"]["customer"]>;
656
+ export type CustomerSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
657
+ id?: boolean;
658
+ email?: boolean;
659
+ passwordHash?: boolean;
660
+ firstName?: boolean;
661
+ lastName?: boolean;
662
+ phone?: boolean;
663
+ defaultAddressId?: boolean;
664
+ createdAt?: boolean;
665
+ updatedAt?: boolean;
666
+ }, ExtArgs["result"]["customer"]>;
667
+ export type CustomerSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
668
+ id?: boolean;
669
+ email?: boolean;
670
+ passwordHash?: boolean;
671
+ firstName?: boolean;
672
+ lastName?: boolean;
673
+ phone?: boolean;
674
+ defaultAddressId?: boolean;
675
+ createdAt?: boolean;
676
+ updatedAt?: boolean;
677
+ }, ExtArgs["result"]["customer"]>;
678
+ export type CustomerSelectScalar = {
679
+ id?: boolean;
680
+ email?: boolean;
681
+ passwordHash?: boolean;
682
+ firstName?: boolean;
683
+ lastName?: boolean;
684
+ phone?: boolean;
685
+ defaultAddressId?: boolean;
686
+ createdAt?: boolean;
687
+ updatedAt?: boolean;
688
+ };
689
+ export type CustomerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "email" | "passwordHash" | "firstName" | "lastName" | "phone" | "defaultAddressId" | "createdAt" | "updatedAt", ExtArgs["result"]["customer"]>;
690
+ export type CustomerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
691
+ addresses?: boolean | Prisma.Customer$addressesArgs<ExtArgs>;
692
+ carts?: boolean | Prisma.Customer$cartsArgs<ExtArgs>;
693
+ orders?: boolean | Prisma.Customer$ordersArgs<ExtArgs>;
694
+ _count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>;
695
+ };
696
+ export type CustomerIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
697
+ export type CustomerIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
698
+ export type $CustomerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
699
+ name: "Customer";
700
+ objects: {
701
+ addresses: Prisma.$CustomerAddressPayload<ExtArgs>[];
702
+ carts: Prisma.$CartPayload<ExtArgs>[];
703
+ orders: Prisma.$OrderPayload<ExtArgs>[];
704
+ };
705
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
706
+ id: string;
707
+ email: string;
708
+ passwordHash: string;
709
+ firstName: string | null;
710
+ lastName: string | null;
711
+ phone: string | null;
712
+ defaultAddressId: string | null;
713
+ createdAt: string;
714
+ updatedAt: string;
715
+ }, ExtArgs["result"]["customer"]>;
716
+ composites: {};
717
+ };
718
+ export type CustomerGetPayload<S extends boolean | null | undefined | CustomerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CustomerPayload, S>;
719
+ export type CustomerCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<CustomerFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
720
+ select?: CustomerCountAggregateInputType | true;
721
+ };
722
+ export interface CustomerDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
723
+ [K: symbol]: {
724
+ types: Prisma.TypeMap<ExtArgs>['model']['Customer'];
725
+ meta: {
726
+ name: 'Customer';
727
+ };
728
+ };
729
+ /**
730
+ * Find zero or one Customer that matches the filter.
731
+ * @param {CustomerFindUniqueArgs} args - Arguments to find a Customer
732
+ * @example
733
+ * // Get one Customer
734
+ * const customer = await prisma.customer.findUnique({
735
+ * where: {
736
+ * // ... provide filter here
737
+ * }
738
+ * })
739
+ */
740
+ findUnique<T extends CustomerFindUniqueArgs>(args: Prisma.SelectSubset<T, CustomerFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
741
+ /**
742
+ * Find one Customer that matches the filter or throw an error with `error.code='P2025'`
743
+ * if no matches were found.
744
+ * @param {CustomerFindUniqueOrThrowArgs} args - Arguments to find a Customer
745
+ * @example
746
+ * // Get one Customer
747
+ * const customer = await prisma.customer.findUniqueOrThrow({
748
+ * where: {
749
+ * // ... provide filter here
750
+ * }
751
+ * })
752
+ */
753
+ findUniqueOrThrow<T extends CustomerFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CustomerFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
754
+ /**
755
+ * Find the first Customer that matches the filter.
756
+ * Note, that providing `undefined` is treated as the value not being there.
757
+ * Read more here: https://pris.ly/d/null-undefined
758
+ * @param {CustomerFindFirstArgs} args - Arguments to find a Customer
759
+ * @example
760
+ * // Get one Customer
761
+ * const customer = await prisma.customer.findFirst({
762
+ * where: {
763
+ * // ... provide filter here
764
+ * }
765
+ * })
766
+ */
767
+ findFirst<T extends CustomerFindFirstArgs>(args?: Prisma.SelectSubset<T, CustomerFindFirstArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
768
+ /**
769
+ * Find the first Customer that matches the filter or
770
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
771
+ * Note, that providing `undefined` is treated as the value not being there.
772
+ * Read more here: https://pris.ly/d/null-undefined
773
+ * @param {CustomerFindFirstOrThrowArgs} args - Arguments to find a Customer
774
+ * @example
775
+ * // Get one Customer
776
+ * const customer = await prisma.customer.findFirstOrThrow({
777
+ * where: {
778
+ * // ... provide filter here
779
+ * }
780
+ * })
781
+ */
782
+ findFirstOrThrow<T extends CustomerFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CustomerFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
783
+ /**
784
+ * Find zero or more Customers that matches the filter.
785
+ * Note, that providing `undefined` is treated as the value not being there.
786
+ * Read more here: https://pris.ly/d/null-undefined
787
+ * @param {CustomerFindManyArgs} args - Arguments to filter and select certain fields only.
788
+ * @example
789
+ * // Get all Customers
790
+ * const customers = await prisma.customer.findMany()
791
+ *
792
+ * // Get first 10 Customers
793
+ * const customers = await prisma.customer.findMany({ take: 10 })
794
+ *
795
+ * // Only select the `id`
796
+ * const customerWithIdOnly = await prisma.customer.findMany({ select: { id: true } })
797
+ *
798
+ */
799
+ findMany<T extends CustomerFindManyArgs>(args?: Prisma.SelectSubset<T, CustomerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
800
+ /**
801
+ * Create a Customer.
802
+ * @param {CustomerCreateArgs} args - Arguments to create a Customer.
803
+ * @example
804
+ * // Create one Customer
805
+ * const Customer = await prisma.customer.create({
806
+ * data: {
807
+ * // ... data to create a Customer
808
+ * }
809
+ * })
810
+ *
811
+ */
812
+ create<T extends CustomerCreateArgs>(args: Prisma.SelectSubset<T, CustomerCreateArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
813
+ /**
814
+ * Create many Customers.
815
+ * @param {CustomerCreateManyArgs} args - Arguments to create many Customers.
816
+ * @example
817
+ * // Create many Customers
818
+ * const customer = await prisma.customer.createMany({
819
+ * data: [
820
+ * // ... provide data here
821
+ * ]
822
+ * })
823
+ *
824
+ */
825
+ createMany<T extends CustomerCreateManyArgs>(args?: Prisma.SelectSubset<T, CustomerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
826
+ /**
827
+ * Create many Customers and returns the data saved in the database.
828
+ * @param {CustomerCreateManyAndReturnArgs} args - Arguments to create many Customers.
829
+ * @example
830
+ * // Create many Customers
831
+ * const customer = await prisma.customer.createManyAndReturn({
832
+ * data: [
833
+ * // ... provide data here
834
+ * ]
835
+ * })
836
+ *
837
+ * // Create many Customers and only return the `id`
838
+ * const customerWithIdOnly = await prisma.customer.createManyAndReturn({
839
+ * select: { id: true },
840
+ * data: [
841
+ * // ... provide data here
842
+ * ]
843
+ * })
844
+ * Note, that providing `undefined` is treated as the value not being there.
845
+ * Read more here: https://pris.ly/d/null-undefined
846
+ *
847
+ */
848
+ createManyAndReturn<T extends CustomerCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CustomerCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
849
+ /**
850
+ * Delete a Customer.
851
+ * @param {CustomerDeleteArgs} args - Arguments to delete one Customer.
852
+ * @example
853
+ * // Delete one Customer
854
+ * const Customer = await prisma.customer.delete({
855
+ * where: {
856
+ * // ... filter to delete one Customer
857
+ * }
858
+ * })
859
+ *
860
+ */
861
+ delete<T extends CustomerDeleteArgs>(args: Prisma.SelectSubset<T, CustomerDeleteArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
862
+ /**
863
+ * Update one Customer.
864
+ * @param {CustomerUpdateArgs} args - Arguments to update one Customer.
865
+ * @example
866
+ * // Update one Customer
867
+ * const customer = await prisma.customer.update({
868
+ * where: {
869
+ * // ... provide filter here
870
+ * },
871
+ * data: {
872
+ * // ... provide data here
873
+ * }
874
+ * })
875
+ *
876
+ */
877
+ update<T extends CustomerUpdateArgs>(args: Prisma.SelectSubset<T, CustomerUpdateArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
878
+ /**
879
+ * Delete zero or more Customers.
880
+ * @param {CustomerDeleteManyArgs} args - Arguments to filter Customers to delete.
881
+ * @example
882
+ * // Delete a few Customers
883
+ * const { count } = await prisma.customer.deleteMany({
884
+ * where: {
885
+ * // ... provide filter here
886
+ * }
887
+ * })
888
+ *
889
+ */
890
+ deleteMany<T extends CustomerDeleteManyArgs>(args?: Prisma.SelectSubset<T, CustomerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
891
+ /**
892
+ * Update zero or more Customers.
893
+ * Note, that providing `undefined` is treated as the value not being there.
894
+ * Read more here: https://pris.ly/d/null-undefined
895
+ * @param {CustomerUpdateManyArgs} args - Arguments to update one or more rows.
896
+ * @example
897
+ * // Update many Customers
898
+ * const customer = await prisma.customer.updateMany({
899
+ * where: {
900
+ * // ... provide filter here
901
+ * },
902
+ * data: {
903
+ * // ... provide data here
904
+ * }
905
+ * })
906
+ *
907
+ */
908
+ updateMany<T extends CustomerUpdateManyArgs>(args: Prisma.SelectSubset<T, CustomerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
909
+ /**
910
+ * Update zero or more Customers and returns the data updated in the database.
911
+ * @param {CustomerUpdateManyAndReturnArgs} args - Arguments to update many Customers.
912
+ * @example
913
+ * // Update many Customers
914
+ * const customer = await prisma.customer.updateManyAndReturn({
915
+ * where: {
916
+ * // ... provide filter here
917
+ * },
918
+ * data: [
919
+ * // ... provide data here
920
+ * ]
921
+ * })
922
+ *
923
+ * // Update zero or more Customers and only return the `id`
924
+ * const customerWithIdOnly = await prisma.customer.updateManyAndReturn({
925
+ * select: { id: true },
926
+ * where: {
927
+ * // ... provide filter here
928
+ * },
929
+ * data: [
930
+ * // ... provide data here
931
+ * ]
932
+ * })
933
+ * Note, that providing `undefined` is treated as the value not being there.
934
+ * Read more here: https://pris.ly/d/null-undefined
935
+ *
936
+ */
937
+ updateManyAndReturn<T extends CustomerUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CustomerUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
938
+ /**
939
+ * Create or update one Customer.
940
+ * @param {CustomerUpsertArgs} args - Arguments to update or create a Customer.
941
+ * @example
942
+ * // Update or create a Customer
943
+ * const customer = await prisma.customer.upsert({
944
+ * create: {
945
+ * // ... data to create a Customer
946
+ * },
947
+ * update: {
948
+ * // ... in case it already exists, update
949
+ * },
950
+ * where: {
951
+ * // ... the filter for the Customer we want to update
952
+ * }
953
+ * })
954
+ */
955
+ upsert<T extends CustomerUpsertArgs>(args: Prisma.SelectSubset<T, CustomerUpsertArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
956
+ /**
957
+ * Count the number of Customers.
958
+ * Note, that providing `undefined` is treated as the value not being there.
959
+ * Read more here: https://pris.ly/d/null-undefined
960
+ * @param {CustomerCountArgs} args - Arguments to filter Customers to count.
961
+ * @example
962
+ * // Count the number of Customers
963
+ * const count = await prisma.customer.count({
964
+ * where: {
965
+ * // ... the filter for the Customers we want to count
966
+ * }
967
+ * })
968
+ **/
969
+ count<T extends CustomerCountArgs>(args?: Prisma.Subset<T, CustomerCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], CustomerCountAggregateOutputType> : number>;
970
+ /**
971
+ * Allows you to perform aggregations operations on a Customer.
972
+ * Note, that providing `undefined` is treated as the value not being there.
973
+ * Read more here: https://pris.ly/d/null-undefined
974
+ * @param {CustomerAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
975
+ * @example
976
+ * // Ordered by age ascending
977
+ * // Where email contains prisma.io
978
+ * // Limited to the 10 users
979
+ * const aggregations = await prisma.user.aggregate({
980
+ * _avg: {
981
+ * age: true,
982
+ * },
983
+ * where: {
984
+ * email: {
985
+ * contains: "prisma.io",
986
+ * },
987
+ * },
988
+ * orderBy: {
989
+ * age: "asc",
990
+ * },
991
+ * take: 10,
992
+ * })
993
+ **/
994
+ aggregate<T extends CustomerAggregateArgs>(args: Prisma.Subset<T, CustomerAggregateArgs>): Prisma.PrismaPromise<GetCustomerAggregateType<T>>;
995
+ /**
996
+ * Group by Customer.
997
+ * Note, that providing `undefined` is treated as the value not being there.
998
+ * Read more here: https://pris.ly/d/null-undefined
999
+ * @param {CustomerGroupByArgs} args - Group by arguments.
1000
+ * @example
1001
+ * // Group by city, order by createdAt, get count
1002
+ * const result = await prisma.user.groupBy({
1003
+ * by: ['city', 'createdAt'],
1004
+ * orderBy: {
1005
+ * createdAt: true
1006
+ * },
1007
+ * _count: {
1008
+ * _all: true
1009
+ * },
1010
+ * })
1011
+ *
1012
+ **/
1013
+ groupBy<T extends CustomerGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1014
+ orderBy: CustomerGroupByArgs['orderBy'];
1015
+ } : {
1016
+ orderBy?: CustomerGroupByArgs['orderBy'];
1017
+ }, 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 ? {
1018
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1019
+ Error,
1020
+ 'Field ',
1021
+ P,
1022
+ ` in "having" needs to be provided in "by"`
1023
+ ];
1024
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1025
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1026
+ }[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 ? {} : {
1027
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1028
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1029
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1030
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, CustomerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCustomerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1031
+ /**
1032
+ * Fields of the Customer model
1033
+ */
1034
+ readonly fields: CustomerFieldRefs;
1035
+ }
1036
+ /**
1037
+ * The delegate class that acts as a "Promise-like" for Customer.
1038
+ * Why is this prefixed with `Prisma__`?
1039
+ * Because we want to prevent naming conflicts as mentioned in
1040
+ * https://github.com/prisma/prisma-client-js/issues/707
1041
+ */
1042
+ export interface Prisma__CustomerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1043
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1044
+ addresses<T extends Prisma.Customer$addressesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$addressesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomerAddressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1045
+ carts<T extends Prisma.Customer$cartsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$cartsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CartPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1046
+ orders<T extends Prisma.Customer$ordersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$ordersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1047
+ /**
1048
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1049
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1050
+ * @param onrejected The callback to execute when the Promise is rejected.
1051
+ * @returns A Promise for the completion of which ever callback is executed.
1052
+ */
1053
+ 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>;
1054
+ /**
1055
+ * Attaches a callback for only the rejection of the Promise.
1056
+ * @param onrejected The callback to execute when the Promise is rejected.
1057
+ * @returns A Promise for the completion of the callback.
1058
+ */
1059
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1060
+ /**
1061
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1062
+ * resolved value cannot be modified from the callback.
1063
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1064
+ * @returns A Promise for the completion of the callback.
1065
+ */
1066
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1067
+ }
1068
+ /**
1069
+ * Fields of the Customer model
1070
+ */
1071
+ export interface CustomerFieldRefs {
1072
+ readonly id: Prisma.FieldRef<"Customer", 'String'>;
1073
+ readonly email: Prisma.FieldRef<"Customer", 'String'>;
1074
+ readonly passwordHash: Prisma.FieldRef<"Customer", 'String'>;
1075
+ readonly firstName: Prisma.FieldRef<"Customer", 'String'>;
1076
+ readonly lastName: Prisma.FieldRef<"Customer", 'String'>;
1077
+ readonly phone: Prisma.FieldRef<"Customer", 'String'>;
1078
+ readonly defaultAddressId: Prisma.FieldRef<"Customer", 'String'>;
1079
+ readonly createdAt: Prisma.FieldRef<"Customer", 'String'>;
1080
+ readonly updatedAt: Prisma.FieldRef<"Customer", 'String'>;
1081
+ }
1082
+ /**
1083
+ * Customer findUnique
1084
+ */
1085
+ export type CustomerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1086
+ /**
1087
+ * Select specific fields to fetch from the Customer
1088
+ */
1089
+ select?: Prisma.CustomerSelect<ExtArgs> | null;
1090
+ /**
1091
+ * Omit specific fields from the Customer
1092
+ */
1093
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
1094
+ /**
1095
+ * Choose, which related nodes to fetch as well
1096
+ */
1097
+ include?: Prisma.CustomerInclude<ExtArgs> | null;
1098
+ /**
1099
+ * Filter, which Customer to fetch.
1100
+ */
1101
+ where: Prisma.CustomerWhereUniqueInput;
1102
+ };
1103
+ /**
1104
+ * Customer findUniqueOrThrow
1105
+ */
1106
+ export type CustomerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1107
+ /**
1108
+ * Select specific fields to fetch from the Customer
1109
+ */
1110
+ select?: Prisma.CustomerSelect<ExtArgs> | null;
1111
+ /**
1112
+ * Omit specific fields from the Customer
1113
+ */
1114
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
1115
+ /**
1116
+ * Choose, which related nodes to fetch as well
1117
+ */
1118
+ include?: Prisma.CustomerInclude<ExtArgs> | null;
1119
+ /**
1120
+ * Filter, which Customer to fetch.
1121
+ */
1122
+ where: Prisma.CustomerWhereUniqueInput;
1123
+ };
1124
+ /**
1125
+ * Customer findFirst
1126
+ */
1127
+ export type CustomerFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1128
+ /**
1129
+ * Select specific fields to fetch from the Customer
1130
+ */
1131
+ select?: Prisma.CustomerSelect<ExtArgs> | null;
1132
+ /**
1133
+ * Omit specific fields from the Customer
1134
+ */
1135
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
1136
+ /**
1137
+ * Choose, which related nodes to fetch as well
1138
+ */
1139
+ include?: Prisma.CustomerInclude<ExtArgs> | null;
1140
+ /**
1141
+ * Filter, which Customer to fetch.
1142
+ */
1143
+ where?: Prisma.CustomerWhereInput;
1144
+ /**
1145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1146
+ *
1147
+ * Determine the order of Customers to fetch.
1148
+ */
1149
+ orderBy?: Prisma.CustomerOrderByWithRelationInput | Prisma.CustomerOrderByWithRelationInput[];
1150
+ /**
1151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1152
+ *
1153
+ * Sets the position for searching for Customers.
1154
+ */
1155
+ cursor?: Prisma.CustomerWhereUniqueInput;
1156
+ /**
1157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1158
+ *
1159
+ * Take `±n` Customers from the position of the cursor.
1160
+ */
1161
+ take?: number;
1162
+ /**
1163
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1164
+ *
1165
+ * Skip the first `n` Customers.
1166
+ */
1167
+ skip?: number;
1168
+ /**
1169
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1170
+ *
1171
+ * Filter by unique combinations of Customers.
1172
+ */
1173
+ distinct?: Prisma.CustomerScalarFieldEnum | Prisma.CustomerScalarFieldEnum[];
1174
+ };
1175
+ /**
1176
+ * Customer findFirstOrThrow
1177
+ */
1178
+ export type CustomerFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1179
+ /**
1180
+ * Select specific fields to fetch from the Customer
1181
+ */
1182
+ select?: Prisma.CustomerSelect<ExtArgs> | null;
1183
+ /**
1184
+ * Omit specific fields from the Customer
1185
+ */
1186
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
1187
+ /**
1188
+ * Choose, which related nodes to fetch as well
1189
+ */
1190
+ include?: Prisma.CustomerInclude<ExtArgs> | null;
1191
+ /**
1192
+ * Filter, which Customer to fetch.
1193
+ */
1194
+ where?: Prisma.CustomerWhereInput;
1195
+ /**
1196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1197
+ *
1198
+ * Determine the order of Customers to fetch.
1199
+ */
1200
+ orderBy?: Prisma.CustomerOrderByWithRelationInput | Prisma.CustomerOrderByWithRelationInput[];
1201
+ /**
1202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1203
+ *
1204
+ * Sets the position for searching for Customers.
1205
+ */
1206
+ cursor?: Prisma.CustomerWhereUniqueInput;
1207
+ /**
1208
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1209
+ *
1210
+ * Take `±n` Customers from the position of the cursor.
1211
+ */
1212
+ take?: number;
1213
+ /**
1214
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1215
+ *
1216
+ * Skip the first `n` Customers.
1217
+ */
1218
+ skip?: number;
1219
+ /**
1220
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1221
+ *
1222
+ * Filter by unique combinations of Customers.
1223
+ */
1224
+ distinct?: Prisma.CustomerScalarFieldEnum | Prisma.CustomerScalarFieldEnum[];
1225
+ };
1226
+ /**
1227
+ * Customer findMany
1228
+ */
1229
+ export type CustomerFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1230
+ /**
1231
+ * Select specific fields to fetch from the Customer
1232
+ */
1233
+ select?: Prisma.CustomerSelect<ExtArgs> | null;
1234
+ /**
1235
+ * Omit specific fields from the Customer
1236
+ */
1237
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
1238
+ /**
1239
+ * Choose, which related nodes to fetch as well
1240
+ */
1241
+ include?: Prisma.CustomerInclude<ExtArgs> | null;
1242
+ /**
1243
+ * Filter, which Customers to fetch.
1244
+ */
1245
+ where?: Prisma.CustomerWhereInput;
1246
+ /**
1247
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1248
+ *
1249
+ * Determine the order of Customers to fetch.
1250
+ */
1251
+ orderBy?: Prisma.CustomerOrderByWithRelationInput | Prisma.CustomerOrderByWithRelationInput[];
1252
+ /**
1253
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1254
+ *
1255
+ * Sets the position for listing Customers.
1256
+ */
1257
+ cursor?: Prisma.CustomerWhereUniqueInput;
1258
+ /**
1259
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1260
+ *
1261
+ * Take `±n` Customers from the position of the cursor.
1262
+ */
1263
+ take?: number;
1264
+ /**
1265
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1266
+ *
1267
+ * Skip the first `n` Customers.
1268
+ */
1269
+ skip?: number;
1270
+ distinct?: Prisma.CustomerScalarFieldEnum | Prisma.CustomerScalarFieldEnum[];
1271
+ };
1272
+ /**
1273
+ * Customer create
1274
+ */
1275
+ export type CustomerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1276
+ /**
1277
+ * Select specific fields to fetch from the Customer
1278
+ */
1279
+ select?: Prisma.CustomerSelect<ExtArgs> | null;
1280
+ /**
1281
+ * Omit specific fields from the Customer
1282
+ */
1283
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
1284
+ /**
1285
+ * Choose, which related nodes to fetch as well
1286
+ */
1287
+ include?: Prisma.CustomerInclude<ExtArgs> | null;
1288
+ /**
1289
+ * The data needed to create a Customer.
1290
+ */
1291
+ data: Prisma.XOR<Prisma.CustomerCreateInput, Prisma.CustomerUncheckedCreateInput>;
1292
+ };
1293
+ /**
1294
+ * Customer createMany
1295
+ */
1296
+ export type CustomerCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1297
+ /**
1298
+ * The data used to create many Customers.
1299
+ */
1300
+ data: Prisma.CustomerCreateManyInput | Prisma.CustomerCreateManyInput[];
1301
+ };
1302
+ /**
1303
+ * Customer createManyAndReturn
1304
+ */
1305
+ export type CustomerCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1306
+ /**
1307
+ * Select specific fields to fetch from the Customer
1308
+ */
1309
+ select?: Prisma.CustomerSelectCreateManyAndReturn<ExtArgs> | null;
1310
+ /**
1311
+ * Omit specific fields from the Customer
1312
+ */
1313
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
1314
+ /**
1315
+ * The data used to create many Customers.
1316
+ */
1317
+ data: Prisma.CustomerCreateManyInput | Prisma.CustomerCreateManyInput[];
1318
+ };
1319
+ /**
1320
+ * Customer update
1321
+ */
1322
+ export type CustomerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1323
+ /**
1324
+ * Select specific fields to fetch from the Customer
1325
+ */
1326
+ select?: Prisma.CustomerSelect<ExtArgs> | null;
1327
+ /**
1328
+ * Omit specific fields from the Customer
1329
+ */
1330
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
1331
+ /**
1332
+ * Choose, which related nodes to fetch as well
1333
+ */
1334
+ include?: Prisma.CustomerInclude<ExtArgs> | null;
1335
+ /**
1336
+ * The data needed to update a Customer.
1337
+ */
1338
+ data: Prisma.XOR<Prisma.CustomerUpdateInput, Prisma.CustomerUncheckedUpdateInput>;
1339
+ /**
1340
+ * Choose, which Customer to update.
1341
+ */
1342
+ where: Prisma.CustomerWhereUniqueInput;
1343
+ };
1344
+ /**
1345
+ * Customer updateMany
1346
+ */
1347
+ export type CustomerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1348
+ /**
1349
+ * The data used to update Customers.
1350
+ */
1351
+ data: Prisma.XOR<Prisma.CustomerUpdateManyMutationInput, Prisma.CustomerUncheckedUpdateManyInput>;
1352
+ /**
1353
+ * Filter which Customers to update
1354
+ */
1355
+ where?: Prisma.CustomerWhereInput;
1356
+ /**
1357
+ * Limit how many Customers to update.
1358
+ */
1359
+ limit?: number;
1360
+ };
1361
+ /**
1362
+ * Customer updateManyAndReturn
1363
+ */
1364
+ export type CustomerUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1365
+ /**
1366
+ * Select specific fields to fetch from the Customer
1367
+ */
1368
+ select?: Prisma.CustomerSelectUpdateManyAndReturn<ExtArgs> | null;
1369
+ /**
1370
+ * Omit specific fields from the Customer
1371
+ */
1372
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
1373
+ /**
1374
+ * The data used to update Customers.
1375
+ */
1376
+ data: Prisma.XOR<Prisma.CustomerUpdateManyMutationInput, Prisma.CustomerUncheckedUpdateManyInput>;
1377
+ /**
1378
+ * Filter which Customers to update
1379
+ */
1380
+ where?: Prisma.CustomerWhereInput;
1381
+ /**
1382
+ * Limit how many Customers to update.
1383
+ */
1384
+ limit?: number;
1385
+ };
1386
+ /**
1387
+ * Customer upsert
1388
+ */
1389
+ export type CustomerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1390
+ /**
1391
+ * Select specific fields to fetch from the Customer
1392
+ */
1393
+ select?: Prisma.CustomerSelect<ExtArgs> | null;
1394
+ /**
1395
+ * Omit specific fields from the Customer
1396
+ */
1397
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
1398
+ /**
1399
+ * Choose, which related nodes to fetch as well
1400
+ */
1401
+ include?: Prisma.CustomerInclude<ExtArgs> | null;
1402
+ /**
1403
+ * The filter to search for the Customer to update in case it exists.
1404
+ */
1405
+ where: Prisma.CustomerWhereUniqueInput;
1406
+ /**
1407
+ * In case the Customer found by the `where` argument doesn't exist, create a new Customer with this data.
1408
+ */
1409
+ create: Prisma.XOR<Prisma.CustomerCreateInput, Prisma.CustomerUncheckedCreateInput>;
1410
+ /**
1411
+ * In case the Customer was found with the provided `where` argument, update it with this data.
1412
+ */
1413
+ update: Prisma.XOR<Prisma.CustomerUpdateInput, Prisma.CustomerUncheckedUpdateInput>;
1414
+ };
1415
+ /**
1416
+ * Customer delete
1417
+ */
1418
+ export type CustomerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1419
+ /**
1420
+ * Select specific fields to fetch from the Customer
1421
+ */
1422
+ select?: Prisma.CustomerSelect<ExtArgs> | null;
1423
+ /**
1424
+ * Omit specific fields from the Customer
1425
+ */
1426
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
1427
+ /**
1428
+ * Choose, which related nodes to fetch as well
1429
+ */
1430
+ include?: Prisma.CustomerInclude<ExtArgs> | null;
1431
+ /**
1432
+ * Filter which Customer to delete.
1433
+ */
1434
+ where: Prisma.CustomerWhereUniqueInput;
1435
+ };
1436
+ /**
1437
+ * Customer deleteMany
1438
+ */
1439
+ export type CustomerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1440
+ /**
1441
+ * Filter which Customers to delete
1442
+ */
1443
+ where?: Prisma.CustomerWhereInput;
1444
+ /**
1445
+ * Limit how many Customers to delete.
1446
+ */
1447
+ limit?: number;
1448
+ };
1449
+ /**
1450
+ * Customer.addresses
1451
+ */
1452
+ export type Customer$addressesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1453
+ /**
1454
+ * Select specific fields to fetch from the CustomerAddress
1455
+ */
1456
+ select?: Prisma.CustomerAddressSelect<ExtArgs> | null;
1457
+ /**
1458
+ * Omit specific fields from the CustomerAddress
1459
+ */
1460
+ omit?: Prisma.CustomerAddressOmit<ExtArgs> | null;
1461
+ /**
1462
+ * Choose, which related nodes to fetch as well
1463
+ */
1464
+ include?: Prisma.CustomerAddressInclude<ExtArgs> | null;
1465
+ where?: Prisma.CustomerAddressWhereInput;
1466
+ orderBy?: Prisma.CustomerAddressOrderByWithRelationInput | Prisma.CustomerAddressOrderByWithRelationInput[];
1467
+ cursor?: Prisma.CustomerAddressWhereUniqueInput;
1468
+ take?: number;
1469
+ skip?: number;
1470
+ distinct?: Prisma.CustomerAddressScalarFieldEnum | Prisma.CustomerAddressScalarFieldEnum[];
1471
+ };
1472
+ /**
1473
+ * Customer.carts
1474
+ */
1475
+ export type Customer$cartsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1476
+ /**
1477
+ * Select specific fields to fetch from the Cart
1478
+ */
1479
+ select?: Prisma.CartSelect<ExtArgs> | null;
1480
+ /**
1481
+ * Omit specific fields from the Cart
1482
+ */
1483
+ omit?: Prisma.CartOmit<ExtArgs> | null;
1484
+ /**
1485
+ * Choose, which related nodes to fetch as well
1486
+ */
1487
+ include?: Prisma.CartInclude<ExtArgs> | null;
1488
+ where?: Prisma.CartWhereInput;
1489
+ orderBy?: Prisma.CartOrderByWithRelationInput | Prisma.CartOrderByWithRelationInput[];
1490
+ cursor?: Prisma.CartWhereUniqueInput;
1491
+ take?: number;
1492
+ skip?: number;
1493
+ distinct?: Prisma.CartScalarFieldEnum | Prisma.CartScalarFieldEnum[];
1494
+ };
1495
+ /**
1496
+ * Customer.orders
1497
+ */
1498
+ export type Customer$ordersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1499
+ /**
1500
+ * Select specific fields to fetch from the Order
1501
+ */
1502
+ select?: Prisma.OrderSelect<ExtArgs> | null;
1503
+ /**
1504
+ * Omit specific fields from the Order
1505
+ */
1506
+ omit?: Prisma.OrderOmit<ExtArgs> | null;
1507
+ /**
1508
+ * Choose, which related nodes to fetch as well
1509
+ */
1510
+ include?: Prisma.OrderInclude<ExtArgs> | null;
1511
+ where?: Prisma.OrderWhereInput;
1512
+ orderBy?: Prisma.OrderOrderByWithRelationInput | Prisma.OrderOrderByWithRelationInput[];
1513
+ cursor?: Prisma.OrderWhereUniqueInput;
1514
+ take?: number;
1515
+ skip?: number;
1516
+ distinct?: Prisma.OrderScalarFieldEnum | Prisma.OrderScalarFieldEnum[];
1517
+ };
1518
+ /**
1519
+ * Customer without action
1520
+ */
1521
+ export type CustomerDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1522
+ /**
1523
+ * Select specific fields to fetch from the Customer
1524
+ */
1525
+ select?: Prisma.CustomerSelect<ExtArgs> | null;
1526
+ /**
1527
+ * Omit specific fields from the Customer
1528
+ */
1529
+ omit?: Prisma.CustomerOmit<ExtArgs> | null;
1530
+ /**
1531
+ * Choose, which related nodes to fetch as well
1532
+ */
1533
+ include?: Prisma.CustomerInclude<ExtArgs> | null;
1534
+ };
1535
+ export {};
1536
+ //# sourceMappingURL=Customer.d.ts.map