@shophost/rest-api 2.0.30 → 2.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/package.json +18 -13
  2. package/scripts/minify.mjs +110 -0
  3. package/src/app.js +1 -53
  4. package/src/core/auth/auth.schema.js +1 -41
  5. package/src/core/auth/auth.util.js +1 -44
  6. package/src/core/auth/better-auth.lib.js +1 -100
  7. package/src/core/auth/generate-password-hash.util.d.ts +0 -3
  8. package/src/core/auth/generate-password-hash.util.js +1 -30
  9. package/src/core/auth/headers.schema.js +1 -22
  10. package/src/core/auth/user.schema.js +1 -30
  11. package/src/core/db/__generated__/client/browser.d.ts +0 -128
  12. package/src/core/db/__generated__/client/browser.js +1 -18
  13. package/src/core/db/__generated__/client/client.d.ts +0 -143
  14. package/src/core/db/__generated__/client/client.js +1 -35
  15. package/src/core/db/__generated__/client/commonInputTypes.js +1 -11
  16. package/src/core/db/__generated__/client/enums.js +1 -200
  17. package/src/core/db/__generated__/client/internal/class.d.ts +0 -343
  18. package/src/core/db/__generated__/client/internal/class.js +1 -55
  19. package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +0 -234
  20. package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -541
  21. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +0 -15
  22. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -512
  23. package/src/core/db/__generated__/client/models/Account.d.ts +0 -628
  24. package/src/core/db/__generated__/client/models/Account.js +1 -2
  25. package/src/core/db/__generated__/client/models/Address.d.ts +0 -701
  26. package/src/core/db/__generated__/client/models/Address.js +1 -2
  27. package/src/core/db/__generated__/client/models/Campaign.d.ts +0 -638
  28. package/src/core/db/__generated__/client/models/Campaign.js +1 -2
  29. package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +0 -634
  30. package/src/core/db/__generated__/client/models/ClosingTimes.js +1 -2
  31. package/src/core/db/__generated__/client/models/File.d.ts +0 -752
  32. package/src/core/db/__generated__/client/models/File.js +1 -2
  33. package/src/core/db/__generated__/client/models/Invitation.d.ts +0 -628
  34. package/src/core/db/__generated__/client/models/Invitation.js +1 -2
  35. package/src/core/db/__generated__/client/models/LegalEntity.d.ts +0 -652
  36. package/src/core/db/__generated__/client/models/LegalEntity.js +1 -2
  37. package/src/core/db/__generated__/client/models/Manufacturer.d.ts +0 -679
  38. package/src/core/db/__generated__/client/models/Manufacturer.js +1 -2
  39. package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +0 -628
  40. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +1 -2
  41. package/src/core/db/__generated__/client/models/Member.d.ts +0 -628
  42. package/src/core/db/__generated__/client/models/Member.js +1 -2
  43. package/src/core/db/__generated__/client/models/Modifier.d.ts +0 -662
  44. package/src/core/db/__generated__/client/models/Modifier.js +1 -2
  45. package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +0 -686
  46. package/src/core/db/__generated__/client/models/ModifierGroup.js +1 -2
  47. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +0 -628
  48. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +1 -2
  49. package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +0 -634
  50. package/src/core/db/__generated__/client/models/OpeningTimes.js +1 -2
  51. package/src/core/db/__generated__/client/models/Order.d.ts +0 -700
  52. package/src/core/db/__generated__/client/models/Order.js +1 -2
  53. package/src/core/db/__generated__/client/models/OrderItem.d.ts +0 -686
  54. package/src/core/db/__generated__/client/models/OrderItem.js +1 -2
  55. package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +0 -628
  56. package/src/core/db/__generated__/client/models/OrderItemTranslation.js +1 -2
  57. package/src/core/db/__generated__/client/models/Organization.d.ts +0 -811
  58. package/src/core/db/__generated__/client/models/Organization.js +1 -2
  59. package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +0 -676
  60. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +1 -2
  61. package/src/core/db/__generated__/client/models/Payment.d.ts +0 -668
  62. package/src/core/db/__generated__/client/models/Payment.js +1 -2
  63. package/src/core/db/__generated__/client/models/PaymentSession.d.ts +0 -638
  64. package/src/core/db/__generated__/client/models/PaymentSession.js +1 -2
  65. package/src/core/db/__generated__/client/models/Product.d.ts +0 -746
  66. package/src/core/db/__generated__/client/models/Product.js +1 -2
  67. package/src/core/db/__generated__/client/models/ProductCategory.d.ts +0 -689
  68. package/src/core/db/__generated__/client/models/ProductCategory.js +1 -2
  69. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +0 -628
  70. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +1 -2
  71. package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +0 -664
  72. package/src/core/db/__generated__/client/models/ProductSnapshot.js +1 -2
  73. package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +0 -628
  74. package/src/core/db/__generated__/client/models/ProductTranslation.js +1 -2
  75. package/src/core/db/__generated__/client/models/Reservation.d.ts +0 -650
  76. package/src/core/db/__generated__/client/models/Reservation.js +1 -2
  77. package/src/core/db/__generated__/client/models/Session.d.ts +0 -628
  78. package/src/core/db/__generated__/client/models/Session.js +1 -2
  79. package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +0 -679
  80. package/src/core/db/__generated__/client/models/ShippingMethod.js +1 -2
  81. package/src/core/db/__generated__/client/models/ShippingZone.d.ts +0 -638
  82. package/src/core/db/__generated__/client/models/ShippingZone.js +1 -2
  83. package/src/core/db/__generated__/client/models/User.d.ts +0 -736
  84. package/src/core/db/__generated__/client/models/User.js +1 -2
  85. package/src/core/db/__generated__/client/models/Verification.d.ts +0 -592
  86. package/src/core/db/__generated__/client/models/Verification.js +1 -2
  87. package/src/core/db/__generated__/client/models.js +1 -2
  88. package/src/core/db/index.js +1 -2
  89. package/src/core/exceptions/http-exception.js +1 -9
  90. package/src/core/hono/hono.js +1 -123
  91. package/src/core/lib/prisma.d.ts +9 -1
  92. package/src/core/lib/prisma.js +1 -11
  93. package/src/core/logging/pino.js +1 -5
  94. package/src/core/notifications/email.service.d.ts +0 -15
  95. package/src/core/notifications/email.service.js +1 -116
  96. package/src/core/openapi/openapi.lib.js +1 -26
  97. package/src/core/types/google-maps.types.js +1 -2
  98. package/src/core/utils/currency.util.js +1 -11
  99. package/src/core/utils/env.util.js +1 -8
  100. package/src/core/utils/object.util.d.ts +0 -10
  101. package/src/core/utils/object.util.js +1 -39
  102. package/src/core/utils/translations.util.js +0 -2
  103. package/src/core/utils/zod.util.d.ts +0 -12
  104. package/src/core/utils/zod.util.js +1 -85
  105. package/src/db.js +1 -3
  106. package/src/features/access/access.handler.js +1 -91
  107. package/src/features/access/access.route.js +1 -220
  108. package/src/features/access/access.schema.js +1 -108
  109. package/src/features/access/access.service.js +1 -294
  110. package/src/features/cart/cart.handler.js +1 -17
  111. package/src/features/cart/cart.route.js +1 -32
  112. package/src/features/cart/cart.schema.js +1 -39
  113. package/src/features/cart/cart.service.d.ts +0 -7
  114. package/src/features/cart/cart.service.js +1 -97
  115. package/src/features/cart/cart.util.js +1 -76
  116. package/src/features/file/file.handler.js +1 -23
  117. package/src/features/file/file.route.js +1 -34
  118. package/src/features/file/file.schema.js +1 -77
  119. package/src/features/file/file.service.d.ts +0 -6
  120. package/src/features/file/file.service.js +1 -66
  121. package/src/features/health/health.handler.js +1 -10
  122. package/src/features/health/health.route.js +1 -25
  123. package/src/features/index.js +1 -16
  124. package/src/features/location/location.handler.js +1 -25
  125. package/src/features/location/location.route.js +1 -56
  126. package/src/features/location/location.schema.js +1 -50
  127. package/src/features/location/location.service.d.ts +0 -3
  128. package/src/features/location/location.service.js +1 -141
  129. package/src/features/manufacturer/manufacturer.handler.js +1 -53
  130. package/src/features/manufacturer/manufacturer.route.js +1 -97
  131. package/src/features/manufacturer/manufacturer.schema.js +1 -125
  132. package/src/features/manufacturer/manufacturer.service.d.ts +0 -19
  133. package/src/features/manufacturer/manufacturer.service.js +1 -190
  134. package/src/features/order/emails/order-confirmation.email.js +1 -229
  135. package/src/features/order/emails/order-notification.email.js +1 -229
  136. package/src/features/order/fulfilment.schema.js +1 -3
  137. package/src/features/order/order.handler.js +1 -54
  138. package/src/features/order/order.route.js +1 -111
  139. package/src/features/order/order.schema.js +1 -158
  140. package/src/features/order/order.service.d.ts +0 -15
  141. package/src/features/order/order.service.js +1 -306
  142. package/src/features/order/recipient.schema.js +1 -38
  143. package/src/features/organization/legal-entity.schema.js +1 -83
  144. package/src/features/organization/organization-configuration.schema.js +1 -115
  145. package/src/features/organization/organization.handler.js +1 -48
  146. package/src/features/organization/organization.route.js +1 -84
  147. package/src/features/organization/organization.schema.js +1 -64
  148. package/src/features/organization/organization.service.d.ts +0 -15
  149. package/src/features/organization/organization.service.js +1 -334
  150. package/src/features/payment/payment.handler.js +1 -16
  151. package/src/features/payment/payment.route.js +1 -22
  152. package/src/features/payment/payment.schema.js +1 -46
  153. package/src/features/payment/payment.service.js +1 -100
  154. package/src/features/payment/stripe.service.js +1 -164
  155. package/src/features/product/product-modifier.schema.js +1 -84
  156. package/src/features/product/product.handler.js +1 -87
  157. package/src/features/product/product.route.js +1 -179
  158. package/src/features/product/product.schema.js +1 -143
  159. package/src/features/product/product.service.d.ts +0 -25
  160. package/src/features/product/product.service.js +1 -440
  161. package/src/features/product-category/product-category.handler.js +1 -59
  162. package/src/features/product-category/product-category.route.js +1 -139
  163. package/src/features/product-category/product-category.schema.js +1 -86
  164. package/src/features/product-category/product-category.service.d.ts +0 -22
  165. package/src/features/product-category/product-category.service.js +1 -220
  166. package/src/features/reservation/emails/reservation-cancellation.email.js +1 -82
  167. package/src/features/reservation/emails/reservation-confirmation.email.js +1 -82
  168. package/src/features/reservation/emails/reservation-notification.email.js +1 -93
  169. package/src/features/reservation/reservation.handler.js +1 -65
  170. package/src/features/reservation/reservation.route.js +1 -167
  171. package/src/features/reservation/reservation.schema.js +1 -51
  172. package/src/features/reservation/reservation.service.d.ts +0 -18
  173. package/src/features/reservation/reservation.service.js +1 -231
  174. package/src/features/shipping/shipping.handler.js +1 -32
  175. package/src/features/shipping/shipping.route.js +1 -51
  176. package/src/features/shipping/shipping.service.d.ts +0 -7
  177. package/src/features/shipping/shipping.service.js +1 -96
  178. package/src/features/shipping-method/shipping-method.handler.js +1 -60
  179. package/src/features/shipping-method/shipping-method.route.js +1 -144
  180. package/src/features/shipping-method/shipping-method.schema.js +1 -48
  181. package/src/features/shipping-method/shipping-method.service.d.ts +0 -25
  182. package/src/features/shipping-method/shipping-method.service.js +1 -229
  183. package/src/features/shipping-method/shipping-zone.schema.js +1 -31
  184. package/src/features/webhook/webhook.handler.js +1 -50
  185. package/src/features/webhook/webhook.route.js +1 -33
  186. package/src/index.js +1 -6
  187. package/src/integrations/next.js +1 -82
  188. package/src/schemas/address.schema.d.ts +0 -8
  189. package/src/schemas/address.schema.js +1 -112
  190. package/src/schemas/currency.schema.d.ts +0 -42
  191. package/src/schemas/currency.schema.js +1 -118
  192. package/src/schemas/error.schema.js +1 -12
  193. package/src/schemas/index.js +1 -29
  194. package/src/schemas/locales.schema.js +1 -238
  195. package/src/schemas/number.schema.js +1 -29
  196. package/src/schemas/pagination.schema.js +1 -54
  197. package/src/schemas/params.schema.js +1 -20
  198. package/src/schemas/queries.schema.js +1 -6
  199. package/src/test/global-setup.d.ts +1 -0
  200. package/src/test/global-setup.js +1 -0
  201. package/src/test/integration/api-fixtures.d.ts +4 -16
  202. package/src/test/integration/api-fixtures.js +1 -225
  203. package/src/test/integration/seed.d.ts +81 -0
  204. package/src/test/integration/seed.js +1 -0
  205. package/src/test/integration/test-helpers.d.ts +107 -924
  206. package/src/test/integration/test-helpers.js +1 -1100
  207. package/src/test/setup-test-env.d.ts +1 -1
  208. package/src/test/setup-test-env.js +1 -29
  209. package/src/app.js.map +0 -1
  210. package/src/core/auth/auth.schema.js.map +0 -1
  211. package/src/core/auth/auth.util.js.map +0 -1
  212. package/src/core/auth/better-auth.lib.js.map +0 -1
  213. package/src/core/auth/generate-password-hash.util.js.map +0 -1
  214. package/src/core/auth/headers.schema.js.map +0 -1
  215. package/src/core/auth/user.schema.js.map +0 -1
  216. package/src/core/db/__generated__/client/browser.js.map +0 -1
  217. package/src/core/db/__generated__/client/client.js.map +0 -1
  218. package/src/core/db/__generated__/client/commonInputTypes.js.map +0 -1
  219. package/src/core/db/__generated__/client/enums.js.map +0 -1
  220. package/src/core/db/__generated__/client/internal/class.js.map +0 -1
  221. package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +0 -1
  222. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +0 -1
  223. package/src/core/db/__generated__/client/models/Account.js.map +0 -1
  224. package/src/core/db/__generated__/client/models/Address.js.map +0 -1
  225. package/src/core/db/__generated__/client/models/Campaign.js.map +0 -1
  226. package/src/core/db/__generated__/client/models/ClosingTimes.js.map +0 -1
  227. package/src/core/db/__generated__/client/models/File.js.map +0 -1
  228. package/src/core/db/__generated__/client/models/Invitation.js.map +0 -1
  229. package/src/core/db/__generated__/client/models/LegalEntity.js.map +0 -1
  230. package/src/core/db/__generated__/client/models/Manufacturer.js.map +0 -1
  231. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +0 -1
  232. package/src/core/db/__generated__/client/models/Member.js.map +0 -1
  233. package/src/core/db/__generated__/client/models/Modifier.js.map +0 -1
  234. package/src/core/db/__generated__/client/models/ModifierGroup.js.map +0 -1
  235. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +0 -1
  236. package/src/core/db/__generated__/client/models/OpeningTimes.js.map +0 -1
  237. package/src/core/db/__generated__/client/models/Order.js.map +0 -1
  238. package/src/core/db/__generated__/client/models/OrderItem.js.map +0 -1
  239. package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +0 -1
  240. package/src/core/db/__generated__/client/models/Organization.js.map +0 -1
  241. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +0 -1
  242. package/src/core/db/__generated__/client/models/Payment.js.map +0 -1
  243. package/src/core/db/__generated__/client/models/PaymentSession.js.map +0 -1
  244. package/src/core/db/__generated__/client/models/Product.js.map +0 -1
  245. package/src/core/db/__generated__/client/models/ProductCategory.js.map +0 -1
  246. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +0 -1
  247. package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +0 -1
  248. package/src/core/db/__generated__/client/models/ProductTranslation.js.map +0 -1
  249. package/src/core/db/__generated__/client/models/Reservation.js.map +0 -1
  250. package/src/core/db/__generated__/client/models/Session.js.map +0 -1
  251. package/src/core/db/__generated__/client/models/ShippingMethod.js.map +0 -1
  252. package/src/core/db/__generated__/client/models/ShippingZone.js.map +0 -1
  253. package/src/core/db/__generated__/client/models/User.js.map +0 -1
  254. package/src/core/db/__generated__/client/models/Verification.js.map +0 -1
  255. package/src/core/db/__generated__/client/models.js.map +0 -1
  256. package/src/core/db/index.js.map +0 -1
  257. package/src/core/exceptions/http-exception.js.map +0 -1
  258. package/src/core/hono/hono.js.map +0 -1
  259. package/src/core/lib/prisma.js.map +0 -1
  260. package/src/core/logging/pino.js.map +0 -1
  261. package/src/core/notifications/email.service.js.map +0 -1
  262. package/src/core/openapi/openapi.lib.js.map +0 -1
  263. package/src/core/types/google-maps.types.js.map +0 -1
  264. package/src/core/utils/currency.util.js.map +0 -1
  265. package/src/core/utils/env.util.js.map +0 -1
  266. package/src/core/utils/object.util.js.map +0 -1
  267. package/src/core/utils/translations.util.js.map +0 -1
  268. package/src/core/utils/zod.util.js.map +0 -1
  269. package/src/db.js.map +0 -1
  270. package/src/features/access/access.handler.js.map +0 -1
  271. package/src/features/access/access.route.js.map +0 -1
  272. package/src/features/access/access.schema.js.map +0 -1
  273. package/src/features/access/access.service.js.map +0 -1
  274. package/src/features/cart/cart.handler.js.map +0 -1
  275. package/src/features/cart/cart.route.js.map +0 -1
  276. package/src/features/cart/cart.schema.js.map +0 -1
  277. package/src/features/cart/cart.service.js.map +0 -1
  278. package/src/features/cart/cart.util.js.map +0 -1
  279. package/src/features/file/file.handler.js.map +0 -1
  280. package/src/features/file/file.route.js.map +0 -1
  281. package/src/features/file/file.schema.js.map +0 -1
  282. package/src/features/file/file.service.js.map +0 -1
  283. package/src/features/health/health.handler.js.map +0 -1
  284. package/src/features/health/health.route.js.map +0 -1
  285. package/src/features/index.js.map +0 -1
  286. package/src/features/location/location.handler.js.map +0 -1
  287. package/src/features/location/location.route.js.map +0 -1
  288. package/src/features/location/location.schema.js.map +0 -1
  289. package/src/features/location/location.service.js.map +0 -1
  290. package/src/features/manufacturer/manufacturer.handler.js.map +0 -1
  291. package/src/features/manufacturer/manufacturer.route.js.map +0 -1
  292. package/src/features/manufacturer/manufacturer.schema.js.map +0 -1
  293. package/src/features/manufacturer/manufacturer.service.js.map +0 -1
  294. package/src/features/order/emails/order-confirmation.email.js.map +0 -1
  295. package/src/features/order/emails/order-notification.email.js.map +0 -1
  296. package/src/features/order/fulfilment.schema.js.map +0 -1
  297. package/src/features/order/order.handler.js.map +0 -1
  298. package/src/features/order/order.route.js.map +0 -1
  299. package/src/features/order/order.schema.js.map +0 -1
  300. package/src/features/order/order.service.js.map +0 -1
  301. package/src/features/order/recipient.schema.js.map +0 -1
  302. package/src/features/organization/legal-entity.schema.js.map +0 -1
  303. package/src/features/organization/organization-configuration.schema.js.map +0 -1
  304. package/src/features/organization/organization.handler.js.map +0 -1
  305. package/src/features/organization/organization.route.js.map +0 -1
  306. package/src/features/organization/organization.schema.js.map +0 -1
  307. package/src/features/organization/organization.service.js.map +0 -1
  308. package/src/features/payment/payment.handler.js.map +0 -1
  309. package/src/features/payment/payment.route.js.map +0 -1
  310. package/src/features/payment/payment.schema.js.map +0 -1
  311. package/src/features/payment/payment.service.js.map +0 -1
  312. package/src/features/payment/stripe.service.js.map +0 -1
  313. package/src/features/product/product-modifier.schema.js.map +0 -1
  314. package/src/features/product/product.handler.js.map +0 -1
  315. package/src/features/product/product.route.js.map +0 -1
  316. package/src/features/product/product.schema.js.map +0 -1
  317. package/src/features/product/product.service.js.map +0 -1
  318. package/src/features/product-category/product-category.handler.js.map +0 -1
  319. package/src/features/product-category/product-category.route.js.map +0 -1
  320. package/src/features/product-category/product-category.schema.js.map +0 -1
  321. package/src/features/product-category/product-category.service.js.map +0 -1
  322. package/src/features/reservation/emails/reservation-cancellation.email.js.map +0 -1
  323. package/src/features/reservation/emails/reservation-confirmation.email.js.map +0 -1
  324. package/src/features/reservation/emails/reservation-notification.email.js.map +0 -1
  325. package/src/features/reservation/reservation.handler.js.map +0 -1
  326. package/src/features/reservation/reservation.route.js.map +0 -1
  327. package/src/features/reservation/reservation.schema.js.map +0 -1
  328. package/src/features/reservation/reservation.service.js.map +0 -1
  329. package/src/features/shipping/shipping.handler.js.map +0 -1
  330. package/src/features/shipping/shipping.route.js.map +0 -1
  331. package/src/features/shipping/shipping.service.js.map +0 -1
  332. package/src/features/shipping-method/shipping-method.handler.js.map +0 -1
  333. package/src/features/shipping-method/shipping-method.route.js.map +0 -1
  334. package/src/features/shipping-method/shipping-method.schema.js.map +0 -1
  335. package/src/features/shipping-method/shipping-method.service.js.map +0 -1
  336. package/src/features/shipping-method/shipping-zone.schema.js.map +0 -1
  337. package/src/features/webhook/webhook.handler.js.map +0 -1
  338. package/src/features/webhook/webhook.route.js.map +0 -1
  339. package/src/index.js.map +0 -1
  340. package/src/integrations/next.js.map +0 -1
  341. package/src/schemas/address.schema.js.map +0 -1
  342. package/src/schemas/currency.schema.js.map +0 -1
  343. package/src/schemas/error.schema.js.map +0 -1
  344. package/src/schemas/index.js.map +0 -1
  345. package/src/schemas/locales.schema.js.map +0 -1
  346. package/src/schemas/number.schema.js.map +0 -1
  347. package/src/schemas/pagination.schema.js.map +0 -1
  348. package/src/schemas/params.schema.js.map +0 -1
  349. package/src/schemas/queries.schema.js.map +0 -1
  350. package/src/test/integration/api-fixtures.js.map +0 -1
  351. package/src/test/integration/test-helpers.js.map +0 -1
  352. package/src/test/setup-test-env.js.map +0 -1
