@shophost/rest-api 2.0.32 → 2.0.34

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 (348) hide show
  1. package/package.json +13 -14
  2. package/src/app.js +53 -1
  3. package/src/app.js.map +1 -0
  4. package/src/core/auth/auth.schema.js +41 -1
  5. package/src/core/auth/auth.schema.js.map +1 -0
  6. package/src/core/auth/auth.util.js +44 -1
  7. package/src/core/auth/auth.util.js.map +1 -0
  8. package/src/core/auth/better-auth.lib.js +100 -1
  9. package/src/core/auth/better-auth.lib.js.map +1 -0
  10. package/src/core/auth/generate-password-hash.util.d.ts +3 -0
  11. package/src/core/auth/generate-password-hash.util.js +30 -1
  12. package/src/core/auth/generate-password-hash.util.js.map +1 -0
  13. package/src/core/auth/headers.schema.js +22 -1
  14. package/src/core/auth/headers.schema.js.map +1 -0
  15. package/src/core/auth/user.schema.js +30 -1
  16. package/src/core/auth/user.schema.js.map +1 -0
  17. package/src/core/db/__generated__/client/browser.d.ts +128 -0
  18. package/src/core/db/__generated__/client/browser.js +18 -1
  19. package/src/core/db/__generated__/client/browser.js.map +1 -0
  20. package/src/core/db/__generated__/client/client.d.ts +143 -0
  21. package/src/core/db/__generated__/client/client.js +35 -1
  22. package/src/core/db/__generated__/client/client.js.map +1 -0
  23. package/src/core/db/__generated__/client/commonInputTypes.js +11 -1
  24. package/src/core/db/__generated__/client/commonInputTypes.js.map +1 -0
  25. package/src/core/db/__generated__/client/enums.js +200 -1
  26. package/src/core/db/__generated__/client/enums.js.map +1 -0
  27. package/src/core/db/__generated__/client/internal/class.d.ts +343 -0
  28. package/src/core/db/__generated__/client/internal/class.js +55 -1
  29. package/src/core/db/__generated__/client/internal/class.js.map +1 -0
  30. package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +234 -0
  31. package/src/core/db/__generated__/client/internal/prismaNamespace.js +541 -1
  32. package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
  33. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +15 -0
  34. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +512 -1
  35. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -0
  36. package/src/core/db/__generated__/client/models/Account.d.ts +633 -0
  37. package/src/core/db/__generated__/client/models/Account.js +2 -1
  38. package/src/core/db/__generated__/client/models/Account.js.map +1 -0
  39. package/src/core/db/__generated__/client/models/Address.d.ts +706 -0
  40. package/src/core/db/__generated__/client/models/Address.js +2 -1
  41. package/src/core/db/__generated__/client/models/Address.js.map +1 -0
  42. package/src/core/db/__generated__/client/models/Campaign.d.ts +643 -0
  43. package/src/core/db/__generated__/client/models/Campaign.js +2 -1
  44. package/src/core/db/__generated__/client/models/Campaign.js.map +1 -0
  45. package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +639 -0
  46. package/src/core/db/__generated__/client/models/ClosingTimes.js +2 -1
  47. package/src/core/db/__generated__/client/models/ClosingTimes.js.map +1 -0
  48. package/src/core/db/__generated__/client/models/File.d.ts +757 -0
  49. package/src/core/db/__generated__/client/models/File.js +2 -1
  50. package/src/core/db/__generated__/client/models/File.js.map +1 -0
  51. package/src/core/db/__generated__/client/models/Invitation.d.ts +633 -0
  52. package/src/core/db/__generated__/client/models/Invitation.js +2 -1
  53. package/src/core/db/__generated__/client/models/Invitation.js.map +1 -0
  54. package/src/core/db/__generated__/client/models/LegalEntity.d.ts +657 -0
  55. package/src/core/db/__generated__/client/models/LegalEntity.js +2 -1
  56. package/src/core/db/__generated__/client/models/LegalEntity.js.map +1 -0
  57. package/src/core/db/__generated__/client/models/Manufacturer.d.ts +684 -0
  58. package/src/core/db/__generated__/client/models/Manufacturer.js +2 -1
  59. package/src/core/db/__generated__/client/models/Manufacturer.js.map +1 -0
  60. package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +633 -0
  61. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +2 -1
  62. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
  63. package/src/core/db/__generated__/client/models/Member.d.ts +633 -0
  64. package/src/core/db/__generated__/client/models/Member.js +2 -1
  65. package/src/core/db/__generated__/client/models/Member.js.map +1 -0
  66. package/src/core/db/__generated__/client/models/Modifier.d.ts +667 -0
  67. package/src/core/db/__generated__/client/models/Modifier.js +2 -1
  68. package/src/core/db/__generated__/client/models/Modifier.js.map +1 -0
  69. package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +691 -0
  70. package/src/core/db/__generated__/client/models/ModifierGroup.js +2 -1
  71. package/src/core/db/__generated__/client/models/ModifierGroup.js.map +1 -0
  72. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +633 -0
  73. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +2 -1
  74. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
  75. package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +639 -0
  76. package/src/core/db/__generated__/client/models/OpeningTimes.js +2 -1
  77. package/src/core/db/__generated__/client/models/OpeningTimes.js.map +1 -0
  78. package/src/core/db/__generated__/client/models/Order.d.ts +705 -0
  79. package/src/core/db/__generated__/client/models/Order.js +2 -1
  80. package/src/core/db/__generated__/client/models/Order.js.map +1 -0
  81. package/src/core/db/__generated__/client/models/OrderItem.d.ts +691 -0
  82. package/src/core/db/__generated__/client/models/OrderItem.js +2 -1
  83. package/src/core/db/__generated__/client/models/OrderItem.js.map +1 -0
  84. package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +633 -0
  85. package/src/core/db/__generated__/client/models/OrderItemTranslation.js +2 -1
  86. package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
  87. package/src/core/db/__generated__/client/models/Organization.d.ts +816 -0
  88. package/src/core/db/__generated__/client/models/Organization.js +2 -1
  89. package/src/core/db/__generated__/client/models/Organization.js.map +1 -0
  90. package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +681 -0
  91. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +2 -1
  92. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
  93. package/src/core/db/__generated__/client/models/Payment.d.ts +673 -0
  94. package/src/core/db/__generated__/client/models/Payment.js +2 -1
  95. package/src/core/db/__generated__/client/models/Payment.js.map +1 -0
  96. package/src/core/db/__generated__/client/models/PaymentSession.d.ts +643 -0
  97. package/src/core/db/__generated__/client/models/PaymentSession.js +2 -1
  98. package/src/core/db/__generated__/client/models/PaymentSession.js.map +1 -0
  99. package/src/core/db/__generated__/client/models/Product.d.ts +751 -0
  100. package/src/core/db/__generated__/client/models/Product.js +2 -1
  101. package/src/core/db/__generated__/client/models/Product.js.map +1 -0
  102. package/src/core/db/__generated__/client/models/ProductCategory.d.ts +694 -0
  103. package/src/core/db/__generated__/client/models/ProductCategory.js +2 -1
  104. package/src/core/db/__generated__/client/models/ProductCategory.js.map +1 -0
  105. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +633 -0
  106. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +2 -1
  107. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
  108. package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +669 -0
  109. package/src/core/db/__generated__/client/models/ProductSnapshot.js +2 -1
  110. package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
  111. package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +633 -0
  112. package/src/core/db/__generated__/client/models/ProductTranslation.js +2 -1
  113. package/src/core/db/__generated__/client/models/ProductTranslation.js.map +1 -0
  114. package/src/core/db/__generated__/client/models/Reservation.d.ts +655 -0
  115. package/src/core/db/__generated__/client/models/Reservation.js +2 -1
  116. package/src/core/db/__generated__/client/models/Reservation.js.map +1 -0
  117. package/src/core/db/__generated__/client/models/Session.d.ts +633 -0
  118. package/src/core/db/__generated__/client/models/Session.js +2 -1
  119. package/src/core/db/__generated__/client/models/Session.js.map +1 -0
  120. package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +684 -0
  121. package/src/core/db/__generated__/client/models/ShippingMethod.js +2 -1
  122. package/src/core/db/__generated__/client/models/ShippingMethod.js.map +1 -0
  123. package/src/core/db/__generated__/client/models/ShippingZone.d.ts +643 -0
  124. package/src/core/db/__generated__/client/models/ShippingZone.js +2 -1
  125. package/src/core/db/__generated__/client/models/ShippingZone.js.map +1 -0
  126. package/src/core/db/__generated__/client/models/User.d.ts +741 -0
  127. package/src/core/db/__generated__/client/models/User.js +2 -1
  128. package/src/core/db/__generated__/client/models/User.js.map +1 -0
  129. package/src/core/db/__generated__/client/models/Verification.d.ts +597 -0
  130. package/src/core/db/__generated__/client/models/Verification.js +2 -1
  131. package/src/core/db/__generated__/client/models/Verification.js.map +1 -0
  132. package/src/core/db/__generated__/client/models.js +2 -1
  133. package/src/core/db/__generated__/client/models.js.map +1 -0
  134. package/src/core/db/index.js +2 -1
  135. package/src/core/db/index.js.map +1 -0
  136. package/src/core/exceptions/http-exception.js +9 -1
  137. package/src/core/exceptions/http-exception.js.map +1 -0
  138. package/src/core/hono/hono.js +123 -1
  139. package/src/core/hono/hono.js.map +1 -0
  140. package/src/core/lib/prisma.js +11 -1
  141. package/src/core/lib/prisma.js.map +1 -0
  142. package/src/core/logging/pino.js +5 -1
  143. package/src/core/logging/pino.js.map +1 -0
  144. package/src/core/notifications/email.service.d.ts +15 -0
  145. package/src/core/notifications/email.service.js +116 -1
  146. package/src/core/notifications/email.service.js.map +1 -0
  147. package/src/core/openapi/openapi.lib.js +26 -1
  148. package/src/core/openapi/openapi.lib.js.map +1 -0
  149. package/src/core/types/google-maps.types.js +2 -1
  150. package/src/core/types/google-maps.types.js.map +1 -0
  151. package/src/core/utils/currency.util.js +11 -1
  152. package/src/core/utils/currency.util.js.map +1 -0
  153. package/src/core/utils/env.util.js +8 -1
  154. package/src/core/utils/env.util.js.map +1 -0
  155. package/src/core/utils/object.util.d.ts +10 -0
  156. package/src/core/utils/object.util.js +39 -1
  157. package/src/core/utils/object.util.js.map +1 -0
  158. package/src/core/utils/translations.util.js +2 -0
  159. package/src/core/utils/translations.util.js.map +1 -0
  160. package/src/core/utils/zod.util.d.ts +12 -0
  161. package/src/core/utils/zod.util.js +85 -1
  162. package/src/core/utils/zod.util.js.map +1 -0
  163. package/src/db.js +3 -1
  164. package/src/db.js.map +1 -0
  165. package/src/features/access/access.handler.js +91 -1
  166. package/src/features/access/access.handler.js.map +1 -0
  167. package/src/features/access/access.route.js +220 -1
  168. package/src/features/access/access.route.js.map +1 -0
  169. package/src/features/access/access.schema.js +108 -1
  170. package/src/features/access/access.schema.js.map +1 -0
  171. package/src/features/access/access.service.js +294 -1
  172. package/src/features/access/access.service.js.map +1 -0
  173. package/src/features/cart/cart.handler.js +17 -1
  174. package/src/features/cart/cart.handler.js.map +1 -0
  175. package/src/features/cart/cart.route.js +32 -1
  176. package/src/features/cart/cart.route.js.map +1 -0
  177. package/src/features/cart/cart.schema.js +39 -1
  178. package/src/features/cart/cart.schema.js.map +1 -0
  179. package/src/features/cart/cart.service.d.ts +7 -0
  180. package/src/features/cart/cart.service.js +97 -1
  181. package/src/features/cart/cart.service.js.map +1 -0
  182. package/src/features/cart/cart.util.js +76 -1
  183. package/src/features/cart/cart.util.js.map +1 -0
  184. package/src/features/file/file.handler.js +23 -1
  185. package/src/features/file/file.handler.js.map +1 -0
  186. package/src/features/file/file.route.js +34 -1
  187. package/src/features/file/file.route.js.map +1 -0
  188. package/src/features/file/file.schema.js +77 -1
  189. package/src/features/file/file.schema.js.map +1 -0
  190. package/src/features/file/file.service.d.ts +6 -0
  191. package/src/features/file/file.service.js +66 -1
  192. package/src/features/file/file.service.js.map +1 -0
  193. package/src/features/health/health.handler.js +10 -1
  194. package/src/features/health/health.handler.js.map +1 -0
  195. package/src/features/health/health.route.js +25 -1
  196. package/src/features/health/health.route.js.map +1 -0
  197. package/src/features/index.js +16 -1
  198. package/src/features/index.js.map +1 -0
  199. package/src/features/location/location.handler.js +25 -1
  200. package/src/features/location/location.handler.js.map +1 -0
  201. package/src/features/location/location.route.js +56 -1
  202. package/src/features/location/location.route.js.map +1 -0
  203. package/src/features/location/location.schema.js +50 -1
  204. package/src/features/location/location.schema.js.map +1 -0
  205. package/src/features/location/location.service.d.ts +3 -0
  206. package/src/features/location/location.service.js +141 -1
  207. package/src/features/location/location.service.js.map +1 -0
  208. package/src/features/manufacturer/manufacturer.handler.js +53 -1
  209. package/src/features/manufacturer/manufacturer.handler.js.map +1 -0
  210. package/src/features/manufacturer/manufacturer.route.js +97 -1
  211. package/src/features/manufacturer/manufacturer.route.js.map +1 -0
  212. package/src/features/manufacturer/manufacturer.schema.js +125 -1
  213. package/src/features/manufacturer/manufacturer.schema.js.map +1 -0
  214. package/src/features/manufacturer/manufacturer.service.d.ts +19 -0
  215. package/src/features/manufacturer/manufacturer.service.js +190 -1
  216. package/src/features/manufacturer/manufacturer.service.js.map +1 -0
  217. package/src/features/order/emails/order-confirmation.email.js +229 -1
  218. package/src/features/order/emails/order-confirmation.email.js.map +1 -0
  219. package/src/features/order/emails/order-notification.email.js +229 -1
  220. package/src/features/order/emails/order-notification.email.js.map +1 -0
  221. package/src/features/order/fulfilment.schema.js +3 -1
  222. package/src/features/order/fulfilment.schema.js.map +1 -0
  223. package/src/features/order/order.handler.js +54 -1
  224. package/src/features/order/order.handler.js.map +1 -0
  225. package/src/features/order/order.route.js +111 -1
  226. package/src/features/order/order.route.js.map +1 -0
  227. package/src/features/order/order.schema.js +158 -1
  228. package/src/features/order/order.schema.js.map +1 -0
  229. package/src/features/order/order.service.d.ts +15 -0
  230. package/src/features/order/order.service.js +306 -1
  231. package/src/features/order/order.service.js.map +1 -0
  232. package/src/features/order/recipient.schema.js +38 -1
  233. package/src/features/order/recipient.schema.js.map +1 -0
  234. package/src/features/organization/legal-entity.schema.js +83 -1
  235. package/src/features/organization/legal-entity.schema.js.map +1 -0
  236. package/src/features/organization/organization-configuration.schema.js +115 -1
  237. package/src/features/organization/organization-configuration.schema.js.map +1 -0
  238. package/src/features/organization/organization.handler.js +48 -1
  239. package/src/features/organization/organization.handler.js.map +1 -0
  240. package/src/features/organization/organization.route.js +84 -1
  241. package/src/features/organization/organization.route.js.map +1 -0
  242. package/src/features/organization/organization.schema.js +64 -1
  243. package/src/features/organization/organization.schema.js.map +1 -0
  244. package/src/features/organization/organization.service.d.ts +15 -0
  245. package/src/features/organization/organization.service.js +334 -1
  246. package/src/features/organization/organization.service.js.map +1 -0
  247. package/src/features/payment/payment.handler.js +16 -1
  248. package/src/features/payment/payment.handler.js.map +1 -0
  249. package/src/features/payment/payment.route.js +22 -1
  250. package/src/features/payment/payment.route.js.map +1 -0
  251. package/src/features/payment/payment.schema.js +46 -1
  252. package/src/features/payment/payment.schema.js.map +1 -0
  253. package/src/features/payment/payment.service.js +100 -1
  254. package/src/features/payment/payment.service.js.map +1 -0
  255. package/src/features/payment/stripe.service.js +164 -1
  256. package/src/features/payment/stripe.service.js.map +1 -0
  257. package/src/features/product/product-modifier.schema.js +84 -1
  258. package/src/features/product/product-modifier.schema.js.map +1 -0
  259. package/src/features/product/product.handler.js +87 -1
  260. package/src/features/product/product.handler.js.map +1 -0
  261. package/src/features/product/product.route.js +179 -1
  262. package/src/features/product/product.route.js.map +1 -0
  263. package/src/features/product/product.schema.js +143 -1
  264. package/src/features/product/product.schema.js.map +1 -0
  265. package/src/features/product/product.service.d.ts +25 -0
  266. package/src/features/product/product.service.js +440 -1
  267. package/src/features/product/product.service.js.map +1 -0
  268. package/src/features/product-category/product-category.handler.js +59 -1
  269. package/src/features/product-category/product-category.handler.js.map +1 -0
  270. package/src/features/product-category/product-category.route.js +139 -1
  271. package/src/features/product-category/product-category.route.js.map +1 -0
  272. package/src/features/product-category/product-category.schema.js +86 -1
  273. package/src/features/product-category/product-category.schema.js.map +1 -0
  274. package/src/features/product-category/product-category.service.d.ts +22 -0
  275. package/src/features/product-category/product-category.service.js +220 -1
  276. package/src/features/product-category/product-category.service.js.map +1 -0
  277. package/src/features/reservation/emails/reservation-cancellation.email.js +82 -1
  278. package/src/features/reservation/emails/reservation-cancellation.email.js.map +1 -0
  279. package/src/features/reservation/emails/reservation-confirmation.email.js +82 -1
  280. package/src/features/reservation/emails/reservation-confirmation.email.js.map +1 -0
  281. package/src/features/reservation/emails/reservation-notification.email.js +93 -1
  282. package/src/features/reservation/emails/reservation-notification.email.js.map +1 -0
  283. package/src/features/reservation/reservation.handler.js +65 -1
  284. package/src/features/reservation/reservation.handler.js.map +1 -0
  285. package/src/features/reservation/reservation.route.js +167 -1
  286. package/src/features/reservation/reservation.route.js.map +1 -0
  287. package/src/features/reservation/reservation.schema.js +51 -1
  288. package/src/features/reservation/reservation.schema.js.map +1 -0
  289. package/src/features/reservation/reservation.service.d.ts +18 -0
  290. package/src/features/reservation/reservation.service.js +231 -1
  291. package/src/features/reservation/reservation.service.js.map +1 -0
  292. package/src/features/shipping/shipping.handler.js +32 -1
  293. package/src/features/shipping/shipping.handler.js.map +1 -0
  294. package/src/features/shipping/shipping.route.js +51 -1
  295. package/src/features/shipping/shipping.route.js.map +1 -0
  296. package/src/features/shipping/shipping.service.d.ts +7 -0
  297. package/src/features/shipping/shipping.service.js +96 -1
  298. package/src/features/shipping/shipping.service.js.map +1 -0
  299. package/src/features/shipping-method/shipping-method.handler.js +60 -1
  300. package/src/features/shipping-method/shipping-method.handler.js.map +1 -0
  301. package/src/features/shipping-method/shipping-method.route.js +144 -1
  302. package/src/features/shipping-method/shipping-method.route.js.map +1 -0
  303. package/src/features/shipping-method/shipping-method.schema.js +48 -1
  304. package/src/features/shipping-method/shipping-method.schema.js.map +1 -0
  305. package/src/features/shipping-method/shipping-method.service.d.ts +25 -0
  306. package/src/features/shipping-method/shipping-method.service.js +229 -1
  307. package/src/features/shipping-method/shipping-method.service.js.map +1 -0
  308. package/src/features/shipping-method/shipping-zone.schema.js +31 -1
  309. package/src/features/shipping-method/shipping-zone.schema.js.map +1 -0
  310. package/src/features/webhook/webhook.handler.js +50 -1
  311. package/src/features/webhook/webhook.handler.js.map +1 -0
  312. package/src/features/webhook/webhook.route.js +33 -1
  313. package/src/features/webhook/webhook.route.js.map +1 -0
  314. package/src/index.js +6 -1
  315. package/src/index.js.map +1 -0
  316. package/src/integrations/next.js +82 -1
  317. package/src/integrations/next.js.map +1 -0
  318. package/src/schemas/address.schema.d.ts +8 -0
  319. package/src/schemas/address.schema.js +112 -1
  320. package/src/schemas/address.schema.js.map +1 -0
  321. package/src/schemas/currency.schema.d.ts +42 -0
  322. package/src/schemas/currency.schema.js +118 -1
  323. package/src/schemas/currency.schema.js.map +1 -0
  324. package/src/schemas/error.schema.js +12 -1
  325. package/src/schemas/error.schema.js.map +1 -0
  326. package/src/schemas/index.js +29 -1
  327. package/src/schemas/index.js.map +1 -0
  328. package/src/schemas/locales.schema.js +238 -1
  329. package/src/schemas/locales.schema.js.map +1 -0
  330. package/src/schemas/number.schema.js +29 -1
  331. package/src/schemas/number.schema.js.map +1 -0
  332. package/src/schemas/pagination.schema.js +54 -1
  333. package/src/schemas/pagination.schema.js.map +1 -0
  334. package/src/schemas/params.schema.js +20 -1
  335. package/src/schemas/params.schema.js.map +1 -0
  336. package/src/schemas/queries.schema.js +6 -1
  337. package/src/schemas/queries.schema.js.map +1 -0
  338. package/src/test/global-setup.js +37 -1
  339. package/src/test/global-setup.js.map +1 -0
  340. package/src/test/integration/api-fixtures.js +160 -1
  341. package/src/test/integration/api-fixtures.js.map +1 -0
  342. package/src/test/integration/seed.js +368 -1
  343. package/src/test/integration/seed.js.map +1 -0
  344. package/src/test/integration/test-helpers.js +154 -1
  345. package/src/test/integration/test-helpers.js.map +1 -0
  346. package/src/test/setup-test-env.js +7 -1
  347. package/src/test/setup-test-env.js.map +1 -0
  348. package/scripts/minify.mjs +0 -123
