@shophost/rest-api 2.0.30 → 2.0.32

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 (352) hide show
  1. package/package.json +18 -13
  2. package/scripts/minify.mjs +123 -0
  3. package/src/app.js +1 -53
  4. package/src/core/auth/auth.schema.js +1 -41
  5. package/src/core/auth/auth.util.js +1 -44
  6. package/src/core/auth/better-auth.lib.js +1 -100
  7. package/src/core/auth/generate-password-hash.util.d.ts +0 -3
  8. package/src/core/auth/generate-password-hash.util.js +1 -30
  9. package/src/core/auth/headers.schema.js +1 -22
  10. package/src/core/auth/user.schema.js +1 -30
  11. package/src/core/db/__generated__/client/browser.d.ts +0 -128
  12. package/src/core/db/__generated__/client/browser.js +1 -18
  13. package/src/core/db/__generated__/client/client.d.ts +0 -143
  14. package/src/core/db/__generated__/client/client.js +1 -35
  15. package/src/core/db/__generated__/client/commonInputTypes.js +1 -11
  16. package/src/core/db/__generated__/client/enums.js +1 -200
  17. package/src/core/db/__generated__/client/internal/class.d.ts +0 -343
  18. package/src/core/db/__generated__/client/internal/class.js +1 -55
  19. package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +0 -234
  20. package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -541
  21. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +0 -15
  22. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -512
  23. package/src/core/db/__generated__/client/models/Account.d.ts +0 -628
  24. package/src/core/db/__generated__/client/models/Account.js +1 -2
  25. package/src/core/db/__generated__/client/models/Address.d.ts +0 -701
  26. package/src/core/db/__generated__/client/models/Address.js +1 -2
  27. package/src/core/db/__generated__/client/models/Campaign.d.ts +0 -638
  28. package/src/core/db/__generated__/client/models/Campaign.js +1 -2
  29. package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +0 -634
  30. package/src/core/db/__generated__/client/models/ClosingTimes.js +1 -2
  31. package/src/core/db/__generated__/client/models/File.d.ts +0 -752
  32. package/src/core/db/__generated__/client/models/File.js +1 -2
  33. package/src/core/db/__generated__/client/models/Invitation.d.ts +0 -628
  34. package/src/core/db/__generated__/client/models/Invitation.js +1 -2
  35. package/src/core/db/__generated__/client/models/LegalEntity.d.ts +0 -652
  36. package/src/core/db/__generated__/client/models/LegalEntity.js +1 -2
  37. package/src/core/db/__generated__/client/models/Manufacturer.d.ts +0 -679
  38. package/src/core/db/__generated__/client/models/Manufacturer.js +1 -2
  39. package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +0 -628
  40. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +1 -2
  41. package/src/core/db/__generated__/client/models/Member.d.ts +0 -628
  42. package/src/core/db/__generated__/client/models/Member.js +1 -2
  43. package/src/core/db/__generated__/client/models/Modifier.d.ts +0 -662
  44. package/src/core/db/__generated__/client/models/Modifier.js +1 -2
  45. package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +0 -686
  46. package/src/core/db/__generated__/client/models/ModifierGroup.js +1 -2
  47. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +0 -628
  48. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +1 -2
  49. package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +0 -634
  50. package/src/core/db/__generated__/client/models/OpeningTimes.js +1 -2
  51. package/src/core/db/__generated__/client/models/Order.d.ts +0 -700
  52. package/src/core/db/__generated__/client/models/Order.js +1 -2
  53. package/src/core/db/__generated__/client/models/OrderItem.d.ts +0 -686
  54. package/src/core/db/__generated__/client/models/OrderItem.js +1 -2
  55. package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +0 -628
  56. package/src/core/db/__generated__/client/models/OrderItemTranslation.js +1 -2
  57. package/src/core/db/__generated__/client/models/Organization.d.ts +0 -811
  58. package/src/core/db/__generated__/client/models/Organization.js +1 -2
  59. package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +0 -676
  60. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +1 -2
  61. package/src/core/db/__generated__/client/models/Payment.d.ts +0 -668
  62. package/src/core/db/__generated__/client/models/Payment.js +1 -2
  63. package/src/core/db/__generated__/client/models/PaymentSession.d.ts +0 -638
  64. package/src/core/db/__generated__/client/models/PaymentSession.js +1 -2
  65. package/src/core/db/__generated__/client/models/Product.d.ts +0 -746
  66. package/src/core/db/__generated__/client/models/Product.js +1 -2
  67. package/src/core/db/__generated__/client/models/ProductCategory.d.ts +0 -689
  68. package/src/core/db/__generated__/client/models/ProductCategory.js +1 -2
  69. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +0 -628
  70. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +1 -2
  71. package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +0 -664
  72. package/src/core/db/__generated__/client/models/ProductSnapshot.js +1 -2
  73. package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +0 -628
  74. package/src/core/db/__generated__/client/models/ProductTranslation.js +1 -2
  75. package/src/core/db/__generated__/client/models/Reservation.d.ts +0 -650
  76. package/src/core/db/__generated__/client/models/Reservation.js +1 -2
  77. package/src/core/db/__generated__/client/models/Session.d.ts +0 -628
  78. package/src/core/db/__generated__/client/models/Session.js +1 -2
  79. package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +0 -679
  80. package/src/core/db/__generated__/client/models/ShippingMethod.js +1 -2
  81. package/src/core/db/__generated__/client/models/ShippingZone.d.ts +0 -638
  82. package/src/core/db/__generated__/client/models/ShippingZone.js +1 -2
  83. package/src/core/db/__generated__/client/models/User.d.ts +0 -736
  84. package/src/core/db/__generated__/client/models/User.js +1 -2
  85. package/src/core/db/__generated__/client/models/Verification.d.ts +0 -592
  86. package/src/core/db/__generated__/client/models/Verification.js +1 -2
  87. package/src/core/db/__generated__/client/models.js +1 -2
  88. package/src/core/db/index.js +1 -2
  89. package/src/core/exceptions/http-exception.js +1 -9
  90. package/src/core/hono/hono.js +1 -123
  91. package/src/core/lib/prisma.d.ts +9 -1
  92. package/src/core/lib/prisma.js +1 -11
  93. package/src/core/logging/pino.js +1 -5
  94. package/src/core/notifications/email.service.d.ts +0 -15
  95. package/src/core/notifications/email.service.js +1 -116
  96. package/src/core/openapi/openapi.lib.js +1 -26
  97. package/src/core/types/google-maps.types.js +1 -2
  98. package/src/core/utils/currency.util.js +1 -11
  99. package/src/core/utils/env.util.js +1 -8
  100. package/src/core/utils/object.util.d.ts +0 -10
  101. package/src/core/utils/object.util.js +1 -39
  102. package/src/core/utils/translations.util.js +0 -2
  103. package/src/core/utils/zod.util.d.ts +0 -12
  104. package/src/core/utils/zod.util.js +1 -85
  105. package/src/db.js +1 -3
  106. package/src/features/access/access.handler.js +1 -91
  107. package/src/features/access/access.route.js +1 -220
  108. package/src/features/access/access.schema.js +1 -108
  109. package/src/features/access/access.service.js +1 -294
  110. package/src/features/cart/cart.handler.js +1 -17
  111. package/src/features/cart/cart.route.js +1 -32
  112. package/src/features/cart/cart.schema.js +1 -39
  113. package/src/features/cart/cart.service.d.ts +0 -7
  114. package/src/features/cart/cart.service.js +1 -97
  115. package/src/features/cart/cart.util.js +1 -76
  116. package/src/features/file/file.handler.js +1 -23
  117. package/src/features/file/file.route.js +1 -34
  118. package/src/features/file/file.schema.js +1 -77
  119. package/src/features/file/file.service.d.ts +0 -6
  120. package/src/features/file/file.service.js +1 -66
  121. package/src/features/health/health.handler.js +1 -10
  122. package/src/features/health/health.route.js +1 -25
  123. package/src/features/index.js +1 -16
  124. package/src/features/location/location.handler.js +1 -25
  125. package/src/features/location/location.route.js +1 -56
  126. package/src/features/location/location.schema.js +1 -50
  127. package/src/features/location/location.service.d.ts +0 -3
  128. package/src/features/location/location.service.js +1 -141
  129. package/src/features/manufacturer/manufacturer.handler.js +1 -53
  130. package/src/features/manufacturer/manufacturer.route.js +1 -97
  131. package/src/features/manufacturer/manufacturer.schema.js +1 -125
  132. package/src/features/manufacturer/manufacturer.service.d.ts +0 -19
  133. package/src/features/manufacturer/manufacturer.service.js +1 -190
  134. package/src/features/order/emails/order-confirmation.email.js +1 -229
  135. package/src/features/order/emails/order-notification.email.js +1 -229
  136. package/src/features/order/fulfilment.schema.js +1 -3
  137. package/src/features/order/order.handler.js +1 -54
  138. package/src/features/order/order.route.js +1 -111
  139. package/src/features/order/order.schema.js +1 -158
  140. package/src/features/order/order.service.d.ts +0 -15
  141. package/src/features/order/order.service.js +1 -306
  142. package/src/features/order/recipient.schema.js +1 -38
  143. package/src/features/organization/legal-entity.schema.js +1 -83
  144. package/src/features/organization/organization-configuration.schema.js +1 -115
  145. package/src/features/organization/organization.handler.js +1 -48
  146. package/src/features/organization/organization.route.js +1 -84
  147. package/src/features/organization/organization.schema.js +1 -64
  148. package/src/features/organization/organization.service.d.ts +0 -15
  149. package/src/features/organization/organization.service.js +1 -334
  150. package/src/features/payment/payment.handler.js +1 -16
  151. package/src/features/payment/payment.route.js +1 -22
  152. package/src/features/payment/payment.schema.js +1 -46
  153. package/src/features/payment/payment.service.js +1 -100
  154. package/src/features/payment/stripe.service.js +1 -164
  155. package/src/features/product/product-modifier.schema.js +1 -84
  156. package/src/features/product/product.handler.js +1 -87
  157. package/src/features/product/product.route.js +1 -179
  158. package/src/features/product/product.schema.js +1 -143
  159. package/src/features/product/product.service.d.ts +0 -25
  160. package/src/features/product/product.service.js +1 -440
  161. package/src/features/product-category/product-category.handler.js +1 -59
  162. package/src/features/product-category/product-category.route.js +1 -139
  163. package/src/features/product-category/product-category.schema.js +1 -86
  164. package/src/features/product-category/product-category.service.d.ts +0 -22
  165. package/src/features/product-category/product-category.service.js +1 -220
  166. package/src/features/reservation/emails/reservation-cancellation.email.js +1 -82
  167. package/src/features/reservation/emails/reservation-confirmation.email.js +1 -82
  168. package/src/features/reservation/emails/reservation-notification.email.js +1 -93
  169. package/src/features/reservation/reservation.handler.js +1 -65
  170. package/src/features/reservation/reservation.route.js +1 -167
  171. package/src/features/reservation/reservation.schema.js +1 -51
  172. package/src/features/reservation/reservation.service.d.ts +0 -18
  173. package/src/features/reservation/reservation.service.js +1 -231
  174. package/src/features/shipping/shipping.handler.js +1 -32
  175. package/src/features/shipping/shipping.route.js +1 -51
  176. package/src/features/shipping/shipping.service.d.ts +0 -7
  177. package/src/features/shipping/shipping.service.js +1 -96
  178. package/src/features/shipping-method/shipping-method.handler.js +1 -60
  179. package/src/features/shipping-method/shipping-method.route.js +1 -144
  180. package/src/features/shipping-method/shipping-method.schema.js +1 -48
  181. package/src/features/shipping-method/shipping-method.service.d.ts +0 -25
  182. package/src/features/shipping-method/shipping-method.service.js +1 -229
  183. package/src/features/shipping-method/shipping-zone.schema.js +1 -31
  184. package/src/features/webhook/webhook.handler.js +1 -50
  185. package/src/features/webhook/webhook.route.js +1 -33
  186. package/src/index.js +1 -6
  187. package/src/integrations/next.js +1 -82
  188. package/src/schemas/address.schema.d.ts +0 -8
  189. package/src/schemas/address.schema.js +1 -112
  190. package/src/schemas/currency.schema.d.ts +0 -42
  191. package/src/schemas/currency.schema.js +1 -118
  192. package/src/schemas/error.schema.js +1 -12
  193. package/src/schemas/index.js +1 -29
  194. package/src/schemas/locales.schema.js +1 -238
  195. package/src/schemas/number.schema.js +1 -29
  196. package/src/schemas/pagination.schema.js +1 -54
  197. package/src/schemas/params.schema.js +1 -20
  198. package/src/schemas/queries.schema.js +1 -6
  199. package/src/test/global-setup.d.ts +1 -0
  200. package/src/test/global-setup.js +1 -0
  201. package/src/test/integration/api-fixtures.d.ts +4 -16
  202. package/src/test/integration/api-fixtures.js +1 -225
  203. package/src/test/integration/seed.d.ts +81 -0
  204. package/src/test/integration/seed.js +1 -0
  205. package/src/test/integration/test-helpers.d.ts +107 -924
  206. package/src/test/integration/test-helpers.js +1 -1100
  207. package/src/test/setup-test-env.d.ts +1 -1
  208. package/src/test/setup-test-env.js +1 -29
  209. package/src/app.js.map +0 -1
  210. package/src/core/auth/auth.schema.js.map +0 -1
  211. package/src/core/auth/auth.util.js.map +0 -1
  212. package/src/core/auth/better-auth.lib.js.map +0 -1
  213. package/src/core/auth/generate-password-hash.util.js.map +0 -1
  214. package/src/core/auth/headers.schema.js.map +0 -1
  215. package/src/core/auth/user.schema.js.map +0 -1
  216. package/src/core/db/__generated__/client/browser.js.map +0 -1
  217. package/src/core/db/__generated__/client/client.js.map +0 -1
  218. package/src/core/db/__generated__/client/commonInputTypes.js.map +0 -1
  219. package/src/core/db/__generated__/client/enums.js.map +0 -1
  220. package/src/core/db/__generated__/client/internal/class.js.map +0 -1
  221. package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +0 -1
  222. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +0 -1
  223. package/src/core/db/__generated__/client/models/Account.js.map +0 -1
  224. package/src/core/db/__generated__/client/models/Address.js.map +0 -1
  225. package/src/core/db/__generated__/client/models/Campaign.js.map +0 -1
  226. package/src/core/db/__generated__/client/models/ClosingTimes.js.map +0 -1
  227. package/src/core/db/__generated__/client/models/File.js.map +0 -1
  228. package/src/core/db/__generated__/client/models/Invitation.js.map +0 -1
  229. package/src/core/db/__generated__/client/models/LegalEntity.js.map +0 -1
  230. package/src/core/db/__generated__/client/models/Manufacturer.js.map +0 -1
  231. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +0 -1
  232. package/src/core/db/__generated__/client/models/Member.js.map +0 -1
  233. package/src/core/db/__generated__/client/models/Modifier.js.map +0 -1
  234. package/src/core/db/__generated__/client/models/ModifierGroup.js.map +0 -1
  235. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +0 -1
  236. package/src/core/db/__generated__/client/models/OpeningTimes.js.map +0 -1
  237. package/src/core/db/__generated__/client/models/Order.js.map +0 -1
  238. package/src/core/db/__generated__/client/models/OrderItem.js.map +0 -1
  239. package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +0 -1
  240. package/src/core/db/__generated__/client/models/Organization.js.map +0 -1
  241. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +0 -1
  242. package/src/core/db/__generated__/client/models/Payment.js.map +0 -1
  243. package/src/core/db/__generated__/client/models/PaymentSession.js.map +0 -1
  244. package/src/core/db/__generated__/client/models/Product.js.map +0 -1
  245. package/src/core/db/__generated__/client/models/ProductCategory.js.map +0 -1
  246. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +0 -1
  247. package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +0 -1
  248. package/src/core/db/__generated__/client/models/ProductTranslation.js.map +0 -1
  249. package/src/core/db/__generated__/client/models/Reservation.js.map +0 -1
  250. package/src/core/db/__generated__/client/models/Session.js.map +0 -1
  251. package/src/core/db/__generated__/client/models/ShippingMethod.js.map +0 -1
  252. package/src/core/db/__generated__/client/models/ShippingZone.js.map +0 -1
  253. package/src/core/db/__generated__/client/models/User.js.map +0 -1
  254. package/src/core/db/__generated__/client/models/Verification.js.map +0 -1
  255. package/src/core/db/__generated__/client/models.js.map +0 -1
  256. package/src/core/db/index.js.map +0 -1
  257. package/src/core/exceptions/http-exception.js.map +0 -1
  258. package/src/core/hono/hono.js.map +0 -1
  259. package/src/core/lib/prisma.js.map +0 -1
  260. package/src/core/logging/pino.js.map +0 -1
  261. package/src/core/notifications/email.service.js.map +0 -1
  262. package/src/core/openapi/openapi.lib.js.map +0 -1
  263. package/src/core/types/google-maps.types.js.map +0 -1
  264. package/src/core/utils/currency.util.js.map +0 -1
  265. package/src/core/utils/env.util.js.map +0 -1
  266. package/src/core/utils/object.util.js.map +0 -1
  267. package/src/core/utils/translations.util.js.map +0 -1
  268. package/src/core/utils/zod.util.js.map +0 -1
  269. package/src/db.js.map +0 -1
  270. package/src/features/access/access.handler.js.map +0 -1
  271. package/src/features/access/access.route.js.map +0 -1
  272. package/src/features/access/access.schema.js.map +0 -1
  273. package/src/features/access/access.service.js.map +0 -1
  274. package/src/features/cart/cart.handler.js.map +0 -1
  275. package/src/features/cart/cart.route.js.map +0 -1
  276. package/src/features/cart/cart.schema.js.map +0 -1
  277. package/src/features/cart/cart.service.js.map +0 -1
  278. package/src/features/cart/cart.util.js.map +0 -1
  279. package/src/features/file/file.handler.js.map +0 -1
  280. package/src/features/file/file.route.js.map +0 -1
  281. package/src/features/file/file.schema.js.map +0 -1
  282. package/src/features/file/file.service.js.map +0 -1
  283. package/src/features/health/health.handler.js.map +0 -1
  284. package/src/features/health/health.route.js.map +0 -1
  285. package/src/features/index.js.map +0 -1
  286. package/src/features/location/location.handler.js.map +0 -1
  287. package/src/features/location/location.route.js.map +0 -1
  288. package/src/features/location/location.schema.js.map +0 -1
  289. package/src/features/location/location.service.js.map +0 -1
  290. package/src/features/manufacturer/manufacturer.handler.js.map +0 -1
  291. package/src/features/manufacturer/manufacturer.route.js.map +0 -1
  292. package/src/features/manufacturer/manufacturer.schema.js.map +0 -1
  293. package/src/features/manufacturer/manufacturer.service.js.map +0 -1
  294. package/src/features/order/emails/order-confirmation.email.js.map +0 -1
  295. package/src/features/order/emails/order-notification.email.js.map +0 -1
  296. package/src/features/order/fulfilment.schema.js.map +0 -1
  297. package/src/features/order/order.handler.js.map +0 -1
  298. package/src/features/order/order.route.js.map +0 -1
  299. package/src/features/order/order.schema.js.map +0 -1
  300. package/src/features/order/order.service.js.map +0 -1
  301. package/src/features/order/recipient.schema.js.map +0 -1
  302. package/src/features/organization/legal-entity.schema.js.map +0 -1
  303. package/src/features/organization/organization-configuration.schema.js.map +0 -1
  304. package/src/features/organization/organization.handler.js.map +0 -1
  305. package/src/features/organization/organization.route.js.map +0 -1
  306. package/src/features/organization/organization.schema.js.map +0 -1
  307. package/src/features/organization/organization.service.js.map +0 -1
  308. package/src/features/payment/payment.handler.js.map +0 -1
  309. package/src/features/payment/payment.route.js.map +0 -1
  310. package/src/features/payment/payment.schema.js.map +0 -1
  311. package/src/features/payment/payment.service.js.map +0 -1
  312. package/src/features/payment/stripe.service.js.map +0 -1
  313. package/src/features/product/product-modifier.schema.js.map +0 -1
  314. package/src/features/product/product.handler.js.map +0 -1
  315. package/src/features/product/product.route.js.map +0 -1
  316. package/src/features/product/product.schema.js.map +0 -1
  317. package/src/features/product/product.service.js.map +0 -1
  318. package/src/features/product-category/product-category.handler.js.map +0 -1
  319. package/src/features/product-category/product-category.route.js.map +0 -1
  320. package/src/features/product-category/product-category.schema.js.map +0 -1
  321. package/src/features/product-category/product-category.service.js.map +0 -1
  322. package/src/features/reservation/emails/reservation-cancellation.email.js.map +0 -1
  323. package/src/features/reservation/emails/reservation-confirmation.email.js.map +0 -1
  324. package/src/features/reservation/emails/reservation-notification.email.js.map +0 -1
  325. package/src/features/reservation/reservation.handler.js.map +0 -1
  326. package/src/features/reservation/reservation.route.js.map +0 -1
  327. package/src/features/reservation/reservation.schema.js.map +0 -1
  328. package/src/features/reservation/reservation.service.js.map +0 -1
  329. package/src/features/shipping/shipping.handler.js.map +0 -1
  330. package/src/features/shipping/shipping.route.js.map +0 -1
  331. package/src/features/shipping/shipping.service.js.map +0 -1
  332. package/src/features/shipping-method/shipping-method.handler.js.map +0 -1
  333. package/src/features/shipping-method/shipping-method.route.js.map +0 -1
  334. package/src/features/shipping-method/shipping-method.schema.js.map +0 -1
  335. package/src/features/shipping-method/shipping-method.service.js.map +0 -1
  336. package/src/features/shipping-method/shipping-zone.schema.js.map +0 -1
  337. package/src/features/webhook/webhook.handler.js.map +0 -1
  338. package/src/features/webhook/webhook.route.js.map +0 -1
  339. package/src/index.js.map +0 -1
  340. package/src/integrations/next.js.map +0 -1
  341. package/src/schemas/address.schema.js.map +0 -1
  342. package/src/schemas/currency.schema.js.map +0 -1
  343. package/src/schemas/error.schema.js.map +0 -1
  344. package/src/schemas/index.js.map +0 -1
  345. package/src/schemas/locales.schema.js.map +0 -1
  346. package/src/schemas/number.schema.js.map +0 -1
  347. package/src/schemas/pagination.schema.js.map +0 -1
  348. package/src/schemas/params.schema.js.map +0 -1
  349. package/src/schemas/queries.schema.js.map +0 -1
  350. package/src/test/integration/api-fixtures.js.map +0 -1
  351. package/src/test/integration/test-helpers.js.map +0 -1
  352. package/src/test/setup-test-env.js.map +0 -1
