@shophost/rest-api 0.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 (430) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +69 -0
  3. package/global.d.ts +1 -0
  4. package/package.json +53 -0
  5. package/schemas.d.ts +1 -0
  6. package/schemas.js +2 -0
  7. package/schemas.ts +1 -0
  8. package/src/contract.d.ts +3853 -0
  9. package/src/contract.js +6 -0
  10. package/src/contract.js.map +1 -0
  11. package/src/contracts/cart.contract.d.ts +536 -0
  12. package/src/contracts/cart.contract.js +29 -0
  13. package/src/contracts/cart.contract.js.map +1 -0
  14. package/src/contracts/customers.contract.d.ts +903 -0
  15. package/src/contracts/customers.contract.js +119 -0
  16. package/src/contracts/customers.contract.js.map +1 -0
  17. package/src/contracts/files.contract.d.ts +152 -0
  18. package/src/contracts/files.contract.js +29 -0
  19. package/src/contracts/files.contract.js.map +1 -0
  20. package/src/contracts/health.contract.d.ts +38 -0
  21. package/src/contracts/health.contract.js +25 -0
  22. package/src/contracts/health.contract.js.map +1 -0
  23. package/src/contracts/index.d.ts +15466 -0
  24. package/src/contracts/index.js +32 -0
  25. package/src/contracts/index.js.map +1 -0
  26. package/src/contracts/location.contract.d.ts +127 -0
  27. package/src/contracts/location.contract.js +40 -0
  28. package/src/contracts/location.contract.js.map +1 -0
  29. package/src/contracts/manufacturers.contract.d.ts +931 -0
  30. package/src/contracts/manufacturers.contract.js +85 -0
  31. package/src/contracts/manufacturers.contract.js.map +1 -0
  32. package/src/contracts/orders.contract.d.ts +3910 -0
  33. package/src/contracts/orders.contract.js +92 -0
  34. package/src/contracts/orders.contract.js.map +1 -0
  35. package/src/contracts/organizations.contract.d.ts +2234 -0
  36. package/src/contracts/organizations.contract.js +71 -0
  37. package/src/contracts/organizations.contract.js.map +1 -0
  38. package/src/contracts/payment.contract.d.ts +64 -0
  39. package/src/contracts/payment.contract.js +20 -0
  40. package/src/contracts/payment.contract.js.map +1 -0
  41. package/src/contracts/product-categories.contract.d.ts +1172 -0
  42. package/src/contracts/product-categories.contract.js +103 -0
  43. package/src/contracts/product-categories.contract.js.map +1 -0
  44. package/src/contracts/products.contract.d.ts +3976 -0
  45. package/src/contracts/products.contract.js +128 -0
  46. package/src/contracts/products.contract.js.map +1 -0
  47. package/src/contracts/reservation.contract.d.ts +675 -0
  48. package/src/contracts/reservation.contract.js +141 -0
  49. package/src/contracts/reservation.contract.js.map +1 -0
  50. package/src/contracts/shipping-methods.contract.d.ts +1276 -0
  51. package/src/contracts/shipping-methods.contract.js +118 -0
  52. package/src/contracts/shipping-methods.contract.js.map +1 -0
  53. package/src/contracts/shipping.contract.d.ts +319 -0
  54. package/src/contracts/shipping.contract.js +42 -0
  55. package/src/contracts/shipping.contract.js.map +1 -0
  56. package/src/contracts/webhook.contract.d.ts +66 -0
  57. package/src/contracts/webhook.contract.js +28 -0
  58. package/src/contracts/webhook.contract.js.map +1 -0
  59. package/src/db/__generated__/client/client.d.ts +385 -0
  60. package/src/db/__generated__/client/client.js +44 -0
  61. package/src/db/__generated__/client/client.js.map +1 -0
  62. package/src/db/__generated__/client/commonInputTypes.d.ts +816 -0
  63. package/src/db/__generated__/client/commonInputTypes.js +10 -0
  64. package/src/db/__generated__/client/commonInputTypes.js.map +1 -0
  65. package/src/db/__generated__/client/enums.d.ts +204 -0
  66. package/src/db/__generated__/client/enums.js +199 -0
  67. package/src/db/__generated__/client/enums.js.map +1 -0
  68. package/src/db/__generated__/client/index.d.ts +1 -0
  69. package/src/db/__generated__/client/index.js +5 -0
  70. package/src/db/__generated__/client/index.js.map +1 -0
  71. package/src/db/__generated__/client/internal/class.d.ts +414 -0
  72. package/src/db/__generated__/client/internal/class.js +76 -0
  73. package/src/db/__generated__/client/internal/class.js.map +1 -0
  74. package/src/db/__generated__/client/internal/prismaNamespace.d.ts +3474 -0
  75. package/src/db/__generated__/client/internal/prismaNamespace.js +543 -0
  76. package/src/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
  77. package/src/db/__generated__/client/models/Account.d.ts +1459 -0
  78. package/src/db/__generated__/client/models/Account.js +2 -0
  79. package/src/db/__generated__/client/models/Account.js.map +1 -0
  80. package/src/db/__generated__/client/models/Address.d.ts +2337 -0
  81. package/src/db/__generated__/client/models/Address.js +2 -0
  82. package/src/db/__generated__/client/models/Address.js.map +1 -0
  83. package/src/db/__generated__/client/models/Campaign.d.ts +1469 -0
  84. package/src/db/__generated__/client/models/Campaign.js +2 -0
  85. package/src/db/__generated__/client/models/Campaign.js.map +1 -0
  86. package/src/db/__generated__/client/models/ClosingTimes.d.ts +1227 -0
  87. package/src/db/__generated__/client/models/ClosingTimes.js +2 -0
  88. package/src/db/__generated__/client/models/ClosingTimes.js.map +1 -0
  89. package/src/db/__generated__/client/models/File.d.ts +2670 -0
  90. package/src/db/__generated__/client/models/File.js +2 -0
  91. package/src/db/__generated__/client/models/File.js.map +1 -0
  92. package/src/db/__generated__/client/models/Invitation.d.ts +1363 -0
  93. package/src/db/__generated__/client/models/Invitation.js +2 -0
  94. package/src/db/__generated__/client/models/Invitation.js.map +1 -0
  95. package/src/db/__generated__/client/models/LegalEntity.d.ts +1572 -0
  96. package/src/db/__generated__/client/models/LegalEntity.js +2 -0
  97. package/src/db/__generated__/client/models/LegalEntity.js.map +1 -0
  98. package/src/db/__generated__/client/models/Manufacturer.d.ts +1746 -0
  99. package/src/db/__generated__/client/models/Manufacturer.js +2 -0
  100. package/src/db/__generated__/client/models/Manufacturer.js.map +1 -0
  101. package/src/db/__generated__/client/models/ManufacturerTranslation.d.ts +1286 -0
  102. package/src/db/__generated__/client/models/ManufacturerTranslation.js +2 -0
  103. package/src/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
  104. package/src/db/__generated__/client/models/Member.d.ts +1281 -0
  105. package/src/db/__generated__/client/models/Member.js +2 -0
  106. package/src/db/__generated__/client/models/Member.js.map +1 -0
  107. package/src/db/__generated__/client/models/Modifier.d.ts +1404 -0
  108. package/src/db/__generated__/client/models/Modifier.js +2 -0
  109. package/src/db/__generated__/client/models/Modifier.js.map +1 -0
  110. package/src/db/__generated__/client/models/ModifierGroup.d.ts +1469 -0
  111. package/src/db/__generated__/client/models/ModifierGroup.js +2 -0
  112. package/src/db/__generated__/client/models/ModifierGroup.js.map +1 -0
  113. package/src/db/__generated__/client/models/ModifierGroupTranslation.d.ts +1181 -0
  114. package/src/db/__generated__/client/models/ModifierGroupTranslation.js +2 -0
  115. package/src/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
  116. package/src/db/__generated__/client/models/OpeningTimes.d.ts +1227 -0
  117. package/src/db/__generated__/client/models/OpeningTimes.js +2 -0
  118. package/src/db/__generated__/client/models/OpeningTimes.js.map +1 -0
  119. package/src/db/__generated__/client/models/Order.d.ts +2820 -0
  120. package/src/db/__generated__/client/models/Order.js +2 -0
  121. package/src/db/__generated__/client/models/Order.js.map +1 -0
  122. package/src/db/__generated__/client/models/OrderItem.d.ts +1755 -0
  123. package/src/db/__generated__/client/models/OrderItem.js +2 -0
  124. package/src/db/__generated__/client/models/OrderItem.js.map +1 -0
  125. package/src/db/__generated__/client/models/OrderItemTranslation.d.ts +1181 -0
  126. package/src/db/__generated__/client/models/OrderItemTranslation.js +2 -0
  127. package/src/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
  128. package/src/db/__generated__/client/models/Organization.d.ts +3996 -0
  129. package/src/db/__generated__/client/models/Organization.js +2 -0
  130. package/src/db/__generated__/client/models/Organization.js.map +1 -0
  131. package/src/db/__generated__/client/models/OrganizationConfiguration.d.ts +1954 -0
  132. package/src/db/__generated__/client/models/OrganizationConfiguration.js +2 -0
  133. package/src/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
  134. package/src/db/__generated__/client/models/Payment.d.ts +1538 -0
  135. package/src/db/__generated__/client/models/Payment.js +2 -0
  136. package/src/db/__generated__/client/models/Payment.js.map +1 -0
  137. package/src/db/__generated__/client/models/PaymentSession.d.ts +1384 -0
  138. package/src/db/__generated__/client/models/PaymentSession.js +2 -0
  139. package/src/db/__generated__/client/models/PaymentSession.js.map +1 -0
  140. package/src/db/__generated__/client/models/Product.d.ts +3136 -0
  141. package/src/db/__generated__/client/models/Product.js +2 -0
  142. package/src/db/__generated__/client/models/Product.js.map +1 -0
  143. package/src/db/__generated__/client/models/ProductCategory.d.ts +1964 -0
  144. package/src/db/__generated__/client/models/ProductCategory.js +2 -0
  145. package/src/db/__generated__/client/models/ProductCategory.js.map +1 -0
  146. package/src/db/__generated__/client/models/ProductCategoryTranslation.d.ts +1321 -0
  147. package/src/db/__generated__/client/models/ProductCategoryTranslation.js +2 -0
  148. package/src/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
  149. package/src/db/__generated__/client/models/ProductSnapshot.d.ts +1389 -0
  150. package/src/db/__generated__/client/models/ProductSnapshot.js +2 -0
  151. package/src/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
  152. package/src/db/__generated__/client/models/ProductTranslation.d.ts +1321 -0
  153. package/src/db/__generated__/client/models/ProductTranslation.js +2 -0
  154. package/src/db/__generated__/client/models/ProductTranslation.js.map +1 -0
  155. package/src/db/__generated__/client/models/Reservation.d.ts +1665 -0
  156. package/src/db/__generated__/client/models/Reservation.js +2 -0
  157. package/src/db/__generated__/client/models/Reservation.js.map +1 -0
  158. package/src/db/__generated__/client/models/Session.d.ts +1316 -0
  159. package/src/db/__generated__/client/models/Session.js +2 -0
  160. package/src/db/__generated__/client/models/Session.js.map +1 -0
  161. package/src/db/__generated__/client/models/ShippingMethod.d.ts +1934 -0
  162. package/src/db/__generated__/client/models/ShippingMethod.js +2 -0
  163. package/src/db/__generated__/client/models/ShippingMethod.js.map +1 -0
  164. package/src/db/__generated__/client/models/ShippingZone.d.ts +1366 -0
  165. package/src/db/__generated__/client/models/ShippingZone.js +2 -0
  166. package/src/db/__generated__/client/models/ShippingZone.js.map +1 -0
  167. package/src/db/__generated__/client/models/User.d.ts +2201 -0
  168. package/src/db/__generated__/client/models/User.js +2 -0
  169. package/src/db/__generated__/client/models/User.js.map +1 -0
  170. package/src/db/__generated__/client/models/Verification.d.ts +1026 -0
  171. package/src/db/__generated__/client/models/Verification.js +2 -0
  172. package/src/db/__generated__/client/models/Verification.js.map +1 -0
  173. package/src/db/__generated__/client/models.d.ts +38 -0
  174. package/src/db/__generated__/client/models.js +2 -0
  175. package/src/db/__generated__/client/models.js.map +1 -0
  176. package/src/db/index.d.ts +1 -0
  177. package/src/db/index.js +2 -0
  178. package/src/db/index.js.map +1 -0
  179. package/src/emails/order-confirmation-email.d.ts +10 -0
  180. package/src/emails/order-confirmation-email.js +229 -0
  181. package/src/emails/order-confirmation-email.js.map +1 -0
  182. package/src/emails/order-notification-email.d.ts +10 -0
  183. package/src/emails/order-notification-email.js +229 -0
  184. package/src/emails/order-notification-email.js.map +1 -0
  185. package/src/emails/reservation-cancellation-email.d.ts +10 -0
  186. package/src/emails/reservation-cancellation-email.js +82 -0
  187. package/src/emails/reservation-cancellation-email.js.map +1 -0
  188. package/src/emails/reservation-confirmation-email.d.ts +10 -0
  189. package/src/emails/reservation-confirmation-email.js +82 -0
  190. package/src/emails/reservation-confirmation-email.js.map +1 -0
  191. package/src/emails/reservation-notification-email.d.ts +11 -0
  192. package/src/emails/reservation-notification-email.js +93 -0
  193. package/src/emails/reservation-notification-email.js.map +1 -0
  194. package/src/exceptions/http-exception.d.ts +6 -0
  195. package/src/exceptions/http-exception.js +9 -0
  196. package/src/exceptions/http-exception.js.map +1 -0
  197. package/src/handlers/webhook.handler.d.ts +8 -0
  198. package/src/handlers/webhook.handler.js +36 -0
  199. package/src/handlers/webhook.handler.js.map +1 -0
  200. package/src/index.d.ts +5 -0
  201. package/src/index.js +7 -0
  202. package/src/index.js.map +1 -0
  203. package/src/integrations/next.d.ts +25 -0
  204. package/src/integrations/next.js +69 -0
  205. package/src/integrations/next.js.map +1 -0
  206. package/src/lib/better-auth.lib.d.ts +10215 -0
  207. package/src/lib/better-auth.lib.js +96 -0
  208. package/src/lib/better-auth.lib.js.map +1 -0
  209. package/src/lib/openapi.lib.d.ts +2 -0
  210. package/src/lib/openapi.lib.js +25 -0
  211. package/src/lib/openapi.lib.js.map +1 -0
  212. package/src/lib/pino.d.ts +1 -0
  213. package/src/lib/pino.js +5 -0
  214. package/src/lib/pino.js.map +1 -0
  215. package/src/lib/prisma.d.ts +819 -0
  216. package/src/lib/prisma.js +14 -0
  217. package/src/lib/prisma.js.map +1 -0
  218. package/src/lib/stripe.d.ts +2 -0
  219. package/src/lib/stripe.js +8 -0
  220. package/src/lib/stripe.js.map +1 -0
  221. package/src/lib/ts-rest.d.ts +2 -0
  222. package/src/lib/ts-rest.js +3 -0
  223. package/src/lib/ts-rest.js.map +1 -0
  224. package/src/routers/cart.router.d.ts +536 -0
  225. package/src/routers/cart.router.js +20 -0
  226. package/src/routers/cart.router.js.map +1 -0
  227. package/src/routers/file.router.d.ts +153 -0
  228. package/src/routers/file.router.js +28 -0
  229. package/src/routers/file.router.js.map +1 -0
  230. package/src/routers/health.router.d.ts +37 -0
  231. package/src/routers/health.router.js +17 -0
  232. package/src/routers/health.router.js.map +1 -0
  233. package/src/routers/index.d.ts +11 -0
  234. package/src/routers/index.js +12 -0
  235. package/src/routers/index.js.map +1 -0
  236. package/src/routers/manufacturer.router.d.ts +931 -0
  237. package/src/routers/manufacturer.router.js +58 -0
  238. package/src/routers/manufacturer.router.js.map +1 -0
  239. package/src/routers/order.router.d.ts +3911 -0
  240. package/src/routers/order.router.js +60 -0
  241. package/src/routers/order.router.js.map +1 -0
  242. package/src/routers/organization.router.d.ts +2234 -0
  243. package/src/routers/organization.router.js +55 -0
  244. package/src/routers/organization.router.js.map +1 -0
  245. package/src/routers/payment.router.d.ts +65 -0
  246. package/src/routers/payment.router.js +22 -0
  247. package/src/routers/payment.router.js.map +1 -0
  248. package/src/routers/places.router.d.ts +132 -0
  249. package/src/routers/places.router.js +31 -0
  250. package/src/routers/places.router.js.map +1 -0
  251. package/src/routers/product-category.router.d.ts +1172 -0
  252. package/src/routers/product-category.router.js +66 -0
  253. package/src/routers/product-category.router.js.map +1 -0
  254. package/src/routers/product.router.d.ts +3976 -0
  255. package/src/routers/product.router.js +86 -0
  256. package/src/routers/product.router.js.map +1 -0
  257. package/src/routers/reservation.router.d.ts +675 -0
  258. package/src/routers/reservation.router.js +71 -0
  259. package/src/routers/reservation.router.js.map +1 -0
  260. package/src/routers/shipping-method.router.d.ts +1276 -0
  261. package/src/routers/shipping-method.router.js +67 -0
  262. package/src/routers/shipping-method.router.js.map +1 -0
  263. package/src/routers/shipping.router.d.ts +320 -0
  264. package/src/routers/shipping.router.js +38 -0
  265. package/src/routers/shipping.router.js.map +1 -0
  266. package/src/routers/webhook.router.d.ts +65 -0
  267. package/src/routers/webhook.router.js +19 -0
  268. package/src/routers/webhook.router.js.map +1 -0
  269. package/src/schemas/address.schema.d.ts +235 -0
  270. package/src/schemas/address.schema.js +114 -0
  271. package/src/schemas/address.schema.js.map +1 -0
  272. package/src/schemas/auth.schema.d.ts +29 -0
  273. package/src/schemas/auth.schema.js +39 -0
  274. package/src/schemas/auth.schema.js.map +1 -0
  275. package/src/schemas/cart.schema.d.ts +446 -0
  276. package/src/schemas/cart.schema.js +41 -0
  277. package/src/schemas/cart.schema.js.map +1 -0
  278. package/src/schemas/currency.schema.d.ts +49 -0
  279. package/src/schemas/currency.schema.js +120 -0
  280. package/src/schemas/currency.schema.js.map +1 -0
  281. package/src/schemas/error.schema.d.ts +11 -0
  282. package/src/schemas/error.schema.js +14 -0
  283. package/src/schemas/error.schema.js.map +1 -0
  284. package/src/schemas/file.schema.d.ts +115 -0
  285. package/src/schemas/file.schema.js +79 -0
  286. package/src/schemas/file.schema.js.map +1 -0
  287. package/src/schemas/fulfilment.schema.d.ts +2 -0
  288. package/src/schemas/fulfilment.schema.js +5 -0
  289. package/src/schemas/fulfilment.schema.js.map +1 -0
  290. package/src/schemas/headers.schema.d.ts +11 -0
  291. package/src/schemas/headers.schema.js +15 -0
  292. package/src/schemas/headers.schema.js.map +1 -0
  293. package/src/schemas/index.d.ts +27 -0
  294. package/src/schemas/index.js +28 -0
  295. package/src/schemas/index.js.map +1 -0
  296. package/src/schemas/legal-entity.schema.d.ts +212 -0
  297. package/src/schemas/legal-entity.schema.js +85 -0
  298. package/src/schemas/legal-entity.schema.js.map +1 -0
  299. package/src/schemas/locales.schema.d.ts +8 -0
  300. package/src/schemas/locales.schema.js +240 -0
  301. package/src/schemas/locales.schema.js.map +1 -0
  302. package/src/schemas/location.schema.d.ts +41 -0
  303. package/src/schemas/location.schema.js +50 -0
  304. package/src/schemas/location.schema.js.map +1 -0
  305. package/src/schemas/manufacturer.schema.d.ts +287 -0
  306. package/src/schemas/manufacturer.schema.js +127 -0
  307. package/src/schemas/manufacturer.schema.js.map +1 -0
  308. package/src/schemas/number.schema.d.ts +3 -0
  309. package/src/schemas/number.schema.js +29 -0
  310. package/src/schemas/number.schema.js.map +1 -0
  311. package/src/schemas/order.schema.d.ts +1046 -0
  312. package/src/schemas/order.schema.js +160 -0
  313. package/src/schemas/order.schema.js.map +1 -0
  314. package/src/schemas/organization-configuration.schema.d.ts +287 -0
  315. package/src/schemas/organization-configuration.schema.js +117 -0
  316. package/src/schemas/organization-configuration.schema.js.map +1 -0
  317. package/src/schemas/organization.schema.d.ts +894 -0
  318. package/src/schemas/organization.schema.js +66 -0
  319. package/src/schemas/organization.schema.js.map +1 -0
  320. package/src/schemas/pagination.schema.d.ts +51 -0
  321. package/src/schemas/pagination.schema.js +54 -0
  322. package/src/schemas/pagination.schema.js.map +1 -0
  323. package/src/schemas/params.schema.d.ts +19 -0
  324. package/src/schemas/params.schema.js +22 -0
  325. package/src/schemas/params.schema.js.map +1 -0
  326. package/src/schemas/payment.schema.d.ts +54 -0
  327. package/src/schemas/payment.schema.js +48 -0
  328. package/src/schemas/payment.schema.js.map +1 -0
  329. package/src/schemas/product-category.schema.d.ts +352 -0
  330. package/src/schemas/product-category.schema.js +87 -0
  331. package/src/schemas/product-category.schema.js.map +1 -0
  332. package/src/schemas/product-modifier.schema.d.ts +280 -0
  333. package/src/schemas/product-modifier.schema.js +86 -0
  334. package/src/schemas/product-modifier.schema.js.map +1 -0
  335. package/src/schemas/product.schema.d.ts +1405 -0
  336. package/src/schemas/product.schema.js +136 -0
  337. package/src/schemas/product.schema.js.map +1 -0
  338. package/src/schemas/queries.schema.d.ts +8 -0
  339. package/src/schemas/queries.schema.js +8 -0
  340. package/src/schemas/queries.schema.js.map +1 -0
  341. package/src/schemas/recipient.schema.d.ts +260 -0
  342. package/src/schemas/recipient.schema.js +40 -0
  343. package/src/schemas/recipient.schema.js.map +1 -0
  344. package/src/schemas/reservation.schema.d.ts +61 -0
  345. package/src/schemas/reservation.schema.js +53 -0
  346. package/src/schemas/reservation.schema.js.map +1 -0
  347. package/src/schemas/shipping-method.schema.d.ts +335 -0
  348. package/src/schemas/shipping-method.schema.js +50 -0
  349. package/src/schemas/shipping-method.schema.js.map +1 -0
  350. package/src/schemas/shipping-zone.schema.d.ts +24 -0
  351. package/src/schemas/shipping-zone.schema.js +33 -0
  352. package/src/schemas/shipping-zone.schema.js.map +1 -0
  353. package/src/schemas/user.schema.d.ts +24 -0
  354. package/src/schemas/user.schema.js +32 -0
  355. package/src/schemas/user.schema.js.map +1 -0
  356. package/src/services/cart.service.d.ts +60 -0
  357. package/src/services/cart.service.js +97 -0
  358. package/src/services/cart.service.js.map +1 -0
  359. package/src/services/email.service.d.ts +32 -0
  360. package/src/services/email.service.js +116 -0
  361. package/src/services/email.service.js.map +1 -0
  362. package/src/services/file.service.d.ts +28 -0
  363. package/src/services/file.service.js +66 -0
  364. package/src/services/file.service.js.map +1 -0
  365. package/src/services/location.service.d.ts +28 -0
  366. package/src/services/location.service.js +109 -0
  367. package/src/services/location.service.js.map +1 -0
  368. package/src/services/manufacturer.service.d.ts +146 -0
  369. package/src/services/manufacturer.service.js +190 -0
  370. package/src/services/manufacturer.service.js.map +1 -0
  371. package/src/services/order.service.d.ts +444 -0
  372. package/src/services/order.service.js +306 -0
  373. package/src/services/order.service.js.map +1 -0
  374. package/src/services/organization.service.d.ts +301 -0
  375. package/src/services/organization.service.js +312 -0
  376. package/src/services/organization.service.js.map +1 -0
  377. package/src/services/payment.service.d.ts +35 -0
  378. package/src/services/payment.service.js +100 -0
  379. package/src/services/payment.service.js.map +1 -0
  380. package/src/services/product-category.service.d.ts +180 -0
  381. package/src/services/product-category.service.js +220 -0
  382. package/src/services/product-category.service.js.map +1 -0
  383. package/src/services/product.service.d.ts +493 -0
  384. package/src/services/product.service.js +437 -0
  385. package/src/services/product.service.js.map +1 -0
  386. package/src/services/reservation.service.d.ts +104 -0
  387. package/src/services/reservation.service.js +231 -0
  388. package/src/services/reservation.service.js.map +1 -0
  389. package/src/services/shipping-method.service.d.ts +206 -0
  390. package/src/services/shipping-method.service.js +229 -0
  391. package/src/services/shipping-method.service.js.map +1 -0
  392. package/src/services/shipping.service.d.ts +57 -0
  393. package/src/services/shipping.service.js +96 -0
  394. package/src/services/shipping.service.js.map +1 -0
  395. package/src/services/stripe.service.d.ts +26 -0
  396. package/src/services/stripe.service.js +164 -0
  397. package/src/services/stripe.service.js.map +1 -0
  398. package/src/types/google-maps.types.d.ts +53 -0
  399. package/src/types/google-maps.types.js +2 -0
  400. package/src/types/google-maps.types.js.map +1 -0
  401. package/src/utils/auth.util.d.ts +3 -0
  402. package/src/utils/auth.util.js +36 -0
  403. package/src/utils/auth.util.js.map +1 -0
  404. package/src/utils/cart.util.d.ts +27 -0
  405. package/src/utils/cart.util.js +76 -0
  406. package/src/utils/cart.util.js.map +1 -0
  407. package/src/utils/client.util.d.ts +3853 -0
  408. package/src/utils/client.util.js +6 -0
  409. package/src/utils/client.util.js.map +1 -0
  410. package/src/utils/currency.util.d.ts +1 -0
  411. package/src/utils/currency.util.js +11 -0
  412. package/src/utils/currency.util.js.map +1 -0
  413. package/src/utils/env.util.d.ts +2 -0
  414. package/src/utils/env.util.js +8 -0
  415. package/src/utils/env.util.js.map +1 -0
  416. package/src/utils/error-handler.util.d.ts +3 -0
  417. package/src/utils/error-handler.util.js +30 -0
  418. package/src/utils/error-handler.util.js.map +1 -0
  419. package/src/utils/generate-password-hash.util.d.ts +7 -0
  420. package/src/utils/generate-password-hash.util.js +30 -0
  421. package/src/utils/generate-password-hash.util.js.map +1 -0
  422. package/src/utils/object.util.d.ts +11 -0
  423. package/src/utils/object.util.js +39 -0
  424. package/src/utils/object.util.js.map +1 -0
  425. package/src/utils/translations.util.d.ts +0 -0
  426. package/src/utils/translations.util.js +2 -0
  427. package/src/utils/translations.util.js.map +1 -0
  428. package/src/utils/zod.util.d.ts +15 -0
  429. package/src/utils/zod.util.js +85 -0
  430. package/src/utils/zod.util.js.map +1 -0
