@shophost/rest-api 2.0.31 → 2.0.33

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 -110
@@ -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 Account
5
+ *
6
+ */
3
7
  export type AccountModel = runtime.Types.Result.DefaultSelection<Prisma.$AccountPayload>;
4
8
  export type AggregateAccount = {
5
9
  _count: AccountCountAggregateOutputType | null;
@@ -99,13 +103,51 @@ export type AccountCountAggregateInputType = {
99
103
  _all?: true;
100
104
  };
101
105
  export type AccountAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
106
+ /**
107
+ * Filter which Account to aggregate.
108
+ */
102
109
  where?: Prisma.AccountWhereInput;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
112
+ *
113
+ * Determine the order of Accounts to fetch.
114
+ */
103
115
  orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[];
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
118
+ *
119
+ * Sets the start position
120
+ */
104
121
  cursor?: Prisma.AccountWhereUniqueInput;
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
124
+ *
125
+ * Take `±n` Accounts from the position of the cursor.
126
+ */
105
127
  take?: number;
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
130
+ *
131
+ * Skip the first `n` Accounts.
132
+ */
106
133
  skip?: number;
134
+ /**
135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
136
+ *
137
+ * Count returned Accounts
138
+ **/
107
139
  _count?: true | AccountCountAggregateInputType;
140
+ /**
141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
142
+ *
143
+ * Select which fields to find the minimum value
144
+ **/
108
145
  _min?: AccountMinAggregateInputType;
146
+ /**
147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
148
+ *
149
+ * Select which fields to find the maximum value
150
+ **/
109
151
  _max?: AccountMaxAggregateInputType;
110
152
  };
111
153
  export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
@@ -660,22 +702,290 @@ export interface AccountDelegate<ExtArgs extends runtime.Types.Extensions.Intern
660
702
  name: 'Account';
661
703
  };
662
704
  };