@@ -1,9 +1,5 @@
1
1
  import type * as runtime from "@prisma/client/runtime/client";
2
2
  import type * as Prisma from "../internal/prismaNamespace";
3
- /**
4
- * Model Account
5
- *
6
- */
7
3
  export type AccountModel = runtime.Types.Result.DefaultSelection<Prisma.$AccountPayload>;
8
4
  export type AggregateAccount = {
9
5
  _count: AccountCountAggregateOutputType | null;
@@ -103,51 +99,13 @@ export type AccountCountAggregateInputType = {
103
99
  _all?: true;
104
100
  };
105
101
  export type AccountAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
106
- /**
107
- * Filter which Account to aggregate.
108
- */
109
102
  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
- */
115
103
  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
- */
121
104
  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
- */
127
105
  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
- */
133
106
  skip?: number;
134
- /**
135
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
136
- *
137
- * Count returned Accounts
138
- **/
139
107
  _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
- **/
145
108
  _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
- **/
151
109
  _max?: AccountMaxAggregateInputType;
152
110
  };
153
111
  export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
@@ -702,290 +660,22 @@ export interface AccountDelegate<ExtArgs extends runtime.Types.Extensions.Intern
702
660
  name: 'Account';
703
661
  };
704
662
  };
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
- */
716
663
  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
