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