@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 ProductCategoryTranslation
5
+ *
6
+ */
3
7
  export type ProductCategoryTranslationModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductCategoryTranslationPayload>;
4
8
  export type AggregateProductCategoryTranslation = {
5
9
  _count: ProductCategoryTranslationCountAggregateOutputType | null;
@@ -75,13 +79,51 @@ export type ProductCategoryTranslationCountAggregateInputType = {
75
79
  _all?: true;
76
80
  };
77
81
  export type ProductCategoryTranslationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
82
+ /**
83
+ * Filter which ProductCategoryTranslation to aggregate.
84
+ */
78
85
  where?: Prisma.ProductCategoryTranslationWhereInput;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
88
+ *
89
+ * Determine the order of ProductCategoryTranslations to fetch.
90
+ */
79
91
  orderBy?: Prisma.ProductCategoryTranslationOrderByWithRelationInput | Prisma.ProductCategoryTranslationOrderByWithRelationInput[];
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
94
+ *
95
+ * Sets the start position
96
+ */
80
97
  cursor?: Prisma.ProductCategoryTranslationWhereUniqueInput;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
100
+ *
101
+ * Take `±n` ProductCategoryTranslations from the position of the cursor.
102
+ */
81
103
  take?: number;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
106
+ *
107
+ * Skip the first `n` ProductCategoryTranslations.
108
+ */
82
109
  skip?: number;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Count returned ProductCategoryTranslations
114
+ **/
83
115
  _count?: true | ProductCategoryTranslationCountAggregateInputType;
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
118
+ *
119
+ * Select which fields to find the minimum value
120
+ **/
84
121
  _min?: ProductCategoryTranslationMinAggregateInputType;
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
124
+ *
125
+ * Select which fields to find the maximum value
126
+ **/
85
127
  _max?: ProductCategoryTranslationMaxAggregateInputType;
86
128
  };
87
129
  export type GetProductCategoryTranslationAggregateType<T extends ProductCategoryTranslationAggregateArgs> = {
@@ -526,22 +568,290 @@ export interface ProductCategoryTranslationDelegate<ExtArgs extends runtime.Type
526
568
  name: 'ProductCategoryTranslation';
527
569
  };
528
570
  };
571
+ /**
572
+ * Find zero or one ProductCategoryTranslation that matches the filter.
573
+ * @param {ProductCategoryTranslationFindUniqueArgs} args - Arguments to find a ProductCategoryTranslation
574
+ * @example
575
+ * // Get one ProductCategoryTranslation
576
+ * const productCategoryTranslation = await prisma.productCategoryTranslation.findUnique({
577
+ * where: {
578
+ * // ... provide filter here
579
+ * }
580
+ * })
581
+ */
529
582
  findUnique<T extends ProductCategoryTranslationFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductCategoryTranslationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryTranslationClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
583
+ /**
584
+ * Find one ProductCategoryTranslation that matches the filter or throw an error with `error.code='P2025'`
585
+ * if no matches were found.
586
+ * @param {ProductCategoryTranslationFindUniqueOrThrowArgs} args - Arguments to find a ProductCategoryTranslation
587
+ * @example
588
+ * // Get one ProductCategoryTranslation
589
+ * const productCategoryTranslation = await prisma.productCategoryTranslation.findUniqueOrThrow({
590
+ * where: {
591
+ * // ... provide filter here
592
+ * }
593
+ * })
594
+ */
530
595
  findUniqueOrThrow<T extends ProductCategoryTranslationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductCategoryTranslationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryTranslationClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
596
+ /**
597
+ * Find the first ProductCategoryTranslation that matches the filter.
598
+ * Note, that providing `undefined` is treated as the value not being there.
599
+ * Read more here: https://pris.ly/d/null-undefined
600
+ * @param {ProductCategoryTranslationFindFirstArgs} args - Arguments to find a ProductCategoryTranslation
601
+ * @example
602
+ * // Get one ProductCategoryTranslation
603
+ * const productCategoryTranslation = await prisma.productCategoryTranslation.findFirst({
604
+ * where: {
605
+ * // ... provide filter here
606
+ * }
607
+ * })
608
+ */
531
609
  findFirst<T extends ProductCategoryTranslationFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductCategoryTranslationFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryTranslationClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