- */
729
664
  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
- */
743
665
  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
- */
758
666
  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
- */
775
667
  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
- */
788
668
  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
- */
801
669
  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
- */
824
670
  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
- */
837
671
  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
- */
853
672
  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
- */
866
673
  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
- */
884
674
  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
- */
913
675
  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
- */
931
676
  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
- **/
945
677
  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
- **/
970
678
  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
- **/
989
679
  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 ? {
990
680
  orderBy: AccountGroupByArgs['orderBy'];
991
681
  } : {
@@ -1004,44 +694,15 @@ export interface AccountDelegate<ExtArgs extends runtime.Types.Extensions.Intern
1004
694
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1005
695
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1006
696
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1007
- /**
1008
- * Fields of the Account model
1009
- */
1010
697
  readonly fields: AccountFieldRefs;
1011
698
  }
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
- */
1018
699
  export interface Prisma__AccountClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1019
700
  readonly [Symbol.toStringTag]: "PrismaPromise";
1020
701
  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
- */
1027
702
  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
- */
1033
703
  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
- */
1040
704
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1041
705
  }
1042
- /**
1043
- * Fields of the Account model
1044
- */
1045
706
  export interface AccountFieldRefs {
1046
707
  readonly id: Prisma.FieldRef<"Account", 'String'>;
1047
708
  readonly accountId: Prisma.FieldRef<"Account", 'String'>;
@@ -1057,398 +718,109 @@ export interface AccountFieldRefs {
1057
718
  readonly createdAt: Prisma.FieldRef<"Account", 'DateTime'>;
1058
719
  readonly updatedAt: Prisma.FieldRef<"Account", 'DateTime'>;
1059
720
  }
1060
- /**
1061
- * Account findUnique
1062
- */
1063
721
  export type AccountFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1064
- /**
1065
- * Select specific fields to fetch from the Account
1066
- */
1067
722
  select?: Prisma.AccountSelect<ExtArgs> | null;
1068
- /**
1069
- * Omit specific fields from the Account
1070
- */
1071
723
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1072
- /**
1073
- * Choose, which related nodes to fetch as well
1074
- */
1075
724
  include?: Prisma.AccountInclude<ExtArgs> | null;
1076
- /**
1077
- * Filter, which Account to fetch.
1078
- */
1079
725
  where: Prisma.AccountWhereUniqueInput;
1080
726
  };