@@ -0,0 +1,1316 @@
1
+ /**
2
+ * This file exports the `Session` model and its related types.
3
+ *
4
+ * 🟢 You can import this file directly.
5
+ */
6
+ import * as runtime from "@prisma/client/runtime/library";
7
+ import type * as Prisma from "../internal/prismaNamespace.ts";
8
+ /**
9
+ * Model Session
10
+ *
11
+ */
12
+ export type SessionModel = runtime.Types.Result.DefaultSelection<Prisma.$SessionPayload>;
13
+ export type AggregateSession = {
14
+ _count: SessionCountAggregateOutputType | null;
15
+ _min: SessionMinAggregateOutputType | null;
16
+ _max: SessionMaxAggregateOutputType | null;
17
+ };
18
+ export type SessionMinAggregateOutputType = {
19
+ id: string | null;
20
+ expiresAt: Date | null;
21
+ token: string | null;
22
+ createdAt: Date | null;
23
+ updatedAt: Date | null;
24
+ ipAddress: string | null;
25
+ userAgent: string | null;
26
+ userId: string | null;
27
+ activeOrganizationId: string | null;
28
+ };
29
+ export type SessionMaxAggregateOutputType = {
30
+ id: string | null;
31
+ expiresAt: Date | null;
32
+ token: string | null;
33
+ createdAt: Date | null;
34
+ updatedAt: Date | null;
35
+ ipAddress: string | null;
36
+ userAgent: string | null;
37
+ userId: string | null;
38
+ activeOrganizationId: string | null;
39
+ };
40
+ export type SessionCountAggregateOutputType = {
41
+ id: number;
42
+ expiresAt: number;
43
+ token: number;
44
+ createdAt: number;
45
+ updatedAt: number;
46
+ ipAddress: number;
47
+ userAgent: number;
48
+ userId: number;
49
+ activeOrganizationId: number;
50
+ _all: number;
51
+ };
52
+ export type SessionMinAggregateInputType = {
53
+ id?: true;
54
+ expiresAt?: true;
55
+ token?: true;
56
+ createdAt?: true;
57
+ updatedAt?: true;
58
+ ipAddress?: true;
59
+ userAgent?: true;
60
+ userId?: true;
61
+ activeOrganizationId?: true;
62
+ };
63
+ export type SessionMaxAggregateInputType = {
64
+ id?: true;
65
+ expiresAt?: true;
66
+ token?: true;
67
+ createdAt?: true;
68
+ updatedAt?: true;
69
+ ipAddress?: true;
70
+ userAgent?: true;
71
+ userId?: true;
72
+ activeOrganizationId?: true;
73
+ };
74
+ export type SessionCountAggregateInputType = {
75
+ id?: true;
76
+ expiresAt?: true;
77
+ token?: true;
78
+ createdAt?: true;
79
+ updatedAt?: true;
80
+ ipAddress?: true;
81
+ userAgent?: true;
82
+ userId?: true;
83
+ activeOrganizationId?: true;
84
+ _all?: true;
85
+ };
86
+ export type SessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
87
+ /**
88
+ * Filter which Session to aggregate.
89
+ */
90
+ where?: Prisma.SessionWhereInput;
91
+ /**
92
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
93
+ *
94
+ * Determine the order of Sessions to fetch.
95
+ */
96
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
97
+ /**
98
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
99
+ *
100
+ * Sets the start position
101
+ */
102
+ cursor?: Prisma.SessionWhereUniqueInput;
103
+ /**
104
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
105
+ *
106
+ * Take `±n` Sessions from the position of the cursor.
107
+ */
108
+ take?: number;
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
111
+ *
112
+ * Skip the first `n` Sessions.
113
+ */
114
+ skip?: number;
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
117
+ *
118
+ * Count returned Sessions
119
+ **/
120
+ _count?: true | SessionCountAggregateInputType;
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
123
+ *
124
+ * Select which fields to find the minimum value
125
+ **/
126
+ _min?: SessionMinAggregateInputType;
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
129
+ *
130
+ * Select which fields to find the maximum value
131
+ **/
132
+ _max?: SessionMaxAggregateInputType;
133
+ };
134
+ export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
135
+ [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateSession[P]> : Prisma.GetScalarType<T[P], AggregateSession[P]>;
136
+ };
137
+ export type SessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
138
+ where?: Prisma.SessionWhereInput;
139
+ orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[];
140
+ by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum;
141
+ having?: Prisma.SessionScalarWhereWithAggregatesInput;
142
+ take?: number;
143
+ skip?: number;
144
+ _count?: SessionCountAggregateInputType | true;
145
+ _min?: SessionMinAggregateInputType;
146
+ _max?: SessionMaxAggregateInputType;
147
+ };
148
+ export type SessionGroupByOutputType = {
149
+ id: string;
150
+ expiresAt: Date;
151
+ token: string;
152
+ createdAt: Date;
153
+ updatedAt: Date;
154
+ ipAddress: string | null;
155
+ userAgent: string | null;
156
+ userId: string;
157
+ activeOrganizationId: string | null;
158
+ _count: SessionCountAggregateOutputType | null;
159
+ _min: SessionMinAggregateOutputType | null;
160
+ _max: SessionMaxAggregateOutputType | null;
161
+ };
162
+ type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<SessionGroupByOutputType, T['by']> & {
163
+ [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], SessionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], SessionGroupByOutputType[P]>;
164
+ }>>;
165
+ export type SessionWhereInput = {
166
+ AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
167
+ OR?: Prisma.SessionWhereInput[];
168
+ NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
169
+ id?: Prisma.StringFilter<"Session"> | string;
170
+ expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
171
+ token?: Prisma.StringFilter<"Session"> | string;
172
+ createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
173
+ updatedAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
174
+ ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null;
175
+ userAgent?: Prisma.StringNullableFilter<"Session"> | string | null;
176
+ userId?: Prisma.StringFilter<"Session"> | string;
177
+ activeOrganizationId?: Prisma.StringNullableFilter<"Session"> | string | null;
178
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
179
+ };
180
+ export type SessionOrderByWithRelationInput = {
181
+ id?: Prisma.SortOrder;
182
+ expiresAt?: Prisma.SortOrder;
183
+ token?: Prisma.SortOrder;
184
+ createdAt?: Prisma.SortOrder;
185
+ updatedAt?: Prisma.SortOrder;
186
+ ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder;
187
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder;
188
+ userId?: Prisma.SortOrder;
189
+ activeOrganizationId?: Prisma.SortOrderInput | Prisma.SortOrder;
190
+ user?: Prisma.UserOrderByWithRelationInput;
191
+ };
192
+ export type SessionWhereUniqueInput = Prisma.AtLeast<{
193
+ id?: string;
194
+ token?: string;
195
+ AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
196
+ OR?: Prisma.SessionWhereInput[];
197
+ NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
198
+ expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
199
+ createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
200
+ updatedAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
201
+ ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null;
202
+ userAgent?: Prisma.StringNullableFilter<"Session"> | string | null;
203
+ userId?: Prisma.StringFilter<"Session"> | string;
204
+ activeOrganizationId?: Prisma.StringNullableFilter<"Session"> | string | null;
205
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
206
+ }, "id" | "token">;
207
+ export type SessionOrderByWithAggregationInput = {
208
+ id?: Prisma.SortOrder;
209
+ expiresAt?: Prisma.SortOrder;
210
+ token?: Prisma.SortOrder;
211
+ createdAt?: Prisma.SortOrder;
212
+ updatedAt?: Prisma.SortOrder;
213
+ ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder;
214
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder;
215
+ userId?: Prisma.SortOrder;
216
+ activeOrganizationId?: Prisma.SortOrderInput | Prisma.SortOrder;
217
+ _count?: Prisma.SessionCountOrderByAggregateInput;
218
+ _max?: Prisma.SessionMaxOrderByAggregateInput;
219
+ _min?: Prisma.SessionMinOrderByAggregateInput;
220
+ };
221
+ export type SessionScalarWhereWithAggregatesInput = {
222
+ AND?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[];
223
+ OR?: Prisma.SessionScalarWhereWithAggregatesInput[];
224
+ NOT?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[];
225
+ id?: Prisma.StringWithAggregatesFilter<"Session"> | string;
226
+ expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string;
227
+ token?: Prisma.StringWithAggregatesFilter<"Session"> | string;
228
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string;
229
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string;
230
+ ipAddress?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null;
231
+ userAgent?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null;
232
+ userId?: Prisma.StringWithAggregatesFilter<"Session"> | string;
233
+ activeOrganizationId?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null;
234
+ };
235
+ export type SessionCreateInput = {
236
+ id: string;
237
+ expiresAt: Date | string;
238
+ token: string;
239
+ createdAt: Date | string;
240
+ updatedAt: Date | string;
241
+ ipAddress?: string | null;
242
+ userAgent?: string | null;
243
+ activeOrganizationId?: string | null;
244
+ user: Prisma.UserCreateNestedOneWithoutSessionsInput;
245
+ };
246
+ export type SessionUncheckedCreateInput = {
247
+ id: string;
248
+ expiresAt: Date | string;
249
+ token: string;
250
+ createdAt: Date | string;
251
+ updatedAt: Date | string;
252
+ ipAddress?: string | null;
253
+ userAgent?: string | null;
254
+ userId: string;
255
+ activeOrganizationId?: string | null;
256
+ };
257
+ export type SessionUpdateInput = {
258
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
259
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
260
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
261
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
262
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
263
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
264
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
265
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
266
+ user?: Prisma.UserUpdateOneRequiredWithoutSessionsNestedInput;
267
+ };
268
+ export type SessionUncheckedUpdateInput = {
269
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
270
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
271
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
272
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
273
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
274
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
275
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
276
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
277
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
278
+ };
279
+ export type SessionCreateManyInput = {
280
+ id: string;
281
+ expiresAt: Date | string;
282
+ token: string;
283
+ createdAt: Date | string;
284
+ updatedAt: Date | string;
285
+ ipAddress?: string | null;
286
+ userAgent?: string | null;
287
+ userId: string;
288
+ activeOrganizationId?: string | null;
289
+ };
290
+ export type SessionUpdateManyMutationInput = {
291
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
292
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
293
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
294
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
295
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
296
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
297
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
298
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
299
+ };
300
+ export type SessionUncheckedUpdateManyInput = {
301
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
302
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
303
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
304
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
305
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
306
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
307
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
308
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
309
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
310
+ };
311
+ export type SessionListRelationFilter = {
312
+ every?: Prisma.SessionWhereInput;
313
+ some?: Prisma.SessionWhereInput;
314
+ none?: Prisma.SessionWhereInput;
315
+ };
316
+ export type SessionOrderByRelationAggregateInput = {
317
+ _count?: Prisma.SortOrder;
318
+ };
319
+ export type SessionCountOrderByAggregateInput = {
320
+ id?: Prisma.SortOrder;
321
+ expiresAt?: Prisma.SortOrder;
322
+ token?: Prisma.SortOrder;
323
+ createdAt?: Prisma.SortOrder;
324
+ updatedAt?: Prisma.SortOrder;
325
+ ipAddress?: Prisma.SortOrder;
326
+ userAgent?: Prisma.SortOrder;
327
+ userId?: Prisma.SortOrder;
328
+ activeOrganizationId?: Prisma.SortOrder;
329
+ };
330
+ export type SessionMaxOrderByAggregateInput = {
331
+ id?: Prisma.SortOrder;
332
+ expiresAt?: Prisma.SortOrder;
333
+ token?: Prisma.SortOrder;
334
+ createdAt?: Prisma.SortOrder;
335
+ updatedAt?: Prisma.SortOrder;
336
+ ipAddress?: Prisma.SortOrder;
337
+ userAgent?: Prisma.SortOrder;
338
+ userId?: Prisma.SortOrder;
339
+ activeOrganizationId?: Prisma.SortOrder;
340
+ };
341
+ export type SessionMinOrderByAggregateInput = {
342
+ id?: Prisma.SortOrder;
343
+ expiresAt?: Prisma.SortOrder;
344
+ token?: Prisma.SortOrder;
345
+ createdAt?: Prisma.SortOrder;
346
+ updatedAt?: Prisma.SortOrder;
347
+ ipAddress?: Prisma.SortOrder;
348
+ userAgent?: Prisma.SortOrder;
349
+ userId?: Prisma.SortOrder;
350
+ activeOrganizationId?: Prisma.SortOrder;
351
+ };
352
+ export type SessionCreateNestedManyWithoutUserInput = {
353
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
354
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
355
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
356
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
357
+ };
358
+ export type SessionUncheckedCreateNestedManyWithoutUserInput = {
359
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
360
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
361
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
362
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
363
+ };
364
+ export type SessionUpdateManyWithoutUserNestedInput = {
365
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
366
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
367
+ upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[];
368
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
369
+ set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
370
+ disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
371
+ delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
372
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
373
+ update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[];
374
+ updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[];
375
+ deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
376
+ };
377
+ export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
378
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
379
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
380
+ upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[];
381
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
382
+ set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
383
+ disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
384
+ delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
385
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
386
+ update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[];
387
+ updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[];
388
+ deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
389
+ };
390
+ export type SessionCreateWithoutUserInput = {
391
+ id: string;
392
+ expiresAt: Date | string;
393
+ token: string;
394
+ createdAt: Date | string;
395
+ updatedAt: Date | string;
396
+ ipAddress?: string | null;
397
+ userAgent?: string | null;
398
+ activeOrganizationId?: string | null;
399
+ };
400
+ export type SessionUncheckedCreateWithoutUserInput = {
401
+ id: string;
402
+ expiresAt: Date | string;
403
+ token: string;
404
+ createdAt: Date | string;
405
+ updatedAt: Date | string;
406
+ ipAddress?: string | null;
407
+ userAgent?: string | null;
408
+ activeOrganizationId?: string | null;
409
+ };
410
+ export type SessionCreateOrConnectWithoutUserInput = {
411
+ where: Prisma.SessionWhereUniqueInput;
412
+ create: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput>;
413
+ };
414
+ export type SessionCreateManyUserInputEnvelope = {
415
+ data: Prisma.SessionCreateManyUserInput | Prisma.SessionCreateManyUserInput[];
416
+ skipDuplicates?: boolean;
417
+ };
418
+ export type SessionUpsertWithWhereUniqueWithoutUserInput = {
419
+ where: Prisma.SessionWhereUniqueInput;
420
+ update: Prisma.XOR<Prisma.SessionUpdateWithoutUserInput, Prisma.SessionUncheckedUpdateWithoutUserInput>;
421
+ create: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput>;
422
+ };
423
+ export type SessionUpdateWithWhereUniqueWithoutUserInput = {
424
+ where: Prisma.SessionWhereUniqueInput;
425
+ data: Prisma.XOR<Prisma.SessionUpdateWithoutUserInput, Prisma.SessionUncheckedUpdateWithoutUserInput>;
426
+ };
427
+ export type SessionUpdateManyWithWhereWithoutUserInput = {
428
+ where: Prisma.SessionScalarWhereInput;
429
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyWithoutUserInput>;
430
+ };
431
+ export type SessionScalarWhereInput = {
432
+ AND?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
433
+ OR?: Prisma.SessionScalarWhereInput[];
434
+ NOT?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
435
+ id?: Prisma.StringFilter<"Session"> | string;
436
+ expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
437
+ token?: Prisma.StringFilter<"Session"> | string;
438
+ createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
439
+ updatedAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
440
+ ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null;
441
+ userAgent?: Prisma.StringNullableFilter<"Session"> | string | null;
442
+ userId?: Prisma.StringFilter<"Session"> | string;
443
+ activeOrganizationId?: Prisma.StringNullableFilter<"Session"> | string | null;
444
+ };
445
+ export type SessionCreateManyUserInput = {
446
+ id: string;
447
+ expiresAt: Date | string;
448
+ token: string;
449
+ createdAt: Date | string;
450
+ updatedAt: Date | string;
451
+ ipAddress?: string | null;
452
+ userAgent?: string | null;
453
+ activeOrganizationId?: string | null;
454
+ };
455
+ export type SessionUpdateWithoutUserInput = {
456
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
457
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
458
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
459
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
460
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
461
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
462
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
463
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
464
+ };
465
+ export type SessionUncheckedUpdateWithoutUserInput = {
466
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
467
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
468
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
469
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
470
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
471
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
472
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
473
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
474
+ };
475
+ export type SessionUncheckedUpdateManyWithoutUserInput = {
476
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
477
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
478
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
479
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
480
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
481
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
482
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
483
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
484
+ };
485
+ export type SessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
486
+ id?: boolean;
487
+ expiresAt?: boolean;
488
+ token?: boolean;
489
+ createdAt?: boolean;
490
+ updatedAt?: boolean;
491
+ ipAddress?: boolean;
492
+ userAgent?: boolean;
493
+ userId?: boolean;
494
+ activeOrganizationId?: boolean;
495
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
496
+ }, ExtArgs["result"]["session"]>;
497
+ export type SessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
498
+ id?: boolean;
499
+ expiresAt?: boolean;
500
+ token?: boolean;
501
+ createdAt?: boolean;
502
+ updatedAt?: boolean;
503
+ ipAddress?: boolean;
504
+ userAgent?: boolean;
505
+ userId?: boolean;
506
+ activeOrganizationId?: boolean;
507
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
508
+ }, ExtArgs["result"]["session"]>;
509
+ export type SessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
510
+ id?: boolean;
511
+ expiresAt?: boolean;
512
+ token?: boolean;
513
+ createdAt?: boolean;
514
+ updatedAt?: boolean;
515
+ ipAddress?: boolean;
516
+ userAgent?: boolean;
517
+ userId?: boolean;
518
+ activeOrganizationId?: boolean;
519
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
520
+ }, ExtArgs["result"]["session"]>;
521
+ export type SessionSelectScalar = {
522
+ id?: boolean;
523
+ expiresAt?: boolean;
524
+ token?: boolean;
525
+ createdAt?: boolean;
526
+ updatedAt?: boolean;
527
+ ipAddress?: boolean;
528
+ userAgent?: boolean;
529
+ userId?: boolean;
530
+ activeOrganizationId?: boolean;
531
+ };
532
+ export type SessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "expiresAt" | "token" | "createdAt" | "updatedAt" | "ipAddress" | "userAgent" | "userId" | "activeOrganizationId", ExtArgs["result"]["session"]>;
533
+ export type SessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
534
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
535
+ };
536
+ export type SessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
537
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
538
+ };
539
+ export type SessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
540
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
541
+ };
542
+ export type $SessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
543
+ name: "Session";
544
+ objects: {
545
+ user: Prisma.$UserPayload<ExtArgs>;
546
+ };
547
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
548
+ id: string;
549
+ expiresAt: Date;
550
+ token: string;
551
+ createdAt: Date;
552
+ updatedAt: Date;
553
+ ipAddress: string | null;
554
+ userAgent: string | null;
555
+ userId: string;
556
+ activeOrganizationId: string | null;
557
+ }, ExtArgs["result"]["session"]>;
558
+ composites: {};
559
+ };
560
+ export type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SessionPayload, S>;
561
+ export type SessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
562
+ select?: SessionCountAggregateInputType | true;
563
+ };
564
+ export interface SessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
565
+ [K: symbol]: {
566
+ types: Prisma.TypeMap<ExtArgs>['model']['Session'];
567
+ meta: {
568
+ name: 'Session';
569
+ };
570
+ };
571
+ /**
572
+ * Find zero or one Session that matches the filter.
573
+ * @param {SessionFindUniqueArgs} args - Arguments to find a Session
574
+ * @example
575
+ * // Get one Session
576
+ * const session = await prisma.session.findUnique({
577
+ * where: {
578
+ * // ... provide filter here
579
+ * }
580
+ * })
581
+ */
582
+ findUnique<T extends SessionFindUniqueArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
583
+ /**
584
+ * Find one Session that matches the filter or throw an error with `error.code='P2025'`
585
+ * if no matches were found.
586
+ * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
587
+ * @example
588
+ * // Get one Session
589
+ * const session = await prisma.session.findUniqueOrThrow({
590
+ * where: {
591
+ * // ... provide filter here
592
+ * }
593
+ * })
594
+ */
595
+ findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
596
+ /**
597
+ * Find the first Session that matches the filter.
598
+ * Note, that providing `undefined` is treated as the value not being there.
599
+ * Read more here: https://pris.ly/d/null-undefined
600
+ * @param {SessionFindFirstArgs} args - Arguments to find a Session
601
+ * @example
602
+ * // Get one Session
603
+ * const session = await prisma.session.findFirst({
604
+ * where: {
605
+ * // ... provide filter here
606
+ * }
607
+ * })
608
+ */
609
+ findFirst<T extends SessionFindFirstArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
610
+ /**
611
+ * Find the first Session that matches the filter or
612
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
613
+ * Note, that providing `undefined` is treated as the value not being there.
614
+ * Read more here: https://pris.ly/d/null-undefined
615
+ * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
616
+ * @example
617
+ * // Get one Session
618
+ * const session = await prisma.session.findFirstOrThrow({
619
+ * where: {
620
+ * // ... provide filter here
621
+ * }
622
+ * })
623
+ */
624
+ findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
625
+ /**
626
+ * Find zero or more Sessions that matches the filter.
627
+ * Note, that providing `undefined` is treated as the value not being there.
628
+ * Read more here: https://pris.ly/d/null-undefined
629
+ * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
630
+ * @example
631
+ * // Get all Sessions
632
+ * const sessions = await prisma.session.findMany()
633
+ *
634
+ * // Get first 10 Sessions
635
+ * const sessions = await prisma.session.findMany({ take: 10 })
636
+ *
637
+ * // Only select the `id`
638
+ * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
639
+ *
640
+ */
641
+ findMany<T extends SessionFindManyArgs>(args?: Prisma.SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
642
+ /**
643
+ * Create a Session.
644
+ * @param {SessionCreateArgs} args - Arguments to create a Session.
645
+ * @example
646
+ * // Create one Session
647
+ * const Session = await prisma.session.create({
648
+ * data: {
649
+ * // ... data to create a Session
650
+ * }
651
+ * })
652
+ *
653
+ */
654
+ create<T extends SessionCreateArgs>(args: Prisma.SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
655
+ /**
656
+ * Create many Sessions.
657
+ * @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
658
+ * @example
659
+ * // Create many Sessions
660
+ * const session = await prisma.session.createMany({
661
+ * data: [
662
+ * // ... provide data here
663
+ * ]
664
+ * })
665
+ *
666
+ */
667
+ createMany<T extends SessionCreateManyArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
668
+ /**
669
+ * Create many Sessions and returns the data saved in the database.
670
+ * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
671
+ * @example
672
+ * // Create many Sessions
673
+ * const session = await prisma.session.createManyAndReturn({
674
+ * data: [
675
+ * // ... provide data here
676
+ * ]
677
+ * })
678
+ *
679
+ * // Create many Sessions and only return the `id`
680
+ * const sessionWithIdOnly = await prisma.session.createManyAndReturn({
681
+ * select: { id: true },
682
+ * data: [
683
+ * // ... provide data here
684
+ * ]
685
+ * })
686
+ * Note, that providing `undefined` is treated as the value not being there.
687
+ * Read more here: https://pris.ly/d/null-undefined
688
+ *
689
+ */
690
+ createManyAndReturn<T extends SessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
691
+ /**
692
+ * Delete a Session.
693
+ * @param {SessionDeleteArgs} args - Arguments to delete one Session.
694
+ * @example
695
+ * // Delete one Session
696
+ * const Session = await prisma.session.delete({
697
+ * where: {
698
+ * // ... filter to delete one Session
699
+ * }
700
+ * })
701
+ *
702
+ */
703
+ delete<T extends SessionDeleteArgs>(args: Prisma.SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
704
+ /**
705
+ * Update one Session.
706
+ * @param {SessionUpdateArgs} args - Arguments to update one Session.
707
+ * @example
708
+ * // Update one Session
709
+ * const session = await prisma.session.update({
710
+ * where: {
711
+ * // ... provide filter here
712
+ * },
713
+ * data: {
714
+ * // ... provide data here
715
+ * }
716
+ * })
717
+ *
718
+ */
719
+ update<T extends SessionUpdateArgs>(args: Prisma.SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
720
+ /**
721
+ * Delete zero or more Sessions.
722
+ * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
723
+ * @example
724
+ * // Delete a few Sessions
725
+ * const { count } = await prisma.session.deleteMany({
726
+ * where: {
727
+ * // ... provide filter here
728
+ * }
729
+ * })
730
+ *
731
+ */
732
+ deleteMany<T extends SessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
733
+ /**
734
+ * Update zero or more Sessions.
735
+ * Note, that providing `undefined` is treated as the value not being there.
736
+ * Read more here: https://pris.ly/d/null-undefined
737
+ * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
738
+ * @example
739
+ * // Update many Sessions
740
+ * const session = await prisma.session.updateMany({
741
+ * where: {
742
+ * // ... provide filter here
743
+ * },
744
+ * data: {
745
+ * // ... provide data here
746
+ * }
747
+ * })
748
+ *
749
+ */
750
+ updateMany<T extends SessionUpdateManyArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
751
+ /**
752
+ * Update zero or more Sessions and returns the data updated in the database.
753
+ * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
754
+ * @example
755
+ * // Update many Sessions
756
+ * const session = await prisma.session.updateManyAndReturn({
757
+ * where: {
758
+ * // ... provide filter here
759
+ * },
760
+ * data: [
761
+ * // ... provide data here
762
+ * ]
763
+ * })
764
+ *
765
+ * // Update zero or more Sessions and only return the `id`
766
+ * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({
767
+ * select: { id: true },
768
+ * where: {
769
+ * // ... provide filter here
770
+ * },
771
+ * data: [
772
+ * // ... provide data here
773
+ * ]
774
+ * })
775
+ * Note, that providing `undefined` is treated as the value not being there.
776
+ * Read more here: https://pris.ly/d/null-undefined
777
+ *
778
+ */
779
+ updateManyAndReturn<T extends SessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
780
+ /**
781
+ * Create or update one Session.
782
+ * @param {SessionUpsertArgs} args - Arguments to update or create a Session.
783
+ * @example
784
+ * // Update or create a Session
785
+ * const session = await prisma.session.upsert({
786
+ * create: {
787
+ * // ... data to create a Session
788
+ * },
789
+ * update: {
790
+ * // ... in case it already exists, update
791
+ * },
792
+ * where: {
793
+ * // ... the filter for the Session we want to update
794
+ * }
795
+ * })
796
+ */
797
+ upsert<T extends SessionUpsertArgs>(args: Prisma.SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
798
+ /**
799
+ * Count the number of Sessions.
800
+ * Note, that providing `undefined` is treated as the value not being there.
801
+ * Read more here: https://pris.ly/d/null-undefined
802
+ * @param {SessionCountArgs} args - Arguments to filter Sessions to count.
803
+ * @example
804
+ * // Count the number of Sessions
805
+ * const count = await prisma.session.count({
806
+ * where: {
807
+ * // ... the filter for the Sessions we want to count
808
+ * }
809
+ * })
810
+ **/
811
+ count<T extends SessionCountArgs>(args?: Prisma.Subset<T, SessionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], SessionCountAggregateOutputType> : number>;
812
+ /**
813
+ * Allows you to perform aggregations operations on a Session.
814
+ * Note, that providing `undefined` is treated as the value not being there.
815
+ * Read more here: https://pris.ly/d/null-undefined
816
+ * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
817
+ * @example
818
+ * // Ordered by age ascending
819
+ * // Where email contains prisma.io
820
+ * // Limited to the 10 users
821
+ * const aggregations = await prisma.user.aggregate({
822
+ * _avg: {
823
+ * age: true,
824
+ * },
825
+ * where: {
826
+ * email: {
827
+ * contains: "prisma.io",
828
+ * },
829
+ * },
830
+ * orderBy: {
831
+ * age: "asc",
832
+ * },
833
+ * take: 10,
834
+ * })
835
+ **/
836
+ aggregate<T extends SessionAggregateArgs>(args: Prisma.Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>;
837
+ /**
838
+ * Group by Session.
839
+ * Note, that providing `undefined` is treated as the value not being there.
840
+ * Read more here: https://pris.ly/d/null-undefined
841
+ * @param {SessionGroupByArgs} args - Group by arguments.
842
+ * @example
843
+ * // Group by city, order by createdAt, get count
844
+ * const result = await prisma.user.groupBy({
845
+ * by: ['city', 'createdAt'],
846
+ * orderBy: {
847
+ * createdAt: true
848
+ * },
849
+ * _count: {
850
+ * _all: true
851
+ * },
852
+ * })
853
+ *
854
+ **/
855
+ groupBy<T extends SessionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
856
+ orderBy: SessionGroupByArgs['orderBy'];
857
+ } : {
858
+ orderBy?: SessionGroupByArgs['orderBy'];
859
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
860
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
861
+ Error,
862
+ 'Field ',
863
+ P,
864
+ ` in "having" needs to be provided in "by"`
865
+ ];
866
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
867
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
868
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
869
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
870
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
871
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
872
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
873
+ /**
874
+ * Fields of the Session model
875
+ */
876
+ readonly fields: SessionFieldRefs;
877
+ }
878
+ /**
879
+ * The delegate class that acts as a "Promise-like" for Session.
880
+ * Why is this prefixed with `Prisma__`?
881
+ * Because we want to prevent naming conflicts as mentioned in
882
+ * https://github.com/prisma/prisma-client-js/issues/707
883
+ */
884
+ export interface Prisma__SessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
885
+ readonly [Symbol.toStringTag]: "PrismaPromise";
886
+ 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>;
887
+ /**
888
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
889
+ * @param onfulfilled The callback to execute when the Promise is resolved.
890
+ * @param onrejected The callback to execute when the Promise is rejected.
891
+ * @returns A Promise for the completion of which ever callback is executed.
892
+ */
893
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
894
+ /**
895
+ * Attaches a callback for only the rejection of the Promise.
896
+ * @param onrejected The callback to execute when the Promise is rejected.
897
+ * @returns A Promise for the completion of the callback.
898
+ */
899
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
900
+ /**
901
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
902
+ * resolved value cannot be modified from the callback.
903
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
904
+ * @returns A Promise for the completion of the callback.
905
+ */
906
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
907
+ }
908
+ /**
909
+ * Fields of the Session model
910
+ */
911
+ export interface SessionFieldRefs {
912
+ readonly id: Prisma.FieldRef<"Session", 'String'>;
913
+ readonly expiresAt: Prisma.FieldRef<"Session", 'DateTime'>;
914
+ readonly token: Prisma.FieldRef<"Session", 'String'>;
915
+ readonly createdAt: Prisma.FieldRef<"Session", 'DateTime'>;
916
+ readonly updatedAt: Prisma.FieldRef<"Session", 'DateTime'>;
917
+ readonly ipAddress: Prisma.FieldRef<"Session", 'String'>;
918
+ readonly userAgent: Prisma.FieldRef<"Session", 'String'>;
919
+ readonly userId: Prisma.FieldRef<"Session", 'String'>;
920
+ readonly activeOrganizationId: Prisma.FieldRef<"Session", 'String'>;
921
+ }
922
+ /**
923
+ * Session findUnique
924
+ */
925
+ export type SessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
926
+ /**
927
+ * Select specific fields to fetch from the Session
928
+ */
929
+ select?: Prisma.SessionSelect<ExtArgs> | null;
930
+ /**
931
+ * Omit specific fields from the Session
932
+ */
933
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
934
+ /**
935
+ * Choose, which related nodes to fetch as well
936
+ */
937
+ include?: Prisma.SessionInclude<ExtArgs> | null;
938
+ /**
939
+ * Filter, which Session to fetch.
940
+ */
941
+ where: Prisma.SessionWhereUniqueInput;
942
+ };
943
+ /**
944
+ * Session findUniqueOrThrow
945
+ */
946
+ export type SessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
947
+ /**
948
+ * Select specific fields to fetch from the Session
949
+ */
950
+ select?: Prisma.SessionSelect<ExtArgs> | null;
951
+ /**
952
+ * Omit specific fields from the Session
953
+ */
954
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
955
+ /**
956
+ * Choose, which related nodes to fetch as well
957
+ */
958
+ include?: Prisma.SessionInclude<ExtArgs> | null;
959
+ /**
960
+ * Filter, which Session to fetch.
961
+ */
962
+ where: Prisma.SessionWhereUniqueInput;
963
+ };
964
+ /**
965
+ * Session findFirst
966
+ */
967
+ export type SessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
968
+ /**
969
+ * Select specific fields to fetch from the Session
970
+ */
971
+ select?: Prisma.SessionSelect<ExtArgs> | null;
972
+ /**
973
+ * Omit specific fields from the Session
974
+ */
975
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
976
+ /**
977
+ * Choose, which related nodes to fetch as well
978
+ */
979
+ include?: Prisma.SessionInclude<ExtArgs> | null;
980
+ /**
981
+ * Filter, which Session to fetch.
982
+ */
983
+ where?: Prisma.SessionWhereInput;
984
+ /**
985
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
986
+ *
987
+ * Determine the order of Sessions to fetch.
988
+ */
989
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
990
+ /**
991
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
992
+ *
993
+ * Sets the position for searching for Sessions.
994
+ */
995
+ cursor?: Prisma.SessionWhereUniqueInput;
996
+ /**
997
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
998
+ *
999
+ * Take `±n` Sessions from the position of the cursor.
1000
+ */
1001
+ take?: number;
1002
+ /**
1003
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1004
+ *
1005
+ * Skip the first `n` Sessions.
1006
+ */
1007
+ skip?: number;
1008
+ /**
1009
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1010
+ *
1011
+ * Filter by unique combinations of Sessions.
1012
+ */
1013
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
1014
+ };
1015
+ /**
1016
+ * Session findFirstOrThrow
1017
+ */
1018
+ export type SessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1019
+ /**
1020
+ * Select specific fields to fetch from the Session
1021
+ */
1022
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1023
+ /**
1024
+ * Omit specific fields from the Session
1025
+ */
1026
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1027
+ /**
1028
+ * Choose, which related nodes to fetch as well
1029
+ */
1030
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1031
+ /**
1032
+ * Filter, which Session to fetch.
1033
+ */
1034
+ where?: Prisma.SessionWhereInput;
1035
+ /**
1036
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1037
+ *
1038
+ * Determine the order of Sessions to fetch.
1039
+ */
1040
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
1041
+ /**
1042
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1043
+ *
1044
+ * Sets the position for searching for Sessions.
1045
+ */
1046
+ cursor?: Prisma.SessionWhereUniqueInput;
1047
+ /**
1048
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1049
+ *
1050
+ * Take `±n` Sessions from the position of the cursor.
1051
+ */
1052
+ take?: number;
1053
+ /**
1054
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1055
+ *
1056
+ * Skip the first `n` Sessions.
1057
+ */
1058
+ skip?: number;
1059
+ /**
1060
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1061
+ *
1062
+ * Filter by unique combinations of Sessions.
1063
+ */
1064
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
1065
+ };
1066
+ /**
1067
+ * Session findMany
1068
+ */
1069
+ export type SessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1070
+ /**
1071
+ * Select specific fields to fetch from the Session
1072
+ */
1073
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1074
+ /**
1075
+ * Omit specific fields from the Session
1076
+ */
1077
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1078
+ /**
1079
+ * Choose, which related nodes to fetch as well
1080
+ */
1081
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1082
+ /**
1083
+ * Filter, which Sessions to fetch.
1084
+ */
1085
+ where?: Prisma.SessionWhereInput;
1086
+ /**
1087
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1088
+ *
1089
+ * Determine the order of Sessions to fetch.
1090
+ */
1091
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
1092
+ /**
1093
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1094
+ *
1095
+ * Sets the position for listing Sessions.
1096
+ */
1097
+ cursor?: Prisma.SessionWhereUniqueInput;
1098
+ /**
1099
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1100
+ *
1101
+ * Take `±n` Sessions from the position of the cursor.
1102
+ */
1103
+ take?: number;
1104
+ /**
1105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1106
+ *
1107
+ * Skip the first `n` Sessions.
1108
+ */
1109
+ skip?: number;
1110
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
1111
+ };
1112
+ /**
1113
+ * Session create
1114
+ */
1115
+ export type SessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1116
+ /**
1117
+ * Select specific fields to fetch from the Session
1118
+ */
1119
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1120
+ /**
1121
+ * Omit specific fields from the Session
1122
+ */
1123
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1124
+ /**
1125
+ * Choose, which related nodes to fetch as well
1126
+ */
1127
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1128
+ /**
1129
+ * The data needed to create a Session.
1130
+ */
1131
+ data: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>;
1132
+ };
1133
+ /**
1134
+ * Session createMany
1135
+ */
1136
+ export type SessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1137
+ /**
1138
+ * The data used to create many Sessions.
1139
+ */
1140
+ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[];
1141
+ skipDuplicates?: boolean;
1142
+ };
1143
+ /**
1144
+ * Session createManyAndReturn
1145
+ */
1146
+ export type SessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1147
+ /**
1148
+ * Select specific fields to fetch from the Session
1149
+ */
1150
+ select?: Prisma.SessionSelectCreateManyAndReturn<ExtArgs> | null;
1151
+ /**
1152
+ * Omit specific fields from the Session
1153
+ */
1154
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1155
+ /**
1156
+ * The data used to create many Sessions.
1157
+ */
1158
+ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[];
1159
+ skipDuplicates?: boolean;
1160
+ /**
1161
+ * Choose, which related nodes to fetch as well
1162
+ */
1163
+ include?: Prisma.SessionIncludeCreateManyAndReturn<ExtArgs> | null;
1164
+ };
1165
+ /**
1166
+ * Session update
1167
+ */
1168
+ export type SessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1169
+ /**
1170
+ * Select specific fields to fetch from the Session
1171
+ */
1172
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1173
+ /**
1174
+ * Omit specific fields from the Session
1175
+ */
1176
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1177
+ /**
1178
+ * Choose, which related nodes to fetch as well
1179
+ */
1180
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1181
+ /**
1182
+ * The data needed to update a Session.
1183
+ */
1184
+ data: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>;
1185
+ /**
1186
+ * Choose, which Session to update.
1187
+ */
1188
+ where: Prisma.SessionWhereUniqueInput;
1189
+ };
1190
+ /**
1191
+ * Session updateMany
1192
+ */
1193
+ export type SessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1194
+ /**
1195
+ * The data used to update Sessions.
1196
+ */
1197
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>;
1198
+ /**
1199
+ * Filter which Sessions to update
1200
+ */
1201
+ where?: Prisma.SessionWhereInput;
1202
+ /**
1203
+ * Limit how many Sessions to update.
1204
+ */
1205
+ limit?: number;
1206
+ };
1207
+ /**
1208
+ * Session updateManyAndReturn
1209
+ */
1210
+ export type SessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1211
+ /**
1212
+ * Select specific fields to fetch from the Session
1213
+ */
1214
+ select?: Prisma.SessionSelectUpdateManyAndReturn<ExtArgs> | null;
1215
+ /**
1216
+ * Omit specific fields from the Session
1217
+ */
1218
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1219
+ /**
1220
+ * The data used to update Sessions.
1221
+ */
1222
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>;
1223
+ /**
1224
+ * Filter which Sessions to update
1225
+ */
1226
+ where?: Prisma.SessionWhereInput;
1227
+ /**
1228
+ * Limit how many Sessions to update.
1229
+ */
1230
+ limit?: number;
1231
+ /**
1232
+ * Choose, which related nodes to fetch as well
1233
+ */
1234
+ include?: Prisma.SessionIncludeUpdateManyAndReturn<ExtArgs> | null;
1235
+ };
1236
+ /**
1237
+ * Session upsert
1238
+ */
1239
+ export type SessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1240
+ /**
1241
+ * Select specific fields to fetch from the Session
1242
+ */
1243
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1244
+ /**
1245
+ * Omit specific fields from the Session
1246
+ */
1247
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1248
+ /**
1249
+ * Choose, which related nodes to fetch as well
1250
+ */
1251
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1252
+ /**
1253
+ * The filter to search for the Session to update in case it exists.
1254
+ */
1255
+ where: Prisma.SessionWhereUniqueInput;
1256
+ /**
1257
+ * In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
1258
+ */
1259
+ create: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>;
1260
+ /**
1261
+ * In case the Session was found with the provided `where` argument, update it with this data.
1262
+ */
1263
+ update: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>;
1264
+ };
1265
+ /**
1266
+ * Session delete
1267
+ */
1268
+ export type SessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1269
+ /**
1270
+ * Select specific fields to fetch from the Session
1271
+ */
1272
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1273
+ /**
1274
+ * Omit specific fields from the Session
1275
+ */
1276
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1277
+ /**
1278
+ * Choose, which related nodes to fetch as well
1279
+ */
1280
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1281
+ /**
1282
+ * Filter which Session to delete.
1283
+ */
1284
+ where: Prisma.SessionWhereUniqueInput;
1285
+ };
1286
+ /**
1287
+ * Session deleteMany
1288
+ */
1289
+ export type SessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1290
+ /**
1291
+ * Filter which Sessions to delete
1292
+ */
1293
+ where?: Prisma.SessionWhereInput;
1294
+ /**
1295
+ * Limit how many Sessions to delete.
1296
+ */
1297
+ limit?: number;
1298
+ };
1299
+ /**
1300
+ * Session without action
1301
+ */
1302
+ export type SessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1303
+ /**
1304
+ * Select specific fields to fetch from the Session
1305
+ */
1306
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1307
+ /**
1308
+ * Omit specific fields from the Session
1309
+ */
1310
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1311
+ /**
1312
+ * Choose, which related nodes to fetch as well
1313
+ */
1314
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1315
+ };
1316
+ export {};