610
+ /**
611
+ * Find the first ProductCategoryTranslation that matches the filter or
612
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
613
+ * Note, that providing `undefined` is treated as the value not being there.
614
+ * Read more here: https://pris.ly/d/null-undefined
615
+ * @param {ProductCategoryTranslationFindFirstOrThrowArgs} args - Arguments to find a ProductCategoryTranslation
616
+ * @example
617
+ * // Get one ProductCategoryTranslation
618
+ * const productCategoryTranslation = await prisma.productCategoryTranslation.findFirstOrThrow({
619
+ * where: {
620
+ * // ... provide filter here
621
+ * }
622
+ * })
623
+ */
532
624
  findFirstOrThrow<T extends ProductCategoryTranslationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductCategoryTranslationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryTranslationClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
625
+ /**
626
+ * Find zero or more ProductCategoryTranslations that matches the filter.
627
+ * Note, that providing `undefined` is treated as the value not being there.
628
+ * Read more here: https://pris.ly/d/null-undefined
629
+ * @param {ProductCategoryTranslationFindManyArgs} args - Arguments to filter and select certain fields only.
630
+ * @example
631
+ * // Get all ProductCategoryTranslations
632
+ * const productCategoryTranslations = await prisma.productCategoryTranslation.findMany()
633
+ *
634
+ * // Get first 10 ProductCategoryTranslations
635
+ * const productCategoryTranslations = await prisma.productCategoryTranslation.findMany({ take: 10 })
636
+ *
637
+ * // Only select the `id`
638
+ * const productCategoryTranslationWithIdOnly = await prisma.productCategoryTranslation.findMany({ select: { id: true } })
639
+ *
640
+ */
533
641
  findMany<T extends ProductCategoryTranslationFindManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryTranslationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