1081
- /**
1082
- * Account findUniqueOrThrow
1083
- */
1084
727
  export type AccountFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1085
- /**
1086
- * Select specific fields to fetch from the Account
1087
- */
1088
728
  select?: Prisma.AccountSelect<ExtArgs> | null;
1089
- /**
1090
- * Omit specific fields from the Account
1091
- */
1092
729
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1093
- /**
1094
- * Choose, which related nodes to fetch as well
1095
- */
1096
730
  include?: Prisma.AccountInclude<ExtArgs> | null;
1097
- /**
1098
- * Filter, which Account to fetch.
1099
- */
1100
731
  where: Prisma.AccountWhereUniqueInput;
1101
732
  };
1102
- /**
1103
- * Account findFirst
1104
- */
1105
733
  export type AccountFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1106
- /**
1107
- * Select specific fields to fetch from the Account
1108
- */
1109
734
  select?: Prisma.AccountSelect<ExtArgs> | null;
1110
- /**
1111
- * Omit specific fields from the Account
1112
- */
1113
735
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1114
- /**
1115
- * Choose, which related nodes to fetch as well
1116
- */
1117
736
  include?: Prisma.AccountInclude<ExtArgs> | null;
1118
- /**
1119
- * Filter, which Account to fetch.
1120
- */
1121
737
  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
