@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,3136 @@
1
+ /**
2
+ * This file exports the `Product` 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 Product
10
+ *
11
+ */
12
+ export type ProductModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductPayload>;
13
+ export type AggregateProduct = {
14
+ _count: ProductCountAggregateOutputType | null;
15
+ _avg: ProductAvgAggregateOutputType | null;
16
+ _sum: ProductSumAggregateOutputType | null;
17
+ _min: ProductMinAggregateOutputType | null;
18
+ _max: ProductMaxAggregateOutputType | null;
19
+ };
20
+ export type ProductAvgAggregateOutputType = {
21
+ basePrice: number | null;
22
+ discountedBasePrice: number | null;
23
+ };
24
+ export type ProductSumAggregateOutputType = {
25
+ basePrice: number | null;
26
+ discountedBasePrice: number | null;
27
+ };
28
+ export type ProductMinAggregateOutputType = {
29
+ id: string | null;
30
+ content: string | null;
31
+ slug: string | null;
32
+ sku: string | null;
33
+ basePrice: number | null;
34
+ discountedBasePrice: number | null;
35
+ currency: string | null;
36
+ organizationId: string | null;
37
+ manufacturerId: string | null;
38
+ publishedAt: Date | null;
39
+ publishedBy: string | null;
40
+ deletedAt: Date | null;
41
+ deletedBy: string | null;
42
+ createdAt: Date | null;
43
+ createdBy: string | null;
44
+ updatedAt: Date | null;
45
+ updatedBy: string | null;
46
+ latestSnapshotId: string | null;
47
+ };
48
+ export type ProductMaxAggregateOutputType = {
49
+ id: string | null;
50
+ content: string | null;
51
+ slug: string | null;
52
+ sku: string | null;
53
+ basePrice: number | null;
54
+ discountedBasePrice: number | null;
55
+ currency: string | null;
56
+ organizationId: string | null;
57
+ manufacturerId: string | null;
58
+ publishedAt: Date | null;
59
+ publishedBy: string | null;
60
+ deletedAt: Date | null;
61
+ deletedBy: string | null;
62
+ createdAt: Date | null;
63
+ createdBy: string | null;
64
+ updatedAt: Date | null;
65
+ updatedBy: string | null;
66
+ latestSnapshotId: string | null;
67
+ };
68
+ export type ProductCountAggregateOutputType = {
69
+ id: number;
70
+ content: number;
71
+ slug: number;
72
+ sku: number;
73
+ basePrice: number;
74
+ discountedBasePrice: number;
75
+ currency: number;
76
+ organizationId: number;
77
+ manufacturerId: number;
78
+ tags: number;
79
+ publishedAt: number;
80
+ publishedBy: number;
81
+ deletedAt: number;
82
+ deletedBy: number;
83
+ createdAt: number;
84
+ createdBy: number;
85
+ updatedAt: number;
86
+ updatedBy: number;
87
+ latestSnapshotId: number;
88
+ _all: number;
89
+ };
90
+ export type ProductAvgAggregateInputType = {
91
+ basePrice?: true;
92
+ discountedBasePrice?: true;
93
+ };
94
+ export type ProductSumAggregateInputType = {
95
+ basePrice?: true;
96
+ discountedBasePrice?: true;
97
+ };
98
+ export type ProductMinAggregateInputType = {
99
+ id?: true;
100
+ content?: true;
101
+ slug?: true;
102
+ sku?: true;
103
+ basePrice?: true;
104
+ discountedBasePrice?: true;
105
+ currency?: true;
106
+ organizationId?: true;
107
+ manufacturerId?: true;
108
+ publishedAt?: true;
109
+ publishedBy?: true;
110
+ deletedAt?: true;
111
+ deletedBy?: true;
112
+ createdAt?: true;
113
+ createdBy?: true;
114
+ updatedAt?: true;
115
+ updatedBy?: true;
116
+ latestSnapshotId?: true;
117
+ };
118
+ export type ProductMaxAggregateInputType = {
119
+ id?: true;
120
+ content?: true;
121
+ slug?: true;
122
+ sku?: true;
123
+ basePrice?: true;
124
+ discountedBasePrice?: true;
125
+ currency?: true;
126
+ organizationId?: true;
127
+ manufacturerId?: true;
128
+ publishedAt?: true;
129
+ publishedBy?: true;
130
+ deletedAt?: true;
131
+ deletedBy?: true;
132
+ createdAt?: true;
133
+ createdBy?: true;
134
+ updatedAt?: true;
135
+ updatedBy?: true;
136
+ latestSnapshotId?: true;
137
+ };
138
+ export type ProductCountAggregateInputType = {
139
+ id?: true;
140
+ content?: true;
141
+ slug?: true;
142
+ sku?: true;
143
+ basePrice?: true;
144
+ discountedBasePrice?: true;
145
+ currency?: true;
146
+ organizationId?: true;
147
+ manufacturerId?: true;
148
+ tags?: true;
149
+ publishedAt?: true;
150
+ publishedBy?: true;
151
+ deletedAt?: true;
152
+ deletedBy?: true;
153
+ createdAt?: true;
154
+ createdBy?: true;
155
+ updatedAt?: true;
156
+ updatedBy?: true;
157
+ latestSnapshotId?: true;
158
+ _all?: true;
159
+ };
160
+ export type ProductAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
161
+ /**
162
+ * Filter which Product to aggregate.
163
+ */
164
+ where?: Prisma.ProductWhereInput;
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
167
+ *
168
+ * Determine the order of Products to fetch.
169
+ */
170
+ orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
173
+ *
174
+ * Sets the start position
175
+ */
176
+ cursor?: Prisma.ProductWhereUniqueInput;
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
179
+ *
180
+ * Take `±n` Products from the position of the cursor.
181
+ */
182
+ take?: number;
183
+ /**
184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
185
+ *
186
+ * Skip the first `n` Products.
187
+ */
188
+ skip?: number;
189
+ /**
190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
191
+ *
192
+ * Count returned Products
193
+ **/
194
+ _count?: true | ProductCountAggregateInputType;
195
+ /**
196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
197
+ *
198
+ * Select which fields to average
199
+ **/
200
+ _avg?: ProductAvgAggregateInputType;
201
+ /**
202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
203
+ *
204
+ * Select which fields to sum
205
+ **/
206
+ _sum?: ProductSumAggregateInputType;
207
+ /**
208
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
209
+ *
210
+ * Select which fields to find the minimum value
211
+ **/
212
+ _min?: ProductMinAggregateInputType;
213
+ /**
214
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
215
+ *
216
+ * Select which fields to find the maximum value
217
+ **/
218
+ _max?: ProductMaxAggregateInputType;
219
+ };
220
+ export type GetProductAggregateType<T extends ProductAggregateArgs> = {
221
+ [P in keyof T & keyof AggregateProduct]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateProduct[P]> : Prisma.GetScalarType<T[P], AggregateProduct[P]>;
222
+ };
223
+ export type ProductGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
224
+ where?: Prisma.ProductWhereInput;
225
+ orderBy?: Prisma.ProductOrderByWithAggregationInput | Prisma.ProductOrderByWithAggregationInput[];
226
+ by: Prisma.ProductScalarFieldEnum[] | Prisma.ProductScalarFieldEnum;
227
+ having?: Prisma.ProductScalarWhereWithAggregatesInput;
228
+ take?: number;
229
+ skip?: number;
230
+ _count?: ProductCountAggregateInputType | true;
231
+ _avg?: ProductAvgAggregateInputType;
232
+ _sum?: ProductSumAggregateInputType;
233
+ _min?: ProductMinAggregateInputType;
234
+ _max?: ProductMaxAggregateInputType;
235
+ };
236
+ export type ProductGroupByOutputType = {
237
+ id: string;
238
+ content: string | null;
239
+ slug: string | null;
240
+ sku: string | null;
241
+ basePrice: number;
242
+ discountedBasePrice: number | null;
243
+ currency: string;
244
+ organizationId: string;
245
+ manufacturerId: string | null;
246
+ tags: string[];
247
+ publishedAt: Date | null;
248
+ publishedBy: string | null;
249
+ deletedAt: Date | null;
250
+ deletedBy: string | null;
251
+ createdAt: Date;
252
+ createdBy: string | null;
253
+ updatedAt: Date;
254
+ updatedBy: string | null;
255
+ latestSnapshotId: string | null;
256
+ _count: ProductCountAggregateOutputType | null;
257
+ _avg: ProductAvgAggregateOutputType | null;
258
+ _sum: ProductSumAggregateOutputType | null;
259
+ _min: ProductMinAggregateOutputType | null;
260
+ _max: ProductMaxAggregateOutputType | null;
261
+ };
262
+ type GetProductGroupByPayload<T extends ProductGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ProductGroupByOutputType, T['by']> & {
263
+ [P in ((keyof T) & (keyof ProductGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ProductGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ProductGroupByOutputType[P]>;
264
+ }>>;
265
+ export type ProductWhereInput = {
266
+ AND?: Prisma.ProductWhereInput | Prisma.ProductWhereInput[];
267
+ OR?: Prisma.ProductWhereInput[];
268
+ NOT?: Prisma.ProductWhereInput | Prisma.ProductWhereInput[];
269
+ id?: Prisma.StringFilter<"Product"> | string;
270
+ content?: Prisma.StringNullableFilter<"Product"> | string | null;
271
+ slug?: Prisma.StringNullableFilter<"Product"> | string | null;
272
+ sku?: Prisma.StringNullableFilter<"Product"> | string | null;
273
+ basePrice?: Prisma.FloatFilter<"Product"> | number;
274
+ discountedBasePrice?: Prisma.FloatNullableFilter<"Product"> | number | null;
275
+ currency?: Prisma.StringFilter<"Product"> | string;
276
+ organizationId?: Prisma.StringFilter<"Product"> | string;
277
+ manufacturerId?: Prisma.StringNullableFilter<"Product"> | string | null;
278
+ tags?: Prisma.StringNullableListFilter<"Product">;
279
+ publishedAt?: Prisma.DateTimeNullableFilter<"Product"> | Date | string | null;
280
+ publishedBy?: Prisma.StringNullableFilter<"Product"> | string | null;
281
+ deletedAt?: Prisma.DateTimeNullableFilter<"Product"> | Date | string | null;
282
+ deletedBy?: Prisma.StringNullableFilter<"Product"> | string | null;
283
+ createdAt?: Prisma.DateTimeFilter<"Product"> | Date | string;
284
+ createdBy?: Prisma.StringNullableFilter<"Product"> | string | null;
285
+ updatedAt?: Prisma.DateTimeFilter<"Product"> | Date | string;
286
+ updatedBy?: Prisma.StringNullableFilter<"Product"> | string | null;
287
+ latestSnapshotId?: Prisma.StringNullableFilter<"Product"> | string | null;
288
+ images?: Prisma.FileListRelationFilter;
289
+ organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
290
+ manufacturer?: Prisma.XOR<Prisma.ManufacturerNullableScalarRelationFilter, Prisma.ManufacturerWhereInput> | null;
291
+ categories?: Prisma.ProductCategoryListRelationFilter;
292
+ modifierGroups?: Prisma.ModifierGroupListRelationFilter;
293
+ translations?: Prisma.ProductTranslationListRelationFilter;
294
+ snapshots?: Prisma.ProductSnapshotListRelationFilter;
295
+ latestSnapshot?: Prisma.XOR<Prisma.ProductSnapshotNullableScalarRelationFilter, Prisma.ProductSnapshotWhereInput> | null;
296
+ };
297
+ export type ProductOrderByWithRelationInput = {
298
+ id?: Prisma.SortOrder;
299
+ content?: Prisma.SortOrderInput | Prisma.SortOrder;
300
+ slug?: Prisma.SortOrderInput | Prisma.SortOrder;
301
+ sku?: Prisma.SortOrderInput | Prisma.SortOrder;
302
+ basePrice?: Prisma.SortOrder;
303
+ discountedBasePrice?: Prisma.SortOrderInput | Prisma.SortOrder;
304
+ currency?: Prisma.SortOrder;
305
+ organizationId?: Prisma.SortOrder;
306
+ manufacturerId?: Prisma.SortOrderInput | Prisma.SortOrder;
307
+ tags?: Prisma.SortOrder;
308
+ publishedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
309
+ publishedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
310
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
311
+ deletedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
312
+ createdAt?: Prisma.SortOrder;
313
+ createdBy?: Prisma.SortOrderInput | Prisma.SortOrder;
314
+ updatedAt?: Prisma.SortOrder;
315
+ updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
316
+ latestSnapshotId?: Prisma.SortOrderInput | Prisma.SortOrder;
317
+ images?: Prisma.FileOrderByRelationAggregateInput;
318
+ organization?: Prisma.OrganizationOrderByWithRelationInput;
319
+ manufacturer?: Prisma.ManufacturerOrderByWithRelationInput;
320
+ categories?: Prisma.ProductCategoryOrderByRelationAggregateInput;
321
+ modifierGroups?: Prisma.ModifierGroupOrderByRelationAggregateInput;
322
+ translations?: Prisma.ProductTranslationOrderByRelationAggregateInput;
323
+ snapshots?: Prisma.ProductSnapshotOrderByRelationAggregateInput;
324
+ latestSnapshot?: Prisma.ProductSnapshotOrderByWithRelationInput;
325
+ };
326
+ export type ProductWhereUniqueInput = Prisma.AtLeast<{
327
+ id?: string;
328
+ latestSnapshotId?: string;
329
+ AND?: Prisma.ProductWhereInput | Prisma.ProductWhereInput[];
330
+ OR?: Prisma.ProductWhereInput[];
331
+ NOT?: Prisma.ProductWhereInput | Prisma.ProductWhereInput[];
332
+ content?: Prisma.StringNullableFilter<"Product"> | string | null;
333
+ slug?: Prisma.StringNullableFilter<"Product"> | string | null;
334
+ sku?: Prisma.StringNullableFilter<"Product"> | string | null;
335
+ basePrice?: Prisma.FloatFilter<"Product"> | number;
336
+ discountedBasePrice?: Prisma.FloatNullableFilter<"Product"> | number | null;
337
+ currency?: Prisma.StringFilter<"Product"> | string;
338
+ organizationId?: Prisma.StringFilter<"Product"> | string;
339
+ manufacturerId?: Prisma.StringNullableFilter<"Product"> | string | null;
340
+ tags?: Prisma.StringNullableListFilter<"Product">;
341
+ publishedAt?: Prisma.DateTimeNullableFilter<"Product"> | Date | string | null;
342
+ publishedBy?: Prisma.StringNullableFilter<"Product"> | string | null;
343
+ deletedAt?: Prisma.DateTimeNullableFilter<"Product"> | Date | string | null;
344
+ deletedBy?: Prisma.StringNullableFilter<"Product"> | string | null;
345
+ createdAt?: Prisma.DateTimeFilter<"Product"> | Date | string;
346
+ createdBy?: Prisma.StringNullableFilter<"Product"> | string | null;
347
+ updatedAt?: Prisma.DateTimeFilter<"Product"> | Date | string;
348
+ updatedBy?: Prisma.StringNullableFilter<"Product"> | string | null;
349
+ images?: Prisma.FileListRelationFilter;
350
+ organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
351
+ manufacturer?: Prisma.XOR<Prisma.ManufacturerNullableScalarRelationFilter, Prisma.ManufacturerWhereInput> | null;
352
+ categories?: Prisma.ProductCategoryListRelationFilter;
353
+ modifierGroups?: Prisma.ModifierGroupListRelationFilter;
354
+ translations?: Prisma.ProductTranslationListRelationFilter;
355
+ snapshots?: Prisma.ProductSnapshotListRelationFilter;
356
+ latestSnapshot?: Prisma.XOR<Prisma.ProductSnapshotNullableScalarRelationFilter, Prisma.ProductSnapshotWhereInput> | null;
357
+ }, "id" | "latestSnapshotId">;
358
+ export type ProductOrderByWithAggregationInput = {
359
+ id?: Prisma.SortOrder;
360
+ content?: Prisma.SortOrderInput | Prisma.SortOrder;
361
+ slug?: Prisma.SortOrderInput | Prisma.SortOrder;
362
+ sku?: Prisma.SortOrderInput | Prisma.SortOrder;
363
+ basePrice?: Prisma.SortOrder;
364
+ discountedBasePrice?: Prisma.SortOrderInput | Prisma.SortOrder;
365
+ currency?: Prisma.SortOrder;
366
+ organizationId?: Prisma.SortOrder;
367
+ manufacturerId?: Prisma.SortOrderInput | Prisma.SortOrder;
368
+ tags?: Prisma.SortOrder;
369
+ publishedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
370
+ publishedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
371
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
372
+ deletedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
373
+ createdAt?: Prisma.SortOrder;
374
+ createdBy?: Prisma.SortOrderInput | Prisma.SortOrder;
375
+ updatedAt?: Prisma.SortOrder;
376
+ updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
377
+ latestSnapshotId?: Prisma.SortOrderInput | Prisma.SortOrder;
378
+ _count?: Prisma.ProductCountOrderByAggregateInput;
379
+ _avg?: Prisma.ProductAvgOrderByAggregateInput;
380
+ _max?: Prisma.ProductMaxOrderByAggregateInput;
381
+ _min?: Prisma.ProductMinOrderByAggregateInput;
382
+ _sum?: Prisma.ProductSumOrderByAggregateInput;
383
+ };
384
+ export type ProductScalarWhereWithAggregatesInput = {
385
+ AND?: Prisma.ProductScalarWhereWithAggregatesInput | Prisma.ProductScalarWhereWithAggregatesInput[];
386
+ OR?: Prisma.ProductScalarWhereWithAggregatesInput[];
387
+ NOT?: Prisma.ProductScalarWhereWithAggregatesInput | Prisma.ProductScalarWhereWithAggregatesInput[];
388
+ id?: Prisma.StringWithAggregatesFilter<"Product"> | string;
389
+ content?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null;
390
+ slug?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null;
391
+ sku?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null;
392
+ basePrice?: Prisma.FloatWithAggregatesFilter<"Product"> | number;
393
+ discountedBasePrice?: Prisma.FloatNullableWithAggregatesFilter<"Product"> | number | null;
394
+ currency?: Prisma.StringWithAggregatesFilter<"Product"> | string;
395
+ organizationId?: Prisma.StringWithAggregatesFilter<"Product"> | string;
396
+ manufacturerId?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null;
397
+ tags?: Prisma.StringNullableListFilter<"Product">;
398
+ publishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Product"> | Date | string | null;
399
+ publishedBy?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null;
400
+ deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Product"> | Date | string | null;
401
+ deletedBy?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null;
402
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Product"> | Date | string;
403
+ createdBy?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null;
404
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Product"> | Date | string;
405
+ updatedBy?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null;
406
+ latestSnapshotId?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null;
407
+ };
408
+ export type ProductCreateInput = {
409
+ id?: string;
410
+ content?: string | null;
411
+ slug?: string | null;
412
+ sku?: string | null;
413
+ basePrice: number;
414
+ discountedBasePrice?: number | null;
415
+ currency: string;
416
+ tags?: Prisma.ProductCreatetagsInput | string[];
417
+ publishedAt?: Date | string | null;
418
+ publishedBy?: string | null;
419
+ deletedAt?: Date | string | null;
420
+ deletedBy?: string | null;
421
+ createdAt?: Date | string;
422
+ createdBy?: string | null;
423
+ updatedAt?: Date | string;
424
+ updatedBy?: string | null;
425
+ images?: Prisma.FileCreateNestedManyWithoutProductImagesInput;
426
+ organization: Prisma.OrganizationCreateNestedOneWithoutProductsInput;
427
+ manufacturer?: Prisma.ManufacturerCreateNestedOneWithoutProductsInput;
428
+ categories?: Prisma.ProductCategoryCreateNestedManyWithoutProductsInput;
429
+ modifierGroups?: Prisma.ModifierGroupCreateNestedManyWithoutProductsInput;
430
+ translations?: Prisma.ProductTranslationCreateNestedManyWithoutProductInput;
431
+ snapshots?: Prisma.ProductSnapshotCreateNestedManyWithoutProductInput;
432
+ latestSnapshot?: Prisma.ProductSnapshotCreateNestedOneWithoutLatestForProductInput;
433
+ };
434
+ export type ProductUncheckedCreateInput = {
435
+ id?: string;
436
+ content?: string | null;
437
+ slug?: string | null;
438
+ sku?: string | null;
439
+ basePrice: number;
440
+ discountedBasePrice?: number | null;
441
+ currency: string;
442
+ organizationId: string;
443
+ manufacturerId?: string | null;
444
+ tags?: Prisma.ProductCreatetagsInput | string[];
445
+ publishedAt?: Date | string | null;
446
+ publishedBy?: string | null;
447
+ deletedAt?: Date | string | null;
448
+ deletedBy?: string | null;
449
+ createdAt?: Date | string;
450
+ createdBy?: string | null;
451
+ updatedAt?: Date | string;
452
+ updatedBy?: string | null;
453
+ latestSnapshotId?: string | null;
454
+ images?: Prisma.FileUncheckedCreateNestedManyWithoutProductImagesInput;
455
+ categories?: Prisma.ProductCategoryUncheckedCreateNestedManyWithoutProductsInput;
456
+ modifierGroups?: Prisma.ModifierGroupUncheckedCreateNestedManyWithoutProductsInput;
457
+ translations?: Prisma.ProductTranslationUncheckedCreateNestedManyWithoutProductInput;
458
+ snapshots?: Prisma.ProductSnapshotUncheckedCreateNestedManyWithoutProductInput;
459
+ };
460
+ export type ProductUpdateInput = {
461
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
462
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
463
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
464
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
465
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
466
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
467
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
468
+ tags?: Prisma.ProductUpdatetagsInput | string[];
469
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
470
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
471
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
472
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
473
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
474
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
475
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
476
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
477
+ images?: Prisma.FileUpdateManyWithoutProductImagesNestedInput;
478
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutProductsNestedInput;
479
+ manufacturer?: Prisma.ManufacturerUpdateOneWithoutProductsNestedInput;
480
+ categories?: Prisma.ProductCategoryUpdateManyWithoutProductsNestedInput;
481
+ modifierGroups?: Prisma.ModifierGroupUpdateManyWithoutProductsNestedInput;
482
+ translations?: Prisma.ProductTranslationUpdateManyWithoutProductNestedInput;
483
+ snapshots?: Prisma.ProductSnapshotUpdateManyWithoutProductNestedInput;
484
+ latestSnapshot?: Prisma.ProductSnapshotUpdateOneWithoutLatestForProductNestedInput;
485
+ };
486
+ export type ProductUncheckedUpdateInput = {
487
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
488
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
489
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
490
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
491
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
492
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
493
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
494
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
495
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
496
+ tags?: Prisma.ProductUpdatetagsInput | string[];
497
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
498
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
499
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
500
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
501
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
502
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
503
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
504
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
505
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
506
+ images?: Prisma.FileUncheckedUpdateManyWithoutProductImagesNestedInput;
507
+ categories?: Prisma.ProductCategoryUncheckedUpdateManyWithoutProductsNestedInput;
508
+ modifierGroups?: Prisma.ModifierGroupUncheckedUpdateManyWithoutProductsNestedInput;
509
+ translations?: Prisma.ProductTranslationUncheckedUpdateManyWithoutProductNestedInput;
510
+ snapshots?: Prisma.ProductSnapshotUncheckedUpdateManyWithoutProductNestedInput;
511
+ };
512
+ export type ProductCreateManyInput = {
513
+ id?: string;
514
+ content?: string | null;
515
+ slug?: string | null;
516
+ sku?: string | null;
517
+ basePrice: number;
518
+ discountedBasePrice?: number | null;
519
+ currency: string;
520
+ organizationId: string;
521
+ manufacturerId?: string | null;
522
+ tags?: Prisma.ProductCreatetagsInput | string[];
523
+ publishedAt?: Date | string | null;
524
+ publishedBy?: string | null;
525
+ deletedAt?: Date | string | null;
526
+ deletedBy?: string | null;
527
+ createdAt?: Date | string;
528
+ createdBy?: string | null;
529
+ updatedAt?: Date | string;
530
+ updatedBy?: string | null;
531
+ latestSnapshotId?: string | null;
532
+ };
533
+ export type ProductUpdateManyMutationInput = {
534
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
535
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
536
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
537
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
538
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
539
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
540
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
541
+ tags?: Prisma.ProductUpdatetagsInput | string[];
542
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
543
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
544
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
545
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
546
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
547
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
548
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
549
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
550
+ };
551
+ export type ProductUncheckedUpdateManyInput = {
552
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
553
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
554
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
555
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
556
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
557
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
558
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
559
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
560
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
561
+ tags?: Prisma.ProductUpdatetagsInput | string[];
562
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
563
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
564
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
565
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
566
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
567
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
568
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
569
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
570
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
571
+ };
572
+ export type ProductListRelationFilter = {
573
+ every?: Prisma.ProductWhereInput;
574
+ some?: Prisma.ProductWhereInput;
575
+ none?: Prisma.ProductWhereInput;
576
+ };
577
+ export type ProductOrderByRelationAggregateInput = {
578
+ _count?: Prisma.SortOrder;
579
+ };
580
+ export type ProductCountOrderByAggregateInput = {
581
+ id?: Prisma.SortOrder;
582
+ content?: Prisma.SortOrder;
583
+ slug?: Prisma.SortOrder;
584
+ sku?: Prisma.SortOrder;
585
+ basePrice?: Prisma.SortOrder;
586
+ discountedBasePrice?: Prisma.SortOrder;
587
+ currency?: Prisma.SortOrder;
588
+ organizationId?: Prisma.SortOrder;
589
+ manufacturerId?: Prisma.SortOrder;
590
+ tags?: Prisma.SortOrder;
591
+ publishedAt?: Prisma.SortOrder;
592
+ publishedBy?: Prisma.SortOrder;
593
+ deletedAt?: Prisma.SortOrder;
594
+ deletedBy?: Prisma.SortOrder;
595
+ createdAt?: Prisma.SortOrder;
596
+ createdBy?: Prisma.SortOrder;
597
+ updatedAt?: Prisma.SortOrder;
598
+ updatedBy?: Prisma.SortOrder;
599
+ latestSnapshotId?: Prisma.SortOrder;
600
+ };
601
+ export type ProductAvgOrderByAggregateInput = {
602
+ basePrice?: Prisma.SortOrder;
603
+ discountedBasePrice?: Prisma.SortOrder;
604
+ };
605
+ export type ProductMaxOrderByAggregateInput = {
606
+ id?: Prisma.SortOrder;
607
+ content?: Prisma.SortOrder;
608
+ slug?: Prisma.SortOrder;
609
+ sku?: Prisma.SortOrder;
610
+ basePrice?: Prisma.SortOrder;
611
+ discountedBasePrice?: Prisma.SortOrder;
612
+ currency?: Prisma.SortOrder;
613
+ organizationId?: Prisma.SortOrder;
614
+ manufacturerId?: Prisma.SortOrder;
615
+ publishedAt?: Prisma.SortOrder;
616
+ publishedBy?: Prisma.SortOrder;
617
+ deletedAt?: Prisma.SortOrder;
618
+ deletedBy?: Prisma.SortOrder;
619
+ createdAt?: Prisma.SortOrder;
620
+ createdBy?: Prisma.SortOrder;
621
+ updatedAt?: Prisma.SortOrder;
622
+ updatedBy?: Prisma.SortOrder;
623
+ latestSnapshotId?: Prisma.SortOrder;
624
+ };
625
+ export type ProductMinOrderByAggregateInput = {
626
+ id?: Prisma.SortOrder;
627
+ content?: Prisma.SortOrder;
628
+ slug?: Prisma.SortOrder;
629
+ sku?: Prisma.SortOrder;
630
+ basePrice?: Prisma.SortOrder;
631
+ discountedBasePrice?: Prisma.SortOrder;
632
+ currency?: Prisma.SortOrder;
633
+ organizationId?: Prisma.SortOrder;
634
+ manufacturerId?: Prisma.SortOrder;
635
+ publishedAt?: Prisma.SortOrder;
636
+ publishedBy?: Prisma.SortOrder;
637
+ deletedAt?: Prisma.SortOrder;
638
+ deletedBy?: Prisma.SortOrder;
639
+ createdAt?: Prisma.SortOrder;
640
+ createdBy?: Prisma.SortOrder;
641
+ updatedAt?: Prisma.SortOrder;
642
+ updatedBy?: Prisma.SortOrder;
643
+ latestSnapshotId?: Prisma.SortOrder;
644
+ };
645
+ export type ProductSumOrderByAggregateInput = {
646
+ basePrice?: Prisma.SortOrder;
647
+ discountedBasePrice?: Prisma.SortOrder;
648
+ };
649
+ export type ProductScalarRelationFilter = {
650
+ is?: Prisma.ProductWhereInput;
651
+ isNot?: Prisma.ProductWhereInput;
652
+ };
653
+ export type ProductNullableScalarRelationFilter = {
654
+ is?: Prisma.ProductWhereInput | null;
655
+ isNot?: Prisma.ProductWhereInput | null;
656
+ };
657
+ export type ProductCreateNestedManyWithoutOrganizationInput = {
658
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutOrganizationInput, Prisma.ProductUncheckedCreateWithoutOrganizationInput> | Prisma.ProductCreateWithoutOrganizationInput[] | Prisma.ProductUncheckedCreateWithoutOrganizationInput[];
659
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutOrganizationInput | Prisma.ProductCreateOrConnectWithoutOrganizationInput[];
660
+ createMany?: Prisma.ProductCreateManyOrganizationInputEnvelope;
661
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
662
+ };
663
+ export type ProductUncheckedCreateNestedManyWithoutOrganizationInput = {
664
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutOrganizationInput, Prisma.ProductUncheckedCreateWithoutOrganizationInput> | Prisma.ProductCreateWithoutOrganizationInput[] | Prisma.ProductUncheckedCreateWithoutOrganizationInput[];
665
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutOrganizationInput | Prisma.ProductCreateOrConnectWithoutOrganizationInput[];
666
+ createMany?: Prisma.ProductCreateManyOrganizationInputEnvelope;
667
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
668
+ };
669
+ export type ProductUpdateManyWithoutOrganizationNestedInput = {
670
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutOrganizationInput, Prisma.ProductUncheckedCreateWithoutOrganizationInput> | Prisma.ProductCreateWithoutOrganizationInput[] | Prisma.ProductUncheckedCreateWithoutOrganizationInput[];
671
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutOrganizationInput | Prisma.ProductCreateOrConnectWithoutOrganizationInput[];
672
+ upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.ProductUpsertWithWhereUniqueWithoutOrganizationInput[];
673
+ createMany?: Prisma.ProductCreateManyOrganizationInputEnvelope;
674
+ set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
675
+ disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
676
+ delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
677
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
678
+ update?: Prisma.ProductUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.ProductUpdateWithWhereUniqueWithoutOrganizationInput[];
679
+ updateMany?: Prisma.ProductUpdateManyWithWhereWithoutOrganizationInput | Prisma.ProductUpdateManyWithWhereWithoutOrganizationInput[];
680
+ deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[];
681
+ };
682
+ export type ProductUncheckedUpdateManyWithoutOrganizationNestedInput = {
683
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutOrganizationInput, Prisma.ProductUncheckedCreateWithoutOrganizationInput> | Prisma.ProductCreateWithoutOrganizationInput[] | Prisma.ProductUncheckedCreateWithoutOrganizationInput[];
684
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutOrganizationInput | Prisma.ProductCreateOrConnectWithoutOrganizationInput[];
685
+ upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.ProductUpsertWithWhereUniqueWithoutOrganizationInput[];
686
+ createMany?: Prisma.ProductCreateManyOrganizationInputEnvelope;
687
+ set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
688
+ disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
689
+ delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
690
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
691
+ update?: Prisma.ProductUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.ProductUpdateWithWhereUniqueWithoutOrganizationInput[];
692
+ updateMany?: Prisma.ProductUpdateManyWithWhereWithoutOrganizationInput | Prisma.ProductUpdateManyWithWhereWithoutOrganizationInput[];
693
+ deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[];
694
+ };
695
+ export type ProductCreateNestedManyWithoutImagesInput = {
696
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutImagesInput, Prisma.ProductUncheckedCreateWithoutImagesInput> | Prisma.ProductCreateWithoutImagesInput[] | Prisma.ProductUncheckedCreateWithoutImagesInput[];
697
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutImagesInput | Prisma.ProductCreateOrConnectWithoutImagesInput[];
698
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
699
+ };
700
+ export type ProductUncheckedCreateNestedManyWithoutImagesInput = {
701
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutImagesInput, Prisma.ProductUncheckedCreateWithoutImagesInput> | Prisma.ProductCreateWithoutImagesInput[] | Prisma.ProductUncheckedCreateWithoutImagesInput[];
702
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutImagesInput | Prisma.ProductCreateOrConnectWithoutImagesInput[];
703
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
704
+ };
705
+ export type ProductUpdateManyWithoutImagesNestedInput = {
706
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutImagesInput, Prisma.ProductUncheckedCreateWithoutImagesInput> | Prisma.ProductCreateWithoutImagesInput[] | Prisma.ProductUncheckedCreateWithoutImagesInput[];
707
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutImagesInput | Prisma.ProductCreateOrConnectWithoutImagesInput[];
708
+ upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutImagesInput | Prisma.ProductUpsertWithWhereUniqueWithoutImagesInput[];
709
+ set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
710
+ disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
711
+ delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
712
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
713
+ update?: Prisma.ProductUpdateWithWhereUniqueWithoutImagesInput | Prisma.ProductUpdateWithWhereUniqueWithoutImagesInput[];
714
+ updateMany?: Prisma.ProductUpdateManyWithWhereWithoutImagesInput | Prisma.ProductUpdateManyWithWhereWithoutImagesInput[];
715
+ deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[];
716
+ };
717
+ export type ProductUncheckedUpdateManyWithoutImagesNestedInput = {
718
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutImagesInput, Prisma.ProductUncheckedCreateWithoutImagesInput> | Prisma.ProductCreateWithoutImagesInput[] | Prisma.ProductUncheckedCreateWithoutImagesInput[];
719
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutImagesInput | Prisma.ProductCreateOrConnectWithoutImagesInput[];
720
+ upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutImagesInput | Prisma.ProductUpsertWithWhereUniqueWithoutImagesInput[];
721
+ set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
722
+ disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
723
+ delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
724
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
725
+ update?: Prisma.ProductUpdateWithWhereUniqueWithoutImagesInput | Prisma.ProductUpdateWithWhereUniqueWithoutImagesInput[];
726
+ updateMany?: Prisma.ProductUpdateManyWithWhereWithoutImagesInput | Prisma.ProductUpdateManyWithWhereWithoutImagesInput[];
727
+ deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[];
728
+ };
729
+ export type ProductCreateNestedManyWithoutManufacturerInput = {
730
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutManufacturerInput, Prisma.ProductUncheckedCreateWithoutManufacturerInput> | Prisma.ProductCreateWithoutManufacturerInput[] | Prisma.ProductUncheckedCreateWithoutManufacturerInput[];
731
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutManufacturerInput | Prisma.ProductCreateOrConnectWithoutManufacturerInput[];
732
+ createMany?: Prisma.ProductCreateManyManufacturerInputEnvelope;
733
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
734
+ };
735
+ export type ProductUncheckedCreateNestedManyWithoutManufacturerInput = {
736
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutManufacturerInput, Prisma.ProductUncheckedCreateWithoutManufacturerInput> | Prisma.ProductCreateWithoutManufacturerInput[] | Prisma.ProductUncheckedCreateWithoutManufacturerInput[];
737
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutManufacturerInput | Prisma.ProductCreateOrConnectWithoutManufacturerInput[];
738
+ createMany?: Prisma.ProductCreateManyManufacturerInputEnvelope;
739
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
740
+ };
741
+ export type ProductUpdateManyWithoutManufacturerNestedInput = {
742
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutManufacturerInput, Prisma.ProductUncheckedCreateWithoutManufacturerInput> | Prisma.ProductCreateWithoutManufacturerInput[] | Prisma.ProductUncheckedCreateWithoutManufacturerInput[];
743
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutManufacturerInput | Prisma.ProductCreateOrConnectWithoutManufacturerInput[];
744
+ upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutManufacturerInput | Prisma.ProductUpsertWithWhereUniqueWithoutManufacturerInput[];
745
+ createMany?: Prisma.ProductCreateManyManufacturerInputEnvelope;
746
+ set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
747
+ disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
748
+ delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
749
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
750
+ update?: Prisma.ProductUpdateWithWhereUniqueWithoutManufacturerInput | Prisma.ProductUpdateWithWhereUniqueWithoutManufacturerInput[];
751
+ updateMany?: Prisma.ProductUpdateManyWithWhereWithoutManufacturerInput | Prisma.ProductUpdateManyWithWhereWithoutManufacturerInput[];
752
+ deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[];
753
+ };
754
+ export type ProductUncheckedUpdateManyWithoutManufacturerNestedInput = {
755
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutManufacturerInput, Prisma.ProductUncheckedCreateWithoutManufacturerInput> | Prisma.ProductCreateWithoutManufacturerInput[] | Prisma.ProductUncheckedCreateWithoutManufacturerInput[];
756
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutManufacturerInput | Prisma.ProductCreateOrConnectWithoutManufacturerInput[];
757
+ upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutManufacturerInput | Prisma.ProductUpsertWithWhereUniqueWithoutManufacturerInput[];
758
+ createMany?: Prisma.ProductCreateManyManufacturerInputEnvelope;
759
+ set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
760
+ disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
761
+ delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
762
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
763
+ update?: Prisma.ProductUpdateWithWhereUniqueWithoutManufacturerInput | Prisma.ProductUpdateWithWhereUniqueWithoutManufacturerInput[];
764
+ updateMany?: Prisma.ProductUpdateManyWithWhereWithoutManufacturerInput | Prisma.ProductUpdateManyWithWhereWithoutManufacturerInput[];
765
+ deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[];
766
+ };
767
+ export type ProductCreateNestedManyWithoutCategoriesInput = {
768
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutCategoriesInput, Prisma.ProductUncheckedCreateWithoutCategoriesInput> | Prisma.ProductCreateWithoutCategoriesInput[] | Prisma.ProductUncheckedCreateWithoutCategoriesInput[];
769
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutCategoriesInput | Prisma.ProductCreateOrConnectWithoutCategoriesInput[];
770
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
771
+ };
772
+ export type ProductUncheckedCreateNestedManyWithoutCategoriesInput = {
773
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutCategoriesInput, Prisma.ProductUncheckedCreateWithoutCategoriesInput> | Prisma.ProductCreateWithoutCategoriesInput[] | Prisma.ProductUncheckedCreateWithoutCategoriesInput[];
774
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutCategoriesInput | Prisma.ProductCreateOrConnectWithoutCategoriesInput[];
775
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
776
+ };
777
+ export type ProductUpdateManyWithoutCategoriesNestedInput = {
778
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutCategoriesInput, Prisma.ProductUncheckedCreateWithoutCategoriesInput> | Prisma.ProductCreateWithoutCategoriesInput[] | Prisma.ProductUncheckedCreateWithoutCategoriesInput[];
779
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutCategoriesInput | Prisma.ProductCreateOrConnectWithoutCategoriesInput[];
780
+ upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutCategoriesInput | Prisma.ProductUpsertWithWhereUniqueWithoutCategoriesInput[];
781
+ set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
782
+ disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
783
+ delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
784
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
785
+ update?: Prisma.ProductUpdateWithWhereUniqueWithoutCategoriesInput | Prisma.ProductUpdateWithWhereUniqueWithoutCategoriesInput[];
786
+ updateMany?: Prisma.ProductUpdateManyWithWhereWithoutCategoriesInput | Prisma.ProductUpdateManyWithWhereWithoutCategoriesInput[];
787
+ deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[];
788
+ };
789
+ export type ProductUncheckedUpdateManyWithoutCategoriesNestedInput = {
790
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutCategoriesInput, Prisma.ProductUncheckedCreateWithoutCategoriesInput> | Prisma.ProductCreateWithoutCategoriesInput[] | Prisma.ProductUncheckedCreateWithoutCategoriesInput[];
791
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutCategoriesInput | Prisma.ProductCreateOrConnectWithoutCategoriesInput[];
792
+ upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutCategoriesInput | Prisma.ProductUpsertWithWhereUniqueWithoutCategoriesInput[];
793
+ set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
794
+ disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
795
+ delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
796
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
797
+ update?: Prisma.ProductUpdateWithWhereUniqueWithoutCategoriesInput | Prisma.ProductUpdateWithWhereUniqueWithoutCategoriesInput[];
798
+ updateMany?: Prisma.ProductUpdateManyWithWhereWithoutCategoriesInput | Prisma.ProductUpdateManyWithWhereWithoutCategoriesInput[];
799
+ deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[];
800
+ };
801
+ export type ProductCreatetagsInput = {
802
+ set: string[];
803
+ };
804
+ export type FloatFieldUpdateOperationsInput = {
805
+ set?: number;
806
+ increment?: number;
807
+ decrement?: number;
808
+ multiply?: number;
809
+ divide?: number;
810
+ };
811
+ export type ProductUpdatetagsInput = {
812
+ set?: string[];
813
+ push?: string | string[];
814
+ };
815
+ export type ProductCreateNestedOneWithoutSnapshotsInput = {
816
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutSnapshotsInput, Prisma.ProductUncheckedCreateWithoutSnapshotsInput>;
817
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutSnapshotsInput;
818
+ connect?: Prisma.ProductWhereUniqueInput;
819
+ };
820
+ export type ProductCreateNestedOneWithoutLatestSnapshotInput = {
821
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutLatestSnapshotInput, Prisma.ProductUncheckedCreateWithoutLatestSnapshotInput>;
822
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutLatestSnapshotInput;
823
+ connect?: Prisma.ProductWhereUniqueInput;
824
+ };
825
+ export type ProductUncheckedCreateNestedOneWithoutLatestSnapshotInput = {
826
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutLatestSnapshotInput, Prisma.ProductUncheckedCreateWithoutLatestSnapshotInput>;
827
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutLatestSnapshotInput;
828
+ connect?: Prisma.ProductWhereUniqueInput;
829
+ };
830
+ export type ProductUpdateOneRequiredWithoutSnapshotsNestedInput = {
831
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutSnapshotsInput, Prisma.ProductUncheckedCreateWithoutSnapshotsInput>;
832
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutSnapshotsInput;
833
+ upsert?: Prisma.ProductUpsertWithoutSnapshotsInput;
834
+ connect?: Prisma.ProductWhereUniqueInput;
835
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutSnapshotsInput, Prisma.ProductUpdateWithoutSnapshotsInput>, Prisma.ProductUncheckedUpdateWithoutSnapshotsInput>;
836
+ };
837
+ export type ProductUpdateOneWithoutLatestSnapshotNestedInput = {
838
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutLatestSnapshotInput, Prisma.ProductUncheckedCreateWithoutLatestSnapshotInput>;
839
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutLatestSnapshotInput;
840
+ upsert?: Prisma.ProductUpsertWithoutLatestSnapshotInput;
841
+ disconnect?: Prisma.ProductWhereInput | boolean;
842
+ delete?: Prisma.ProductWhereInput | boolean;
843
+ connect?: Prisma.ProductWhereUniqueInput;
844
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutLatestSnapshotInput, Prisma.ProductUpdateWithoutLatestSnapshotInput>, Prisma.ProductUncheckedUpdateWithoutLatestSnapshotInput>;
845
+ };
846
+ export type ProductUncheckedUpdateOneWithoutLatestSnapshotNestedInput = {
847
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutLatestSnapshotInput, Prisma.ProductUncheckedCreateWithoutLatestSnapshotInput>;
848
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutLatestSnapshotInput;
849
+ upsert?: Prisma.ProductUpsertWithoutLatestSnapshotInput;
850
+ disconnect?: Prisma.ProductWhereInput | boolean;
851
+ delete?: Prisma.ProductWhereInput | boolean;
852
+ connect?: Prisma.ProductWhereUniqueInput;
853
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutLatestSnapshotInput, Prisma.ProductUpdateWithoutLatestSnapshotInput>, Prisma.ProductUncheckedUpdateWithoutLatestSnapshotInput>;
854
+ };
855
+ export type ProductCreateNestedOneWithoutTranslationsInput = {
856
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutTranslationsInput, Prisma.ProductUncheckedCreateWithoutTranslationsInput>;
857
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutTranslationsInput;
858
+ connect?: Prisma.ProductWhereUniqueInput;
859
+ };
860
+ export type ProductUpdateOneRequiredWithoutTranslationsNestedInput = {
861
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutTranslationsInput, Prisma.ProductUncheckedCreateWithoutTranslationsInput>;
862
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutTranslationsInput;
863
+ upsert?: Prisma.ProductUpsertWithoutTranslationsInput;
864
+ connect?: Prisma.ProductWhereUniqueInput;
865
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutTranslationsInput, Prisma.ProductUpdateWithoutTranslationsInput>, Prisma.ProductUncheckedUpdateWithoutTranslationsInput>;
866
+ };
867
+ export type ProductCreateNestedManyWithoutModifierGroupsInput = {
868
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutModifierGroupsInput, Prisma.ProductUncheckedCreateWithoutModifierGroupsInput> | Prisma.ProductCreateWithoutModifierGroupsInput[] | Prisma.ProductUncheckedCreateWithoutModifierGroupsInput[];
869
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutModifierGroupsInput | Prisma.ProductCreateOrConnectWithoutModifierGroupsInput[];
870
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
871
+ };
872
+ export type ProductUncheckedCreateNestedManyWithoutModifierGroupsInput = {
873
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutModifierGroupsInput, Prisma.ProductUncheckedCreateWithoutModifierGroupsInput> | Prisma.ProductCreateWithoutModifierGroupsInput[] | Prisma.ProductUncheckedCreateWithoutModifierGroupsInput[];
874
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutModifierGroupsInput | Prisma.ProductCreateOrConnectWithoutModifierGroupsInput[];
875
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
876
+ };
877
+ export type ProductUpdateManyWithoutModifierGroupsNestedInput = {
878
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutModifierGroupsInput, Prisma.ProductUncheckedCreateWithoutModifierGroupsInput> | Prisma.ProductCreateWithoutModifierGroupsInput[] | Prisma.ProductUncheckedCreateWithoutModifierGroupsInput[];
879
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutModifierGroupsInput | Prisma.ProductCreateOrConnectWithoutModifierGroupsInput[];
880
+ upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutModifierGroupsInput | Prisma.ProductUpsertWithWhereUniqueWithoutModifierGroupsInput[];
881
+ set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
882
+ disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
883
+ delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
884
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
885
+ update?: Prisma.ProductUpdateWithWhereUniqueWithoutModifierGroupsInput | Prisma.ProductUpdateWithWhereUniqueWithoutModifierGroupsInput[];
886
+ updateMany?: Prisma.ProductUpdateManyWithWhereWithoutModifierGroupsInput | Prisma.ProductUpdateManyWithWhereWithoutModifierGroupsInput[];
887
+ deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[];
888
+ };
889
+ export type ProductUncheckedUpdateManyWithoutModifierGroupsNestedInput = {
890
+ create?: Prisma.XOR<Prisma.ProductCreateWithoutModifierGroupsInput, Prisma.ProductUncheckedCreateWithoutModifierGroupsInput> | Prisma.ProductCreateWithoutModifierGroupsInput[] | Prisma.ProductUncheckedCreateWithoutModifierGroupsInput[];
891
+ connectOrCreate?: Prisma.ProductCreateOrConnectWithoutModifierGroupsInput | Prisma.ProductCreateOrConnectWithoutModifierGroupsInput[];
892
+ upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutModifierGroupsInput | Prisma.ProductUpsertWithWhereUniqueWithoutModifierGroupsInput[];
893
+ set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
894
+ disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
895
+ delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
896
+ connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[];
897
+ update?: Prisma.ProductUpdateWithWhereUniqueWithoutModifierGroupsInput | Prisma.ProductUpdateWithWhereUniqueWithoutModifierGroupsInput[];
898
+ updateMany?: Prisma.ProductUpdateManyWithWhereWithoutModifierGroupsInput | Prisma.ProductUpdateManyWithWhereWithoutModifierGroupsInput[];
899
+ deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[];
900
+ };
901
+ export type ProductCreateWithoutOrganizationInput = {
902
+ id?: string;
903
+ content?: string | null;
904
+ slug?: string | null;
905
+ sku?: string | null;
906
+ basePrice: number;
907
+ discountedBasePrice?: number | null;
908
+ currency: string;
909
+ tags?: Prisma.ProductCreatetagsInput | string[];
910
+ publishedAt?: Date | string | null;
911
+ publishedBy?: string | null;
912
+ deletedAt?: Date | string | null;
913
+ deletedBy?: string | null;
914
+ createdAt?: Date | string;
915
+ createdBy?: string | null;
916
+ updatedAt?: Date | string;
917
+ updatedBy?: string | null;
918
+ images?: Prisma.FileCreateNestedManyWithoutProductImagesInput;
919
+ manufacturer?: Prisma.ManufacturerCreateNestedOneWithoutProductsInput;
920
+ categories?: Prisma.ProductCategoryCreateNestedManyWithoutProductsInput;
921
+ modifierGroups?: Prisma.ModifierGroupCreateNestedManyWithoutProductsInput;
922
+ translations?: Prisma.ProductTranslationCreateNestedManyWithoutProductInput;
923
+ snapshots?: Prisma.ProductSnapshotCreateNestedManyWithoutProductInput;
924
+ latestSnapshot?: Prisma.ProductSnapshotCreateNestedOneWithoutLatestForProductInput;
925
+ };
926
+ export type ProductUncheckedCreateWithoutOrganizationInput = {
927
+ id?: string;
928
+ content?: string | null;
929
+ slug?: string | null;
930
+ sku?: string | null;
931
+ basePrice: number;
932
+ discountedBasePrice?: number | null;
933
+ currency: string;
934
+ manufacturerId?: string | null;
935
+ tags?: Prisma.ProductCreatetagsInput | string[];
936
+ publishedAt?: Date | string | null;
937
+ publishedBy?: string | null;
938
+ deletedAt?: Date | string | null;
939
+ deletedBy?: string | null;
940
+ createdAt?: Date | string;
941
+ createdBy?: string | null;
942
+ updatedAt?: Date | string;
943
+ updatedBy?: string | null;
944
+ latestSnapshotId?: string | null;
945
+ images?: Prisma.FileUncheckedCreateNestedManyWithoutProductImagesInput;
946
+ categories?: Prisma.ProductCategoryUncheckedCreateNestedManyWithoutProductsInput;
947
+ modifierGroups?: Prisma.ModifierGroupUncheckedCreateNestedManyWithoutProductsInput;
948
+ translations?: Prisma.ProductTranslationUncheckedCreateNestedManyWithoutProductInput;
949
+ snapshots?: Prisma.ProductSnapshotUncheckedCreateNestedManyWithoutProductInput;
950
+ };
951
+ export type ProductCreateOrConnectWithoutOrganizationInput = {
952
+ where: Prisma.ProductWhereUniqueInput;
953
+ create: Prisma.XOR<Prisma.ProductCreateWithoutOrganizationInput, Prisma.ProductUncheckedCreateWithoutOrganizationInput>;
954
+ };
955
+ export type ProductCreateManyOrganizationInputEnvelope = {
956
+ data: Prisma.ProductCreateManyOrganizationInput | Prisma.ProductCreateManyOrganizationInput[];
957
+ skipDuplicates?: boolean;
958
+ };
959
+ export type ProductUpsertWithWhereUniqueWithoutOrganizationInput = {
960
+ where: Prisma.ProductWhereUniqueInput;
961
+ update: Prisma.XOR<Prisma.ProductUpdateWithoutOrganizationInput, Prisma.ProductUncheckedUpdateWithoutOrganizationInput>;
962
+ create: Prisma.XOR<Prisma.ProductCreateWithoutOrganizationInput, Prisma.ProductUncheckedCreateWithoutOrganizationInput>;
963
+ };
964
+ export type ProductUpdateWithWhereUniqueWithoutOrganizationInput = {
965
+ where: Prisma.ProductWhereUniqueInput;
966
+ data: Prisma.XOR<Prisma.ProductUpdateWithoutOrganizationInput, Prisma.ProductUncheckedUpdateWithoutOrganizationInput>;
967
+ };
968
+ export type ProductUpdateManyWithWhereWithoutOrganizationInput = {
969
+ where: Prisma.ProductScalarWhereInput;
970
+ data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyWithoutOrganizationInput>;
971
+ };
972
+ export type ProductScalarWhereInput = {
973
+ AND?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[];
974
+ OR?: Prisma.ProductScalarWhereInput[];
975
+ NOT?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[];
976
+ id?: Prisma.StringFilter<"Product"> | string;
977
+ content?: Prisma.StringNullableFilter<"Product"> | string | null;
978
+ slug?: Prisma.StringNullableFilter<"Product"> | string | null;
979
+ sku?: Prisma.StringNullableFilter<"Product"> | string | null;
980
+ basePrice?: Prisma.FloatFilter<"Product"> | number;
981
+ discountedBasePrice?: Prisma.FloatNullableFilter<"Product"> | number | null;
982
+ currency?: Prisma.StringFilter<"Product"> | string;
983
+ organizationId?: Prisma.StringFilter<"Product"> | string;
984
+ manufacturerId?: Prisma.StringNullableFilter<"Product"> | string | null;
985
+ tags?: Prisma.StringNullableListFilter<"Product">;
986
+ publishedAt?: Prisma.DateTimeNullableFilter<"Product"> | Date | string | null;
987
+ publishedBy?: Prisma.StringNullableFilter<"Product"> | string | null;
988
+ deletedAt?: Prisma.DateTimeNullableFilter<"Product"> | Date | string | null;
989
+ deletedBy?: Prisma.StringNullableFilter<"Product"> | string | null;
990
+ createdAt?: Prisma.DateTimeFilter<"Product"> | Date | string;
991
+ createdBy?: Prisma.StringNullableFilter<"Product"> | string | null;
992
+ updatedAt?: Prisma.DateTimeFilter<"Product"> | Date | string;
993
+ updatedBy?: Prisma.StringNullableFilter<"Product"> | string | null;
994
+ latestSnapshotId?: Prisma.StringNullableFilter<"Product"> | string | null;
995
+ };
996
+ export type ProductCreateWithoutImagesInput = {
997
+ id?: string;
998
+ content?: string | null;
999
+ slug?: string | null;
1000
+ sku?: string | null;
1001
+ basePrice: number;
1002
+ discountedBasePrice?: number | null;
1003
+ currency: string;
1004
+ tags?: Prisma.ProductCreatetagsInput | string[];
1005
+ publishedAt?: Date | string | null;
1006
+ publishedBy?: string | null;
1007
+ deletedAt?: Date | string | null;
1008
+ deletedBy?: string | null;
1009
+ createdAt?: Date | string;
1010
+ createdBy?: string | null;
1011
+ updatedAt?: Date | string;
1012
+ updatedBy?: string | null;
1013
+ organization: Prisma.OrganizationCreateNestedOneWithoutProductsInput;
1014
+ manufacturer?: Prisma.ManufacturerCreateNestedOneWithoutProductsInput;
1015
+ categories?: Prisma.ProductCategoryCreateNestedManyWithoutProductsInput;
1016
+ modifierGroups?: Prisma.ModifierGroupCreateNestedManyWithoutProductsInput;
1017
+ translations?: Prisma.ProductTranslationCreateNestedManyWithoutProductInput;
1018
+ snapshots?: Prisma.ProductSnapshotCreateNestedManyWithoutProductInput;
1019
+ latestSnapshot?: Prisma.ProductSnapshotCreateNestedOneWithoutLatestForProductInput;
1020
+ };
1021
+ export type ProductUncheckedCreateWithoutImagesInput = {
1022
+ id?: string;
1023
+ content?: string | null;
1024
+ slug?: string | null;
1025
+ sku?: string | null;
1026
+ basePrice: number;
1027
+ discountedBasePrice?: number | null;
1028
+ currency: string;
1029
+ organizationId: string;
1030
+ manufacturerId?: string | null;
1031
+ tags?: Prisma.ProductCreatetagsInput | string[];
1032
+ publishedAt?: Date | string | null;
1033
+ publishedBy?: string | null;
1034
+ deletedAt?: Date | string | null;
1035
+ deletedBy?: string | null;
1036
+ createdAt?: Date | string;
1037
+ createdBy?: string | null;
1038
+ updatedAt?: Date | string;
1039
+ updatedBy?: string | null;
1040
+ latestSnapshotId?: string | null;
1041
+ categories?: Prisma.ProductCategoryUncheckedCreateNestedManyWithoutProductsInput;
1042
+ modifierGroups?: Prisma.ModifierGroupUncheckedCreateNestedManyWithoutProductsInput;
1043
+ translations?: Prisma.ProductTranslationUncheckedCreateNestedManyWithoutProductInput;
1044
+ snapshots?: Prisma.ProductSnapshotUncheckedCreateNestedManyWithoutProductInput;
1045
+ };
1046
+ export type ProductCreateOrConnectWithoutImagesInput = {
1047
+ where: Prisma.ProductWhereUniqueInput;
1048
+ create: Prisma.XOR<Prisma.ProductCreateWithoutImagesInput, Prisma.ProductUncheckedCreateWithoutImagesInput>;
1049
+ };
1050
+ export type ProductUpsertWithWhereUniqueWithoutImagesInput = {
1051
+ where: Prisma.ProductWhereUniqueInput;
1052
+ update: Prisma.XOR<Prisma.ProductUpdateWithoutImagesInput, Prisma.ProductUncheckedUpdateWithoutImagesInput>;
1053
+ create: Prisma.XOR<Prisma.ProductCreateWithoutImagesInput, Prisma.ProductUncheckedCreateWithoutImagesInput>;
1054
+ };
1055
+ export type ProductUpdateWithWhereUniqueWithoutImagesInput = {
1056
+ where: Prisma.ProductWhereUniqueInput;
1057
+ data: Prisma.XOR<Prisma.ProductUpdateWithoutImagesInput, Prisma.ProductUncheckedUpdateWithoutImagesInput>;
1058
+ };
1059
+ export type ProductUpdateManyWithWhereWithoutImagesInput = {
1060
+ where: Prisma.ProductScalarWhereInput;
1061
+ data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyWithoutImagesInput>;
1062
+ };
1063
+ export type ProductCreateWithoutManufacturerInput = {
1064
+ id?: string;
1065
+ content?: string | null;
1066
+ slug?: string | null;
1067
+ sku?: string | null;
1068
+ basePrice: number;
1069
+ discountedBasePrice?: number | null;
1070
+ currency: string;
1071
+ tags?: Prisma.ProductCreatetagsInput | string[];
1072
+ publishedAt?: Date | string | null;
1073
+ publishedBy?: string | null;
1074
+ deletedAt?: Date | string | null;
1075
+ deletedBy?: string | null;
1076
+ createdAt?: Date | string;
1077
+ createdBy?: string | null;
1078
+ updatedAt?: Date | string;
1079
+ updatedBy?: string | null;
1080
+ images?: Prisma.FileCreateNestedManyWithoutProductImagesInput;
1081
+ organization: Prisma.OrganizationCreateNestedOneWithoutProductsInput;
1082
+ categories?: Prisma.ProductCategoryCreateNestedManyWithoutProductsInput;
1083
+ modifierGroups?: Prisma.ModifierGroupCreateNestedManyWithoutProductsInput;
1084
+ translations?: Prisma.ProductTranslationCreateNestedManyWithoutProductInput;
1085
+ snapshots?: Prisma.ProductSnapshotCreateNestedManyWithoutProductInput;
1086
+ latestSnapshot?: Prisma.ProductSnapshotCreateNestedOneWithoutLatestForProductInput;
1087
+ };
1088
+ export type ProductUncheckedCreateWithoutManufacturerInput = {
1089
+ id?: string;
1090
+ content?: string | null;
1091
+ slug?: string | null;
1092
+ sku?: string | null;
1093
+ basePrice: number;
1094
+ discountedBasePrice?: number | null;
1095
+ currency: string;
1096
+ organizationId: string;
1097
+ tags?: Prisma.ProductCreatetagsInput | string[];
1098
+ publishedAt?: Date | string | null;
1099
+ publishedBy?: string | null;
1100
+ deletedAt?: Date | string | null;
1101
+ deletedBy?: string | null;
1102
+ createdAt?: Date | string;
1103
+ createdBy?: string | null;
1104
+ updatedAt?: Date | string;
1105
+ updatedBy?: string | null;
1106
+ latestSnapshotId?: string | null;
1107
+ images?: Prisma.FileUncheckedCreateNestedManyWithoutProductImagesInput;
1108
+ categories?: Prisma.ProductCategoryUncheckedCreateNestedManyWithoutProductsInput;
1109
+ modifierGroups?: Prisma.ModifierGroupUncheckedCreateNestedManyWithoutProductsInput;
1110
+ translations?: Prisma.ProductTranslationUncheckedCreateNestedManyWithoutProductInput;
1111
+ snapshots?: Prisma.ProductSnapshotUncheckedCreateNestedManyWithoutProductInput;
1112
+ };
1113
+ export type ProductCreateOrConnectWithoutManufacturerInput = {
1114
+ where: Prisma.ProductWhereUniqueInput;
1115
+ create: Prisma.XOR<Prisma.ProductCreateWithoutManufacturerInput, Prisma.ProductUncheckedCreateWithoutManufacturerInput>;
1116
+ };
1117
+ export type ProductCreateManyManufacturerInputEnvelope = {
1118
+ data: Prisma.ProductCreateManyManufacturerInput | Prisma.ProductCreateManyManufacturerInput[];
1119
+ skipDuplicates?: boolean;
1120
+ };
1121
+ export type ProductUpsertWithWhereUniqueWithoutManufacturerInput = {
1122
+ where: Prisma.ProductWhereUniqueInput;
1123
+ update: Prisma.XOR<Prisma.ProductUpdateWithoutManufacturerInput, Prisma.ProductUncheckedUpdateWithoutManufacturerInput>;
1124
+ create: Prisma.XOR<Prisma.ProductCreateWithoutManufacturerInput, Prisma.ProductUncheckedCreateWithoutManufacturerInput>;
1125
+ };
1126
+ export type ProductUpdateWithWhereUniqueWithoutManufacturerInput = {
1127
+ where: Prisma.ProductWhereUniqueInput;
1128
+ data: Prisma.XOR<Prisma.ProductUpdateWithoutManufacturerInput, Prisma.ProductUncheckedUpdateWithoutManufacturerInput>;
1129
+ };
1130
+ export type ProductUpdateManyWithWhereWithoutManufacturerInput = {
1131
+ where: Prisma.ProductScalarWhereInput;
1132
+ data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyWithoutManufacturerInput>;
1133
+ };
1134
+ export type ProductCreateWithoutCategoriesInput = {
1135
+ id?: string;
1136
+ content?: string | null;
1137
+ slug?: string | null;
1138
+ sku?: string | null;
1139
+ basePrice: number;
1140
+ discountedBasePrice?: number | null;
1141
+ currency: string;
1142
+ tags?: Prisma.ProductCreatetagsInput | string[];
1143
+ publishedAt?: Date | string | null;
1144
+ publishedBy?: string | null;
1145
+ deletedAt?: Date | string | null;
1146
+ deletedBy?: string | null;
1147
+ createdAt?: Date | string;
1148
+ createdBy?: string | null;
1149
+ updatedAt?: Date | string;
1150
+ updatedBy?: string | null;
1151
+ images?: Prisma.FileCreateNestedManyWithoutProductImagesInput;
1152
+ organization: Prisma.OrganizationCreateNestedOneWithoutProductsInput;
1153
+ manufacturer?: Prisma.ManufacturerCreateNestedOneWithoutProductsInput;
1154
+ modifierGroups?: Prisma.ModifierGroupCreateNestedManyWithoutProductsInput;
1155
+ translations?: Prisma.ProductTranslationCreateNestedManyWithoutProductInput;
1156
+ snapshots?: Prisma.ProductSnapshotCreateNestedManyWithoutProductInput;
1157
+ latestSnapshot?: Prisma.ProductSnapshotCreateNestedOneWithoutLatestForProductInput;
1158
+ };
1159
+ export type ProductUncheckedCreateWithoutCategoriesInput = {
1160
+ id?: string;
1161
+ content?: string | null;
1162
+ slug?: string | null;
1163
+ sku?: string | null;
1164
+ basePrice: number;
1165
+ discountedBasePrice?: number | null;
1166
+ currency: string;
1167
+ organizationId: string;
1168
+ manufacturerId?: string | null;
1169
+ tags?: Prisma.ProductCreatetagsInput | string[];
1170
+ publishedAt?: Date | string | null;
1171
+ publishedBy?: string | null;
1172
+ deletedAt?: Date | string | null;
1173
+ deletedBy?: string | null;
1174
+ createdAt?: Date | string;
1175
+ createdBy?: string | null;
1176
+ updatedAt?: Date | string;
1177
+ updatedBy?: string | null;
1178
+ latestSnapshotId?: string | null;
1179
+ images?: Prisma.FileUncheckedCreateNestedManyWithoutProductImagesInput;
1180
+ modifierGroups?: Prisma.ModifierGroupUncheckedCreateNestedManyWithoutProductsInput;
1181
+ translations?: Prisma.ProductTranslationUncheckedCreateNestedManyWithoutProductInput;
1182
+ snapshots?: Prisma.ProductSnapshotUncheckedCreateNestedManyWithoutProductInput;
1183
+ };
1184
+ export type ProductCreateOrConnectWithoutCategoriesInput = {
1185
+ where: Prisma.ProductWhereUniqueInput;
1186
+ create: Prisma.XOR<Prisma.ProductCreateWithoutCategoriesInput, Prisma.ProductUncheckedCreateWithoutCategoriesInput>;
1187
+ };
1188
+ export type ProductUpsertWithWhereUniqueWithoutCategoriesInput = {
1189
+ where: Prisma.ProductWhereUniqueInput;
1190
+ update: Prisma.XOR<Prisma.ProductUpdateWithoutCategoriesInput, Prisma.ProductUncheckedUpdateWithoutCategoriesInput>;
1191
+ create: Prisma.XOR<Prisma.ProductCreateWithoutCategoriesInput, Prisma.ProductUncheckedCreateWithoutCategoriesInput>;
1192
+ };
1193
+ export type ProductUpdateWithWhereUniqueWithoutCategoriesInput = {
1194
+ where: Prisma.ProductWhereUniqueInput;
1195
+ data: Prisma.XOR<Prisma.ProductUpdateWithoutCategoriesInput, Prisma.ProductUncheckedUpdateWithoutCategoriesInput>;
1196
+ };
1197
+ export type ProductUpdateManyWithWhereWithoutCategoriesInput = {
1198
+ where: Prisma.ProductScalarWhereInput;
1199
+ data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyWithoutCategoriesInput>;
1200
+ };
1201
+ export type ProductCreateWithoutSnapshotsInput = {
1202
+ id?: string;
1203
+ content?: string | null;
1204
+ slug?: string | null;
1205
+ sku?: string | null;
1206
+ basePrice: number;
1207
+ discountedBasePrice?: number | null;
1208
+ currency: string;
1209
+ tags?: Prisma.ProductCreatetagsInput | string[];
1210
+ publishedAt?: Date | string | null;
1211
+ publishedBy?: string | null;
1212
+ deletedAt?: Date | string | null;
1213
+ deletedBy?: string | null;
1214
+ createdAt?: Date | string;
1215
+ createdBy?: string | null;
1216
+ updatedAt?: Date | string;
1217
+ updatedBy?: string | null;
1218
+ images?: Prisma.FileCreateNestedManyWithoutProductImagesInput;
1219
+ organization: Prisma.OrganizationCreateNestedOneWithoutProductsInput;
1220
+ manufacturer?: Prisma.ManufacturerCreateNestedOneWithoutProductsInput;
1221
+ categories?: Prisma.ProductCategoryCreateNestedManyWithoutProductsInput;
1222
+ modifierGroups?: Prisma.ModifierGroupCreateNestedManyWithoutProductsInput;
1223
+ translations?: Prisma.ProductTranslationCreateNestedManyWithoutProductInput;
1224
+ latestSnapshot?: Prisma.ProductSnapshotCreateNestedOneWithoutLatestForProductInput;
1225
+ };
1226
+ export type ProductUncheckedCreateWithoutSnapshotsInput = {
1227
+ id?: string;
1228
+ content?: string | null;
1229
+ slug?: string | null;
1230
+ sku?: string | null;
1231
+ basePrice: number;
1232
+ discountedBasePrice?: number | null;
1233
+ currency: string;
1234
+ organizationId: string;
1235
+ manufacturerId?: string | null;
1236
+ tags?: Prisma.ProductCreatetagsInput | string[];
1237
+ publishedAt?: Date | string | null;
1238
+ publishedBy?: string | null;
1239
+ deletedAt?: Date | string | null;
1240
+ deletedBy?: string | null;
1241
+ createdAt?: Date | string;
1242
+ createdBy?: string | null;
1243
+ updatedAt?: Date | string;
1244
+ updatedBy?: string | null;
1245
+ latestSnapshotId?: string | null;
1246
+ images?: Prisma.FileUncheckedCreateNestedManyWithoutProductImagesInput;
1247
+ categories?: Prisma.ProductCategoryUncheckedCreateNestedManyWithoutProductsInput;
1248
+ modifierGroups?: Prisma.ModifierGroupUncheckedCreateNestedManyWithoutProductsInput;
1249
+ translations?: Prisma.ProductTranslationUncheckedCreateNestedManyWithoutProductInput;
1250
+ };
1251
+ export type ProductCreateOrConnectWithoutSnapshotsInput = {
1252
+ where: Prisma.ProductWhereUniqueInput;
1253
+ create: Prisma.XOR<Prisma.ProductCreateWithoutSnapshotsInput, Prisma.ProductUncheckedCreateWithoutSnapshotsInput>;
1254
+ };
1255
+ export type ProductCreateWithoutLatestSnapshotInput = {
1256
+ id?: string;
1257
+ content?: string | null;
1258
+ slug?: string | null;
1259
+ sku?: string | null;
1260
+ basePrice: number;
1261
+ discountedBasePrice?: number | null;
1262
+ currency: string;
1263
+ tags?: Prisma.ProductCreatetagsInput | string[];
1264
+ publishedAt?: Date | string | null;
1265
+ publishedBy?: string | null;
1266
+ deletedAt?: Date | string | null;
1267
+ deletedBy?: string | null;
1268
+ createdAt?: Date | string;
1269
+ createdBy?: string | null;
1270
+ updatedAt?: Date | string;
1271
+ updatedBy?: string | null;
1272
+ images?: Prisma.FileCreateNestedManyWithoutProductImagesInput;
1273
+ organization: Prisma.OrganizationCreateNestedOneWithoutProductsInput;
1274
+ manufacturer?: Prisma.ManufacturerCreateNestedOneWithoutProductsInput;
1275
+ categories?: Prisma.ProductCategoryCreateNestedManyWithoutProductsInput;
1276
+ modifierGroups?: Prisma.ModifierGroupCreateNestedManyWithoutProductsInput;
1277
+ translations?: Prisma.ProductTranslationCreateNestedManyWithoutProductInput;
1278
+ snapshots?: Prisma.ProductSnapshotCreateNestedManyWithoutProductInput;
1279
+ };
1280
+ export type ProductUncheckedCreateWithoutLatestSnapshotInput = {
1281
+ id?: string;
1282
+ content?: string | null;
1283
+ slug?: string | null;
1284
+ sku?: string | null;
1285
+ basePrice: number;
1286
+ discountedBasePrice?: number | null;
1287
+ currency: string;
1288
+ organizationId: string;
1289
+ manufacturerId?: string | null;
1290
+ tags?: Prisma.ProductCreatetagsInput | string[];
1291
+ publishedAt?: Date | string | null;
1292
+ publishedBy?: string | null;
1293
+ deletedAt?: Date | string | null;
1294
+ deletedBy?: string | null;
1295
+ createdAt?: Date | string;
1296
+ createdBy?: string | null;
1297
+ updatedAt?: Date | string;
1298
+ updatedBy?: string | null;
1299
+ images?: Prisma.FileUncheckedCreateNestedManyWithoutProductImagesInput;
1300
+ categories?: Prisma.ProductCategoryUncheckedCreateNestedManyWithoutProductsInput;
1301
+ modifierGroups?: Prisma.ModifierGroupUncheckedCreateNestedManyWithoutProductsInput;
1302
+ translations?: Prisma.ProductTranslationUncheckedCreateNestedManyWithoutProductInput;
1303
+ snapshots?: Prisma.ProductSnapshotUncheckedCreateNestedManyWithoutProductInput;
1304
+ };
1305
+ export type ProductCreateOrConnectWithoutLatestSnapshotInput = {
1306
+ where: Prisma.ProductWhereUniqueInput;
1307
+ create: Prisma.XOR<Prisma.ProductCreateWithoutLatestSnapshotInput, Prisma.ProductUncheckedCreateWithoutLatestSnapshotInput>;
1308
+ };
1309
+ export type ProductUpsertWithoutSnapshotsInput = {
1310
+ update: Prisma.XOR<Prisma.ProductUpdateWithoutSnapshotsInput, Prisma.ProductUncheckedUpdateWithoutSnapshotsInput>;
1311
+ create: Prisma.XOR<Prisma.ProductCreateWithoutSnapshotsInput, Prisma.ProductUncheckedCreateWithoutSnapshotsInput>;
1312
+ where?: Prisma.ProductWhereInput;
1313
+ };
1314
+ export type ProductUpdateToOneWithWhereWithoutSnapshotsInput = {
1315
+ where?: Prisma.ProductWhereInput;
1316
+ data: Prisma.XOR<Prisma.ProductUpdateWithoutSnapshotsInput, Prisma.ProductUncheckedUpdateWithoutSnapshotsInput>;
1317
+ };
1318
+ export type ProductUpdateWithoutSnapshotsInput = {
1319
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1320
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1321
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1322
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1323
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1324
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1325
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1326
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1327
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1328
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1329
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1330
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1331
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1332
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1333
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1334
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1335
+ images?: Prisma.FileUpdateManyWithoutProductImagesNestedInput;
1336
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutProductsNestedInput;
1337
+ manufacturer?: Prisma.ManufacturerUpdateOneWithoutProductsNestedInput;
1338
+ categories?: Prisma.ProductCategoryUpdateManyWithoutProductsNestedInput;
1339
+ modifierGroups?: Prisma.ModifierGroupUpdateManyWithoutProductsNestedInput;
1340
+ translations?: Prisma.ProductTranslationUpdateManyWithoutProductNestedInput;
1341
+ latestSnapshot?: Prisma.ProductSnapshotUpdateOneWithoutLatestForProductNestedInput;
1342
+ };
1343
+ export type ProductUncheckedUpdateWithoutSnapshotsInput = {
1344
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1345
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1346
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1347
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1348
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1349
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1350
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1351
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1352
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1353
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1354
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1355
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1356
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1357
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1358
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1359
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1360
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1361
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1362
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1363
+ images?: Prisma.FileUncheckedUpdateManyWithoutProductImagesNestedInput;
1364
+ categories?: Prisma.ProductCategoryUncheckedUpdateManyWithoutProductsNestedInput;
1365
+ modifierGroups?: Prisma.ModifierGroupUncheckedUpdateManyWithoutProductsNestedInput;
1366
+ translations?: Prisma.ProductTranslationUncheckedUpdateManyWithoutProductNestedInput;
1367
+ };
1368
+ export type ProductUpsertWithoutLatestSnapshotInput = {
1369
+ update: Prisma.XOR<Prisma.ProductUpdateWithoutLatestSnapshotInput, Prisma.ProductUncheckedUpdateWithoutLatestSnapshotInput>;
1370
+ create: Prisma.XOR<Prisma.ProductCreateWithoutLatestSnapshotInput, Prisma.ProductUncheckedCreateWithoutLatestSnapshotInput>;
1371
+ where?: Prisma.ProductWhereInput;
1372
+ };
1373
+ export type ProductUpdateToOneWithWhereWithoutLatestSnapshotInput = {
1374
+ where?: Prisma.ProductWhereInput;
1375
+ data: Prisma.XOR<Prisma.ProductUpdateWithoutLatestSnapshotInput, Prisma.ProductUncheckedUpdateWithoutLatestSnapshotInput>;
1376
+ };
1377
+ export type ProductUpdateWithoutLatestSnapshotInput = {
1378
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1379
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1380
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1381
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1382
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1383
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1384
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1385
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1386
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1387
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1388
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1389
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1390
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1391
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1392
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1393
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1394
+ images?: Prisma.FileUpdateManyWithoutProductImagesNestedInput;
1395
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutProductsNestedInput;
1396
+ manufacturer?: Prisma.ManufacturerUpdateOneWithoutProductsNestedInput;
1397
+ categories?: Prisma.ProductCategoryUpdateManyWithoutProductsNestedInput;
1398
+ modifierGroups?: Prisma.ModifierGroupUpdateManyWithoutProductsNestedInput;
1399
+ translations?: Prisma.ProductTranslationUpdateManyWithoutProductNestedInput;
1400
+ snapshots?: Prisma.ProductSnapshotUpdateManyWithoutProductNestedInput;
1401
+ };
1402
+ export type ProductUncheckedUpdateWithoutLatestSnapshotInput = {
1403
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1404
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1405
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1406
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1407
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1408
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1409
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1410
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1411
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1412
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1413
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1414
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1415
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1416
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1417
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1418
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1419
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1420
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1421
+ images?: Prisma.FileUncheckedUpdateManyWithoutProductImagesNestedInput;
1422
+ categories?: Prisma.ProductCategoryUncheckedUpdateManyWithoutProductsNestedInput;
1423
+ modifierGroups?: Prisma.ModifierGroupUncheckedUpdateManyWithoutProductsNestedInput;
1424
+ translations?: Prisma.ProductTranslationUncheckedUpdateManyWithoutProductNestedInput;
1425
+ snapshots?: Prisma.ProductSnapshotUncheckedUpdateManyWithoutProductNestedInput;
1426
+ };
1427
+ export type ProductCreateWithoutTranslationsInput = {
1428
+ id?: string;
1429
+ content?: string | null;
1430
+ slug?: string | null;
1431
+ sku?: string | null;
1432
+ basePrice: number;
1433
+ discountedBasePrice?: number | null;
1434
+ currency: string;
1435
+ tags?: Prisma.ProductCreatetagsInput | string[];
1436
+ publishedAt?: Date | string | null;
1437
+ publishedBy?: string | null;
1438
+ deletedAt?: Date | string | null;
1439
+ deletedBy?: string | null;
1440
+ createdAt?: Date | string;
1441
+ createdBy?: string | null;
1442
+ updatedAt?: Date | string;
1443
+ updatedBy?: string | null;
1444
+ images?: Prisma.FileCreateNestedManyWithoutProductImagesInput;
1445
+ organization: Prisma.OrganizationCreateNestedOneWithoutProductsInput;
1446
+ manufacturer?: Prisma.ManufacturerCreateNestedOneWithoutProductsInput;
1447
+ categories?: Prisma.ProductCategoryCreateNestedManyWithoutProductsInput;
1448
+ modifierGroups?: Prisma.ModifierGroupCreateNestedManyWithoutProductsInput;
1449
+ snapshots?: Prisma.ProductSnapshotCreateNestedManyWithoutProductInput;
1450
+ latestSnapshot?: Prisma.ProductSnapshotCreateNestedOneWithoutLatestForProductInput;
1451
+ };
1452
+ export type ProductUncheckedCreateWithoutTranslationsInput = {
1453
+ id?: string;
1454
+ content?: string | null;
1455
+ slug?: string | null;
1456
+ sku?: string | null;
1457
+ basePrice: number;
1458
+ discountedBasePrice?: number | null;
1459
+ currency: string;
1460
+ organizationId: string;
1461
+ manufacturerId?: string | null;
1462
+ tags?: Prisma.ProductCreatetagsInput | string[];
1463
+ publishedAt?: Date | string | null;
1464
+ publishedBy?: string | null;
1465
+ deletedAt?: Date | string | null;
1466
+ deletedBy?: string | null;
1467
+ createdAt?: Date | string;
1468
+ createdBy?: string | null;
1469
+ updatedAt?: Date | string;
1470
+ updatedBy?: string | null;
1471
+ latestSnapshotId?: string | null;
1472
+ images?: Prisma.FileUncheckedCreateNestedManyWithoutProductImagesInput;
1473
+ categories?: Prisma.ProductCategoryUncheckedCreateNestedManyWithoutProductsInput;
1474
+ modifierGroups?: Prisma.ModifierGroupUncheckedCreateNestedManyWithoutProductsInput;
1475
+ snapshots?: Prisma.ProductSnapshotUncheckedCreateNestedManyWithoutProductInput;
1476
+ };
1477
+ export type ProductCreateOrConnectWithoutTranslationsInput = {
1478
+ where: Prisma.ProductWhereUniqueInput;
1479
+ create: Prisma.XOR<Prisma.ProductCreateWithoutTranslationsInput, Prisma.ProductUncheckedCreateWithoutTranslationsInput>;
1480
+ };
1481
+ export type ProductUpsertWithoutTranslationsInput = {
1482
+ update: Prisma.XOR<Prisma.ProductUpdateWithoutTranslationsInput, Prisma.ProductUncheckedUpdateWithoutTranslationsInput>;
1483
+ create: Prisma.XOR<Prisma.ProductCreateWithoutTranslationsInput, Prisma.ProductUncheckedCreateWithoutTranslationsInput>;
1484
+ where?: Prisma.ProductWhereInput;
1485
+ };
1486
+ export type ProductUpdateToOneWithWhereWithoutTranslationsInput = {
1487
+ where?: Prisma.ProductWhereInput;
1488
+ data: Prisma.XOR<Prisma.ProductUpdateWithoutTranslationsInput, Prisma.ProductUncheckedUpdateWithoutTranslationsInput>;
1489
+ };
1490
+ export type ProductUpdateWithoutTranslationsInput = {
1491
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1492
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1493
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1494
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1495
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1496
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1497
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1498
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1499
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1500
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1501
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1502
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1503
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1504
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1505
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1506
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1507
+ images?: Prisma.FileUpdateManyWithoutProductImagesNestedInput;
1508
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutProductsNestedInput;
1509
+ manufacturer?: Prisma.ManufacturerUpdateOneWithoutProductsNestedInput;
1510
+ categories?: Prisma.ProductCategoryUpdateManyWithoutProductsNestedInput;
1511
+ modifierGroups?: Prisma.ModifierGroupUpdateManyWithoutProductsNestedInput;
1512
+ snapshots?: Prisma.ProductSnapshotUpdateManyWithoutProductNestedInput;
1513
+ latestSnapshot?: Prisma.ProductSnapshotUpdateOneWithoutLatestForProductNestedInput;
1514
+ };
1515
+ export type ProductUncheckedUpdateWithoutTranslationsInput = {
1516
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1517
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1518
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1519
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1520
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1521
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1522
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1523
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1524
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1525
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1526
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1527
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1528
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1529
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1530
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1531
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1532
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1533
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1534
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1535
+ images?: Prisma.FileUncheckedUpdateManyWithoutProductImagesNestedInput;
1536
+ categories?: Prisma.ProductCategoryUncheckedUpdateManyWithoutProductsNestedInput;
1537
+ modifierGroups?: Prisma.ModifierGroupUncheckedUpdateManyWithoutProductsNestedInput;
1538
+ snapshots?: Prisma.ProductSnapshotUncheckedUpdateManyWithoutProductNestedInput;
1539
+ };
1540
+ export type ProductCreateWithoutModifierGroupsInput = {
1541
+ id?: string;
1542
+ content?: string | null;
1543
+ slug?: string | null;
1544
+ sku?: string | null;
1545
+ basePrice: number;
1546
+ discountedBasePrice?: number | null;
1547
+ currency: string;
1548
+ tags?: Prisma.ProductCreatetagsInput | string[];
1549
+ publishedAt?: Date | string | null;
1550
+ publishedBy?: string | null;
1551
+ deletedAt?: Date | string | null;
1552
+ deletedBy?: string | null;
1553
+ createdAt?: Date | string;
1554
+ createdBy?: string | null;
1555
+ updatedAt?: Date | string;
1556
+ updatedBy?: string | null;
1557
+ images?: Prisma.FileCreateNestedManyWithoutProductImagesInput;
1558
+ organization: Prisma.OrganizationCreateNestedOneWithoutProductsInput;
1559
+ manufacturer?: Prisma.ManufacturerCreateNestedOneWithoutProductsInput;
1560
+ categories?: Prisma.ProductCategoryCreateNestedManyWithoutProductsInput;
1561
+ translations?: Prisma.ProductTranslationCreateNestedManyWithoutProductInput;
1562
+ snapshots?: Prisma.ProductSnapshotCreateNestedManyWithoutProductInput;
1563
+ latestSnapshot?: Prisma.ProductSnapshotCreateNestedOneWithoutLatestForProductInput;
1564
+ };
1565
+ export type ProductUncheckedCreateWithoutModifierGroupsInput = {
1566
+ id?: string;
1567
+ content?: string | null;
1568
+ slug?: string | null;
1569
+ sku?: string | null;
1570
+ basePrice: number;
1571
+ discountedBasePrice?: number | null;
1572
+ currency: string;
1573
+ organizationId: string;
1574
+ manufacturerId?: string | null;
1575
+ tags?: Prisma.ProductCreatetagsInput | string[];
1576
+ publishedAt?: Date | string | null;
1577
+ publishedBy?: string | null;
1578
+ deletedAt?: Date | string | null;
1579
+ deletedBy?: string | null;
1580
+ createdAt?: Date | string;
1581
+ createdBy?: string | null;
1582
+ updatedAt?: Date | string;
1583
+ updatedBy?: string | null;
1584
+ latestSnapshotId?: string | null;
1585
+ images?: Prisma.FileUncheckedCreateNestedManyWithoutProductImagesInput;
1586
+ categories?: Prisma.ProductCategoryUncheckedCreateNestedManyWithoutProductsInput;
1587
+ translations?: Prisma.ProductTranslationUncheckedCreateNestedManyWithoutProductInput;
1588
+ snapshots?: Prisma.ProductSnapshotUncheckedCreateNestedManyWithoutProductInput;
1589
+ };
1590
+ export type ProductCreateOrConnectWithoutModifierGroupsInput = {
1591
+ where: Prisma.ProductWhereUniqueInput;
1592
+ create: Prisma.XOR<Prisma.ProductCreateWithoutModifierGroupsInput, Prisma.ProductUncheckedCreateWithoutModifierGroupsInput>;
1593
+ };
1594
+ export type ProductUpsertWithWhereUniqueWithoutModifierGroupsInput = {
1595
+ where: Prisma.ProductWhereUniqueInput;
1596
+ update: Prisma.XOR<Prisma.ProductUpdateWithoutModifierGroupsInput, Prisma.ProductUncheckedUpdateWithoutModifierGroupsInput>;
1597
+ create: Prisma.XOR<Prisma.ProductCreateWithoutModifierGroupsInput, Prisma.ProductUncheckedCreateWithoutModifierGroupsInput>;
1598
+ };
1599
+ export type ProductUpdateWithWhereUniqueWithoutModifierGroupsInput = {
1600
+ where: Prisma.ProductWhereUniqueInput;
1601
+ data: Prisma.XOR<Prisma.ProductUpdateWithoutModifierGroupsInput, Prisma.ProductUncheckedUpdateWithoutModifierGroupsInput>;
1602
+ };
1603
+ export type ProductUpdateManyWithWhereWithoutModifierGroupsInput = {
1604
+ where: Prisma.ProductScalarWhereInput;
1605
+ data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyWithoutModifierGroupsInput>;
1606
+ };
1607
+ export type ProductCreateManyOrganizationInput = {
1608
+ id?: string;
1609
+ content?: string | null;
1610
+ slug?: string | null;
1611
+ sku?: string | null;
1612
+ basePrice: number;
1613
+ discountedBasePrice?: number | null;
1614
+ currency: string;
1615
+ manufacturerId?: string | null;
1616
+ tags?: Prisma.ProductCreatetagsInput | string[];
1617
+ publishedAt?: Date | string | null;
1618
+ publishedBy?: string | null;
1619
+ deletedAt?: Date | string | null;
1620
+ deletedBy?: string | null;
1621
+ createdAt?: Date | string;
1622
+ createdBy?: string | null;
1623
+ updatedAt?: Date | string;
1624
+ updatedBy?: string | null;
1625
+ latestSnapshotId?: string | null;
1626
+ };
1627
+ export type ProductUpdateWithoutOrganizationInput = {
1628
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1629
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1630
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1631
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1632
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1633
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1634
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1635
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1636
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1637
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1638
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1639
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1640
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1641
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1642
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1643
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1644
+ images?: Prisma.FileUpdateManyWithoutProductImagesNestedInput;
1645
+ manufacturer?: Prisma.ManufacturerUpdateOneWithoutProductsNestedInput;
1646
+ categories?: Prisma.ProductCategoryUpdateManyWithoutProductsNestedInput;
1647
+ modifierGroups?: Prisma.ModifierGroupUpdateManyWithoutProductsNestedInput;
1648
+ translations?: Prisma.ProductTranslationUpdateManyWithoutProductNestedInput;
1649
+ snapshots?: Prisma.ProductSnapshotUpdateManyWithoutProductNestedInput;
1650
+ latestSnapshot?: Prisma.ProductSnapshotUpdateOneWithoutLatestForProductNestedInput;
1651
+ };
1652
+ export type ProductUncheckedUpdateWithoutOrganizationInput = {
1653
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1654
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1655
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1656
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1657
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1658
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1659
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1660
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1661
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1662
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1663
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1664
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1665
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1666
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1667
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1668
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1669
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1670
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1671
+ images?: Prisma.FileUncheckedUpdateManyWithoutProductImagesNestedInput;
1672
+ categories?: Prisma.ProductCategoryUncheckedUpdateManyWithoutProductsNestedInput;
1673
+ modifierGroups?: Prisma.ModifierGroupUncheckedUpdateManyWithoutProductsNestedInput;
1674
+ translations?: Prisma.ProductTranslationUncheckedUpdateManyWithoutProductNestedInput;
1675
+ snapshots?: Prisma.ProductSnapshotUncheckedUpdateManyWithoutProductNestedInput;
1676
+ };
1677
+ export type ProductUncheckedUpdateManyWithoutOrganizationInput = {
1678
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1679
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1680
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1681
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1682
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1683
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1684
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1685
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1686
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1687
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1688
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1689
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1690
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1691
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1692
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1693
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1694
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1695
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1696
+ };
1697
+ export type ProductUpdateWithoutImagesInput = {
1698
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1699
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1700
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1701
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1702
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1703
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1704
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1705
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1706
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1707
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1708
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1709
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1710
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1711
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1712
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1713
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1714
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutProductsNestedInput;
1715
+ manufacturer?: Prisma.ManufacturerUpdateOneWithoutProductsNestedInput;
1716
+ categories?: Prisma.ProductCategoryUpdateManyWithoutProductsNestedInput;
1717
+ modifierGroups?: Prisma.ModifierGroupUpdateManyWithoutProductsNestedInput;
1718
+ translations?: Prisma.ProductTranslationUpdateManyWithoutProductNestedInput;
1719
+ snapshots?: Prisma.ProductSnapshotUpdateManyWithoutProductNestedInput;
1720
+ latestSnapshot?: Prisma.ProductSnapshotUpdateOneWithoutLatestForProductNestedInput;
1721
+ };
1722
+ export type ProductUncheckedUpdateWithoutImagesInput = {
1723
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1724
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1725
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1726
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1727
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1728
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1729
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1730
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1731
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1732
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1733
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1734
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1735
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1736
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1737
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1738
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1739
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1740
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1741
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1742
+ categories?: Prisma.ProductCategoryUncheckedUpdateManyWithoutProductsNestedInput;
1743
+ modifierGroups?: Prisma.ModifierGroupUncheckedUpdateManyWithoutProductsNestedInput;
1744
+ translations?: Prisma.ProductTranslationUncheckedUpdateManyWithoutProductNestedInput;
1745
+ snapshots?: Prisma.ProductSnapshotUncheckedUpdateManyWithoutProductNestedInput;
1746
+ };
1747
+ export type ProductUncheckedUpdateManyWithoutImagesInput = {
1748
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1749
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1750
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1751
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1752
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1753
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1754
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1755
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1756
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1757
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1758
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1759
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1760
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1761
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1762
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1763
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1764
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1765
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1766
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1767
+ };
1768
+ export type ProductCreateManyManufacturerInput = {
1769
+ id?: string;
1770
+ content?: string | null;
1771
+ slug?: string | null;
1772
+ sku?: string | null;
1773
+ basePrice: number;
1774
+ discountedBasePrice?: number | null;
1775
+ currency: string;
1776
+ organizationId: string;
1777
+ tags?: Prisma.ProductCreatetagsInput | string[];
1778
+ publishedAt?: Date | string | null;
1779
+ publishedBy?: string | null;
1780
+ deletedAt?: Date | string | null;
1781
+ deletedBy?: string | null;
1782
+ createdAt?: Date | string;
1783
+ createdBy?: string | null;
1784
+ updatedAt?: Date | string;
1785
+ updatedBy?: string | null;
1786
+ latestSnapshotId?: string | null;
1787
+ };
1788
+ export type ProductUpdateWithoutManufacturerInput = {
1789
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1790
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1791
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1792
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1793
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1794
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1795
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1796
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1797
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1798
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1799
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1800
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1801
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1802
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1803
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1804
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1805
+ images?: Prisma.FileUpdateManyWithoutProductImagesNestedInput;
1806
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutProductsNestedInput;
1807
+ categories?: Prisma.ProductCategoryUpdateManyWithoutProductsNestedInput;
1808
+ modifierGroups?: Prisma.ModifierGroupUpdateManyWithoutProductsNestedInput;
1809
+ translations?: Prisma.ProductTranslationUpdateManyWithoutProductNestedInput;
1810
+ snapshots?: Prisma.ProductSnapshotUpdateManyWithoutProductNestedInput;
1811
+ latestSnapshot?: Prisma.ProductSnapshotUpdateOneWithoutLatestForProductNestedInput;
1812
+ };
1813
+ export type ProductUncheckedUpdateWithoutManufacturerInput = {
1814
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1815
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1816
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1817
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1818
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1819
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1820
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1821
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1822
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1823
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1824
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1825
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1826
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1827
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1828
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1829
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1830
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1831
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1832
+ images?: Prisma.FileUncheckedUpdateManyWithoutProductImagesNestedInput;
1833
+ categories?: Prisma.ProductCategoryUncheckedUpdateManyWithoutProductsNestedInput;
1834
+ modifierGroups?: Prisma.ModifierGroupUncheckedUpdateManyWithoutProductsNestedInput;
1835
+ translations?: Prisma.ProductTranslationUncheckedUpdateManyWithoutProductNestedInput;
1836
+ snapshots?: Prisma.ProductSnapshotUncheckedUpdateManyWithoutProductNestedInput;
1837
+ };
1838
+ export type ProductUncheckedUpdateManyWithoutManufacturerInput = {
1839
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1840
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1841
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1842
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1843
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1844
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1845
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1846
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1847
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1848
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1849
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1850
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1851
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1852
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1853
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1854
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1855
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1856
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1857
+ };
1858
+ export type ProductUpdateWithoutCategoriesInput = {
1859
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1860
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1861
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1862
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1863
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1864
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1865
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1866
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1867
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1868
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1869
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1870
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1871
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1872
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1873
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1874
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1875
+ images?: Prisma.FileUpdateManyWithoutProductImagesNestedInput;
1876
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutProductsNestedInput;
1877
+ manufacturer?: Prisma.ManufacturerUpdateOneWithoutProductsNestedInput;
1878
+ modifierGroups?: Prisma.ModifierGroupUpdateManyWithoutProductsNestedInput;
1879
+ translations?: Prisma.ProductTranslationUpdateManyWithoutProductNestedInput;
1880
+ snapshots?: Prisma.ProductSnapshotUpdateManyWithoutProductNestedInput;
1881
+ latestSnapshot?: Prisma.ProductSnapshotUpdateOneWithoutLatestForProductNestedInput;
1882
+ };
1883
+ export type ProductUncheckedUpdateWithoutCategoriesInput = {
1884
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1885
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1886
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1887
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1888
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1889
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1890
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1891
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1892
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1893
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1894
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1895
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1896
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1897
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1898
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1899
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1900
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1901
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1902
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1903
+ images?: Prisma.FileUncheckedUpdateManyWithoutProductImagesNestedInput;
1904
+ modifierGroups?: Prisma.ModifierGroupUncheckedUpdateManyWithoutProductsNestedInput;
1905
+ translations?: Prisma.ProductTranslationUncheckedUpdateManyWithoutProductNestedInput;
1906
+ snapshots?: Prisma.ProductSnapshotUncheckedUpdateManyWithoutProductNestedInput;
1907
+ };
1908
+ export type ProductUncheckedUpdateManyWithoutCategoriesInput = {
1909
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1910
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1911
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1912
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1913
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1914
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1915
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1916
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1917
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1918
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1919
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1920
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1921
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1922
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1923
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1924
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1925
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1926
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1927
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1928
+ };
1929
+ export type ProductUpdateWithoutModifierGroupsInput = {
1930
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1931
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1932
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1933
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1934
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1935
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1936
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1937
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1938
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1939
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1940
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1941
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1942
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1943
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1944
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1945
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1946
+ images?: Prisma.FileUpdateManyWithoutProductImagesNestedInput;
1947
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutProductsNestedInput;
1948
+ manufacturer?: Prisma.ManufacturerUpdateOneWithoutProductsNestedInput;
1949
+ categories?: Prisma.ProductCategoryUpdateManyWithoutProductsNestedInput;
1950
+ translations?: Prisma.ProductTranslationUpdateManyWithoutProductNestedInput;
1951
+ snapshots?: Prisma.ProductSnapshotUpdateManyWithoutProductNestedInput;
1952
+ latestSnapshot?: Prisma.ProductSnapshotUpdateOneWithoutLatestForProductNestedInput;
1953
+ };
1954
+ export type ProductUncheckedUpdateWithoutModifierGroupsInput = {
1955
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1956
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1957
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1958
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1959
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1960
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1961
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1962
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1963
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1964
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1965
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1966
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1967
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1968
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1969
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1970
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1971
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1972
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1973
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1974
+ images?: Prisma.FileUncheckedUpdateManyWithoutProductImagesNestedInput;
1975
+ categories?: Prisma.ProductCategoryUncheckedUpdateManyWithoutProductsNestedInput;
1976
+ translations?: Prisma.ProductTranslationUncheckedUpdateManyWithoutProductNestedInput;
1977
+ snapshots?: Prisma.ProductSnapshotUncheckedUpdateManyWithoutProductNestedInput;
1978
+ };
1979
+ export type ProductUncheckedUpdateManyWithoutModifierGroupsInput = {
1980
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1981
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1982
+ slug?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1983
+ sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1984
+ basePrice?: Prisma.FloatFieldUpdateOperationsInput | number;
1985
+ discountedBasePrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1986
+ currency?: Prisma.StringFieldUpdateOperationsInput | string;
1987
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1988
+ manufacturerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1989
+ tags?: Prisma.ProductUpdatetagsInput | string[];
1990
+ publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1991
+ publishedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1992
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1993
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1994
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1995
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1996
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1997
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1998
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1999
+ };
2000
+ /**
2001
+ * Count Type ProductCountOutputType
2002
+ */
2003
+ export type ProductCountOutputType = {
2004
+ images: number;
2005
+ categories: number;
2006
+ modifierGroups: number;
2007
+ translations: number;
2008
+ snapshots: number;
2009
+ };
2010
+ export type ProductCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2011
+ images?: boolean | ProductCountOutputTypeCountImagesArgs;
2012
+ categories?: boolean | ProductCountOutputTypeCountCategoriesArgs;
2013
+ modifierGroups?: boolean | ProductCountOutputTypeCountModifierGroupsArgs;
2014
+ translations?: boolean | ProductCountOutputTypeCountTranslationsArgs;
2015
+ snapshots?: boolean | ProductCountOutputTypeCountSnapshotsArgs;
2016
+ };
2017
+ /**
2018
+ * ProductCountOutputType without action
2019
+ */
2020
+ export type ProductCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2021
+ /**
2022
+ * Select specific fields to fetch from the ProductCountOutputType
2023
+ */
2024
+ select?: Prisma.ProductCountOutputTypeSelect<ExtArgs> | null;
2025
+ };
2026
+ /**
2027
+ * ProductCountOutputType without action
2028
+ */
2029
+ export type ProductCountOutputTypeCountImagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2030
+ where?: Prisma.FileWhereInput;
2031
+ };
2032
+ /**
2033
+ * ProductCountOutputType without action
2034
+ */
2035
+ export type ProductCountOutputTypeCountCategoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2036
+ where?: Prisma.ProductCategoryWhereInput;
2037
+ };
2038
+ /**
2039
+ * ProductCountOutputType without action
2040
+ */
2041
+ export type ProductCountOutputTypeCountModifierGroupsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2042
+ where?: Prisma.ModifierGroupWhereInput;
2043
+ };
2044
+ /**
2045
+ * ProductCountOutputType without action
2046
+ */
2047
+ export type ProductCountOutputTypeCountTranslationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2048
+ where?: Prisma.ProductTranslationWhereInput;
2049
+ };
2050
+ /**
2051
+ * ProductCountOutputType without action
2052
+ */
2053
+ export type ProductCountOutputTypeCountSnapshotsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2054
+ where?: Prisma.ProductSnapshotWhereInput;
2055
+ };
2056
+ export type ProductSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2057
+ id?: boolean;
2058
+ content?: boolean;
2059
+ slug?: boolean;
2060
+ sku?: boolean;
2061
+ basePrice?: boolean;
2062
+ discountedBasePrice?: boolean;
2063
+ currency?: boolean;
2064
+ organizationId?: boolean;
2065
+ manufacturerId?: boolean;
2066
+ tags?: boolean;
2067
+ publishedAt?: boolean;
2068
+ publishedBy?: boolean;
2069
+ deletedAt?: boolean;
2070
+ deletedBy?: boolean;
2071
+ createdAt?: boolean;
2072
+ createdBy?: boolean;
2073
+ updatedAt?: boolean;
2074
+ updatedBy?: boolean;
2075
+ latestSnapshotId?: boolean;
2076
+ images?: boolean | Prisma.Product$imagesArgs<ExtArgs>;
2077
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
2078
+ manufacturer?: boolean | Prisma.Product$manufacturerArgs<ExtArgs>;
2079
+ categories?: boolean | Prisma.Product$categoriesArgs<ExtArgs>;
2080
+ modifierGroups?: boolean | Prisma.Product$modifierGroupsArgs<ExtArgs>;
2081
+ translations?: boolean | Prisma.Product$translationsArgs<ExtArgs>;
2082
+ snapshots?: boolean | Prisma.Product$snapshotsArgs<ExtArgs>;
2083
+ latestSnapshot?: boolean | Prisma.Product$latestSnapshotArgs<ExtArgs>;
2084
+ _count?: boolean | Prisma.ProductCountOutputTypeDefaultArgs<ExtArgs>;
2085
+ }, ExtArgs["result"]["product"]>;
2086
+ export type ProductSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2087
+ id?: boolean;
2088
+ content?: boolean;
2089
+ slug?: boolean;
2090
+ sku?: boolean;
2091
+ basePrice?: boolean;
2092
+ discountedBasePrice?: boolean;
2093
+ currency?: boolean;
2094
+ organizationId?: boolean;
2095
+ manufacturerId?: boolean;
2096
+ tags?: boolean;
2097
+ publishedAt?: boolean;
2098
+ publishedBy?: boolean;
2099
+ deletedAt?: boolean;
2100
+ deletedBy?: boolean;
2101
+ createdAt?: boolean;
2102
+ createdBy?: boolean;
2103
+ updatedAt?: boolean;
2104
+ updatedBy?: boolean;
2105
+ latestSnapshotId?: boolean;
2106
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
2107
+ manufacturer?: boolean | Prisma.Product$manufacturerArgs<ExtArgs>;
2108
+ latestSnapshot?: boolean | Prisma.Product$latestSnapshotArgs<ExtArgs>;
2109
+ }, ExtArgs["result"]["product"]>;
2110
+ export type ProductSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2111
+ id?: boolean;
2112
+ content?: boolean;
2113
+ slug?: boolean;
2114
+ sku?: boolean;
2115
+ basePrice?: boolean;
2116
+ discountedBasePrice?: boolean;
2117
+ currency?: boolean;
2118
+ organizationId?: boolean;
2119
+ manufacturerId?: boolean;
2120
+ tags?: boolean;
2121
+ publishedAt?: boolean;
2122
+ publishedBy?: boolean;
2123
+ deletedAt?: boolean;
2124
+ deletedBy?: boolean;
2125
+ createdAt?: boolean;
2126
+ createdBy?: boolean;
2127
+ updatedAt?: boolean;
2128
+ updatedBy?: boolean;
2129
+ latestSnapshotId?: boolean;
2130
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
2131
+ manufacturer?: boolean | Prisma.Product$manufacturerArgs<ExtArgs>;
2132
+ latestSnapshot?: boolean | Prisma.Product$latestSnapshotArgs<ExtArgs>;
2133
+ }, ExtArgs["result"]["product"]>;
2134
+ export type ProductSelectScalar = {
2135
+ id?: boolean;
2136
+ content?: boolean;
2137
+ slug?: boolean;
2138
+ sku?: boolean;
2139
+ basePrice?: boolean;
2140
+ discountedBasePrice?: boolean;
2141
+ currency?: boolean;
2142
+ organizationId?: boolean;
2143
+ manufacturerId?: boolean;
2144
+ tags?: boolean;
2145
+ publishedAt?: boolean;
2146
+ publishedBy?: boolean;
2147
+ deletedAt?: boolean;
2148
+ deletedBy?: boolean;
2149
+ createdAt?: boolean;
2150
+ createdBy?: boolean;
2151
+ updatedAt?: boolean;
2152
+ updatedBy?: boolean;
2153
+ latestSnapshotId?: boolean;
2154
+ };
2155
+ export type ProductOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "content" | "slug" | "sku" | "basePrice" | "discountedBasePrice" | "currency" | "organizationId" | "manufacturerId" | "tags" | "publishedAt" | "publishedBy" | "deletedAt" | "deletedBy" | "createdAt" | "createdBy" | "updatedAt" | "updatedBy" | "latestSnapshotId", ExtArgs["result"]["product"]>;
2156
+ export type ProductInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2157
+ images?: boolean | Prisma.Product$imagesArgs<ExtArgs>;
2158
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
2159
+ manufacturer?: boolean | Prisma.Product$manufacturerArgs<ExtArgs>;
2160
+ categories?: boolean | Prisma.Product$categoriesArgs<ExtArgs>;
2161
+ modifierGroups?: boolean | Prisma.Product$modifierGroupsArgs<ExtArgs>;
2162
+ translations?: boolean | Prisma.Product$translationsArgs<ExtArgs>;
2163
+ snapshots?: boolean | Prisma.Product$snapshotsArgs<ExtArgs>;
2164
+ latestSnapshot?: boolean | Prisma.Product$latestSnapshotArgs<ExtArgs>;
2165
+ _count?: boolean | Prisma.ProductCountOutputTypeDefaultArgs<ExtArgs>;
2166
+ };
2167
+ export type ProductIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2168
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
2169
+ manufacturer?: boolean | Prisma.Product$manufacturerArgs<ExtArgs>;
2170
+ latestSnapshot?: boolean | Prisma.Product$latestSnapshotArgs<ExtArgs>;
2171
+ };
2172
+ export type ProductIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2173
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
2174
+ manufacturer?: boolean | Prisma.Product$manufacturerArgs<ExtArgs>;
2175
+ latestSnapshot?: boolean | Prisma.Product$latestSnapshotArgs<ExtArgs>;
2176
+ };
2177
+ export type $ProductPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2178
+ name: "Product";
2179
+ objects: {
2180
+ images: Prisma.$FilePayload<ExtArgs>[];
2181
+ organization: Prisma.$OrganizationPayload<ExtArgs>;
2182
+ manufacturer: Prisma.$ManufacturerPayload<ExtArgs> | null;
2183
+ categories: Prisma.$ProductCategoryPayload<ExtArgs>[];
2184
+ modifierGroups: Prisma.$ModifierGroupPayload<ExtArgs>[];
2185
+ translations: Prisma.$ProductTranslationPayload<ExtArgs>[];
2186
+ snapshots: Prisma.$ProductSnapshotPayload<ExtArgs>[];
2187
+ latestSnapshot: Prisma.$ProductSnapshotPayload<ExtArgs> | null;
2188
+ };
2189
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
2190
+ id: string;
2191
+ content: string | null;
2192
+ slug: string | null;
2193
+ sku: string | null;
2194
+ basePrice: number;
2195
+ discountedBasePrice: number | null;
2196
+ currency: string;
2197
+ organizationId: string;
2198
+ manufacturerId: string | null;
2199
+ tags: string[];
2200
+ publishedAt: Date | null;
2201
+ publishedBy: string | null;
2202
+ deletedAt: Date | null;
2203
+ deletedBy: string | null;
2204
+ createdAt: Date;
2205
+ createdBy: string | null;
2206
+ updatedAt: Date;
2207
+ updatedBy: string | null;
2208
+ latestSnapshotId: string | null;
2209
+ }, ExtArgs["result"]["product"]>;
2210
+ composites: {};
2211
+ };
2212
+ export type ProductGetPayload<S extends boolean | null | undefined | ProductDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProductPayload, S>;
2213
+ export type ProductCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ProductFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
2214
+ select?: ProductCountAggregateInputType | true;
2215
+ };
2216
+ export interface ProductDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
2217
+ [K: symbol]: {
2218
+ types: Prisma.TypeMap<ExtArgs>['model']['Product'];
2219
+ meta: {
2220
+ name: 'Product';
2221
+ };
2222
+ };
2223
+ /**
2224
+ * Find zero or one Product that matches the filter.
2225
+ * @param {ProductFindUniqueArgs} args - Arguments to find a Product
2226
+ * @example
2227
+ * // Get one Product
2228
+ * const product = await prisma.product.findUnique({
2229
+ * where: {
2230
+ * // ... provide filter here
2231
+ * }
2232
+ * })
2233
+ */
2234
+ findUnique<T extends ProductFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2235
+ /**
2236
+ * Find one Product that matches the filter or throw an error with `error.code='P2025'`
2237
+ * if no matches were found.
2238
+ * @param {ProductFindUniqueOrThrowArgs} args - Arguments to find a Product
2239
+ * @example
2240
+ * // Get one Product
2241
+ * const product = await prisma.product.findUniqueOrThrow({
2242
+ * where: {
2243
+ * // ... provide filter here
2244
+ * }
2245
+ * })
2246
+ */
2247
+ findUniqueOrThrow<T extends ProductFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2248
+ /**
2249
+ * Find the first Product that matches the filter.
2250
+ * Note, that providing `undefined` is treated as the value not being there.
2251
+ * Read more here: https://pris.ly/d/null-undefined
2252
+ * @param {ProductFindFirstArgs} args - Arguments to find a Product
2253
+ * @example
2254
+ * // Get one Product
2255
+ * const product = await prisma.product.findFirst({
2256
+ * where: {
2257
+ * // ... provide filter here
2258
+ * }
2259
+ * })
2260
+ */
2261
+ findFirst<T extends ProductFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2262
+ /**
2263
+ * Find the first Product that matches the filter or
2264
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
2265
+ * Note, that providing `undefined` is treated as the value not being there.
2266
+ * Read more here: https://pris.ly/d/null-undefined
2267
+ * @param {ProductFindFirstOrThrowArgs} args - Arguments to find a Product
2268
+ * @example
2269
+ * // Get one Product
2270
+ * const product = await prisma.product.findFirstOrThrow({
2271
+ * where: {
2272
+ * // ... provide filter here
2273
+ * }
2274
+ * })
2275
+ */
2276
+ findFirstOrThrow<T extends ProductFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2277
+ /**
2278
+ * Find zero or more Products that matches the filter.
2279
+ * Note, that providing `undefined` is treated as the value not being there.
2280
+ * Read more here: https://pris.ly/d/null-undefined
2281
+ * @param {ProductFindManyArgs} args - Arguments to filter and select certain fields only.
2282
+ * @example
2283
+ * // Get all Products
2284
+ * const products = await prisma.product.findMany()
2285
+ *
2286
+ * // Get first 10 Products
2287
+ * const products = await prisma.product.findMany({ take: 10 })
2288
+ *
2289
+ * // Only select the `id`
2290
+ * const productWithIdOnly = await prisma.product.findMany({ select: { id: true } })
2291
+ *
2292
+ */
2293
+ findMany<T extends ProductFindManyArgs>(args?: Prisma.SelectSubset<T, ProductFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
2294
+ /**
2295
+ * Create a Product.
2296
+ * @param {ProductCreateArgs} args - Arguments to create a Product.
2297
+ * @example
2298
+ * // Create one Product
2299
+ * const Product = await prisma.product.create({
2300
+ * data: {
2301
+ * // ... data to create a Product
2302
+ * }
2303
+ * })
2304
+ *
2305
+ */
2306
+ create<T extends ProductCreateArgs>(args: Prisma.SelectSubset<T, ProductCreateArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2307
+ /**
2308
+ * Create many Products.
2309
+ * @param {ProductCreateManyArgs} args - Arguments to create many Products.
2310
+ * @example
2311
+ * // Create many Products
2312
+ * const product = await prisma.product.createMany({
2313
+ * data: [
2314
+ * // ... provide data here
2315
+ * ]
2316
+ * })
2317
+ *
2318
+ */
2319
+ createMany<T extends ProductCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2320
+ /**
2321
+ * Create many Products and returns the data saved in the database.
2322
+ * @param {ProductCreateManyAndReturnArgs} args - Arguments to create many Products.
2323
+ * @example
2324
+ * // Create many Products
2325
+ * const product = await prisma.product.createManyAndReturn({
2326
+ * data: [
2327
+ * // ... provide data here
2328
+ * ]
2329
+ * })
2330
+ *
2331
+ * // Create many Products and only return the `id`
2332
+ * const productWithIdOnly = await prisma.product.createManyAndReturn({
2333
+ * select: { id: true },
2334
+ * data: [
2335
+ * // ... provide data here
2336
+ * ]
2337
+ * })
2338
+ * Note, that providing `undefined` is treated as the value not being there.
2339
+ * Read more here: https://pris.ly/d/null-undefined
2340
+ *
2341
+ */
2342
+ createManyAndReturn<T extends ProductCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProductCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
2343
+ /**
2344
+ * Delete a Product.
2345
+ * @param {ProductDeleteArgs} args - Arguments to delete one Product.
2346
+ * @example
2347
+ * // Delete one Product
2348
+ * const Product = await prisma.product.delete({
2349
+ * where: {
2350
+ * // ... filter to delete one Product
2351
+ * }
2352
+ * })
2353
+ *
2354
+ */
2355
+ delete<T extends ProductDeleteArgs>(args: Prisma.SelectSubset<T, ProductDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2356
+ /**
2357
+ * Update one Product.
2358
+ * @param {ProductUpdateArgs} args - Arguments to update one Product.
2359
+ * @example
2360
+ * // Update one Product
2361
+ * const product = await prisma.product.update({
2362
+ * where: {
2363
+ * // ... provide filter here
2364
+ * },
2365
+ * data: {
2366
+ * // ... provide data here
2367
+ * }
2368
+ * })
2369
+ *
2370
+ */
2371
+ update<T extends ProductUpdateArgs>(args: Prisma.SelectSubset<T, ProductUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2372
+ /**
2373
+ * Delete zero or more Products.
2374
+ * @param {ProductDeleteManyArgs} args - Arguments to filter Products to delete.
2375
+ * @example
2376
+ * // Delete a few Products
2377
+ * const { count } = await prisma.product.deleteMany({
2378
+ * where: {
2379
+ * // ... provide filter here
2380
+ * }
2381
+ * })
2382
+ *
2383
+ */
2384
+ deleteMany<T extends ProductDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2385
+ /**
2386
+ * Update zero or more Products.
2387
+ * Note, that providing `undefined` is treated as the value not being there.
2388
+ * Read more here: https://pris.ly/d/null-undefined
2389
+ * @param {ProductUpdateManyArgs} args - Arguments to update one or more rows.
2390
+ * @example
2391
+ * // Update many Products
2392
+ * const product = await prisma.product.updateMany({
2393
+ * where: {
2394
+ * // ... provide filter here
2395
+ * },
2396
+ * data: {
2397
+ * // ... provide data here
2398
+ * }
2399
+ * })
2400
+ *
2401
+ */
2402
+ updateMany<T extends ProductUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2403
+ /**
2404
+ * Update zero or more Products and returns the data updated in the database.
2405
+ * @param {ProductUpdateManyAndReturnArgs} args - Arguments to update many Products.
2406
+ * @example
2407
+ * // Update many Products
2408
+ * const product = await prisma.product.updateManyAndReturn({
2409
+ * where: {
2410
+ * // ... provide filter here
2411
+ * },
2412
+ * data: [
2413
+ * // ... provide data here
2414
+ * ]
2415
+ * })
2416
+ *
2417
+ * // Update zero or more Products and only return the `id`
2418
+ * const productWithIdOnly = await prisma.product.updateManyAndReturn({
2419
+ * select: { id: true },
2420
+ * where: {
2421
+ * // ... provide filter here
2422
+ * },
2423
+ * data: [
2424
+ * // ... provide data here
2425
+ * ]
2426
+ * })
2427
+ * Note, that providing `undefined` is treated as the value not being there.
2428
+ * Read more here: https://pris.ly/d/null-undefined
2429
+ *
2430
+ */
2431
+ updateManyAndReturn<T extends ProductUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProductUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
2432
+ /**
2433
+ * Create or update one Product.
2434
+ * @param {ProductUpsertArgs} args - Arguments to update or create a Product.
2435
+ * @example
2436
+ * // Update or create a Product
2437
+ * const product = await prisma.product.upsert({
2438
+ * create: {
2439
+ * // ... data to create a Product
2440
+ * },
2441
+ * update: {
2442
+ * // ... in case it already exists, update
2443
+ * },
2444
+ * where: {
2445
+ * // ... the filter for the Product we want to update
2446
+ * }
2447
+ * })
2448
+ */
2449
+ upsert<T extends ProductUpsertArgs>(args: Prisma.SelectSubset<T, ProductUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2450
+ /**
2451
+ * Count the number of Products.
2452
+ * Note, that providing `undefined` is treated as the value not being there.
2453
+ * Read more here: https://pris.ly/d/null-undefined
2454
+ * @param {ProductCountArgs} args - Arguments to filter Products to count.
2455
+ * @example
2456
+ * // Count the number of Products
2457
+ * const count = await prisma.product.count({
2458
+ * where: {
2459
+ * // ... the filter for the Products we want to count
2460
+ * }
2461
+ * })
2462
+ **/
2463
+ count<T extends ProductCountArgs>(args?: Prisma.Subset<T, ProductCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProductCountAggregateOutputType> : number>;
2464
+ /**
2465
+ * Allows you to perform aggregations operations on a Product.
2466
+ * Note, that providing `undefined` is treated as the value not being there.
2467
+ * Read more here: https://pris.ly/d/null-undefined
2468
+ * @param {ProductAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
2469
+ * @example
2470
+ * // Ordered by age ascending
2471
+ * // Where email contains prisma.io
2472
+ * // Limited to the 10 users
2473
+ * const aggregations = await prisma.user.aggregate({
2474
+ * _avg: {
2475
+ * age: true,
2476
+ * },
2477
+ * where: {
2478
+ * email: {
2479
+ * contains: "prisma.io",
2480
+ * },
2481
+ * },
2482
+ * orderBy: {
2483
+ * age: "asc",
2484
+ * },
2485
+ * take: 10,
2486
+ * })
2487
+ **/
2488
+ aggregate<T extends ProductAggregateArgs>(args: Prisma.Subset<T, ProductAggregateArgs>): Prisma.PrismaPromise<GetProductAggregateType<T>>;
2489
+ /**
2490
+ * Group by Product.
2491
+ * Note, that providing `undefined` is treated as the value not being there.
2492
+ * Read more here: https://pris.ly/d/null-undefined
2493
+ * @param {ProductGroupByArgs} args - Group by arguments.
2494
+ * @example
2495
+ * // Group by city, order by createdAt, get count
2496
+ * const result = await prisma.user.groupBy({
2497
+ * by: ['city', 'createdAt'],
2498
+ * orderBy: {
2499
+ * createdAt: true
2500
+ * },
2501
+ * _count: {
2502
+ * _all: true
2503
+ * },
2504
+ * })
2505
+ *
2506
+ **/
2507
+ groupBy<T extends ProductGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
2508
+ orderBy: ProductGroupByArgs['orderBy'];
2509
+ } : {
2510
+ orderBy?: ProductGroupByArgs['orderBy'];
2511
+ }, 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 ? {
2512
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
2513
+ Error,
2514
+ 'Field ',
2515
+ P,
2516
+ ` in "having" needs to be provided in "by"`
2517
+ ];
2518
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
2519
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2520
+ }[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 ? {} : {
2521
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2522
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
2523
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2524
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ProductGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
2525
+ /**
2526
+ * Fields of the Product model
2527
+ */
2528
+ readonly fields: ProductFieldRefs;
2529
+ }
2530
+ /**
2531
+ * The delegate class that acts as a "Promise-like" for Product.
2532
+ * Why is this prefixed with `Prisma__`?
2533
+ * Because we want to prevent naming conflicts as mentioned in
2534
+ * https://github.com/prisma/prisma-client-js/issues/707
2535
+ */
2536
+ export interface Prisma__ProductClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2537
+ readonly [Symbol.toStringTag]: "PrismaPromise";
2538
+ images<T extends Prisma.Product$imagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$imagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2539
+ 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>;
2540
+ manufacturer<T extends Prisma.Product$manufacturerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$manufacturerArgs<ExtArgs>>): Prisma.Prisma__ManufacturerClient<runtime.Types.Result.GetResult<Prisma.$ManufacturerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2541
+ categories<T extends Prisma.Product$categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2542
+ modifierGroups<T extends Prisma.Product$modifierGroupsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$modifierGroupsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ModifierGroupPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2543
+ translations<T extends Prisma.Product$translationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$translationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductTranslationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2544
+ snapshots<T extends Prisma.Product$snapshotsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$snapshotsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2545
+ latestSnapshot<T extends Prisma.Product$latestSnapshotArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$latestSnapshotArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2546
+ /**
2547
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
2548
+ * @param onfulfilled The callback to execute when the Promise is resolved.
2549
+ * @param onrejected The callback to execute when the Promise is rejected.
2550
+ * @returns A Promise for the completion of which ever callback is executed.
2551
+ */
2552
+ 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>;
2553
+ /**
2554
+ * Attaches a callback for only the rejection of the Promise.
2555
+ * @param onrejected The callback to execute when the Promise is rejected.
2556
+ * @returns A Promise for the completion of the callback.
2557
+ */
2558
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
2559
+ /**
2560
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2561
+ * resolved value cannot be modified from the callback.
2562
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2563
+ * @returns A Promise for the completion of the callback.
2564
+ */
2565
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
2566
+ }
2567
+ /**
2568
+ * Fields of the Product model
2569
+ */
2570
+ export interface ProductFieldRefs {
2571
+ readonly id: Prisma.FieldRef<"Product", 'String'>;
2572
+ readonly content: Prisma.FieldRef<"Product", 'String'>;
2573
+ readonly slug: Prisma.FieldRef<"Product", 'String'>;
2574
+ readonly sku: Prisma.FieldRef<"Product", 'String'>;
2575
+ readonly basePrice: Prisma.FieldRef<"Product", 'Float'>;
2576
+ readonly discountedBasePrice: Prisma.FieldRef<"Product", 'Float'>;
2577
+ readonly currency: Prisma.FieldRef<"Product", 'String'>;
2578
+ readonly organizationId: Prisma.FieldRef<"Product", 'String'>;
2579
+ readonly manufacturerId: Prisma.FieldRef<"Product", 'String'>;
2580
+ readonly tags: Prisma.FieldRef<"Product", 'String[]'>;
2581
+ readonly publishedAt: Prisma.FieldRef<"Product", 'DateTime'>;
2582
+ readonly publishedBy: Prisma.FieldRef<"Product", 'String'>;
2583
+ readonly deletedAt: Prisma.FieldRef<"Product", 'DateTime'>;
2584
+ readonly deletedBy: Prisma.FieldRef<"Product", 'String'>;
2585
+ readonly createdAt: Prisma.FieldRef<"Product", 'DateTime'>;
2586
+ readonly createdBy: Prisma.FieldRef<"Product", 'String'>;
2587
+ readonly updatedAt: Prisma.FieldRef<"Product", 'DateTime'>;
2588
+ readonly updatedBy: Prisma.FieldRef<"Product", 'String'>;
2589
+ readonly latestSnapshotId: Prisma.FieldRef<"Product", 'String'>;
2590
+ }
2591
+ /**
2592
+ * Product findUnique
2593
+ */
2594
+ export type ProductFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2595
+ /**
2596
+ * Select specific fields to fetch from the Product
2597
+ */
2598
+ select?: Prisma.ProductSelect<ExtArgs> | null;
2599
+ /**
2600
+ * Omit specific fields from the Product
2601
+ */
2602
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
2603
+ /**
2604
+ * Choose, which related nodes to fetch as well
2605
+ */
2606
+ include?: Prisma.ProductInclude<ExtArgs> | null;
2607
+ /**
2608
+ * Filter, which Product to fetch.
2609
+ */
2610
+ where: Prisma.ProductWhereUniqueInput;
2611
+ };
2612
+ /**
2613
+ * Product findUniqueOrThrow
2614
+ */
2615
+ export type ProductFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2616
+ /**
2617
+ * Select specific fields to fetch from the Product
2618
+ */
2619
+ select?: Prisma.ProductSelect<ExtArgs> | null;
2620
+ /**
2621
+ * Omit specific fields from the Product
2622
+ */
2623
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
2624
+ /**
2625
+ * Choose, which related nodes to fetch as well
2626
+ */
2627
+ include?: Prisma.ProductInclude<ExtArgs> | null;
2628
+ /**
2629
+ * Filter, which Product to fetch.
2630
+ */
2631
+ where: Prisma.ProductWhereUniqueInput;
2632
+ };
2633
+ /**
2634
+ * Product findFirst
2635
+ */
2636
+ export type ProductFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2637
+ /**
2638
+ * Select specific fields to fetch from the Product
2639
+ */
2640
+ select?: Prisma.ProductSelect<ExtArgs> | null;
2641
+ /**
2642
+ * Omit specific fields from the Product
2643
+ */
2644
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
2645
+ /**
2646
+ * Choose, which related nodes to fetch as well
2647
+ */
2648
+ include?: Prisma.ProductInclude<ExtArgs> | null;
2649
+ /**
2650
+ * Filter, which Product to fetch.
2651
+ */
2652
+ where?: Prisma.ProductWhereInput;
2653
+ /**
2654
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2655
+ *
2656
+ * Determine the order of Products to fetch.
2657
+ */
2658
+ orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
2659
+ /**
2660
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2661
+ *
2662
+ * Sets the position for searching for Products.
2663
+ */
2664
+ cursor?: Prisma.ProductWhereUniqueInput;
2665
+ /**
2666
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2667
+ *
2668
+ * Take `±n` Products from the position of the cursor.
2669
+ */
2670
+ take?: number;
2671
+ /**
2672
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2673
+ *
2674
+ * Skip the first `n` Products.
2675
+ */
2676
+ skip?: number;
2677
+ /**
2678
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2679
+ *
2680
+ * Filter by unique combinations of Products.
2681
+ */
2682
+ distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[];
2683
+ };
2684
+ /**
2685
+ * Product findFirstOrThrow
2686
+ */
2687
+ export type ProductFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2688
+ /**
2689
+ * Select specific fields to fetch from the Product
2690
+ */
2691
+ select?: Prisma.ProductSelect<ExtArgs> | null;
2692
+ /**
2693
+ * Omit specific fields from the Product
2694
+ */
2695
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
2696
+ /**
2697
+ * Choose, which related nodes to fetch as well
2698
+ */
2699
+ include?: Prisma.ProductInclude<ExtArgs> | null;
2700
+ /**
2701
+ * Filter, which Product to fetch.
2702
+ */
2703
+ where?: Prisma.ProductWhereInput;
2704
+ /**
2705
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2706
+ *
2707
+ * Determine the order of Products to fetch.
2708
+ */
2709
+ orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
2710
+ /**
2711
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2712
+ *
2713
+ * Sets the position for searching for Products.
2714
+ */
2715
+ cursor?: Prisma.ProductWhereUniqueInput;
2716
+ /**
2717
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2718
+ *
2719
+ * Take `±n` Products from the position of the cursor.
2720
+ */
2721
+ take?: number;
2722
+ /**
2723
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2724
+ *
2725
+ * Skip the first `n` Products.
2726
+ */
2727
+ skip?: number;
2728
+ /**
2729
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2730
+ *
2731
+ * Filter by unique combinations of Products.
2732
+ */
2733
+ distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[];
2734
+ };
2735
+ /**
2736
+ * Product findMany
2737
+ */
2738
+ export type ProductFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2739
+ /**
2740
+ * Select specific fields to fetch from the Product
2741
+ */
2742
+ select?: Prisma.ProductSelect<ExtArgs> | null;
2743
+ /**
2744
+ * Omit specific fields from the Product
2745
+ */
2746
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
2747
+ /**
2748
+ * Choose, which related nodes to fetch as well
2749
+ */
2750
+ include?: Prisma.ProductInclude<ExtArgs> | null;
2751
+ /**
2752
+ * Filter, which Products to fetch.
2753
+ */
2754
+ where?: Prisma.ProductWhereInput;
2755
+ /**
2756
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2757
+ *
2758
+ * Determine the order of Products to fetch.
2759
+ */
2760
+ orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
2761
+ /**
2762
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2763
+ *
2764
+ * Sets the position for listing Products.
2765
+ */
2766
+ cursor?: Prisma.ProductWhereUniqueInput;
2767
+ /**
2768
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2769
+ *
2770
+ * Take `±n` Products from the position of the cursor.
2771
+ */
2772
+ take?: number;
2773
+ /**
2774
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2775
+ *
2776
+ * Skip the first `n` Products.
2777
+ */
2778
+ skip?: number;
2779
+ distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[];
2780
+ };
2781
+ /**
2782
+ * Product create
2783
+ */
2784
+ export type ProductCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2785
+ /**
2786
+ * Select specific fields to fetch from the Product
2787
+ */
2788
+ select?: Prisma.ProductSelect<ExtArgs> | null;
2789
+ /**
2790
+ * Omit specific fields from the Product
2791
+ */
2792
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
2793
+ /**
2794
+ * Choose, which related nodes to fetch as well
2795
+ */
2796
+ include?: Prisma.ProductInclude<ExtArgs> | null;
2797
+ /**
2798
+ * The data needed to create a Product.
2799
+ */
2800
+ data: Prisma.XOR<Prisma.ProductCreateInput, Prisma.ProductUncheckedCreateInput>;
2801
+ };
2802
+ /**
2803
+ * Product createMany
2804
+ */
2805
+ export type ProductCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2806
+ /**
2807
+ * The data used to create many Products.
2808
+ */
2809
+ data: Prisma.ProductCreateManyInput | Prisma.ProductCreateManyInput[];
2810
+ skipDuplicates?: boolean;
2811
+ };
2812
+ /**
2813
+ * Product createManyAndReturn
2814
+ */
2815
+ export type ProductCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2816
+ /**
2817
+ * Select specific fields to fetch from the Product
2818
+ */
2819
+ select?: Prisma.ProductSelectCreateManyAndReturn<ExtArgs> | null;
2820
+ /**
2821
+ * Omit specific fields from the Product
2822
+ */
2823
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
2824
+ /**
2825
+ * The data used to create many Products.
2826
+ */
2827
+ data: Prisma.ProductCreateManyInput | Prisma.ProductCreateManyInput[];
2828
+ skipDuplicates?: boolean;
2829
+ /**
2830
+ * Choose, which related nodes to fetch as well
2831
+ */
2832
+ include?: Prisma.ProductIncludeCreateManyAndReturn<ExtArgs> | null;
2833
+ };
2834
+ /**
2835
+ * Product update
2836
+ */
2837
+ export type ProductUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2838
+ /**
2839
+ * Select specific fields to fetch from the Product
2840
+ */
2841
+ select?: Prisma.ProductSelect<ExtArgs> | null;
2842
+ /**
2843
+ * Omit specific fields from the Product
2844
+ */
2845
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
2846
+ /**
2847
+ * Choose, which related nodes to fetch as well
2848
+ */
2849
+ include?: Prisma.ProductInclude<ExtArgs> | null;
2850
+ /**
2851
+ * The data needed to update a Product.
2852
+ */
2853
+ data: Prisma.XOR<Prisma.ProductUpdateInput, Prisma.ProductUncheckedUpdateInput>;
2854
+ /**
2855
+ * Choose, which Product to update.
2856
+ */
2857
+ where: Prisma.ProductWhereUniqueInput;
2858
+ };
2859
+ /**
2860
+ * Product updateMany
2861
+ */
2862
+ export type ProductUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2863
+ /**
2864
+ * The data used to update Products.
2865
+ */
2866
+ data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyInput>;
2867
+ /**
2868
+ * Filter which Products to update
2869
+ */
2870
+ where?: Prisma.ProductWhereInput;
2871
+ /**
2872
+ * Limit how many Products to update.
2873
+ */
2874
+ limit?: number;
2875
+ };
2876
+ /**
2877
+ * Product updateManyAndReturn
2878
+ */
2879
+ export type ProductUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2880
+ /**
2881
+ * Select specific fields to fetch from the Product
2882
+ */
2883
+ select?: Prisma.ProductSelectUpdateManyAndReturn<ExtArgs> | null;
2884
+ /**
2885
+ * Omit specific fields from the Product
2886
+ */
2887
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
2888
+ /**
2889
+ * The data used to update Products.
2890
+ */
2891
+ data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyInput>;
2892
+ /**
2893
+ * Filter which Products to update
2894
+ */
2895
+ where?: Prisma.ProductWhereInput;
2896
+ /**
2897
+ * Limit how many Products to update.
2898
+ */
2899
+ limit?: number;
2900
+ /**
2901
+ * Choose, which related nodes to fetch as well
2902
+ */
2903
+ include?: Prisma.ProductIncludeUpdateManyAndReturn<ExtArgs> | null;
2904
+ };
2905
+ /**
2906
+ * Product upsert
2907
+ */
2908
+ export type ProductUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2909
+ /**
2910
+ * Select specific fields to fetch from the Product
2911
+ */
2912
+ select?: Prisma.ProductSelect<ExtArgs> | null;
2913
+ /**
2914
+ * Omit specific fields from the Product
2915
+ */
2916
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
2917
+ /**
2918
+ * Choose, which related nodes to fetch as well
2919
+ */
2920
+ include?: Prisma.ProductInclude<ExtArgs> | null;
2921
+ /**
2922
+ * The filter to search for the Product to update in case it exists.
2923
+ */
2924
+ where: Prisma.ProductWhereUniqueInput;
2925
+ /**
2926
+ * In case the Product found by the `where` argument doesn't exist, create a new Product with this data.
2927
+ */
2928
+ create: Prisma.XOR<Prisma.ProductCreateInput, Prisma.ProductUncheckedCreateInput>;
2929
+ /**
2930
+ * In case the Product was found with the provided `where` argument, update it with this data.
2931
+ */
2932
+ update: Prisma.XOR<Prisma.ProductUpdateInput, Prisma.ProductUncheckedUpdateInput>;
2933
+ };
2934
+ /**
2935
+ * Product delete
2936
+ */
2937
+ export type ProductDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2938
+ /**
2939
+ * Select specific fields to fetch from the Product
2940
+ */
2941
+ select?: Prisma.ProductSelect<ExtArgs> | null;
2942
+ /**
2943
+ * Omit specific fields from the Product
2944
+ */
2945
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
2946
+ /**
2947
+ * Choose, which related nodes to fetch as well
2948
+ */
2949
+ include?: Prisma.ProductInclude<ExtArgs> | null;
2950
+ /**
2951
+ * Filter which Product to delete.
2952
+ */
2953
+ where: Prisma.ProductWhereUniqueInput;
2954
+ };
2955
+ /**
2956
+ * Product deleteMany
2957
+ */
2958
+ export type ProductDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2959
+ /**
2960
+ * Filter which Products to delete
2961
+ */
2962
+ where?: Prisma.ProductWhereInput;
2963
+ /**
2964
+ * Limit how many Products to delete.
2965
+ */
2966
+ limit?: number;
2967
+ };
2968
+ /**
2969
+ * Product.images
2970
+ */
2971
+ export type Product$imagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2972
+ /**
2973
+ * Select specific fields to fetch from the File
2974
+ */
2975
+ select?: Prisma.FileSelect<ExtArgs> | null;
2976
+ /**
2977
+ * Omit specific fields from the File
2978
+ */
2979
+ omit?: Prisma.FileOmit<ExtArgs> | null;
2980
+ /**
2981
+ * Choose, which related nodes to fetch as well
2982
+ */
2983
+ include?: Prisma.FileInclude<ExtArgs> | null;
2984
+ where?: Prisma.FileWhereInput;
2985
+ orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[];
2986
+ cursor?: Prisma.FileWhereUniqueInput;
2987
+ take?: number;
2988
+ skip?: number;
2989
+ distinct?: Prisma.FileScalarFieldEnum | Prisma.FileScalarFieldEnum[];
2990
+ };
2991
+ /**
2992
+ * Product.manufacturer
2993
+ */
2994
+ export type Product$manufacturerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2995
+ /**
2996
+ * Select specific fields to fetch from the Manufacturer
2997
+ */
2998
+ select?: Prisma.ManufacturerSelect<ExtArgs> | null;
2999
+ /**
3000
+ * Omit specific fields from the Manufacturer
3001
+ */
3002
+ omit?: Prisma.ManufacturerOmit<ExtArgs> | null;
3003
+ /**
3004
+ * Choose, which related nodes to fetch as well
3005
+ */
3006
+ include?: Prisma.ManufacturerInclude<ExtArgs> | null;
3007
+ where?: Prisma.ManufacturerWhereInput;
3008
+ };
3009
+ /**
3010
+ * Product.categories
3011
+ */
3012
+ export type Product$categoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3013
+ /**
3014
+ * Select specific fields to fetch from the ProductCategory
3015
+ */
3016
+ select?: Prisma.ProductCategorySelect<ExtArgs> | null;
3017
+ /**
3018
+ * Omit specific fields from the ProductCategory
3019
+ */
3020
+ omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
3021
+ /**
3022
+ * Choose, which related nodes to fetch as well
3023
+ */
3024
+ include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
3025
+ where?: Prisma.ProductCategoryWhereInput;
3026
+ orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
3027
+ cursor?: Prisma.ProductCategoryWhereUniqueInput;
3028
+ take?: number;
3029
+ skip?: number;
3030
+ distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[];
3031
+ };
3032
+ /**
3033
+ * Product.modifierGroups
3034
+ */
3035
+ export type Product$modifierGroupsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3036
+ /**
3037
+ * Select specific fields to fetch from the ModifierGroup
3038
+ */
3039
+ select?: Prisma.ModifierGroupSelect<ExtArgs> | null;
3040
+ /**
3041
+ * Omit specific fields from the ModifierGroup
3042
+ */
3043
+ omit?: Prisma.ModifierGroupOmit<ExtArgs> | null;
3044
+ /**
3045
+ * Choose, which related nodes to fetch as well
3046
+ */
3047
+ include?: Prisma.ModifierGroupInclude<ExtArgs> | null;
3048
+ where?: Prisma.ModifierGroupWhereInput;
3049
+ orderBy?: Prisma.ModifierGroupOrderByWithRelationInput | Prisma.ModifierGroupOrderByWithRelationInput[];
3050
+ cursor?: Prisma.ModifierGroupWhereUniqueInput;
3051
+ take?: number;
3052
+ skip?: number;
3053
+ distinct?: Prisma.ModifierGroupScalarFieldEnum | Prisma.ModifierGroupScalarFieldEnum[];
3054
+ };
3055
+ /**
3056
+ * Product.translations
3057
+ */
3058
+ export type Product$translationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3059
+ /**
3060
+ * Select specific fields to fetch from the ProductTranslation
3061
+ */
3062
+ select?: Prisma.ProductTranslationSelect<ExtArgs> | null;
3063
+ /**
3064
+ * Omit specific fields from the ProductTranslation
3065
+ */
3066
+ omit?: Prisma.ProductTranslationOmit<ExtArgs> | null;
3067
+ /**
3068
+ * Choose, which related nodes to fetch as well
3069
+ */
3070
+ include?: Prisma.ProductTranslationInclude<ExtArgs> | null;
3071
+ where?: Prisma.ProductTranslationWhereInput;
3072
+ orderBy?: Prisma.ProductTranslationOrderByWithRelationInput | Prisma.ProductTranslationOrderByWithRelationInput[];
3073
+ cursor?: Prisma.ProductTranslationWhereUniqueInput;
3074
+ take?: number;
3075
+ skip?: number;
3076
+ distinct?: Prisma.ProductTranslationScalarFieldEnum | Prisma.ProductTranslationScalarFieldEnum[];
3077
+ };
3078
+ /**
3079
+ * Product.snapshots
3080
+ */
3081
+ export type Product$snapshotsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3082
+ /**
3083
+ * Select specific fields to fetch from the ProductSnapshot
3084
+ */
3085
+ select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
3086
+ /**
3087
+ * Omit specific fields from the ProductSnapshot
3088
+ */
3089
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
3090
+ /**
3091
+ * Choose, which related nodes to fetch as well
3092
+ */
3093
+ include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
3094
+ where?: Prisma.ProductSnapshotWhereInput;
3095
+ orderBy?: Prisma.ProductSnapshotOrderByWithRelationInput | Prisma.ProductSnapshotOrderByWithRelationInput[];
3096
+ cursor?: Prisma.ProductSnapshotWhereUniqueInput;
3097
+ take?: number;
3098
+ skip?: number;
3099
+ distinct?: Prisma.ProductSnapshotScalarFieldEnum | Prisma.ProductSnapshotScalarFieldEnum[];
3100
+ };
3101
+ /**
3102
+ * Product.latestSnapshot
3103
+ */
3104
+ export type Product$latestSnapshotArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3105
+ /**
3106
+ * Select specific fields to fetch from the ProductSnapshot
3107
+ */
3108
+ select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
3109
+ /**
3110
+ * Omit specific fields from the ProductSnapshot
3111
+ */
3112
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
3113
+ /**
3114
+ * Choose, which related nodes to fetch as well
3115
+ */
3116
+ include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
3117
+ where?: Prisma.ProductSnapshotWhereInput;
3118
+ };
3119
+ /**
3120
+ * Product without action
3121
+ */
3122
+ export type ProductDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3123
+ /**
3124
+ * Select specific fields to fetch from the Product
3125
+ */
3126
+ select?: Prisma.ProductSelect<ExtArgs> | null;
3127
+ /**
3128
+ * Omit specific fields from the Product
3129
+ */
3130
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
3131
+ /**
3132
+ * Choose, which related nodes to fetch as well
3133
+ */
3134
+ include?: Prisma.ProductInclude<ExtArgs> | null;
3135
+ };
3136
+ export {};