@shophost/rest-api 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 (430) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +69 -0
  3. package/global.d.ts +1 -0
  4. package/package.json +53 -0
  5. package/schemas.d.ts +1 -0
  6. package/schemas.js +2 -0
  7. package/schemas.ts +1 -0
  8. package/src/contract.d.ts +3853 -0
  9. package/src/contract.js +6 -0
  10. package/src/contract.js.map +1 -0
  11. package/src/contracts/cart.contract.d.ts +536 -0
  12. package/src/contracts/cart.contract.js +29 -0
  13. package/src/contracts/cart.contract.js.map +1 -0
  14. package/src/contracts/customers.contract.d.ts +903 -0
  15. package/src/contracts/customers.contract.js +119 -0
  16. package/src/contracts/customers.contract.js.map +1 -0
  17. package/src/contracts/files.contract.d.ts +152 -0
  18. package/src/contracts/files.contract.js +29 -0
  19. package/src/contracts/files.contract.js.map +1 -0
  20. package/src/contracts/health.contract.d.ts +38 -0
  21. package/src/contracts/health.contract.js +25 -0
  22. package/src/contracts/health.contract.js.map +1 -0
  23. package/src/contracts/index.d.ts +15466 -0
  24. package/src/contracts/index.js +32 -0
  25. package/src/contracts/index.js.map +1 -0
  26. package/src/contracts/location.contract.d.ts +127 -0
  27. package/src/contracts/location.contract.js +40 -0
  28. package/src/contracts/location.contract.js.map +1 -0
  29. package/src/contracts/manufacturers.contract.d.ts +931 -0
  30. package/src/contracts/manufacturers.contract.js +85 -0
  31. package/src/contracts/manufacturers.contract.js.map +1 -0
  32. package/src/contracts/orders.contract.d.ts +3910 -0
  33. package/src/contracts/orders.contract.js +92 -0
  34. package/src/contracts/orders.contract.js.map +1 -0
  35. package/src/contracts/organizations.contract.d.ts +2234 -0
  36. package/src/contracts/organizations.contract.js +71 -0
  37. package/src/contracts/organizations.contract.js.map +1 -0
  38. package/src/contracts/payment.contract.d.ts +64 -0
  39. package/src/contracts/payment.contract.js +20 -0
  40. package/src/contracts/payment.contract.js.map +1 -0
  41. package/src/contracts/product-categories.contract.d.ts +1172 -0
  42. package/src/contracts/product-categories.contract.js +103 -0
  43. package/src/contracts/product-categories.contract.js.map +1 -0
  44. package/src/contracts/products.contract.d.ts +3976 -0
  45. package/src/contracts/products.contract.js +128 -0
  46. package/src/contracts/products.contract.js.map +1 -0
  47. package/src/contracts/reservation.contract.d.ts +675 -0
  48. package/src/contracts/reservation.contract.js +141 -0
  49. package/src/contracts/reservation.contract.js.map +1 -0
  50. package/src/contracts/shipping-methods.contract.d.ts +1276 -0
  51. package/src/contracts/shipping-methods.contract.js +118 -0
  52. package/src/contracts/shipping-methods.contract.js.map +1 -0
  53. package/src/contracts/shipping.contract.d.ts +319 -0
  54. package/src/contracts/shipping.contract.js +42 -0
  55. package/src/contracts/shipping.contract.js.map +1 -0
  56. package/src/contracts/webhook.contract.d.ts +66 -0
  57. package/src/contracts/webhook.contract.js +28 -0
  58. package/src/contracts/webhook.contract.js.map +1 -0
  59. package/src/db/__generated__/client/client.d.ts +385 -0
  60. package/src/db/__generated__/client/client.js +44 -0
  61. package/src/db/__generated__/client/client.js.map +1 -0
  62. package/src/db/__generated__/client/commonInputTypes.d.ts +816 -0
  63. package/src/db/__generated__/client/commonInputTypes.js +10 -0
  64. package/src/db/__generated__/client/commonInputTypes.js.map +1 -0
  65. package/src/db/__generated__/client/enums.d.ts +204 -0
  66. package/src/db/__generated__/client/enums.js +199 -0
  67. package/src/db/__generated__/client/enums.js.map +1 -0
  68. package/src/db/__generated__/client/index.d.ts +1 -0
  69. package/src/db/__generated__/client/index.js +5 -0
  70. package/src/db/__generated__/client/index.js.map +1 -0
  71. package/src/db/__generated__/client/internal/class.d.ts +414 -0
  72. package/src/db/__generated__/client/internal/class.js +76 -0
  73. package/src/db/__generated__/client/internal/class.js.map +1 -0
  74. package/src/db/__generated__/client/internal/prismaNamespace.d.ts +3474 -0
  75. package/src/db/__generated__/client/internal/prismaNamespace.js +543 -0
  76. package/src/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
  77. package/src/db/__generated__/client/models/Account.d.ts +1459 -0
  78. package/src/db/__generated__/client/models/Account.js +2 -0
  79. package/src/db/__generated__/client/models/Account.js.map +1 -0
  80. package/src/db/__generated__/client/models/Address.d.ts +2337 -0
  81. package/src/db/__generated__/client/models/Address.js +2 -0
  82. package/src/db/__generated__/client/models/Address.js.map +1 -0
  83. package/src/db/__generated__/client/models/Campaign.d.ts +1469 -0
  84. package/src/db/__generated__/client/models/Campaign.js +2 -0
  85. package/src/db/__generated__/client/models/Campaign.js.map +1 -0
  86. package/src/db/__generated__/client/models/ClosingTimes.d.ts +1227 -0
  87. package/src/db/__generated__/client/models/ClosingTimes.js +2 -0
  88. package/src/db/__generated__/client/models/ClosingTimes.js.map +1 -0
  89. package/src/db/__generated__/client/models/File.d.ts +2670 -0
  90. package/src/db/__generated__/client/models/File.js +2 -0
  91. package/src/db/__generated__/client/models/File.js.map +1 -0
  92. package/src/db/__generated__/client/models/Invitation.d.ts +1363 -0
  93. package/src/db/__generated__/client/models/Invitation.js +2 -0
  94. package/src/db/__generated__/client/models/Invitation.js.map +1 -0
  95. package/src/db/__generated__/client/models/LegalEntity.d.ts +1572 -0
  96. package/src/db/__generated__/client/models/LegalEntity.js +2 -0
  97. package/src/db/__generated__/client/models/LegalEntity.js.map +1 -0
  98. package/src/db/__generated__/client/models/Manufacturer.d.ts +1746 -0
  99. package/src/db/__generated__/client/models/Manufacturer.js +2 -0
  100. package/src/db/__generated__/client/models/Manufacturer.js.map +1 -0
  101. package/src/db/__generated__/client/models/ManufacturerTranslation.d.ts +1286 -0
  102. package/src/db/__generated__/client/models/ManufacturerTranslation.js +2 -0
  103. package/src/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
  104. package/src/db/__generated__/client/models/Member.d.ts +1281 -0
  105. package/src/db/__generated__/client/models/Member.js +2 -0
  106. package/src/db/__generated__/client/models/Member.js.map +1 -0
  107. package/src/db/__generated__/client/models/Modifier.d.ts +1404 -0
  108. package/src/db/__generated__/client/models/Modifier.js +2 -0
  109. package/src/db/__generated__/client/models/Modifier.js.map +1 -0
  110. package/src/db/__generated__/client/models/ModifierGroup.d.ts +1469 -0
  111. package/src/db/__generated__/client/models/ModifierGroup.js +2 -0
  112. package/src/db/__generated__/client/models/ModifierGroup.js.map +1 -0
  113. package/src/db/__generated__/client/models/ModifierGroupTranslation.d.ts +1181 -0
  114. package/src/db/__generated__/client/models/ModifierGroupTranslation.js +2 -0
  115. package/src/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
  116. package/src/db/__generated__/client/models/OpeningTimes.d.ts +1227 -0
  117. package/src/db/__generated__/client/models/OpeningTimes.js +2 -0
  118. package/src/db/__generated__/client/models/OpeningTimes.js.map +1 -0
  119. package/src/db/__generated__/client/models/Order.d.ts +2820 -0
  120. package/src/db/__generated__/client/models/Order.js +2 -0
  121. package/src/db/__generated__/client/models/Order.js.map +1 -0
  122. package/src/db/__generated__/client/models/OrderItem.d.ts +1755 -0
  123. package/src/db/__generated__/client/models/OrderItem.js +2 -0
  124. package/src/db/__generated__/client/models/OrderItem.js.map +1 -0
  125. package/src/db/__generated__/client/models/OrderItemTranslation.d.ts +1181 -0
  126. package/src/db/__generated__/client/models/OrderItemTranslation.js +2 -0
  127. package/src/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
  128. package/src/db/__generated__/client/models/Organization.d.ts +3996 -0
  129. package/src/db/__generated__/client/models/Organization.js +2 -0
  130. package/src/db/__generated__/client/models/Organization.js.map +1 -0
  131. package/src/db/__generated__/client/models/OrganizationConfiguration.d.ts +1954 -0
  132. package/src/db/__generated__/client/models/OrganizationConfiguration.js +2 -0
  133. package/src/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
  134. package/src/db/__generated__/client/models/Payment.d.ts +1538 -0
  135. package/src/db/__generated__/client/models/Payment.js +2 -0
  136. package/src/db/__generated__/client/models/Payment.js.map +1 -0
  137. package/src/db/__generated__/client/models/PaymentSession.d.ts +1384 -0
  138. package/src/db/__generated__/client/models/PaymentSession.js +2 -0
  139. package/src/db/__generated__/client/models/PaymentSession.js.map +1 -0
  140. package/src/db/__generated__/client/models/Product.d.ts +3136 -0
  141. package/src/db/__generated__/client/models/Product.js +2 -0
  142. package/src/db/__generated__/client/models/Product.js.map +1 -0
  143. package/src/db/__generated__/client/models/ProductCategory.d.ts +1964 -0
  144. package/src/db/__generated__/client/models/ProductCategory.js +2 -0
  145. package/src/db/__generated__/client/models/ProductCategory.js.map +1 -0
  146. package/src/db/__generated__/client/models/ProductCategoryTranslation.d.ts +1321 -0
  147. package/src/db/__generated__/client/models/ProductCategoryTranslation.js +2 -0
  148. package/src/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
  149. package/src/db/__generated__/client/models/ProductSnapshot.d.ts +1389 -0
  150. package/src/db/__generated__/client/models/ProductSnapshot.js +2 -0
  151. package/src/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
  152. package/src/db/__generated__/client/models/ProductTranslation.d.ts +1321 -0
  153. package/src/db/__generated__/client/models/ProductTranslation.js +2 -0
  154. package/src/db/__generated__/client/models/ProductTranslation.js.map +1 -0
  155. package/src/db/__generated__/client/models/Reservation.d.ts +1665 -0
  156. package/src/db/__generated__/client/models/Reservation.js +2 -0
  157. package/src/db/__generated__/client/models/Reservation.js.map +1 -0
  158. package/src/db/__generated__/client/models/Session.d.ts +1316 -0
  159. package/src/db/__generated__/client/models/Session.js +2 -0
  160. package/src/db/__generated__/client/models/Session.js.map +1 -0
  161. package/src/db/__generated__/client/models/ShippingMethod.d.ts +1934 -0
  162. package/src/db/__generated__/client/models/ShippingMethod.js +2 -0
  163. package/src/db/__generated__/client/models/ShippingMethod.js.map +1 -0
  164. package/src/db/__generated__/client/models/ShippingZone.d.ts +1366 -0
  165. package/src/db/__generated__/client/models/ShippingZone.js +2 -0
  166. package/src/db/__generated__/client/models/ShippingZone.js.map +1 -0
  167. package/src/db/__generated__/client/models/User.d.ts +2201 -0
  168. package/src/db/__generated__/client/models/User.js +2 -0
  169. package/src/db/__generated__/client/models/User.js.map +1 -0
  170. package/src/db/__generated__/client/models/Verification.d.ts +1026 -0
  171. package/src/db/__generated__/client/models/Verification.js +2 -0
  172. package/src/db/__generated__/client/models/Verification.js.map +1 -0
  173. package/src/db/__generated__/client/models.d.ts +38 -0
  174. package/src/db/__generated__/client/models.js +2 -0
  175. package/src/db/__generated__/client/models.js.map +1 -0
  176. package/src/db/index.d.ts +1 -0
  177. package/src/db/index.js +2 -0
  178. package/src/db/index.js.map +1 -0
  179. package/src/emails/order-confirmation-email.d.ts +10 -0
  180. package/src/emails/order-confirmation-email.js +229 -0
  181. package/src/emails/order-confirmation-email.js.map +1 -0
  182. package/src/emails/order-notification-email.d.ts +10 -0
  183. package/src/emails/order-notification-email.js +229 -0
  184. package/src/emails/order-notification-email.js.map +1 -0
  185. package/src/emails/reservation-cancellation-email.d.ts +10 -0
  186. package/src/emails/reservation-cancellation-email.js +82 -0
  187. package/src/emails/reservation-cancellation-email.js.map +1 -0
  188. package/src/emails/reservation-confirmation-email.d.ts +10 -0
  189. package/src/emails/reservation-confirmation-email.js +82 -0
  190. package/src/emails/reservation-confirmation-email.js.map +1 -0
  191. package/src/emails/reservation-notification-email.d.ts +11 -0
  192. package/src/emails/reservation-notification-email.js +93 -0
  193. package/src/emails/reservation-notification-email.js.map +1 -0
  194. package/src/exceptions/http-exception.d.ts +6 -0
  195. package/src/exceptions/http-exception.js +9 -0
  196. package/src/exceptions/http-exception.js.map +1 -0
  197. package/src/handlers/webhook.handler.d.ts +8 -0
  198. package/src/handlers/webhook.handler.js +36 -0
  199. package/src/handlers/webhook.handler.js.map +1 -0
  200. package/src/index.d.ts +5 -0
  201. package/src/index.js +7 -0
  202. package/src/index.js.map +1 -0
  203. package/src/integrations/next.d.ts +25 -0
  204. package/src/integrations/next.js +69 -0
  205. package/src/integrations/next.js.map +1 -0
  206. package/src/lib/better-auth.lib.d.ts +10215 -0
  207. package/src/lib/better-auth.lib.js +96 -0
  208. package/src/lib/better-auth.lib.js.map +1 -0
  209. package/src/lib/openapi.lib.d.ts +2 -0
  210. package/src/lib/openapi.lib.js +25 -0
  211. package/src/lib/openapi.lib.js.map +1 -0
  212. package/src/lib/pino.d.ts +1 -0
  213. package/src/lib/pino.js +5 -0
  214. package/src/lib/pino.js.map +1 -0
  215. package/src/lib/prisma.d.ts +819 -0
  216. package/src/lib/prisma.js +14 -0
  217. package/src/lib/prisma.js.map +1 -0
  218. package/src/lib/stripe.d.ts +2 -0
  219. package/src/lib/stripe.js +8 -0
  220. package/src/lib/stripe.js.map +1 -0
  221. package/src/lib/ts-rest.d.ts +2 -0
  222. package/src/lib/ts-rest.js +3 -0
  223. package/src/lib/ts-rest.js.map +1 -0
  224. package/src/routers/cart.router.d.ts +536 -0
  225. package/src/routers/cart.router.js +20 -0
  226. package/src/routers/cart.router.js.map +1 -0
  227. package/src/routers/file.router.d.ts +153 -0
  228. package/src/routers/file.router.js +28 -0
  229. package/src/routers/file.router.js.map +1 -0
  230. package/src/routers/health.router.d.ts +37 -0
  231. package/src/routers/health.router.js +17 -0
  232. package/src/routers/health.router.js.map +1 -0
  233. package/src/routers/index.d.ts +11 -0
  234. package/src/routers/index.js +12 -0
  235. package/src/routers/index.js.map +1 -0
  236. package/src/routers/manufacturer.router.d.ts +931 -0
  237. package/src/routers/manufacturer.router.js +58 -0
  238. package/src/routers/manufacturer.router.js.map +1 -0
  239. package/src/routers/order.router.d.ts +3911 -0
  240. package/src/routers/order.router.js +60 -0
  241. package/src/routers/order.router.js.map +1 -0
  242. package/src/routers/organization.router.d.ts +2234 -0
  243. package/src/routers/organization.router.js +55 -0
  244. package/src/routers/organization.router.js.map +1 -0
  245. package/src/routers/payment.router.d.ts +65 -0
  246. package/src/routers/payment.router.js +22 -0
  247. package/src/routers/payment.router.js.map +1 -0
  248. package/src/routers/places.router.d.ts +132 -0
  249. package/src/routers/places.router.js +31 -0
  250. package/src/routers/places.router.js.map +1 -0
  251. package/src/routers/product-category.router.d.ts +1172 -0
  252. package/src/routers/product-category.router.js +66 -0
  253. package/src/routers/product-category.router.js.map +1 -0
  254. package/src/routers/product.router.d.ts +3976 -0
  255. package/src/routers/product.router.js +86 -0
  256. package/src/routers/product.router.js.map +1 -0
  257. package/src/routers/reservation.router.d.ts +675 -0
  258. package/src/routers/reservation.router.js +71 -0
  259. package/src/routers/reservation.router.js.map +1 -0
  260. package/src/routers/shipping-method.router.d.ts +1276 -0
  261. package/src/routers/shipping-method.router.js +67 -0
  262. package/src/routers/shipping-method.router.js.map +1 -0
  263. package/src/routers/shipping.router.d.ts +320 -0
  264. package/src/routers/shipping.router.js +38 -0
  265. package/src/routers/shipping.router.js.map +1 -0
  266. package/src/routers/webhook.router.d.ts +65 -0
  267. package/src/routers/webhook.router.js +19 -0
  268. package/src/routers/webhook.router.js.map +1 -0
  269. package/src/schemas/address.schema.d.ts +235 -0
  270. package/src/schemas/address.schema.js +114 -0
  271. package/src/schemas/address.schema.js.map +1 -0
  272. package/src/schemas/auth.schema.d.ts +29 -0
  273. package/src/schemas/auth.schema.js +39 -0
  274. package/src/schemas/auth.schema.js.map +1 -0
  275. package/src/schemas/cart.schema.d.ts +446 -0
  276. package/src/schemas/cart.schema.js +41 -0
  277. package/src/schemas/cart.schema.js.map +1 -0
  278. package/src/schemas/currency.schema.d.ts +49 -0
  279. package/src/schemas/currency.schema.js +120 -0
  280. package/src/schemas/currency.schema.js.map +1 -0
  281. package/src/schemas/error.schema.d.ts +11 -0
  282. package/src/schemas/error.schema.js +14 -0
  283. package/src/schemas/error.schema.js.map +1 -0
  284. package/src/schemas/file.schema.d.ts +115 -0
  285. package/src/schemas/file.schema.js +79 -0
  286. package/src/schemas/file.schema.js.map +1 -0
  287. package/src/schemas/fulfilment.schema.d.ts +2 -0
  288. package/src/schemas/fulfilment.schema.js +5 -0
  289. package/src/schemas/fulfilment.schema.js.map +1 -0
  290. package/src/schemas/headers.schema.d.ts +11 -0
  291. package/src/schemas/headers.schema.js +15 -0
  292. package/src/schemas/headers.schema.js.map +1 -0
  293. package/src/schemas/index.d.ts +27 -0
  294. package/src/schemas/index.js +28 -0
  295. package/src/schemas/index.js.map +1 -0
  296. package/src/schemas/legal-entity.schema.d.ts +212 -0
  297. package/src/schemas/legal-entity.schema.js +85 -0
  298. package/src/schemas/legal-entity.schema.js.map +1 -0
  299. package/src/schemas/locales.schema.d.ts +8 -0
  300. package/src/schemas/locales.schema.js +240 -0
  301. package/src/schemas/locales.schema.js.map +1 -0
  302. package/src/schemas/location.schema.d.ts +41 -0
  303. package/src/schemas/location.schema.js +50 -0
  304. package/src/schemas/location.schema.js.map +1 -0
  305. package/src/schemas/manufacturer.schema.d.ts +287 -0
  306. package/src/schemas/manufacturer.schema.js +127 -0
  307. package/src/schemas/manufacturer.schema.js.map +1 -0
  308. package/src/schemas/number.schema.d.ts +3 -0
  309. package/src/schemas/number.schema.js +29 -0
  310. package/src/schemas/number.schema.js.map +1 -0
  311. package/src/schemas/order.schema.d.ts +1046 -0
  312. package/src/schemas/order.schema.js +160 -0
  313. package/src/schemas/order.schema.js.map +1 -0
  314. package/src/schemas/organization-configuration.schema.d.ts +287 -0
  315. package/src/schemas/organization-configuration.schema.js +117 -0
  316. package/src/schemas/organization-configuration.schema.js.map +1 -0
  317. package/src/schemas/organization.schema.d.ts +894 -0
  318. package/src/schemas/organization.schema.js +66 -0
  319. package/src/schemas/organization.schema.js.map +1 -0
  320. package/src/schemas/pagination.schema.d.ts +51 -0
  321. package/src/schemas/pagination.schema.js +54 -0
  322. package/src/schemas/pagination.schema.js.map +1 -0
  323. package/src/schemas/params.schema.d.ts +19 -0
  324. package/src/schemas/params.schema.js +22 -0
  325. package/src/schemas/params.schema.js.map +1 -0
  326. package/src/schemas/payment.schema.d.ts +54 -0
  327. package/src/schemas/payment.schema.js +48 -0
  328. package/src/schemas/payment.schema.js.map +1 -0
  329. package/src/schemas/product-category.schema.d.ts +352 -0
  330. package/src/schemas/product-category.schema.js +87 -0
  331. package/src/schemas/product-category.schema.js.map +1 -0
  332. package/src/schemas/product-modifier.schema.d.ts +280 -0
  333. package/src/schemas/product-modifier.schema.js +86 -0
  334. package/src/schemas/product-modifier.schema.js.map +1 -0
  335. package/src/schemas/product.schema.d.ts +1405 -0
  336. package/src/schemas/product.schema.js +136 -0
  337. package/src/schemas/product.schema.js.map +1 -0
  338. package/src/schemas/queries.schema.d.ts +8 -0
  339. package/src/schemas/queries.schema.js +8 -0
  340. package/src/schemas/queries.schema.js.map +1 -0
  341. package/src/schemas/recipient.schema.d.ts +260 -0
  342. package/src/schemas/recipient.schema.js +40 -0
  343. package/src/schemas/recipient.schema.js.map +1 -0
  344. package/src/schemas/reservation.schema.d.ts +61 -0
  345. package/src/schemas/reservation.schema.js +53 -0
  346. package/src/schemas/reservation.schema.js.map +1 -0
  347. package/src/schemas/shipping-method.schema.d.ts +335 -0
  348. package/src/schemas/shipping-method.schema.js +50 -0
  349. package/src/schemas/shipping-method.schema.js.map +1 -0
  350. package/src/schemas/shipping-zone.schema.d.ts +24 -0
  351. package/src/schemas/shipping-zone.schema.js +33 -0
  352. package/src/schemas/shipping-zone.schema.js.map +1 -0
  353. package/src/schemas/user.schema.d.ts +24 -0
  354. package/src/schemas/user.schema.js +32 -0
  355. package/src/schemas/user.schema.js.map +1 -0
  356. package/src/services/cart.service.d.ts +60 -0
  357. package/src/services/cart.service.js +97 -0
  358. package/src/services/cart.service.js.map +1 -0
  359. package/src/services/email.service.d.ts +32 -0
  360. package/src/services/email.service.js +116 -0
  361. package/src/services/email.service.js.map +1 -0
  362. package/src/services/file.service.d.ts +28 -0
  363. package/src/services/file.service.js +66 -0
  364. package/src/services/file.service.js.map +1 -0
  365. package/src/services/location.service.d.ts +28 -0
  366. package/src/services/location.service.js +109 -0
  367. package/src/services/location.service.js.map +1 -0
  368. package/src/services/manufacturer.service.d.ts +146 -0
  369. package/src/services/manufacturer.service.js +190 -0
  370. package/src/services/manufacturer.service.js.map +1 -0
  371. package/src/services/order.service.d.ts +444 -0
  372. package/src/services/order.service.js +306 -0
  373. package/src/services/order.service.js.map +1 -0
  374. package/src/services/organization.service.d.ts +301 -0
  375. package/src/services/organization.service.js +312 -0
  376. package/src/services/organization.service.js.map +1 -0
  377. package/src/services/payment.service.d.ts +35 -0
  378. package/src/services/payment.service.js +100 -0
  379. package/src/services/payment.service.js.map +1 -0
  380. package/src/services/product-category.service.d.ts +180 -0
  381. package/src/services/product-category.service.js +220 -0
  382. package/src/services/product-category.service.js.map +1 -0
  383. package/src/services/product.service.d.ts +493 -0
  384. package/src/services/product.service.js +437 -0
  385. package/src/services/product.service.js.map +1 -0
  386. package/src/services/reservation.service.d.ts +104 -0
  387. package/src/services/reservation.service.js +231 -0
  388. package/src/services/reservation.service.js.map +1 -0
  389. package/src/services/shipping-method.service.d.ts +206 -0
  390. package/src/services/shipping-method.service.js +229 -0
  391. package/src/services/shipping-method.service.js.map +1 -0
  392. package/src/services/shipping.service.d.ts +57 -0
  393. package/src/services/shipping.service.js +96 -0
  394. package/src/services/shipping.service.js.map +1 -0
  395. package/src/services/stripe.service.d.ts +26 -0
  396. package/src/services/stripe.service.js +164 -0
  397. package/src/services/stripe.service.js.map +1 -0
  398. package/src/types/google-maps.types.d.ts +53 -0
  399. package/src/types/google-maps.types.js +2 -0
  400. package/src/types/google-maps.types.js.map +1 -0
  401. package/src/utils/auth.util.d.ts +3 -0
  402. package/src/utils/auth.util.js +36 -0
  403. package/src/utils/auth.util.js.map +1 -0
  404. package/src/utils/cart.util.d.ts +27 -0
  405. package/src/utils/cart.util.js +76 -0
  406. package/src/utils/cart.util.js.map +1 -0
  407. package/src/utils/client.util.d.ts +3853 -0
  408. package/src/utils/client.util.js +6 -0
  409. package/src/utils/client.util.js.map +1 -0
  410. package/src/utils/currency.util.d.ts +1 -0
  411. package/src/utils/currency.util.js +11 -0
  412. package/src/utils/currency.util.js.map +1 -0
  413. package/src/utils/env.util.d.ts +2 -0
  414. package/src/utils/env.util.js +8 -0
  415. package/src/utils/env.util.js.map +1 -0
  416. package/src/utils/error-handler.util.d.ts +3 -0
  417. package/src/utils/error-handler.util.js +30 -0
  418. package/src/utils/error-handler.util.js.map +1 -0
  419. package/src/utils/generate-password-hash.util.d.ts +7 -0
  420. package/src/utils/generate-password-hash.util.js +30 -0
  421. package/src/utils/generate-password-hash.util.js.map +1 -0
  422. package/src/utils/object.util.d.ts +11 -0
  423. package/src/utils/object.util.js +39 -0
  424. package/src/utils/object.util.js.map +1 -0
  425. package/src/utils/translations.util.d.ts +0 -0
  426. package/src/utils/translations.util.js +2 -0
  427. package/src/utils/translations.util.js.map +1 -0
  428. package/src/utils/zod.util.d.ts +15 -0
  429. package/src/utils/zod.util.js +85 -0
  430. package/src/utils/zod.util.js.map +1 -0