@@ -1,9 +1,5 @@
1
1
  import type * as runtime from "@prisma/client/runtime/client";
2
2
  import type * as Prisma from "../internal/prismaNamespace";
3
- /**
4
- * Model Product
5
- *
6
- */
7
3
  export type ProductModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductPayload>;
8
4
  export type AggregateProduct = {
9
5
  _count: ProductCountAggregateOutputType | null;
@@ -155,63 +151,15 @@ export type ProductCountAggregateInputType = {
155
151
  _all?: true;
156
152
  };
157
153
  export type ProductAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
158
- /**
159
- * Filter which Product to aggregate.
160
- */
161
154
  where?: Prisma.ProductWhereInput;
162
- /**
163
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
164
- *
165
- * Determine the order of Products to fetch.
166
- */
167
155
  orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
168
- /**
169
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
170
- *
171
- * Sets the start position
172
- */
173
156
  cursor?: Prisma.ProductWhereUniqueInput;
174
- /**
175
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
176
- *
177
- * Take `±n` Products from the position of the cursor.
178
- */
179
157
  take?: number;
180
- /**
181
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
182
- *
183
- * Skip the first `n` Products.
184
- */
185
158
  skip?: number;
186
- /**
187
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
188
- *
189
- * Count returned Products
190
- **/
191
159
  _count?: true | ProductCountAggregateInputType;
192
- /**
193
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
194
- *
195
- * Select which fields to average
196
- **/
197
160
  _avg?: ProductAvgAggregateInputType;
198
- /**
199
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
200
- *
201
- * Select which fields to sum
202
- **/
203
161
  _sum?: ProductSumAggregateInputType;
204
- /**
205
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
206
- *
207
- * Select which fields to find the minimum value
208
- **/
209
162
  _min?: ProductMinAggregateInputType;
210
- /**
211
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
212
- *
213
- * Select which fields to find the maximum value
214
- **/
215
163
  _max?: ProductMaxAggregateInputType;
216
164
  };