642
+ /**
643
+ * Create a ProductCategoryTranslation.
644
+ * @param {ProductCategoryTranslationCreateArgs} args - Arguments to create a ProductCategoryTranslation.
645
+ * @example
646
+ * // Create one ProductCategoryTranslation
647
+ * const ProductCategoryTranslation = await prisma.productCategoryTranslation.create({
648
+ * data: {
649
+ * // ... data to create a ProductCategoryTranslation
650
+ * }
651
+ * })
652
+ *
653
+ */
534
654
  create<T extends ProductCategoryTranslationCreateArgs>(args: Prisma.SelectSubset<T, ProductCategoryTranslationCreateArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryTranslationClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
655
+ /**
656
+ * Create many ProductCategoryTranslations.
657
+ * @param {ProductCategoryTranslationCreateManyArgs} args - Arguments to create many ProductCategoryTranslations.
658
+ * @example
659
+ * // Create many ProductCategoryTranslations
660
+ * const productCategoryTranslation = await prisma.productCategoryTranslation.createMany({
661
+ * data: [
662
+ * // ... provide data here
663
+ * ]
664
+ * })
665
+ *
666
+ */
535
667
  createMany<T extends ProductCategoryTranslationCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryTranslationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
668
+ /**
669
+ * Create many ProductCategoryTranslations and returns the data saved in the database.
670
+ * @param {ProductCategoryTranslationCreateManyAndReturnArgs} args - Arguments to create many ProductCategoryTranslations.
671
+ * @example
672
+ * // Create many ProductCategoryTranslations
673
+ * const productCategoryTranslation = await prisma.productCategoryTranslation.createManyAndReturn({
674
+ * data: [
675
+ * // ... provide data here
676
+ * ]
677
+ * })
678
+ *
679
+ * // Create many ProductCategoryTranslations and only return the `id`
680
+ * const productCategoryTranslationWithIdOnly = await prisma.productCategoryTranslation.createManyAndReturn({
681
+ * select: { id: true },
682
+ * data: [
683
+ * // ... provide data here
684
+ * ]
685
+ * })
686
+ * Note, that providing `undefined` is treated as the value not being there.
687
+ * Read more here: https://pris.ly/d/null-undefined
688
+ *
689
+ */
536
690
  createManyAndReturn<T extends ProductCategoryTranslationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProductCategoryTranslationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
691
+ /**
692
+ * Delete a ProductCategoryTranslation.
693
+ * @param {ProductCategoryTranslationDeleteArgs} args - Arguments to delete one ProductCategoryTranslation.
694
+ * @example
695
+ * // Delete one ProductCategoryTranslation
696
+ * const ProductCategoryTranslation = await prisma.productCategoryTranslation.delete({
697
+ * where: {
698
+ * // ... filter to delete one ProductCategoryTranslation
699
+ * }
700
+ * })
701
+ *
702
+ */
537
703
  delete<T extends ProductCategoryTranslationDeleteArgs>(args: Prisma.SelectSubset<T, ProductCategoryTranslationDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryTranslationClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
704
+ /**
705
+ * Update one ProductCategoryTranslation.
706
+ * @param {ProductCategoryTranslationUpdateArgs} args - Arguments to update one ProductCategoryTranslation.
707
+ * @example
708
+ * // Update one ProductCategoryTranslation
709
+ * const productCategoryTranslation = await prisma.productCategoryTranslation.update({
710
+ * where: {
711
+ * // ... provide filter here
712
+ * },
713
+ * data: {
714
+ * // ... provide data here
715
+ * }
716
+ * })
717
+ *
718
+ */
538
719
  update<T extends ProductCategoryTranslationUpdateArgs>(args: Prisma.SelectSubset<T, ProductCategoryTranslationUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryTranslationClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
720
+ /**
721
+ * Delete zero or more ProductCategoryTranslations.
722
+ * @param {ProductCategoryTranslationDeleteManyArgs} args - Arguments to filter ProductCategoryTranslations to delete.
723
+ * @example
724
+ * // Delete a few ProductCategoryTranslations
725
+ * const { count } = await prisma.productCategoryTranslation.deleteMany({
726
+ * where: {
727
+ * // ... provide filter here
728
+ * }
729
+ * })
730
+ *
731
+ */
539
732
  deleteMany<T extends ProductCategoryTranslationDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryTranslationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
733
+ /**
734
+ * Update zero or more ProductCategoryTranslations.
735
+ * Note, that providing `undefined` is treated as the value not being there.
736
+ * Read more here: https://pris.ly/d/null-undefined
737
+ * @param {ProductCategoryTranslationUpdateManyArgs} args - Arguments to update one or more rows.
738
+ * @example
739
+ * // Update many ProductCategoryTranslations
740
+ * const productCategoryTranslation = await prisma.productCategoryTranslation.updateMany({
741
+ * where: {
742
+ * // ... provide filter here
743
+ * },
744
+ * data: {
745
+ * // ... provide data here
746
+ * }
747
+ * })
748
+ *
749
+ */
540
750
  updateMany<T extends ProductCategoryTranslationUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductCategoryTranslationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
751
+ /**
752
+ * Update zero or more ProductCategoryTranslations and returns the data updated in the database.
753
+ * @param {ProductCategoryTranslationUpdateManyAndReturnArgs} args - Arguments to update many ProductCategoryTranslations.
754
+ * @example
755
+ * // Update many ProductCategoryTranslations
756
+ * const productCategoryTranslation = await prisma.productCategoryTranslation.updateManyAndReturn({
757
+ * where: {
758
+ * // ... provide filter here
759
+ * },
760
+ * data: [
761
+ * // ... provide data here
762
+ * ]
763
+ * })
764
+ *
765
+ * // Update zero or more ProductCategoryTranslations and only return the `id`
766
+ * const productCategoryTranslationWithIdOnly = await prisma.productCategoryTranslation.updateManyAndReturn({
767
+ * select: { id: true },
768
+ * where: {
769
+ * // ... provide filter here
770
+ * },
771
+ * data: [
772
+ * // ... provide data here
773
+ * ]
774
+ * })
775
+ * Note, that providing `undefined` is treated as the value not being there.
776
+ * Read more here: https://pris.ly/d/null-undefined
777
+ *
778
+ */
541
779
  updateManyAndReturn<T extends ProductCategoryTranslationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProductCategoryTranslationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
780
+ /**
781
+ * Create or update one ProductCategoryTranslation.
782
+ * @param {ProductCategoryTranslationUpsertArgs} args - Arguments to update or create a ProductCategoryTranslation.
783
+ * @example
784
+ * // Update or create a ProductCategoryTranslation
785
+ * const productCategoryTranslation = await prisma.productCategoryTranslation.upsert({
786
+ * create: {
787
+ * // ... data to create a ProductCategoryTranslation
788
+ * },
789
+ * update: {
790
+ * // ... in case it already exists, update
791
+ * },
792
+ * where: {
793
+ * // ... the filter for the ProductCategoryTranslation we want to update
794
+ * }
795
+ * })
796
+ */
542
797
  upsert<T extends ProductCategoryTranslationUpsertArgs>(args: Prisma.SelectSubset<T, ProductCategoryTranslationUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryTranslationClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryTranslationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
798
+ /**
799
+ * Count the number of ProductCategoryTranslations.
800
+ * Note, that providing `undefined` is treated as the value not being there.
801
+ * Read more here: https://pris.ly/d/null-undefined
802
+ * @param {ProductCategoryTranslationCountArgs} args - Arguments to filter ProductCategoryTranslations to count.
803
+ * @example
804
+ * // Count the number of ProductCategoryTranslations
805
+ * const count = await prisma.productCategoryTranslation.count({
806
+ * where: {
807
+ * // ... the filter for the ProductCategoryTranslations we want to count
808
+ * }
809
+ * })
810
+ **/
543
811
  count<T extends ProductCategoryTranslationCountArgs>(args?: Prisma.Subset<T, ProductCategoryTranslationCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProductCategoryTranslationCountAggregateOutputType> : number>;
812
+ /**
813
+ * Allows you to perform aggregations operations on a ProductCategoryTranslation.
814
+ * Note, that providing `undefined` is treated as the value not being there.
815
+ * Read more here: https://pris.ly/d/null-undefined
816
+ * @param {ProductCategoryTranslationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
817
+ * @example
818
+ * // Ordered by age ascending
819
+ * // Where email contains prisma.io
820
+ * // Limited to the 10 users
821
+ * const aggregations = await prisma.user.aggregate({
822
+ * _avg: {
823
+ * age: true,
824
+ * },
825
+ * where: {
826
+ * email: {
827
+ * contains: "prisma.io",
828
+ * },
829
+ * },
830
+ * orderBy: {
831
+ * age: "asc",
832
+ * },
833
+ * take: 10,
834
+ * })
835
+ **/
544
836
  aggregate<T extends ProductCategoryTranslationAggregateArgs>(args: Prisma.Subset<T, ProductCategoryTranslationAggregateArgs>): Prisma.PrismaPromise<GetProductCategoryTranslationAggregateType<T>>;
837
+ /**
838
+ * Group by ProductCategoryTranslation.
839
+ * Note, that providing `undefined` is treated as the value not being there.
840
+ * Read more here: https://pris.ly/d/null-undefined
841
+ * @param {ProductCategoryTranslationGroupByArgs} args - Group by arguments.
842
+ * @example
843
+ * // Group by city, order by createdAt, get count
844
+ * const result = await prisma.user.groupBy({
845
+ * by: ['city', 'createdAt'],
846
+ * orderBy: {
847
+ * createdAt: true
848
+ * },
849
+ * _count: {
850
+ * _all: true
851
+ * },
852
+ * })
853
+ *
854
+ **/
545
855
  groupBy<T extends ProductCategoryTranslationGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
546
856
  orderBy: ProductCategoryTranslationGroupByArgs['orderBy'];
547
857
  } : {
@@ -560,15 +870,44 @@ export interface ProductCategoryTranslationDelegate<ExtArgs extends runtime.Type
560
870
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
561
871
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
562
872
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, ProductCategoryTranslationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductCategoryTranslationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
873
+ /**
874
+ * Fields of the ProductCategoryTranslation model
875
+ */
563
876
  readonly fields: ProductCategoryTranslationFieldRefs;
564
877
  }
878
+ /**
879
+ * The delegate class that acts as a "Promise-like" for ProductCategoryTranslation.
880
+ * Why is this prefixed with `Prisma__`?
881
+ * Because we want to prevent naming conflicts as mentioned in
882
+ * https://github.com/prisma/prisma-client-js/issues/707
883
+ */
565
884
  export interface Prisma__ProductCategoryTranslationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
566
885
  readonly [Symbol.toStringTag]: "PrismaPromise";
567
886
  productCategory<T extends Prisma.ProductCategoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductCategoryDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
887
+ /**
888
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
889
+ * @param onfulfilled The callback to execute when the Promise is resolved.
890
+ * @param onrejected The callback to execute when the Promise is rejected.
891
+ * @returns A Promise for the completion of which ever callback is executed.
892
+ */
568
893
  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>;
894
+ /**
895
+ * Attaches a callback for only the rejection of the Promise.
896
+ * @param onrejected The callback to execute when the Promise is rejected.
897
+ * @returns A Promise for the completion of the callback.
898
+ */
569
899
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
900
+ /**
901
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
902
+ * resolved value cannot be modified from the callback.
903
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
904
+ * @returns A Promise for the completion of the callback.
905
+ */
570
906
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
571
907
  }
908
+ /**
909
+ * Fields of the ProductCategoryTranslation model
910
+ */
572
911
  export interface ProductCategoryTranslationFieldRefs {
573
912
  readonly id: Prisma.FieldRef<"ProductCategoryTranslation", 'String'>;
574
913
  readonly locale: Prisma.FieldRef<"ProductCategoryTranslation", 'String'>;
@@ -580,109 +919,403 @@ export interface ProductCategoryTranslationFieldRefs {
580
919
  readonly updatedAt: Prisma.FieldRef<"ProductCategoryTranslation", 'DateTime'>;
581
920
  readonly updatedBy: Prisma.FieldRef<"ProductCategoryTranslation", 'String'>;
582
921
  }
922
+ /**
923
+ * ProductCategoryTranslation findUnique
924
+ */
583
925
  export type ProductCategoryTranslationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
926
+ /**
927
+ * Select specific fields to fetch from the ProductCategoryTranslation
928
+ */
584
929
  select?: Prisma.ProductCategoryTranslationSelect<ExtArgs> | null;
930
+ /**
931
+ * Omit specific fields from the ProductCategoryTranslation
932
+ */
585
933
  omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
934
+ /**
935
+ * Choose, which related nodes to fetch as well
936
+ */
586
937
  include?: Prisma.ProductCategoryTranslationInclude<ExtArgs> | null;
938
+ /**
939
+ * Filter, which ProductCategoryTranslation to fetch.
940
+ */
587
941
  where: Prisma.ProductCategoryTranslationWhereUniqueInput;
588
942
  };
943
+ /**
944
+ * ProductCategoryTranslation findUniqueOrThrow
945
+ */
589
946
  export type ProductCategoryTranslationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
947
+ /**
948
+ * Select specific fields to fetch from the ProductCategoryTranslation
949
+ */
590
950
  select?: Prisma.ProductCategoryTranslationSelect<ExtArgs> | null;
951
+ /**
952
+ * Omit specific fields from the ProductCategoryTranslation
953
+ */
591
954
  omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
955
+ /**
956
+ * Choose, which related nodes to fetch as well
957
+ */
592
958
  include?: Prisma.ProductCategoryTranslationInclude<ExtArgs> | null;
959
+ /**
960
+ * Filter, which ProductCategoryTranslation to fetch.
961
+ */
593
962
  where: Prisma.ProductCategoryTranslationWhereUniqueInput;
594
963
  };
964
+ /**
965
+ * ProductCategoryTranslation findFirst
966
+ */
595
967
  export type ProductCategoryTranslationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
968
+ /**
969
+ * Select specific fields to fetch from the ProductCategoryTranslation
970
+ */
596
971
  select?: Prisma.ProductCategoryTranslationSelect<ExtArgs> | null;
972
+ /**
973
+ * Omit specific fields from the ProductCategoryTranslation
974
+ */
597
975
  omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
976
+ /**
977
+ * Choose, which related nodes to fetch as well
978
+ */
598
979
  include?: Prisma.ProductCategoryTranslationInclude<ExtArgs> | null;
980
+ /**
981
+ * Filter, which ProductCategoryTranslation to fetch.
982
+ */
599
983
  where?: Prisma.ProductCategoryTranslationWhereInput;
984
+ /**
985
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
986
+ *
987
+ * Determine the order of ProductCategoryTranslations to fetch.
988
+ */
600
989
  orderBy?: Prisma.ProductCategoryTranslationOrderByWithRelationInput | Prisma.ProductCategoryTranslationOrderByWithRelationInput[];
990
+ /**
991
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
992
+ *
993
+ * Sets the position for searching for ProductCategoryTranslations.
994
+ */
601
995
  cursor?: Prisma.ProductCategoryTranslationWhereUniqueInput;
996
+ /**
997
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
998
+ *
999
+ * Take `±n` ProductCategoryTranslations from the position of the cursor.
1000
+ */
602
1001
  take?: number;
1002
+ /**
1003
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1004
+ *
1005
+ * Skip the first `n` ProductCategoryTranslations.
1006
+ */
603
1007
  skip?: number;
1008
+ /**
1009
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1010
+ *
1011
+ * Filter by unique combinations of ProductCategoryTranslations.
1012
+ */
604
1013
  distinct?: Prisma.ProductCategoryTranslationScalarFieldEnum | Prisma.ProductCategoryTranslationScalarFieldEnum[];
605
1014
  };
1015
+ /**
1016
+ * ProductCategoryTranslation findFirstOrThrow
1017
+ */
606
1018
  export type ProductCategoryTranslationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1019
+ /**
1020
+ * Select specific fields to fetch from the ProductCategoryTranslation
1021
+ */
607
1022
  select?: Prisma.ProductCategoryTranslationSelect<ExtArgs> | null;
1023
+ /**
1024
+ * Omit specific fields from the ProductCategoryTranslation
1025
+ */
608
1026
  omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
1027
+ /**
1028
+ * Choose, which related nodes to fetch as well
1029
+ */
609
1030
  include?: Prisma.ProductCategoryTranslationInclude<ExtArgs> | null;
1031
+ /**
1032
+ * Filter, which ProductCategoryTranslation to fetch.
1033
+ */
610
1034
  where?: Prisma.ProductCategoryTranslationWhereInput;
1035
+ /**
1036
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1037
+ *
1038
+ * Determine the order of ProductCategoryTranslations to fetch.
1039
+ */
611
1040
  orderBy?: Prisma.ProductCategoryTranslationOrderByWithRelationInput | Prisma.ProductCategoryTranslationOrderByWithRelationInput[];
1041
+ /**
1042
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1043
+ *
1044
+ * Sets the position for searching for ProductCategoryTranslations.
1045
+ */
612
1046
  cursor?: Prisma.ProductCategoryTranslationWhereUniqueInput;
1047
+ /**
1048
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1049
+ *
1050
+ * Take `±n` ProductCategoryTranslations from the position of the cursor.
1051
+ */
613
1052
  take?: number;
1053
+ /**
1054
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1055
+ *
1056
+ * Skip the first `n` ProductCategoryTranslations.
1057
+ */
614
1058
  skip?: number;
1059
+ /**
1060
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1061
+ *
1062
+ * Filter by unique combinations of ProductCategoryTranslations.
1063
+ */
615
1064
  distinct?: Prisma.ProductCategoryTranslationScalarFieldEnum | Prisma.ProductCategoryTranslationScalarFieldEnum[];
616
1065
  };