@@ -1,5 +1,9 @@
1
1
  import type * as runtime from "@prisma/client/runtime/client";
2
2
  import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model OrderItemTranslation
5
+ *
6
+ */
3
7
  export type OrderItemTranslationModel = runtime.Types.Result.DefaultSelection<Prisma.$OrderItemTranslationPayload>;
4
8
  export type AggregateOrderItemTranslation = {
5
9
  _count: OrderItemTranslationCountAggregateOutputType | null;
@@ -51,13 +55,51 @@ export type OrderItemTranslationCountAggregateInputType = {
51
55
  _all?: true;
52
56
  };
53
57
  export type OrderItemTranslationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
58
+ /**
59
+ * Filter which OrderItemTranslation to aggregate.
60
+ */
54
61
  where?: Prisma.OrderItemTranslationWhereInput;
62
+ /**
63
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
64
+ *
65
+ * Determine the order of OrderItemTranslations to fetch.
66
+ */
55
67
  orderBy?: Prisma.OrderItemTranslationOrderByWithRelationInput | Prisma.OrderItemTranslationOrderByWithRelationInput[];
68
+ /**
69
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
70
+ *
71
+ * Sets the start position
72
+ */
56
73
  cursor?: Prisma.OrderItemTranslationWhereUniqueInput;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
76
+ *
77
+ * Take `±n` OrderItemTranslations from the position of the cursor.
78
+ */
57
79
  take?: number;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
82
+ *
83
+ * Skip the first `n` OrderItemTranslations.
84
+ */
58
85
  skip?: number;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
88
+ *
89
+ * Count returned OrderItemTranslations
90
+ **/
59
91
  _count?: true | OrderItemTranslationCountAggregateInputType;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
94
+ *
95
+ * Select which fields to find the minimum value
96
+ **/
60
97
  _min?: OrderItemTranslationMinAggregateInputType;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
100
+ *
101
+ * Select which fields to find the maximum value
102
+ **/
61
103
  _max?: OrderItemTranslationMaxAggregateInputType;
62
104
  };