705
+ /**
706
+ * Find zero or one Account that matches the filter.
707
+ * @param {AccountFindUniqueArgs} args - Arguments to find a Account
708
+ * @example
709
+ * // Get one Account
710
+ * const account = await prisma.account.findUnique({
711
+ * where: {
712
+ * // ... provide filter here
713
+ * }
714
+ * })
715
+ */
663
716
  findUnique<T extends AccountFindUniqueArgs>(args: Prisma.SelectSubset<T, AccountFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
717
+ /**
718
+ * Find one Account that matches the filter or throw an error with `error.code='P2025'`
719
+ * if no matches were found.
720
+ * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
721
+ * @example
722
+ * // Get one Account
723
+ * const account = await prisma.account.findUniqueOrThrow({
724
+ * where: {
725
+ * // ... provide filter here
726
+ * }
727
+ * })
728
+ */
664
729
  findUniqueOrThrow<T extends AccountFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
730
+ /**
731
+ * Find the first Account that matches the filter.
732
+ * Note, that providing `undefined` is treated as the value not being there.
733
+ * Read more here: https://pris.ly/d/null-undefined
734
+ * @param {AccountFindFirstArgs} args - Arguments to find a Account
735
+ * @example
736
+ * // Get one Account
737
+ * const account = await prisma.account.findFirst({
738
+ * where: {
739
+ * // ... provide filter here
740
+ * }
741
+ * })
742
+ */
665
743
  findFirst<T extends AccountFindFirstArgs>(args?: Prisma.SelectSubset<T, AccountFindFirstArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
744
+ /**
745
+ * Find the first Account that matches the filter or
746
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
747
+ * Note, that providing `undefined` is treated as the value not being there.
748
+ * Read more here: https://pris.ly/d/null-undefined
749
+ * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
750
+ * @example
751
+ * // Get one Account
752
+ * const account = await prisma.account.findFirstOrThrow({
753
+ * where: {
754
+ * // ... provide filter here
755
+ * }
756
+ * })
757
+ */
666
758
  findFirstOrThrow<T extends AccountFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AccountFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
759
+ /**
760
+ * Find zero or more Accounts that matches the filter.
761
+ * Note, that providing `undefined` is treated as the value not being there.
762
+ * Read more here: https://pris.ly/d/null-undefined
763
+ * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
764
+ * @example
765
+ * // Get all Accounts
766
+ * const accounts = await prisma.account.findMany()
767
+ *
768
+ * // Get first 10 Accounts
769
+ * const accounts = await prisma.account.findMany({ take: 10 })
770
+ *
771
+ * // Only select the `id`
772
+ * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } })
773
+ *
774
+ */
667
775
  findMany<T extends AccountFindManyArgs>(args?: Prisma.SelectSubset<T, AccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
776
+ /**
777
+ * Create a Account.
778
+ * @param {AccountCreateArgs} args - Arguments to create a Account.
779
+ * @example
780
+ * // Create one Account
781
+ * const Account = await prisma.account.create({
782
+ * data: {
783
+ * // ... data to create a Account
784
+ * }
785
+ * })
786
+ *
787
+ */
668
788
  create<T extends AccountCreateArgs>(args: Prisma.SelectSubset<T, AccountCreateArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
789
+ /**
790
+ * Create many Accounts.
791
+ * @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
792
+ * @example
793
+ * // Create many Accounts
794
+ * const account = await prisma.account.createMany({
795
+ * data: [
796
+ * // ... provide data here
797
+ * ]
798
+ * })
799
+ *
800
+ */
669
801
  createMany<T extends AccountCreateManyArgs>(args?: Prisma.SelectSubset<T, AccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
802
+ /**
803
+ * Create many Accounts and returns the data saved in the database.
804
+ * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
805
+ * @example
806
+ * // Create many Accounts
807
+ * const account = await prisma.account.createManyAndReturn({
808
+ * data: [
809
+ * // ... provide data here
810
+ * ]
811
+ * })
812
+ *
813
+ * // Create many Accounts and only return the `id`
814
+ * const accountWithIdOnly = await prisma.account.createManyAndReturn({
815
+ * select: { id: true },
816
+ * data: [
817
+ * // ... provide data here
818
+ * ]
819
+ * })
820
+ * Note, that providing `undefined` is treated as the value not being there.
821
+ * Read more here: https://pris.ly/d/null-undefined
822
+ *
823
+ */
670
824
  createManyAndReturn<T extends AccountCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
825
+ /**
826
+ * Delete a Account.
827
+ * @param {AccountDeleteArgs} args - Arguments to delete one Account.
828
+ * @example
829
+ * // Delete one Account
830
+ * const Account = await prisma.account.delete({
831
+ * where: {
832
+ * // ... filter to delete one Account
833
+ * }
834
+ * })
835
+ *
836
+ */
671
837
  delete<T extends AccountDeleteArgs>(args: Prisma.SelectSubset<T, AccountDeleteArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
838
+ /**
839
+ * Update one Account.
840
+ * @param {AccountUpdateArgs} args - Arguments to update one Account.
841
+ * @example
842
+ * // Update one Account
843
+ * const account = await prisma.account.update({
844
+ * where: {
845
+ * // ... provide filter here
846
+ * },
847
+ * data: {
848
+ * // ... provide data here
849
+ * }
850
+ * })
851
+ *
852
+ */
672
853
  update<T extends AccountUpdateArgs>(args: Prisma.SelectSubset<T, AccountUpdateArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
854
+ /**
855
+ * Delete zero or more Accounts.
856
+ * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
857
+ * @example
858
+ * // Delete a few Accounts
859
+ * const { count } = await prisma.account.deleteMany({
860
+ * where: {
861
+ * // ... provide filter here
862
+ * }
863
+ * })
864
+ *
865
+ */
673
866
  deleteMany<T extends AccountDeleteManyArgs>(args?: Prisma.SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
867
+ /**
868
+ * Update zero or more Accounts.
869
+ * Note, that providing `undefined` is treated as the value not being there.
870
+ * Read more here: https://pris.ly/d/null-undefined
871
+ * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
872
+ * @example
873
+ * // Update many Accounts
874
+ * const account = await prisma.account.updateMany({
875
+ * where: {
876
+ * // ... provide filter here
877
+ * },
878
+ * data: {
879
+ * // ... provide data here
880
+ * }
881
+ * })
882
+ *
883
+ */
674
884
  updateMany<T extends AccountUpdateManyArgs>(args: Prisma.SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
885
+ /**
886
+ * Update zero or more Accounts and returns the data updated in the database.
887
+ * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts.
888
+ * @example
889
+ * // Update many Accounts
890
+ * const account = await prisma.account.updateManyAndReturn({
891
+ * where: {
892
+ * // ... provide filter here
893
+ * },
894
+ * data: [
895
+ * // ... provide data here
896
+ * ]
897
+ * })
898
+ *
899
+ * // Update zero or more Accounts and only return the `id`
900
+ * const accountWithIdOnly = await prisma.account.updateManyAndReturn({
901
+ * select: { id: true },
902
+ * where: {
903
+ * // ... provide filter here
904
+ * },
905
+ * data: [
906
+ * // ... provide data here
907
+ * ]
908
+ * })
909
+ * Note, that providing `undefined` is treated as the value not being there.
910
+ * Read more here: https://pris.ly/d/null-undefined
911
+ *
912
+ */
675
913
  updateManyAndReturn<T extends AccountUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
914
+ /**
915
+ * Create or update one Account.
916
+ * @param {AccountUpsertArgs} args - Arguments to update or create a Account.
917
+ * @example
918
+ * // Update or create a Account
919
+ * const account = await prisma.account.upsert({
920
+ * create: {
921
+ * // ... data to create a Account
922
+ * },
923
+ * update: {
924
+ * // ... in case it already exists, update
925
+ * },
926
+ * where: {
927
+ * // ... the filter for the Account we want to update
928
+ * }
929
+ * })
930
+ */
676
931
  upsert<T extends AccountUpsertArgs>(args: Prisma.SelectSubset<T, AccountUpsertArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
932
+ /**
933
+ * Count the number of Accounts.
934
+ * Note, that providing `undefined` is treated as the value not being there.
935
+ * Read more here: https://pris.ly/d/null-undefined
936
+ * @param {AccountCountArgs} args - Arguments to filter Accounts to count.
937
+ * @example
938
+ * // Count the number of Accounts
939
+ * const count = await prisma.account.count({
940
+ * where: {
941
+ * // ... the filter for the Accounts we want to count
942
+ * }
943
+ * })
944
+ **/
677
945
  count<T extends AccountCountArgs>(args?: Prisma.Subset<T, AccountCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AccountCountAggregateOutputType> : number>;
946
+ /**
947
+ * Allows you to perform aggregations operations on a Account.
948
+ * Note, that providing `undefined` is treated as the value not being there.
949
+ * Read more here: https://pris.ly/d/null-undefined
950
+ * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
951
+ * @example
952
+ * // Ordered by age ascending
953
+ * // Where email contains prisma.io
954
+ * // Limited to the 10 users
955
+ * const aggregations = await prisma.user.aggregate({
956
+ * _avg: {
957
+ * age: true,
958
+ * },
959
+ * where: {
960
+ * email: {
961
+ * contains: "prisma.io",
962
+ * },
963
+ * },
964
+ * orderBy: {
965
+ * age: "asc",
966
+ * },
967
+ * take: 10,
968
+ * })
969
+ **/
678
970
  aggregate<T extends AccountAggregateArgs>(args: Prisma.Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>;
971
+ /**
972
+ * Group by Account.
973
+ * Note, that providing `undefined` is treated as the value not being there.
974
+ * Read more here: https://pris.ly/d/null-undefined
975
+ * @param {AccountGroupByArgs} args - Group by arguments.
976
+ * @example
977
+ * // Group by city, order by createdAt, get count
978
+ * const result = await prisma.user.groupBy({
979
+ * by: ['city', 'createdAt'],
980
+ * orderBy: {
981
+ * createdAt: true
982
+ * },
983
+ * _count: {
984
+ * _all: true
985
+ * },
986
+ * })
987
+ *
988
+ **/
679
989
  groupBy<T extends AccountGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
680
990
  orderBy: AccountGroupByArgs['orderBy'];
681
991
  } : {
@@ -694,15 +1004,44 @@ export interface AccountDelegate<ExtArgs extends runtime.Types.Extensions.Intern
694
1004
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
695
1005
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
696
1006
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1007
+ /**
1008
+ * Fields of the Account model
1009
+ */
697
1010
  readonly fields: AccountFieldRefs;
698
1011
  }
1012
+ /**
1013
+ * The delegate class that acts as a "Promise-like" for Account.
1014
+ * Why is this prefixed with `Prisma__`?
1015
+ * Because we want to prevent naming conflicts as mentioned in
1016
+ * https://github.com/prisma/prisma-client-js/issues/707
1017
+ */
699
1018
  export interface Prisma__AccountClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
700
1019
  readonly [Symbol.toStringTag]: "PrismaPromise";
701
1020
  user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1021
+ /**
1022
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1023
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1024
+ * @param onrejected The callback to execute when the Promise is rejected.
1025
+ * @returns A Promise for the completion of which ever callback is executed.
1026
+ */
702
1027
  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>;
1028
+ /**
1029
+ * Attaches a callback for only the rejection of the Promise.
1030
+ * @param onrejected The callback to execute when the Promise is rejected.
1031
+ * @returns A Promise for the completion of the callback.
1032
+ */
703
1033
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1034
+ /**
1035
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1036
+ * resolved value cannot be modified from the callback.
1037
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1038
+ * @returns A Promise for the completion of the callback.
1039
+ */
704
1040
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
705
1041
  }
1042
+ /**
1043
+ * Fields of the Account model
1044
+ */
706
1045
  export interface AccountFieldRefs {
707
1046
  readonly id: Prisma.FieldRef<"Account", 'String'>;
708
1047
  readonly accountId: Prisma.FieldRef<"Account", 'String'>;
@@ -718,109 +1057,403 @@ export interface AccountFieldRefs {
718
1057
  readonly createdAt: Prisma.FieldRef<"Account", 'DateTime'>;
719
1058
  readonly updatedAt: Prisma.FieldRef<"Account", 'DateTime'>;
720
1059
  }
1060
+ /**
1061
+ * Account findUnique
1062
+ */
721
1063
  export type AccountFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1064
+ /**
1065
+ * Select specific fields to fetch from the Account
1066
+ */
722
1067
  select?: Prisma.AccountSelect<ExtArgs> | null;
1068
+ /**
1069
+ * Omit specific fields from the Account
1070
+ */
723
1071
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1072
+ /**
1073
+ * Choose, which related nodes to fetch as well
1074
+ */
724
1075
  include?: Prisma.AccountInclude<ExtArgs> | null;
1076
+ /**
1077
+ * Filter, which Account to fetch.
1078
+ */
725
1079
  where: Prisma.AccountWhereUniqueInput;
726
1080
  };
1081
+ /**
1082
+ * Account findUniqueOrThrow
1083
+ */
727
1084
  export type AccountFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1085
+ /**
1086
+ * Select specific fields to fetch from the Account
1087
+ */
728
1088
  select?: Prisma.AccountSelect<ExtArgs> | null;
1089
+ /**
1090
+ * Omit specific fields from the Account
1091
+ */
729
1092
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1093
+ /**
1094
+ * Choose, which related nodes to fetch as well
1095
+ */
730
1096
  include?: Prisma.AccountInclude<ExtArgs> | null;
1097
+ /**
1098
+ * Filter, which Account to fetch.
1099
+ */
731
1100
  where: Prisma.AccountWhereUniqueInput;
732
1101
  };
1102
+ /**
1103
+ * Account findFirst
1104
+ */
733
1105
  export type AccountFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1106
+ /**
1107
+ * Select specific fields to fetch from the Account
1108
+ */
734
1109
  select?: Prisma.AccountSelect<ExtArgs> | null;
1110
+ /**
1111
+ * Omit specific fields from the Account
1112
+ */
735
1113
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1114
+ /**
1115
+ * Choose, which related nodes to fetch as well
1116
+ */
736
1117
  include?: Prisma.AccountInclude<ExtArgs> | null;
1118
+ /**
1119
+ * Filter, which Account to fetch.
1120
+ */
737
1121
  where?: Prisma.AccountWhereInput;
1122
+ /**
1123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1124
+ *
1125
+ * Determine the order of Accounts to fetch.
1126
+ */
738
1127
  orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[];
1128
+ /**
1129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1130
+ *
1131
+ * Sets the position for searching for Accounts.
1132
+ */
739
1133
  cursor?: Prisma.AccountWhereUniqueInput;
1134
+ /**
1135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1136
+ *
1137
+ * Take `±n` Accounts from the position of the cursor.
1138
+ */
740
1139
  take?: number;
1140
+ /**
1141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1142
+ *
1143
+ * Skip the first `n` Accounts.
1144
+ */
741
1145
  skip?: number;
1146
+ /**
1147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1148
+ *
1149
+ * Filter by unique combinations of Accounts.
1150
+ */
742
1151
  distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[];
743
1152
  };
1153
+ /**
1154
+ * Account findFirstOrThrow
1155
+ */
744
1156
  export type AccountFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1157
+ /**
1158
+ * Select specific fields to fetch from the Account
1159
+ */
745
1160
  select?: Prisma.AccountSelect<ExtArgs> | null;
1161
+ /**
1162
+ * Omit specific fields from the Account
1163
+ */
746
1164
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1165
+ /**
1166
+ * Choose, which related nodes to fetch as well
1167
+ */
747
1168
  include?: Prisma.AccountInclude<ExtArgs> | null;
1169
+ /**
1170
+ * Filter, which Account to fetch.
1171
+ */
748
1172
  where?: Prisma.AccountWhereInput;
1173
+ /**
1174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1175
+ *
1176
+ * Determine the order of Accounts to fetch.
1177
+ */
749
1178
  orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[];
1179
+ /**
1180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1181
+ *
1182
+ * Sets the position for searching for Accounts.
1183
+ */
750
1184
  cursor?: Prisma.AccountWhereUniqueInput;
1185
+ /**
1186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1187
+ *
1188
+ * Take `±n` Accounts from the position of the cursor.
1189
+ */
751
1190
  take?: number;
1191
+ /**
1192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1193
+ *
1194
+ * Skip the first `n` Accounts.
1195
+ */
752
1196
  skip?: number;
1197
+ /**
1198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1199
+ *
1200
+ * Filter by unique combinations of Accounts.
1201
+ */
753
1202
  distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[];
754
1203
  };
1204
+ /**
1205
+ * Account findMany
1206
+ */
755
1207
  export type AccountFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1208
+ /**
1209
+ * Select specific fields to fetch from the Account
1210
+ */
756
1211
  select?: Prisma.AccountSelect<ExtArgs> | null;
1212
+ /**
1213
+ * Omit specific fields from the Account
1214
+ */
757
1215
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1216
+ /**
1217
+ * Choose, which related nodes to fetch as well
1218
+ */
758
1219
  include?: Prisma.AccountInclude<ExtArgs> | null;
1220
+ /**
1221
+ * Filter, which Accounts to fetch.
1222
+ */
759
1223
  where?: Prisma.AccountWhereInput;
1224
+ /**
1225
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1226
+ *
1227
+ * Determine the order of Accounts to fetch.
1228
+ */
760
1229
  orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[];
1230
+ /**
1231
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1232
+ *
1233
+ * Sets the position for listing Accounts.
1234
+ */
761
1235
  cursor?: Prisma.AccountWhereUniqueInput;
1236
+ /**
1237
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1238
+ *
1239
+ * Take `±n` Accounts from the position of the cursor.
1240
+ */
762
1241
  take?: number;
1242
+ /**
1243
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1244
+ *
1245
+ * Skip the first `n` Accounts.
1246
+ */
763
1247
  skip?: number;
1248
+ /**
1249
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1250
+ *
1251
+ * Filter by unique combinations of Accounts.
1252
+ */
764
1253
  distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[];
765
1254
  };
1255
+ /**
1256
+ * Account create
1257
+ */
766
1258
  export type AccountCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1259
+ /**
1260
+ * Select specific fields to fetch from the Account
1261
+ */
767
1262
  select?: Prisma.AccountSelect<ExtArgs> | null;
1263
+ /**
1264
+ * Omit specific fields from the Account
1265
+ */
768
1266
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1267
+ /**
1268
+ * Choose, which related nodes to fetch as well
1269
+ */
769
1270
  include?: Prisma.AccountInclude<ExtArgs> | null;
1271
+ /**
1272
+ * The data needed to create a Account.
1273
+ */
770
1274
  data: Prisma.XOR<Prisma.AccountCreateInput, Prisma.AccountUncheckedCreateInput>;
771
1275
  };
1276
+ /**
1277
+ * Account createMany
1278
+ */
772
1279
  export type AccountCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1280
+ /**
1281
+ * The data used to create many Accounts.
1282
+ */
773
1283
  data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[];
774
1284
  skipDuplicates?: boolean;
775
1285
  };
1286
+ /**
1287
+ * Account createManyAndReturn
1288
+ */
776
1289
  export type AccountCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1290
+ /**
1291
+ * Select specific fields to fetch from the Account
1292
+ */
777
1293
  select?: Prisma.AccountSelectCreateManyAndReturn<ExtArgs> | null;
1294
+ /**
1295
+ * Omit specific fields from the Account
1296
+ */
778
1297
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1298
+ /**
1299
+ * The data used to create many Accounts.
1300
+ */
779
1301
  data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[];
780
1302
  skipDuplicates?: boolean;
1303
+ /**
1304
+ * Choose, which related nodes to fetch as well
1305
+ */
781
1306
  include?: Prisma.AccountIncludeCreateManyAndReturn<ExtArgs> | null;
782
1307
  };
1308
+ /**
1309
+ * Account update
1310
+ */
783
1311
  export type AccountUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1312
+ /**
1313
+ * Select specific fields to fetch from the Account
1314
+ */
784
1315
  select?: Prisma.AccountSelect<ExtArgs> | null;
1316
+ /**
1317
+ * Omit specific fields from the Account
1318
+ */
785
1319
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1320
+ /**
1321
+ * Choose, which related nodes to fetch as well
1322
+ */
786
1323
  include?: Prisma.AccountInclude<ExtArgs> | null;
1324
+ /**
1325
+ * The data needed to update a Account.
1326
+ */
787
1327
  data: Prisma.XOR<Prisma.AccountUpdateInput, Prisma.AccountUncheckedUpdateInput>;
1328
+ /**
1329
+ * Choose, which Account to update.
1330
+ */
788
1331
  where: Prisma.AccountWhereUniqueInput;
789
1332
  };
1333
+ /**
1334
+ * Account updateMany
1335
+ */
790
1336
  export type AccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1337
+ /**
1338
+ * The data used to update Accounts.
1339
+ */
791
1340
  data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyInput>;
1341
+ /**
1342
+ * Filter which Accounts to update
1343
+ */
792
1344
  where?: Prisma.AccountWhereInput;
1345
+ /**
1346
+ * Limit how many Accounts to update.
1347
+ */
793
1348
  limit?: number;
794
1349
  };
1350
+ /**
1351
+ * Account updateManyAndReturn
1352
+ */
795
1353
  export type AccountUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1354
+ /**
1355
+ * Select specific fields to fetch from the Account
1356
+ */
796
1357
  select?: Prisma.AccountSelectUpdateManyAndReturn<ExtArgs> | null;
1358
+ /**
1359
+ * Omit specific fields from the Account
1360
+ */
797
1361
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1362
+ /**
1363
+ * The data used to update Accounts.
1364
+ */
798
1365
  data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyInput>;
1366
+ /**
1367
+ * Filter which Accounts to update
1368
+ */
799
1369
  where?: Prisma.AccountWhereInput;
1370
+ /**
1371
+ * Limit how many Accounts to update.
1372
+ */
800
1373
  limit?: number;
1374
+ /**
1375
+ * Choose, which related nodes to fetch as well
1376
+ */
801
1377
  include?: Prisma.AccountIncludeUpdateManyAndReturn<ExtArgs> | null;
802
1378
  };