217
165
  export type GetProductAggregateType<T extends ProductAggregateArgs> = {
@@ -2048,9 +1996,6 @@ export type ProductUncheckedUpdateManyWithoutModifierGroupsInput = {
2048
1996
  updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2049
1997
  latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2050
1998
  };
2051
- /**
2052
- * Count Type ProductCountOutputType
2053
- */
2054
1999
  export type ProductCountOutputType = {
2055
2000
  images: number;
2056
2001
  categories: number;
@@ -2065,42 +2010,21 @@ export type ProductCountOutputTypeSelect<ExtArgs extends runtime.Types.Extension
2065
2010
  translations?: boolean | ProductCountOutputTypeCountTranslationsArgs;
2066
2011
  snapshots?: boolean | ProductCountOutputTypeCountSnapshotsArgs;
2067
2012
  };
2068
- /**
2069
- * ProductCountOutputType without action
2070
- */
2071
2013
  export type ProductCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2072
- /**
2073
- * Select specific fields to fetch from the ProductCountOutputType
2074
- */
2075
2014
  select?: Prisma.ProductCountOutputTypeSelect<ExtArgs> | null;
2076
2015
  };
2077
- /**
2078
- * ProductCountOutputType without action
2079
- */
2080
2016
  export type ProductCountOutputTypeCountImagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2081