63
105
  export type GetOrderItemTranslationAggregateType<T extends OrderItemTranslationAggregateArgs> = {
@@ -390,22 +432,290 @@ export interface OrderItemTranslationDelegate<ExtArgs extends runtime.Types.Exte
390
432
  name: 'OrderItemTranslation';
391
433
  };
392
434
  };
435
+ /**
436
+ * Find zero or one OrderItemTranslation that matches the filter.
437
+ * @param {OrderItemTranslationFindUniqueArgs} args - Arguments to find a OrderItemTranslation
438
+ * @example
439
+ * // Get one OrderItemTranslation
440
+ * const orderItemTranslation = await prisma.orderItemTranslation.findUnique({
441
+ * where: {
442
+ * // ... provide filter here
443
+ * }
444
+ * })
445
+ */
393
446
  findUnique<T extends OrderItemTranslationFindUniqueArgs>(args: Prisma.SelectSubset<T, OrderItemTranslationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OrderItemTranslationClient<runtime.Types.Result.GetResult<Prisma.$OrderItemTranslationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
447
+ /**
448
+ * Find one OrderItemTranslation that matches the filter or throw an error with `error.code='P2025'`
449
+ * if no matches were found.
450
+ * @param {OrderItemTranslationFindUniqueOrThrowArgs} args - Arguments to find a OrderItemTranslation
451
+ * @example
452
+ * // Get one OrderItemTranslation
453
+ * const orderItemTranslation = await prisma.orderItemTranslation.findUniqueOrThrow({
454
+ * where: {
455
+ * // ... provide filter here
456
+ * }
457
+ * })
458
+ */
394
459
  findUniqueOrThrow<T extends OrderItemTranslationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OrderItemTranslationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OrderItemTranslationClient<runtime.Types.Result.GetResult<Prisma.$OrderItemTranslationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
460
+ /**
461
+ * Find the first OrderItemTranslation that matches the filter.
462
+ * Note, that providing `undefined` is treated as the value not being there.
463
+ * Read more here: https://pris.ly/d/null-undefined
464
+ * @param {OrderItemTranslationFindFirstArgs} args - Arguments to find a OrderItemTranslation
465
+ * @example
466
+ * // Get one OrderItemTranslation
467
+ * const orderItemTranslation = await prisma.orderItemTranslation.findFirst({
468
+ * where: {
469
+ * // ... provide filter here
470
+ * }
471
+ * })
472
+ */
395
473
  findFirst<T extends OrderItemTranslationFindFirstArgs>(args?: Prisma.SelectSubset<T, OrderItemTranslationFindFirstArgs<ExtArgs>>): Prisma.Prisma__OrderItemTranslationClient<runtime.Types.Result.GetResult<Prisma.$OrderItemTranslationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
474
+ /**
475
+ * Find the first OrderItemTranslation that matches the filter or
476
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
477
+ * Note, that providing `undefined` is treated as the value not being there.
478
+ * Read more here: https://pris.ly/d/null-undefined
479
+ * @param {OrderItemTranslationFindFirstOrThrowArgs} args - Arguments to find a OrderItemTranslation
480
+ * @example
481
+ * // Get one OrderItemTranslation
482
+ * const orderItemTranslation = await prisma.orderItemTranslation.findFirstOrThrow({
483
+ * where: {
484
+ * // ... provide filter here
485
+ * }
486
+ * })
487
+ */
396
488
  findFirstOrThrow<T extends OrderItemTranslationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OrderItemTranslationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OrderItemTranslationClient<runtime.Types.Result.GetResult<Prisma.$OrderItemTranslationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
489
+ /**
490
+ * Find zero or more OrderItemTranslations that matches the filter.
491
+ * Note, that providing `undefined` is treated as the value not being there.
492
+ * Read more here: https://pris.ly/d/null-undefined
493
+ * @param {OrderItemTranslationFindManyArgs} args - Arguments to filter and select certain fields only.
494
+ * @example
495
+ * // Get all OrderItemTranslations
496
+ * const orderItemTranslations = await prisma.orderItemTranslation.findMany()
497
+ *
498
+ * // Get first 10 OrderItemTranslations
499
+ * const orderItemTranslations = await prisma.orderItemTranslation.findMany({ take: 10 })
500
+ *
501
+ * // Only select the `id`
502
+ * const orderItemTranslationWithIdOnly = await prisma.orderItemTranslation.findMany({ select: { id: true } })
503
+ *
504
+ */
397
505
  findMany<T extends OrderItemTranslationFindManyArgs>(args?: Prisma.SelectSubset<T, OrderItemTranslationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderItemTranslationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
506
+ /**
507
+ * Create a OrderItemTranslation.
508
+ * @param {OrderItemTranslationCreateArgs} args - Arguments to create a OrderItemTranslation.
509
+ * @example
510
+ * // Create one OrderItemTranslation
511
+ * const OrderItemTranslation = await prisma.orderItemTranslation.create({
512
+ * data: {
513
+ * // ... data to create a OrderItemTranslation
514
+ * }
515
+ * })
516
+ *
517
+ */
398
518
  create<T extends OrderItemTranslationCreateArgs>(args: Prisma.SelectSubset<T, OrderItemTranslationCreateArgs<ExtArgs>>): Prisma.Prisma__OrderItemTranslationClient<runtime.Types.Result.GetResult<Prisma.$OrderItemTranslationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
519
+ /**
520
+ * Create many OrderItemTranslations.
521
+ * @param {OrderItemTranslationCreateManyArgs} args - Arguments to create many OrderItemTranslations.
522
+ * @example
523
+ * // Create many OrderItemTranslations
524
+ * const orderItemTranslation = await prisma.orderItemTranslation.createMany({
525
+ * data: [
526
+ * // ... provide data here
527
+ * ]
528
+ * })
529
+ *
530
+ */
399
531
  createMany<T extends OrderItemTranslationCreateManyArgs>(args?: Prisma.SelectSubset<T, OrderItemTranslationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
532
+ /**
533
+ * Create many OrderItemTranslations and returns the data saved in the database.
534
+ * @param {OrderItemTranslationCreateManyAndReturnArgs} args - Arguments to create many OrderItemTranslations.
535
+ * @example
536
+ * // Create many OrderItemTranslations
537
+ * const orderItemTranslation = await prisma.orderItemTranslation.createManyAndReturn({
538
+ * data: [
539
+ * // ... provide data here
540
+ * ]
541
+ * })
542
+ *
543
+ * // Create many OrderItemTranslations and only return the `id`
544
+ * const orderItemTranslationWithIdOnly = await prisma.orderItemTranslation.createManyAndReturn({
545
+ * select: { id: true },
546
+ * data: [
547
+ * // ... provide data here
548
+ * ]
549
+ * })
550
+ * Note, that providing `undefined` is treated as the value not being there.
551
+ * Read more here: https://pris.ly/d/null-undefined
552
+ *
553
+ */
400
554
  createManyAndReturn<T extends OrderItemTranslationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OrderItemTranslationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderItemTranslationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
555
+ /**
556
+ * Delete a OrderItemTranslation.
557
+ * @param {OrderItemTranslationDeleteArgs} args - Arguments to delete one OrderItemTranslation.
558
+ * @example
559
+ * // Delete one OrderItemTranslation
560
+ * const OrderItemTranslation = await prisma.orderItemTranslation.delete({
561
+ * where: {
562
+ * // ... filter to delete one OrderItemTranslation
563
+ * }
564
+ * })
565
+ *
566
+ */
401
567
  delete<T extends OrderItemTranslationDeleteArgs>(args: Prisma.SelectSubset<T, OrderItemTranslationDeleteArgs<ExtArgs>>): Prisma.Prisma__OrderItemTranslationClient<runtime.Types.Result.GetResult<Prisma.$OrderItemTranslationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
568
+ /**
569
+ * Update one OrderItemTranslation.
570
+ * @param {OrderItemTranslationUpdateArgs} args - Arguments to update one OrderItemTranslation.
571
+ * @example
572
+ * // Update one OrderItemTranslation
573
+ * const orderItemTranslation = await prisma.orderItemTranslation.update({
574
+ * where: {
575
+ * // ... provide filter here
576
+ * },
577
+ * data: {
578
+ * // ... provide data here
579
+ * }
580
+ * })
581
+ *
582
+ */
402
583
  update<T extends OrderItemTranslationUpdateArgs>(args: Prisma.SelectSubset<T, OrderItemTranslationUpdateArgs<ExtArgs>>): Prisma.Prisma__OrderItemTranslationClient<runtime.Types.Result.GetResult<Prisma.$OrderItemTranslationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
584
+ /**
585
+ * Delete zero or more OrderItemTranslations.
586
+ * @param {OrderItemTranslationDeleteManyArgs} args - Arguments to filter OrderItemTranslations to delete.
587
+ * @example
588
+ * // Delete a few OrderItemTranslations
589
+ * const { count } = await prisma.orderItemTranslation.deleteMany({
590
+ * where: {
591
+ * // ... provide filter here
592
+ * }
593
+ * })
594
+ *
595
+ */
403
596
  deleteMany<T extends OrderItemTranslationDeleteManyArgs>(args?: Prisma.SelectSubset<T, OrderItemTranslationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
597
+ /**
598
+ * Update zero or more OrderItemTranslations.
599
+ * Note, that providing `undefined` is treated as the value not being there.
600
+ * Read more here: https://pris.ly/d/null-undefined
601
+ * @param {OrderItemTranslationUpdateManyArgs} args - Arguments to update one or more rows.
602
+ * @example
603
+ * // Update many OrderItemTranslations
604
+ * const orderItemTranslation = await prisma.orderItemTranslation.updateMany({
605
+ * where: {
606
+ * // ... provide filter here
607
+ * },
608
+ * data: {
609
+ * // ... provide data here
610
+ * }
611
+ * })
612
+ *
613
+ */
404
614
  updateMany<T extends OrderItemTranslationUpdateManyArgs>(args: Prisma.SelectSubset<T, OrderItemTranslationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
615
+ /**
616
+ * Update zero or more OrderItemTranslations and returns the data updated in the database.
617
+ * @param {OrderItemTranslationUpdateManyAndReturnArgs} args - Arguments to update many OrderItemTranslations.
618
+ * @example
619
+ * // Update many OrderItemTranslations
620
+ * const orderItemTranslation = await prisma.orderItemTranslation.updateManyAndReturn({
621
+ * where: {
622
+ * // ... provide filter here
623
+ * },
624
+ * data: [
625
+ * // ... provide data here
626
+ * ]
627
+ * })
628
+ *
629
+ * // Update zero or more OrderItemTranslations and only return the `id`
630
+ * const orderItemTranslationWithIdOnly = await prisma.orderItemTranslation.updateManyAndReturn({
631
+ * select: { id: true },
632
+ * where: {
633
+ * // ... provide filter here
634
+ * },
635
+ * data: [
636
+ * // ... provide data here
637
+ * ]
638
+ * })
639
+ * Note, that providing `undefined` is treated as the value not being there.
640
+ * Read more here: https://pris.ly/d/null-undefined
641
+ *
642
+ */
405
643
  updateManyAndReturn<T extends OrderItemTranslationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OrderItemTranslationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderItemTranslationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
644
+ /**
645
+ * Create or update one OrderItemTranslation.
646
+ * @param {OrderItemTranslationUpsertArgs} args - Arguments to update or create a OrderItemTranslation.
647
+ * @example
648
+ * // Update or create a OrderItemTranslation
649
+ * const orderItemTranslation = await prisma.orderItemTranslation.upsert({
650
+ * create: {
651
+ * // ... data to create a OrderItemTranslation
652
+ * },
653
+ * update: {
654
+ * // ... in case it already exists, update
655
+ * },
656
+ * where: {
657
+ * // ... the filter for the OrderItemTranslation we want to update
658
+ * }
659
+ * })
660
+ */
406
661
  upsert<T extends OrderItemTranslationUpsertArgs>(args: Prisma.SelectSubset<T, OrderItemTranslationUpsertArgs<ExtArgs>>): Prisma.Prisma__OrderItemTranslationClient<runtime.Types.Result.GetResult<Prisma.$OrderItemTranslationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
662
+ /**
663
+ * Count the number of OrderItemTranslations.
664
+ * Note, that providing `undefined` is treated as the value not being there.
665
+ * Read more here: https://pris.ly/d/null-undefined
666
+ * @param {OrderItemTranslationCountArgs} args - Arguments to filter OrderItemTranslations to count.
667
+ * @example
668
+ * // Count the number of OrderItemTranslations
669
+ * const count = await prisma.orderItemTranslation.count({
670
+ * where: {
671
+ * // ... the filter for the OrderItemTranslations we want to count
672
+ * }
673
+ * })
674
+ **/
407
675
  count<T extends OrderItemTranslationCountArgs>(args?: Prisma.Subset<T, OrderItemTranslationCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], OrderItemTranslationCountAggregateOutputType> : number>;
676
+ /**
677
+ * Allows you to perform aggregations operations on a OrderItemTranslation.
678
+ * Note, that providing `undefined` is treated as the value not being there.
679
+ * Read more here: https://pris.ly/d/null-undefined
680
+ * @param {OrderItemTranslationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
681
+ * @example
682
+ * // Ordered by age ascending
683
+ * // Where email contains prisma.io
684
+ * // Limited to the 10 users
685
+ * const aggregations = await prisma.user.aggregate({
686
+ * _avg: {
687
+ * age: true,
688
+ * },
689
+ * where: {
690
+ * email: {
691
+ * contains: "prisma.io",
692
+ * },
693
+ * },
694
+ * orderBy: {
695
+ * age: "asc",
696
+ * },
697
+ * take: 10,
698
+ * })
699
+ **/
408
700
  aggregate<T extends OrderItemTranslationAggregateArgs>(args: Prisma.Subset<T, OrderItemTranslationAggregateArgs>): Prisma.PrismaPromise<GetOrderItemTranslationAggregateType<T>>;
701
+ /**
702
+ * Group by OrderItemTranslation.
703
+ * Note, that providing `undefined` is treated as the value not being there.
704
+ * Read more here: https://pris.ly/d/null-undefined
705
+ * @param {OrderItemTranslationGroupByArgs} args - Group by arguments.
706
+ * @example
707
+ * // Group by city, order by createdAt, get count
708
+ * const result = await prisma.user.groupBy({
709
+ * by: ['city', 'createdAt'],
710
+ * orderBy: {
711
+ * createdAt: true
712
+ * },
713
+ * _count: {
714
+ * _all: true
715
+ * },
716
+ * })
717
+ *
718
+ **/
409
719
  groupBy<T extends OrderItemTranslationGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
410
720
  orderBy: OrderItemTranslationGroupByArgs['orderBy'];
411
721
  } : {
@@ -424,15 +734,44 @@ export interface OrderItemTranslationDelegate<ExtArgs extends runtime.Types.Exte
424
734
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
425
735
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
426
736
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, OrderItemTranslationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOrderItemTranslationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
737
+ /**
738
+ * Fields of the OrderItemTranslation model
739
+ */
427
740
  readonly fields: OrderItemTranslationFieldRefs;
428
741
  }
742
+ /**
743
+ * The delegate class that acts as a "Promise-like" for OrderItemTranslation.
744
+ * Why is this prefixed with `Prisma__`?
745
+ * Because we want to prevent naming conflicts as mentioned in
746
+ * https://github.com/prisma/prisma-client-js/issues/707
747
+ */
429
748
  export interface Prisma__OrderItemTranslationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
430
749
  readonly [Symbol.toStringTag]: "PrismaPromise";
431
750
  orderItem<T extends Prisma.OrderItemDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrderItemDefaultArgs<ExtArgs>>): Prisma.Prisma__OrderItemClient<runtime.Types.Result.GetResult<Prisma.$OrderItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
751
+ /**
752
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
753
+ * @param onfulfilled The callback to execute when the Promise is resolved.
754
+ * @param onrejected The callback to execute when the Promise is rejected.
755
+ * @returns A Promise for the completion of which ever callback is executed.
756
+ */
432
757
  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>;
758
+ /**
759
+ * Attaches a callback for only the rejection of the Promise.
760
+ * @param onrejected The callback to execute when the Promise is rejected.
761
+ * @returns A Promise for the completion of the callback.
762
+ */
433
763
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
764
+ /**
765
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
766
+ * resolved value cannot be modified from the callback.
767
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
768
+ * @returns A Promise for the completion of the callback.
769
+ */
434
770
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
435
771
  }
772
+ /**
773
+ * Fields of the OrderItemTranslation model
774
+ */
436
775
  export interface OrderItemTranslationFieldRefs {
437
776
  readonly id: Prisma.FieldRef<"OrderItemTranslation", 'String'>;
438
777
  readonly locale: Prisma.FieldRef<"OrderItemTranslation", 'String'>;
@@ -440,109 +779,403 @@ export interface OrderItemTranslationFieldRefs {
440
779
  readonly subtitle: Prisma.FieldRef<"OrderItemTranslation", 'String'>;
441
780
  readonly orderItemId: Prisma.FieldRef<"OrderItemTranslation", 'String'>;
442
781
  }
782
+ /**
783
+ * OrderItemTranslation findUnique
784
+ */
443
785
  export type OrderItemTranslationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
786
+ /**
787
+ * Select specific fields to fetch from the OrderItemTranslation
788
+ */
444
789
  select?: Prisma.OrderItemTranslationSelect<ExtArgs> | null;
790
+ /**
791
+ * Omit specific fields from the OrderItemTranslation
792
+ */
445
793
  omit?: Prisma.OrderItemTranslationOmit<ExtArgs> | null;
794
+ /**
795
+ * Choose, which related nodes to fetch as well
796
+ */
446
797
  include?: Prisma.OrderItemTranslationInclude<ExtArgs> | null;
798
+ /**
799
+ * Filter, which OrderItemTranslation to fetch.
800
+ */
447
801
  where: Prisma.OrderItemTranslationWhereUniqueInput;
448
802
  };
803
+ /**
804
+ * OrderItemTranslation findUniqueOrThrow
805
+ */
449
806
  export type OrderItemTranslationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
807
+ /**
808
+ * Select specific fields to fetch from the OrderItemTranslation
809
+ */
450
810
  select?: Prisma.OrderItemTranslationSelect<ExtArgs> | null;
811
+ /**
812
+ * Omit specific fields from the OrderItemTranslation
813
+ */
451
814
  omit?: Prisma.OrderItemTranslationOmit<ExtArgs> | null;
815
+ /**
816
+ * Choose, which related nodes to fetch as well
817
+ */
452
818
  include?: Prisma.OrderItemTranslationInclude<ExtArgs> | null;
819
+ /**
820
+ * Filter, which OrderItemTranslation to fetch.
821
+ */
453
822
  where: Prisma.OrderItemTranslationWhereUniqueInput;
454
823
  };
824
+ /**
825
+ * OrderItemTranslation findFirst
826
+ */
455
827
  export type OrderItemTranslationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
828
+ /**
829
+ * Select specific fields to fetch from the OrderItemTranslation
830
+ */
456
831
  select?: Prisma.OrderItemTranslationSelect<ExtArgs> | null;
832
+ /**
833
+ * Omit specific fields from the OrderItemTranslation
834
+ */
457
835
  omit?: Prisma.OrderItemTranslationOmit<ExtArgs> | null;
836
+ /**
837
+ * Choose, which related nodes to fetch as well
838
+ */
458
839
  include?: Prisma.OrderItemTranslationInclude<ExtArgs> | null;
840
+ /**
841
+ * Filter, which OrderItemTranslation to fetch.
842
+ */
459
843
  where?: Prisma.OrderItemTranslationWhereInput;
844
+ /**
845
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
846
+ *
847
+ * Determine the order of OrderItemTranslations to fetch.
848
+ */
460
849
  orderBy?: Prisma.OrderItemTranslationOrderByWithRelationInput | Prisma.OrderItemTranslationOrderByWithRelationInput[];
850
+ /**
851
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
852
+ *
853
+ * Sets the position for searching for OrderItemTranslations.
854
+ */
461
855
  cursor?: Prisma.OrderItemTranslationWhereUniqueInput;
856
+ /**
857
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
858
+ *
859
+ * Take `±n` OrderItemTranslations from the position of the cursor.
860
+ */
462
861
  take?: number;
862
+ /**
863
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
864
+ *
865
+ * Skip the first `n` OrderItemTranslations.
866
+ */
463
867
  skip?: number;
868
+ /**
869
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
870
+ *
871
+ * Filter by unique combinations of OrderItemTranslations.
872
+ */
464
873
  distinct?: Prisma.OrderItemTranslationScalarFieldEnum | Prisma.OrderItemTranslationScalarFieldEnum[];
465
874
  };