1066
+ /**
1067
+ * ProductCategoryTranslation findMany
1068
+ */
617
1069
  export type ProductCategoryTranslationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1070
+ /**
1071
+ * Select specific fields to fetch from the ProductCategoryTranslation
1072
+ */
618
1073
  select?: Prisma.ProductCategoryTranslationSelect<ExtArgs> | null;
1074
+ /**
1075
+ * Omit specific fields from the ProductCategoryTranslation
1076
+ */
619
1077
  omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
1078
+ /**
1079
+ * Choose, which related nodes to fetch as well
1080
+ */
620
1081
  include?: Prisma.ProductCategoryTranslationInclude<ExtArgs> | null;
1082
+ /**
1083
+ * Filter, which ProductCategoryTranslations to fetch.
1084
+ */
621
1085
  where?: Prisma.ProductCategoryTranslationWhereInput;
1086
+ /**
1087
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1088
+ *
1089
+ * Determine the order of ProductCategoryTranslations to fetch.
1090
+ */
622
1091
  orderBy?: Prisma.ProductCategoryTranslationOrderByWithRelationInput | Prisma.ProductCategoryTranslationOrderByWithRelationInput[];
1092
+ /**
1093
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1094
+ *
1095
+ * Sets the position for listing ProductCategoryTranslations.
1096
+ */
623
1097
  cursor?: Prisma.ProductCategoryTranslationWhereUniqueInput;