- */
1127
738
  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
- */
1133
739
  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
- */
1139
740
  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
- */
1145
741
  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
- */
1151
742
  distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[];
1152
743
  };
1153
- /**
1154
- * Account findFirstOrThrow
1155
- */
1156
744
  export type AccountFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1157
- /**
1158
- * Select specific fields to fetch from the Account
1159
- */
1160
745
  select?: Prisma.AccountSelect<ExtArgs> | null;
1161
- /**
1162
- * Omit specific fields from the Account
1163
- */
1164
746
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1165
- /**
1166
- * Choose, which related nodes to fetch as well
1167
- */
1168
747
  include?: Prisma.AccountInclude<ExtArgs> | null;
1169
- /**
1170
- * Filter, which Account to fetch.
1171
- */
1172
748
  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
- */
1178
749
  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
- */
1184
750
  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
- */
1190
751
  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
- */
1196
752
  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
- */
1202
753
  distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[];
1203
754
  };
1204
- /**
1205
- * Account findMany
1206
- */
1207
755
  export type AccountFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1208
- /**
1209
- * Select specific fields to fetch from the Account
1210
- */
1211
756
  select?: Prisma.AccountSelect<ExtArgs> | null;
1212
- /**
1213
- * Omit specific fields from the Account
1214
- */
1215
757
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1216
- /**
1217
- * Choose, which related nodes to fetch as well
1218
- */
1219
758
  include?: Prisma.AccountInclude<ExtArgs> | null;