@@ -0,0 +1,1964 @@
1
+ /**
2
+ * This file exports the `ProductCategory` model and its related types.
3
+ *
4
+ * 🟢 You can import this file directly.
5
+ */
6
+ import * as runtime from "@prisma/client/runtime/library";
7
+ import type * as Prisma from "../internal/prismaNamespace.ts";
8
+ /**
9
+ * Model ProductCategory
10
+ *
11
+ */
12
+ export type ProductCategoryModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductCategoryPayload>;
13
+ export type AggregateProductCategory = {
14
+ _count: ProductCategoryCountAggregateOutputType | null;
15
+ _avg: ProductCategoryAvgAggregateOutputType | null;
16
+ _sum: ProductCategorySumAggregateOutputType | null;
17
+ _min: ProductCategoryMinAggregateOutputType | null;
18
+ _max: ProductCategoryMaxAggregateOutputType | null;
19
+ };
20
+ export type ProductCategoryAvgAggregateOutputType = {
21
+ priority: number | null;
22
+ };
23
+ export type ProductCategorySumAggregateOutputType = {
24
+ priority: number | null;
25
+ };
26
+ export type ProductCategoryMinAggregateOutputType = {
27
+ id: string | null;
28
+ slug: string | null;
29
+ organizationId: string | null;
30
+ priority: number | null;
31
+ imageId: string | null;
32
+ createdAt: Date | null;
33
+ createdBy: string | null;
34
+ updatedAt: Date | null;
35
+ updatedBy: string | null;
36
+ deletedAt: Date | null;
37
+ deletedBy: string | null;
38
+ publishedAt: Date | null;
39
+ publishedBy: string | null;
40
+ };
41
+ export type ProductCategoryMaxAggregateOutputType = {
42
+ id: string | null;
43
+ slug: string | null;
44
+ organizationId: string | null;
45
+ priority: number | null;
46
+ imageId: string | null;
47
+ createdAt: Date | null;
48
+ createdBy: string | null;
49
+ updatedAt: Date | null;
50
+ updatedBy: string | null;
51
+ deletedAt: Date | null;
52
+ deletedBy: string | null;
53
+ publishedAt: Date | null;
54
+ publishedBy: string | null;
55
+ };
56
+ export type ProductCategoryCountAggregateOutputType = {
57
+ id: number;
58
+ slug: number;
59
+ organizationId: number;
60
+ priority: number;
61
+ imageId: number;
62
+ createdAt: number;
63
+ createdBy: number;
64
+ updatedAt: number;
65
+ updatedBy: number;
66
+ deletedAt: number;
67
+ deletedBy: number;
68
+ publishedAt: number;
69
+ publishedBy: number;
70
+ _all: number;
71
+ };
72
+ export type ProductCategoryAvgAggregateInputType = {
73
+ priority?: true;
74
+ };
75
+ export type ProductCategorySumAggregateInputType = {
76
+ priority?: true;
77
+ };
78
+ export type ProductCategoryMinAggregateInputType = {
79
+ id?: true;
80
+ slug?: true;
81
+ organizationId?: true;
82
+ priority?: true;
83
+ imageId?: true;
84
+ createdAt?: true;
85
+ createdBy?: true;
86
+ updatedAt?: true;
87
+ updatedBy?: true;
88
+ deletedAt?: true;
89
+ deletedBy?: true;
90
+ publishedAt?: true;
91
+ publishedBy?: true;
92
+ };
93
+ export type ProductCategoryMaxAggregateInputType = {
94
+ id?: true;
95
+ slug?: true;
96
+ organizationId?: true;
97
+ priority?: true;
98
+ imageId?: true;
99
+ createdAt?: true;
100
+ createdBy?: true;
101
+ updatedAt?: true;
102
+ updatedBy?: true;
103
+ deletedAt?: true;
104
+ deletedBy?: true;
105
+ publishedAt?: true;
106
+ publishedBy?: true;
107
+ };
108
+ export type ProductCategoryCountAggregateInputType = {
109
+ id?: true;
110
+ slug?: true;
111
+ organizationId?: true;
112
+ priority?: true;
113
+ imageId?: true;
114
+ createdAt?: true;
115
+ createdBy?: true;
116
+ updatedAt?: true;
117
+ updatedBy?: true;
118
+ deletedAt?: true;
119
+ deletedBy?: true;
120
+ publishedAt?: true;
121
+ publishedBy?: true;
122
+ _all?: true;
123
+ };
124
+ export type ProductCategoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
125
+ /**
126
+ * Filter which ProductCategory to aggregate.
127
+ */
128
+ where?: Prisma.ProductCategoryWhereInput;
129
+ /**
130
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
131
+ *
132
+ * Determine the order of ProductCategories to fetch.
133
+ */
134
+ orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
135
+ /**
136
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
137
+ *
138
+ * Sets the start position
139
+ */
140
+ cursor?: Prisma.ProductCategoryWhereUniqueInput;
141
+ /**
142
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
143
+ *
144
+ * Take `±n` ProductCategories from the position of the cursor.
145
+ */
146
+ take?: number;
147
+ /**
148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
149
+ *
150
+ * Skip the first `n` ProductCategories.
151
+ */
152
+ skip?: number;
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
155
+ *
156
+ * Count returned ProductCategories
157
+ **/
158
+ _count?: true | ProductCategoryCountAggregateInputType;
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
161
+ *
162
+ * Select which fields to average
163
+ **/
164
+ _avg?: ProductCategoryAvgAggregateInputType;
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
167
+ *
168
+ * Select which fields to sum
169
+ **/
170
+ _sum?: ProductCategorySumAggregateInputType;
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
173
+ *
174
+ * Select which fields to find the minimum value
175
+ **/
176
+ _min?: ProductCategoryMinAggregateInputType;
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
+ *
180
+ * Select which fields to find the maximum value
181
+ **/
182
+ _max?: ProductCategoryMaxAggregateInputType;
183
+ };
184
+ export type GetProductCategoryAggregateType<T extends ProductCategoryAggregateArgs> = {
185
+ [P in keyof T & keyof AggregateProductCategory]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateProductCategory[P]> : Prisma.GetScalarType<T[P], AggregateProductCategory[P]>;
186
+ };
187
+ export type ProductCategoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
188
+ where?: Prisma.ProductCategoryWhereInput;
189
+ orderBy?: Prisma.ProductCategoryOrderByWithAggregationInput | Prisma.ProductCategoryOrderByWithAggregationInput[];
190
+ by: Prisma.ProductCategoryScalarFieldEnum[] | Prisma.ProductCategoryScalarFieldEnum;
191
+ having?: Prisma.ProductCategoryScalarWhereWithAggregatesInput;
192
+ take?: number;
193
+ skip?: number;
194
+ _count?: ProductCategoryCountAggregateInputType | true;
195
+ _avg?: ProductCategoryAvgAggregateInputType;
196
+ _sum?: ProductCategorySumAggregateInputType;
197
+ _min?: ProductCategoryMinAggregateInputType;
198
+ _max?: ProductCategoryMaxAggregateInputType;
199
+ };
200
+ export type ProductCategoryGroupByOutputType = {
201
+ id: string;
202
+ slug: string | null;
203
+ organizationId: string;
204
+ priority: number | null;
205
+ imageId: string | null;
206
+ createdAt: Date;
207
+ createdBy: string | null;
208
+ updatedAt: Date;
209
+ updatedBy: string | null;
210
+ deletedAt: Date | null;
211
+ deletedBy: string | null;
212
+ publishedAt: Date | null;
213
+ publishedBy: string | null;
214
+ _count: ProductCategoryCountAggregateOutputType | null;
215
+ _avg: ProductCategoryAvgAggregateOutputType | null;
216
+ _sum: ProductCategorySumAggregateOutputType | null;
217
+ _min: ProductCategoryMinAggregateOutputType | null;
218
+ _max: ProductCategoryMaxAggregateOutputType | null;
219
+ };
220
+ type GetProductCategoryGroupByPayload<T extends ProductCategoryGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ProductCategoryGroupByOutputType, T['by']> & {
221
+ [P in ((keyof T) & (keyof ProductCategoryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ProductCategoryGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ProductCategoryGroupByOutputType[P]>;
222
+ }>>;
223
+ export type ProductCategoryWhereInput = {
224
+ AND?: Prisma.ProductCategoryWhereInput | Prisma.ProductCategoryWhereInput[];
225
+ OR?: Prisma.ProductCategoryWhereInput[];
226
+ NOT?: Prisma.ProductCategoryWhereInput | Prisma.ProductCategoryWhereInput[];
227
+ id?: Prisma.StringFilter<"ProductCategory"> | string;
228
+ slug?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
229
+ organizationId?: Prisma.StringFilter<"ProductCategory"> | string;
230
+ priority?: Prisma.IntNullableFilter<"ProductCategory"> | number | null;
231
+ imageId?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
232
+ createdAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string;
233
+ createdBy?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
234
+ updatedAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string;
235
+ updatedBy?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
236
+ deletedAt?: Prisma.DateTimeNullableFilter<"ProductCategory"> | Date | string | null;
237
+ deletedBy?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
238
+ publishedAt?: Prisma.DateTimeNullableFilter<"ProductCategory"> | Date | string | null;
239
+ publishedBy?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
240
+ organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
241
+ image?: Prisma.XOR<Prisma.FileNullableScalarRelationFilter, Prisma.FileWhereInput> | null;
242
+ translations?: Prisma.ProductCategoryTranslationListRelationFilter;
243
+ products?: Prisma.ProductListRelationFilter;
244
+ };
245
+ export type ProductCategoryOrderByWithRelationInput = {
246
+ id?: Prisma.SortOrder;
247
+ slug?: Prisma.SortOrderInput | Prisma.SortOrder;
248
+ organizationId?: Prisma.SortOrder;
249
+ priority?: Prisma.SortOrderInput | Prisma.SortOrder;
250
+ imageId?: Prisma.SortOrderInput | Prisma.SortOrder;
251
+ createdAt?: Prisma.SortOrder;
252
+ createdBy?: Prisma.SortOrderInput | Prisma.SortOrder;
253
+ updatedAt?: Prisma.SortOrder;
254
+ updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
255
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
256
+ deletedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
257
+ publishedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
258
+ publishedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
259
+ organization?: Prisma.OrganizationOrderByWithRelationInput;
260
+ image?: Prisma.FileOrderByWithRelationInput;
261
+ translations?: Prisma.ProductCategoryTranslationOrderByRelationAggregateInput;
262
+ products?: Prisma.ProductOrderByRelationAggregateInput;
263
+ };
264
+ export type ProductCategoryWhereUniqueInput = Prisma.AtLeast<{
265
+ id?: string;
266
+ imageId?: string;
267
+ AND?: Prisma.ProductCategoryWhereInput | Prisma.ProductCategoryWhereInput[];
268
+ OR?: Prisma.ProductCategoryWhereInput[];
269
+ NOT?: Prisma.ProductCategoryWhereInput | Prisma.ProductCategoryWhereInput[];
270
+ slug?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
271
+ organizationId?: Prisma.StringFilter<"ProductCategory"> | string;
272
+ priority?: Prisma.IntNullableFilter<"ProductCategory"> | number | null;
273
+ createdAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string;
274
+ createdBy?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
275
+ updatedAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string;
276
+ updatedBy?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
277
+ deletedAt?: Prisma.DateTimeNullableFilter<"ProductCategory"> | Date | string | null;
278
+ deletedBy?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
279
+ publishedAt?: Prisma.DateTimeNullableFilter<"ProductCategory"> | Date | string | null;
280
+ publishedBy?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
281
+ organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
282
+ image?: Prisma.XOR<Prisma.FileNullableScalarRelationFilter, Prisma.FileWhereInput> | null;
283
+ translations?: Prisma.ProductCategoryTranslationListRelationFilter;
284
+ products?: Prisma.ProductListRelationFilter;
285
+ }, "id" | "imageId">;
286
+ export type ProductCategoryOrderByWithAggregationInput = {
287
+ id?: Prisma.SortOrder;
288
+ slug?: Prisma.SortOrderInput | Prisma.SortOrder;
289
+ organizationId?: Prisma.SortOrder;
290
+ priority?: Prisma.SortOrderInput | Prisma.SortOrder;
291
+ imageId?: Prisma.SortOrderInput | Prisma.SortOrder;
292
+ createdAt?: Prisma.SortOrder;
293
+ createdBy?: Prisma.SortOrderInput | Prisma.SortOrder;
294
+ updatedAt?: Prisma.SortOrder;
295
+ updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
296
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
297
+ deletedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
298
+ publishedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
299
+ publishedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
300
+ _count?: Prisma.ProductCategoryCountOrderByAggregateInput;
301
+ _avg?: Prisma.ProductCategoryAvgOrderByAggregateInput;
302
+ _max?: Prisma.ProductCategoryMaxOrderByAggregateInput;
303
+ _min?: Prisma.ProductCategoryMinOrderByAggregateInput;
304
+ _sum?: Prisma.ProductCategorySumOrderByAggregateInput;
305
+ };
306
+ export type ProductCategoryScalarWhereWithAggregatesInput = {
307
+ AND?: Prisma.ProductCategoryScalarWhereWithAggregatesInput | Prisma.ProductCategoryScalarWhereWithAggregatesInput[];
308
+ OR?: Prisma.ProductCategoryScalarWhereWithAggregatesInput[];
309
+ NOT?: Prisma.ProductCategoryScalarWhereWithAggregatesInput | Prisma.ProductCategoryScalarWhereWithAggregatesInput[];
310
+ id?: Prisma.StringWithAggregatesFilter<"ProductCategory"> | string;
311
+ slug?: Prisma.StringNullableWithAggregatesFilter<"ProductCategory"> | string | null;
312
+ organizationId?: Prisma.StringWithAggregatesFilter<"ProductCategory"> | string;
313
+ priority?: Prisma.IntNullableWithAggregatesFilter<"ProductCategory"> | number | null;
314
+ imageId?: Prisma.StringNullableWithAggregatesFilter<"ProductCategory"> | string | null;
315
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"ProductCategory"> | Date | string;
316
+ createdBy?: Prisma.StringNullableWithAggregatesFilter<"ProductCategory"> | string | null;
317
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ProductCategory"> | Date | string;
318
+ updatedBy?: Prisma.StringNullableWithAggregatesFilter<"ProductCategory"> | string | null;
319
+ deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ProductCategory"> | Date | string | null;
320
+ deletedBy?: Prisma.StringNullableWithAggregatesFilter<"ProductCategory"> | string | null;
321
+ publishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ProductCategory"> | Date | string | null;
322
+ publishedBy?: Prisma.StringNullableWithAggregatesFilter<"ProductCategory"> | string | null;
323
+ };
324
+ export type ProductCategoryCreateInput = {
325
+ id?: string;
326
+ slug?: string | null;
327
+ priority?: number | null;
328
+ createdAt?: Date | string;
329
+ createdBy?: string | null;
330
+ updatedAt?: Date | string;
331
+ updatedBy?: string | null;
332
+ deletedAt?: Date | string | null;
333
+ deletedBy?: string | null;
334
+ publishedAt?: Date | string | null;
335
+ publishedBy?: string | null;
336
+ organization: Prisma.OrganizationCreateNestedOneWithoutProductCategoriesInput;
337
+ image?: Prisma.FileCreateNestedOneWithoutProductCategoryImageInput;
338
+ translations?: Prisma.ProductCategoryTranslationCreateNestedManyWithoutProductCategoryInput;
339
+ products?: Prisma.ProductCreateNestedManyWithoutCategoriesInput;
340
+ };
341
+ export type ProductCategoryUncheckedCreateInput = {
342
+ id?: string;
343
+ slug?: string | null;
344
+ organizationId: string;
345
+ priority?: number | null;
346
+ imageId?: string | null;
347
+ createdAt?: Date | string;
348
+ createdBy?: string | null;
349
+ updatedAt?: Date | string;
350
+ updatedBy?: string | null;
351
+ deletedAt?: Date | string | null;
352
+ deletedBy?: string | null;
353
+ publishedAt?: Date | string | null;
354
+ publishedBy?: string | null;
355
+ translations?: Prisma.ProductCategoryTranslationUncheckedCreateNestedManyWithoutProductCategoryInput;
356
+ products?: Prisma.ProductUncheckedCreateNestedManyWithoutCategoriesInput;
357
+ };
358
+ export type ProductCategoryUpdateInput = {
359
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
360
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
361
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
362
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
363
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
364
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
365
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
366
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
367
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
368
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
369
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
370
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutProductCategoriesNestedInput;
371
+ image?: Prisma.FileUpdateOneWithoutProductCategoryImageNestedInput;
372
+ translations?: Prisma.ProductCategoryTranslationUpdateManyWithoutProductCategoryNestedInput;
373
+ products?: Prisma.ProductUpdateManyWithoutCategoriesNestedInput;
374
+ };
375
+ export type ProductCategoryUncheckedUpdateInput = {
376
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
377
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
378
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
379
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
380
+ imageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
381
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
382
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
383
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
384
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
385
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
386
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
387
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
388
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
389
+ translations?: Prisma.ProductCategoryTranslationUncheckedUpdateManyWithoutProductCategoryNestedInput;
390
+ products?: Prisma.ProductUncheckedUpdateManyWithoutCategoriesNestedInput;
391
+ };
392
+ export type ProductCategoryCreateManyInput = {
393
+ id?: string;
394
+ slug?: string | null;
395
+ organizationId: string;
396
+ priority?: number | null;
397
+ imageId?: string | null;
398
+ createdAt?: Date | string;
399
+ createdBy?: string | null;
400
+ updatedAt?: Date | string;
401
+ updatedBy?: string | null;
402
+ deletedAt?: Date | string | null;
403
+ deletedBy?: string | null;
404
+ publishedAt?: Date | string | null;
405
+ publishedBy?: string | null;
406
+ };
407
+ export type ProductCategoryUpdateManyMutationInput = {
408
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
409
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
410
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
411
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
412
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
413
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
414
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
415
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
416
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
417
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
418
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
419
+ };
420
+ export type ProductCategoryUncheckedUpdateManyInput = {
421
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
422
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
423
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
424
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
425
+ imageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
426
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
427
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
428
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
429
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
430
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
431
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
432
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
433
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
434
+ };
435
+ export type ProductCategoryListRelationFilter = {
436
+ every?: Prisma.ProductCategoryWhereInput;
437
+ some?: Prisma.ProductCategoryWhereInput;
438
+ none?: Prisma.ProductCategoryWhereInput;
439
+ };
440
+ export type ProductCategoryOrderByRelationAggregateInput = {
441
+ _count?: Prisma.SortOrder;
442
+ };
443
+ export type ProductCategoryNullableScalarRelationFilter = {
444
+ is?: Prisma.ProductCategoryWhereInput | null;
445
+ isNot?: Prisma.ProductCategoryWhereInput | null;
446
+ };
447
+ export type ProductCategoryCountOrderByAggregateInput = {
448
+ id?: Prisma.SortOrder;
449
+ slug?: Prisma.SortOrder;
450
+ organizationId?: Prisma.SortOrder;
451
+ priority?: Prisma.SortOrder;
452
+ imageId?: Prisma.SortOrder;
453
+ createdAt?: Prisma.SortOrder;
454
+ createdBy?: Prisma.SortOrder;
455
+ updatedAt?: Prisma.SortOrder;
456
+ updatedBy?: Prisma.SortOrder;
457
+ deletedAt?: Prisma.SortOrder;
458
+ deletedBy?: Prisma.SortOrder;
459
+ publishedAt?: Prisma.SortOrder;
460
+ publishedBy?: Prisma.SortOrder;
461
+ };
462
+ export type ProductCategoryAvgOrderByAggregateInput = {
463
+ priority?: Prisma.SortOrder;
464
+ };
465
+ export type ProductCategoryMaxOrderByAggregateInput = {
466
+ id?: Prisma.SortOrder;
467
+ slug?: Prisma.SortOrder;
468
+ organizationId?: Prisma.SortOrder;
469
+ priority?: Prisma.SortOrder;
470
+ imageId?: Prisma.SortOrder;
471
+ createdAt?: Prisma.SortOrder;
472
+ createdBy?: Prisma.SortOrder;
473
+ updatedAt?: Prisma.SortOrder;
474
+ updatedBy?: Prisma.SortOrder;
475
+ deletedAt?: Prisma.SortOrder;
476
+ deletedBy?: Prisma.SortOrder;
477
+ publishedAt?: Prisma.SortOrder;
478
+ publishedBy?: Prisma.SortOrder;
479
+ };
480
+ export type ProductCategoryMinOrderByAggregateInput = {
481
+ id?: Prisma.SortOrder;
482
+ slug?: Prisma.SortOrder;
483
+ organizationId?: Prisma.SortOrder;
484
+ priority?: Prisma.SortOrder;
485
+ imageId?: Prisma.SortOrder;
486
+ createdAt?: Prisma.SortOrder;
487
+ createdBy?: Prisma.SortOrder;
488
+ updatedAt?: Prisma.SortOrder;
489
+ updatedBy?: Prisma.SortOrder;
490
+ deletedAt?: Prisma.SortOrder;
491
+ deletedBy?: Prisma.SortOrder;
492
+ publishedAt?: Prisma.SortOrder;
493
+ publishedBy?: Prisma.SortOrder;
494
+ };
495
+ export type ProductCategorySumOrderByAggregateInput = {
496
+ priority?: Prisma.SortOrder;
497
+ };
498
+ export type ProductCategoryScalarRelationFilter = {
499
+ is?: Prisma.ProductCategoryWhereInput;
500
+ isNot?: Prisma.ProductCategoryWhereInput;
501
+ };
502
+ export type ProductCategoryCreateNestedManyWithoutOrganizationInput = {
503
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutOrganizationInput, Prisma.ProductCategoryUncheckedCreateWithoutOrganizationInput> | Prisma.ProductCategoryCreateWithoutOrganizationInput[] | Prisma.ProductCategoryUncheckedCreateWithoutOrganizationInput[];
504
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutOrganizationInput | Prisma.ProductCategoryCreateOrConnectWithoutOrganizationInput[];
505
+ createMany?: Prisma.ProductCategoryCreateManyOrganizationInputEnvelope;
506
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
507
+ };
508
+ export type ProductCategoryUncheckedCreateNestedManyWithoutOrganizationInput = {
509
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutOrganizationInput, Prisma.ProductCategoryUncheckedCreateWithoutOrganizationInput> | Prisma.ProductCategoryCreateWithoutOrganizationInput[] | Prisma.ProductCategoryUncheckedCreateWithoutOrganizationInput[];
510
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutOrganizationInput | Prisma.ProductCategoryCreateOrConnectWithoutOrganizationInput[];
511
+ createMany?: Prisma.ProductCategoryCreateManyOrganizationInputEnvelope;
512
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
513
+ };
514
+ export type ProductCategoryUpdateManyWithoutOrganizationNestedInput = {
515
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutOrganizationInput, Prisma.ProductCategoryUncheckedCreateWithoutOrganizationInput> | Prisma.ProductCategoryCreateWithoutOrganizationInput[] | Prisma.ProductCategoryUncheckedCreateWithoutOrganizationInput[];
516
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutOrganizationInput | Prisma.ProductCategoryCreateOrConnectWithoutOrganizationInput[];
517
+ upsert?: Prisma.ProductCategoryUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.ProductCategoryUpsertWithWhereUniqueWithoutOrganizationInput[];
518
+ createMany?: Prisma.ProductCategoryCreateManyOrganizationInputEnvelope;
519
+ set?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
520
+ disconnect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
521
+ delete?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
522
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
523
+ update?: Prisma.ProductCategoryUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.ProductCategoryUpdateWithWhereUniqueWithoutOrganizationInput[];
524
+ updateMany?: Prisma.ProductCategoryUpdateManyWithWhereWithoutOrganizationInput | Prisma.ProductCategoryUpdateManyWithWhereWithoutOrganizationInput[];
525
+ deleteMany?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[];
526
+ };
527
+ export type ProductCategoryUncheckedUpdateManyWithoutOrganizationNestedInput = {
528
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutOrganizationInput, Prisma.ProductCategoryUncheckedCreateWithoutOrganizationInput> | Prisma.ProductCategoryCreateWithoutOrganizationInput[] | Prisma.ProductCategoryUncheckedCreateWithoutOrganizationInput[];
529
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutOrganizationInput | Prisma.ProductCategoryCreateOrConnectWithoutOrganizationInput[];
530
+ upsert?: Prisma.ProductCategoryUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.ProductCategoryUpsertWithWhereUniqueWithoutOrganizationInput[];
531
+ createMany?: Prisma.ProductCategoryCreateManyOrganizationInputEnvelope;
532
+ set?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
533
+ disconnect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
534
+ delete?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
535
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
536
+ update?: Prisma.ProductCategoryUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.ProductCategoryUpdateWithWhereUniqueWithoutOrganizationInput[];
537
+ updateMany?: Prisma.ProductCategoryUpdateManyWithWhereWithoutOrganizationInput | Prisma.ProductCategoryUpdateManyWithWhereWithoutOrganizationInput[];
538
+ deleteMany?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[];
539
+ };
540
+ export type ProductCategoryCreateNestedOneWithoutImageInput = {
541
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutImageInput, Prisma.ProductCategoryUncheckedCreateWithoutImageInput>;
542
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutImageInput;
543
+ connect?: Prisma.ProductCategoryWhereUniqueInput;
544
+ };
545
+ export type ProductCategoryUncheckedCreateNestedOneWithoutImageInput = {
546
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutImageInput, Prisma.ProductCategoryUncheckedCreateWithoutImageInput>;
547
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutImageInput;
548
+ connect?: Prisma.ProductCategoryWhereUniqueInput;
549
+ };
550
+ export type ProductCategoryUpdateOneWithoutImageNestedInput = {
551
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutImageInput, Prisma.ProductCategoryUncheckedCreateWithoutImageInput>;
552
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutImageInput;
553
+ upsert?: Prisma.ProductCategoryUpsertWithoutImageInput;
554
+ disconnect?: Prisma.ProductCategoryWhereInput | boolean;
555
+ delete?: Prisma.ProductCategoryWhereInput | boolean;
556
+ connect?: Prisma.ProductCategoryWhereUniqueInput;
557
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProductCategoryUpdateToOneWithWhereWithoutImageInput, Prisma.ProductCategoryUpdateWithoutImageInput>, Prisma.ProductCategoryUncheckedUpdateWithoutImageInput>;
558
+ };
559
+ export type ProductCategoryUncheckedUpdateOneWithoutImageNestedInput = {
560
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutImageInput, Prisma.ProductCategoryUncheckedCreateWithoutImageInput>;
561
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutImageInput;
562
+ upsert?: Prisma.ProductCategoryUpsertWithoutImageInput;
563
+ disconnect?: Prisma.ProductCategoryWhereInput | boolean;
564
+ delete?: Prisma.ProductCategoryWhereInput | boolean;
565
+ connect?: Prisma.ProductCategoryWhereUniqueInput;
566
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProductCategoryUpdateToOneWithWhereWithoutImageInput, Prisma.ProductCategoryUpdateWithoutImageInput>, Prisma.ProductCategoryUncheckedUpdateWithoutImageInput>;
567
+ };
568
+ export type ProductCategoryCreateNestedOneWithoutTranslationsInput = {
569
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutTranslationsInput, Prisma.ProductCategoryUncheckedCreateWithoutTranslationsInput>;
570
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutTranslationsInput;
571
+ connect?: Prisma.ProductCategoryWhereUniqueInput;
572
+ };
573
+ export type ProductCategoryUpdateOneRequiredWithoutTranslationsNestedInput = {
574
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutTranslationsInput, Prisma.ProductCategoryUncheckedCreateWithoutTranslationsInput>;
575
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutTranslationsInput;
576
+ upsert?: Prisma.ProductCategoryUpsertWithoutTranslationsInput;
577
+ connect?: Prisma.ProductCategoryWhereUniqueInput;
578
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProductCategoryUpdateToOneWithWhereWithoutTranslationsInput, Prisma.ProductCategoryUpdateWithoutTranslationsInput>, Prisma.ProductCategoryUncheckedUpdateWithoutTranslationsInput>;
579
+ };
580
+ export type ProductCategoryCreateNestedManyWithoutProductsInput = {
581
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput> | Prisma.ProductCategoryCreateWithoutProductsInput[] | Prisma.ProductCategoryUncheckedCreateWithoutProductsInput[];
582
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductsInput | Prisma.ProductCategoryCreateOrConnectWithoutProductsInput[];
583
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
584
+ };
585
+ export type ProductCategoryUncheckedCreateNestedManyWithoutProductsInput = {
586
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput> | Prisma.ProductCategoryCreateWithoutProductsInput[] | Prisma.ProductCategoryUncheckedCreateWithoutProductsInput[];
587
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductsInput | Prisma.ProductCategoryCreateOrConnectWithoutProductsInput[];
588
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
589
+ };
590
+ export type ProductCategoryUpdateManyWithoutProductsNestedInput = {
591
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput> | Prisma.ProductCategoryCreateWithoutProductsInput[] | Prisma.ProductCategoryUncheckedCreateWithoutProductsInput[];
592
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductsInput | Prisma.ProductCategoryCreateOrConnectWithoutProductsInput[];
593
+ upsert?: Prisma.ProductCategoryUpsertWithWhereUniqueWithoutProductsInput | Prisma.ProductCategoryUpsertWithWhereUniqueWithoutProductsInput[];
594
+ set?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
595
+ disconnect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
596
+ delete?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
597
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
598
+ update?: Prisma.ProductCategoryUpdateWithWhereUniqueWithoutProductsInput | Prisma.ProductCategoryUpdateWithWhereUniqueWithoutProductsInput[];
599
+ updateMany?: Prisma.ProductCategoryUpdateManyWithWhereWithoutProductsInput | Prisma.ProductCategoryUpdateManyWithWhereWithoutProductsInput[];
600
+ deleteMany?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[];
601
+ };
602
+ export type ProductCategoryUncheckedUpdateManyWithoutProductsNestedInput = {
603
+ create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput> | Prisma.ProductCategoryCreateWithoutProductsInput[] | Prisma.ProductCategoryUncheckedCreateWithoutProductsInput[];
604
+ connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductsInput | Prisma.ProductCategoryCreateOrConnectWithoutProductsInput[];
605
+ upsert?: Prisma.ProductCategoryUpsertWithWhereUniqueWithoutProductsInput | Prisma.ProductCategoryUpsertWithWhereUniqueWithoutProductsInput[];
606
+ set?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
607
+ disconnect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
608
+ delete?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
609
+ connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[];
610
+ update?: Prisma.ProductCategoryUpdateWithWhereUniqueWithoutProductsInput | Prisma.ProductCategoryUpdateWithWhereUniqueWithoutProductsInput[];
611
+ updateMany?: Prisma.ProductCategoryUpdateManyWithWhereWithoutProductsInput | Prisma.ProductCategoryUpdateManyWithWhereWithoutProductsInput[];
612
+ deleteMany?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[];
613
+ };
614
+ export type ProductCategoryCreateWithoutOrganizationInput = {
615
+ id?: string;
616
+ slug?: string | null;
617
+ priority?: number | null;
618
+ createdAt?: Date | string;
619
+ createdBy?: string | null;
620
+ updatedAt?: Date | string;
621
+ updatedBy?: string | null;
622
+ deletedAt?: Date | string | null;
623
+ deletedBy?: string | null;
624
+ publishedAt?: Date | string | null;
625
+ publishedBy?: string | null;
626
+ image?: Prisma.FileCreateNestedOneWithoutProductCategoryImageInput;
627
+ translations?: Prisma.ProductCategoryTranslationCreateNestedManyWithoutProductCategoryInput;
628
+ products?: Prisma.ProductCreateNestedManyWithoutCategoriesInput;
629
+ };
630
+ export type ProductCategoryUncheckedCreateWithoutOrganizationInput = {
631
+ id?: string;
632
+ slug?: string | null;
633
+ priority?: number | null;
634
+ imageId?: string | null;
635
+ createdAt?: Date | string;
636
+ createdBy?: string | null;
637
+ updatedAt?: Date | string;
638
+ updatedBy?: string | null;
639
+ deletedAt?: Date | string | null;
640
+ deletedBy?: string | null;
641
+ publishedAt?: Date | string | null;
642
+ publishedBy?: string | null;
643
+ translations?: Prisma.ProductCategoryTranslationUncheckedCreateNestedManyWithoutProductCategoryInput;
644
+ products?: Prisma.ProductUncheckedCreateNestedManyWithoutCategoriesInput;
645
+ };
646
+ export type ProductCategoryCreateOrConnectWithoutOrganizationInput = {
647
+ where: Prisma.ProductCategoryWhereUniqueInput;
648
+ create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutOrganizationInput, Prisma.ProductCategoryUncheckedCreateWithoutOrganizationInput>;
649
+ };
650
+ export type ProductCategoryCreateManyOrganizationInputEnvelope = {
651
+ data: Prisma.ProductCategoryCreateManyOrganizationInput | Prisma.ProductCategoryCreateManyOrganizationInput[];
652
+ skipDuplicates?: boolean;
653
+ };
654
+ export type ProductCategoryUpsertWithWhereUniqueWithoutOrganizationInput = {
655
+ where: Prisma.ProductCategoryWhereUniqueInput;
656
+ update: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutOrganizationInput, Prisma.ProductCategoryUncheckedUpdateWithoutOrganizationInput>;
657
+ create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutOrganizationInput, Prisma.ProductCategoryUncheckedCreateWithoutOrganizationInput>;
658
+ };
659
+ export type ProductCategoryUpdateWithWhereUniqueWithoutOrganizationInput = {
660
+ where: Prisma.ProductCategoryWhereUniqueInput;
661
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutOrganizationInput, Prisma.ProductCategoryUncheckedUpdateWithoutOrganizationInput>;
662
+ };
663
+ export type ProductCategoryUpdateManyWithWhereWithoutOrganizationInput = {
664
+ where: Prisma.ProductCategoryScalarWhereInput;
665
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyWithoutOrganizationInput>;
666
+ };
667
+ export type ProductCategoryScalarWhereInput = {
668
+ AND?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[];
669
+ OR?: Prisma.ProductCategoryScalarWhereInput[];
670
+ NOT?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[];
671
+ id?: Prisma.StringFilter<"ProductCategory"> | string;
672
+ slug?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
673
+ organizationId?: Prisma.StringFilter<"ProductCategory"> | string;
674
+ priority?: Prisma.IntNullableFilter<"ProductCategory"> | number | null;
675
+ imageId?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
676
+ createdAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string;
677
+ createdBy?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
678
+ updatedAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string;
679
+ updatedBy?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
680
+ deletedAt?: Prisma.DateTimeNullableFilter<"ProductCategory"> | Date | string | null;
681
+ deletedBy?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
682
+ publishedAt?: Prisma.DateTimeNullableFilter<"ProductCategory"> | Date | string | null;
683
+ publishedBy?: Prisma.StringNullableFilter<"ProductCategory"> | string | null;
684
+ };
685
+ export type ProductCategoryCreateWithoutImageInput = {
686
+ id?: string;
687
+ slug?: string | null;
688
+ priority?: number | null;
689
+ createdAt?: Date | string;
690
+ createdBy?: string | null;
691
+ updatedAt?: Date | string;
692
+ updatedBy?: string | null;
693
+ deletedAt?: Date | string | null;
694
+ deletedBy?: string | null;
695
+ publishedAt?: Date | string | null;
696
+ publishedBy?: string | null;
697
+ organization: Prisma.OrganizationCreateNestedOneWithoutProductCategoriesInput;
698
+ translations?: Prisma.ProductCategoryTranslationCreateNestedManyWithoutProductCategoryInput;
699
+ products?: Prisma.ProductCreateNestedManyWithoutCategoriesInput;
700
+ };
701
+ export type ProductCategoryUncheckedCreateWithoutImageInput = {
702
+ id?: string;
703
+ slug?: string | null;
704
+ organizationId: string;
705
+ priority?: number | null;
706
+ createdAt?: Date | string;
707
+ createdBy?: string | null;
708
+ updatedAt?: Date | string;
709
+ updatedBy?: string | null;
710
+ deletedAt?: Date | string | null;
711
+ deletedBy?: string | null;
712
+ publishedAt?: Date | string | null;
713
+ publishedBy?: string | null;
714
+ translations?: Prisma.ProductCategoryTranslationUncheckedCreateNestedManyWithoutProductCategoryInput;
715
+ products?: Prisma.ProductUncheckedCreateNestedManyWithoutCategoriesInput;
716
+ };
717
+ export type ProductCategoryCreateOrConnectWithoutImageInput = {
718
+ where: Prisma.ProductCategoryWhereUniqueInput;
719
+ create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutImageInput, Prisma.ProductCategoryUncheckedCreateWithoutImageInput>;
720
+ };
721
+ export type ProductCategoryUpsertWithoutImageInput = {
722
+ update: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutImageInput, Prisma.ProductCategoryUncheckedUpdateWithoutImageInput>;
723
+ create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutImageInput, Prisma.ProductCategoryUncheckedCreateWithoutImageInput>;
724
+ where?: Prisma.ProductCategoryWhereInput;
725
+ };
726
+ export type ProductCategoryUpdateToOneWithWhereWithoutImageInput = {
727
+ where?: Prisma.ProductCategoryWhereInput;
728
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutImageInput, Prisma.ProductCategoryUncheckedUpdateWithoutImageInput>;
729
+ };
730
+ export type ProductCategoryUpdateWithoutImageInput = {
731
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
732
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
733
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
734
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
735
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
736
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
737
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
738
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
739
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
740
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
741
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
742
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutProductCategoriesNestedInput;
743
+ translations?: Prisma.ProductCategoryTranslationUpdateManyWithoutProductCategoryNestedInput;
744
+ products?: Prisma.ProductUpdateManyWithoutCategoriesNestedInput;
745
+ };
746
+ export type ProductCategoryUncheckedUpdateWithoutImageInput = {
747
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
748
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
749
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
750
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
751
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
752
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
753
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
754
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
755
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
756
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
757
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
758
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
759
+ translations?: Prisma.ProductCategoryTranslationUncheckedUpdateManyWithoutProductCategoryNestedInput;
760
+ products?: Prisma.ProductUncheckedUpdateManyWithoutCategoriesNestedInput;
761
+ };
762
+ export type ProductCategoryCreateWithoutTranslationsInput = {
763
+ id?: string;
764
+ slug?: string | null;
765
+ priority?: number | null;
766
+ createdAt?: Date | string;
767
+ createdBy?: string | null;
768
+ updatedAt?: Date | string;
769
+ updatedBy?: string | null;
770
+ deletedAt?: Date | string | null;
771
+ deletedBy?: string | null;
772
+ publishedAt?: Date | string | null;
773
+ publishedBy?: string | null;
774
+ organization: Prisma.OrganizationCreateNestedOneWithoutProductCategoriesInput;
775
+ image?: Prisma.FileCreateNestedOneWithoutProductCategoryImageInput;
776
+ products?: Prisma.ProductCreateNestedManyWithoutCategoriesInput;
777
+ };
778
+ export type ProductCategoryUncheckedCreateWithoutTranslationsInput = {
779
+ id?: string;
780
+ slug?: string | null;
781
+ organizationId: string;
782
+ priority?: number | null;
783
+ imageId?: string | null;
784
+ createdAt?: Date | string;
785
+ createdBy?: string | null;
786
+ updatedAt?: Date | string;
787
+ updatedBy?: string | null;
788
+ deletedAt?: Date | string | null;
789
+ deletedBy?: string | null;
790
+ publishedAt?: Date | string | null;
791
+ publishedBy?: string | null;
792
+ products?: Prisma.ProductUncheckedCreateNestedManyWithoutCategoriesInput;
793
+ };
794
+ export type ProductCategoryCreateOrConnectWithoutTranslationsInput = {
795
+ where: Prisma.ProductCategoryWhereUniqueInput;
796
+ create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutTranslationsInput, Prisma.ProductCategoryUncheckedCreateWithoutTranslationsInput>;
797
+ };
798
+ export type ProductCategoryUpsertWithoutTranslationsInput = {
799
+ update: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutTranslationsInput, Prisma.ProductCategoryUncheckedUpdateWithoutTranslationsInput>;
800
+ create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutTranslationsInput, Prisma.ProductCategoryUncheckedCreateWithoutTranslationsInput>;
801
+ where?: Prisma.ProductCategoryWhereInput;
802
+ };
803
+ export type ProductCategoryUpdateToOneWithWhereWithoutTranslationsInput = {
804
+ where?: Prisma.ProductCategoryWhereInput;
805
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutTranslationsInput, Prisma.ProductCategoryUncheckedUpdateWithoutTranslationsInput>;
806
+ };
807
+ export type ProductCategoryUpdateWithoutTranslationsInput = {
808
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
809
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
810
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
811
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
812
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
813
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
814
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
815
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
816
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
817
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
818
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
819
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutProductCategoriesNestedInput;
820
+ image?: Prisma.FileUpdateOneWithoutProductCategoryImageNestedInput;
821
+ products?: Prisma.ProductUpdateManyWithoutCategoriesNestedInput;
822
+ };
823
+ export type ProductCategoryUncheckedUpdateWithoutTranslationsInput = {
824
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
825
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
826
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
827
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
828
+ imageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
829
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
830
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
831
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
832
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
833
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
834
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
835
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
836
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
837
+ products?: Prisma.ProductUncheckedUpdateManyWithoutCategoriesNestedInput;
838
+ };
839
+ export type ProductCategoryCreateWithoutProductsInput = {
840
+ id?: string;
841
+ slug?: string | null;
842
+ priority?: number | null;
843
+ createdAt?: Date | string;
844
+ createdBy?: string | null;
845
+ updatedAt?: Date | string;
846
+ updatedBy?: string | null;
847
+ deletedAt?: Date | string | null;
848
+ deletedBy?: string | null;
849
+ publishedAt?: Date | string | null;
850
+ publishedBy?: string | null;
851
+ organization: Prisma.OrganizationCreateNestedOneWithoutProductCategoriesInput;
852
+ image?: Prisma.FileCreateNestedOneWithoutProductCategoryImageInput;
853
+ translations?: Prisma.ProductCategoryTranslationCreateNestedManyWithoutProductCategoryInput;
854
+ };
855
+ export type ProductCategoryUncheckedCreateWithoutProductsInput = {
856
+ id?: string;
857
+ slug?: string | null;
858
+ organizationId: string;
859
+ priority?: number | null;
860
+ imageId?: string | null;
861
+ createdAt?: Date | string;
862
+ createdBy?: string | null;
863
+ updatedAt?: Date | string;
864
+ updatedBy?: string | null;
865
+ deletedAt?: Date | string | null;
866
+ deletedBy?: string | null;
867
+ publishedAt?: Date | string | null;
868
+ publishedBy?: string | null;
869
+ translations?: Prisma.ProductCategoryTranslationUncheckedCreateNestedManyWithoutProductCategoryInput;
870
+ };
871
+ export type ProductCategoryCreateOrConnectWithoutProductsInput = {
872
+ where: Prisma.ProductCategoryWhereUniqueInput;
873
+ create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput>;
874
+ };
875
+ export type ProductCategoryUpsertWithWhereUniqueWithoutProductsInput = {
876
+ where: Prisma.ProductCategoryWhereUniqueInput;
877
+ update: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutProductsInput, Prisma.ProductCategoryUncheckedUpdateWithoutProductsInput>;
878
+ create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput>;
879
+ };
880
+ export type ProductCategoryUpdateWithWhereUniqueWithoutProductsInput = {
881
+ where: Prisma.ProductCategoryWhereUniqueInput;
882
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutProductsInput, Prisma.ProductCategoryUncheckedUpdateWithoutProductsInput>;
883
+ };
884
+ export type ProductCategoryUpdateManyWithWhereWithoutProductsInput = {
885
+ where: Prisma.ProductCategoryScalarWhereInput;
886
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyWithoutProductsInput>;
887
+ };
888
+ export type ProductCategoryCreateManyOrganizationInput = {
889
+ id?: string;
890
+ slug?: string | null;
891
+ priority?: number | null;
892
+ imageId?: string | null;
893
+ createdAt?: Date | string;
894
+ createdBy?: string | null;
895
+ updatedAt?: Date | string;
896
+ updatedBy?: string | null;
897
+ deletedAt?: Date | string | null;
898
+ deletedBy?: string | null;
899
+ publishedAt?: Date | string | null;
900
+ publishedBy?: string | null;
901
+ };
902
+ export type ProductCategoryUpdateWithoutOrganizationInput = {
903
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
904
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
905
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
906
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
907
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
908
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
909
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
910
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
911
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
912
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
913
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
914
+ image?: Prisma.FileUpdateOneWithoutProductCategoryImageNestedInput;
915
+ translations?: Prisma.ProductCategoryTranslationUpdateManyWithoutProductCategoryNestedInput;
916
+ products?: Prisma.ProductUpdateManyWithoutCategoriesNestedInput;
917
+ };
918
+ export type ProductCategoryUncheckedUpdateWithoutOrganizationInput = {
919
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
920
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
921
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
922
+ imageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
923
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
924
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
925
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
926
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
927
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
928
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
929
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
930
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
931
+ translations?: Prisma.ProductCategoryTranslationUncheckedUpdateManyWithoutProductCategoryNestedInput;
932
+ products?: Prisma.ProductUncheckedUpdateManyWithoutCategoriesNestedInput;
933
+ };
934
+ export type ProductCategoryUncheckedUpdateManyWithoutOrganizationInput = {
935
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
936
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
937
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
938
+ imageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
939
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
940
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
941
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
942
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
943
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
944
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
945
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
946
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
947
+ };
948
+ export type ProductCategoryUpdateWithoutProductsInput = {
949
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
950
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
951
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
952
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
953
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
954
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
955
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
956
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
957
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
958
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
959
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
960
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutProductCategoriesNestedInput;
961
+ image?: Prisma.FileUpdateOneWithoutProductCategoryImageNestedInput;
962
+ translations?: Prisma.ProductCategoryTranslationUpdateManyWithoutProductCategoryNestedInput;
963
+ };
964
+ export type ProductCategoryUncheckedUpdateWithoutProductsInput = {
965
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
966
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
967
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
968
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
969
+ imageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
970
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
971
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
972
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
973
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
974
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
975
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
976
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
977
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
978
+ translations?: Prisma.ProductCategoryTranslationUncheckedUpdateManyWithoutProductCategoryNestedInput;
979
+ };
980
+ export type ProductCategoryUncheckedUpdateManyWithoutProductsInput = {
981
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
982
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
983
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
984
+ priority?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
985
+ imageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
986
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
987
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
988
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
989
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
990
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
991
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
992
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
993
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
994
+ };
995
+ /**
996
+ * Count Type ProductCategoryCountOutputType
997
+ */
998
+ export type ProductCategoryCountOutputType = {
999
+ translations: number;
1000
+ products: number;
1001
+ };
1002
+ export type ProductCategoryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1003
+ translations?: boolean | ProductCategoryCountOutputTypeCountTranslationsArgs;
1004
+ products?: boolean | ProductCategoryCountOutputTypeCountProductsArgs;
1005
+ };
1006
+ /**
1007
+ * ProductCategoryCountOutputType without action
1008
+ */
1009
+ export type ProductCategoryCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1010
+ /**
1011
+ * Select specific fields to fetch from the ProductCategoryCountOutputType
1012
+ */
1013
+ select?: Prisma.ProductCategoryCountOutputTypeSelect<ExtArgs> | null;
1014
+ };
1015
+ /**
1016
+ * ProductCategoryCountOutputType without action
1017
+ */
1018
+ export type ProductCategoryCountOutputTypeCountTranslationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1019
+ where?: Prisma.ProductCategoryTranslationWhereInput;
1020
+ };
1021
+ /**
1022
+ * ProductCategoryCountOutputType without action
1023
+ */
1024
+ export type ProductCategoryCountOutputTypeCountProductsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1025
+ where?: Prisma.ProductWhereInput;
1026
+ };
1027
+ export type ProductCategorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1028
+ id?: boolean;
1029
+ slug?: boolean;
1030
+ organizationId?: boolean;
1031
+ priority?: boolean;
1032
+ imageId?: boolean;
1033
+ createdAt?: boolean;
1034
+ createdBy?: boolean;
1035
+ updatedAt?: boolean;
1036
+ updatedBy?: boolean;
1037
+ deletedAt?: boolean;
1038
+ deletedBy?: boolean;
1039
+ publishedAt?: boolean;
1040
+ publishedBy?: boolean;
1041
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1042
+ image?: boolean | Prisma.ProductCategory$imageArgs<ExtArgs>;
1043
+ translations?: boolean | Prisma.ProductCategory$translationsArgs<ExtArgs>;
1044
+ products?: boolean | Prisma.ProductCategory$productsArgs<ExtArgs>;
1045
+ _count?: boolean | Prisma.ProductCategoryCountOutputTypeDefaultArgs<ExtArgs>;
1046
+ }, ExtArgs["result"]["productCategory"]>;
1047
+ export type ProductCategorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1048
+ id?: boolean;
1049
+ slug?: boolean;
1050
+ organizationId?: boolean;
1051
+ priority?: boolean;
1052
+ imageId?: boolean;
1053
+ createdAt?: boolean;
1054
+ createdBy?: boolean;
1055
+ updatedAt?: boolean;
1056
+ updatedBy?: boolean;
1057
+ deletedAt?: boolean;
1058
+ deletedBy?: boolean;
1059
+ publishedAt?: boolean;
1060
+ publishedBy?: boolean;
1061
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1062
+ image?: boolean | Prisma.ProductCategory$imageArgs<ExtArgs>;
1063
+ }, ExtArgs["result"]["productCategory"]>;
1064
+ export type ProductCategorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1065
+ id?: boolean;
1066
+ slug?: boolean;
1067
+ organizationId?: boolean;
1068
+ priority?: boolean;
1069
+ imageId?: boolean;
1070
+ createdAt?: boolean;
1071
+ createdBy?: boolean;
1072
+ updatedAt?: boolean;
1073
+ updatedBy?: boolean;
1074
+ deletedAt?: boolean;
1075
+ deletedBy?: boolean;
1076
+ publishedAt?: boolean;
1077
+ publishedBy?: boolean;
1078
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1079
+ image?: boolean | Prisma.ProductCategory$imageArgs<ExtArgs>;
1080
+ }, ExtArgs["result"]["productCategory"]>;
1081
+ export type ProductCategorySelectScalar = {
1082
+ id?: boolean;
1083
+ slug?: boolean;
1084
+ organizationId?: boolean;
1085
+ priority?: boolean;
1086
+ imageId?: boolean;
1087
+ createdAt?: boolean;
1088
+ createdBy?: boolean;
1089
+ updatedAt?: boolean;
1090
+ updatedBy?: boolean;
1091
+ deletedAt?: boolean;
1092
+ deletedBy?: boolean;
1093
+ publishedAt?: boolean;
1094
+ publishedBy?: boolean;
1095
+ };
1096
+ export type ProductCategoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "slug" | "organizationId" | "priority" | "imageId" | "createdAt" | "createdBy" | "updatedAt" | "updatedBy" | "deletedAt" | "deletedBy" | "publishedAt" | "publishedBy", ExtArgs["result"]["productCategory"]>;
1097
+ export type ProductCategoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1098
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1099
+ image?: boolean | Prisma.ProductCategory$imageArgs<ExtArgs>;
1100
+ translations?: boolean | Prisma.ProductCategory$translationsArgs<ExtArgs>;
1101
+ products?: boolean | Prisma.ProductCategory$productsArgs<ExtArgs>;
1102
+ _count?: boolean | Prisma.ProductCategoryCountOutputTypeDefaultArgs<ExtArgs>;
1103
+ };
1104
+ export type ProductCategoryIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1105
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1106
+ image?: boolean | Prisma.ProductCategory$imageArgs<ExtArgs>;
1107
+ };
1108
+ export type ProductCategoryIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1109
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1110
+ image?: boolean | Prisma.ProductCategory$imageArgs<ExtArgs>;
1111
+ };
1112
+ export type $ProductCategoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1113
+ name: "ProductCategory";
1114
+ objects: {
1115
+ organization: Prisma.$OrganizationPayload<ExtArgs>;
1116
+ image: Prisma.$FilePayload<ExtArgs> | null;
1117
+ translations: Prisma.$ProductCategoryTranslationPayload<ExtArgs>[];
1118
+ products: Prisma.$ProductPayload<ExtArgs>[];
1119
+ };
1120
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1121
+ id: string;
1122
+ slug: string | null;
1123
+ organizationId: string;
1124
+ priority: number | null;
1125
+ imageId: string | null;
1126
+ createdAt: Date;
1127
+ createdBy: string | null;
1128
+ updatedAt: Date;
1129
+ updatedBy: string | null;
1130
+ deletedAt: Date | null;
1131
+ deletedBy: string | null;
1132
+ publishedAt: Date | null;
1133
+ publishedBy: string | null;
1134
+ }, ExtArgs["result"]["productCategory"]>;
1135
+ composites: {};
1136
+ };
1137
+ export type ProductCategoryGetPayload<S extends boolean | null | undefined | ProductCategoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload, S>;
1138
+ export type ProductCategoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ProductCategoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1139
+ select?: ProductCategoryCountAggregateInputType | true;
1140
+ };
1141
+ export interface ProductCategoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1142
+ [K: symbol]: {
1143
+ types: Prisma.TypeMap<ExtArgs>['model']['ProductCategory'];
1144
+ meta: {
1145
+ name: 'ProductCategory';
1146
+ };
1147
+ };
1148
+ /**
1149
+ * Find zero or one ProductCategory that matches the filter.
1150
+ * @param {ProductCategoryFindUniqueArgs} args - Arguments to find a ProductCategory
1151
+ * @example
1152
+ * // Get one ProductCategory
1153
+ * const productCategory = await prisma.productCategory.findUnique({
1154
+ * where: {
1155
+ * // ... provide filter here
1156
+ * }
1157
+ * })
1158
+ */
1159
+ findUnique<T extends ProductCategoryFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductCategoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1160
+ /**
1161
+ * Find one ProductCategory that matches the filter or throw an error with `error.code='P2025'`
1162
+ * if no matches were found.
1163
+ * @param {ProductCategoryFindUniqueOrThrowArgs} args - Arguments to find a ProductCategory
1164
+ * @example
1165
+ * // Get one ProductCategory
1166
+ * const productCategory = await prisma.productCategory.findUniqueOrThrow({
1167
+ * where: {
1168
+ * // ... provide filter here
1169
+ * }
1170
+ * })
1171
+ */
1172
+ findUniqueOrThrow<T extends ProductCategoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductCategoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1173
+ /**
1174
+ * Find the first ProductCategory that matches the filter.
1175
+ * Note, that providing `undefined` is treated as the value not being there.
1176
+ * Read more here: https://pris.ly/d/null-undefined
1177
+ * @param {ProductCategoryFindFirstArgs} args - Arguments to find a ProductCategory
1178
+ * @example
1179
+ * // Get one ProductCategory
1180
+ * const productCategory = await prisma.productCategory.findFirst({
1181
+ * where: {
1182
+ * // ... provide filter here
1183
+ * }
1184
+ * })
1185
+ */
1186
+ findFirst<T extends ProductCategoryFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductCategoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1187
+ /**
1188
+ * Find the first ProductCategory that matches the filter or
1189
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1190
+ * Note, that providing `undefined` is treated as the value not being there.
1191
+ * Read more here: https://pris.ly/d/null-undefined
1192
+ * @param {ProductCategoryFindFirstOrThrowArgs} args - Arguments to find a ProductCategory
1193
+ * @example
1194
+ * // Get one ProductCategory
1195
+ * const productCategory = await prisma.productCategory.findFirstOrThrow({
1196
+ * where: {
1197
+ * // ... provide filter here
1198
+ * }
1199
+ * })
1200
+ */
1201
+ findFirstOrThrow<T extends ProductCategoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductCategoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1202
+ /**
1203
+ * Find zero or more ProductCategories that matches the filter.
1204
+ * Note, that providing `undefined` is treated as the value not being there.
1205
+ * Read more here: https://pris.ly/d/null-undefined
1206
+ * @param {ProductCategoryFindManyArgs} args - Arguments to filter and select certain fields only.
1207
+ * @example
1208
+ * // Get all ProductCategories
1209
+ * const productCategories = await prisma.productCategory.findMany()
1210
+ *
1211
+ * // Get first 10 ProductCategories
1212
+ * const productCategories = await prisma.productCategory.findMany({ take: 10 })
1213
+ *
1214
+ * // Only select the `id`
1215
+ * const productCategoryWithIdOnly = await prisma.productCategory.findMany({ select: { id: true } })
1216
+ *
1217
+ */
1218
+ findMany<T extends ProductCategoryFindManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1219
+ /**
1220
+ * Create a ProductCategory.
1221
+ * @param {ProductCategoryCreateArgs} args - Arguments to create a ProductCategory.
1222
+ * @example
1223
+ * // Create one ProductCategory
1224
+ * const ProductCategory = await prisma.productCategory.create({
1225
+ * data: {
1226
+ * // ... data to create a ProductCategory
1227
+ * }
1228
+ * })
1229
+ *
1230
+ */
1231
+ create<T extends ProductCategoryCreateArgs>(args: Prisma.SelectSubset<T, ProductCategoryCreateArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1232
+ /**
1233
+ * Create many ProductCategories.
1234
+ * @param {ProductCategoryCreateManyArgs} args - Arguments to create many ProductCategories.
1235
+ * @example
1236
+ * // Create many ProductCategories
1237
+ * const productCategory = await prisma.productCategory.createMany({
1238
+ * data: [
1239
+ * // ... provide data here
1240
+ * ]
1241
+ * })
1242
+ *
1243
+ */
1244
+ createMany<T extends ProductCategoryCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1245
+ /**
1246
+ * Create many ProductCategories and returns the data saved in the database.
1247
+ * @param {ProductCategoryCreateManyAndReturnArgs} args - Arguments to create many ProductCategories.
1248
+ * @example
1249
+ * // Create many ProductCategories
1250
+ * const productCategory = await prisma.productCategory.createManyAndReturn({
1251
+ * data: [
1252
+ * // ... provide data here
1253
+ * ]
1254
+ * })
1255
+ *
1256
+ * // Create many ProductCategories and only return the `id`
1257
+ * const productCategoryWithIdOnly = await prisma.productCategory.createManyAndReturn({
1258
+ * select: { id: true },
1259
+ * data: [
1260
+ * // ... provide data here
1261
+ * ]
1262
+ * })
1263
+ * Note, that providing `undefined` is treated as the value not being there.
1264
+ * Read more here: https://pris.ly/d/null-undefined
1265
+ *
1266
+ */
1267
+ createManyAndReturn<T extends ProductCategoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProductCategoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1268
+ /**
1269
+ * Delete a ProductCategory.
1270
+ * @param {ProductCategoryDeleteArgs} args - Arguments to delete one ProductCategory.
1271
+ * @example
1272
+ * // Delete one ProductCategory
1273
+ * const ProductCategory = await prisma.productCategory.delete({
1274
+ * where: {
1275
+ * // ... filter to delete one ProductCategory
1276
+ * }
1277
+ * })
1278
+ *
1279
+ */
1280
+ delete<T extends ProductCategoryDeleteArgs>(args: Prisma.SelectSubset<T, ProductCategoryDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1281
+ /**
1282
+ * Update one ProductCategory.
1283
+ * @param {ProductCategoryUpdateArgs} args - Arguments to update one ProductCategory.
1284
+ * @example
1285
+ * // Update one ProductCategory
1286
+ * const productCategory = await prisma.productCategory.update({
1287
+ * where: {
1288
+ * // ... provide filter here
1289
+ * },
1290
+ * data: {
1291
+ * // ... provide data here
1292
+ * }
1293
+ * })
1294
+ *
1295
+ */
1296
+ update<T extends ProductCategoryUpdateArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1297
+ /**
1298
+ * Delete zero or more ProductCategories.
1299
+ * @param {ProductCategoryDeleteManyArgs} args - Arguments to filter ProductCategories to delete.
1300
+ * @example
1301
+ * // Delete a few ProductCategories
1302
+ * const { count } = await prisma.productCategory.deleteMany({
1303
+ * where: {
1304
+ * // ... provide filter here
1305
+ * }
1306
+ * })
1307
+ *
1308
+ */
1309
+ deleteMany<T extends ProductCategoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1310
+ /**
1311
+ * Update zero or more ProductCategories.
1312
+ * Note, that providing `undefined` is treated as the value not being there.
1313
+ * Read more here: https://pris.ly/d/null-undefined
1314
+ * @param {ProductCategoryUpdateManyArgs} args - Arguments to update one or more rows.
1315
+ * @example
1316
+ * // Update many ProductCategories
1317
+ * const productCategory = await prisma.productCategory.updateMany({
1318
+ * where: {
1319
+ * // ... provide filter here
1320
+ * },
1321
+ * data: {
1322
+ * // ... provide data here
1323
+ * }
1324
+ * })
1325
+ *
1326
+ */
1327
+ updateMany<T extends ProductCategoryUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1328
+ /**
1329
+ * Update zero or more ProductCategories and returns the data updated in the database.
1330
+ * @param {ProductCategoryUpdateManyAndReturnArgs} args - Arguments to update many ProductCategories.
1331
+ * @example
1332
+ * // Update many ProductCategories
1333
+ * const productCategory = await prisma.productCategory.updateManyAndReturn({
1334
+ * where: {
1335
+ * // ... provide filter here
1336
+ * },
1337
+ * data: [
1338
+ * // ... provide data here
1339
+ * ]
1340
+ * })
1341
+ *
1342
+ * // Update zero or more ProductCategories and only return the `id`
1343
+ * const productCategoryWithIdOnly = await prisma.productCategory.updateManyAndReturn({
1344
+ * select: { id: true },
1345
+ * where: {
1346
+ * // ... provide filter here
1347
+ * },
1348
+ * data: [
1349
+ * // ... provide data here
1350
+ * ]
1351
+ * })
1352
+ * Note, that providing `undefined` is treated as the value not being there.
1353
+ * Read more here: https://pris.ly/d/null-undefined
1354
+ *
1355
+ */
1356
+ updateManyAndReturn<T extends ProductCategoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1357
+ /**
1358
+ * Create or update one ProductCategory.
1359
+ * @param {ProductCategoryUpsertArgs} args - Arguments to update or create a ProductCategory.
1360
+ * @example
1361
+ * // Update or create a ProductCategory
1362
+ * const productCategory = await prisma.productCategory.upsert({
1363
+ * create: {
1364
+ * // ... data to create a ProductCategory
1365
+ * },
1366
+ * update: {
1367
+ * // ... in case it already exists, update
1368
+ * },
1369
+ * where: {
1370
+ * // ... the filter for the ProductCategory we want to update
1371
+ * }
1372
+ * })
1373
+ */
1374
+ upsert<T extends ProductCategoryUpsertArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1375
+ /**
1376
+ * Count the number of ProductCategories.
1377
+ * Note, that providing `undefined` is treated as the value not being there.
1378
+ * Read more here: https://pris.ly/d/null-undefined
1379
+ * @param {ProductCategoryCountArgs} args - Arguments to filter ProductCategories to count.
1380
+ * @example
1381
+ * // Count the number of ProductCategories
1382
+ * const count = await prisma.productCategory.count({
1383
+ * where: {
1384
+ * // ... the filter for the ProductCategories we want to count
1385
+ * }
1386
+ * })
1387
+ **/
1388
+ count<T extends ProductCategoryCountArgs>(args?: Prisma.Subset<T, ProductCategoryCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProductCategoryCountAggregateOutputType> : number>;
1389
+ /**
1390
+ * Allows you to perform aggregations operations on a ProductCategory.
1391
+ * Note, that providing `undefined` is treated as the value not being there.
1392
+ * Read more here: https://pris.ly/d/null-undefined
1393
+ * @param {ProductCategoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1394
+ * @example
1395
+ * // Ordered by age ascending
1396
+ * // Where email contains prisma.io
1397
+ * // Limited to the 10 users
1398
+ * const aggregations = await prisma.user.aggregate({
1399
+ * _avg: {
1400
+ * age: true,
1401
+ * },
1402
+ * where: {
1403
+ * email: {
1404
+ * contains: "prisma.io",
1405
+ * },
1406
+ * },
1407
+ * orderBy: {
1408
+ * age: "asc",
1409
+ * },
1410
+ * take: 10,
1411
+ * })
1412
+ **/
1413
+ aggregate<T extends ProductCategoryAggregateArgs>(args: Prisma.Subset<T, ProductCategoryAggregateArgs>): Prisma.PrismaPromise<GetProductCategoryAggregateType<T>>;
1414
+ /**
1415
+ * Group by ProductCategory.
1416
+ * Note, that providing `undefined` is treated as the value not being there.
1417
+ * Read more here: https://pris.ly/d/null-undefined
1418
+ * @param {ProductCategoryGroupByArgs} args - Group by arguments.
1419
+ * @example
1420
+ * // Group by city, order by createdAt, get count
1421
+ * const result = await prisma.user.groupBy({
1422
+ * by: ['city', 'createdAt'],
1423
+ * orderBy: {
1424
+ * createdAt: true
1425
+ * },
1426
+ * _count: {
1427
+ * _all: true
1428
+ * },
1429
+ * })
1430
+ *
1431
+ **/
1432
+ groupBy<T extends ProductCategoryGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1433
+ orderBy: ProductCategoryGroupByArgs['orderBy'];
1434
+ } : {
1435
+ orderBy?: ProductCategoryGroupByArgs['orderBy'];
1436
+ }, 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 ? {
1437
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1438
+ Error,
1439
+ 'Field ',
1440
+ P,
1441
+ ` in "having" needs to be provided in "by"`
1442
+ ];
1443
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1444
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1445
+ }[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 ? {} : {
1446
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1447
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1448
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1449
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ProductCategoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductCategoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1450
+ /**
1451
+ * Fields of the ProductCategory model
1452
+ */
1453
+ readonly fields: ProductCategoryFieldRefs;
1454
+ }
1455
+ /**
1456
+ * The delegate class that acts as a "Promise-like" for ProductCategory.
1457
+ * Why is this prefixed with `Prisma__`?
1458
+ * Because we want to prevent naming conflicts as mentioned in
1459
+ * https://github.com/prisma/prisma-client-js/issues/707
1460
+ */
1461
+ export interface Prisma__ProductCategoryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1462
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1463
+ organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1464
+ image<T extends Prisma.ProductCategory$imageArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductCategory$imageArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1465
+ translations<T extends Prisma.ProductCategory$translationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductCategory$translationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1466
+ products<T extends Prisma.ProductCategory$productsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductCategory$productsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1467
+ /**
1468
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1469
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1470
+ * @param onrejected The callback to execute when the Promise is rejected.
1471
+ * @returns A Promise for the completion of which ever callback is executed.
1472
+ */
1473
+ 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>;
1474
+ /**
1475
+ * Attaches a callback for only the rejection of the Promise.
1476
+ * @param onrejected The callback to execute when the Promise is rejected.
1477
+ * @returns A Promise for the completion of the callback.
1478
+ */
1479
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1480
+ /**
1481
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1482
+ * resolved value cannot be modified from the callback.
1483
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1484
+ * @returns A Promise for the completion of the callback.
1485
+ */
1486
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1487
+ }
1488
+ /**
1489
+ * Fields of the ProductCategory model
1490
+ */
1491
+ export interface ProductCategoryFieldRefs {
1492
+ readonly id: Prisma.FieldRef<"ProductCategory", 'String'>;
1493
+ readonly slug: Prisma.FieldRef<"ProductCategory", 'String'>;
1494
+ readonly organizationId: Prisma.FieldRef<"ProductCategory", 'String'>;
1495
+ readonly priority: Prisma.FieldRef<"ProductCategory", 'Int'>;
1496
+ readonly imageId: Prisma.FieldRef<"ProductCategory", 'String'>;
1497
+ readonly createdAt: Prisma.FieldRef<"ProductCategory", 'DateTime'>;
1498
+ readonly createdBy: Prisma.FieldRef<"ProductCategory", 'String'>;
1499
+ readonly updatedAt: Prisma.FieldRef<"ProductCategory", 'DateTime'>;
1500
+ readonly updatedBy: Prisma.FieldRef<"ProductCategory", 'String'>;
1501
+ readonly deletedAt: Prisma.FieldRef<"ProductCategory", 'DateTime'>;
1502
+ readonly deletedBy: Prisma.FieldRef<"ProductCategory", 'String'>;
1503
+ readonly publishedAt: Prisma.FieldRef<"ProductCategory", 'DateTime'>;
1504
+ readonly publishedBy: Prisma.FieldRef<"ProductCategory", 'String'>;
1505
+ }
1506
+ /**
1507
+ * ProductCategory findUnique
1508
+ */
1509
+ export type ProductCategoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1510
+ /**
1511
+ * Select specific fields to fetch from the ProductCategory
1512
+ */
1513
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1514
+ /**
1515
+ * Omit specific fields from the ProductCategory
1516
+ */
1517
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1518
+ /**
1519
+ * Choose, which related nodes to fetch as well
1520
+ */
1521
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1522
+ /**
1523
+ * Filter, which ProductCategory to fetch.
1524
+ */
1525
+ where: Prisma.ProductCategoryWhereUniqueInput;
1526
+ };
1527
+ /**
1528
+ * ProductCategory findUniqueOrThrow
1529
+ */
1530
+ export type ProductCategoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1531
+ /**
1532
+ * Select specific fields to fetch from the ProductCategory
1533
+ */
1534
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1535
+ /**
1536
+ * Omit specific fields from the ProductCategory
1537
+ */
1538
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1539
+ /**
1540
+ * Choose, which related nodes to fetch as well
1541
+ */
1542
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1543
+ /**
1544
+ * Filter, which ProductCategory to fetch.
1545
+ */
1546
+ where: Prisma.ProductCategoryWhereUniqueInput;
1547
+ };
1548
+ /**
1549
+ * ProductCategory findFirst
1550
+ */
1551
+ export type ProductCategoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1552
+ /**
1553
+ * Select specific fields to fetch from the ProductCategory
1554
+ */
1555
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1556
+ /**
1557
+ * Omit specific fields from the ProductCategory
1558
+ */
1559
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1560
+ /**
1561
+ * Choose, which related nodes to fetch as well
1562
+ */
1563
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1564
+ /**
1565
+ * Filter, which ProductCategory to fetch.
1566
+ */
1567
+ where?: Prisma.ProductCategoryWhereInput;
1568
+ /**
1569
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1570
+ *
1571
+ * Determine the order of ProductCategories to fetch.
1572
+ */
1573
+ orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
1574
+ /**
1575
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1576
+ *
1577
+ * Sets the position for searching for ProductCategories.
1578
+ */
1579
+ cursor?: Prisma.ProductCategoryWhereUniqueInput;
1580
+ /**
1581
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1582
+ *
1583
+ * Take `±n` ProductCategories from the position of the cursor.
1584
+ */
1585
+ take?: number;
1586
+ /**
1587
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1588
+ *
1589
+ * Skip the first `n` ProductCategories.
1590
+ */
1591
+ skip?: number;
1592
+ /**
1593
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1594
+ *
1595
+ * Filter by unique combinations of ProductCategories.
1596
+ */
1597
+ distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[];
1598
+ };
1599
+ /**
1600
+ * ProductCategory findFirstOrThrow
1601
+ */
1602
+ export type ProductCategoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1603
+ /**
1604
+ * Select specific fields to fetch from the ProductCategory
1605
+ */
1606
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1607
+ /**
1608
+ * Omit specific fields from the ProductCategory
1609
+ */
1610
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1611
+ /**
1612
+ * Choose, which related nodes to fetch as well
1613
+ */
1614
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1615
+ /**
1616
+ * Filter, which ProductCategory to fetch.
1617
+ */
1618
+ where?: Prisma.ProductCategoryWhereInput;
1619
+ /**
1620
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1621
+ *
1622
+ * Determine the order of ProductCategories to fetch.
1623
+ */
1624
+ orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
1625
+ /**
1626
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1627
+ *
1628
+ * Sets the position for searching for ProductCategories.
1629
+ */
1630
+ cursor?: Prisma.ProductCategoryWhereUniqueInput;
1631
+ /**
1632
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1633
+ *
1634
+ * Take `±n` ProductCategories from the position of the cursor.
1635
+ */
1636
+ take?: number;
1637
+ /**
1638
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1639
+ *
1640
+ * Skip the first `n` ProductCategories.
1641
+ */
1642
+ skip?: number;
1643
+ /**
1644
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1645
+ *
1646
+ * Filter by unique combinations of ProductCategories.
1647
+ */
1648
+ distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[];
1649
+ };
1650
+ /**
1651
+ * ProductCategory findMany
1652
+ */
1653
+ export type ProductCategoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1654
+ /**
1655
+ * Select specific fields to fetch from the ProductCategory
1656
+ */
1657
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1658
+ /**
1659
+ * Omit specific fields from the ProductCategory
1660
+ */
1661
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1662
+ /**
1663
+ * Choose, which related nodes to fetch as well
1664
+ */
1665
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1666
+ /**
1667
+ * Filter, which ProductCategories to fetch.
1668
+ */
1669
+ where?: Prisma.ProductCategoryWhereInput;
1670
+ /**
1671
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1672
+ *
1673
+ * Determine the order of ProductCategories to fetch.
1674
+ */
1675
+ orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
1676
+ /**
1677
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1678
+ *
1679
+ * Sets the position for listing ProductCategories.
1680
+ */
1681
+ cursor?: Prisma.ProductCategoryWhereUniqueInput;
1682
+ /**
1683
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1684
+ *
1685
+ * Take `±n` ProductCategories from the position of the cursor.
1686
+ */
1687
+ take?: number;
1688
+ /**
1689
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1690
+ *
1691
+ * Skip the first `n` ProductCategories.
1692
+ */
1693
+ skip?: number;
1694
+ distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[];
1695
+ };
1696
+ /**
1697
+ * ProductCategory create
1698
+ */
1699
+ export type ProductCategoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1700
+ /**
1701
+ * Select specific fields to fetch from the ProductCategory
1702
+ */
1703
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1704
+ /**
1705
+ * Omit specific fields from the ProductCategory
1706
+ */
1707
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1708
+ /**
1709
+ * Choose, which related nodes to fetch as well
1710
+ */
1711
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1712
+ /**
1713
+ * The data needed to create a ProductCategory.
1714
+ */
1715
+ data: Prisma.XOR<Prisma.ProductCategoryCreateInput, Prisma.ProductCategoryUncheckedCreateInput>;
1716
+ };
1717
+ /**
1718
+ * ProductCategory createMany
1719
+ */
1720
+ export type ProductCategoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1721
+ /**
1722
+ * The data used to create many ProductCategories.
1723
+ */
1724
+ data: Prisma.ProductCategoryCreateManyInput | Prisma.ProductCategoryCreateManyInput[];
1725
+ skipDuplicates?: boolean;
1726
+ };
1727
+ /**
1728
+ * ProductCategory createManyAndReturn
1729
+ */
1730
+ export type ProductCategoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1731
+ /**
1732
+ * Select specific fields to fetch from the ProductCategory
1733
+ */
1734
+ select?: Prisma.ProductCategorySelectCreateManyAndReturn<ExtArgs> | null;
1735
+ /**
1736
+ * Omit specific fields from the ProductCategory
1737
+ */
1738
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1739
+ /**
1740
+ * The data used to create many ProductCategories.
1741
+ */
1742
+ data: Prisma.ProductCategoryCreateManyInput | Prisma.ProductCategoryCreateManyInput[];
1743
+ skipDuplicates?: boolean;
1744
+ /**
1745
+ * Choose, which related nodes to fetch as well
1746
+ */
1747
+ include?: Prisma.ProductCategoryIncludeCreateManyAndReturn<ExtArgs> | null;
1748
+ };
1749
+ /**
1750
+ * ProductCategory update
1751
+ */
1752
+ export type ProductCategoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1753
+ /**
1754
+ * Select specific fields to fetch from the ProductCategory
1755
+ */
1756
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1757
+ /**
1758
+ * Omit specific fields from the ProductCategory
1759
+ */
1760
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1761
+ /**
1762
+ * Choose, which related nodes to fetch as well
1763
+ */
1764
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1765
+ /**
1766
+ * The data needed to update a ProductCategory.
1767
+ */
1768
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateInput, Prisma.ProductCategoryUncheckedUpdateInput>;
1769
+ /**
1770
+ * Choose, which ProductCategory to update.
1771
+ */
1772
+ where: Prisma.ProductCategoryWhereUniqueInput;
1773
+ };
1774
+ /**
1775
+ * ProductCategory updateMany
1776
+ */
1777
+ export type ProductCategoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1778
+ /**
1779
+ * The data used to update ProductCategories.
1780
+ */
1781
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyInput>;
1782
+ /**
1783
+ * Filter which ProductCategories to update
1784
+ */
1785
+ where?: Prisma.ProductCategoryWhereInput;
1786
+ /**
1787
+ * Limit how many ProductCategories to update.
1788
+ */
1789
+ limit?: number;
1790
+ };
1791
+ /**
1792
+ * ProductCategory updateManyAndReturn
1793
+ */
1794
+ export type ProductCategoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1795
+ /**
1796
+ * Select specific fields to fetch from the ProductCategory
1797
+ */
1798
+ select?: Prisma.ProductCategorySelectUpdateManyAndReturn<ExtArgs> | null;
1799
+ /**
1800
+ * Omit specific fields from the ProductCategory
1801
+ */
1802
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1803
+ /**
1804
+ * The data used to update ProductCategories.
1805
+ */
1806
+ data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyInput>;
1807
+ /**
1808
+ * Filter which ProductCategories to update
1809
+ */
1810
+ where?: Prisma.ProductCategoryWhereInput;
1811
+ /**
1812
+ * Limit how many ProductCategories to update.
1813
+ */
1814
+ limit?: number;
1815
+ /**
1816
+ * Choose, which related nodes to fetch as well
1817
+ */
1818
+ include?: Prisma.ProductCategoryIncludeUpdateManyAndReturn<ExtArgs> | null;
1819
+ };
1820
+ /**
1821
+ * ProductCategory upsert
1822
+ */
1823
+ export type ProductCategoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1824
+ /**
1825
+ * Select specific fields to fetch from the ProductCategory
1826
+ */
1827
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1828
+ /**
1829
+ * Omit specific fields from the ProductCategory
1830
+ */
1831
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1832
+ /**
1833
+ * Choose, which related nodes to fetch as well
1834
+ */
1835
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1836
+ /**
1837
+ * The filter to search for the ProductCategory to update in case it exists.
1838
+ */
1839
+ where: Prisma.ProductCategoryWhereUniqueInput;
1840
+ /**
1841
+ * In case the ProductCategory found by the `where` argument doesn't exist, create a new ProductCategory with this data.
1842
+ */
1843
+ create: Prisma.XOR<Prisma.ProductCategoryCreateInput, Prisma.ProductCategoryUncheckedCreateInput>;
1844
+ /**
1845
+ * In case the ProductCategory was found with the provided `where` argument, update it with this data.
1846
+ */
1847
+ update: Prisma.XOR<Prisma.ProductCategoryUpdateInput, Prisma.ProductCategoryUncheckedUpdateInput>;
1848
+ };
1849
+ /**
1850
+ * ProductCategory delete
1851
+ */
1852
+ export type ProductCategoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1853
+ /**
1854
+ * Select specific fields to fetch from the ProductCategory
1855
+ */
1856
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1857
+ /**
1858
+ * Omit specific fields from the ProductCategory
1859
+ */
1860
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1861
+ /**
1862
+ * Choose, which related nodes to fetch as well
1863
+ */
1864
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1865
+ /**
1866
+ * Filter which ProductCategory to delete.
1867
+ */
1868
+ where: Prisma.ProductCategoryWhereUniqueInput;
1869
+ };
1870
+ /**
1871
+ * ProductCategory deleteMany
1872
+ */
1873
+ export type ProductCategoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1874
+ /**
1875
+ * Filter which ProductCategories to delete
1876
+ */
1877
+ where?: Prisma.ProductCategoryWhereInput;
1878
+ /**
1879
+ * Limit how many ProductCategories to delete.
1880
+ */
1881
+ limit?: number;
1882
+ };
1883
+ /**
1884
+ * ProductCategory.image
1885
+ */
1886
+ export type ProductCategory$imageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1887
+ /**
1888
+ * Select specific fields to fetch from the File
1889
+ */
1890
+ select?: Prisma.FileSelect<ExtArgs> | null;
1891
+ /**
1892
+ * Omit specific fields from the File
1893
+ */
1894
+ omit?: Prisma.FileOmit<ExtArgs> | null;
1895
+ /**
1896
+ * Choose, which related nodes to fetch as well
1897
+ */
1898
+ include?: Prisma.FileInclude<ExtArgs> | null;
1899
+ where?: Prisma.FileWhereInput;
1900
+ };
1901
+ /**
1902
+ * ProductCategory.translations
1903
+ */
1904
+ export type ProductCategory$translationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1905
+ /**
1906
+ * Select specific fields to fetch from the ProductCategoryTranslation
1907
+ */
1908
+ select?: Prisma.ProductCategoryTranslationSelect<ExtArgs> | null;
1909
+ /**
1910
+ * Omit specific fields from the ProductCategoryTranslation
1911
+ */
1912
+ omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
1913
+ /**
1914
+ * Choose, which related nodes to fetch as well
1915
+ */
1916
+ include?: Prisma.ProductCategoryTranslationInclude<ExtArgs> | null;
1917
+ where?: Prisma.ProductCategoryTranslationWhereInput;
1918
+ orderBy?: Prisma.ProductCategoryTranslationOrderByWithRelationInput | Prisma.ProductCategoryTranslationOrderByWithRelationInput[];
1919
+ cursor?: Prisma.ProductCategoryTranslationWhereUniqueInput;
1920
+ take?: number;
1921
+ skip?: number;
1922
+ distinct?: Prisma.ProductCategoryTranslationScalarFieldEnum | Prisma.ProductCategoryTranslationScalarFieldEnum[];
1923
+ };
1924
+ /**
1925
+ * ProductCategory.products
1926
+ */
1927
+ export type ProductCategory$productsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1928
+ /**
1929
+ * Select specific fields to fetch from the Product
1930
+ */
1931
+ select?: Prisma.ProductSelect<ExtArgs> | null;
1932
+ /**
1933
+ * Omit specific fields from the Product
1934
+ */
1935
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
1936
+ /**
1937
+ * Choose, which related nodes to fetch as well
1938
+ */
1939
+ include?: Prisma.ProductInclude<ExtArgs> | null;
1940
+ where?: Prisma.ProductWhereInput;
1941
+ orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
1942
+ cursor?: Prisma.ProductWhereUniqueInput;
1943
+ take?: number;
1944
+ skip?: number;
1945
+ distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[];
1946
+ };
1947
+ /**
1948
+ * ProductCategory without action
1949
+ */
1950
+ export type ProductCategoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1951
+ /**
1952
+ * Select specific fields to fetch from the ProductCategory
1953
+ */
1954
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
1955
+ /**
1956
+ * Omit specific fields from the ProductCategory
1957
+ */
1958
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
1959
+ /**
1960
+ * Choose, which related nodes to fetch as well
1961
+ */
1962
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
1963
+ };
1964
+ export {};