1098
+ /**
1099
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1100
+ *
1101
+ * Take `±n` ProductCategoryTranslations from the position of the cursor.
1102
+ */
624
1103
  take?: number;
1104
+ /**
1105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1106
+ *
1107
+ * Skip the first `n` ProductCategoryTranslations.
1108
+ */
625
1109
  skip?: number;
1110
+ /**
1111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1112
+ *
1113
+ * Filter by unique combinations of ProductCategoryTranslations.
1114
+ */
626
1115
  distinct?: Prisma.ProductCategoryTranslationScalarFieldEnum | Prisma.ProductCategoryTranslationScalarFieldEnum[];
627
1116
  };
1117
+ /**
1118
+ * ProductCategoryTranslation create
1119
+ */
628
1120
  export type ProductCategoryTranslationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1121
+ /**
1122
+ * Select specific fields to fetch from the ProductCategoryTranslation
1123
+ */
629
1124
  select?: Prisma.ProductCategoryTranslationSelect<ExtArgs> | null;
1125
+ /**
1126
+ * Omit specific fields from the ProductCategoryTranslation
1127
+ */
630
1128
  omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
1129
+ /**
1130
+ * Choose, which related nodes to fetch as well
1131
+ */
631
1132
  include?: Prisma.ProductCategoryTranslationInclude<ExtArgs> | null;