1220
- /**
1221
- * Filter, which Accounts to fetch.
1222
- */
1223
759
  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
- */
1229
760
  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
- */
1235
761
  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
- */
1241
762
  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
- */
1247
763
  skip?: number;
1248
764
  distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[];
1249
765
  };
1250
- /**
1251
- * Account create
1252
- */
1253
766
  export type AccountCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1254
- /**
1255
- * Select specific fields to fetch from the Account
1256
- */
1257
767
  select?: Prisma.AccountSelect<ExtArgs> | null;
1258
- /**
1259
- * Omit specific fields from the Account
1260
- */
1261
768
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1262
- /**
1263
- * Choose, which related nodes to fetch as well
1264
- */
1265
769
  include?: Prisma.AccountInclude<ExtArgs> | null;
1266
- /**
1267
- * The data needed to create a Account.
1268
- */
1269
770
  data: Prisma.XOR<Prisma.AccountCreateInput, Prisma.AccountUncheckedCreateInput>;
1270
771
  };
1271
- /**
1272
- * Account createMany
1273
- */
1274
772
  export type AccountCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1275
- /**
1276
- * The data used to create many Accounts.
1277
- */
1278
773
  data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[];
1279
774
  skipDuplicates?: boolean;
1280
775
  };
1281
- /**
1282
- * Account createManyAndReturn
1283
- */
1284
776
  export type AccountCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1285