2017
  where?: Prisma.FileWhereInput;
2082
2018
  };
2083
- /**
2084
- * ProductCountOutputType without action
2085
- */
2086
2019
  export type ProductCountOutputTypeCountCategoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2087
2020
  where?: Prisma.ProductCategoryWhereInput;
2088
2021
  };
2089
- /**
2090
- * ProductCountOutputType without action
2091
- */
2092
2022
  export type ProductCountOutputTypeCountModifierGroupsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2093
2023
  where?: Prisma.ModifierGroupWhereInput;
2094
2024
  };
2095
- /**
2096
- * ProductCountOutputType without action
2097
- */
2098
2025
  export type ProductCountOutputTypeCountTranslationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2099
2026
  where?: Prisma.ProductTranslationWhereInput;
2100
2027
  };
2101
- /**
2102
- * ProductCountOutputType without action
2103
- */
2104
2028
  export type ProductCountOutputTypeCountSnapshotsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2105
2029
  where?: Prisma.ProductSnapshotWhereInput;
2106
2030
  };
@@ -2276,290 +2200,22 @@ export interface ProductDelegate<ExtArgs extends runtime.Types.Extensions.Intern
2276
2200
  name: 'Product';
2277
2201
  };
2278
2202
  };
2279
- /**
2280
- * Find zero or one Product that matches the filter.
2281
- * @param {ProductFindUniqueArgs} args - Arguments to find a Product
2282
- * @example
2283
- * // Get one Product
2284
- * const product = await prisma.product.findUnique({
2285
- * where: {
2286
- * // ... provide filter here
2287
- * }
2288
- * })
2289
- */
2290
2203
  findUnique<T extends ProductFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2291
- /**
2292
- * Find one Product that matches the filter or throw an error with `error.code='P2025'`
2293
- * if no matches were found.
2294
- * @param {ProductFindUniqueOrThrowArgs} args - Arguments to find a Product
2295
- * @example
2296
- * // Get one Product
2297
- * const product = await prisma.product.findUniqueOrThrow({
2298
- * where: {
2299
- * // ... provide filter here
2300
- * }
2301
- * })
2302
- */
2303
2204
  findUniqueOrThrow<T extends ProductFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2304
- /**
2305
- * Find the first Product that matches the filter.
2306
- * Note, that providing `undefined` is treated as the value not being there.
2307
- * Read more here: https://pris.ly/d/null-undefined
2308
- * @param {ProductFindFirstArgs} args - Arguments to find a Product
2309
- * @example
2310
- * // Get one Product
2311
- * const product = await prisma.product.findFirst({
2312
- * where: {
2313
- * // ... provide filter here
2314
- * }
2315
- * })
2316
- */
2317
2205
  findFirst<T extends ProductFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2318
- /**
2319
- * Find the first Product that matches the filter or
2320
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
2321
- * Note, that providing `undefined` is treated as the value not being there.
2322
- * Read more here: https://pris.ly/d/null-undefined
2323
- * @param {ProductFindFirstOrThrowArgs} args - Arguments to find a Product
2324
- * @example
2325
- * // Get one Product
2326
- * const product = await prisma.product.findFirstOrThrow({
2327
- * where: {
2328
- * // ... provide filter here
2329
- * }
2330
- * })
2331
- */
2332
2206
  findFirstOrThrow<T extends ProductFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2333