1133
+ /**
1134
+ * The data needed to create a ProductCategoryTranslation.
1135
+ */
632
1136
  data: Prisma.XOR<Prisma.ProductCategoryTranslationCreateInput, Prisma.ProductCategoryTranslationUncheckedCreateInput>;
633
1137
  };
1138
+ /**
1139
+ * ProductCategoryTranslation createMany
1140
+ */
634
1141
  export type ProductCategoryTranslationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1142
+ /**
1143
+ * The data used to create many ProductCategoryTranslations.
1144
+ */
635
1145
  data: Prisma.ProductCategoryTranslationCreateManyInput | Prisma.ProductCategoryTranslationCreateManyInput[];
636
1146
  skipDuplicates?: boolean;
637
1147
  };
1148
+ /**
1149
+ * ProductCategoryTranslation createManyAndReturn
1150
+ */
638
1151
  export type ProductCategoryTranslationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1152
+ /**
1153
+ * Select specific fields to fetch from the ProductCategoryTranslation
1154
+ */
639
1155
  select?: Prisma.ProductCategoryTranslationSelectCreateManyAndReturn<ExtArgs> | null;
1156
+ /**
1157
+ * Omit specific fields from the ProductCategoryTranslation
1158
+ */
640
1159
  omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
1160
+ /**
1161
+ * The data used to create many ProductCategoryTranslations.
1162
+ */
641
1163
  data: Prisma.ProductCategoryTranslationCreateManyInput | Prisma.ProductCategoryTranslationCreateManyInput[];
