@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,1389 @@
1
+ /**
2
+ * This file exports the `ProductSnapshot` 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 ProductSnapshot
10
+ *
11
+ */
12
+ export type ProductSnapshotModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductSnapshotPayload>;
13
+ export type AggregateProductSnapshot = {
14
+ _count: ProductSnapshotCountAggregateOutputType | null;
15
+ _min: ProductSnapshotMinAggregateOutputType | null;
16
+ _max: ProductSnapshotMaxAggregateOutputType | null;
17
+ };
18
+ export type ProductSnapshotMinAggregateOutputType = {
19
+ id: string | null;
20
+ productId: string | null;
21
+ createdAt: Date | null;
22
+ createdBy: string | null;
23
+ };
24
+ export type ProductSnapshotMaxAggregateOutputType = {
25
+ id: string | null;
26
+ productId: string | null;
27
+ createdAt: Date | null;
28
+ createdBy: string | null;
29
+ };
30
+ export type ProductSnapshotCountAggregateOutputType = {
31
+ id: number;
32
+ productId: number;
33
+ data: number;
34
+ createdAt: number;
35
+ createdBy: number;
36
+ _all: number;
37
+ };
38
+ export type ProductSnapshotMinAggregateInputType = {
39
+ id?: true;
40
+ productId?: true;
41
+ createdAt?: true;
42
+ createdBy?: true;
43
+ };
44
+ export type ProductSnapshotMaxAggregateInputType = {
45
+ id?: true;
46
+ productId?: true;
47
+ createdAt?: true;
48
+ createdBy?: true;
49
+ };
50
+ export type ProductSnapshotCountAggregateInputType = {
51
+ id?: true;
52
+ productId?: true;
53
+ data?: true;
54
+ createdAt?: true;
55
+ createdBy?: true;
56
+ _all?: true;
57
+ };
58
+ export type ProductSnapshotAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
59
+ /**
60
+ * Filter which ProductSnapshot to aggregate.
61
+ */
62
+ where?: Prisma.ProductSnapshotWhereInput;
63
+ /**
64
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
65
+ *
66
+ * Determine the order of ProductSnapshots to fetch.
67
+ */
68
+ orderBy?: Prisma.ProductSnapshotOrderByWithRelationInput | Prisma.ProductSnapshotOrderByWithRelationInput[];
69
+ /**
70
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
71
+ *
72
+ * Sets the start position
73
+ */
74
+ cursor?: Prisma.ProductSnapshotWhereUniqueInput;
75
+ /**
76
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
77
+ *
78
+ * Take `±n` ProductSnapshots from the position of the cursor.
79
+ */
80
+ take?: number;
81
+ /**
82
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
83
+ *
84
+ * Skip the first `n` ProductSnapshots.
85
+ */
86
+ skip?: number;
87
+ /**
88
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
89
+ *
90
+ * Count returned ProductSnapshots
91
+ **/
92
+ _count?: true | ProductSnapshotCountAggregateInputType;
93
+ /**
94
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
95
+ *
96
+ * Select which fields to find the minimum value
97
+ **/
98
+ _min?: ProductSnapshotMinAggregateInputType;
99
+ /**
100
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
101
+ *
102
+ * Select which fields to find the maximum value
103
+ **/
104
+ _max?: ProductSnapshotMaxAggregateInputType;
105
+ };
106
+ export type GetProductSnapshotAggregateType<T extends ProductSnapshotAggregateArgs> = {
107
+ [P in keyof T & keyof AggregateProductSnapshot]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateProductSnapshot[P]> : Prisma.GetScalarType<T[P], AggregateProductSnapshot[P]>;
108
+ };
109
+ export type ProductSnapshotGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
110
+ where?: Prisma.ProductSnapshotWhereInput;
111
+ orderBy?: Prisma.ProductSnapshotOrderByWithAggregationInput | Prisma.ProductSnapshotOrderByWithAggregationInput[];
112
+ by: Prisma.ProductSnapshotScalarFieldEnum[] | Prisma.ProductSnapshotScalarFieldEnum;
113
+ having?: Prisma.ProductSnapshotScalarWhereWithAggregatesInput;
114
+ take?: number;
115
+ skip?: number;
116
+ _count?: ProductSnapshotCountAggregateInputType | true;
117
+ _min?: ProductSnapshotMinAggregateInputType;
118
+ _max?: ProductSnapshotMaxAggregateInputType;
119
+ };
120
+ export type ProductSnapshotGroupByOutputType = {
121
+ id: string;
122
+ productId: string;
123
+ data: runtime.JsonValue;
124
+ createdAt: Date;
125
+ createdBy: string | null;
126
+ _count: ProductSnapshotCountAggregateOutputType | null;
127
+ _min: ProductSnapshotMinAggregateOutputType | null;
128
+ _max: ProductSnapshotMaxAggregateOutputType | null;
129
+ };
130
+ type GetProductSnapshotGroupByPayload<T extends ProductSnapshotGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ProductSnapshotGroupByOutputType, T['by']> & {
131
+ [P in ((keyof T) & (keyof ProductSnapshotGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ProductSnapshotGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ProductSnapshotGroupByOutputType[P]>;
132
+ }>>;
133
+ export type ProductSnapshotWhereInput = {
134
+ AND?: Prisma.ProductSnapshotWhereInput | Prisma.ProductSnapshotWhereInput[];
135
+ OR?: Prisma.ProductSnapshotWhereInput[];
136
+ NOT?: Prisma.ProductSnapshotWhereInput | Prisma.ProductSnapshotWhereInput[];
137
+ id?: Prisma.StringFilter<"ProductSnapshot"> | string;
138
+ productId?: Prisma.StringFilter<"ProductSnapshot"> | string;
139
+ data?: Prisma.JsonFilter<"ProductSnapshot">;
140
+ createdAt?: Prisma.DateTimeFilter<"ProductSnapshot"> | Date | string;
141
+ createdBy?: Prisma.StringNullableFilter<"ProductSnapshot"> | string | null;
142
+ product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>;
143
+ latestForProduct?: Prisma.XOR<Prisma.ProductNullableScalarRelationFilter, Prisma.ProductWhereInput> | null;
144
+ orderItems?: Prisma.OrderItemListRelationFilter;
145
+ };
146
+ export type ProductSnapshotOrderByWithRelationInput = {
147
+ id?: Prisma.SortOrder;
148
+ productId?: Prisma.SortOrder;
149
+ data?: Prisma.SortOrder;
150
+ createdAt?: Prisma.SortOrder;
151
+ createdBy?: Prisma.SortOrderInput | Prisma.SortOrder;
152
+ product?: Prisma.ProductOrderByWithRelationInput;
153
+ latestForProduct?: Prisma.ProductOrderByWithRelationInput;
154
+ orderItems?: Prisma.OrderItemOrderByRelationAggregateInput;
155
+ };
156
+ export type ProductSnapshotWhereUniqueInput = Prisma.AtLeast<{
157
+ id?: string;
158
+ AND?: Prisma.ProductSnapshotWhereInput | Prisma.ProductSnapshotWhereInput[];
159
+ OR?: Prisma.ProductSnapshotWhereInput[];
160
+ NOT?: Prisma.ProductSnapshotWhereInput | Prisma.ProductSnapshotWhereInput[];
161
+ productId?: Prisma.StringFilter<"ProductSnapshot"> | string;
162
+ data?: Prisma.JsonFilter<"ProductSnapshot">;
163
+ createdAt?: Prisma.DateTimeFilter<"ProductSnapshot"> | Date | string;
164
+ createdBy?: Prisma.StringNullableFilter<"ProductSnapshot"> | string | null;
165
+ product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>;
166
+ latestForProduct?: Prisma.XOR<Prisma.ProductNullableScalarRelationFilter, Prisma.ProductWhereInput> | null;
167
+ orderItems?: Prisma.OrderItemListRelationFilter;
168
+ }, "id">;
169
+ export type ProductSnapshotOrderByWithAggregationInput = {
170
+ id?: Prisma.SortOrder;
171
+ productId?: Prisma.SortOrder;
172
+ data?: Prisma.SortOrder;
173
+ createdAt?: Prisma.SortOrder;
174
+ createdBy?: Prisma.SortOrderInput | Prisma.SortOrder;
175
+ _count?: Prisma.ProductSnapshotCountOrderByAggregateInput;
176
+ _max?: Prisma.ProductSnapshotMaxOrderByAggregateInput;
177
+ _min?: Prisma.ProductSnapshotMinOrderByAggregateInput;
178
+ };
179
+ export type ProductSnapshotScalarWhereWithAggregatesInput = {
180
+ AND?: Prisma.ProductSnapshotScalarWhereWithAggregatesInput | Prisma.ProductSnapshotScalarWhereWithAggregatesInput[];
181
+ OR?: Prisma.ProductSnapshotScalarWhereWithAggregatesInput[];
182
+ NOT?: Prisma.ProductSnapshotScalarWhereWithAggregatesInput | Prisma.ProductSnapshotScalarWhereWithAggregatesInput[];
183
+ id?: Prisma.StringWithAggregatesFilter<"ProductSnapshot"> | string;
184
+ productId?: Prisma.StringWithAggregatesFilter<"ProductSnapshot"> | string;
185
+ data?: Prisma.JsonWithAggregatesFilter<"ProductSnapshot">;
186
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"ProductSnapshot"> | Date | string;
187
+ createdBy?: Prisma.StringNullableWithAggregatesFilter<"ProductSnapshot"> | string | null;
188
+ };
189
+ export type ProductSnapshotCreateInput = {
190
+ id?: string;
191
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
192
+ createdAt?: Date | string;
193
+ createdBy?: string | null;
194
+ product: Prisma.ProductCreateNestedOneWithoutSnapshotsInput;
195
+ latestForProduct?: Prisma.ProductCreateNestedOneWithoutLatestSnapshotInput;
196
+ orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductSnapshotInput;
197
+ };
198
+ export type ProductSnapshotUncheckedCreateInput = {
199
+ id?: string;
200
+ productId: string;
201
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
202
+ createdAt?: Date | string;
203
+ createdBy?: string | null;
204
+ latestForProduct?: Prisma.ProductUncheckedCreateNestedOneWithoutLatestSnapshotInput;
205
+ orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductSnapshotInput;
206
+ };
207
+ export type ProductSnapshotUpdateInput = {
208
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
209
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
210
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
211
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
212
+ product?: Prisma.ProductUpdateOneRequiredWithoutSnapshotsNestedInput;
213
+ latestForProduct?: Prisma.ProductUpdateOneWithoutLatestSnapshotNestedInput;
214
+ orderItems?: Prisma.OrderItemUpdateManyWithoutProductSnapshotNestedInput;
215
+ };
216
+ export type ProductSnapshotUncheckedUpdateInput = {
217
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
218
+ productId?: Prisma.StringFieldUpdateOperationsInput | string;
219
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
220
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
221
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
222
+ latestForProduct?: Prisma.ProductUncheckedUpdateOneWithoutLatestSnapshotNestedInput;
223
+ orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductSnapshotNestedInput;
224
+ };
225
+ export type ProductSnapshotCreateManyInput = {
226
+ id?: string;
227
+ productId: string;
228
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
229
+ createdAt?: Date | string;
230
+ createdBy?: string | null;
231
+ };
232
+ export type ProductSnapshotUpdateManyMutationInput = {
233
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
234
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
235
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
236
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
237
+ };
238
+ export type ProductSnapshotUncheckedUpdateManyInput = {
239
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
240
+ productId?: Prisma.StringFieldUpdateOperationsInput | string;
241
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
242
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
243
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
244
+ };
245
+ export type ProductSnapshotListRelationFilter = {
246
+ every?: Prisma.ProductSnapshotWhereInput;
247
+ some?: Prisma.ProductSnapshotWhereInput;
248
+ none?: Prisma.ProductSnapshotWhereInput;
249
+ };
250
+ export type ProductSnapshotNullableScalarRelationFilter = {
251
+ is?: Prisma.ProductSnapshotWhereInput | null;
252
+ isNot?: Prisma.ProductSnapshotWhereInput | null;
253
+ };
254
+ export type ProductSnapshotOrderByRelationAggregateInput = {
255
+ _count?: Prisma.SortOrder;
256
+ };
257
+ export type ProductSnapshotCountOrderByAggregateInput = {
258
+ id?: Prisma.SortOrder;
259
+ productId?: Prisma.SortOrder;
260
+ data?: Prisma.SortOrder;
261
+ createdAt?: Prisma.SortOrder;
262
+ createdBy?: Prisma.SortOrder;
263
+ };
264
+ export type ProductSnapshotMaxOrderByAggregateInput = {
265
+ id?: Prisma.SortOrder;
266
+ productId?: Prisma.SortOrder;
267
+ createdAt?: Prisma.SortOrder;
268
+ createdBy?: Prisma.SortOrder;
269
+ };
270
+ export type ProductSnapshotMinOrderByAggregateInput = {
271
+ id?: Prisma.SortOrder;
272
+ productId?: Prisma.SortOrder;
273
+ createdAt?: Prisma.SortOrder;
274
+ createdBy?: Prisma.SortOrder;
275
+ };
276
+ export type ProductSnapshotCreateNestedManyWithoutProductInput = {
277
+ create?: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutProductInput, Prisma.ProductSnapshotUncheckedCreateWithoutProductInput> | Prisma.ProductSnapshotCreateWithoutProductInput[] | Prisma.ProductSnapshotUncheckedCreateWithoutProductInput[];
278
+ connectOrCreate?: Prisma.ProductSnapshotCreateOrConnectWithoutProductInput | Prisma.ProductSnapshotCreateOrConnectWithoutProductInput[];
279
+ createMany?: Prisma.ProductSnapshotCreateManyProductInputEnvelope;
280
+ connect?: Prisma.ProductSnapshotWhereUniqueInput | Prisma.ProductSnapshotWhereUniqueInput[];
281
+ };
282
+ export type ProductSnapshotCreateNestedOneWithoutLatestForProductInput = {
283
+ create?: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutLatestForProductInput, Prisma.ProductSnapshotUncheckedCreateWithoutLatestForProductInput>;
284
+ connectOrCreate?: Prisma.ProductSnapshotCreateOrConnectWithoutLatestForProductInput;
285
+ connect?: Prisma.ProductSnapshotWhereUniqueInput;
286
+ };
287
+ export type ProductSnapshotUncheckedCreateNestedManyWithoutProductInput = {
288
+ create?: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutProductInput, Prisma.ProductSnapshotUncheckedCreateWithoutProductInput> | Prisma.ProductSnapshotCreateWithoutProductInput[] | Prisma.ProductSnapshotUncheckedCreateWithoutProductInput[];
289
+ connectOrCreate?: Prisma.ProductSnapshotCreateOrConnectWithoutProductInput | Prisma.ProductSnapshotCreateOrConnectWithoutProductInput[];
290
+ createMany?: Prisma.ProductSnapshotCreateManyProductInputEnvelope;
291
+ connect?: Prisma.ProductSnapshotWhereUniqueInput | Prisma.ProductSnapshotWhereUniqueInput[];
292
+ };
293
+ export type ProductSnapshotUpdateManyWithoutProductNestedInput = {
294
+ create?: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutProductInput, Prisma.ProductSnapshotUncheckedCreateWithoutProductInput> | Prisma.ProductSnapshotCreateWithoutProductInput[] | Prisma.ProductSnapshotUncheckedCreateWithoutProductInput[];
295
+ connectOrCreate?: Prisma.ProductSnapshotCreateOrConnectWithoutProductInput | Prisma.ProductSnapshotCreateOrConnectWithoutProductInput[];
296
+ upsert?: Prisma.ProductSnapshotUpsertWithWhereUniqueWithoutProductInput | Prisma.ProductSnapshotUpsertWithWhereUniqueWithoutProductInput[];
297
+ createMany?: Prisma.ProductSnapshotCreateManyProductInputEnvelope;
298
+ set?: Prisma.ProductSnapshotWhereUniqueInput | Prisma.ProductSnapshotWhereUniqueInput[];
299
+ disconnect?: Prisma.ProductSnapshotWhereUniqueInput | Prisma.ProductSnapshotWhereUniqueInput[];
300
+ delete?: Prisma.ProductSnapshotWhereUniqueInput | Prisma.ProductSnapshotWhereUniqueInput[];
301
+ connect?: Prisma.ProductSnapshotWhereUniqueInput | Prisma.ProductSnapshotWhereUniqueInput[];
302
+ update?: Prisma.ProductSnapshotUpdateWithWhereUniqueWithoutProductInput | Prisma.ProductSnapshotUpdateWithWhereUniqueWithoutProductInput[];
303
+ updateMany?: Prisma.ProductSnapshotUpdateManyWithWhereWithoutProductInput | Prisma.ProductSnapshotUpdateManyWithWhereWithoutProductInput[];
304
+ deleteMany?: Prisma.ProductSnapshotScalarWhereInput | Prisma.ProductSnapshotScalarWhereInput[];
305
+ };
306
+ export type ProductSnapshotUpdateOneWithoutLatestForProductNestedInput = {
307
+ create?: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutLatestForProductInput, Prisma.ProductSnapshotUncheckedCreateWithoutLatestForProductInput>;
308
+ connectOrCreate?: Prisma.ProductSnapshotCreateOrConnectWithoutLatestForProductInput;
309
+ upsert?: Prisma.ProductSnapshotUpsertWithoutLatestForProductInput;
310
+ disconnect?: Prisma.ProductSnapshotWhereInput | boolean;
311
+ delete?: Prisma.ProductSnapshotWhereInput | boolean;
312
+ connect?: Prisma.ProductSnapshotWhereUniqueInput;
313
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProductSnapshotUpdateToOneWithWhereWithoutLatestForProductInput, Prisma.ProductSnapshotUpdateWithoutLatestForProductInput>, Prisma.ProductSnapshotUncheckedUpdateWithoutLatestForProductInput>;
314
+ };
315
+ export type ProductSnapshotUncheckedUpdateManyWithoutProductNestedInput = {
316
+ create?: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutProductInput, Prisma.ProductSnapshotUncheckedCreateWithoutProductInput> | Prisma.ProductSnapshotCreateWithoutProductInput[] | Prisma.ProductSnapshotUncheckedCreateWithoutProductInput[];
317
+ connectOrCreate?: Prisma.ProductSnapshotCreateOrConnectWithoutProductInput | Prisma.ProductSnapshotCreateOrConnectWithoutProductInput[];
318
+ upsert?: Prisma.ProductSnapshotUpsertWithWhereUniqueWithoutProductInput | Prisma.ProductSnapshotUpsertWithWhereUniqueWithoutProductInput[];
319
+ createMany?: Prisma.ProductSnapshotCreateManyProductInputEnvelope;
320
+ set?: Prisma.ProductSnapshotWhereUniqueInput | Prisma.ProductSnapshotWhereUniqueInput[];
321
+ disconnect?: Prisma.ProductSnapshotWhereUniqueInput | Prisma.ProductSnapshotWhereUniqueInput[];
322
+ delete?: Prisma.ProductSnapshotWhereUniqueInput | Prisma.ProductSnapshotWhereUniqueInput[];
323
+ connect?: Prisma.ProductSnapshotWhereUniqueInput | Prisma.ProductSnapshotWhereUniqueInput[];
324
+ update?: Prisma.ProductSnapshotUpdateWithWhereUniqueWithoutProductInput | Prisma.ProductSnapshotUpdateWithWhereUniqueWithoutProductInput[];
325
+ updateMany?: Prisma.ProductSnapshotUpdateManyWithWhereWithoutProductInput | Prisma.ProductSnapshotUpdateManyWithWhereWithoutProductInput[];
326
+ deleteMany?: Prisma.ProductSnapshotScalarWhereInput | Prisma.ProductSnapshotScalarWhereInput[];
327
+ };
328
+ export type ProductSnapshotCreateNestedOneWithoutOrderItemsInput = {
329
+ create?: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutOrderItemsInput, Prisma.ProductSnapshotUncheckedCreateWithoutOrderItemsInput>;
330
+ connectOrCreate?: Prisma.ProductSnapshotCreateOrConnectWithoutOrderItemsInput;
331
+ connect?: Prisma.ProductSnapshotWhereUniqueInput;
332
+ };
333
+ export type ProductSnapshotUpdateOneWithoutOrderItemsNestedInput = {
334
+ create?: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutOrderItemsInput, Prisma.ProductSnapshotUncheckedCreateWithoutOrderItemsInput>;
335
+ connectOrCreate?: Prisma.ProductSnapshotCreateOrConnectWithoutOrderItemsInput;
336
+ upsert?: Prisma.ProductSnapshotUpsertWithoutOrderItemsInput;
337
+ disconnect?: Prisma.ProductSnapshotWhereInput | boolean;
338
+ delete?: Prisma.ProductSnapshotWhereInput | boolean;
339
+ connect?: Prisma.ProductSnapshotWhereUniqueInput;
340
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProductSnapshotUpdateToOneWithWhereWithoutOrderItemsInput, Prisma.ProductSnapshotUpdateWithoutOrderItemsInput>, Prisma.ProductSnapshotUncheckedUpdateWithoutOrderItemsInput>;
341
+ };
342
+ export type ProductSnapshotCreateWithoutProductInput = {
343
+ id?: string;
344
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
345
+ createdAt?: Date | string;
346
+ createdBy?: string | null;
347
+ latestForProduct?: Prisma.ProductCreateNestedOneWithoutLatestSnapshotInput;
348
+ orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductSnapshotInput;
349
+ };
350
+ export type ProductSnapshotUncheckedCreateWithoutProductInput = {
351
+ id?: string;
352
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
353
+ createdAt?: Date | string;
354
+ createdBy?: string | null;
355
+ latestForProduct?: Prisma.ProductUncheckedCreateNestedOneWithoutLatestSnapshotInput;
356
+ orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductSnapshotInput;
357
+ };
358
+ export type ProductSnapshotCreateOrConnectWithoutProductInput = {
359
+ where: Prisma.ProductSnapshotWhereUniqueInput;
360
+ create: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutProductInput, Prisma.ProductSnapshotUncheckedCreateWithoutProductInput>;
361
+ };
362
+ export type ProductSnapshotCreateManyProductInputEnvelope = {
363
+ data: Prisma.ProductSnapshotCreateManyProductInput | Prisma.ProductSnapshotCreateManyProductInput[];
364
+ skipDuplicates?: boolean;
365
+ };
366
+ export type ProductSnapshotCreateWithoutLatestForProductInput = {
367
+ id?: string;
368
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
369
+ createdAt?: Date | string;
370
+ createdBy?: string | null;
371
+ product: Prisma.ProductCreateNestedOneWithoutSnapshotsInput;
372
+ orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductSnapshotInput;
373
+ };
374
+ export type ProductSnapshotUncheckedCreateWithoutLatestForProductInput = {
375
+ id?: string;
376
+ productId: string;
377
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
378
+ createdAt?: Date | string;
379
+ createdBy?: string | null;
380
+ orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductSnapshotInput;
381
+ };
382
+ export type ProductSnapshotCreateOrConnectWithoutLatestForProductInput = {
383
+ where: Prisma.ProductSnapshotWhereUniqueInput;
384
+ create: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutLatestForProductInput, Prisma.ProductSnapshotUncheckedCreateWithoutLatestForProductInput>;
385
+ };
386
+ export type ProductSnapshotUpsertWithWhereUniqueWithoutProductInput = {
387
+ where: Prisma.ProductSnapshotWhereUniqueInput;
388
+ update: Prisma.XOR<Prisma.ProductSnapshotUpdateWithoutProductInput, Prisma.ProductSnapshotUncheckedUpdateWithoutProductInput>;
389
+ create: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutProductInput, Prisma.ProductSnapshotUncheckedCreateWithoutProductInput>;
390
+ };
391
+ export type ProductSnapshotUpdateWithWhereUniqueWithoutProductInput = {
392
+ where: Prisma.ProductSnapshotWhereUniqueInput;
393
+ data: Prisma.XOR<Prisma.ProductSnapshotUpdateWithoutProductInput, Prisma.ProductSnapshotUncheckedUpdateWithoutProductInput>;
394
+ };
395
+ export type ProductSnapshotUpdateManyWithWhereWithoutProductInput = {
396
+ where: Prisma.ProductSnapshotScalarWhereInput;
397
+ data: Prisma.XOR<Prisma.ProductSnapshotUpdateManyMutationInput, Prisma.ProductSnapshotUncheckedUpdateManyWithoutProductInput>;
398
+ };
399
+ export type ProductSnapshotScalarWhereInput = {
400
+ AND?: Prisma.ProductSnapshotScalarWhereInput | Prisma.ProductSnapshotScalarWhereInput[];
401
+ OR?: Prisma.ProductSnapshotScalarWhereInput[];
402
+ NOT?: Prisma.ProductSnapshotScalarWhereInput | Prisma.ProductSnapshotScalarWhereInput[];
403
+ id?: Prisma.StringFilter<"ProductSnapshot"> | string;
404
+ productId?: Prisma.StringFilter<"ProductSnapshot"> | string;
405
+ data?: Prisma.JsonFilter<"ProductSnapshot">;
406
+ createdAt?: Prisma.DateTimeFilter<"ProductSnapshot"> | Date | string;
407
+ createdBy?: Prisma.StringNullableFilter<"ProductSnapshot"> | string | null;
408
+ };
409
+ export type ProductSnapshotUpsertWithoutLatestForProductInput = {
410
+ update: Prisma.XOR<Prisma.ProductSnapshotUpdateWithoutLatestForProductInput, Prisma.ProductSnapshotUncheckedUpdateWithoutLatestForProductInput>;
411
+ create: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutLatestForProductInput, Prisma.ProductSnapshotUncheckedCreateWithoutLatestForProductInput>;
412
+ where?: Prisma.ProductSnapshotWhereInput;
413
+ };
414
+ export type ProductSnapshotUpdateToOneWithWhereWithoutLatestForProductInput = {
415
+ where?: Prisma.ProductSnapshotWhereInput;
416
+ data: Prisma.XOR<Prisma.ProductSnapshotUpdateWithoutLatestForProductInput, Prisma.ProductSnapshotUncheckedUpdateWithoutLatestForProductInput>;
417
+ };
418
+ export type ProductSnapshotUpdateWithoutLatestForProductInput = {
419
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
420
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
421
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
422
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
423
+ product?: Prisma.ProductUpdateOneRequiredWithoutSnapshotsNestedInput;
424
+ orderItems?: Prisma.OrderItemUpdateManyWithoutProductSnapshotNestedInput;
425
+ };
426
+ export type ProductSnapshotUncheckedUpdateWithoutLatestForProductInput = {
427
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
428
+ productId?: Prisma.StringFieldUpdateOperationsInput | string;
429
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
430
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
431
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
432
+ orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductSnapshotNestedInput;
433
+ };
434
+ export type ProductSnapshotCreateWithoutOrderItemsInput = {
435
+ id?: string;
436
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
437
+ createdAt?: Date | string;
438
+ createdBy?: string | null;
439
+ product: Prisma.ProductCreateNestedOneWithoutSnapshotsInput;
440
+ latestForProduct?: Prisma.ProductCreateNestedOneWithoutLatestSnapshotInput;
441
+ };
442
+ export type ProductSnapshotUncheckedCreateWithoutOrderItemsInput = {
443
+ id?: string;
444
+ productId: string;
445
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
446
+ createdAt?: Date | string;
447
+ createdBy?: string | null;
448
+ latestForProduct?: Prisma.ProductUncheckedCreateNestedOneWithoutLatestSnapshotInput;
449
+ };
450
+ export type ProductSnapshotCreateOrConnectWithoutOrderItemsInput = {
451
+ where: Prisma.ProductSnapshotWhereUniqueInput;
452
+ create: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutOrderItemsInput, Prisma.ProductSnapshotUncheckedCreateWithoutOrderItemsInput>;
453
+ };
454
+ export type ProductSnapshotUpsertWithoutOrderItemsInput = {
455
+ update: Prisma.XOR<Prisma.ProductSnapshotUpdateWithoutOrderItemsInput, Prisma.ProductSnapshotUncheckedUpdateWithoutOrderItemsInput>;
456
+ create: Prisma.XOR<Prisma.ProductSnapshotCreateWithoutOrderItemsInput, Prisma.ProductSnapshotUncheckedCreateWithoutOrderItemsInput>;
457
+ where?: Prisma.ProductSnapshotWhereInput;
458
+ };
459
+ export type ProductSnapshotUpdateToOneWithWhereWithoutOrderItemsInput = {
460
+ where?: Prisma.ProductSnapshotWhereInput;
461
+ data: Prisma.XOR<Prisma.ProductSnapshotUpdateWithoutOrderItemsInput, Prisma.ProductSnapshotUncheckedUpdateWithoutOrderItemsInput>;
462
+ };
463
+ export type ProductSnapshotUpdateWithoutOrderItemsInput = {
464
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
465
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
466
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
467
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
468
+ product?: Prisma.ProductUpdateOneRequiredWithoutSnapshotsNestedInput;
469
+ latestForProduct?: Prisma.ProductUpdateOneWithoutLatestSnapshotNestedInput;
470
+ };
471
+ export type ProductSnapshotUncheckedUpdateWithoutOrderItemsInput = {
472
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
473
+ productId?: Prisma.StringFieldUpdateOperationsInput | string;
474
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
475
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
476
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
477
+ latestForProduct?: Prisma.ProductUncheckedUpdateOneWithoutLatestSnapshotNestedInput;
478
+ };
479
+ export type ProductSnapshotCreateManyProductInput = {
480
+ id?: string;
481
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
482
+ createdAt?: Date | string;
483
+ createdBy?: string | null;
484
+ };
485
+ export type ProductSnapshotUpdateWithoutProductInput = {
486
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
487
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
488
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
489
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
490
+ latestForProduct?: Prisma.ProductUpdateOneWithoutLatestSnapshotNestedInput;
491
+ orderItems?: Prisma.OrderItemUpdateManyWithoutProductSnapshotNestedInput;
492
+ };
493
+ export type ProductSnapshotUncheckedUpdateWithoutProductInput = {
494
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
495
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
496
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
497
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
498
+ latestForProduct?: Prisma.ProductUncheckedUpdateOneWithoutLatestSnapshotNestedInput;
499
+ orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductSnapshotNestedInput;
500
+ };
501
+ export type ProductSnapshotUncheckedUpdateManyWithoutProductInput = {
502
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
503
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
504
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
505
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
506
+ };
507
+ /**
508
+ * Count Type ProductSnapshotCountOutputType
509
+ */
510
+ export type ProductSnapshotCountOutputType = {
511
+ orderItems: number;
512
+ };
513
+ export type ProductSnapshotCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
514
+ orderItems?: boolean | ProductSnapshotCountOutputTypeCountOrderItemsArgs;
515
+ };
516
+ /**
517
+ * ProductSnapshotCountOutputType without action
518
+ */
519
+ export type ProductSnapshotCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
520
+ /**
521
+ * Select specific fields to fetch from the ProductSnapshotCountOutputType
522
+ */
523
+ select?: Prisma.ProductSnapshotCountOutputTypeSelect<ExtArgs> | null;
524
+ };
525
+ /**
526
+ * ProductSnapshotCountOutputType without action
527
+ */
528
+ export type ProductSnapshotCountOutputTypeCountOrderItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
529
+ where?: Prisma.OrderItemWhereInput;
530
+ };
531
+ export type ProductSnapshotSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
532
+ id?: boolean;
533
+ productId?: boolean;
534
+ data?: boolean;
535
+ createdAt?: boolean;
536
+ createdBy?: boolean;
537
+ product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
538
+ latestForProduct?: boolean | Prisma.ProductSnapshot$latestForProductArgs<ExtArgs>;
539
+ orderItems?: boolean | Prisma.ProductSnapshot$orderItemsArgs<ExtArgs>;
540
+ _count?: boolean | Prisma.ProductSnapshotCountOutputTypeDefaultArgs<ExtArgs>;
541
+ }, ExtArgs["result"]["productSnapshot"]>;
542
+ export type ProductSnapshotSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
543
+ id?: boolean;
544
+ productId?: boolean;
545
+ data?: boolean;
546
+ createdAt?: boolean;
547
+ createdBy?: boolean;
548
+ product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
549
+ }, ExtArgs["result"]["productSnapshot"]>;
550
+ export type ProductSnapshotSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
551
+ id?: boolean;
552
+ productId?: boolean;
553
+ data?: boolean;
554
+ createdAt?: boolean;
555
+ createdBy?: boolean;
556
+ product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
557
+ }, ExtArgs["result"]["productSnapshot"]>;
558
+ export type ProductSnapshotSelectScalar = {
559
+ id?: boolean;
560
+ productId?: boolean;
561
+ data?: boolean;
562
+ createdAt?: boolean;
563
+ createdBy?: boolean;
564
+ };
565
+ export type ProductSnapshotOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "productId" | "data" | "createdAt" | "createdBy", ExtArgs["result"]["productSnapshot"]>;
566
+ export type ProductSnapshotInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
567
+ product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
568
+ latestForProduct?: boolean | Prisma.ProductSnapshot$latestForProductArgs<ExtArgs>;
569
+ orderItems?: boolean | Prisma.ProductSnapshot$orderItemsArgs<ExtArgs>;
570
+ _count?: boolean | Prisma.ProductSnapshotCountOutputTypeDefaultArgs<ExtArgs>;
571
+ };
572
+ export type ProductSnapshotIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
573
+ product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
574
+ };
575
+ export type ProductSnapshotIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
576
+ product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
577
+ };
578
+ export type $ProductSnapshotPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
579
+ name: "ProductSnapshot";
580
+ objects: {
581
+ product: Prisma.$ProductPayload<ExtArgs>;
582
+ latestForProduct: Prisma.$ProductPayload<ExtArgs> | null;
583
+ orderItems: Prisma.$OrderItemPayload<ExtArgs>[];
584
+ };
585
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
586
+ id: string;
587
+ productId: string;
588
+ data: runtime.JsonValue;
589
+ createdAt: Date;
590
+ createdBy: string | null;
591
+ }, ExtArgs["result"]["productSnapshot"]>;
592
+ composites: {};
593
+ };
594
+ export type ProductSnapshotGetPayload<S extends boolean | null | undefined | ProductSnapshotDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload, S>;
595
+ export type ProductSnapshotCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ProductSnapshotFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
596
+ select?: ProductSnapshotCountAggregateInputType | true;
597
+ };
598
+ export interface ProductSnapshotDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
599
+ [K: symbol]: {
600
+ types: Prisma.TypeMap<ExtArgs>['model']['ProductSnapshot'];
601
+ meta: {
602
+ name: 'ProductSnapshot';
603
+ };
604
+ };
605
+ /**
606
+ * Find zero or one ProductSnapshot that matches the filter.
607
+ * @param {ProductSnapshotFindUniqueArgs} args - Arguments to find a ProductSnapshot
608
+ * @example
609
+ * // Get one ProductSnapshot
610
+ * const productSnapshot = await prisma.productSnapshot.findUnique({
611
+ * where: {
612
+ * // ... provide filter here
613
+ * }
614
+ * })
615
+ */
616
+ findUnique<T extends ProductSnapshotFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductSnapshotFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
617
+ /**
618
+ * Find one ProductSnapshot that matches the filter or throw an error with `error.code='P2025'`
619
+ * if no matches were found.
620
+ * @param {ProductSnapshotFindUniqueOrThrowArgs} args - Arguments to find a ProductSnapshot
621
+ * @example
622
+ * // Get one ProductSnapshot
623
+ * const productSnapshot = await prisma.productSnapshot.findUniqueOrThrow({
624
+ * where: {
625
+ * // ... provide filter here
626
+ * }
627
+ * })
628
+ */
629
+ findUniqueOrThrow<T extends ProductSnapshotFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductSnapshotFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
630
+ /**
631
+ * Find the first ProductSnapshot that matches the filter.
632
+ * Note, that providing `undefined` is treated as the value not being there.
633
+ * Read more here: https://pris.ly/d/null-undefined
634
+ * @param {ProductSnapshotFindFirstArgs} args - Arguments to find a ProductSnapshot
635
+ * @example
636
+ * // Get one ProductSnapshot
637
+ * const productSnapshot = await prisma.productSnapshot.findFirst({
638
+ * where: {
639
+ * // ... provide filter here
640
+ * }
641
+ * })
642
+ */
643
+ findFirst<T extends ProductSnapshotFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductSnapshotFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
644
+ /**
645
+ * Find the first ProductSnapshot that matches the filter or
646
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
647
+ * Note, that providing `undefined` is treated as the value not being there.
648
+ * Read more here: https://pris.ly/d/null-undefined
649
+ * @param {ProductSnapshotFindFirstOrThrowArgs} args - Arguments to find a ProductSnapshot
650
+ * @example
651
+ * // Get one ProductSnapshot
652
+ * const productSnapshot = await prisma.productSnapshot.findFirstOrThrow({
653
+ * where: {
654
+ * // ... provide filter here
655
+ * }
656
+ * })
657
+ */
658
+ findFirstOrThrow<T extends ProductSnapshotFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductSnapshotFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
659
+ /**
660
+ * Find zero or more ProductSnapshots that matches the filter.
661
+ * Note, that providing `undefined` is treated as the value not being there.
662
+ * Read more here: https://pris.ly/d/null-undefined
663
+ * @param {ProductSnapshotFindManyArgs} args - Arguments to filter and select certain fields only.
664
+ * @example
665
+ * // Get all ProductSnapshots
666
+ * const productSnapshots = await prisma.productSnapshot.findMany()
667
+ *
668
+ * // Get first 10 ProductSnapshots
669
+ * const productSnapshots = await prisma.productSnapshot.findMany({ take: 10 })
670
+ *
671
+ * // Only select the `id`
672
+ * const productSnapshotWithIdOnly = await prisma.productSnapshot.findMany({ select: { id: true } })
673
+ *
674
+ */
675
+ findMany<T extends ProductSnapshotFindManyArgs>(args?: Prisma.SelectSubset<T, ProductSnapshotFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
676
+ /**
677
+ * Create a ProductSnapshot.
678
+ * @param {ProductSnapshotCreateArgs} args - Arguments to create a ProductSnapshot.
679
+ * @example
680
+ * // Create one ProductSnapshot
681
+ * const ProductSnapshot = await prisma.productSnapshot.create({
682
+ * data: {
683
+ * // ... data to create a ProductSnapshot
684
+ * }
685
+ * })
686
+ *
687
+ */
688
+ create<T extends ProductSnapshotCreateArgs>(args: Prisma.SelectSubset<T, ProductSnapshotCreateArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
689
+ /**
690
+ * Create many ProductSnapshots.
691
+ * @param {ProductSnapshotCreateManyArgs} args - Arguments to create many ProductSnapshots.
692
+ * @example
693
+ * // Create many ProductSnapshots
694
+ * const productSnapshot = await prisma.productSnapshot.createMany({
695
+ * data: [
696
+ * // ... provide data here
697
+ * ]
698
+ * })
699
+ *
700
+ */
701
+ createMany<T extends ProductSnapshotCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductSnapshotCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
702
+ /**
703
+ * Create many ProductSnapshots and returns the data saved in the database.
704
+ * @param {ProductSnapshotCreateManyAndReturnArgs} args - Arguments to create many ProductSnapshots.
705
+ * @example
706
+ * // Create many ProductSnapshots
707
+ * const productSnapshot = await prisma.productSnapshot.createManyAndReturn({
708
+ * data: [
709
+ * // ... provide data here
710
+ * ]
711
+ * })
712
+ *
713
+ * // Create many ProductSnapshots and only return the `id`
714
+ * const productSnapshotWithIdOnly = await prisma.productSnapshot.createManyAndReturn({
715
+ * select: { id: true },
716
+ * data: [
717
+ * // ... provide data here
718
+ * ]
719
+ * })
720
+ * Note, that providing `undefined` is treated as the value not being there.
721
+ * Read more here: https://pris.ly/d/null-undefined
722
+ *
723
+ */
724
+ createManyAndReturn<T extends ProductSnapshotCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProductSnapshotCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
725
+ /**
726
+ * Delete a ProductSnapshot.
727
+ * @param {ProductSnapshotDeleteArgs} args - Arguments to delete one ProductSnapshot.
728
+ * @example
729
+ * // Delete one ProductSnapshot
730
+ * const ProductSnapshot = await prisma.productSnapshot.delete({
731
+ * where: {
732
+ * // ... filter to delete one ProductSnapshot
733
+ * }
734
+ * })
735
+ *
736
+ */
737
+ delete<T extends ProductSnapshotDeleteArgs>(args: Prisma.SelectSubset<T, ProductSnapshotDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
738
+ /**
739
+ * Update one ProductSnapshot.
740
+ * @param {ProductSnapshotUpdateArgs} args - Arguments to update one ProductSnapshot.
741
+ * @example
742
+ * // Update one ProductSnapshot
743
+ * const productSnapshot = await prisma.productSnapshot.update({
744
+ * where: {
745
+ * // ... provide filter here
746
+ * },
747
+ * data: {
748
+ * // ... provide data here
749
+ * }
750
+ * })
751
+ *
752
+ */
753
+ update<T extends ProductSnapshotUpdateArgs>(args: Prisma.SelectSubset<T, ProductSnapshotUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
754
+ /**
755
+ * Delete zero or more ProductSnapshots.
756
+ * @param {ProductSnapshotDeleteManyArgs} args - Arguments to filter ProductSnapshots to delete.
757
+ * @example
758
+ * // Delete a few ProductSnapshots
759
+ * const { count } = await prisma.productSnapshot.deleteMany({
760
+ * where: {
761
+ * // ... provide filter here
762
+ * }
763
+ * })
764
+ *
765
+ */
766
+ deleteMany<T extends ProductSnapshotDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductSnapshotDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
767
+ /**
768
+ * Update zero or more ProductSnapshots.
769
+ * Note, that providing `undefined` is treated as the value not being there.
770
+ * Read more here: https://pris.ly/d/null-undefined
771
+ * @param {ProductSnapshotUpdateManyArgs} args - Arguments to update one or more rows.
772
+ * @example
773
+ * // Update many ProductSnapshots
774
+ * const productSnapshot = await prisma.productSnapshot.updateMany({
775
+ * where: {
776
+ * // ... provide filter here
777
+ * },
778
+ * data: {
779
+ * // ... provide data here
780
+ * }
781
+ * })
782
+ *
783
+ */
784
+ updateMany<T extends ProductSnapshotUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductSnapshotUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
785
+ /**
786
+ * Update zero or more ProductSnapshots and returns the data updated in the database.
787
+ * @param {ProductSnapshotUpdateManyAndReturnArgs} args - Arguments to update many ProductSnapshots.
788
+ * @example
789
+ * // Update many ProductSnapshots
790
+ * const productSnapshot = await prisma.productSnapshot.updateManyAndReturn({
791
+ * where: {
792
+ * // ... provide filter here
793
+ * },
794
+ * data: [
795
+ * // ... provide data here
796
+ * ]
797
+ * })
798
+ *
799
+ * // Update zero or more ProductSnapshots and only return the `id`
800
+ * const productSnapshotWithIdOnly = await prisma.productSnapshot.updateManyAndReturn({
801
+ * select: { id: true },
802
+ * where: {
803
+ * // ... provide filter here
804
+ * },
805
+ * data: [
806
+ * // ... provide data here
807
+ * ]
808
+ * })
809
+ * Note, that providing `undefined` is treated as the value not being there.
810
+ * Read more here: https://pris.ly/d/null-undefined
811
+ *
812
+ */
813
+ updateManyAndReturn<T extends ProductSnapshotUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProductSnapshotUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
814
+ /**
815
+ * Create or update one ProductSnapshot.
816
+ * @param {ProductSnapshotUpsertArgs} args - Arguments to update or create a ProductSnapshot.
817
+ * @example
818
+ * // Update or create a ProductSnapshot
819
+ * const productSnapshot = await prisma.productSnapshot.upsert({
820
+ * create: {
821
+ * // ... data to create a ProductSnapshot
822
+ * },
823
+ * update: {
824
+ * // ... in case it already exists, update
825
+ * },
826
+ * where: {
827
+ * // ... the filter for the ProductSnapshot we want to update
828
+ * }
829
+ * })
830
+ */
831
+ upsert<T extends ProductSnapshotUpsertArgs>(args: Prisma.SelectSubset<T, ProductSnapshotUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
832
+ /**
833
+ * Count the number of ProductSnapshots.
834
+ * Note, that providing `undefined` is treated as the value not being there.
835
+ * Read more here: https://pris.ly/d/null-undefined
836
+ * @param {ProductSnapshotCountArgs} args - Arguments to filter ProductSnapshots to count.
837
+ * @example
838
+ * // Count the number of ProductSnapshots
839
+ * const count = await prisma.productSnapshot.count({
840
+ * where: {
841
+ * // ... the filter for the ProductSnapshots we want to count
842
+ * }
843
+ * })
844
+ **/
845
+ count<T extends ProductSnapshotCountArgs>(args?: Prisma.Subset<T, ProductSnapshotCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProductSnapshotCountAggregateOutputType> : number>;
846
+ /**
847
+ * Allows you to perform aggregations operations on a ProductSnapshot.
848
+ * Note, that providing `undefined` is treated as the value not being there.
849
+ * Read more here: https://pris.ly/d/null-undefined
850
+ * @param {ProductSnapshotAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
851
+ * @example
852
+ * // Ordered by age ascending
853
+ * // Where email contains prisma.io
854
+ * // Limited to the 10 users
855
+ * const aggregations = await prisma.user.aggregate({
856
+ * _avg: {
857
+ * age: true,
858
+ * },
859
+ * where: {
860
+ * email: {
861
+ * contains: "prisma.io",
862
+ * },
863
+ * },
864
+ * orderBy: {
865
+ * age: "asc",
866
+ * },
867
+ * take: 10,
868
+ * })
869
+ **/
870
+ aggregate<T extends ProductSnapshotAggregateArgs>(args: Prisma.Subset<T, ProductSnapshotAggregateArgs>): Prisma.PrismaPromise<GetProductSnapshotAggregateType<T>>;
871
+ /**
872
+ * Group by ProductSnapshot.
873
+ * Note, that providing `undefined` is treated as the value not being there.
874
+ * Read more here: https://pris.ly/d/null-undefined
875
+ * @param {ProductSnapshotGroupByArgs} args - Group by arguments.
876
+ * @example
877
+ * // Group by city, order by createdAt, get count
878
+ * const result = await prisma.user.groupBy({
879
+ * by: ['city', 'createdAt'],
880
+ * orderBy: {
881
+ * createdAt: true
882
+ * },
883
+ * _count: {
884
+ * _all: true
885
+ * },
886
+ * })
887
+ *
888
+ **/
889
+ groupBy<T extends ProductSnapshotGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
890
+ orderBy: ProductSnapshotGroupByArgs['orderBy'];
891
+ } : {
892
+ orderBy?: ProductSnapshotGroupByArgs['orderBy'];
893
+ }, 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 ? {
894
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
895
+ Error,
896
+ 'Field ',
897
+ P,
898
+ ` in "having" needs to be provided in "by"`
899
+ ];
900
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
901
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
902
+ }[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 ? {} : {
903
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
904
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
905
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
906
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ProductSnapshotGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductSnapshotGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
907
+ /**
908
+ * Fields of the ProductSnapshot model
909
+ */
910
+ readonly fields: ProductSnapshotFieldRefs;
911
+ }
912
+ /**
913
+ * The delegate class that acts as a "Promise-like" for ProductSnapshot.
914
+ * Why is this prefixed with `Prisma__`?
915
+ * Because we want to prevent naming conflicts as mentioned in
916
+ * https://github.com/prisma/prisma-client-js/issues/707
917
+ */
918
+ export interface Prisma__ProductSnapshotClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
919
+ readonly [Symbol.toStringTag]: "PrismaPromise";
920
+ product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
921
+ latestForProduct<T extends Prisma.ProductSnapshot$latestForProductArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductSnapshot$latestForProductArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
922
+ orderItems<T extends Prisma.ProductSnapshot$orderItemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductSnapshot$orderItemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
923
+ /**
924
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
925
+ * @param onfulfilled The callback to execute when the Promise is resolved.
926
+ * @param onrejected The callback to execute when the Promise is rejected.
927
+ * @returns A Promise for the completion of which ever callback is executed.
928
+ */
929
+ 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>;
930
+ /**
931
+ * Attaches a callback for only the rejection of the Promise.
932
+ * @param onrejected The callback to execute when the Promise is rejected.
933
+ * @returns A Promise for the completion of the callback.
934
+ */
935
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
936
+ /**
937
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
938
+ * resolved value cannot be modified from the callback.
939
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
940
+ * @returns A Promise for the completion of the callback.
941
+ */
942
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
943
+ }
944
+ /**
945
+ * Fields of the ProductSnapshot model
946
+ */
947
+ export interface ProductSnapshotFieldRefs {
948
+ readonly id: Prisma.FieldRef<"ProductSnapshot", 'String'>;
949
+ readonly productId: Prisma.FieldRef<"ProductSnapshot", 'String'>;
950
+ readonly data: Prisma.FieldRef<"ProductSnapshot", 'Json'>;
951
+ readonly createdAt: Prisma.FieldRef<"ProductSnapshot", 'DateTime'>;
952
+ readonly createdBy: Prisma.FieldRef<"ProductSnapshot", 'String'>;
953
+ }
954
+ /**
955
+ * ProductSnapshot findUnique
956
+ */
957
+ export type ProductSnapshotFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
958
+ /**
959
+ * Select specific fields to fetch from the ProductSnapshot
960
+ */
961
+ select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
962
+ /**
963
+ * Omit specific fields from the ProductSnapshot
964
+ */
965
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
966
+ /**
967
+ * Choose, which related nodes to fetch as well
968
+ */
969
+ include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
970
+ /**
971
+ * Filter, which ProductSnapshot to fetch.
972
+ */
973
+ where: Prisma.ProductSnapshotWhereUniqueInput;
974
+ };
975
+ /**
976
+ * ProductSnapshot findUniqueOrThrow
977
+ */
978
+ export type ProductSnapshotFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
979
+ /**
980
+ * Select specific fields to fetch from the ProductSnapshot
981
+ */
982
+ select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
983
+ /**
984
+ * Omit specific fields from the ProductSnapshot
985
+ */
986
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
987
+ /**
988
+ * Choose, which related nodes to fetch as well
989
+ */
990
+ include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
991
+ /**
992
+ * Filter, which ProductSnapshot to fetch.
993
+ */
994
+ where: Prisma.ProductSnapshotWhereUniqueInput;
995
+ };
996
+ /**
997
+ * ProductSnapshot findFirst
998
+ */
999
+ export type ProductSnapshotFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1000
+ /**
1001
+ * Select specific fields to fetch from the ProductSnapshot
1002
+ */
1003
+ select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
1004
+ /**
1005
+ * Omit specific fields from the ProductSnapshot
1006
+ */
1007
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
1008
+ /**
1009
+ * Choose, which related nodes to fetch as well
1010
+ */
1011
+ include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
1012
+ /**
1013
+ * Filter, which ProductSnapshot to fetch.
1014
+ */
1015
+ where?: Prisma.ProductSnapshotWhereInput;
1016
+ /**
1017
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1018
+ *
1019
+ * Determine the order of ProductSnapshots to fetch.
1020
+ */
1021
+ orderBy?: Prisma.ProductSnapshotOrderByWithRelationInput | Prisma.ProductSnapshotOrderByWithRelationInput[];
1022
+ /**
1023
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1024
+ *
1025
+ * Sets the position for searching for ProductSnapshots.
1026
+ */
1027
+ cursor?: Prisma.ProductSnapshotWhereUniqueInput;
1028
+ /**
1029
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1030
+ *
1031
+ * Take `±n` ProductSnapshots from the position of the cursor.
1032
+ */
1033
+ take?: number;
1034
+ /**
1035
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1036
+ *
1037
+ * Skip the first `n` ProductSnapshots.
1038
+ */
1039
+ skip?: number;
1040
+ /**
1041
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1042
+ *
1043
+ * Filter by unique combinations of ProductSnapshots.
1044
+ */
1045
+ distinct?: Prisma.ProductSnapshotScalarFieldEnum | Prisma.ProductSnapshotScalarFieldEnum[];
1046
+ };
1047
+ /**
1048
+ * ProductSnapshot findFirstOrThrow
1049
+ */
1050
+ export type ProductSnapshotFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1051
+ /**
1052
+ * Select specific fields to fetch from the ProductSnapshot
1053
+ */
1054
+ select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
1055
+ /**
1056
+ * Omit specific fields from the ProductSnapshot
1057
+ */
1058
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
1059
+ /**
1060
+ * Choose, which related nodes to fetch as well
1061
+ */
1062
+ include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
1063
+ /**
1064
+ * Filter, which ProductSnapshot to fetch.
1065
+ */
1066
+ where?: Prisma.ProductSnapshotWhereInput;
1067
+ /**
1068
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1069
+ *
1070
+ * Determine the order of ProductSnapshots to fetch.
1071
+ */
1072
+ orderBy?: Prisma.ProductSnapshotOrderByWithRelationInput | Prisma.ProductSnapshotOrderByWithRelationInput[];
1073
+ /**
1074
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1075
+ *
1076
+ * Sets the position for searching for ProductSnapshots.
1077
+ */
1078
+ cursor?: Prisma.ProductSnapshotWhereUniqueInput;
1079
+ /**
1080
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1081
+ *
1082
+ * Take `±n` ProductSnapshots from the position of the cursor.
1083
+ */
1084
+ take?: number;
1085
+ /**
1086
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1087
+ *
1088
+ * Skip the first `n` ProductSnapshots.
1089
+ */
1090
+ skip?: number;
1091
+ /**
1092
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1093
+ *
1094
+ * Filter by unique combinations of ProductSnapshots.
1095
+ */
1096
+ distinct?: Prisma.ProductSnapshotScalarFieldEnum | Prisma.ProductSnapshotScalarFieldEnum[];
1097
+ };
1098
+ /**
1099
+ * ProductSnapshot findMany
1100
+ */
1101
+ export type ProductSnapshotFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1102
+ /**
1103
+ * Select specific fields to fetch from the ProductSnapshot
1104
+ */
1105
+ select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
1106
+ /**
1107
+ * Omit specific fields from the ProductSnapshot
1108
+ */
1109
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
1110
+ /**
1111
+ * Choose, which related nodes to fetch as well
1112
+ */
1113
+ include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
1114
+ /**
1115
+ * Filter, which ProductSnapshots to fetch.
1116
+ */
1117
+ where?: Prisma.ProductSnapshotWhereInput;
1118
+ /**
1119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1120
+ *
1121
+ * Determine the order of ProductSnapshots to fetch.
1122
+ */
1123
+ orderBy?: Prisma.ProductSnapshotOrderByWithRelationInput | Prisma.ProductSnapshotOrderByWithRelationInput[];
1124
+ /**
1125
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1126
+ *
1127
+ * Sets the position for listing ProductSnapshots.
1128
+ */
1129
+ cursor?: Prisma.ProductSnapshotWhereUniqueInput;
1130
+ /**
1131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1132
+ *
1133
+ * Take `±n` ProductSnapshots from the position of the cursor.
1134
+ */
1135
+ take?: number;
1136
+ /**
1137
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1138
+ *
1139
+ * Skip the first `n` ProductSnapshots.
1140
+ */
1141
+ skip?: number;
1142
+ distinct?: Prisma.ProductSnapshotScalarFieldEnum | Prisma.ProductSnapshotScalarFieldEnum[];
1143
+ };
1144
+ /**
1145
+ * ProductSnapshot create
1146
+ */
1147
+ export type ProductSnapshotCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1148
+ /**
1149
+ * Select specific fields to fetch from the ProductSnapshot
1150
+ */
1151
+ select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
1152
+ /**
1153
+ * Omit specific fields from the ProductSnapshot
1154
+ */
1155
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
1156
+ /**
1157
+ * Choose, which related nodes to fetch as well
1158
+ */
1159
+ include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
1160
+ /**
1161
+ * The data needed to create a ProductSnapshot.
1162
+ */
1163
+ data: Prisma.XOR<Prisma.ProductSnapshotCreateInput, Prisma.ProductSnapshotUncheckedCreateInput>;
1164
+ };
1165
+ /**
1166
+ * ProductSnapshot createMany
1167
+ */
1168
+ export type ProductSnapshotCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1169
+ /**
1170
+ * The data used to create many ProductSnapshots.
1171
+ */
1172
+ data: Prisma.ProductSnapshotCreateManyInput | Prisma.ProductSnapshotCreateManyInput[];
1173
+ skipDuplicates?: boolean;
1174
+ };
1175
+ /**
1176
+ * ProductSnapshot createManyAndReturn
1177
+ */
1178
+ export type ProductSnapshotCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1179
+ /**
1180
+ * Select specific fields to fetch from the ProductSnapshot
1181
+ */
1182
+ select?: Prisma.ProductSnapshotSelectCreateManyAndReturn<ExtArgs> | null;
1183
+ /**
1184
+ * Omit specific fields from the ProductSnapshot
1185
+ */
1186
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
1187
+ /**
1188
+ * The data used to create many ProductSnapshots.
1189
+ */
1190
+ data: Prisma.ProductSnapshotCreateManyInput | Prisma.ProductSnapshotCreateManyInput[];
1191
+ skipDuplicates?: boolean;
1192
+ /**
1193
+ * Choose, which related nodes to fetch as well
1194
+ */
1195
+ include?: Prisma.ProductSnapshotIncludeCreateManyAndReturn<ExtArgs> | null;
1196
+ };
1197
+ /**
1198
+ * ProductSnapshot update
1199
+ */
1200
+ export type ProductSnapshotUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1201
+ /**
1202
+ * Select specific fields to fetch from the ProductSnapshot
1203
+ */
1204
+ select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
1205
+ /**
1206
+ * Omit specific fields from the ProductSnapshot
1207
+ */
1208
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
1209
+ /**
1210
+ * Choose, which related nodes to fetch as well
1211
+ */
1212
+ include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
1213
+ /**
1214
+ * The data needed to update a ProductSnapshot.
1215
+ */
1216
+ data: Prisma.XOR<Prisma.ProductSnapshotUpdateInput, Prisma.ProductSnapshotUncheckedUpdateInput>;
1217
+ /**
1218
+ * Choose, which ProductSnapshot to update.
1219
+ */
1220
+ where: Prisma.ProductSnapshotWhereUniqueInput;
1221
+ };
1222
+ /**
1223
+ * ProductSnapshot updateMany
1224
+ */
1225
+ export type ProductSnapshotUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1226
+ /**
1227
+ * The data used to update ProductSnapshots.
1228
+ */
1229
+ data: Prisma.XOR<Prisma.ProductSnapshotUpdateManyMutationInput, Prisma.ProductSnapshotUncheckedUpdateManyInput>;
1230
+ /**
1231
+ * Filter which ProductSnapshots to update
1232
+ */
1233
+ where?: Prisma.ProductSnapshotWhereInput;
1234
+ /**
1235
+ * Limit how many ProductSnapshots to update.
1236
+ */
1237
+ limit?: number;
1238
+ };
1239
+ /**
1240
+ * ProductSnapshot updateManyAndReturn
1241
+ */
1242
+ export type ProductSnapshotUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1243
+ /**
1244
+ * Select specific fields to fetch from the ProductSnapshot
1245
+ */
1246
+ select?: Prisma.ProductSnapshotSelectUpdateManyAndReturn<ExtArgs> | null;
1247
+ /**
1248
+ * Omit specific fields from the ProductSnapshot
1249
+ */
1250
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
1251
+ /**
1252
+ * The data used to update ProductSnapshots.
1253
+ */
1254
+ data: Prisma.XOR<Prisma.ProductSnapshotUpdateManyMutationInput, Prisma.ProductSnapshotUncheckedUpdateManyInput>;
1255
+ /**
1256
+ * Filter which ProductSnapshots to update
1257
+ */
1258
+ where?: Prisma.ProductSnapshotWhereInput;
1259
+ /**
1260
+ * Limit how many ProductSnapshots to update.
1261
+ */
1262
+ limit?: number;
1263
+ /**
1264
+ * Choose, which related nodes to fetch as well
1265
+ */
1266
+ include?: Prisma.ProductSnapshotIncludeUpdateManyAndReturn<ExtArgs> | null;
1267
+ };
1268
+ /**
1269
+ * ProductSnapshot upsert
1270
+ */
1271
+ export type ProductSnapshotUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1272
+ /**
1273
+ * Select specific fields to fetch from the ProductSnapshot
1274
+ */
1275
+ select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
1276
+ /**
1277
+ * Omit specific fields from the ProductSnapshot
1278
+ */
1279
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
1280
+ /**
1281
+ * Choose, which related nodes to fetch as well
1282
+ */
1283
+ include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
1284
+ /**
1285
+ * The filter to search for the ProductSnapshot to update in case it exists.
1286
+ */
1287
+ where: Prisma.ProductSnapshotWhereUniqueInput;
1288
+ /**
1289
+ * In case the ProductSnapshot found by the `where` argument doesn't exist, create a new ProductSnapshot with this data.
1290
+ */
1291
+ create: Prisma.XOR<Prisma.ProductSnapshotCreateInput, Prisma.ProductSnapshotUncheckedCreateInput>;
1292
+ /**
1293
+ * In case the ProductSnapshot was found with the provided `where` argument, update it with this data.
1294
+ */
1295
+ update: Prisma.XOR<Prisma.ProductSnapshotUpdateInput, Prisma.ProductSnapshotUncheckedUpdateInput>;
1296
+ };
1297
+ /**
1298
+ * ProductSnapshot delete
1299
+ */
1300
+ export type ProductSnapshotDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1301
+ /**
1302
+ * Select specific fields to fetch from the ProductSnapshot
1303
+ */
1304
+ select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
1305
+ /**
1306
+ * Omit specific fields from the ProductSnapshot
1307
+ */
1308
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
1309
+ /**
1310
+ * Choose, which related nodes to fetch as well
1311
+ */
1312
+ include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
1313
+ /**
1314
+ * Filter which ProductSnapshot to delete.
1315
+ */
1316
+ where: Prisma.ProductSnapshotWhereUniqueInput;
1317
+ };
1318
+ /**
1319
+ * ProductSnapshot deleteMany
1320
+ */
1321
+ export type ProductSnapshotDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1322
+ /**
1323
+ * Filter which ProductSnapshots to delete
1324
+ */
1325
+ where?: Prisma.ProductSnapshotWhereInput;
1326
+ /**
1327
+ * Limit how many ProductSnapshots to delete.
1328
+ */
1329
+ limit?: number;
1330
+ };
1331
+ /**
1332
+ * ProductSnapshot.latestForProduct
1333
+ */
1334
+ export type ProductSnapshot$latestForProductArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1335
+ /**
1336
+ * Select specific fields to fetch from the Product
1337
+ */
1338
+ select?: Prisma.ProductSelect<ExtArgs> | null;
1339
+ /**
1340
+ * Omit specific fields from the Product
1341
+ */
1342
+ omit?: Prisma.ProductOmit<ExtArgs> | null;
1343
+ /**
1344
+ * Choose, which related nodes to fetch as well
1345
+ */
1346
+ include?: Prisma.ProductInclude<ExtArgs> | null;
1347
+ where?: Prisma.ProductWhereInput;
1348
+ };
1349
+ /**
1350
+ * ProductSnapshot.orderItems
1351
+ */
1352
+ export type ProductSnapshot$orderItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1353
+ /**
1354
+ * Select specific fields to fetch from the OrderItem
1355
+ */
1356
+ select?: Prisma.OrderItemSelect<ExtArgs> | null;
1357
+ /**
1358
+ * Omit specific fields from the OrderItem
1359
+ */
1360
+ omit?: Prisma.OrderItemOmit<ExtArgs> | null;
1361
+ /**
1362
+ * Choose, which related nodes to fetch as well
1363
+ */
1364
+ include?: Prisma.OrderItemInclude<ExtArgs> | null;
1365
+ where?: Prisma.OrderItemWhereInput;
1366
+ orderBy?: Prisma.OrderItemOrderByWithRelationInput | Prisma.OrderItemOrderByWithRelationInput[];
1367
+ cursor?: Prisma.OrderItemWhereUniqueInput;
1368
+ take?: number;
1369
+ skip?: number;
1370
+ distinct?: Prisma.OrderItemScalarFieldEnum | Prisma.OrderItemScalarFieldEnum[];
1371
+ };
1372
+ /**
1373
+ * ProductSnapshot without action
1374
+ */
1375
+ export type ProductSnapshotDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1376
+ /**
1377
+ * Select specific fields to fetch from the ProductSnapshot
1378
+ */
1379
+ select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
1380
+ /**
1381
+ * Omit specific fields from the ProductSnapshot
1382
+ */
1383
+ omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
1384
+ /**
1385
+ * Choose, which related nodes to fetch as well
1386
+ */
1387
+ include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
1388
+ };
1389
+ export {};