@optimatech88/titomeet-shared-lib 1.0.55 → 1.1.0

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 (404) hide show
  1. package/.env +1 -0
  2. package/dist/auth/admin.middleware.d.ts +1 -1
  3. package/dist/auth/admin.middleware.d.ts.map +1 -1
  4. package/dist/auth/admin.middleware.js +7 -11
  5. package/dist/auth/admin.middleware.js.map +1 -1
  6. package/dist/auth/auth.guard.js +41 -41
  7. package/dist/auth/auth.guard.js.map +1 -1
  8. package/dist/auth/auth.module.js +8 -11
  9. package/dist/auth/auth.module.js.map +1 -1
  10. package/dist/cache/cache.module.js +12 -18
  11. package/dist/cache/cache.module.js.map +1 -1
  12. package/dist/cache/cache.service.js +8 -10
  13. package/dist/cache/cache.service.js.map +1 -1
  14. package/dist/generated/prisma/client.d.ts +33 -0
  15. package/dist/generated/prisma/client.d.ts.map +1 -0
  16. package/dist/generated/prisma/client.js +10 -0
  17. package/dist/generated/prisma/client.js.map +1 -0
  18. package/dist/generated/prisma/commonInputTypes.d.ts +966 -0
  19. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
  20. package/dist/generated/prisma/commonInputTypes.js +2 -0
  21. package/dist/generated/prisma/commonInputTypes.js.map +1 -0
  22. package/dist/generated/prisma/enums.d.ts +111 -0
  23. package/dist/generated/prisma/enums.d.ts.map +1 -0
  24. package/dist/generated/prisma/enums.js +93 -0
  25. package/dist/generated/prisma/enums.js.map +1 -0
  26. package/dist/generated/prisma/internal/class.d.ts +105 -0
  27. package/dist/generated/prisma/internal/class.d.ts.map +1 -0
  28. package/dist/generated/prisma/internal/class.js +39 -0
  29. package/dist/generated/prisma/internal/class.js.map +1 -0
  30. package/dist/generated/prisma/internal/prismaNamespace.d.ts +2431 -0
  31. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
  32. package/dist/generated/prisma/internal/prismaNamespace.js +338 -0
  33. package/dist/generated/prisma/internal/prismaNamespace.js.map +1 -0
  34. package/dist/generated/prisma/models/Account.d.ts +582 -0
  35. package/dist/generated/prisma/models/Account.d.ts.map +1 -0
  36. package/dist/generated/prisma/models/Account.js +2 -0
  37. package/dist/generated/prisma/models/Account.js.map +1 -0
  38. package/dist/generated/prisma/models/Address.d.ts +930 -0
  39. package/dist/generated/prisma/models/Address.d.ts.map +1 -0
  40. package/dist/generated/prisma/models/Address.js +2 -0
  41. package/dist/generated/prisma/models/Address.js.map +1 -0
  42. package/dist/generated/prisma/models/Chat.d.ts +788 -0
  43. package/dist/generated/prisma/models/Chat.d.ts.map +1 -0
  44. package/dist/generated/prisma/models/Chat.js +2 -0
  45. package/dist/generated/prisma/models/Chat.js.map +1 -0
  46. package/dist/generated/prisma/models/ChatUser.d.ts +648 -0
  47. package/dist/generated/prisma/models/ChatUser.d.ts.map +1 -0
  48. package/dist/generated/prisma/models/ChatUser.js +2 -0
  49. package/dist/generated/prisma/models/ChatUser.js.map +1 -0
  50. package/dist/generated/prisma/models/Country.d.ts +543 -0
  51. package/dist/generated/prisma/models/Country.d.ts.map +1 -0
  52. package/dist/generated/prisma/models/Country.js +2 -0
  53. package/dist/generated/prisma/models/Country.js.map +1 -0
  54. package/dist/generated/prisma/models/Event.d.ts +3206 -0
  55. package/dist/generated/prisma/models/Event.d.ts.map +1 -0
  56. package/dist/generated/prisma/models/Event.js +2 -0
  57. package/dist/generated/prisma/models/Event.js.map +1 -0
  58. package/dist/generated/prisma/models/EventCategory.d.ts +1004 -0
  59. package/dist/generated/prisma/models/EventCategory.d.ts.map +1 -0
  60. package/dist/generated/prisma/models/EventCategory.js +2 -0
  61. package/dist/generated/prisma/models/EventCategory.js.map +1 -0
  62. package/dist/generated/prisma/models/EventPrice.d.ts +798 -0
  63. package/dist/generated/prisma/models/EventPrice.d.ts.map +1 -0
  64. package/dist/generated/prisma/models/EventPrice.js +2 -0
  65. package/dist/generated/prisma/models/EventPrice.js.map +1 -0
  66. package/dist/generated/prisma/models/Favorite.d.ts +648 -0
  67. package/dist/generated/prisma/models/Favorite.d.ts.map +1 -0
  68. package/dist/generated/prisma/models/Favorite.js +2 -0
  69. package/dist/generated/prisma/models/Favorite.js.map +1 -0
  70. package/dist/generated/prisma/models/Feedback.d.ts +682 -0
  71. package/dist/generated/prisma/models/Feedback.d.ts.map +1 -0
  72. package/dist/generated/prisma/models/Feedback.js +2 -0
  73. package/dist/generated/prisma/models/Feedback.js.map +1 -0
  74. package/dist/generated/prisma/models/Message.d.ts +724 -0
  75. package/dist/generated/prisma/models/Message.d.ts.map +1 -0
  76. package/dist/generated/prisma/models/Message.js +2 -0
  77. package/dist/generated/prisma/models/Message.js.map +1 -0
  78. package/dist/generated/prisma/models/Newsletter.d.ts +404 -0
  79. package/dist/generated/prisma/models/Newsletter.d.ts.map +1 -0
  80. package/dist/generated/prisma/models/Newsletter.js +2 -0
  81. package/dist/generated/prisma/models/Newsletter.js.map +1 -0
  82. package/dist/generated/prisma/models/Notification.d.ts +775 -0
  83. package/dist/generated/prisma/models/Notification.d.ts.map +1 -0
  84. package/dist/generated/prisma/models/Notification.js +2 -0
  85. package/dist/generated/prisma/models/Notification.js.map +1 -0
  86. package/dist/generated/prisma/models/Order.d.ts +1009 -0
  87. package/dist/generated/prisma/models/Order.d.ts.map +1 -0
  88. package/dist/generated/prisma/models/Order.js +2 -0
  89. package/dist/generated/prisma/models/Order.js.map +1 -0
  90. package/dist/generated/prisma/models/OrderItem.d.ts +806 -0
  91. package/dist/generated/prisma/models/OrderItem.d.ts.map +1 -0
  92. package/dist/generated/prisma/models/OrderItem.js +2 -0
  93. package/dist/generated/prisma/models/OrderItem.js.map +1 -0
  94. package/dist/generated/prisma/models/Pricing.d.ts +739 -0
  95. package/dist/generated/prisma/models/Pricing.d.ts.map +1 -0
  96. package/dist/generated/prisma/models/Pricing.js +2 -0
  97. package/dist/generated/prisma/models/Pricing.js.map +1 -0
  98. package/dist/generated/prisma/models/Provider.d.ts +1650 -0
  99. package/dist/generated/prisma/models/Provider.d.ts.map +1 -0
  100. package/dist/generated/prisma/models/Provider.js +2 -0
  101. package/dist/generated/prisma/models/Provider.js.map +1 -0
  102. package/dist/generated/prisma/models/ProviderCategory.d.ts +830 -0
  103. package/dist/generated/prisma/models/ProviderCategory.d.ts.map +1 -0
  104. package/dist/generated/prisma/models/ProviderCategory.js +2 -0
  105. package/dist/generated/prisma/models/ProviderCategory.js.map +1 -0
  106. package/dist/generated/prisma/models/ProviderOnEvent.d.ts +693 -0
  107. package/dist/generated/prisma/models/ProviderOnEvent.d.ts.map +1 -0
  108. package/dist/generated/prisma/models/ProviderOnEvent.js +2 -0
  109. package/dist/generated/prisma/models/ProviderOnEvent.js.map +1 -0
  110. package/dist/generated/prisma/models/Report.d.ts +689 -0
  111. package/dist/generated/prisma/models/Report.d.ts.map +1 -0
  112. package/dist/generated/prisma/models/Report.js +2 -0
  113. package/dist/generated/prisma/models/Report.js.map +1 -0
  114. package/dist/generated/prisma/models/Review.d.ts +758 -0
  115. package/dist/generated/prisma/models/Review.d.ts.map +1 -0
  116. package/dist/generated/prisma/models/Review.js +2 -0
  117. package/dist/generated/prisma/models/Review.js.map +1 -0
  118. package/dist/generated/prisma/models/Transaction.d.ts +894 -0
  119. package/dist/generated/prisma/models/Transaction.d.ts.map +1 -0
  120. package/dist/generated/prisma/models/Transaction.js +2 -0
  121. package/dist/generated/prisma/models/Transaction.js.map +1 -0
  122. package/dist/generated/prisma/models/User.d.ts +2966 -0
  123. package/dist/generated/prisma/models/User.d.ts.map +1 -0
  124. package/dist/generated/prisma/models/User.js +2 -0
  125. package/dist/generated/prisma/models/User.js.map +1 -0
  126. package/dist/generated/prisma/models/UserInterests.d.ts +605 -0
  127. package/dist/generated/prisma/models/UserInterests.d.ts.map +1 -0
  128. package/dist/generated/prisma/models/UserInterests.js +2 -0
  129. package/dist/generated/prisma/models/UserInterests.js.map +1 -0
  130. package/dist/generated/prisma/models.d.ts +26 -0
  131. package/dist/generated/prisma/models.d.ts.map +1 -0
  132. package/dist/generated/prisma/models.js +2 -0
  133. package/dist/generated/prisma/models.js.map +1 -0
  134. package/dist/index.d.ts +1 -1
  135. package/dist/index.d.ts.map +1 -1
  136. package/dist/index.js +15 -51
  137. package/dist/index.js.map +1 -1
  138. package/dist/prisma/prisma.module.js +8 -11
  139. package/dist/prisma/prisma.module.js.map +1 -1
  140. package/dist/prisma/prisma.service.d.ts +2 -1
  141. package/dist/prisma/prisma.service.d.ts.map +1 -1
  142. package/dist/prisma/prisma.service.js +17 -9
  143. package/dist/prisma/prisma.service.js.map +1 -1
  144. package/dist/prisma/seed.js +2 -4
  145. package/dist/prisma/seed.js.map +1 -1
  146. package/dist/src/auth/admin.middleware.d.ts +11 -0
  147. package/dist/src/auth/admin.middleware.d.ts.map +1 -0
  148. package/dist/src/auth/admin.middleware.js +22 -0
  149. package/dist/src/auth/admin.middleware.js.map +1 -0
  150. package/dist/src/auth/auth.guard.d.ts +25 -0
  151. package/dist/src/auth/auth.guard.d.ts.map +1 -0
  152. package/dist/src/auth/auth.guard.js +137 -0
  153. package/dist/src/auth/auth.guard.js.map +1 -0
  154. package/dist/src/auth/auth.module.d.ts +9 -0
  155. package/dist/src/auth/auth.module.d.ts.map +1 -0
  156. package/dist/src/auth/auth.module.js +30 -0
  157. package/dist/src/auth/auth.module.js.map +1 -0
  158. package/dist/src/cache/cache.module.d.ts +5 -0
  159. package/dist/src/cache/cache.module.d.ts.map +1 -0
  160. package/dist/src/cache/cache.module.js +35 -0
  161. package/dist/src/cache/cache.module.js.map +1 -0
  162. package/dist/src/cache/cache.service.d.ts +9 -0
  163. package/dist/src/cache/cache.service.d.ts.map +1 -0
  164. package/dist/src/cache/cache.service.js +36 -0
  165. package/dist/src/cache/cache.service.js.map +1 -0
  166. package/dist/src/index.d.ts +16 -0
  167. package/dist/src/index.d.ts.map +1 -0
  168. package/dist/src/index.js +16 -0
  169. package/dist/src/index.js.map +1 -0
  170. package/dist/src/prisma/prisma.module.d.ts +3 -0
  171. package/dist/src/prisma/prisma.module.d.ts.map +1 -0
  172. package/dist/src/prisma/prisma.module.js +19 -0
  173. package/dist/src/prisma/prisma.module.js.map +1 -0
  174. package/dist/src/prisma/prisma.service.d.ts +8 -0
  175. package/dist/src/prisma/prisma.service.d.ts.map +1 -0
  176. package/dist/src/prisma/prisma.service.js +32 -0
  177. package/dist/src/prisma/prisma.service.js.map +1 -0
  178. package/dist/src/prisma/seed.d.ts +2 -0
  179. package/dist/src/prisma/seed.d.ts.map +1 -0
  180. package/dist/src/prisma/seed.js +75 -0
  181. package/dist/src/prisma/seed.js.map +1 -0
  182. package/dist/src/types/index.d.ts +12 -0
  183. package/dist/src/types/index.d.ts.map +1 -0
  184. package/dist/src/types/index.js +2 -0
  185. package/dist/src/types/index.js.map +1 -0
  186. package/dist/src/utils/api/endpoints.d.ts +7 -0
  187. package/dist/src/utils/api/endpoints.d.ts.map +1 -0
  188. package/dist/src/utils/api/endpoints.js +7 -0
  189. package/dist/src/utils/api/endpoints.js.map +1 -0
  190. package/dist/src/utils/constants.d.ts +3 -0
  191. package/dist/src/utils/constants.d.ts.map +1 -0
  192. package/dist/src/utils/constants.js +12 -0
  193. package/dist/src/utils/constants.js.map +1 -0
  194. package/dist/src/utils/events.d.ts +7 -0
  195. package/dist/src/utils/events.d.ts.map +1 -0
  196. package/dist/src/utils/events.js +7 -0
  197. package/dist/src/utils/events.js.map +1 -0
  198. package/dist/src/utils/index.d.ts +8 -0
  199. package/dist/src/utils/index.d.ts.map +1 -0
  200. package/dist/src/utils/index.js +9 -0
  201. package/dist/src/utils/index.js.map +1 -0
  202. package/dist/types/index.js +1 -2
  203. package/dist/utils/api/endpoints.js +3 -6
  204. package/dist/utils/api/endpoints.js.map +1 -1
  205. package/dist/utils/constants.js +2 -5
  206. package/dist/utils/constants.js.map +1 -1
  207. package/dist/utils/events.js +1 -4
  208. package/dist/utils/events.js.map +1 -1
  209. package/dist/utils/index.js +2 -7
  210. package/dist/utils/index.js.map +1 -1
  211. package/generated/prisma/browser.ts +139 -0
  212. package/generated/prisma/client/browser.ts +139 -0
  213. package/generated/prisma/client/client.ts +163 -0
  214. package/generated/prisma/client/commonInputTypes.ts +1102 -0
  215. package/generated/prisma/client/enums.ts +173 -0
  216. package/generated/prisma/client/internal/class.ts +434 -0
  217. package/generated/prisma/client/internal/prismaNamespace.ts +3141 -0
  218. package/generated/prisma/client/internal/prismaNamespaceBrowser.ts +489 -0
  219. package/generated/prisma/client/models/Account.ts +1384 -0
  220. package/generated/prisma/client/models/Address.ts +1791 -0
  221. package/generated/prisma/client/models/Chat.ts +1676 -0
  222. package/generated/prisma/client/models/ChatUser.ts +1465 -0
  223. package/generated/prisma/client/models/Country.ts +1361 -0
  224. package/generated/prisma/client/models/Event.ts +4258 -0
  225. package/generated/prisma/client/models/EventCategory.ts +1919 -0
  226. package/generated/prisma/client/models/EventPrice.ts +1657 -0
  227. package/generated/prisma/client/models/Favorite.ts +1465 -0
  228. package/generated/prisma/client/models/Feedback.ts +1513 -0
  229. package/generated/prisma/client/models/Message.ts +1541 -0
  230. package/generated/prisma/client/models/Newsletter.ts +1153 -0
  231. package/generated/prisma/client/models/Notification.ts +1605 -0
  232. package/generated/prisma/client/models/Order.ts +1883 -0
  233. package/generated/prisma/client/models/OrderItem.ts +1641 -0
  234. package/generated/prisma/client/models/Pricing.ts +1576 -0
  235. package/generated/prisma/client/models/Provider.ts +2577 -0
  236. package/generated/prisma/client/models/ProviderCategory.ts +1712 -0
  237. package/generated/prisma/client/models/ProviderOnEvent.ts +1510 -0
  238. package/generated/prisma/client/models/Report.ts +1506 -0
  239. package/generated/prisma/client/models/Review.ts +1591 -0
  240. package/generated/prisma/client/models/Transaction.ts +1741 -0
  241. package/generated/prisma/client/models/User.ts +4124 -0
  242. package/generated/prisma/client/models/UserInterests.ts +1447 -0
  243. package/generated/prisma/client/models.ts +35 -0
  244. package/generated/prisma/client.d.ts +33 -0
  245. package/generated/prisma/client.d.ts.map +1 -0
  246. package/generated/prisma/client.js +10 -0
  247. package/generated/prisma/client.js.map +1 -0
  248. package/generated/prisma/client.ts +163 -0
  249. package/generated/prisma/commonInputTypes.d.ts +966 -0
  250. package/generated/prisma/commonInputTypes.d.ts.map +1 -0
  251. package/generated/prisma/commonInputTypes.js +2 -0
  252. package/generated/prisma/commonInputTypes.js.map +1 -0
  253. package/generated/prisma/commonInputTypes.ts +1102 -0
  254. package/generated/prisma/enums.d.ts +111 -0
  255. package/generated/prisma/enums.d.ts.map +1 -0
  256. package/generated/prisma/enums.js +93 -0
  257. package/generated/prisma/enums.js.map +1 -0
  258. package/generated/prisma/enums.ts +173 -0
  259. package/generated/prisma/internal/class.d.ts +105 -0
  260. package/generated/prisma/internal/class.d.ts.map +1 -0
  261. package/generated/prisma/internal/class.js +39 -0
  262. package/generated/prisma/internal/class.js.map +1 -0
  263. package/generated/prisma/internal/class.ts +434 -0
  264. package/generated/prisma/internal/prismaNamespace.d.ts +2431 -0
  265. package/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
  266. package/generated/prisma/internal/prismaNamespace.js +338 -0
  267. package/generated/prisma/internal/prismaNamespace.js.map +1 -0
  268. package/generated/prisma/internal/prismaNamespace.ts +3141 -0
  269. package/generated/prisma/internal/prismaNamespaceBrowser.ts +489 -0
  270. package/generated/prisma/models/Account.d.ts +582 -0
  271. package/generated/prisma/models/Account.d.ts.map +1 -0
  272. package/generated/prisma/models/Account.js +2 -0
  273. package/generated/prisma/models/Account.js.map +1 -0
  274. package/generated/prisma/models/Account.ts +1384 -0
  275. package/generated/prisma/models/Address.d.ts +930 -0
  276. package/generated/prisma/models/Address.d.ts.map +1 -0
  277. package/generated/prisma/models/Address.js +2 -0
  278. package/generated/prisma/models/Address.js.map +1 -0
  279. package/generated/prisma/models/Address.ts +1791 -0
  280. package/generated/prisma/models/Chat.d.ts +788 -0
  281. package/generated/prisma/models/Chat.d.ts.map +1 -0
  282. package/generated/prisma/models/Chat.js +2 -0
  283. package/generated/prisma/models/Chat.js.map +1 -0
  284. package/generated/prisma/models/Chat.ts +1676 -0
  285. package/generated/prisma/models/ChatUser.d.ts +648 -0
  286. package/generated/prisma/models/ChatUser.d.ts.map +1 -0
  287. package/generated/prisma/models/ChatUser.js +2 -0
  288. package/generated/prisma/models/ChatUser.js.map +1 -0
  289. package/generated/prisma/models/ChatUser.ts +1465 -0
  290. package/generated/prisma/models/Country.d.ts +543 -0
  291. package/generated/prisma/models/Country.d.ts.map +1 -0
  292. package/generated/prisma/models/Country.js +2 -0
  293. package/generated/prisma/models/Country.js.map +1 -0
  294. package/generated/prisma/models/Country.ts +1361 -0
  295. package/generated/prisma/models/Event.d.ts +3206 -0
  296. package/generated/prisma/models/Event.d.ts.map +1 -0
  297. package/generated/prisma/models/Event.js +2 -0
  298. package/generated/prisma/models/Event.js.map +1 -0
  299. package/generated/prisma/models/Event.ts +4258 -0
  300. package/generated/prisma/models/EventCategory.d.ts +1004 -0
  301. package/generated/prisma/models/EventCategory.d.ts.map +1 -0
  302. package/generated/prisma/models/EventCategory.js +2 -0
  303. package/generated/prisma/models/EventCategory.js.map +1 -0
  304. package/generated/prisma/models/EventCategory.ts +1919 -0
  305. package/generated/prisma/models/EventPrice.d.ts +798 -0
  306. package/generated/prisma/models/EventPrice.d.ts.map +1 -0
  307. package/generated/prisma/models/EventPrice.js +2 -0
  308. package/generated/prisma/models/EventPrice.js.map +1 -0
  309. package/generated/prisma/models/EventPrice.ts +1657 -0
  310. package/generated/prisma/models/Favorite.d.ts +648 -0
  311. package/generated/prisma/models/Favorite.d.ts.map +1 -0
  312. package/generated/prisma/models/Favorite.js +2 -0
  313. package/generated/prisma/models/Favorite.js.map +1 -0
  314. package/generated/prisma/models/Favorite.ts +1465 -0
  315. package/generated/prisma/models/Feedback.d.ts +682 -0
  316. package/generated/prisma/models/Feedback.d.ts.map +1 -0
  317. package/generated/prisma/models/Feedback.js +2 -0
  318. package/generated/prisma/models/Feedback.js.map +1 -0
  319. package/generated/prisma/models/Feedback.ts +1513 -0
  320. package/generated/prisma/models/Message.d.ts +724 -0
  321. package/generated/prisma/models/Message.d.ts.map +1 -0
  322. package/generated/prisma/models/Message.js +2 -0
  323. package/generated/prisma/models/Message.js.map +1 -0
  324. package/generated/prisma/models/Message.ts +1541 -0
  325. package/generated/prisma/models/Newsletter.d.ts +404 -0
  326. package/generated/prisma/models/Newsletter.d.ts.map +1 -0
  327. package/generated/prisma/models/Newsletter.js +2 -0
  328. package/generated/prisma/models/Newsletter.js.map +1 -0
  329. package/generated/prisma/models/Newsletter.ts +1153 -0
  330. package/generated/prisma/models/Notification.d.ts +775 -0
  331. package/generated/prisma/models/Notification.d.ts.map +1 -0
  332. package/generated/prisma/models/Notification.js +2 -0
  333. package/generated/prisma/models/Notification.js.map +1 -0
  334. package/generated/prisma/models/Notification.ts +1605 -0
  335. package/generated/prisma/models/Order.d.ts +1009 -0
  336. package/generated/prisma/models/Order.d.ts.map +1 -0
  337. package/generated/prisma/models/Order.js +2 -0
  338. package/generated/prisma/models/Order.js.map +1 -0
  339. package/generated/prisma/models/Order.ts +1883 -0
  340. package/generated/prisma/models/OrderItem.d.ts +806 -0
  341. package/generated/prisma/models/OrderItem.d.ts.map +1 -0
  342. package/generated/prisma/models/OrderItem.js +2 -0
  343. package/generated/prisma/models/OrderItem.js.map +1 -0
  344. package/generated/prisma/models/OrderItem.ts +1641 -0
  345. package/generated/prisma/models/Pricing.d.ts +739 -0
  346. package/generated/prisma/models/Pricing.d.ts.map +1 -0
  347. package/generated/prisma/models/Pricing.js +2 -0
  348. package/generated/prisma/models/Pricing.js.map +1 -0
  349. package/generated/prisma/models/Pricing.ts +1576 -0
  350. package/generated/prisma/models/Provider.d.ts +1650 -0
  351. package/generated/prisma/models/Provider.d.ts.map +1 -0
  352. package/generated/prisma/models/Provider.js +2 -0
  353. package/generated/prisma/models/Provider.js.map +1 -0
  354. package/generated/prisma/models/Provider.ts +2577 -0
  355. package/generated/prisma/models/ProviderCategory.d.ts +830 -0
  356. package/generated/prisma/models/ProviderCategory.d.ts.map +1 -0
  357. package/generated/prisma/models/ProviderCategory.js +2 -0
  358. package/generated/prisma/models/ProviderCategory.js.map +1 -0
  359. package/generated/prisma/models/ProviderCategory.ts +1712 -0
  360. package/generated/prisma/models/ProviderOnEvent.d.ts +693 -0
  361. package/generated/prisma/models/ProviderOnEvent.d.ts.map +1 -0
  362. package/generated/prisma/models/ProviderOnEvent.js +2 -0
  363. package/generated/prisma/models/ProviderOnEvent.js.map +1 -0
  364. package/generated/prisma/models/ProviderOnEvent.ts +1510 -0
  365. package/generated/prisma/models/Report.d.ts +689 -0
  366. package/generated/prisma/models/Report.d.ts.map +1 -0
  367. package/generated/prisma/models/Report.js +2 -0
  368. package/generated/prisma/models/Report.js.map +1 -0
  369. package/generated/prisma/models/Report.ts +1506 -0
  370. package/generated/prisma/models/Review.d.ts +758 -0
  371. package/generated/prisma/models/Review.d.ts.map +1 -0
  372. package/generated/prisma/models/Review.js +2 -0
  373. package/generated/prisma/models/Review.js.map +1 -0
  374. package/generated/prisma/models/Review.ts +1591 -0
  375. package/generated/prisma/models/Transaction.d.ts +894 -0
  376. package/generated/prisma/models/Transaction.d.ts.map +1 -0
  377. package/generated/prisma/models/Transaction.js +2 -0
  378. package/generated/prisma/models/Transaction.js.map +1 -0
  379. package/generated/prisma/models/Transaction.ts +1741 -0
  380. package/generated/prisma/models/User.d.ts +2966 -0
  381. package/generated/prisma/models/User.d.ts.map +1 -0
  382. package/generated/prisma/models/User.js +2 -0
  383. package/generated/prisma/models/User.js.map +1 -0
  384. package/generated/prisma/models/User.ts +4124 -0
  385. package/generated/prisma/models/UserInterests.d.ts +605 -0
  386. package/generated/prisma/models/UserInterests.d.ts.map +1 -0
  387. package/generated/prisma/models/UserInterests.js +2 -0
  388. package/generated/prisma/models/UserInterests.js.map +1 -0
  389. package/generated/prisma/models/UserInterests.ts +1447 -0
  390. package/generated/prisma/models.d.ts +26 -0
  391. package/generated/prisma/models.d.ts.map +1 -0
  392. package/generated/prisma/models.js +2 -0
  393. package/generated/prisma/models.js.map +1 -0
  394. package/generated/prisma/models.ts +35 -0
  395. package/package.json +26 -20
  396. package/prisma/schema.prisma +3 -2
  397. package/prisma.config.ts +13 -0
  398. package/src/auth/admin.middleware.ts +1 -1
  399. package/src/auth/auth.guard.ts +10 -4
  400. package/src/auth/auth.module.ts +1 -1
  401. package/src/index.ts +1 -1
  402. package/src/prisma/prisma.service.ts +10 -1
  403. package/src/prisma/seed.ts +7 -2
  404. package/tsconfig.json +12 -7