642
1164
  skipDuplicates?: boolean;
1165
+ /**
1166
+ * Choose, which related nodes to fetch as well
1167
+ */
643
1168
  include?: Prisma.ProductCategoryTranslationIncludeCreateManyAndReturn<ExtArgs> | null;
644
1169
  };
1170
+ /**
1171
+ * ProductCategoryTranslation update
1172
+ */
645
1173
  export type ProductCategoryTranslationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1174
+ /**
1175
+ * Select specific fields to fetch from the ProductCategoryTranslation
1176
+ */
646
1177
  select?: Prisma.ProductCategoryTranslationSelect<ExtArgs> | null;
1178
+ /**
1179
+ * Omit specific fields from the ProductCategoryTranslation
1180
+ */
647
1181
  omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
1182
+ /**
1183
+ * Choose, which related nodes to fetch as well
1184
+ */
648
1185
  include?: Prisma.ProductCategoryTranslationInclude<ExtArgs> | null;
1186
+ /**
1187
+ * The data needed to update a ProductCategoryTranslation.
1188
+ */
649
1189
  data: Prisma.XOR<Prisma.ProductCategoryTranslationUpdateInput, Prisma.ProductCategoryTranslationUncheckedUpdateInput>;
1190
+ /**
1191
+ * Choose, which ProductCategoryTranslation to update.
1192
+ */
650
1193
  where: Prisma.ProductCategoryTranslationWhereUniqueInput;
651
1194
  };
1195
+ /**
1196
+ * ProductCategoryTranslation updateMany
1197
+ */
652
1198
  export type ProductCategoryTranslationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1199
+ /**
1200
+ * The data used to update ProductCategoryTranslations.
1201
+ */
653
1202
  data: Prisma.XOR<Prisma.ProductCategoryTranslationUpdateManyMutationInput, Prisma.ProductCategoryTranslationUncheckedUpdateManyInput>;
1203
+ /**
1204
+ * Filter which ProductCategoryTranslations to update
1205
+ */
654
1206
  where?: Prisma.ProductCategoryTranslationWhereInput;
1207
+ /**
1208
+ * Limit how many ProductCategoryTranslations to update.
1209
+ */
655
1210
  limit?: number;
656
1211
  };
1212
+ /**
1213
+ * ProductCategoryTranslation updateManyAndReturn
1214
+ */
657
1215
  export type ProductCategoryTranslationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1216
+ /**
1217
+ * Select specific fields to fetch from the ProductCategoryTranslation
1218
+ */
658
1219
  select?: Prisma.ProductCategoryTranslationSelectUpdateManyAndReturn<ExtArgs> | null;
1220
+ /**
1221
+ * Omit specific fields from the ProductCategoryTranslation
1222
+ */
659
1223
  omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