875
+ /**
876
+ * OrderItemTranslation findFirstOrThrow
877
+ */
466
878
  export type OrderItemTranslationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
879
+ /**
880
+ * Select specific fields to fetch from the OrderItemTranslation
881
+ */
467
882
  select?: Prisma.OrderItemTranslationSelect<ExtArgs> | null;
883
+ /**
884
+ * Omit specific fields from the OrderItemTranslation
885
+ */
468
886
  omit?: Prisma.OrderItemTranslationOmit<ExtArgs> | null;
887
+ /**
888
+ * Choose, which related nodes to fetch as well
889
+ */
469
890
  include?: Prisma.OrderItemTranslationInclude<ExtArgs> | null;
891
+ /**
892
+ * Filter, which OrderItemTranslation to fetch.
893
+ */
470
894
  where?: Prisma.OrderItemTranslationWhereInput;
895
+ /**
896
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
897
+ *
898
+ * Determine the order of OrderItemTranslations to fetch.
899
+ */
471
900
  orderBy?: Prisma.OrderItemTranslationOrderByWithRelationInput | Prisma.OrderItemTranslationOrderByWithRelationInput[];
901
+ /**
902
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
903
+ *
904
+ * Sets the position for searching for OrderItemTranslations.
905
+ */
472
906
  cursor?: Prisma.OrderItemTranslationWhereUniqueInput;