- /**
2334
- * Find zero or more Products that matches the filter.
2335
- * Note, that providing `undefined` is treated as the value not being there.
2336
- * Read more here: https://pris.ly/d/null-undefined
2337
- * @param {ProductFindManyArgs} args - Arguments to filter and select certain fields only.
2338
- * @example
2339
- * // Get all Products
2340
- * const products = await prisma.product.findMany()
2341
- *
2342
- * // Get first 10 Products
2343
- * const products = await prisma.product.findMany({ take: 10 })
2344
- *
2345
- * // Only select the `id`
2346
- * const productWithIdOnly = await prisma.product.findMany({ select: { id: true } })
2347
- *
2348
- */
2349
2207
  findMany<T extends ProductFindManyArgs>(args?: Prisma.SelectSubset<T, ProductFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
2350
- /**
2351
- * Create a Product.
2352
- * @param {ProductCreateArgs} args - Arguments to create a Product.
2353
- * @example
2354
- * // Create one Product
2355
- * const Product = await prisma.product.create({
2356
- * data: {
2357
- * // ... data to create a Product
2358
- * }
2359
- * })
2360
- *
2361
- */
2362
2208
  create<T extends ProductCreateArgs>(args: Prisma.SelectSubset<T, ProductCreateArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2363
- /**
2364
- * Create many Products.
2365
- * @param {ProductCreateManyArgs} args - Arguments to create many Products.
2366
- * @example
2367
- * // Create many Products
2368
- * const product = await prisma.product.createMany({
2369
- * data: [
2370
- * // ... provide data here
2371
- * ]
2372
- * })
2373
- *
2374
- */
2375
2209
  createMany<T extends ProductCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2376
- /**
2377
- * Create many Products and returns the data saved in the database.
2378
- * @param {ProductCreateManyAndReturnArgs} args - Arguments to create many Products.
2379
- * @example
2380
- * // Create many Products
2381
- * const product = await prisma.product.createManyAndReturn({
2382
- * data: [
2383
- * // ... provide data here
2384
- * ]
2385
- * })
2386
- *
2387
- * // Create many Products and only return the `id`
2388
- * const productWithIdOnly = await prisma.product.createManyAndReturn({
2389
- * select: { id: true },
2390
- * data: [
2391
- * // ... provide data here
2392
- * ]
2393
- * })
2394
- * Note, that providing `undefined` is treated as the value not being there.
2395
- * Read more here: https://pris.ly/d/null-undefined
2396
- *
2397
- */
2398
2210
  createManyAndReturn<T extends ProductCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProductCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
2399
- /**
2400
- * Delete a Product.
2401
- * @param {ProductDeleteArgs} args - Arguments to delete one Product.
2402
- * @example
2403
- * // Delete one Product
2404
- * const Product = await prisma.product.delete({
2405
- * where: {
2406
- * // ... filter to delete one Product
2407
- * }
2408
- * })
2409
- *
2410
- */
2411
2211
  delete<T extends ProductDeleteArgs>(args: Prisma.SelectSubset<T, ProductDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2412
- /**
2413
- * Update one Product.
2414
- * @param {ProductUpdateArgs} args - Arguments to update one Product.
2415
- * @example
2416
- * // Update one Product
2417
- * const product = await prisma.product.update({
2418
- * where: {
2419
- * // ... provide filter here
2420
- * },
2421
- * data: {
2422
- * // ... provide data here
2423
- * }
2424
- * })
2425
- *
2426
- */
2427
2212
  update<T extends ProductUpdateArgs>(args: Prisma.SelectSubset<T, ProductUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2428
- /**
2429
- * Delete zero or more Products.
2430
- * @param {ProductDeleteManyArgs} args - Arguments to filter Products to delete.
2431
- * @example
2432
- * // Delete a few Products
2433
- * const { count } = await prisma.product.deleteMany({
2434
- * where: {
2435
- * // ... provide filter here
2436
- * }
2437
- * })
2438
- *
2439
- */
2440
2213
  deleteMany<T extends ProductDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2441
- /**
2442
- * Update zero or more Products.
2443
- * Note, that providing `undefined` is treated as the value not being there.
2444
- * Read more here: https://pris.ly/d/null-undefined
2445
- * @param {ProductUpdateManyArgs} args - Arguments to update one or more rows.
2446
- * @example
2447
- * // Update many Products
2448
- * const product = await prisma.product.updateMany({
2449
- * where: {
2450
- * // ... provide filter here
2451
- * },
2452
- * data: {
2453
- * // ... provide data here
2454
- * }
2455
- * })
2456
- *
2457
- */
2458
2214
  updateMany<T extends ProductUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2459
- /**
2460
- * Update zero or more Products and returns the data updated in the database.
2461
- * @param {ProductUpdateManyAndReturnArgs} args - Arguments to update many Products.
2462
- * @example
2463
- * // Update many Products
2464
- * const product = await prisma.product.updateManyAndReturn({
2465
- * where: {
2466
- * // ... provide filter here
2467
- * },
2468
- * data: [
2469
- * // ... provide data here
2470
- * ]
2471
- * })
2472
- *
2473
- * // Update zero or more Products and only return the `id`
2474
- * const productWithIdOnly = await prisma.product.updateManyAndReturn({
2475
- * select: { id: true },
2476
- * where: {
2477
- * // ... provide filter here
2478
- * },
2479
- * data: [
2480
- * // ... provide data here
2481
- * ]
2482
- * })
2483
- * Note, that providing `undefined` is treated as the value not being there.
2484
- * Read more here: https://pris.ly/d/null-undefined
2485
- *
2486
- */
2487
2215
  updateManyAndReturn<T extends ProductUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProductUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
2488
- /**
2489
- * Create or update one Product.
2490
- * @param {ProductUpsertArgs} args - Arguments to update or create a Product.
2491
- * @example
2492
- * // Update or create a Product
2493
- * const product = await prisma.product.upsert({
2494
- * create: {
2495
- * // ... data to create a Product
2496
- * },
2497
- * update: {
2498
- * // ... in case it already exists, update
2499
- * },
2500
- * where: {
2501
- * // ... the filter for the Product we want to update
2502
- * }
2503
- * })
2504
- */
2505
2216
  upsert<T extends ProductUpsertArgs>(args: Prisma.SelectSubset<T, ProductUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2506
- /**
2507
- * Count the number of Products.
2508
- * Note, that providing `undefined` is treated as the value not being there.
2509
- * Read more here: https://pris.ly/d/null-undefined
2510
- * @param {ProductCountArgs} args - Arguments to filter Products to count.
2511
- * @example
2512
- * // Count the number of Products
2513
- * const count = await prisma.product.count({
2514
- * where: {
2515
- * // ... the filter for the Products we want to count
2516
- * }
2517
- * })
2518
- **/
2519
2217
  count<T extends ProductCountArgs>(args?: Prisma.Subset<T, ProductCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProductCountAggregateOutputType> : number>;
2520
- /**
2521
- * Allows you to perform aggregations operations on a Product.
2522
- * Note, that providing `undefined` is treated as the value not being there.
2523
- * Read more here: https://pris.ly/d/null-undefined
2524
- * @param {ProductAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
2525
- * @example
2526
- * // Ordered by age ascending
2527
- * // Where email contains prisma.io
2528
- * // Limited to the 10 users
2529
- * const aggregations = await prisma.user.aggregate({
2530
- * _avg: {
2531
- * age: true,
2532
- * },
2533
- * where: {
2534
- * email: {
2535
- * contains: "prisma.io",
2536
- * },
2537
- * },
2538
- * orderBy: {
2539
- * age: "asc",
2540
- * },
2541
- * take: 10,
2542
- * })
2543
- **/
2544
2218
  aggregate<T extends ProductAggregateArgs>(args: Prisma.Subset<T, ProductAggregateArgs>): Prisma.PrismaPromise<GetProductAggregateType<T>>;
2545
- /**
2546
- * Group by Product.
2547
- * Note, that providing `undefined` is treated as the value not being there.
2548
- * Read more here: https://pris.ly/d/null-undefined
2549
- * @param {ProductGroupByArgs} args - Group by arguments.
2550
- * @example
2551
- * // Group by city, order by createdAt, get count
2552
- * const result = await prisma.user.groupBy({
2553
- * by: ['city', 'createdAt'],
2554
- * orderBy: {
2555
- * createdAt: true
2556
- * },
2557
- * _count: {
2558
- * _all: true
2559
- * },
2560
- * })
2561
- *
2562
- **/
2563
2219
  groupBy<T extends ProductGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
2564
2220
  orderBy: ProductGroupByArgs['orderBy'];
2565
2221
  } : {
@@ -2578,17 +2234,8 @@ export interface ProductDelegate<ExtArgs extends runtime.Types.Extensions.Intern
2578
2234
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
2579
2235
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2580
2236
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, ProductGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
2581
- /**
2582
- * Fields of the Product model
2583
- */
2584
2237
  readonly fields: ProductFieldRefs;
2585
2238
  }
2586
- /**
2587
- * The delegate class that acts as a "Promise-like" for Product.
2588
- * Why is this prefixed with `Prisma__`?
2589
- * Because we want to prevent naming conflicts as mentioned in
2590
- * https://github.com/prisma/prisma-client-js/issues/707
2591
- */
2592
2239
  export interface Prisma__ProductClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2593
2240
  readonly [Symbol.toStringTag]: "PrismaPromise";
2594
2241
  images<T extends Prisma.Product$imagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$imagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
@@ -2599,30 +2246,10 @@ export interface Prisma__ProductClient<T, Null = never, ExtArgs extends runtime.
2599
2246
  translations<T extends Prisma.Product$translationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$translationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductTranslationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2600
2247
  snapshots<T extends Prisma.Product$snapshotsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$snapshotsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2601
2248
  latestSnapshot<T extends Prisma.Product$latestSnapshotArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$latestSnapshotArgs<ExtArgs>>): Prisma.Prisma__ProductSnapshotClient<runtime.Types.Result.GetResult<Prisma.$ProductSnapshotPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2602
- /**
2603
- * Attaches callbacks for the resolution and/or rejection of the Promise.
2604
- * @param onfulfilled The callback to execute when the Promise is resolved.
2605
- * @param onrejected The callback to execute when the Promise is rejected.
2606
- * @returns A Promise for the completion of which ever callback is executed.
2607
- */
2608
2249
  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>;
2609
- /**
2610
- * Attaches a callback for only the rejection of the Promise.
2611
- * @param onrejected The callback to execute when the Promise is rejected.
2612
- * @returns A Promise for the completion of the callback.
2613
- */
2614
2250
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
2615
- /**
2616
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2617
- * resolved value cannot be modified from the callback.
2618
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2619
- * @returns A Promise for the completion of the callback.
2620
- */
2621
2251
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
2622
2252
  }
2623
- /**
2624
- * Fields of the Product model
2625
- */
2626
2253
  export interface ProductFieldRefs {
2627
2254
  readonly id: Prisma.FieldRef<"Product", 'String'>;
2628
2255
  readonly content: Prisma.FieldRef<"Product", 'String'>;
@@ -2645,398 +2272,109 @@ export interface ProductFieldRefs {
2645
2272
  readonly updatedBy: Prisma.FieldRef<"Product", 'String'>;
2646
2273
  readonly latestSnapshotId: Prisma.FieldRef<"Product", 'String'>;
2647
2274
  }
2648
- /**
2649
- * Product findUnique
2650
- */
2651
2275
  export type ProductFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2652
- /**
2653
- * Select specific fields to fetch from the Product
2654
- */
2655
2276
  select?: Prisma.ProductSelect<ExtArgs> | null;
2656
- /**
2657
- * Omit specific fields from the Product
2658
- */
2659
2277
  omit?: Prisma.ProductOmit<ExtArgs> | null;
2660
- /**
2661
- * Choose, which related nodes to fetch as well
2662
- */
2663
2278
  include?: Prisma.ProductInclude<ExtArgs> | null;
2664
- /**
2665
- * Filter, which Product to fetch.
2666
- */
2667
2279
  where: Prisma.ProductWhereUniqueInput;
2668
2280
  };
2669
- /**
2670
- * Product findUniqueOrThrow
2671
- */
2672
2281
  export type ProductFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2673
- /**
2674
- * Select specific fields to fetch from the Product
2675
- */
2676
2282
  select?: Prisma.ProductSelect<ExtArgs> | null;
2677
- /**
2678
- * Omit specific fields from the Product
2679
- */
2680
2283
  omit?: Prisma.ProductOmit<ExtArgs> | null;
2681
- /**
2682
- * Choose, which related nodes to fetch as well
2683
- */
2684
2284
  include?: Prisma.ProductInclude<ExtArgs> | null;
2685
- /**
2686
- * Filter, which Product to fetch.
2687
- */
2688
2285
  where: Prisma.ProductWhereUniqueInput;
2689
2286
  };
2690
- /**
2691
- * Product findFirst
2692
- */
2693
2287
  export type ProductFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2694
- /**
2695
- * Select specific fields to fetch from the Product
2696
- */
2697
2288
  select?: Prisma.ProductSelect<ExtArgs> | null;
2698
- /**
2699
- * Omit specific fields from the Product
2700
- */
2701
2289
  omit?: Prisma.ProductOmit<ExtArgs> | null;
2702
- /**
2703
- * Choose, which related nodes to fetch as well
2704
- */
2705
2290
  include?: Prisma.ProductInclude<ExtArgs> | null;
2706
- /**
2707
- * Filter, which Product to fetch.
2708
- */
2709
2291
  where?: Prisma.ProductWhereInput;
2710
- /**
2711
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2712
- *
2713
- * Determine the order of Products to fetch.
2714
- */
2715
2292
  orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
2716
- /**
2717
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2718
- *
2719
- * Sets the position for searching for Products.
2720
- */
2721
2293
  cursor?: Prisma.ProductWhereUniqueInput;
2722
- /**
2723
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2724
- *
2725
- * Take `±n` Products from the position of the cursor.
2726
- */
2727
2294
  take?: number;
2728
- /**
2729
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2730
- *
2731
- * Skip the first `n` Products.
2732
- */
2733
2295
  skip?: number;
2734
- /**
2735
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2736
- *
2737
- * Filter by unique combinations of Products.
2738
- */
2739
2296
  distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[];
2740
2297
  };
2741
- /**
2742
- * Product findFirstOrThrow
2743
- */
2744
2298
  export type ProductFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2745
- /**
2746
- * Select specific fields to fetch from the Product
2747
- */
2748
2299
  select?: Prisma.ProductSelect<ExtArgs> | null;
2749
- /**
2750
- * Omit specific fields from the Product
2751
- */
2752
2300
  omit?: Prisma.ProductOmit<ExtArgs> | null;
2753
- /**
2754
- * Choose, which related nodes to fetch as well
2755
- */
2756
2301
  include?: Prisma.ProductInclude<ExtArgs> | null;
2757
- /**
2758
- * Filter, which Product to fetch.
2759
- */
2760
2302
  where?: Prisma.ProductWhereInput;
2761
- /**
2762
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2763
- *
2764
- * Determine the order of Products to fetch.
2765
- */
2766
2303
  orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
2767
- /**
2768
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2769
- *
2770
- * Sets the position for searching for Products.
2771
- */
2772
2304
  cursor?: Prisma.ProductWhereUniqueInput;
2773
- /**
2774
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2775
- *
2776
- * Take `±n` Products from the position of the cursor.
2777
- */
2778
2305
  take?: number;
2779
- /**
2780
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2781
- *
2782
- * Skip the first `n` Products.
2783
- */
2784
2306
  skip?: number;
2785
- /**
2786
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2787
- *
2788
- * Filter by unique combinations of Products.
2789
- */
2790
2307
  distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[];
2791
2308
  };