1224
+ /**
1225
+ * The data used to update ProductCategoryTranslations.
1226
+ */
660
1227
  data: Prisma.XOR<Prisma.ProductCategoryTranslationUpdateManyMutationInput, Prisma.ProductCategoryTranslationUncheckedUpdateManyInput>;
1228
+ /**
1229
+ * Filter which ProductCategoryTranslations to update
1230
+ */
661
1231
  where?: Prisma.ProductCategoryTranslationWhereInput;
1232
+ /**
1233
+ * Limit how many ProductCategoryTranslations to update.
1234
+ */
662
1235
  limit?: number;
1236
+ /**
1237
+ * Choose, which related nodes to fetch as well
1238
+ */
663
1239
  include?: Prisma.ProductCategoryTranslationIncludeUpdateManyAndReturn<ExtArgs> | null;
664
1240
  };
1241
+ /**
1242
+ * ProductCategoryTranslation upsert
1243
+ */
665
1244
  export type ProductCategoryTranslationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1245
+ /**
1246
+ * Select specific fields to fetch from the ProductCategoryTranslation
1247
+ */
666
1248
  select?: Prisma.ProductCategoryTranslationSelect<ExtArgs> | null;
1249
+ /**
1250
+ * Omit specific fields from the ProductCategoryTranslation
1251
+ */
667
1252
  omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
1253
+ /**
1254
+ * Choose, which related nodes to fetch as well
1255
+ */
668
1256
  include?: Prisma.ProductCategoryTranslationInclude<ExtArgs> | null;
1257
+ /**
1258
+ * The filter to search for the ProductCategoryTranslation to update in case it exists.
1259
+ */
669
1260
  where: Prisma.ProductCategoryTranslationWhereUniqueInput;
1261
+ /**
1262
+ * In case the ProductCategoryTranslation found by the `where` argument doesn't exist, create a new ProductCategoryTranslation with this data.
1263
+ */
670
1264
  create: Prisma.XOR<Prisma.ProductCategoryTranslationCreateInput, Prisma.ProductCategoryTranslationUncheckedCreateInput>;
1265
+ /**
1266
+ * In case the ProductCategoryTranslation was found with the provided `where` argument, update it with this data.
1267
+ */
671
1268
  update: Prisma.XOR<Prisma.ProductCategoryTranslationUpdateInput, Prisma.ProductCategoryTranslationUncheckedUpdateInput>;
672
1269
  };
1270
+ /**
1271
+ * ProductCategoryTranslation delete
1272
+ */
673
1273
  export type ProductCategoryTranslationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1274
+ /**
1275
+ * Select specific fields to fetch from the ProductCategoryTranslation
1276
+ */
674
1277
  select?: Prisma.ProductCategoryTranslationSelect<ExtArgs> | null;
1278
+ /**
1279
+ * Omit specific fields from the ProductCategoryTranslation
1280
+ */
675
1281
  omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
1282
+ /**
1283
+ * Choose, which related nodes to fetch as well
1284
+ */
676
1285
  include?: Prisma.ProductCategoryTranslationInclude<ExtArgs> | null;
1286
+ /**
1287
+ * Filter which ProductCategoryTranslation to delete.
1288
+ */
677
1289
  where: Prisma.ProductCategoryTranslationWhereUniqueInput;
678
1290
  };
1291
+ /**
1292
+ * ProductCategoryTranslation deleteMany
1293
+ */
679
1294
  export type ProductCategoryTranslationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1295
+ /**
1296
+ * Filter which ProductCategoryTranslations to delete
1297
+ */
680
1298
  where?: Prisma.ProductCategoryTranslationWhereInput;
1299
+ /**
1300
+ * Limit how many ProductCategoryTranslations to delete.
1301
+ */
681
1302
  limit?: number;
682
1303
  };
1304
+ /**
1305
+ * ProductCategoryTranslation without action
1306
+ */
683
1307
  export type ProductCategoryTranslationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1308
+ /**
1309
+ * Select specific fields to fetch from the ProductCategoryTranslation
1310
+ */
684
1311
  select?: Prisma.ProductCategoryTranslationSelect<ExtArgs> | null;
1312
+ /**
1313
+ * Omit specific fields from the ProductCategoryTranslation
1314
+ */
685
1315
  omit?: Prisma.ProductCategoryTranslationOmit<ExtArgs> | null;
1316
+ /**
1317
+ * Choose, which related nodes to fetch as well
1318
+ */
686
1319
  include?: Prisma.ProductCategoryTranslationInclude<ExtArgs> | null;
687
1320
  };
688
1321
  export {};