907
+ /**
908
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
909
+ *
910
+ * Take `±n` OrderItemTranslations from the position of the cursor.
911
+ */
473
912
  take?: number;
913
+ /**
914
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
915
+ *
916
+ * Skip the first `n` OrderItemTranslations.
917
+ */
474
918
  skip?: number;
919
+ /**
920
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
921
+ *
922
+ * Filter by unique combinations of OrderItemTranslations.
923
+ */
475
924
  distinct?: Prisma.OrderItemTranslationScalarFieldEnum | Prisma.OrderItemTranslationScalarFieldEnum[];
476
925
  };
926
+ /**
927
+ * OrderItemTranslation findMany
928
+ */
477
929
  export type OrderItemTranslationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
930
+ /**
931
+ * Select specific fields to fetch from the OrderItemTranslation
932
+ */
478
933
  select?: Prisma.OrderItemTranslationSelect<ExtArgs> | null;
934
+ /**
935
+ * Omit specific fields from the OrderItemTranslation
936
+ */
479
937
  omit?: Prisma.OrderItemTranslationOmit<ExtArgs> | null;
938
+ /**
939
+ * Choose, which related nodes to fetch as well
940
+ */
480
941
  include?: Prisma.OrderItemTranslationInclude<ExtArgs> | null;
942
+ /**
943
+ * Filter, which OrderItemTranslations to fetch.
944
+ */
481
945
  where?: Prisma.OrderItemTranslationWhereInput;