2792
- /**
2793
- * Product findMany
2794
- */
2795
2309
  export type ProductFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2796
- /**
2797
- * Select specific fields to fetch from the Product
2798
- */
2799
2310
  select?: Prisma.ProductSelect<ExtArgs> | null;
2800
- /**
2801
- * Omit specific fields from the Product
2802
- */
2803
2311
  omit?: Prisma.ProductOmit<ExtArgs> | null;
2804
- /**
2805
- * Choose, which related nodes to fetch as well
2806
- */
2807
2312
  include?: Prisma.ProductInclude<ExtArgs> | null;
2808
- /**
2809
- * Filter, which Products to fetch.
2810
- */
2811
2313
  where?: Prisma.ProductWhereInput;
2812
- /**
2813
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2814
- *
2815
- * Determine the order of Products to fetch.
2816
- */
2817
2314
  orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[];
2818
- /**
2819
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2820
- *
2821
- * Sets the position for listing Products.
2822
- */
2823
2315
  cursor?: Prisma.ProductWhereUniqueInput;
2824
- /**
2825
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2826
- *
2827
- * Take `±n` Products from the position of the cursor.
2828
- */
2829
2316
  take?: number;
2830
- /**
2831
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2832
- *
2833
- * Skip the first `n` Products.
2834
- */
2835
2317
  skip?: number;