- /**
1286
- * Select specific fields to fetch from the Account
1287
- */
1288
777
  select?: Prisma.AccountSelectCreateManyAndReturn<ExtArgs> | null;
1289
- /**
1290
- * Omit specific fields from the Account
1291
- */
1292
778
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1293
- /**
1294
- * The data used to create many Accounts.
1295
- */
1296
779
  data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[];
1297
780
  skipDuplicates?: boolean;
1298
- /**
1299
- * Choose, which related nodes to fetch as well
1300
- */
1301
781
  include?: Prisma.AccountIncludeCreateManyAndReturn<ExtArgs> | null;
1302
782
  };
1303
- /**
1304
- * Account update
1305
- */
1306
783
  export type AccountUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1307
- /**
1308
- * Select specific fields to fetch from the Account
1309
- */
1310
784
  select?: Prisma.AccountSelect<ExtArgs> | null;
1311
- /**
1312
- * Omit specific fields from the Account
1313
- */
1314
785
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1315
- /**
1316
- * Choose, which related nodes to fetch as well
1317
- */
1318
786
  include?: Prisma.AccountInclude<ExtArgs> | null;
1319
- /**
1320
- * The data needed to update a Account.
1321
- */
1322
787
  data: Prisma.XOR<Prisma.AccountUpdateInput, Prisma.AccountUncheckedUpdateInput>;