946
+ /**
947
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
948
+ *
949
+ * Determine the order of OrderItemTranslations to fetch.
950
+ */
482
951
  orderBy?: Prisma.OrderItemTranslationOrderByWithRelationInput | Prisma.OrderItemTranslationOrderByWithRelationInput[];
952
+ /**
953
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
954
+ *
955
+ * Sets the position for listing OrderItemTranslations.
956
+ */
483
957
  cursor?: Prisma.OrderItemTranslationWhereUniqueInput;
958
+ /**
959
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
960
+ *
961
+ * Take `±n` OrderItemTranslations from the position of the cursor.
962
+ */
484
963
  take?: number;
964
+ /**
965
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
966
+ *
967
+ * Skip the first `n` OrderItemTranslations.
968
+ */
485
969
  skip?: number;
970
+ /**
971
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
972
+ *
973
+ * Filter by unique combinations of OrderItemTranslations.
974
+ */
486
975
  distinct?: Prisma.OrderItemTranslationScalarFieldEnum | Prisma.OrderItemTranslationScalarFieldEnum[];
487
976
  };
977
+ /**
978
+ * OrderItemTranslation create
979
+ */
488
980
  export type OrderItemTranslationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
981
+ /**
982
+ * Select specific fields to fetch from the OrderItemTranslation
983
+ */
489
984
  select?: Prisma.OrderItemTranslationSelect<ExtArgs> | null;