2836
2318
  distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[];
2837
2319
  };
2838
- /**
2839
- * Product create
2840
- */
2841
2320
  export type ProductCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2842
- /**
2843
- * Select specific fields to fetch from the Product
2844
- */
2845
2321
  select?: Prisma.ProductSelect<ExtArgs> | null;
2846
- /**
2847
- * Omit specific fields from the Product
2848
- */
2849
2322
  omit?: Prisma.ProductOmit<ExtArgs> | null;
2850
- /**
2851
- * Choose, which related nodes to fetch as well
2852
- */
2853
2323
  include?: Prisma.ProductInclude<ExtArgs> | null;
2854
- /**
2855
- * The data needed to create a Product.
2856
- */
2857
2324
  data: Prisma.XOR<Prisma.ProductCreateInput, Prisma.ProductUncheckedCreateInput>;
2858
2325
  };
2859
- /**
2860
- * Product createMany
2861
- */
2862
2326
  export type ProductCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2863
- /**
2864
- * The data used to create many Products.
2865
- */
2866
2327
  data: Prisma.ProductCreateManyInput | Prisma.ProductCreateManyInput[];
2867
2328
  skipDuplicates?: boolean;
2868
2329
  };
2869
- /**
2870
- * Product createManyAndReturn
2871
- */
2872
2330
  export type ProductCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2873
- /**
2874
- * Select specific fields to fetch from the Product
2875
- */
2876
2331
  select?: Prisma.ProductSelectCreateManyAndReturn<ExtArgs> | null;
2877
- /**
2878
- * Omit specific fields from the Product
2879
- */
2880
2332
  omit?: Prisma.ProductOmit<ExtArgs> | null;
2881
- /**
2882
- * The data used to create many Products.
2883
- */
2884
2333
  data: Prisma.ProductCreateManyInput | Prisma.ProductCreateManyInput[];
2885
2334
  skipDuplicates?: boolean;
2886
- /**
2887
- * Choose, which related nodes to fetch as well
2888
- */
2889
2335
  include?: Prisma.ProductIncludeCreateManyAndReturn<ExtArgs> | null;
2890
2336
  };
2891
- /**
2892
- * Product update
2893
- */
2894
2337
  export type ProductUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2895
- /**
2896
- * Select specific fields to fetch from the Product
2897
- */
2898
2338
  select?: Prisma.ProductSelect<ExtArgs> | null;
2899
- /**
2900
- * Omit specific fields from the Product
2901
- */
2902
2339
  omit?: Prisma.ProductOmit<ExtArgs> | null;
2903
- /**
2904
- * Choose, which related nodes to fetch as well
2905
- */
2906
2340
  include?: Prisma.ProductInclude<ExtArgs> | null;
2907
- /**
2908
- * The data needed to update a Product.
2909
- */
2910
2341
  data: Prisma.XOR<Prisma.ProductUpdateInput, Prisma.ProductUncheckedUpdateInput>;
2911
- /**
2912
- * Choose, which Product to update.
2913
- */
2914
2342
  where: Prisma.ProductWhereUniqueInput;
2915
2343
  };
2916
- /**
2917
- * Product updateMany
2918
- */
2919
2344
  export type ProductUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2920
- /**
2921
- * The data used to update Products.
2922
- */
2923
2345
  data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyInput>;
2924
- /**
2925
- * Filter which Products to update
2926
- */
2927
2346
  where?: Prisma.ProductWhereInput;
2928
- /**
2929
- * Limit how many Products to update.
2930
- */
2931
2347
  limit?: number;
2932
2348
  };
2933
- /**
2934
- * Product updateManyAndReturn
2935
- */
2936
2349
  export type ProductUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2937
- /**
2938
- * Select specific fields to fetch from the Product
2939
- */
2940
2350
  select?: Prisma.ProductSelectUpdateManyAndReturn<ExtArgs> | null;
2941
- /**
2942
- * Omit specific fields from the Product
2943
- */
2944
2351
  omit?: Prisma.ProductOmit<ExtArgs> | null;
2945
- /**
2946
- * The data used to update Products.
2947
- */
2948
2352
  data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyInput>;
2949
- /**
2950
- * Filter which Products to update
2951
- */
2952
2353
  where?: Prisma.ProductWhereInput;
2953
- /**
2954
- * Limit how many Products to update.
2955
- */
2956
2354
  limit?: number;
2957
- /**
2958
- * Choose, which related nodes to fetch as well
2959
- */
2960
2355
  include?: Prisma.ProductIncludeUpdateManyAndReturn<ExtArgs> | null;
2961
2356
  };
2962
- /**
2963
- * Product upsert
2964
- */
2965
2357
  export type ProductUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2966
- /**
2967
- * Select specific fields to fetch from the Product
2968
- */
2969
2358
  select?: Prisma.ProductSelect<ExtArgs> | null;
2970
- /**
2971
- * Omit specific fields from the Product
2972
- */
2973
2359
  omit?: Prisma.ProductOmit<ExtArgs> | null;
2974
- /**
2975
- * Choose, which related nodes to fetch as well
2976
- */
2977
2360
  include?: Prisma.ProductInclude<ExtArgs> | null;
2978
- /**
2979
- * The filter to search for the Product to update in case it exists.
2980
- */
2981
2361
  where: Prisma.ProductWhereUniqueInput;
2982
- /**
2983
- * In case the Product found by the `where` argument doesn't exist, create a new Product with this data.
2984
- */
2985
2362
  create: Prisma.XOR<Prisma.ProductCreateInput, Prisma.ProductUncheckedCreateInput>;
2986
- /**
2987
- * In case the Product was found with the provided `where` argument, update it with this data.
2988
- */
2989
2363
  update: Prisma.XOR<Prisma.ProductUpdateInput, Prisma.ProductUncheckedUpdateInput>;
2990
2364
  };
2991
- /**
2992
- * Product delete
2993
- */
2994
2365
  export type ProductDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2995
- /**
2996
- * Select specific fields to fetch from the Product
2997
- */
2998
2366
  select?: Prisma.ProductSelect<ExtArgs> | null;
2999
- /**
3000
- * Omit specific fields from the Product
3001
- */
3002
2367
  omit?: Prisma.ProductOmit<ExtArgs> | null;
3003
- /**
3004
- * Choose, which related nodes to fetch as well
3005
- */
3006
2368
  include?: Prisma.ProductInclude<ExtArgs> | null;
3007
- /**
3008
- * Filter which Product to delete.
3009
- */
3010
2369
  where: Prisma.ProductWhereUniqueInput;
3011
2370
  };
3012
- /**
3013
- * Product deleteMany
3014
- */
3015
2371
  export type ProductDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3016
