@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,1154 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model ProductCategory
5
+ *
6
+ */
7
+ export type ProductCategoryModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductCategoryPayload>;
8
+ export type AggregateProductCategory = {
9
+ _count: ProductCategoryCountAggregateOutputType | null;
10
+ _min: ProductCategoryMinAggregateOutputType | null;
11
+ _max: ProductCategoryMaxAggregateOutputType | null;
12
+ };
13
+ export type ProductCategoryMinAggregateOutputType = {
14
+ productId: string | null;
15
+ categoryId: string | null;
16
+ };
17
+ export type ProductCategoryMaxAggregateOutputType = {
18
+ productId: string | null;
19
+ categoryId: string | null;
20
+ };
21
+ export type ProductCategoryCountAggregateOutputType = {
22
+ productId: number;
23
+ categoryId: number;
24
+ _all: number;
25
+ };
26
+ export type ProductCategoryMinAggregateInputType = {
27
+ productId?: true;
28
+ categoryId?: true;
29
+ };
30
+ export type ProductCategoryMaxAggregateInputType = {
31
+ productId?: true;
32
+ categoryId?: true;
33
+ };
34
+ export type ProductCategoryCountAggregateInputType = {
35
+ productId?: true;
36
+ categoryId?: true;
37
+ _all?: true;
38
+ };
39
+ export type ProductCategoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
40
+ /**
41
+ * Filter which ProductCategory to aggregate.
42
+ */
43
+ where?: Prisma.ProductCategoryWhereInput;
44
+ /**
45
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
46
+ *
47
+ * Determine the order of ProductCategories to fetch.
48
+ */
49
+ orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
50
+ /**
51
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
52
+ *
53
+ * Sets the start position
54
+ */
55
+ cursor?: Prisma.ProductCategoryWhereUniqueInput;
56
+ /**
57
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
58
+ *
59
+ * Take `±n` ProductCategories from the position of the cursor.
60
+ */
61
+ take?: number;
62
+ /**
63
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
64
+ *
65
+ * Skip the first `n` ProductCategories.
66
+ */
67
+ skip?: number;
68
+ /**
69
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
70
+ *
71
+ * Count returned ProductCategories
72
+ **/
73
+ _count?: true | ProductCategoryCountAggregateInputType;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
76
+ *
77
+ * Select which fields to find the minimum value
78
+ **/
79
+ _min?: ProductCategoryMinAggregateInputType;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
82
+ *
83
+ * Select which fields to find the maximum value
84
+ **/
85
+ _max?: ProductCategoryMaxAggregateInputType;
86
+ };
87
+ export type GetProductCategoryAggregateType<T extends ProductCategoryAggregateArgs> = {
88
+ [P in keyof T & keyof AggregateProductCategory]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateProductCategory[P]> : Prisma.GetScalarType<T[P], AggregateProductCategory[P]>;
89
+ };
90
+ export type ProductCategoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
91
+ where?: Prisma.ProductCategoryWhereInput;
92
+ orderBy?: Prisma.ProductCategoryOrderByWithAggregationInput | Prisma.ProductCategoryOrderByWithAggregationInput[];
93
+ by: Prisma.ProductCategoryScalarFieldEnum[] | Prisma.ProductCategoryScalarFieldEnum;
94
+ having?: Prisma.ProductCategoryScalarWhereWithAggregatesInput;
95
+ take?: number;
96
+ skip?: number;
97
+ _count?: ProductCategoryCountAggregateInputType | true;
98
+ _min?: ProductCategoryMinAggregateInputType;
99
+ _max?: ProductCategoryMaxAggregateInputType;
100
+ };
101
+ export type ProductCategoryGroupByOutputType = {
102
+ productId: string;
103
+ categoryId: string;
104
+ _count: ProductCategoryCountAggregateOutputType | null;
105
+ _min: ProductCategoryMinAggregateOutputType | null;
106
+ _max: ProductCategoryMaxAggregateOutputType | null;
107
+ };
108
+ type GetProductCategoryGroupByPayload<T extends ProductCategoryGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ProductCategoryGroupByOutputType, T['by']> & {
109
+ [P in ((keyof T) & (keyof ProductCategoryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ProductCategoryGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ProductCategoryGroupByOutputType[P]>;
110
+ }>>;
111
+ export type ProductCategoryWhereInput = {
112
+ AND?: Prisma.ProductCategoryWhereInput | Prisma.ProductCategoryWhereInput[];
113
+ OR?: Prisma.ProductCategoryWhereInput[];
114
+ NOT?: Prisma.ProductCategoryWhereInput | Prisma.ProductCategoryWhereInput[];
115
+ productId?: Prisma.StringFilter<"ProductCategory"> | string;
116
+ categoryId?: Prisma.StringFilter<"ProductCategory"> | string;
117
+ product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>;
118
+ category?: Prisma.XOR<Prisma.CategoryScalarRelationFilter, Prisma.CategoryWhereInput>;
119
+ };
120
+ export type ProductCategoryOrderByWithRelationInput = {
121
+ productId?: Prisma.SortOrder;
122
+ categoryId?: Prisma.SortOrder;
123
+ product?: Prisma.ProductOrderByWithRelationInput;
124
+ category?: Prisma.CategoryOrderByWithRelationInput;
125
+ };
126
+ export type ProductCategoryWhereUniqueInput = Prisma.AtLeast<{
127
+ productId_categoryId?: Prisma.ProductCategoryProductIdCategoryIdCompoundUniqueInput;
128
+ AND?: Prisma.ProductCategoryWhereInput | Prisma.ProductCategoryWhereInput[];
129
+ OR?: Prisma.ProductCategoryWhereInput[];
130
+ NOT?: Prisma.ProductCategoryWhereInput | Prisma.ProductCategoryWhereInput[];
131
+ productId?: Prisma.StringFilter<"ProductCategory"> | string;
132
+ categoryId?: Prisma.StringFilter<"ProductCategory"> | string;
133
+ product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>;
134
+ category?: Prisma.XOR<Prisma.CategoryScalarRelationFilter, Prisma.CategoryWhereInput>;
135
+ }, "productId_categoryId">;
136
+ export type ProductCategoryOrderByWithAggregationInput = {
137
+ productId?: Prisma.SortOrder;
138
+ categoryId?: Prisma.SortOrder;
139
+ _count?: Prisma.ProductCategoryCountOrderByAggregateInput;
140
+ _max?: Prisma.ProductCategoryMaxOrderByAggregateInput;
141
+ _min?: Prisma.ProductCategoryMinOrderByAggregateInput;
142
+ };
143
+ export type ProductCategoryScalarWhereWithAggregatesInput = {
144
+ AND?: Prisma.ProductCategoryScalarWhereWithAggregatesInput | Prisma.ProductCategoryScalarWhereWithAggregatesInput[];
145
+ OR?: Prisma.ProductCategoryScalarWhereWithAggregatesInput[];
146
+ NOT?: Prisma.ProductCategoryScalarWhereWithAggregatesInput | Prisma.ProductCategoryScalarWhereWithAggregatesInput[];
147
+ productId?: Prisma.StringWithAggregatesFilter<"ProductCategory"> | string;
148
+ categoryId?: Prisma.StringWithAggregatesFilter<"ProductCategory"> | string;
149
+ };
150
+ export type ProductCategoryCreateInput = {
151
+ product: Prisma.ProductCreateNestedOneWithoutCategoriesInput;
152
+ category: Prisma.CategoryCreateNestedOneWithoutProductsInput;
153
+ };
154
+ export type ProductCategoryUncheckedCreateInput = {
155
+ productId: string;
156
+ categoryId: string;
157
+ };
158
+ export type ProductCategoryUpdateInput = {
159
+ product?: Prisma.ProductUpdateOneRequiredWithoutCategoriesNestedInput;
160
+ category?: Prisma.CategoryUpdateOneRequiredWithoutProductsNestedInput;
161
+ };
162
+ export type ProductCategoryUncheckedUpdateInput = {
163
+ productId?: Prisma.StringFieldUpdateOperationsInput | string;
164
+ categoryId?: Prisma.StringFieldUpdateOperationsInput | string;
165
+ };
166
+ export type ProductCategoryCreateManyInput = {
167
+ productId: string;
168
+ categoryId: string;
169
+ };
170
+ export type ProductCategoryUpdateManyMutationInput = {};
171
+ export type ProductCategoryUncheckedUpdateManyInput = {
172
+ productId?: Prisma.StringFieldUpdateOperationsInput | string;
173
+ categoryId?: Prisma.StringFieldUpdateOperationsInput | string;
174
+ };
175
+ export type ProductCategoryListRelationFilter = {
176
+ every?: Prisma.ProductCategoryWhereInput;
177
+ some?: Prisma.ProductCategoryWhereInput;
178
+ none?: Prisma.ProductCategoryWhereInput;
179
+ };
180
+ export type ProductCategoryOrderByRelationAggregateInput = {
181
+ _count?: Prisma.SortOrder;
182
+ };
183
+ export type ProductCategoryProductIdCategoryIdCompoundUniqueInput = {
184
+ productId: string;
185
+ categoryId: string;
186
+ };
187
+ export type ProductCategoryCountOrderByAggregateInput = {
188
+ productId?: Prisma.SortOrder;
189
+ categoryId?: Prisma.SortOrder;
190
+ };
191
+ export type ProductCategoryMaxOrderByAggregateInput = {
192
+ productId?: Prisma.SortOrder;
193
+ categoryId?: Prisma.SortOrder;
194
+ };
195
+ export type ProductCategoryMinOrderByAggregateInput = {
196
+ productId?: Prisma.SortOrder;
197
+ categoryId?: Prisma.SortOrder;
198
+ };
199
+ export type ProductCategoryCreateNestedManyWithoutCategoryInput = {
200
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutCategoryInput, Prisma.ProductCategoryUncheckedCreateWithoutCategoryInput> | Prisma.ProductCategoryCreateWithoutCategoryInput[] | Prisma.ProductCategoryUncheckedCreateWithoutCategoryInput[];
201
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutCategoryInput | Prisma.ProductCategoryCreateOrConnectWithoutCategoryInput[];
202
+ createMany?: Prisma.ProductCategoryCreateManyCategoryInputEnvelope;
203
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
204
+ };
205
+ export type ProductCategoryUncheckedCreateNestedManyWithoutCategoryInput = {
206
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutCategoryInput, Prisma.ProductCategoryUncheckedCreateWithoutCategoryInput> | Prisma.ProductCategoryCreateWithoutCategoryInput[] | Prisma.ProductCategoryUncheckedCreateWithoutCategoryInput[];
207
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutCategoryInput | Prisma.ProductCategoryCreateOrConnectWithoutCategoryInput[];
208
+ createMany?: Prisma.ProductCategoryCreateManyCategoryInputEnvelope;
209
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
210
+ };
211
+ export type ProductCategoryUpdateManyWithoutCategoryNestedInput = {
212
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutCategoryInput, Prisma.ProductCategoryUncheckedCreateWithoutCategoryInput> | Prisma.ProductCategoryCreateWithoutCategoryInput[] | Prisma.ProductCategoryUncheckedCreateWithoutCategoryInput[];
213
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutCategoryInput | Prisma.ProductCategoryCreateOrConnectWithoutCategoryInput[];
214
+ upsert?: Prisma.ProductCategoryUpsertWithWhereUniqueWithoutCategoryInput | Prisma.ProductCategoryUpsertWithWhereUniqueWithoutCategoryInput[];
215
+ createMany?: Prisma.ProductCategoryCreateManyCategoryInputEnvelope;
216
+ set?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
217
+ disconnect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
218
+ delete?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
219
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
220
+ update?: Prisma.ProductCategoryUpdateWithWhereUniqueWithoutCategoryInput | Prisma.ProductCategoryUpdateWithWhereUniqueWithoutCategoryInput[];
221
+ updateMany?: Prisma.ProductCategoryUpdateManyWithWhereWithoutCategoryInput | Prisma.ProductCategoryUpdateManyWithWhereWithoutCategoryInput[];
222
+ deleteMany?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[];
223
+ };
224
+ export type ProductCategoryUncheckedUpdateManyWithoutCategoryNestedInput = {
225
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutCategoryInput, Prisma.ProductCategoryUncheckedCreateWithoutCategoryInput> | Prisma.ProductCategoryCreateWithoutCategoryInput[] | Prisma.ProductCategoryUncheckedCreateWithoutCategoryInput[];
226
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutCategoryInput | Prisma.ProductCategoryCreateOrConnectWithoutCategoryInput[];
227
+ upsert?: Prisma.ProductCategoryUpsertWithWhereUniqueWithoutCategoryInput | Prisma.ProductCategoryUpsertWithWhereUniqueWithoutCategoryInput[];
228
+ createMany?: Prisma.ProductCategoryCreateManyCategoryInputEnvelope;
229
+ set?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
230
+ disconnect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
231
+ delete?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
232
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
233
+ update?: Prisma.ProductCategoryUpdateWithWhereUniqueWithoutCategoryInput | Prisma.ProductCategoryUpdateWithWhereUniqueWithoutCategoryInput[];
234
+ updateMany?: Prisma.ProductCategoryUpdateManyWithWhereWithoutCategoryInput | Prisma.ProductCategoryUpdateManyWithWhereWithoutCategoryInput[];
235
+ deleteMany?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[];
236
+ };
237
+ export type ProductCategoryCreateNestedManyWithoutProductInput = {
238
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductInput, Prisma.ProductCategoryUncheckedCreateWithoutProductInput> | Prisma.ProductCategoryCreateWithoutProductInput[] | Prisma.ProductCategoryUncheckedCreateWithoutProductInput[];
239
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductInput | Prisma.ProductCategoryCreateOrConnectWithoutProductInput[];
240
+ createMany?: Prisma.ProductCategoryCreateManyProductInputEnvelope;
241
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
242
+ };
243
+ export type ProductCategoryUncheckedCreateNestedManyWithoutProductInput = {
244
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductInput, Prisma.ProductCategoryUncheckedCreateWithoutProductInput> | Prisma.ProductCategoryCreateWithoutProductInput[] | Prisma.ProductCategoryUncheckedCreateWithoutProductInput[];
245
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductInput | Prisma.ProductCategoryCreateOrConnectWithoutProductInput[];
246
+ createMany?: Prisma.ProductCategoryCreateManyProductInputEnvelope;
247
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
248
+ };
249
+ export type ProductCategoryUpdateManyWithoutProductNestedInput = {
250
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductInput, Prisma.ProductCategoryUncheckedCreateWithoutProductInput> | Prisma.ProductCategoryCreateWithoutProductInput[] | Prisma.ProductCategoryUncheckedCreateWithoutProductInput[];
251
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductInput | Prisma.ProductCategoryCreateOrConnectWithoutProductInput[];
252
+ upsert?: Prisma.ProductCategoryUpsertWithWhereUniqueWithoutProductInput | Prisma.ProductCategoryUpsertWithWhereUniqueWithoutProductInput[];
253
+ createMany?: Prisma.ProductCategoryCreateManyProductInputEnvelope;
254
+ set?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
255
+ disconnect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
256
+ delete?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
257
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
258
+ update?: Prisma.ProductCategoryUpdateWithWhereUniqueWithoutProductInput | Prisma.ProductCategoryUpdateWithWhereUniqueWithoutProductInput[];
259
+ updateMany?: Prisma.ProductCategoryUpdateManyWithWhereWithoutProductInput | Prisma.ProductCategoryUpdateManyWithWhereWithoutProductInput[];
260
+ deleteMany?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[];
261
+ };
262
+ export type ProductCategoryUncheckedUpdateManyWithoutProductNestedInput = {
263
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductInput, Prisma.ProductCategoryUncheckedCreateWithoutProductInput> | Prisma.ProductCategoryCreateWithoutProductInput[] | Prisma.ProductCategoryUncheckedCreateWithoutProductInput[];
264
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductInput | Prisma.ProductCategoryCreateOrConnectWithoutProductInput[];
265
+ upsert?: Prisma.ProductCategoryUpsertWithWhereUniqueWithoutProductInput | Prisma.ProductCategoryUpsertWithWhereUniqueWithoutProductInput[];
266
+ createMany?: Prisma.ProductCategoryCreateManyProductInputEnvelope;
267
+ set?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
268
+ disconnect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
269
+ delete?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
270
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
271
+ update?: Prisma.ProductCategoryUpdateWithWhereUniqueWithoutProductInput | Prisma.ProductCategoryUpdateWithWhereUniqueWithoutProductInput[];
272
+ updateMany?: Prisma.ProductCategoryUpdateManyWithWhereWithoutProductInput | Prisma.ProductCategoryUpdateManyWithWhereWithoutProductInput[];
273
+ deleteMany?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[];
274
+ };
275
+ export type ProductCategoryCreateWithoutCategoryInput = {
276
+ product: Prisma.ProductCreateNestedOneWithoutCategoriesInput;
277
+ };
278
+ export type ProductCategoryUncheckedCreateWithoutCategoryInput = {
279
+ productId: string;
280
+ };
281
+ export type ProductCategoryCreateOrConnectWithoutCategoryInput = {
282
+ where: Prisma.ProductCategoryWhereUniqueInput;
283
+ create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutCategoryInput, Prisma.ProductCategoryUncheckedCreateWithoutCategoryInput>;
284
+ };
285
+ export type ProductCategoryCreateManyCategoryInputEnvelope = {
286
+ data: Prisma.ProductCategoryCreateManyCategoryInput | Prisma.ProductCategoryCreateManyCategoryInput[];
287
+ };
288
+ export type ProductCategoryUpsertWithWhereUniqueWithoutCategoryInput = {
289
+ where: Prisma.ProductCategoryWhereUniqueInput;
290
+ update: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutCategoryInput, Prisma.ProductCategoryUncheckedUpdateWithoutCategoryInput>;
291
+ create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutCategoryInput, Prisma.ProductCategoryUncheckedCreateWithoutCategoryInput>;
292
+ };
293
+ export type ProductCategoryUpdateWithWhereUniqueWithoutCategoryInput = {
294
+ where: Prisma.ProductCategoryWhereUniqueInput;
295
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutCategoryInput, Prisma.ProductCategoryUncheckedUpdateWithoutCategoryInput>;
296
+ };
297
+ export type ProductCategoryUpdateManyWithWhereWithoutCategoryInput = {
298
+ where: Prisma.ProductCategoryScalarWhereInput;
299
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyWithoutCategoryInput>;
300
+ };
301
+ export type ProductCategoryScalarWhereInput = {
302
+ AND?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[];
303
+ OR?: Prisma.ProductCategoryScalarWhereInput[];
304
+ NOT?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[];
305
+ productId?: Prisma.StringFilter<"ProductCategory"> | string;
306
+ categoryId?: Prisma.StringFilter<"ProductCategory"> | string;
307
+ };
308
+ export type ProductCategoryCreateWithoutProductInput = {
309
+ category: Prisma.CategoryCreateNestedOneWithoutProductsInput;
310
+ };
311
+ export type ProductCategoryUncheckedCreateWithoutProductInput = {
312
+ categoryId: string;
313
+ };
314
+ export type ProductCategoryCreateOrConnectWithoutProductInput = {
315
+ where: Prisma.ProductCategoryWhereUniqueInput;
316
+ create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductInput, Prisma.ProductCategoryUncheckedCreateWithoutProductInput>;
317
+ };
318
+ export type ProductCategoryCreateManyProductInputEnvelope = {
319
+ data: Prisma.ProductCategoryCreateManyProductInput | Prisma.ProductCategoryCreateManyProductInput[];
320
+ };
321
+ export type ProductCategoryUpsertWithWhereUniqueWithoutProductInput = {
322
+ where: Prisma.ProductCategoryWhereUniqueInput;
323
+ update: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutProductInput, Prisma.ProductCategoryUncheckedUpdateWithoutProductInput>;
324
+ create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductInput, Prisma.ProductCategoryUncheckedCreateWithoutProductInput>;
325
+ };
326
+ export type ProductCategoryUpdateWithWhereUniqueWithoutProductInput = {
327
+ where: Prisma.ProductCategoryWhereUniqueInput;
328
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutProductInput, Prisma.ProductCategoryUncheckedUpdateWithoutProductInput>;
329
+ };
330
+ export type ProductCategoryUpdateManyWithWhereWithoutProductInput = {
331
+ where: Prisma.ProductCategoryScalarWhereInput;
332
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyWithoutProductInput>;
333
+ };
334
+ export type ProductCategoryCreateManyCategoryInput = {
335
+ productId: string;
336
+ };
337
+ export type ProductCategoryUpdateWithoutCategoryInput = {
338
+ product?: Prisma.ProductUpdateOneRequiredWithoutCategoriesNestedInput;
339
+ };
340
+ export type ProductCategoryUncheckedUpdateWithoutCategoryInput = {
341
+ productId?: Prisma.StringFieldUpdateOperationsInput | string;
342
+ };
343
+ export type ProductCategoryUncheckedUpdateManyWithoutCategoryInput = {
344
+ productId?: Prisma.StringFieldUpdateOperationsInput | string;
345
+ };
346
+ export type ProductCategoryCreateManyProductInput = {
347
+ categoryId: string;
348
+ };
349
+ export type ProductCategoryUpdateWithoutProductInput = {
350
+ category?: Prisma.CategoryUpdateOneRequiredWithoutProductsNestedInput;
351
+ };
352
+ export type ProductCategoryUncheckedUpdateWithoutProductInput = {
353
+ categoryId?: Prisma.StringFieldUpdateOperationsInput | string;
354
+ };
355
+ export type ProductCategoryUncheckedUpdateManyWithoutProductInput = {
356
+ categoryId?: Prisma.StringFieldUpdateOperationsInput | string;
357
+ };
358
+ export type ProductCategorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
359
+ productId?: boolean;
360
+ categoryId?: boolean;
361
+ product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
362
+ category?: boolean | Prisma.CategoryDefaultArgs<ExtArgs>;
363
+ }, ExtArgs["result"]["productCategory"]>;
364
+ export type ProductCategorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
365
+ productId?: boolean;
366
+ categoryId?: boolean;
367
+ product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
368
+ category?: boolean | Prisma.CategoryDefaultArgs<ExtArgs>;
369
+ }, ExtArgs["result"]["productCategory"]>;
370
+ export type ProductCategorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
371
+ productId?: boolean;
372
+ categoryId?: boolean;
373
+ product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
374
+ category?: boolean | Prisma.CategoryDefaultArgs<ExtArgs>;
375
+ }, ExtArgs["result"]["productCategory"]>;
376
+ export type ProductCategorySelectScalar = {
377
+ productId?: boolean;
378
+ categoryId?: boolean;
379
+ };
380
+ export type ProductCategoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"productId" | "categoryId", ExtArgs["result"]["productCategory"]>;
381
+ export type ProductCategoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
382
+ product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
383
+ category?: boolean | Prisma.CategoryDefaultArgs<ExtArgs>;
384
+ };
385
+ export type ProductCategoryIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
386
+ product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
387
+ category?: boolean | Prisma.CategoryDefaultArgs<ExtArgs>;
388
+ };
389
+ export type ProductCategoryIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
390
+ product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
391
+ category?: boolean | Prisma.CategoryDefaultArgs<ExtArgs>;
392
+ };
393
+ export type $ProductCategoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
394
+ name: "ProductCategory";
395
+ objects: {
396
+ product: Prisma.$ProductPayload<ExtArgs>;
397
+ category: Prisma.$CategoryPayload<ExtArgs>;
398
+ };
399
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
400
+ productId: string;
401
+ categoryId: string;
402
+ }, ExtArgs["result"]["productCategory"]>;
403
+ composites: {};
404
+ };
405
+ export type ProductCategoryGetPayload<S extends boolean | null | undefined | ProductCategoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload, S>;
406
+ export type ProductCategoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ProductCategoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
407
+ select?: ProductCategoryCountAggregateInputType | true;
408
+ };
409
+ export interface ProductCategoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
410
+ [K: symbol]: {
411
+ types: Prisma.TypeMap<ExtArgs>['model']['ProductCategory'];
412
+ meta: {
413
+ name: 'ProductCategory';
414
+ };
415
+ };
416
+ /**
417
+ * Find zero or one ProductCategory that matches the filter.
418
+ * @param {ProductCategoryFindUniqueArgs} args - Arguments to find a ProductCategory
419
+ * @example
420
+ * // Get one ProductCategory
421
+ * const productCategory = await prisma.productCategory.findUnique({
422
+ * where: {
423
+ * // ... provide filter here
424
+ * }
425
+ * })
426
+ */
427
+ findUnique<T extends ProductCategoryFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductCategoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
428
+ /**
429
+ * Find one ProductCategory that matches the filter or throw an error with `error.code='P2025'`
430
+ * if no matches were found.
431
+ * @param {ProductCategoryFindUniqueOrThrowArgs} args - Arguments to find a ProductCategory
432
+ * @example
433
+ * // Get one ProductCategory
434
+ * const productCategory = await prisma.productCategory.findUniqueOrThrow({
435
+ * where: {
436
+ * // ... provide filter here
437
+ * }
438
+ * })
439
+ */
440
+ findUniqueOrThrow<T extends ProductCategoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductCategoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
441
+ /**
442
+ * Find the first ProductCategory that matches the filter.
443
+ * Note, that providing `undefined` is treated as the value not being there.
444
+ * Read more here: https://pris.ly/d/null-undefined
445
+ * @param {ProductCategoryFindFirstArgs} args - Arguments to find a ProductCategory
446
+ * @example
447
+ * // Get one ProductCategory
448
+ * const productCategory = await prisma.productCategory.findFirst({
449
+ * where: {
450
+ * // ... provide filter here
451
+ * }
452
+ * })
453
+ */
454
+ findFirst<T extends ProductCategoryFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductCategoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
455
+ /**
456
+ * Find the first ProductCategory that matches the filter or
457
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
458
+ * Note, that providing `undefined` is treated as the value not being there.
459
+ * Read more here: https://pris.ly/d/null-undefined
460
+ * @param {ProductCategoryFindFirstOrThrowArgs} args - Arguments to find a ProductCategory
461
+ * @example
462
+ * // Get one ProductCategory
463
+ * const productCategory = await prisma.productCategory.findFirstOrThrow({
464
+ * where: {
465
+ * // ... provide filter here
466
+ * }
467
+ * })
468
+ */
469
+ findFirstOrThrow<T extends ProductCategoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductCategoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
470
+ /**
471
+ * Find zero or more ProductCategories that matches the filter.
472
+ * Note, that providing `undefined` is treated as the value not being there.
473
+ * Read more here: https://pris.ly/d/null-undefined
474
+ * @param {ProductCategoryFindManyArgs} args - Arguments to filter and select certain fields only.
475
+ * @example
476
+ * // Get all ProductCategories
477
+ * const productCategories = await prisma.productCategory.findMany()
478
+ *
479
+ * // Get first 10 ProductCategories
480
+ * const productCategories = await prisma.productCategory.findMany({ take: 10 })
481
+ *
482
+ * // Only select the `productId`
483
+ * const productCategoryWithProductIdOnly = await prisma.productCategory.findMany({ select: { productId: true } })
484
+ *
485
+ */
486
+ findMany<T extends ProductCategoryFindManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
487
+ /**
488
+ * Create a ProductCategory.
489
+ * @param {ProductCategoryCreateArgs} args - Arguments to create a ProductCategory.
490
+ * @example
491
+ * // Create one ProductCategory
492
+ * const ProductCategory = await prisma.productCategory.create({
493
+ * data: {
494
+ * // ... data to create a ProductCategory
495
+ * }
496
+ * })
497
+ *
498
+ */
499
+ create<T extends ProductCategoryCreateArgs>(args: Prisma.SelectSubset<T, ProductCategoryCreateArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
500
+ /**
501
+ * Create many ProductCategories.
502
+ * @param {ProductCategoryCreateManyArgs} args - Arguments to create many ProductCategories.
503
+ * @example
504
+ * // Create many ProductCategories
505
+ * const productCategory = await prisma.productCategory.createMany({
506
+ * data: [
507
+ * // ... provide data here
508
+ * ]
509
+ * })
510
+ *
511
+ */
512
+ createMany<T extends ProductCategoryCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
513
+ /**
514
+ * Create many ProductCategories and returns the data saved in the database.
515
+ * @param {ProductCategoryCreateManyAndReturnArgs} args - Arguments to create many ProductCategories.
516
+ * @example
517
+ * // Create many ProductCategories
518
+ * const productCategory = await prisma.productCategory.createManyAndReturn({
519
+ * data: [
520
+ * // ... provide data here
521
+ * ]
522
+ * })
523
+ *
524
+ * // Create many ProductCategories and only return the `productId`
525
+ * const productCategoryWithProductIdOnly = await prisma.productCategory.createManyAndReturn({
526
+ * select: { productId: true },
527
+ * data: [
528
+ * // ... provide data here
529
+ * ]
530
+ * })
531
+ * Note, that providing `undefined` is treated as the value not being there.
532
+ * Read more here: https://pris.ly/d/null-undefined
533
+ *
534
+ */
535
+ createManyAndReturn<T extends ProductCategoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProductCategoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
536
+ /**
537
+ * Delete a ProductCategory.
538
+ * @param {ProductCategoryDeleteArgs} args - Arguments to delete one ProductCategory.
539
+ * @example
540
+ * // Delete one ProductCategory
541
+ * const ProductCategory = await prisma.productCategory.delete({
542
+ * where: {
543
+ * // ... filter to delete one ProductCategory
544
+ * }
545
+ * })
546
+ *
547
+ */
548
+ delete<T extends ProductCategoryDeleteArgs>(args: Prisma.SelectSubset<T, ProductCategoryDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
549
+ /**
550
+ * Update one ProductCategory.
551
+ * @param {ProductCategoryUpdateArgs} args - Arguments to update one ProductCategory.
552
+ * @example
553
+ * // Update one ProductCategory
554
+ * const productCategory = await prisma.productCategory.update({
555
+ * where: {
556
+ * // ... provide filter here
557
+ * },
558
+ * data: {
559
+ * // ... provide data here
560
+ * }
561
+ * })
562
+ *
563
+ */
564
+ update<T extends ProductCategoryUpdateArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
565
+ /**
566
+ * Delete zero or more ProductCategories.
567
+ * @param {ProductCategoryDeleteManyArgs} args - Arguments to filter ProductCategories to delete.
568
+ * @example
569
+ * // Delete a few ProductCategories
570
+ * const { count } = await prisma.productCategory.deleteMany({
571
+ * where: {
572
+ * // ... provide filter here
573
+ * }
574
+ * })
575
+ *
576
+ */
577
+ deleteMany<T extends ProductCategoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
578
+ /**
579
+ * Update zero or more ProductCategories.
580
+ * Note, that providing `undefined` is treated as the value not being there.
581
+ * Read more here: https://pris.ly/d/null-undefined
582
+ * @param {ProductCategoryUpdateManyArgs} args - Arguments to update one or more rows.
583
+ * @example
584
+ * // Update many ProductCategories
585
+ * const productCategory = await prisma.productCategory.updateMany({
586
+ * where: {
587
+ * // ... provide filter here
588
+ * },
589
+ * data: {
590
+ * // ... provide data here
591
+ * }
592
+ * })
593
+ *
594
+ */
595
+ updateMany<T extends ProductCategoryUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
596
+ /**
597
+ * Update zero or more ProductCategories and returns the data updated in the database.
598
+ * @param {ProductCategoryUpdateManyAndReturnArgs} args - Arguments to update many ProductCategories.
599
+ * @example
600
+ * // Update many ProductCategories
601
+ * const productCategory = await prisma.productCategory.updateManyAndReturn({
602
+ * where: {
603
+ * // ... provide filter here
604
+ * },
605
+ * data: [
606
+ * // ... provide data here
607
+ * ]
608
+ * })
609
+ *
610
+ * // Update zero or more ProductCategories and only return the `productId`
611
+ * const productCategoryWithProductIdOnly = await prisma.productCategory.updateManyAndReturn({
612
+ * select: { productId: true },
613
+ * where: {
614
+ * // ... provide filter here
615
+ * },
616
+ * data: [
617
+ * // ... provide data here
618
+ * ]
619
+ * })
620
+ * Note, that providing `undefined` is treated as the value not being there.
621
+ * Read more here: https://pris.ly/d/null-undefined
622
+ *
623
+ */
624
+ updateManyAndReturn<T extends ProductCategoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
625
+ /**
626
+ * Create or update one ProductCategory.
627
+ * @param {ProductCategoryUpsertArgs} args - Arguments to update or create a ProductCategory.
628
+ * @example
629
+ * // Update or create a ProductCategory
630
+ * const productCategory = await prisma.productCategory.upsert({
631
+ * create: {
632
+ * // ... data to create a ProductCategory
633
+ * },
634
+ * update: {
635
+ * // ... in case it already exists, update
636
+ * },
637
+ * where: {
638
+ * // ... the filter for the ProductCategory we want to update
639
+ * }
640
+ * })
641
+ */
642
+ upsert<T extends ProductCategoryUpsertArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
643
+ /**
644
+ * Count the number of ProductCategories.
645
+ * Note, that providing `undefined` is treated as the value not being there.
646
+ * Read more here: https://pris.ly/d/null-undefined
647
+ * @param {ProductCategoryCountArgs} args - Arguments to filter ProductCategories to count.
648
+ * @example
649
+ * // Count the number of ProductCategories
650
+ * const count = await prisma.productCategory.count({
651
+ * where: {
652
+ * // ... the filter for the ProductCategories we want to count
653
+ * }
654
+ * })
655
+ **/
656
+ count<T extends ProductCategoryCountArgs>(args?: Prisma.Subset<T, ProductCategoryCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProductCategoryCountAggregateOutputType> : number>;
657
+ /**
658
+ * Allows you to perform aggregations operations on a ProductCategory.
659
+ * Note, that providing `undefined` is treated as the value not being there.
660
+ * Read more here: https://pris.ly/d/null-undefined
661
+ * @param {ProductCategoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
662
+ * @example
663
+ * // Ordered by age ascending
664
+ * // Where email contains prisma.io
665
+ * // Limited to the 10 users
666
+ * const aggregations = await prisma.user.aggregate({
667
+ * _avg: {
668
+ * age: true,
669
+ * },
670
+ * where: {
671
+ * email: {
672
+ * contains: "prisma.io",
673
+ * },
674
+ * },
675
+ * orderBy: {
676
+ * age: "asc",
677
+ * },
678
+ * take: 10,
679
+ * })
680
+ **/
681
+ aggregate<T extends ProductCategoryAggregateArgs>(args: Prisma.Subset<T, ProductCategoryAggregateArgs>): Prisma.PrismaPromise<GetProductCategoryAggregateType<T>>;
682
+ /**
683
+ * Group by ProductCategory.
684
+ * Note, that providing `undefined` is treated as the value not being there.
685
+ * Read more here: https://pris.ly/d/null-undefined
686
+ * @param {ProductCategoryGroupByArgs} args - Group by arguments.
687
+ * @example
688
+ * // Group by city, order by createdAt, get count
689
+ * const result = await prisma.user.groupBy({
690
+ * by: ['city', 'createdAt'],
691
+ * orderBy: {
692
+ * createdAt: true
693
+ * },
694
+ * _count: {
695
+ * _all: true
696
+ * },
697
+ * })
698
+ *
699
+ **/
700
+ groupBy<T extends ProductCategoryGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
701
+ orderBy: ProductCategoryGroupByArgs['orderBy'];
702
+ } : {
703
+ orderBy?: ProductCategoryGroupByArgs['orderBy'];
704
+ }, 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 ? {
705
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
706
+ Error,
707
+ 'Field ',
708
+ P,
709
+ ` in "having" needs to be provided in "by"`
710
+ ];
711
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
712
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
713
+ }[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 ? {} : {
714
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
715
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
716
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
717
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ProductCategoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductCategoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
718
+ /**
719
+ * Fields of the ProductCategory model
720
+ */
721
+ readonly fields: ProductCategoryFieldRefs;
722
+ }
723
+ /**
724
+ * The delegate class that acts as a "Promise-like" for ProductCategory.
725
+ * Why is this prefixed with `Prisma__`?
726
+ * Because we want to prevent naming conflicts as mentioned in
727
+ * https://github.com/prisma/prisma-client-js/issues/707
728
+ */
729
+ export interface Prisma__ProductCategoryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
730
+ readonly [Symbol.toStringTag]: "PrismaPromise";
731
+ product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
732
+ category<T extends Prisma.CategoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CategoryDefaultArgs<ExtArgs>>): Prisma.Prisma__CategoryClient<runtime.Types.Result.GetResult<Prisma.$CategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
733
+ /**
734
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
735
+ * @param onfulfilled The callback to execute when the Promise is resolved.
736
+ * @param onrejected The callback to execute when the Promise is rejected.
737
+ * @returns A Promise for the completion of which ever callback is executed.
738
+ */
739
+ 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>;
740
+ /**
741
+ * Attaches a callback for only the rejection of the Promise.
742
+ * @param onrejected The callback to execute when the Promise is rejected.
743
+ * @returns A Promise for the completion of the callback.
744
+ */
745
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
746
+ /**
747
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
748
+ * resolved value cannot be modified from the callback.
749
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
750
+ * @returns A Promise for the completion of the callback.
751
+ */
752
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
753
+ }
754
+ /**
755
+ * Fields of the ProductCategory model
756
+ */
757
+ export interface ProductCategoryFieldRefs {
758
+ readonly productId: Prisma.FieldRef<"ProductCategory", 'String'>;
759
+ readonly categoryId: Prisma.FieldRef<"ProductCategory", 'String'>;
760
+ }
761
+ /**
762
+ * ProductCategory findUnique
763
+ */
764
+ export type ProductCategoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
765
+ /**
766
+ * Select specific fields to fetch from the ProductCategory
767
+ */
768
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
769
+ /**
770
+ * Omit specific fields from the ProductCategory
771
+ */
772
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
773
+ /**
774
+ * Choose, which related nodes to fetch as well
775
+ */
776
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
777
+ /**
778
+ * Filter, which ProductCategory to fetch.
779
+ */
780
+ where: Prisma.ProductCategoryWhereUniqueInput;
781
+ };
782
+ /**
783
+ * ProductCategory findUniqueOrThrow
784
+ */
785
+ export type ProductCategoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
786
+ /**
787
+ * Select specific fields to fetch from the ProductCategory
788
+ */
789
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
790
+ /**
791
+ * Omit specific fields from the ProductCategory
792
+ */
793
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
794
+ /**
795
+ * Choose, which related nodes to fetch as well
796
+ */
797
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
798
+ /**
799
+ * Filter, which ProductCategory to fetch.
800
+ */
801
+ where: Prisma.ProductCategoryWhereUniqueInput;
802
+ };
803
+ /**
804
+ * ProductCategory findFirst
805
+ */
806
+ export type ProductCategoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
807
+ /**
808
+ * Select specific fields to fetch from the ProductCategory
809
+ */
810
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
811
+ /**
812
+ * Omit specific fields from the ProductCategory
813
+ */
814
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
815
+ /**
816
+ * Choose, which related nodes to fetch as well
817
+ */
818
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
819
+ /**
820
+ * Filter, which ProductCategory to fetch.
821
+ */
822
+ where?: Prisma.ProductCategoryWhereInput;
823
+ /**
824
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
825
+ *
826
+ * Determine the order of ProductCategories to fetch.
827
+ */
828
+ orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
829
+ /**
830
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
831
+ *
832
+ * Sets the position for searching for ProductCategories.
833
+ */
834
+ cursor?: Prisma.ProductCategoryWhereUniqueInput;
835
+ /**
836
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
837
+ *
838
+ * Take `±n` ProductCategories from the position of the cursor.
839
+ */
840
+ take?: number;
841
+ /**
842
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
843
+ *
844
+ * Skip the first `n` ProductCategories.
845
+ */
846
+ skip?: number;
847
+ /**
848
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
849
+ *
850
+ * Filter by unique combinations of ProductCategories.
851
+ */
852
+ distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[];
853
+ };
854
+ /**
855
+ * ProductCategory findFirstOrThrow
856
+ */
857
+ export type ProductCategoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
858
+ /**
859
+ * Select specific fields to fetch from the ProductCategory
860
+ */
861
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
862
+ /**
863
+ * Omit specific fields from the ProductCategory
864
+ */
865
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
866
+ /**
867
+ * Choose, which related nodes to fetch as well
868
+ */
869
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
870
+ /**
871
+ * Filter, which ProductCategory to fetch.
872
+ */
873
+ where?: Prisma.ProductCategoryWhereInput;
874
+ /**
875
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
876
+ *
877
+ * Determine the order of ProductCategories to fetch.
878
+ */
879
+ orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
880
+ /**
881
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
882
+ *
883
+ * Sets the position for searching for ProductCategories.
884
+ */
885
+ cursor?: Prisma.ProductCategoryWhereUniqueInput;
886
+ /**
887
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
888
+ *
889
+ * Take `±n` ProductCategories from the position of the cursor.
890
+ */
891
+ take?: number;
892
+ /**
893
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
894
+ *
895
+ * Skip the first `n` ProductCategories.
896
+ */
897
+ skip?: number;
898
+ /**
899
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
900
+ *
901
+ * Filter by unique combinations of ProductCategories.
902
+ */
903
+ distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[];
904
+ };
905
+ /**
906
+ * ProductCategory findMany
907
+ */
908
+ export type ProductCategoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
909
+ /**
910
+ * Select specific fields to fetch from the ProductCategory
911
+ */
912
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
913
+ /**
914
+ * Omit specific fields from the ProductCategory
915
+ */
916
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
917
+ /**
918
+ * Choose, which related nodes to fetch as well
919
+ */
920
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
921
+ /**
922
+ * Filter, which ProductCategories to fetch.
923
+ */
924
+ where?: Prisma.ProductCategoryWhereInput;
925
+ /**
926
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
927
+ *
928
+ * Determine the order of ProductCategories to fetch.
929
+ */
930
+ orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
931
+ /**
932
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
933
+ *
934
+ * Sets the position for listing ProductCategories.
935
+ */
936
+ cursor?: Prisma.ProductCategoryWhereUniqueInput;
937
+ /**
938
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
939
+ *
940
+ * Take `±n` ProductCategories from the position of the cursor.
941
+ */
942
+ take?: number;
943
+ /**
944
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
945
+ *
946
+ * Skip the first `n` ProductCategories.
947
+ */
948
+ skip?: number;
949
+ distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[];
950
+ };
951
+ /**
952
+ * ProductCategory create
953
+ */
954
+ export type ProductCategoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
955
+ /**
956
+ * Select specific fields to fetch from the ProductCategory
957
+ */
958
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
959
+ /**
960
+ * Omit specific fields from the ProductCategory
961
+ */
962
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
963
+ /**
964
+ * Choose, which related nodes to fetch as well
965
+ */
966
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
967
+ /**
968
+ * The data needed to create a ProductCategory.
969
+ */
970
+ data: Prisma.XOR<Prisma.ProductCategoryCreateInput, Prisma.ProductCategoryUncheckedCreateInput>;
971
+ };
972
+ /**
973
+ * ProductCategory createMany
974
+ */
975
+ export type ProductCategoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
976
+ /**
977
+ * The data used to create many ProductCategories.
978
+ */
979
+ data: Prisma.ProductCategoryCreateManyInput | Prisma.ProductCategoryCreateManyInput[];
980
+ };
981
+ /**
982
+ * ProductCategory createManyAndReturn
983
+ */
984
+ export type ProductCategoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
985
+ /**
986
+ * Select specific fields to fetch from the ProductCategory
987
+ */
988
+ select?: Prisma.ProductCategorySelectCreateManyAndReturn<ExtArgs> | null;
989
+ /**
990
+ * Omit specific fields from the ProductCategory
991
+ */
992
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
993
+ /**
994
+ * The data used to create many ProductCategories.
995
+ */
996
+ data: Prisma.ProductCategoryCreateManyInput | Prisma.ProductCategoryCreateManyInput[];
997
+ /**
998
+ * Choose, which related nodes to fetch as well
999
+ */
1000
+ include?: Prisma.ProductCategoryIncludeCreateManyAndReturn<ExtArgs> | null;
1001
+ };
1002
+ /**
1003
+ * ProductCategory update
1004
+ */
1005
+ export type ProductCategoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1006
+ /**
1007
+ * Select specific fields to fetch from the ProductCategory
1008
+ */
1009
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1010
+ /**
1011
+ * Omit specific fields from the ProductCategory
1012
+ */
1013
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1014
+ /**
1015
+ * Choose, which related nodes to fetch as well
1016
+ */
1017
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1018
+ /**
1019
+ * The data needed to update a ProductCategory.
1020
+ */
1021
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateInput, Prisma.ProductCategoryUncheckedUpdateInput>;
1022
+ /**
1023
+ * Choose, which ProductCategory to update.
1024
+ */
1025
+ where: Prisma.ProductCategoryWhereUniqueInput;
1026
+ };
1027
+ /**
1028
+ * ProductCategory updateMany
1029
+ */
1030
+ export type ProductCategoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1031
+ /**
1032
+ * The data used to update ProductCategories.
1033
+ */
1034
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyInput>;
1035
+ /**
1036
+ * Filter which ProductCategories to update
1037
+ */
1038
+ where?: Prisma.ProductCategoryWhereInput;
1039
+ /**
1040
+ * Limit how many ProductCategories to update.
1041
+ */
1042
+ limit?: number;
1043
+ };
1044
+ /**
1045
+ * ProductCategory updateManyAndReturn
1046
+ */
1047
+ export type ProductCategoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1048
+ /**
1049
+ * Select specific fields to fetch from the ProductCategory
1050
+ */
1051
+ select?: Prisma.ProductCategorySelectUpdateManyAndReturn<ExtArgs> | null;
1052
+ /**
1053
+ * Omit specific fields from the ProductCategory
1054
+ */
1055
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1056
+ /**
1057
+ * The data used to update ProductCategories.
1058
+ */
1059
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyInput>;
1060
+ /**
1061
+ * Filter which ProductCategories to update
1062
+ */
1063
+ where?: Prisma.ProductCategoryWhereInput;
1064
+ /**
1065
+ * Limit how many ProductCategories to update.
1066
+ */
1067
+ limit?: number;
1068
+ /**
1069
+ * Choose, which related nodes to fetch as well
1070
+ */
1071
+ include?: Prisma.ProductCategoryIncludeUpdateManyAndReturn<ExtArgs> | null;
1072
+ };
1073
+ /**
1074
+ * ProductCategory upsert
1075
+ */
1076
+ export type ProductCategoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1077
+ /**
1078
+ * Select specific fields to fetch from the ProductCategory
1079
+ */
1080
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1081
+ /**
1082
+ * Omit specific fields from the ProductCategory
1083
+ */
1084
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1085
+ /**
1086
+ * Choose, which related nodes to fetch as well
1087
+ */
1088
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1089
+ /**
1090
+ * The filter to search for the ProductCategory to update in case it exists.
1091
+ */
1092
+ where: Prisma.ProductCategoryWhereUniqueInput;
1093
+ /**
1094
+ * In case the ProductCategory found by the `where` argument doesn't exist, create a new ProductCategory with this data.
1095
+ */
1096
+ create: Prisma.XOR<Prisma.ProductCategoryCreateInput, Prisma.ProductCategoryUncheckedCreateInput>;
1097
+ /**
1098
+ * In case the ProductCategory was found with the provided `where` argument, update it with this data.
1099
+ */
1100
+ update: Prisma.XOR<Prisma.ProductCategoryUpdateInput, Prisma.ProductCategoryUncheckedUpdateInput>;
1101
+ };
1102
+ /**
1103
+ * ProductCategory delete
1104
+ */
1105
+ export type ProductCategoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1106
+ /**
1107
+ * Select specific fields to fetch from the ProductCategory
1108
+ */
1109
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1110
+ /**
1111
+ * Omit specific fields from the ProductCategory
1112
+ */
1113
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1114
+ /**
1115
+ * Choose, which related nodes to fetch as well
1116
+ */
1117
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1118
+ /**
1119
+ * Filter which ProductCategory to delete.
1120
+ */
1121
+ where: Prisma.ProductCategoryWhereUniqueInput;
1122
+ };
1123
+ /**
1124
+ * ProductCategory deleteMany
1125
+ */
1126
+ export type ProductCategoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1127
+ /**
1128
+ * Filter which ProductCategories to delete
1129
+ */
1130
+ where?: Prisma.ProductCategoryWhereInput;
1131
+ /**
1132
+ * Limit how many ProductCategories to delete.
1133
+ */
1134
+ limit?: number;
1135
+ };
1136
+ /**
1137
+ * ProductCategory without action
1138
+ */
1139
+ export type ProductCategoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1140
+ /**
1141
+ * Select specific fields to fetch from the ProductCategory
1142
+ */
1143
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1144
+ /**
1145
+ * Omit specific fields from the ProductCategory
1146
+ */
1147
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1148
+ /**
1149
+ * Choose, which related nodes to fetch as well
1150
+ */
1151
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1152
+ };
1153
+ export {};
1154
+ //# sourceMappingURL=ProductCategory.d.ts.map