985
+ /**
986
+ * Omit specific fields from the OrderItemTranslation
987
+ */
490
988
  omit?: Prisma.OrderItemTranslationOmit<ExtArgs> | null;
989
+ /**
990
+ * Choose, which related nodes to fetch as well
991
+ */
491
992
  include?: Prisma.OrderItemTranslationInclude<ExtArgs> | null;
993
+ /**
994
+ * The data needed to create a OrderItemTranslation.
995
+ */
492
996
  data: Prisma.XOR<Prisma.OrderItemTranslationCreateInput, Prisma.OrderItemTranslationUncheckedCreateInput>;
493
997
  };
998
+ /**
999
+ * OrderItemTranslation createMany
1000
+ */
494
1001
  export type OrderItemTranslationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1002
+ /**
1003
+ * The data used to create many OrderItemTranslations.
1004
+ */
495
1005
  data: Prisma.OrderItemTranslationCreateManyInput | Prisma.OrderItemTranslationCreateManyInput[];
496
1006
  skipDuplicates?: boolean;
497
1007
  };
1008
+ /**
1009
+ * OrderItemTranslation createManyAndReturn
1010
+ */
498
1011
  export type OrderItemTranslationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1012
+ /**
1013
+ * Select specific fields to fetch from the OrderItemTranslation
1014
+ */
499
1015
  select?: Prisma.OrderItemTranslationSelectCreateManyAndReturn<ExtArgs> | null;
1016
+ /**
1017
+ * Omit specific fields from the OrderItemTranslation
1018
+ */
500
1019
  omit?: Prisma.OrderItemTranslationOmit<ExtArgs> | null;