1379
+ /**
1380
+ * Account upsert
1381
+ */
803
1382
  export type AccountUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1383
+ /**
1384
+ * Select specific fields to fetch from the Account
1385
+ */
804
1386
  select?: Prisma.AccountSelect<ExtArgs> | null;
1387
+ /**
1388
+ * Omit specific fields from the Account
1389
+ */
805
1390
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1391
+ /**
1392
+ * Choose, which related nodes to fetch as well
1393
+ */
806
1394
  include?: Prisma.AccountInclude<ExtArgs> | null;
1395
+ /**
1396
+ * The filter to search for the Account to update in case it exists.
1397
+ */
807
1398
  where: Prisma.AccountWhereUniqueInput;
1399
+ /**
1400
+ * In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
1401
+ */
808
1402
  create: Prisma.XOR<Prisma.AccountCreateInput, Prisma.AccountUncheckedCreateInput>;
1403
+ /**
1404
+ * In case the Account was found with the provided `where` argument, update it with this data.
1405
+ */
809
1406
  update: Prisma.XOR<Prisma.AccountUpdateInput, Prisma.AccountUncheckedUpdateInput>;
810
1407
  };
1408
+ /**
1409
+ * Account delete
1410
+ */
811
1411
  export type AccountDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1412
+ /**
1413
+ * Select specific fields to fetch from the Account
1414
+ */
812
1415
  select?: Prisma.AccountSelect<ExtArgs> | null;