@@ -0,0 +1,1384 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `Account` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model Account
17
+ *
18
+ */
19
+ export type AccountModel = runtime.Types.Result.DefaultSelection<Prisma.$AccountPayload>
20
+
21
+ export type AggregateAccount = {
22
+ _count: AccountCountAggregateOutputType | null
23
+ _min: AccountMinAggregateOutputType | null
24
+ _max: AccountMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type AccountMinAggregateOutputType = {
28
+ id: string | null
29
+ refreshToken: string | null
30
+ expiresAt: Date | null
31
+ userId: string | null
32
+ type: $Enums.AccountType | null
33
+ reference: string | null
34
+ }
35
+
36
+ export type AccountMaxAggregateOutputType = {
37
+ id: string | null
38
+ refreshToken: string | null
39
+ expiresAt: Date | null
40
+ userId: string | null
41
+ type: $Enums.AccountType | null
42
+ reference: string | null
43
+ }
44
+
45
+ export type AccountCountAggregateOutputType = {
46
+ id: number
47
+ refreshToken: number
48
+ expiresAt: number
49
+ userId: number
50
+ type: number
51
+ reference: number
52
+ _all: number
53
+ }
54
+
55
+
56
+ export type AccountMinAggregateInputType = {
57
+ id?: true
58
+ refreshToken?: true
59
+ expiresAt?: true
60
+ userId?: true
61
+ type?: true
62
+ reference?: true
63
+ }
64
+
65
+ export type AccountMaxAggregateInputType = {
66
+ id?: true
67
+ refreshToken?: true
68
+ expiresAt?: true
69
+ userId?: true
70
+ type?: true
71
+ reference?: true
72
+ }
73
+
74
+ export type AccountCountAggregateInputType = {
75
+ id?: true
76
+ refreshToken?: true
77
+ expiresAt?: true
78
+ userId?: true
79
+ type?: true
80
+ reference?: true
81
+ _all?: true
82
+ }
83
+
84
+ export type AccountAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
85
+ /**
86
+ * Filter which Account to aggregate.
87
+ */
88
+ where?: Prisma.AccountWhereInput
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
91
+ *
92
+ * Determine the order of Accounts to fetch.
93
+ */
94
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
97
+ *
98
+ * Sets the start position
99
+ */
100
+ cursor?: Prisma.AccountWhereUniqueInput
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
103
+ *
104
+ * Take `±n` Accounts from the position of the cursor.
105
+ */
106
+ take?: number
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
109
+ *
110
+ * Skip the first `n` Accounts.
111
+ */
112
+ skip?: number
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Count returned Accounts
117
+ **/
118
+ _count?: true | AccountCountAggregateInputType
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
121
+ *
122
+ * Select which fields to find the minimum value
123
+ **/
124
+ _min?: AccountMinAggregateInputType
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
+ *
128
+ * Select which fields to find the maximum value
129
+ **/
130
+ _max?: AccountMaxAggregateInputType
131
+ }
132
+
133
+ export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
134
+ [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count'
135
+ ? T[P] extends true
136
+ ? number
137
+ : Prisma.GetScalarType<T[P], AggregateAccount[P]>
138
+ : Prisma.GetScalarType<T[P], AggregateAccount[P]>
139
+ }
140
+
141
+
142
+
143
+
144
+ export type AccountGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
145
+ where?: Prisma.AccountWhereInput
146
+ orderBy?: Prisma.AccountOrderByWithAggregationInput | Prisma.AccountOrderByWithAggregationInput[]
147
+ by: Prisma.AccountScalarFieldEnum[] | Prisma.AccountScalarFieldEnum
148
+ having?: Prisma.AccountScalarWhereWithAggregatesInput
149
+ take?: number
150
+ skip?: number
151
+ _count?: AccountCountAggregateInputType | true
152
+ _min?: AccountMinAggregateInputType
153
+ _max?: AccountMaxAggregateInputType
154
+ }
155
+
156
+ export type AccountGroupByOutputType = {
157
+ id: string
158
+ refreshToken: string
159
+ expiresAt: Date
160
+ userId: string
161
+ type: $Enums.AccountType
162
+ reference: string | null
163
+ _count: AccountCountAggregateOutputType | null
164
+ _min: AccountMinAggregateOutputType | null
165
+ _max: AccountMaxAggregateOutputType | null
166
+ }
167
+
168
+ export type GetAccountGroupByPayload<T extends AccountGroupByArgs> = Prisma.PrismaPromise<
169
+ Array<
170
+ Prisma.PickEnumerable<AccountGroupByOutputType, T['by']> &
171
+ {
172
+ [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count'
173
+ ? T[P] extends boolean
174
+ ? number
175
+ : Prisma.GetScalarType<T[P], AccountGroupByOutputType[P]>
176
+ : Prisma.GetScalarType<T[P], AccountGroupByOutputType[P]>
177
+ }
178
+ >
179
+ >
180
+
181
+
182
+
183
+ export type AccountWhereInput = {
184
+ AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
185
+ OR?: Prisma.AccountWhereInput[]
186
+ NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
187
+ id?: Prisma.StringFilter<"Account"> | string
188
+ refreshToken?: Prisma.StringFilter<"Account"> | string
189
+ expiresAt?: Prisma.DateTimeFilter<"Account"> | Date | string
190
+ userId?: Prisma.StringFilter<"Account"> | string
191
+ type?: Prisma.EnumAccountTypeFilter<"Account"> | $Enums.AccountType
192
+ reference?: Prisma.StringNullableFilter<"Account"> | string | null
193
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
194
+ }
195
+
196
+ export type AccountOrderByWithRelationInput = {
197
+ id?: Prisma.SortOrder
198
+ refreshToken?: Prisma.SortOrder
199
+ expiresAt?: Prisma.SortOrder
200
+ userId?: Prisma.SortOrder
201
+ type?: Prisma.SortOrder
202
+ reference?: Prisma.SortOrderInput | Prisma.SortOrder
203
+ user?: Prisma.UserOrderByWithRelationInput
204
+ }
205
+
206
+ export type AccountWhereUniqueInput = Prisma.AtLeast<{
207
+ id?: string
208
+ refreshToken?: string
209
+ AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
210
+ OR?: Prisma.AccountWhereInput[]
211
+ NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
212
+ expiresAt?: Prisma.DateTimeFilter<"Account"> | Date | string
213
+ userId?: Prisma.StringFilter<"Account"> | string
214
+ type?: Prisma.EnumAccountTypeFilter<"Account"> | $Enums.AccountType
215
+ reference?: Prisma.StringNullableFilter<"Account"> | string | null
216
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
217
+ }, "id" | "refreshToken">
218
+
219
+ export type AccountOrderByWithAggregationInput = {
220
+ id?: Prisma.SortOrder
221
+ refreshToken?: Prisma.SortOrder
222
+ expiresAt?: Prisma.SortOrder
223
+ userId?: Prisma.SortOrder
224
+ type?: Prisma.SortOrder
225
+ reference?: Prisma.SortOrderInput | Prisma.SortOrder
226
+ _count?: Prisma.AccountCountOrderByAggregateInput
227
+ _max?: Prisma.AccountMaxOrderByAggregateInput
228
+ _min?: Prisma.AccountMinOrderByAggregateInput
229
+ }
230
+
231
+ export type AccountScalarWhereWithAggregatesInput = {
232
+ AND?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[]
233
+ OR?: Prisma.AccountScalarWhereWithAggregatesInput[]
234
+ NOT?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[]
235
+ id?: Prisma.StringWithAggregatesFilter<"Account"> | string
236
+ refreshToken?: Prisma.StringWithAggregatesFilter<"Account"> | string
237
+ expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Account"> | Date | string
238
+ userId?: Prisma.StringWithAggregatesFilter<"Account"> | string
239
+ type?: Prisma.EnumAccountTypeWithAggregatesFilter<"Account"> | $Enums.AccountType
240
+ reference?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null
241
+ }
242
+
243
+ export type AccountCreateInput = {
244
+ id?: string
245
+ refreshToken: string
246
+ expiresAt: Date | string
247
+ type?: $Enums.AccountType
248
+ reference?: string | null
249
+ user: Prisma.UserCreateNestedOneWithoutAccountsInput
250
+ }
251
+
252
+ export type AccountUncheckedCreateInput = {
253
+ id?: string
254
+ refreshToken: string
255
+ expiresAt: Date | string
256
+ userId: string
257
+ type?: $Enums.AccountType
258
+ reference?: string | null
259
+ }
260
+
261
+ export type AccountUpdateInput = {
262
+ id?: Prisma.StringFieldUpdateOperationsInput | string
263
+ refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
264
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
265
+ type?: Prisma.EnumAccountTypeFieldUpdateOperationsInput | $Enums.AccountType
266
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
267
+ user?: Prisma.UserUpdateOneRequiredWithoutAccountsNestedInput
268
+ }
269
+
270
+ export type AccountUncheckedUpdateInput = {
271
+ id?: Prisma.StringFieldUpdateOperationsInput | string
272
+ refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
273
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
274
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
275
+ type?: Prisma.EnumAccountTypeFieldUpdateOperationsInput | $Enums.AccountType
276
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
277
+ }
278
+
279
+ export type AccountCreateManyInput = {
280
+ id?: string
281
+ refreshToken: string
282
+ expiresAt: Date | string
283
+ userId: string
284
+ type?: $Enums.AccountType
285
+ reference?: string | null
286
+ }
287
+
288
+ export type AccountUpdateManyMutationInput = {
289
+ id?: Prisma.StringFieldUpdateOperationsInput | string
290
+ refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
291
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
292
+ type?: Prisma.EnumAccountTypeFieldUpdateOperationsInput | $Enums.AccountType
293
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
294
+ }
295
+
296
+ export type AccountUncheckedUpdateManyInput = {
297
+ id?: Prisma.StringFieldUpdateOperationsInput | string
298
+ refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
299
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
300
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
301
+ type?: Prisma.EnumAccountTypeFieldUpdateOperationsInput | $Enums.AccountType
302
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
303
+ }
304
+
305
+ export type AccountListRelationFilter = {
306
+ every?: Prisma.AccountWhereInput
307
+ some?: Prisma.AccountWhereInput
308
+ none?: Prisma.AccountWhereInput
309
+ }
310
+
311
+ export type AccountOrderByRelationAggregateInput = {
312
+ _count?: Prisma.SortOrder
313
+ }
314
+
315
+ export type AccountCountOrderByAggregateInput = {
316
+ id?: Prisma.SortOrder
317
+ refreshToken?: Prisma.SortOrder
318
+ expiresAt?: Prisma.SortOrder
319
+ userId?: Prisma.SortOrder
320
+ type?: Prisma.SortOrder
321
+ reference?: Prisma.SortOrder
322
+ }
323
+
324
+ export type AccountMaxOrderByAggregateInput = {
325
+ id?: Prisma.SortOrder
326
+ refreshToken?: Prisma.SortOrder
327
+ expiresAt?: Prisma.SortOrder
328
+ userId?: Prisma.SortOrder
329
+ type?: Prisma.SortOrder
330
+ reference?: Prisma.SortOrder
331
+ }
332
+
333
+ export type AccountMinOrderByAggregateInput = {
334
+ id?: Prisma.SortOrder
335
+ refreshToken?: Prisma.SortOrder
336
+ expiresAt?: Prisma.SortOrder
337
+ userId?: Prisma.SortOrder
338
+ type?: Prisma.SortOrder
339
+ reference?: Prisma.SortOrder
340
+ }
341
+
342
+ export type AccountCreateNestedManyWithoutUserInput = {
343
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[]
344
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[]
345
+ createMany?: Prisma.AccountCreateManyUserInputEnvelope
346
+ connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
347
+ }
348
+
349
+ export type AccountUncheckedCreateNestedManyWithoutUserInput = {
350
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[]
351
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[]
352
+ createMany?: Prisma.AccountCreateManyUserInputEnvelope
353
+ connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
354
+ }
355
+
356
+ export type AccountUpdateManyWithoutUserNestedInput = {
357
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[]
358
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[]
359
+ upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[]
360
+ createMany?: Prisma.AccountCreateManyUserInputEnvelope
361
+ set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
362
+ disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
363
+ delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
364
+ connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
365
+ update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[]
366
+ updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[]
367
+ deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[]
368
+ }
369
+
370
+ export type AccountUncheckedUpdateManyWithoutUserNestedInput = {
371
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[]
372
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[]
373
+ upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[]
374
+ createMany?: Prisma.AccountCreateManyUserInputEnvelope
375
+ set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
376
+ disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
377
+ delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
378
+ connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
379
+ update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[]
380
+ updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[]
381
+ deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[]
382
+ }
383
+
384
+ export type EnumAccountTypeFieldUpdateOperationsInput = {
385
+ set?: $Enums.AccountType
386
+ }
387
+
388
+ export type AccountCreateWithoutUserInput = {
389
+ id?: string
390
+ refreshToken: string
391
+ expiresAt: Date | string
392
+ type?: $Enums.AccountType
393
+ reference?: string | null
394
+ }
395
+
396
+ export type AccountUncheckedCreateWithoutUserInput = {
397
+ id?: string
398
+ refreshToken: string
399
+ expiresAt: Date | string
400
+ type?: $Enums.AccountType
401
+ reference?: string | null
402
+ }
403
+
404
+ export type AccountCreateOrConnectWithoutUserInput = {
405
+ where: Prisma.AccountWhereUniqueInput
406
+ create: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput>
407
+ }
408
+
409
+ export type AccountCreateManyUserInputEnvelope = {
410
+ data: Prisma.AccountCreateManyUserInput | Prisma.AccountCreateManyUserInput[]
411
+ skipDuplicates?: boolean
412
+ }
413
+
414
+ export type AccountUpsertWithWhereUniqueWithoutUserInput = {
415
+ where: Prisma.AccountWhereUniqueInput
416
+ update: Prisma.XOR<Prisma.AccountUpdateWithoutUserInput, Prisma.AccountUncheckedUpdateWithoutUserInput>
417
+ create: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput>
418
+ }
419
+
420
+ export type AccountUpdateWithWhereUniqueWithoutUserInput = {
421
+ where: Prisma.AccountWhereUniqueInput
422
+ data: Prisma.XOR<Prisma.AccountUpdateWithoutUserInput, Prisma.AccountUncheckedUpdateWithoutUserInput>
423
+ }
424
+
425
+ export type AccountUpdateManyWithWhereWithoutUserInput = {
426
+ where: Prisma.AccountScalarWhereInput
427
+ data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyWithoutUserInput>
428
+ }
429
+
430
+ export type AccountScalarWhereInput = {
431
+ AND?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[]
432
+ OR?: Prisma.AccountScalarWhereInput[]
433
+ NOT?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[]
434
+ id?: Prisma.StringFilter<"Account"> | string
435
+ refreshToken?: Prisma.StringFilter<"Account"> | string
436
+ expiresAt?: Prisma.DateTimeFilter<"Account"> | Date | string
437
+ userId?: Prisma.StringFilter<"Account"> | string
438
+ type?: Prisma.EnumAccountTypeFilter<"Account"> | $Enums.AccountType
439
+ reference?: Prisma.StringNullableFilter<"Account"> | string | null
440
+ }
441
+
442
+ export type AccountCreateManyUserInput = {
443
+ id?: string
444
+ refreshToken: string
445
+ expiresAt: Date | string
446
+ type?: $Enums.AccountType
447
+ reference?: string | null
448
+ }
449
+
450
+ export type AccountUpdateWithoutUserInput = {
451
+ id?: Prisma.StringFieldUpdateOperationsInput | string
452
+ refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
453
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
454
+ type?: Prisma.EnumAccountTypeFieldUpdateOperationsInput | $Enums.AccountType
455
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
456
+ }
457
+
458
+ export type AccountUncheckedUpdateWithoutUserInput = {
459
+ id?: Prisma.StringFieldUpdateOperationsInput | string
460
+ refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
461
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
462
+ type?: Prisma.EnumAccountTypeFieldUpdateOperationsInput | $Enums.AccountType
463
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
464
+ }
465
+
466
+ export type AccountUncheckedUpdateManyWithoutUserInput = {
467
+ id?: Prisma.StringFieldUpdateOperationsInput | string
468
+ refreshToken?: Prisma.StringFieldUpdateOperationsInput | string
469
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
470
+ type?: Prisma.EnumAccountTypeFieldUpdateOperationsInput | $Enums.AccountType
471
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
472
+ }
473
+
474
+
475
+
476
+ export type AccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
477
+ id?: boolean
478
+ refreshToken?: boolean
479
+ expiresAt?: boolean
480
+ userId?: boolean
481
+ type?: boolean
482
+ reference?: boolean
483
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
484
+ }, ExtArgs["result"]["account"]>
485
+
486
+ export type AccountSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
487
+ id?: boolean
488
+ refreshToken?: boolean
489
+ expiresAt?: boolean
490
+ userId?: boolean
491
+ type?: boolean
492
+ reference?: boolean
493
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
494
+ }, ExtArgs["result"]["account"]>
495
+
496
+ export type AccountSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
497
+ id?: boolean
498
+ refreshToken?: boolean
499
+ expiresAt?: boolean
500
+ userId?: boolean
501
+ type?: boolean
502
+ reference?: boolean
503
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
504
+ }, ExtArgs["result"]["account"]>
505
+
506
+ export type AccountSelectScalar = {
507
+ id?: boolean
508
+ refreshToken?: boolean
509
+ expiresAt?: boolean
510
+ userId?: boolean
511
+ type?: boolean
512
+ reference?: boolean
513
+ }
514
+
515
+ export type AccountOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "refreshToken" | "expiresAt" | "userId" | "type" | "reference", ExtArgs["result"]["account"]>
516
+ export type AccountInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
517
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
518
+ }
519
+ export type AccountIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
520
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
521
+ }
522
+ export type AccountIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
523
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
524
+ }
525
+
526
+ export type $AccountPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
527
+ name: "Account"
528
+ objects: {
529
+ user: Prisma.$UserPayload<ExtArgs>
530
+ }
531
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
532
+ id: string
533
+ refreshToken: string
534
+ expiresAt: Date
535
+ userId: string
536
+ type: $Enums.AccountType
537
+ reference: string | null
538
+ }, ExtArgs["result"]["account"]>
539
+ composites: {}
540
+ }
541
+
542
+ export type AccountGetPayload<S extends boolean | null | undefined | AccountDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AccountPayload, S>
543
+
544
+ export type AccountCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
545
+ Omit<AccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
546
+ select?: AccountCountAggregateInputType | true
547
+ }
548
+
549
+ export interface AccountDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
550
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Account'], meta: { name: 'Account' } }
551
+ /**
552
+ * Find zero or one Account that matches the filter.
553
+ * @param {AccountFindUniqueArgs} args - Arguments to find a Account
554
+ * @example
555
+ * // Get one Account
556
+ * const account = await prisma.account.findUnique({
557
+ * where: {
558
+ * // ... provide filter here
559
+ * }
560
+ * })
561
+ */
562
+ 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>
563
+
564
+ /**
565
+ * Find one Account that matches the filter or throw an error with `error.code='P2025'`
566
+ * if no matches were found.
567
+ * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
568
+ * @example
569
+ * // Get one Account
570
+ * const account = await prisma.account.findUniqueOrThrow({
571
+ * where: {
572
+ * // ... provide filter here
573
+ * }
574
+ * })
575
+ */
576
+ 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>
577
+
578
+ /**
579
+ * Find the first Account that matches the filter.
580
+ * Note, that providing `undefined` is treated as the value not being there.
581
+ * Read more here: https://pris.ly/d/null-undefined
582
+ * @param {AccountFindFirstArgs} args - Arguments to find a Account
583
+ * @example
584
+ * // Get one Account
585
+ * const account = await prisma.account.findFirst({
586
+ * where: {
587
+ * // ... provide filter here
588
+ * }
589
+ * })
590
+ */
591
+ 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>
592
+
593
+ /**
594
+ * Find the first Account that matches the filter or
595
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
596
+ * Note, that providing `undefined` is treated as the value not being there.
597
+ * Read more here: https://pris.ly/d/null-undefined
598
+ * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
599
+ * @example
600
+ * // Get one Account
601
+ * const account = await prisma.account.findFirstOrThrow({
602
+ * where: {
603
+ * // ... provide filter here
604
+ * }
605
+ * })
606
+ */
607
+ 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>
608
+
609
+ /**
610
+ * Find zero or more Accounts that matches the filter.
611
+ * Note, that providing `undefined` is treated as the value not being there.
612
+ * Read more here: https://pris.ly/d/null-undefined
613
+ * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
614
+ * @example
615
+ * // Get all Accounts
616
+ * const accounts = await prisma.account.findMany()
617
+ *
618
+ * // Get first 10 Accounts
619
+ * const accounts = await prisma.account.findMany({ take: 10 })
620
+ *
621
+ * // Only select the `id`
622
+ * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } })
623
+ *
624
+ */
625
+ findMany<T extends AccountFindManyArgs>(args?: Prisma.SelectSubset<T, AccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
626
+
627
+ /**
628
+ * Create a Account.
629
+ * @param {AccountCreateArgs} args - Arguments to create a Account.
630
+ * @example
631
+ * // Create one Account
632
+ * const Account = await prisma.account.create({
633
+ * data: {
634
+ * // ... data to create a Account
635
+ * }
636
+ * })
637
+ *
638
+ */
639
+ 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>
640
+
641
+ /**
642
+ * Create many Accounts.
643
+ * @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
644
+ * @example
645
+ * // Create many Accounts
646
+ * const account = await prisma.account.createMany({
647
+ * data: [
648
+ * // ... provide data here
649
+ * ]
650
+ * })
651
+ *
652
+ */
653
+ createMany<T extends AccountCreateManyArgs>(args?: Prisma.SelectSubset<T, AccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
654
+
655
+ /**
656
+ * Create many Accounts and returns the data saved in the database.
657
+ * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
658
+ * @example
659
+ * // Create many Accounts
660
+ * const account = await prisma.account.createManyAndReturn({
661
+ * data: [
662
+ * // ... provide data here
663
+ * ]
664
+ * })
665
+ *
666
+ * // Create many Accounts and only return the `id`
667
+ * const accountWithIdOnly = await prisma.account.createManyAndReturn({
668
+ * select: { id: true },
669
+ * data: [
670
+ * // ... provide data here
671
+ * ]
672
+ * })
673
+ * Note, that providing `undefined` is treated as the value not being there.
674
+ * Read more here: https://pris.ly/d/null-undefined
675
+ *
676
+ */
677
+ createManyAndReturn<T extends AccountCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
678
+
679
+ /**
680
+ * Delete a Account.
681
+ * @param {AccountDeleteArgs} args - Arguments to delete one Account.
682
+ * @example
683
+ * // Delete one Account
684
+ * const Account = await prisma.account.delete({
685
+ * where: {
686
+ * // ... filter to delete one Account
687
+ * }
688
+ * })
689
+ *
690
+ */
691
+ 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>
692
+
693
+ /**
694
+ * Update one Account.
695
+ * @param {AccountUpdateArgs} args - Arguments to update one Account.
696
+ * @example
697
+ * // Update one Account
698
+ * const account = await prisma.account.update({
699
+ * where: {
700
+ * // ... provide filter here
701
+ * },
702
+ * data: {
703
+ * // ... provide data here
704
+ * }
705
+ * })
706
+ *
707
+ */
708
+ 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>
709
+
710
+ /**
711
+ * Delete zero or more Accounts.
712
+ * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
713
+ * @example
714
+ * // Delete a few Accounts
715
+ * const { count } = await prisma.account.deleteMany({
716
+ * where: {
717
+ * // ... provide filter here
718
+ * }
719
+ * })
720
+ *
721
+ */
722
+ deleteMany<T extends AccountDeleteManyArgs>(args?: Prisma.SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
723
+
724
+ /**
725
+ * Update zero or more Accounts.
726
+ * Note, that providing `undefined` is treated as the value not being there.
727
+ * Read more here: https://pris.ly/d/null-undefined
728
+ * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
729
+ * @example
730
+ * // Update many Accounts
731
+ * const account = await prisma.account.updateMany({
732
+ * where: {
733
+ * // ... provide filter here
734
+ * },
735
+ * data: {
736
+ * // ... provide data here
737
+ * }
738
+ * })
739
+ *
740
+ */
741
+ updateMany<T extends AccountUpdateManyArgs>(args: Prisma.SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
742
+
743
+ /**
744
+ * Update zero or more Accounts and returns the data updated in the database.
745
+ * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts.
746
+ * @example
747
+ * // Update many Accounts
748
+ * const account = await prisma.account.updateManyAndReturn({
749
+ * where: {
750
+ * // ... provide filter here
751
+ * },
752
+ * data: [
753
+ * // ... provide data here
754
+ * ]
755
+ * })
756
+ *
757
+ * // Update zero or more Accounts and only return the `id`
758
+ * const accountWithIdOnly = await prisma.account.updateManyAndReturn({
759
+ * select: { id: true },
760
+ * where: {
761
+ * // ... provide filter here
762
+ * },
763
+ * data: [
764
+ * // ... provide data here
765
+ * ]
766
+ * })
767
+ * Note, that providing `undefined` is treated as the value not being there.
768
+ * Read more here: https://pris.ly/d/null-undefined
769
+ *
770
+ */
771
+ updateManyAndReturn<T extends AccountUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
772
+
773
+ /**
774
+ * Create or update one Account.
775
+ * @param {AccountUpsertArgs} args - Arguments to update or create a Account.
776
+ * @example
777
+ * // Update or create a Account
778
+ * const account = await prisma.account.upsert({
779
+ * create: {
780
+ * // ... data to create a Account
781
+ * },
782
+ * update: {
783
+ * // ... in case it already exists, update
784
+ * },
785
+ * where: {
786
+ * // ... the filter for the Account we want to update
787
+ * }
788
+ * })
789
+ */
790
+ 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>
791
+
792
+
793
+ /**
794
+ * Count the number of Accounts.
795
+ * Note, that providing `undefined` is treated as the value not being there.
796
+ * Read more here: https://pris.ly/d/null-undefined
797
+ * @param {AccountCountArgs} args - Arguments to filter Accounts to count.
798
+ * @example
799
+ * // Count the number of Accounts
800
+ * const count = await prisma.account.count({
801
+ * where: {
802
+ * // ... the filter for the Accounts we want to count
803
+ * }
804
+ * })
805
+ **/
806
+ count<T extends AccountCountArgs>(
807
+ args?: Prisma.Subset<T, AccountCountArgs>,
808
+ ): Prisma.PrismaPromise<
809
+ T extends runtime.Types.Utils.Record<'select', any>
810
+ ? T['select'] extends true
811
+ ? number
812
+ : Prisma.GetScalarType<T['select'], AccountCountAggregateOutputType>
813
+ : number
814
+ >
815
+
816
+ /**
817
+ * Allows you to perform aggregations operations on a Account.
818
+ * Note, that providing `undefined` is treated as the value not being there.
819
+ * Read more here: https://pris.ly/d/null-undefined
820
+ * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
821
+ * @example
822
+ * // Ordered by age ascending
823
+ * // Where email contains prisma.io
824
+ * // Limited to the 10 users
825
+ * const aggregations = await prisma.user.aggregate({
826
+ * _avg: {
827
+ * age: true,
828
+ * },
829
+ * where: {
830
+ * email: {
831
+ * contains: "prisma.io",
832
+ * },
833
+ * },
834
+ * orderBy: {
835
+ * age: "asc",
836
+ * },
837
+ * take: 10,
838
+ * })
839
+ **/
840
+ aggregate<T extends AccountAggregateArgs>(args: Prisma.Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>
841
+
842
+ /**
843
+ * Group by Account.
844
+ * Note, that providing `undefined` is treated as the value not being there.
845
+ * Read more here: https://pris.ly/d/null-undefined
846
+ * @param {AccountGroupByArgs} args - Group by arguments.
847
+ * @example
848
+ * // Group by city, order by createdAt, get count
849
+ * const result = await prisma.user.groupBy({
850
+ * by: ['city', 'createdAt'],
851
+ * orderBy: {
852
+ * createdAt: true
853
+ * },
854
+ * _count: {
855
+ * _all: true
856
+ * },
857
+ * })
858
+ *
859
+ **/
860
+ groupBy<
861
+ T extends AccountGroupByArgs,
862
+ HasSelectOrTake extends Prisma.Or<
863
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
864
+ Prisma.Extends<'take', Prisma.Keys<T>>
865
+ >,
866
+ OrderByArg extends Prisma.True extends HasSelectOrTake
867
+ ? { orderBy: AccountGroupByArgs['orderBy'] }
868
+ : { orderBy?: AccountGroupByArgs['orderBy'] },
869
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
870
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
871
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
872
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
873
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
874
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
875
+ InputErrors extends ByEmpty extends Prisma.True
876
+ ? `Error: "by" must not be empty.`
877
+ : HavingValid extends Prisma.False
878
+ ? {
879
+ [P in HavingFields]: P extends ByFields
880
+ ? never
881
+ : P extends string
882
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
883
+ : [
884
+ Error,
885
+ 'Field ',
886
+ P,
887
+ ` in "having" needs to be provided in "by"`,
888
+ ]
889
+ }[HavingFields]
890
+ : 'take' extends Prisma.Keys<T>
891
+ ? 'orderBy' extends Prisma.Keys<T>
892
+ ? ByValid extends Prisma.True
893
+ ? {}
894
+ : {
895
+ [P in OrderFields]: P extends ByFields
896
+ ? never
897
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
898
+ }[OrderFields]
899
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
900
+ : 'skip' extends Prisma.Keys<T>
901
+ ? 'orderBy' extends Prisma.Keys<T>
902
+ ? ByValid extends Prisma.True
903
+ ? {}
904
+ : {
905
+ [P in OrderFields]: P extends ByFields
906
+ ? never
907
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
908
+ }[OrderFields]
909
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
910
+ : ByValid extends Prisma.True
911
+ ? {}
912
+ : {
913
+ [P in OrderFields]: P extends ByFields
914
+ ? never
915
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
916
+ }[OrderFields]
917
+ >(args: Prisma.SubsetIntersection<T, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
918
+ /**
919
+ * Fields of the Account model
920
+ */
921
+ readonly fields: AccountFieldRefs;
922
+ }
923
+
924
+ /**
925
+ * The delegate class that acts as a "Promise-like" for Account.
926
+ * Why is this prefixed with `Prisma__`?
927
+ * Because we want to prevent naming conflicts as mentioned in
928
+ * https://github.com/prisma/prisma-client-js/issues/707
929
+ */
930
+ export interface Prisma__AccountClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
931
+ readonly [Symbol.toStringTag]: "PrismaPromise"
932
+ 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>
933
+ /**
934
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
935
+ * @param onfulfilled The callback to execute when the Promise is resolved.
936
+ * @param onrejected The callback to execute when the Promise is rejected.
937
+ * @returns A Promise for the completion of which ever callback is executed.
938
+ */
939
+ 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>
940
+ /**
941
+ * Attaches a callback for only the rejection of the Promise.
942
+ * @param onrejected The callback to execute when the Promise is rejected.
943
+ * @returns A Promise for the completion of the callback.
944
+ */
945
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
946
+ /**
947
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
948
+ * resolved value cannot be modified from the callback.
949
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
950
+ * @returns A Promise for the completion of the callback.
951
+ */
952
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
953
+ }
954
+
955
+
956
+
957
+
958
+ /**
959
+ * Fields of the Account model
960
+ */
961
+ export interface AccountFieldRefs {
962
+ readonly id: Prisma.FieldRef<"Account", 'String'>
963
+ readonly refreshToken: Prisma.FieldRef<"Account", 'String'>
964
+ readonly expiresAt: Prisma.FieldRef<"Account", 'DateTime'>
965
+ readonly userId: Prisma.FieldRef<"Account", 'String'>
966
+ readonly type: Prisma.FieldRef<"Account", 'AccountType'>
967
+ readonly reference: Prisma.FieldRef<"Account", 'String'>
968
+ }
969
+
970
+
971
+ // Custom InputTypes
972
+ /**
973
+ * Account findUnique
974
+ */
975
+ export type AccountFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
976
+ /**
977
+ * Select specific fields to fetch from the Account
978
+ */
979
+ select?: Prisma.AccountSelect<ExtArgs> | null
980
+ /**
981
+ * Omit specific fields from the Account
982
+ */
983
+ omit?: Prisma.AccountOmit<ExtArgs> | null
984
+ /**
985
+ * Choose, which related nodes to fetch as well
986
+ */
987
+ include?: Prisma.AccountInclude<ExtArgs> | null
988
+ /**
989
+ * Filter, which Account to fetch.
990
+ */
991
+ where: Prisma.AccountWhereUniqueInput
992
+ }
993
+
994
+ /**
995
+ * Account findUniqueOrThrow
996
+ */
997
+ export type AccountFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
998
+ /**
999
+ * Select specific fields to fetch from the Account
1000
+ */
1001
+ select?: Prisma.AccountSelect<ExtArgs> | null
1002
+ /**
1003
+ * Omit specific fields from the Account
1004
+ */
1005
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1006
+ /**
1007
+ * Choose, which related nodes to fetch as well
1008
+ */
1009
+ include?: Prisma.AccountInclude<ExtArgs> | null
1010
+ /**
1011
+ * Filter, which Account to fetch.
1012
+ */
1013
+ where: Prisma.AccountWhereUniqueInput
1014
+ }
1015
+
1016
+ /**
1017
+ * Account findFirst
1018
+ */
1019
+ export type AccountFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1020
+ /**
1021
+ * Select specific fields to fetch from the Account
1022
+ */
1023
+ select?: Prisma.AccountSelect<ExtArgs> | null
1024
+ /**
1025
+ * Omit specific fields from the Account
1026
+ */
1027
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1028
+ /**
1029
+ * Choose, which related nodes to fetch as well
1030
+ */
1031
+ include?: Prisma.AccountInclude<ExtArgs> | null
1032
+ /**
1033
+ * Filter, which Account to fetch.
1034
+ */
1035
+ where?: Prisma.AccountWhereInput
1036
+ /**
1037
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1038
+ *
1039
+ * Determine the order of Accounts to fetch.
1040
+ */
1041
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
1042
+ /**
1043
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1044
+ *
1045
+ * Sets the position for searching for Accounts.
1046
+ */
1047
+ cursor?: Prisma.AccountWhereUniqueInput
1048
+ /**
1049
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1050
+ *
1051
+ * Take `±n` Accounts from the position of the cursor.
1052
+ */
1053
+ take?: number
1054
+ /**
1055
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1056
+ *
1057
+ * Skip the first `n` Accounts.
1058
+ */
1059
+ skip?: number
1060
+ /**
1061
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1062
+ *
1063
+ * Filter by unique combinations of Accounts.
1064
+ */
1065
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
1066
+ }
1067
+
1068
+ /**
1069
+ * Account findFirstOrThrow
1070
+ */
1071
+ export type AccountFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1072
+ /**
1073
+ * Select specific fields to fetch from the Account
1074
+ */
1075
+ select?: Prisma.AccountSelect<ExtArgs> | null
1076
+ /**
1077
+ * Omit specific fields from the Account
1078
+ */
1079
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1080
+ /**
1081
+ * Choose, which related nodes to fetch as well
1082
+ */
1083
+ include?: Prisma.AccountInclude<ExtArgs> | null
1084
+ /**
1085
+ * Filter, which Account to fetch.
1086
+ */
1087
+ where?: Prisma.AccountWhereInput
1088
+ /**
1089
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1090
+ *
1091
+ * Determine the order of Accounts to fetch.
1092
+ */
1093
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
1094
+ /**
1095
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1096
+ *
1097
+ * Sets the position for searching for Accounts.
1098
+ */
1099
+ cursor?: Prisma.AccountWhereUniqueInput
1100
+ /**
1101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1102
+ *
1103
+ * Take `±n` Accounts from the position of the cursor.
1104
+ */
1105
+ take?: number
1106
+ /**
1107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1108
+ *
1109
+ * Skip the first `n` Accounts.
1110
+ */
1111
+ skip?: number
1112
+ /**
1113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1114
+ *
1115
+ * Filter by unique combinations of Accounts.
1116
+ */
1117
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
1118
+ }
1119
+
1120
+ /**
1121
+ * Account findMany
1122
+ */
1123
+ export type AccountFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1124
+ /**
1125
+ * Select specific fields to fetch from the Account
1126
+ */
1127
+ select?: Prisma.AccountSelect<ExtArgs> | null
1128
+ /**
1129
+ * Omit specific fields from the Account
1130
+ */
1131
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1132
+ /**
1133
+ * Choose, which related nodes to fetch as well
1134
+ */
1135
+ include?: Prisma.AccountInclude<ExtArgs> | null
1136
+ /**
1137
+ * Filter, which Accounts to fetch.
1138
+ */
1139
+ where?: Prisma.AccountWhereInput
1140
+ /**
1141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1142
+ *
1143
+ * Determine the order of Accounts to fetch.
1144
+ */
1145
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
1146
+ /**
1147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1148
+ *
1149
+ * Sets the position for listing Accounts.
1150
+ */
1151
+ cursor?: Prisma.AccountWhereUniqueInput
1152
+ /**
1153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1154
+ *
1155
+ * Take `±n` Accounts from the position of the cursor.
1156
+ */
1157
+ take?: number
1158
+ /**
1159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1160
+ *
1161
+ * Skip the first `n` Accounts.
1162
+ */
1163
+ skip?: number
1164
+ /**
1165
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1166
+ *
1167
+ * Filter by unique combinations of Accounts.
1168
+ */
1169
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
1170
+ }
1171
+
1172
+ /**
1173
+ * Account create
1174
+ */
1175
+ export type AccountCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1176
+ /**
1177
+ * Select specific fields to fetch from the Account
1178
+ */
1179
+ select?: Prisma.AccountSelect<ExtArgs> | null
1180
+ /**
1181
+ * Omit specific fields from the Account
1182
+ */
1183
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1184
+ /**
1185
+ * Choose, which related nodes to fetch as well
1186
+ */
1187
+ include?: Prisma.AccountInclude<ExtArgs> | null
1188
+ /**
1189
+ * The data needed to create a Account.
1190
+ */
1191
+ data: Prisma.XOR<Prisma.AccountCreateInput, Prisma.AccountUncheckedCreateInput>
1192
+ }
1193
+
1194
+ /**
1195
+ * Account createMany
1196
+ */
1197
+ export type AccountCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1198
+ /**
1199
+ * The data used to create many Accounts.
1200
+ */
1201
+ data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[]
1202
+ skipDuplicates?: boolean
1203
+ }
1204
+
1205
+ /**
1206
+ * Account createManyAndReturn
1207
+ */
1208
+ export type AccountCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1209
+ /**
1210
+ * Select specific fields to fetch from the Account
1211
+ */
1212
+ select?: Prisma.AccountSelectCreateManyAndReturn<ExtArgs> | null
1213
+ /**
1214
+ * Omit specific fields from the Account
1215
+ */
1216
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1217
+ /**
1218
+ * The data used to create many Accounts.
1219
+ */
1220
+ data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[]
1221
+ skipDuplicates?: boolean
1222
+ /**
1223
+ * Choose, which related nodes to fetch as well
1224
+ */
1225
+ include?: Prisma.AccountIncludeCreateManyAndReturn<ExtArgs> | null
1226
+ }
1227
+
1228
+ /**
1229
+ * Account update
1230
+ */
1231
+ export type AccountUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1232
+ /**
1233
+ * Select specific fields to fetch from the Account
1234
+ */
1235
+ select?: Prisma.AccountSelect<ExtArgs> | null
1236
+ /**
1237
+ * Omit specific fields from the Account
1238
+ */
1239
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1240
+ /**
1241
+ * Choose, which related nodes to fetch as well
1242
+ */
1243
+ include?: Prisma.AccountInclude<ExtArgs> | null
1244
+ /**
1245
+ * The data needed to update a Account.
1246
+ */
1247
+ data: Prisma.XOR<Prisma.AccountUpdateInput, Prisma.AccountUncheckedUpdateInput>
1248
+ /**
1249
+ * Choose, which Account to update.
1250
+ */
1251
+ where: Prisma.AccountWhereUniqueInput
1252
+ }
1253
+
1254
+ /**
1255
+ * Account updateMany
1256
+ */
1257
+ export type AccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1258
+ /**
1259
+ * The data used to update Accounts.
1260
+ */
1261
+ data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyInput>
1262
+ /**
1263
+ * Filter which Accounts to update
1264
+ */
1265
+ where?: Prisma.AccountWhereInput
1266
+ /**
1267
+ * Limit how many Accounts to update.
1268
+ */
1269
+ limit?: number
1270
+ }
1271
+
1272
+ /**
1273
+ * Account updateManyAndReturn
1274
+ */
1275
+ export type AccountUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1276
+ /**
1277
+ * Select specific fields to fetch from the Account
1278
+ */
1279
+ select?: Prisma.AccountSelectUpdateManyAndReturn<ExtArgs> | null
1280
+ /**
1281
+ * Omit specific fields from the Account
1282
+ */
1283
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1284
+ /**
1285
+ * The data used to update Accounts.
1286
+ */
1287
+ data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyInput>
1288
+ /**
1289
+ * Filter which Accounts to update
1290
+ */
1291
+ where?: Prisma.AccountWhereInput
1292
+ /**
1293
+ * Limit how many Accounts to update.
1294
+ */
1295
+ limit?: number
1296
+ /**
1297
+ * Choose, which related nodes to fetch as well
1298
+ */
1299
+ include?: Prisma.AccountIncludeUpdateManyAndReturn<ExtArgs> | null
1300
+ }
1301
+
1302
+ /**
1303
+ * Account upsert
1304
+ */
1305
+ export type AccountUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1306
+ /**
1307
+ * Select specific fields to fetch from the Account
1308
+ */
1309
+ select?: Prisma.AccountSelect<ExtArgs> | null
1310
+ /**
1311
+ * Omit specific fields from the Account
1312
+ */
1313
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1314
+ /**
1315
+ * Choose, which related nodes to fetch as well
1316
+ */
1317
+ include?: Prisma.AccountInclude<ExtArgs> | null
1318
+ /**
1319
+ * The filter to search for the Account to update in case it exists.
1320
+ */
1321
+ where: Prisma.AccountWhereUniqueInput
1322
+ /**
1323
+ * In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
1324
+ */
1325
+ create: Prisma.XOR<Prisma.AccountCreateInput, Prisma.AccountUncheckedCreateInput>
1326
+ /**
1327
+ * In case the Account was found with the provided `where` argument, update it with this data.
1328
+ */
1329
+ update: Prisma.XOR<Prisma.AccountUpdateInput, Prisma.AccountUncheckedUpdateInput>
1330
+ }
1331
+
1332
+ /**
1333
+ * Account delete
1334
+ */
1335
+ export type AccountDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1336
+ /**
1337
+ * Select specific fields to fetch from the Account
1338
+ */
1339
+ select?: Prisma.AccountSelect<ExtArgs> | null
1340
+ /**
1341
+ * Omit specific fields from the Account
1342
+ */
1343
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1344
+ /**
1345
+ * Choose, which related nodes to fetch as well
1346
+ */
1347
+ include?: Prisma.AccountInclude<ExtArgs> | null
1348
+ /**
1349
+ * Filter which Account to delete.
1350
+ */
1351
+ where: Prisma.AccountWhereUniqueInput
1352
+ }
1353
+
1354
+ /**
1355
+ * Account deleteMany
1356
+ */
1357
+ export type AccountDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1358
+ /**
1359
+ * Filter which Accounts to delete
1360
+ */
1361
+ where?: Prisma.AccountWhereInput
1362
+ /**
1363
+ * Limit how many Accounts to delete.
1364
+ */
1365
+ limit?: number
1366
+ }
1367
+
1368
+ /**
1369
+ * Account without action
1370
+ */
1371
+ export type AccountDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1372
+ /**
1373
+ * Select specific fields to fetch from the Account
1374
+ */
1375
+ select?: Prisma.AccountSelect<ExtArgs> | null
1376
+ /**
1377
+ * Omit specific fields from the Account
1378
+ */
1379
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1380
+ /**
1381
+ * Choose, which related nodes to fetch as well
1382
+ */
1383
+ include?: Prisma.AccountInclude<ExtArgs> | null
1384
+ }