1020
+ /**
1021
+ * The data used to create many OrderItemTranslations.
1022
+ */
501
1023
  data: Prisma.OrderItemTranslationCreateManyInput | Prisma.OrderItemTranslationCreateManyInput[];
502
1024
  skipDuplicates?: boolean;
1025
+ /**
1026
+ * Choose, which related nodes to fetch as well
1027
+ */
503
1028
  include?: Prisma.OrderItemTranslationIncludeCreateManyAndReturn<ExtArgs> | null;
504
1029
  };
1030
+ /**
1031
+ * OrderItemTranslation update
1032
+ */
505
1033
  export type OrderItemTranslationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1034
+ /**
1035
+ * Select specific fields to fetch from the OrderItemTranslation
1036
+ */
506
1037
  select?: Prisma.OrderItemTranslationSelect<ExtArgs> | null;
1038
+ /**
1039
+ * Omit specific fields from the OrderItemTranslation
1040
+ */
507
1041
  omit?: Prisma.OrderItemTranslationOmit<ExtArgs> | null;
1042
+ /**
1043
+ * Choose, which related nodes to fetch as well
1044
+ */
508
1045
  include?: Prisma.OrderItemTranslationInclude<ExtArgs> | null;
1046
+ /**
1047
+ * The data needed to update a OrderItemTranslation.
1048
+ */
509
1049
  data: Prisma.XOR<Prisma.OrderItemTranslationUpdateInput, Prisma.OrderItemTranslationUncheckedUpdateInput>;
1050
+ /**
1051
+ * Choose, which OrderItemTranslation to update.
1052
+ */
510
1053
  where: Prisma.OrderItemTranslationWhereUniqueInput;
511
1054
  };
1055
+ /**
1056
+ * OrderItemTranslation updateMany
1057
+ */
512
1058
  export type OrderItemTranslationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1059
+ /**
1060
+ * The data used to update OrderItemTranslations.
1061
+ */
513
1062
  data: Prisma.XOR<Prisma.OrderItemTranslationUpdateManyMutationInput, Prisma.OrderItemTranslationUncheckedUpdateManyInput>;
1063
+ /**
1064
+ * Filter which OrderItemTranslations to update
1065
+ */
514
1066
  where?: Prisma.OrderItemTranslationWhereInput;
1067
+ /**
1068
+ * Limit how many OrderItemTranslations to update.
1069
+ */
515
1070
  limit?: number;
516
1071
  };
1072
+ /**
1073
+ * OrderItemTranslation updateManyAndReturn
1074
+ */
517
1075
  export type OrderItemTranslationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1076
+ /**
1077
+ * Select specific fields to fetch from the OrderItemTranslation
1078
+ */
518
1079
  select?: Prisma.OrderItemTranslationSelectUpdateManyAndReturn<ExtArgs> | null;
1080
+ /**
1081
+ * Omit specific fields from the OrderItemTranslation
1082
+ */
519
1083
  omit?: Prisma.OrderItemTranslationOmit<ExtArgs> | null;
1084
+ /**
1085
+ * The data used to update OrderItemTranslations.
1086
+ */
520
1087
  data: Prisma.XOR<Prisma.OrderItemTranslationUpdateManyMutationInput, Prisma.OrderItemTranslationUncheckedUpdateManyInput>;
1088
+ /**
1089
+ * Filter which OrderItemTranslations to update
1090
+ */
521
1091
  where?: Prisma.OrderItemTranslationWhereInput;
1092
+ /**
1093
+ * Limit how many OrderItemTranslations to update.
1094
+ */
522
1095
  limit?: number;
1096
+ /**
1097
+ * Choose, which related nodes to fetch as well
1098
+ */
523
1099
  include?: Prisma.OrderItemTranslationIncludeUpdateManyAndReturn<ExtArgs> | null;
524
1100
  };
1101
+ /**
1102
+ * OrderItemTranslation upsert
1103
+ */
525
1104
  export type OrderItemTranslationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1105
+ /**
1106
+ * Select specific fields to fetch from the OrderItemTranslation
1107
+ */
526
1108
  select?: Prisma.OrderItemTranslationSelect<ExtArgs> | null;
1109
+ /**
1110
+ * Omit specific fields from the OrderItemTranslation
1111
+ */
527
1112
  omit?: Prisma.OrderItemTranslationOmit<ExtArgs> | null;
1113
+ /**
1114
+ * Choose, which related nodes to fetch as well
1115
+ */
528
1116
  include?: Prisma.OrderItemTranslationInclude<ExtArgs> | null;
1117
+ /**
1118
+ * The filter to search for the OrderItemTranslation to update in case it exists.
1119
+ */
529
1120
  where: Prisma.OrderItemTranslationWhereUniqueInput;
1121
+ /**
1122
+ * In case the OrderItemTranslation found by the `where` argument doesn't exist, create a new OrderItemTranslation with this data.
1123
+ */
530
1124
  create: Prisma.XOR<Prisma.OrderItemTranslationCreateInput, Prisma.OrderItemTranslationUncheckedCreateInput>;
1125
+ /**
1126
+ * In case the OrderItemTranslation was found with the provided `where` argument, update it with this data.
1127
+ */
531
1128
  update: Prisma.XOR<Prisma.OrderItemTranslationUpdateInput, Prisma.OrderItemTranslationUncheckedUpdateInput>;
532
1129
  };
1130
+ /**
1131
+ * OrderItemTranslation delete
1132
+ */
533
1133
  export type OrderItemTranslationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1134
+ /**
1135
+ * Select specific fields to fetch from the OrderItemTranslation
1136
+ */
534
1137
  select?: Prisma.OrderItemTranslationSelect<ExtArgs> | null;
1138
+ /**
1139
+ * Omit specific fields from the OrderItemTranslation
1140
+ */
535
1141
  omit?: Prisma.OrderItemTranslationOmit<ExtArgs> | null;
1142
+ /**
1143
+ * Choose, which related nodes to fetch as well
1144
+ */
536
1145
  include?: Prisma.OrderItemTranslationInclude<ExtArgs> | null;
1146
+ /**
1147
+ * Filter which OrderItemTranslation to delete.
1148
+ */
537
1149
  where: Prisma.OrderItemTranslationWhereUniqueInput;
538
1150
  };
1151
+ /**
1152
+ * OrderItemTranslation deleteMany
1153
+ */
539
1154
  export type OrderItemTranslationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1155
+ /**
1156
+ * Filter which OrderItemTranslations to delete
1157
+ */
540
1158
  where?: Prisma.OrderItemTranslationWhereInput;
1159
+ /**
1160
+ * Limit how many OrderItemTranslations to delete.
1161
+ */
541
1162
  limit?: number;
542
1163
  };
1164
+ /**
1165
+ * OrderItemTranslation without action
1166
+ */
543
1167
  export type OrderItemTranslationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1168
+ /**
1169
+ * Select specific fields to fetch from the OrderItemTranslation
1170
+ */
544
1171
  select?: Prisma.OrderItemTranslationSelect<ExtArgs> | null;
1172
+ /**
1173
+ * Omit specific fields from the OrderItemTranslation
1174
+ */
545
1175
  omit?: Prisma.OrderItemTranslationOmit<ExtArgs> | null;
1176
+ /**
1177
+ * Choose, which related nodes to fetch as well
1178
+ */
546
1179
  include?: Prisma.OrderItemTranslationInclude<ExtArgs> | null;
547
1180
  };
548
1181
  export {};