1416
+ /**
1417
+ * Omit specific fields from the Account
1418
+ */
813
1419
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1420
+ /**
1421
+ * Choose, which related nodes to fetch as well
1422
+ */
814
1423
  include?: Prisma.AccountInclude<ExtArgs> | null;
1424
+ /**
1425
+ * Filter which Account to delete.
1426
+ */
815
1427
  where: Prisma.AccountWhereUniqueInput;
816
1428
  };
1429
+ /**
1430
+ * Account deleteMany
1431
+ */
817
1432
  export type AccountDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1433
+ /**
1434
+ * Filter which Accounts to delete
1435
+ */
818
1436
  where?: Prisma.AccountWhereInput;
1437
+ /**
1438
+ * Limit how many Accounts to delete.
1439
+ */
819
1440
  limit?: number;
820
1441
  };
1442
+ /**
1443
+ * Account without action
1444
+ */
821
1445
  export type AccountDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1446
+ /**
1447
+ * Select specific fields to fetch from the Account
1448
+ */
822
1449
  select?: Prisma.AccountSelect<ExtArgs> | null;
1450
+ /**
1451
+ * Omit specific fields from the Account
1452
+ */
823
1453
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1454
+ /**
1455
+ * Choose, which related nodes to fetch as well
1456
+ */
824
1457
  include?: Prisma.AccountInclude<ExtArgs> | null;
825
1458
  };
826
1459
  export {};