- /**
3017
- * Filter which Products to delete
3018
- */
3019
2372
  where?: Prisma.ProductWhereInput;
3020
- /**
3021
- * Limit how many Products to delete.
3022
- */
3023
2373
  limit?: number;
3024
2374
  };
3025
- /**
3026
- * Product.images
3027
- */
3028
2375
  export type Product$imagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3029
- /**
3030
- * Select specific fields to fetch from the File
3031
- */
3032
2376
  select?: Prisma.FileSelect<ExtArgs> | null;
3033
- /**
3034
- * Omit specific fields from the File
3035
- */
3036
2377
  omit?: Prisma.FileOmit<ExtArgs> | null;
3037
- /**
3038
- * Choose, which related nodes to fetch as well
3039
- */
3040
2378
  include?: Prisma.FileInclude<ExtArgs> | null;
3041
2379
  where?: Prisma.FileWhereInput;
3042
2380
  orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[];
@@ -3045,39 +2383,15 @@ export type Product$imagesArgs<ExtArgs extends runtime.Types.Extensions.Internal
3045
2383
  skip?: number;
3046
2384
  distinct?: Prisma.FileScalarFieldEnum | Prisma.FileScalarFieldEnum[];
3047
2385
  };
3048
- /**
3049
- * Product.manufacturer
3050
- */
3051
2386
  export type Product$manufacturerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3052
- /**
3053
- * Select specific fields to fetch from the Manufacturer
3054
- */
3055
2387
  select?: Prisma.ManufacturerSelect<ExtArgs> | null;
3056
- /**
3057
- * Omit specific fields from the Manufacturer
3058
- */
3059
2388
  omit?: Prisma.ManufacturerOmit<ExtArgs> | null;
3060
- /**
3061
- * Choose, which related nodes to fetch as well
3062
- */
3063
2389
  include?: Prisma.ManufacturerInclude<ExtArgs> | null;
3064
2390
  where?: Prisma.ManufacturerWhereInput;
3065
2391
  };
3066
- /**
3067
- * Product.categories
3068
- */
3069
2392
  export type Product$categoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3070
- /**
3071
- * Select specific fields to fetch from the ProductCategory
3072
- */
3073
2393
  select?: Prisma.ProductCategorySelect<ExtArgs> | null;
3074
- /**
3075
- * Omit specific fields from the ProductCategory
3076
- */
3077
2394
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null;
3078
- /**
3079
- * Choose, which related nodes to fetch as well
3080
- */
3081
2395
  include?: Prisma.ProductCategoryInclude<ExtArgs> | null;
3082
2396
  where?: Prisma.ProductCategoryWhereInput;
3083
2397
  orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[];
@@ -3086,21 +2400,9 @@ export type Product$categoriesArgs<ExtArgs extends runtime.Types.Extensions.Inte
3086
2400
  skip?: number;
3087
2401
  distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[];
3088
2402
  };
3089
- /**
3090
- * Product.modifierGroups
3091
- */
3092
2403
  export type Product$modifierGroupsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3093
- /**
3094
- * Select specific fields to fetch from the ModifierGroup
3095
- */
3096
2404
  select?: Prisma.ModifierGroupSelect<ExtArgs> | null;
3097
- /**
3098
- * Omit specific fields from the ModifierGroup
3099
- */
3100
2405
  omit?: Prisma.ModifierGroupOmit<ExtArgs> | null;
3101
- /**
3102
- * Choose, which related nodes to fetch as well
3103
- */
3104
2406
  include?: Prisma.ModifierGroupInclude<ExtArgs> | null;
3105
2407
  where?: Prisma.ModifierGroupWhereInput;
3106
2408
  orderBy?: Prisma.ModifierGroupOrderByWithRelationInput | Prisma.ModifierGroupOrderByWithRelationInput[];
@@ -3109,21 +2411,9 @@ export type Product$modifierGroupsArgs<ExtArgs extends runtime.Types.Extensions.
3109
2411
  skip?: number;
3110
2412
  distinct?: Prisma.ModifierGroupScalarFieldEnum | Prisma.ModifierGroupScalarFieldEnum[];
3111
2413
  };
3112
- /**
3113
- * Product.translations
3114
- */
3115
2414
  export type Product$translationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3116
- /**
3117
- * Select specific fields to fetch from the ProductTranslation
3118
- */
3119
2415
  select?: Prisma.ProductTranslationSelect<ExtArgs> | null;
3120
- /**
3121
- * Omit specific fields from the ProductTranslation
3122
- */
3123
2416
  omit?: Prisma.ProductTranslationOmit<ExtArgs> | null;
3124
- /**
3125
- * Choose, which related nodes to fetch as well
3126
- */
3127
2417
  include?: Prisma.ProductTranslationInclude<ExtArgs> | null;
3128
2418
  where?: Prisma.ProductTranslationWhereInput;
3129
2419
  orderBy?: Prisma.ProductTranslationOrderByWithRelationInput | Prisma.ProductTranslationOrderByWithRelationInput[];
@@ -3132,21 +2422,9 @@ export type Product$translationsArgs<ExtArgs extends runtime.Types.Extensions.In
3132
2422
  skip?: number;
3133
2423
  distinct?: Prisma.ProductTranslationScalarFieldEnum | Prisma.ProductTranslationScalarFieldEnum[];
3134
2424
  };
3135
- /**
3136
- * Product.snapshots
3137
- */
3138
2425
  export type Product$snapshotsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3139
- /**
3140
- * Select specific fields to fetch from the ProductSnapshot
3141
- */
3142
2426
  select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
3143
- /**
3144
- * Omit specific fields from the ProductSnapshot
3145
- */
3146
2427
  omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
3147
- /**
3148
- * Choose, which related nodes to fetch as well
3149
- */
3150
2428
  include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
3151
2429
  where?: Prisma.ProductSnapshotWhereInput;
3152
2430
  orderBy?: Prisma.ProductSnapshotOrderByWithRelationInput | Prisma.ProductSnapshotOrderByWithRelationInput[];
@@ -3155,39 +2433,15 @@ export type Product$snapshotsArgs<ExtArgs extends runtime.Types.Extensions.Inter
3155
2433
  skip?: number;
3156
2434
  distinct?: Prisma.ProductSnapshotScalarFieldEnum | Prisma.ProductSnapshotScalarFieldEnum[];
3157
2435
  };
3158
- /**
3159
- * Product.latestSnapshot
3160
- */
3161
2436
  export type Product$latestSnapshotArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3162
- /**
3163
- * Select specific fields to fetch from the ProductSnapshot
3164
- */
3165
2437
  select?: Prisma.ProductSnapshotSelect<ExtArgs> | null;
3166
- /**
3167
- * Omit specific fields from the ProductSnapshot
3168
- */
3169
2438
  omit?: Prisma.ProductSnapshotOmit<ExtArgs> | null;
3170
- /**
3171
- * Choose, which related nodes to fetch as well
3172
- */
3173
2439
  include?: Prisma.ProductSnapshotInclude<ExtArgs> | null;
3174
2440
  where?: Prisma.ProductSnapshotWhereInput;
3175
2441
  };
3176
- /**
3177
- * Product without action
3178
- */
3179
2442
  export type ProductDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3180
- /**
3181
- * Select specific fields to fetch from the Product
3182
- */
3183
2443
  select?: Prisma.ProductSelect<ExtArgs> | null;
3184
- /**
3185
- * Omit specific fields from the Product
3186
- */
3187
2444
  omit?: Prisma.ProductOmit<ExtArgs> | null;
3188
- /**
3189
- * Choose, which related nodes to fetch as well
3190
- */
3191
2445
  include?: Prisma.ProductInclude<ExtArgs> | null;
3192
2446
  };
3193
2447
  export {};