1323
- /**
1324
- * Choose, which Account to update.
1325
- */
1326
788
  where: Prisma.AccountWhereUniqueInput;
1327
789
  };
1328
- /**
1329
- * Account updateMany
1330
- */
1331
790
  export type AccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1332
- /**
1333
- * The data used to update Accounts.
1334
- */
1335
791
  data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyInput>;
1336
- /**
1337
- * Filter which Accounts to update
1338
- */
1339
792
  where?: Prisma.AccountWhereInput;
1340
- /**
1341
- * Limit how many Accounts to update.
1342
- */
1343
793
  limit?: number;
1344
794
  };
1345
- /**
1346
- * Account updateManyAndReturn
1347
- */
1348
795
  export type AccountUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1349
- /**
1350
- * Select specific fields to fetch from the Account
1351
- */
1352
796
  select?: Prisma.AccountSelectUpdateManyAndReturn<ExtArgs> | null;
1353
- /**
1354
- * Omit specific fields from the Account
1355
- */
1356
797
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1357
- /**
1358
- * The data used to update Accounts.
1359
- */
1360
798
  data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyInput>;
1361
- /**
1362
- * Filter which Accounts to update
1363
- */
1364
799
  where?: Prisma.AccountWhereInput;
1365
- /**
1366
- * Limit how many Accounts to update.
1367
- */
1368
800
  limit?: number;
1369
- /**
1370
- * Choose, which related nodes to fetch as well
1371
- */
1372
801
  include?: Prisma.AccountIncludeUpdateManyAndReturn<ExtArgs> | null;
1373
802
  };
1374
- /**
1375
- * Account upsert
1376
- */
1377
803
  export type AccountUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1378
- /**
1379
- * Select specific fields to fetch from the Account
1380
- */
1381
804
  select?: Prisma.AccountSelect<ExtArgs> | null;
1382
- /**
1383
- * Omit specific fields from the Account
1384
- */
1385
805
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1386
- /**
1387
- * Choose, which related nodes to fetch as well
1388
- */
1389
806
  include?: Prisma.AccountInclude<ExtArgs> | null;
1390
- /**
1391
- * The filter to search for the Account to update in case it exists.
1392
- */
1393
807
  where: Prisma.AccountWhereUniqueInput;
1394
- /**
1395
- * In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
1396
- */
1397
808
  create: Prisma.XOR<Prisma.AccountCreateInput, Prisma.AccountUncheckedCreateInput>;
1398
- /**
1399
- * In case the Account was found with the provided `where` argument, update it with this data.
1400
- */
1401
809
  update: Prisma.XOR<Prisma.AccountUpdateInput, Prisma.AccountUncheckedUpdateInput>;
1402
810
  };
1403
- /**
1404
- * Account delete
1405
- */
1406
811
  export type AccountDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1407
- /**
1408
- * Select specific fields to fetch from the Account
1409
- */
1410
812
  select?: Prisma.AccountSelect<ExtArgs> | null;
1411
- /**
1412
- * Omit specific fields from the Account
1413
- */
1414
813
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1415
- /**
1416
- * Choose, which related nodes to fetch as well
1417
- */
1418
814
  include?: Prisma.AccountInclude<ExtArgs> | null;
1419
- /**
1420
- * Filter which Account to delete.
1421
- */
1422
815
  where: Prisma.AccountWhereUniqueInput;
1423
816
  };
1424
- /**
1425
- * Account deleteMany
1426
- */
1427
817
  export type AccountDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1428
- /**
1429
- * Filter which Accounts to delete
1430
- */
1431
818
  where?: Prisma.AccountWhereInput;
1432
- /**
1433
- * Limit how many Accounts to delete.
1434
- */
1435
819
  limit?: number;
1436
820
  };
1437
- /**
1438
- * Account without action
1439
- */
1440
821
  export type AccountDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1441
- /**
1442
- * Select specific fields to fetch from the Account
1443
- */
1444
822
  select?: Prisma.AccountSelect<ExtArgs> | null;
1445
- /**
1446
- * Omit specific fields from the Account
1447
- */
1448
823
  omit?: Prisma.AccountOmit<ExtArgs> | null;
1449
- /**
1450
- * Choose, which related nodes to fetch as well
1451
- */
1452
824
  include?: Prisma.AccountInclude<ExtArgs> | null;
1453
825
  };
1454
826
  export {};