@shophost/rest-api 2.0.30 → 2.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/package.json +18 -13
  2. package/scripts/minify.mjs +110 -0
  3. package/src/app.js +1 -53
  4. package/src/core/auth/auth.schema.js +1 -41
  5. package/src/core/auth/auth.util.js +1 -44
  6. package/src/core/auth/better-auth.lib.js +1 -100
  7. package/src/core/auth/generate-password-hash.util.d.ts +0 -3
  8. package/src/core/auth/generate-password-hash.util.js +1 -30
  9. package/src/core/auth/headers.schema.js +1 -22
  10. package/src/core/auth/user.schema.js +1 -30
  11. package/src/core/db/__generated__/client/browser.d.ts +0 -128
  12. package/src/core/db/__generated__/client/browser.js +1 -18
  13. package/src/core/db/__generated__/client/client.d.ts +0 -143
  14. package/src/core/db/__generated__/client/client.js +1 -35
  15. package/src/core/db/__generated__/client/commonInputTypes.js +1 -11
  16. package/src/core/db/__generated__/client/enums.js +1 -200
  17. package/src/core/db/__generated__/client/internal/class.d.ts +0 -343
  18. package/src/core/db/__generated__/client/internal/class.js +1 -55
  19. package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +0 -234
  20. package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -541
  21. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +0 -15
  22. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -512
  23. package/src/core/db/__generated__/client/models/Account.d.ts +0 -628
  24. package/src/core/db/__generated__/client/models/Account.js +1 -2
  25. package/src/core/db/__generated__/client/models/Address.d.ts +0 -701
  26. package/src/core/db/__generated__/client/models/Address.js +1 -2
  27. package/src/core/db/__generated__/client/models/Campaign.d.ts +0 -638
  28. package/src/core/db/__generated__/client/models/Campaign.js +1 -2
  29. package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +0 -634
  30. package/src/core/db/__generated__/client/models/ClosingTimes.js +1 -2
  31. package/src/core/db/__generated__/client/models/File.d.ts +0 -752
  32. package/src/core/db/__generated__/client/models/File.js +1 -2
  33. package/src/core/db/__generated__/client/models/Invitation.d.ts +0 -628
  34. package/src/core/db/__generated__/client/models/Invitation.js +1 -2
  35. package/src/core/db/__generated__/client/models/LegalEntity.d.ts +0 -652
  36. package/src/core/db/__generated__/client/models/LegalEntity.js +1 -2
  37. package/src/core/db/__generated__/client/models/Manufacturer.d.ts +0 -679
  38. package/src/core/db/__generated__/client/models/Manufacturer.js +1 -2
  39. package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +0 -628
  40. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +1 -2
  41. package/src/core/db/__generated__/client/models/Member.d.ts +0 -628
  42. package/src/core/db/__generated__/client/models/Member.js +1 -2
  43. package/src/core/db/__generated__/client/models/Modifier.d.ts +0 -662
  44. package/src/core/db/__generated__/client/models/Modifier.js +1 -2
  45. package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +0 -686
  46. package/src/core/db/__generated__/client/models/ModifierGroup.js +1 -2
  47. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +0 -628
  48. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +1 -2
  49. package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +0 -634
  50. package/src/core/db/__generated__/client/models/OpeningTimes.js +1 -2
  51. package/src/core/db/__generated__/client/models/Order.d.ts +0 -700
  52. package/src/core/db/__generated__/client/models/Order.js +1 -2
  53. package/src/core/db/__generated__/client/models/OrderItem.d.ts +0 -686
  54. package/src/core/db/__generated__/client/models/OrderItem.js +1 -2
  55. package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +0 -628
  56. package/src/core/db/__generated__/client/models/OrderItemTranslation.js +1 -2
  57. package/src/core/db/__generated__/client/models/Organization.d.ts +0 -811
  58. package/src/core/db/__generated__/client/models/Organization.js +1 -2
  59. package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +0 -676
  60. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +1 -2
  61. package/src/core/db/__generated__/client/models/Payment.d.ts +0 -668
  62. package/src/core/db/__generated__/client/models/Payment.js +1 -2
  63. package/src/core/db/__generated__/client/models/PaymentSession.d.ts +0 -638
  64. package/src/core/db/__generated__/client/models/PaymentSession.js +1 -2
  65. package/src/core/db/__generated__/client/models/Product.d.ts +0 -746
  66. package/src/core/db/__generated__/client/models/Product.js +1 -2
  67. package/src/core/db/__generated__/client/models/ProductCategory.d.ts +0 -689
  68. package/src/core/db/__generated__/client/models/ProductCategory.js +1 -2
  69. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +0 -628
  70. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +1 -2
  71. package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +0 -664
  72. package/src/core/db/__generated__/client/models/ProductSnapshot.js +1 -2
  73. package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +0 -628
  74. package/src/core/db/__generated__/client/models/ProductTranslation.js +1 -2
  75. package/src/core/db/__generated__/client/models/Reservation.d.ts +0 -650
  76. package/src/core/db/__generated__/client/models/Reservation.js +1 -2
  77. package/src/core/db/__generated__/client/models/Session.d.ts +0 -628
  78. package/src/core/db/__generated__/client/models/Session.js +1 -2
  79. package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +0 -679
  80. package/src/core/db/__generated__/client/models/ShippingMethod.js +1 -2
  81. package/src/core/db/__generated__/client/models/ShippingZone.d.ts +0 -638
  82. package/src/core/db/__generated__/client/models/ShippingZone.js +1 -2
  83. package/src/core/db/__generated__/client/models/User.d.ts +0 -736
  84. package/src/core/db/__generated__/client/models/User.js +1 -2
  85. package/src/core/db/__generated__/client/models/Verification.d.ts +0 -592
  86. package/src/core/db/__generated__/client/models/Verification.js +1 -2
  87. package/src/core/db/__generated__/client/models.js +1 -2
  88. package/src/core/db/index.js +1 -2
  89. package/src/core/exceptions/http-exception.js +1 -9
  90. package/src/core/hono/hono.js +1 -123
  91. package/src/core/lib/prisma.d.ts +9 -1
  92. package/src/core/lib/prisma.js +1 -11
  93. package/src/core/logging/pino.js +1 -5
  94. package/src/core/notifications/email.service.d.ts +0 -15
  95. package/src/core/notifications/email.service.js +1 -116
  96. package/src/core/openapi/openapi.lib.js +1 -26
  97. package/src/core/types/google-maps.types.js +1 -2
  98. package/src/core/utils/currency.util.js +1 -11
  99. package/src/core/utils/env.util.js +1 -8
  100. package/src/core/utils/object.util.d.ts +0 -10
  101. package/src/core/utils/object.util.js +1 -39
  102. package/src/core/utils/translations.util.js +0 -2
  103. package/src/core/utils/zod.util.d.ts +0 -12
  104. package/src/core/utils/zod.util.js +1 -85
  105. package/src/db.js +1 -3
  106. package/src/features/access/access.handler.js +1 -91
  107. package/src/features/access/access.route.js +1 -220
  108. package/src/features/access/access.schema.js +1 -108
  109. package/src/features/access/access.service.js +1 -294
  110. package/src/features/cart/cart.handler.js +1 -17
  111. package/src/features/cart/cart.route.js +1 -32
  112. package/src/features/cart/cart.schema.js +1 -39
  113. package/src/features/cart/cart.service.d.ts +0 -7
  114. package/src/features/cart/cart.service.js +1 -97
  115. package/src/features/cart/cart.util.js +1 -76
  116. package/src/features/file/file.handler.js +1 -23
  117. package/src/features/file/file.route.js +1 -34
  118. package/src/features/file/file.schema.js +1 -77
  119. package/src/features/file/file.service.d.ts +0 -6
  120. package/src/features/file/file.service.js +1 -66
  121. package/src/features/health/health.handler.js +1 -10
  122. package/src/features/health/health.route.js +1 -25
  123. package/src/features/index.js +1 -16
  124. package/src/features/location/location.handler.js +1 -25
  125. package/src/features/location/location.route.js +1 -56
  126. package/src/features/location/location.schema.js +1 -50
  127. package/src/features/location/location.service.d.ts +0 -3
  128. package/src/features/location/location.service.js +1 -141
  129. package/src/features/manufacturer/manufacturer.handler.js +1 -53
  130. package/src/features/manufacturer/manufacturer.route.js +1 -97
  131. package/src/features/manufacturer/manufacturer.schema.js +1 -125
  132. package/src/features/manufacturer/manufacturer.service.d.ts +0 -19
  133. package/src/features/manufacturer/manufacturer.service.js +1 -190
  134. package/src/features/order/emails/order-confirmation.email.js +1 -229
  135. package/src/features/order/emails/order-notification.email.js +1 -229
  136. package/src/features/order/fulfilment.schema.js +1 -3
  137. package/src/features/order/order.handler.js +1 -54
  138. package/src/features/order/order.route.js +1 -111
  139. package/src/features/order/order.schema.js +1 -158
  140. package/src/features/order/order.service.d.ts +0 -15
  141. package/src/features/order/order.service.js +1 -306
  142. package/src/features/order/recipient.schema.js +1 -38
  143. package/src/features/organization/legal-entity.schema.js +1 -83
  144. package/src/features/organization/organization-configuration.schema.js +1 -115
  145. package/src/features/organization/organization.handler.js +1 -48
  146. package/src/features/organization/organization.route.js +1 -84
  147. package/src/features/organization/organization.schema.js +1 -64
  148. package/src/features/organization/organization.service.d.ts +0 -15
  149. package/src/features/organization/organization.service.js +1 -334
  150. package/src/features/payment/payment.handler.js +1 -16
  151. package/src/features/payment/payment.route.js +1 -22
  152. package/src/features/payment/payment.schema.js +1 -46
  153. package/src/features/payment/payment.service.js +1 -100
  154. package/src/features/payment/stripe.service.js +1 -164
  155. package/src/features/product/product-modifier.schema.js +1 -84
  156. package/src/features/product/product.handler.js +1 -87
  157. package/src/features/product/product.route.js +1 -179
  158. package/src/features/product/product.schema.js +1 -143
  159. package/src/features/product/product.service.d.ts +0 -25
  160. package/src/features/product/product.service.js +1 -440
  161. package/src/features/product-category/product-category.handler.js +1 -59
  162. package/src/features/product-category/product-category.route.js +1 -139
  163. package/src/features/product-category/product-category.schema.js +1 -86
  164. package/src/features/product-category/product-category.service.d.ts +0 -22
  165. package/src/features/product-category/product-category.service.js +1 -220
  166. package/src/features/reservation/emails/reservation-cancellation.email.js +1 -82
  167. package/src/features/reservation/emails/reservation-confirmation.email.js +1 -82
  168. package/src/features/reservation/emails/reservation-notification.email.js +1 -93
  169. package/src/features/reservation/reservation.handler.js +1 -65
  170. package/src/features/reservation/reservation.route.js +1 -167
  171. package/src/features/reservation/reservation.schema.js +1 -51
  172. package/src/features/reservation/reservation.service.d.ts +0 -18
  173. package/src/features/reservation/reservation.service.js +1 -231
  174. package/src/features/shipping/shipping.handler.js +1 -32
  175. package/src/features/shipping/shipping.route.js +1 -51
  176. package/src/features/shipping/shipping.service.d.ts +0 -7
  177. package/src/features/shipping/shipping.service.js +1 -96
  178. package/src/features/shipping-method/shipping-method.handler.js +1 -60
  179. package/src/features/shipping-method/shipping-method.route.js +1 -144
  180. package/src/features/shipping-method/shipping-method.schema.js +1 -48
  181. package/src/features/shipping-method/shipping-method.service.d.ts +0 -25
  182. package/src/features/shipping-method/shipping-method.service.js +1 -229
  183. package/src/features/shipping-method/shipping-zone.schema.js +1 -31
  184. package/src/features/webhook/webhook.handler.js +1 -50
  185. package/src/features/webhook/webhook.route.js +1 -33
  186. package/src/index.js +1 -6
  187. package/src/integrations/next.js +1 -82
  188. package/src/schemas/address.schema.d.ts +0 -8
  189. package/src/schemas/address.schema.js +1 -112
  190. package/src/schemas/currency.schema.d.ts +0 -42
  191. package/src/schemas/currency.schema.js +1 -118
  192. package/src/schemas/error.schema.js +1 -12
  193. package/src/schemas/index.js +1 -29
  194. package/src/schemas/locales.schema.js +1 -238
  195. package/src/schemas/number.schema.js +1 -29
  196. package/src/schemas/pagination.schema.js +1 -54
  197. package/src/schemas/params.schema.js +1 -20
  198. package/src/schemas/queries.schema.js +1 -6
  199. package/src/test/global-setup.d.ts +1 -0
  200. package/src/test/global-setup.js +1 -0
  201. package/src/test/integration/api-fixtures.d.ts +4 -16
  202. package/src/test/integration/api-fixtures.js +1 -225
  203. package/src/test/integration/seed.d.ts +81 -0
  204. package/src/test/integration/seed.js +1 -0
  205. package/src/test/integration/test-helpers.d.ts +107 -924
  206. package/src/test/integration/test-helpers.js +1 -1100
  207. package/src/test/setup-test-env.d.ts +1 -1
  208. package/src/test/setup-test-env.js +1 -29
  209. package/src/app.js.map +0 -1
  210. package/src/core/auth/auth.schema.js.map +0 -1
  211. package/src/core/auth/auth.util.js.map +0 -1
  212. package/src/core/auth/better-auth.lib.js.map +0 -1
  213. package/src/core/auth/generate-password-hash.util.js.map +0 -1
  214. package/src/core/auth/headers.schema.js.map +0 -1
  215. package/src/core/auth/user.schema.js.map +0 -1
  216. package/src/core/db/__generated__/client/browser.js.map +0 -1
  217. package/src/core/db/__generated__/client/client.js.map +0 -1
  218. package/src/core/db/__generated__/client/commonInputTypes.js.map +0 -1
  219. package/src/core/db/__generated__/client/enums.js.map +0 -1
  220. package/src/core/db/__generated__/client/internal/class.js.map +0 -1
  221. package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +0 -1
  222. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +0 -1
  223. package/src/core/db/__generated__/client/models/Account.js.map +0 -1
  224. package/src/core/db/__generated__/client/models/Address.js.map +0 -1
  225. package/src/core/db/__generated__/client/models/Campaign.js.map +0 -1
  226. package/src/core/db/__generated__/client/models/ClosingTimes.js.map +0 -1
  227. package/src/core/db/__generated__/client/models/File.js.map +0 -1
  228. package/src/core/db/__generated__/client/models/Invitation.js.map +0 -1
  229. package/src/core/db/__generated__/client/models/LegalEntity.js.map +0 -1
  230. package/src/core/db/__generated__/client/models/Manufacturer.js.map +0 -1
  231. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +0 -1
  232. package/src/core/db/__generated__/client/models/Member.js.map +0 -1
  233. package/src/core/db/__generated__/client/models/Modifier.js.map +0 -1
  234. package/src/core/db/__generated__/client/models/ModifierGroup.js.map +0 -1
  235. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +0 -1
  236. package/src/core/db/__generated__/client/models/OpeningTimes.js.map +0 -1
  237. package/src/core/db/__generated__/client/models/Order.js.map +0 -1
  238. package/src/core/db/__generated__/client/models/OrderItem.js.map +0 -1
  239. package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +0 -1
  240. package/src/core/db/__generated__/client/models/Organization.js.map +0 -1
  241. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +0 -1
  242. package/src/core/db/__generated__/client/models/Payment.js.map +0 -1
  243. package/src/core/db/__generated__/client/models/PaymentSession.js.map +0 -1
  244. package/src/core/db/__generated__/client/models/Product.js.map +0 -1
  245. package/src/core/db/__generated__/client/models/ProductCategory.js.map +0 -1
  246. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +0 -1
  247. package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +0 -1
  248. package/src/core/db/__generated__/client/models/ProductTranslation.js.map +0 -1
  249. package/src/core/db/__generated__/client/models/Reservation.js.map +0 -1
  250. package/src/core/db/__generated__/client/models/Session.js.map +0 -1
  251. package/src/core/db/__generated__/client/models/ShippingMethod.js.map +0 -1
  252. package/src/core/db/__generated__/client/models/ShippingZone.js.map +0 -1
  253. package/src/core/db/__generated__/client/models/User.js.map +0 -1
  254. package/src/core/db/__generated__/client/models/Verification.js.map +0 -1
  255. package/src/core/db/__generated__/client/models.js.map +0 -1
  256. package/src/core/db/index.js.map +0 -1
  257. package/src/core/exceptions/http-exception.js.map +0 -1
  258. package/src/core/hono/hono.js.map +0 -1
  259. package/src/core/lib/prisma.js.map +0 -1
  260. package/src/core/logging/pino.js.map +0 -1
  261. package/src/core/notifications/email.service.js.map +0 -1
  262. package/src/core/openapi/openapi.lib.js.map +0 -1
  263. package/src/core/types/google-maps.types.js.map +0 -1
  264. package/src/core/utils/currency.util.js.map +0 -1
  265. package/src/core/utils/env.util.js.map +0 -1
  266. package/src/core/utils/object.util.js.map +0 -1
  267. package/src/core/utils/translations.util.js.map +0 -1
  268. package/src/core/utils/zod.util.js.map +0 -1
  269. package/src/db.js.map +0 -1
  270. package/src/features/access/access.handler.js.map +0 -1
  271. package/src/features/access/access.route.js.map +0 -1
  272. package/src/features/access/access.schema.js.map +0 -1
  273. package/src/features/access/access.service.js.map +0 -1
  274. package/src/features/cart/cart.handler.js.map +0 -1
  275. package/src/features/cart/cart.route.js.map +0 -1
  276. package/src/features/cart/cart.schema.js.map +0 -1
  277. package/src/features/cart/cart.service.js.map +0 -1
  278. package/src/features/cart/cart.util.js.map +0 -1
  279. package/src/features/file/file.handler.js.map +0 -1
  280. package/src/features/file/file.route.js.map +0 -1
  281. package/src/features/file/file.schema.js.map +0 -1
  282. package/src/features/file/file.service.js.map +0 -1
  283. package/src/features/health/health.handler.js.map +0 -1
  284. package/src/features/health/health.route.js.map +0 -1
  285. package/src/features/index.js.map +0 -1
  286. package/src/features/location/location.handler.js.map +0 -1
  287. package/src/features/location/location.route.js.map +0 -1
  288. package/src/features/location/location.schema.js.map +0 -1
  289. package/src/features/location/location.service.js.map +0 -1
  290. package/src/features/manufacturer/manufacturer.handler.js.map +0 -1
  291. package/src/features/manufacturer/manufacturer.route.js.map +0 -1
  292. package/src/features/manufacturer/manufacturer.schema.js.map +0 -1
  293. package/src/features/manufacturer/manufacturer.service.js.map +0 -1
  294. package/src/features/order/emails/order-confirmation.email.js.map +0 -1
  295. package/src/features/order/emails/order-notification.email.js.map +0 -1
  296. package/src/features/order/fulfilment.schema.js.map +0 -1
  297. package/src/features/order/order.handler.js.map +0 -1
  298. package/src/features/order/order.route.js.map +0 -1
  299. package/src/features/order/order.schema.js.map +0 -1
  300. package/src/features/order/order.service.js.map +0 -1
  301. package/src/features/order/recipient.schema.js.map +0 -1
  302. package/src/features/organization/legal-entity.schema.js.map +0 -1
  303. package/src/features/organization/organization-configuration.schema.js.map +0 -1
  304. package/src/features/organization/organization.handler.js.map +0 -1
  305. package/src/features/organization/organization.route.js.map +0 -1
  306. package/src/features/organization/organization.schema.js.map +0 -1
  307. package/src/features/organization/organization.service.js.map +0 -1
  308. package/src/features/payment/payment.handler.js.map +0 -1
  309. package/src/features/payment/payment.route.js.map +0 -1
  310. package/src/features/payment/payment.schema.js.map +0 -1
  311. package/src/features/payment/payment.service.js.map +0 -1
  312. package/src/features/payment/stripe.service.js.map +0 -1
  313. package/src/features/product/product-modifier.schema.js.map +0 -1
  314. package/src/features/product/product.handler.js.map +0 -1
  315. package/src/features/product/product.route.js.map +0 -1
  316. package/src/features/product/product.schema.js.map +0 -1
  317. package/src/features/product/product.service.js.map +0 -1
  318. package/src/features/product-category/product-category.handler.js.map +0 -1
  319. package/src/features/product-category/product-category.route.js.map +0 -1
  320. package/src/features/product-category/product-category.schema.js.map +0 -1
  321. package/src/features/product-category/product-category.service.js.map +0 -1
  322. package/src/features/reservation/emails/reservation-cancellation.email.js.map +0 -1
  323. package/src/features/reservation/emails/reservation-confirmation.email.js.map +0 -1
  324. package/src/features/reservation/emails/reservation-notification.email.js.map +0 -1
  325. package/src/features/reservation/reservation.handler.js.map +0 -1
  326. package/src/features/reservation/reservation.route.js.map +0 -1
  327. package/src/features/reservation/reservation.schema.js.map +0 -1
  328. package/src/features/reservation/reservation.service.js.map +0 -1
  329. package/src/features/shipping/shipping.handler.js.map +0 -1
  330. package/src/features/shipping/shipping.route.js.map +0 -1
  331. package/src/features/shipping/shipping.service.js.map +0 -1
  332. package/src/features/shipping-method/shipping-method.handler.js.map +0 -1
  333. package/src/features/shipping-method/shipping-method.route.js.map +0 -1
  334. package/src/features/shipping-method/shipping-method.schema.js.map +0 -1
  335. package/src/features/shipping-method/shipping-method.service.js.map +0 -1
  336. package/src/features/shipping-method/shipping-zone.schema.js.map +0 -1
  337. package/src/features/webhook/webhook.handler.js.map +0 -1
  338. package/src/features/webhook/webhook.route.js.map +0 -1
  339. package/src/index.js.map +0 -1
  340. package/src/integrations/next.js.map +0 -1
  341. package/src/schemas/address.schema.js.map +0 -1
  342. package/src/schemas/currency.schema.js.map +0 -1
  343. package/src/schemas/error.schema.js.map +0 -1
  344. package/src/schemas/index.js.map +0 -1
  345. package/src/schemas/locales.schema.js.map +0 -1
  346. package/src/schemas/number.schema.js.map +0 -1
  347. package/src/schemas/pagination.schema.js.map +0 -1
  348. package/src/schemas/params.schema.js.map +0 -1
  349. package/src/schemas/queries.schema.js.map +0 -1
  350. package/src/test/integration/api-fixtures.js.map +0 -1
  351. package/src/test/integration/test-helpers.js.map +0 -1
  352. package/src/test/setup-test-env.js.map +0 -1
@@ -1,9 +1,5 @@
1
1
  import type * as runtime from "@prisma/client/runtime/client";
2
2
  import type * as Prisma from "../internal/prismaNamespace";
3
- /**
4
- * Model Invitation
5
- *
6
- */
7
3
  export type InvitationModel = runtime.Types.Result.DefaultSelection<Prisma.$InvitationPayload>;
8
4
  export type AggregateInvitation = {
9
5
  _count: InvitationCountAggregateOutputType | null;
@@ -67,51 +63,13 @@ export type InvitationCountAggregateInputType = {
67
63
  _all?: true;
68
64
  };
69
65
  export type InvitationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
70
- /**
71
- * Filter which Invitation to aggregate.
72
- */
73
66
  where?: Prisma.InvitationWhereInput;
74
- /**
75
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
76
- *
77
- * Determine the order of Invitations to fetch.
78
- */
79
67
  orderBy?: Prisma.InvitationOrderByWithRelationInput | Prisma.InvitationOrderByWithRelationInput[];
80
- /**
81
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
82
- *
83
- * Sets the start position
84
- */
85
68
  cursor?: Prisma.InvitationWhereUniqueInput;
86
- /**
87
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88
- *
89
- * Take `±n` Invitations from the position of the cursor.
90
- */
91
69
  take?: number;
92
- /**
93
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
- *
95
- * Skip the first `n` Invitations.
96
- */
97
70
  skip?: number;
98
- /**
99
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
100
- *
101
- * Count returned Invitations
102
- **/
103
71
  _count?: true | InvitationCountAggregateInputType;
104
- /**
105
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
- *
107
- * Select which fields to find the minimum value
108
- **/
109
72
  _min?: InvitationMinAggregateInputType;
110
- /**
111
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
- *
113
- * Select which fields to find the maximum value
114
- **/
115
73
  _max?: InvitationMaxAggregateInputType;
116
74
  };
117
75
  export type GetInvitationAggregateType<T extends InvitationAggregateArgs> = {
@@ -611,290 +569,22 @@ export interface InvitationDelegate<ExtArgs extends runtime.Types.Extensions.Int
611
569
  name: 'Invitation';
612
570
  };
613
571
  };
614
- /**
615
- * Find zero or one Invitation that matches the filter.
616
- * @param {InvitationFindUniqueArgs} args - Arguments to find a Invitation
617
- * @example
618
- * // Get one Invitation
619
- * const invitation = await prisma.invitation.findUnique({
620
- * where: {
621
- * // ... provide filter here
622
- * }
623
- * })
624
- */
625
572
  findUnique<T extends InvitationFindUniqueArgs>(args: Prisma.SelectSubset<T, InvitationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
626
- /**
627
- * Find one Invitation that matches the filter or throw an error with `error.code='P2025'`
628
- * if no matches were found.
629
- * @param {InvitationFindUniqueOrThrowArgs} args - Arguments to find a Invitation
630
- * @example
631
- * // Get one Invitation
632
- * const invitation = await prisma.invitation.findUniqueOrThrow({
633
- * where: {
634
- * // ... provide filter here
635
- * }
636
- * })
637
- */
638
573
  findUniqueOrThrow<T extends InvitationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InvitationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
639
- /**
640
- * Find the first Invitation that matches the filter.
641
- * Note, that providing `undefined` is treated as the value not being there.
642
- * Read more here: https://pris.ly/d/null-undefined
643
- * @param {InvitationFindFirstArgs} args - Arguments to find a Invitation
644
- * @example
645
- * // Get one Invitation
646
- * const invitation = await prisma.invitation.findFirst({
647
- * where: {
648
- * // ... provide filter here
649
- * }
650
- * })
651
- */
652
574
  findFirst<T extends InvitationFindFirstArgs>(args?: Prisma.SelectSubset<T, InvitationFindFirstArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
653
- /**
654
- * Find the first Invitation that matches the filter or
655
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
656
- * Note, that providing `undefined` is treated as the value not being there.
657
- * Read more here: https://pris.ly/d/null-undefined
658
- * @param {InvitationFindFirstOrThrowArgs} args - Arguments to find a Invitation
659
- * @example
660
- * // Get one Invitation
661
- * const invitation = await prisma.invitation.findFirstOrThrow({
662
- * where: {
663
- * // ... provide filter here
664
- * }
665
- * })
666
- */
667
575
  findFirstOrThrow<T extends InvitationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InvitationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
668
- /**
669
- * Find zero or more Invitations that matches the filter.
670
- * Note, that providing `undefined` is treated as the value not being there.
671
- * Read more here: https://pris.ly/d/null-undefined
672
- * @param {InvitationFindManyArgs} args - Arguments to filter and select certain fields only.
673
- * @example
674
- * // Get all Invitations
675
- * const invitations = await prisma.invitation.findMany()
676
- *
677
- * // Get first 10 Invitations
678
- * const invitations = await prisma.invitation.findMany({ take: 10 })
679
- *
680
- * // Only select the `id`
681
- * const invitationWithIdOnly = await prisma.invitation.findMany({ select: { id: true } })
682
- *
683
- */
684
576
  findMany<T extends InvitationFindManyArgs>(args?: Prisma.SelectSubset<T, InvitationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
685
- /**
686
- * Create a Invitation.
687
- * @param {InvitationCreateArgs} args - Arguments to create a Invitation.
688
- * @example
689
- * // Create one Invitation
690
- * const Invitation = await prisma.invitation.create({
691
- * data: {
692
- * // ... data to create a Invitation
693
- * }
694
- * })
695
- *
696
- */
697
577
  create<T extends InvitationCreateArgs>(args: Prisma.SelectSubset<T, InvitationCreateArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
698
- /**
699
- * Create many Invitations.
700
- * @param {InvitationCreateManyArgs} args - Arguments to create many Invitations.
701
- * @example
702
- * // Create many Invitations
703
- * const invitation = await prisma.invitation.createMany({
704
- * data: [
705
- * // ... provide data here
706
- * ]
707
- * })
708
- *
709
- */
710
578
  createMany<T extends InvitationCreateManyArgs>(args?: Prisma.SelectSubset<T, InvitationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
711
- /**
712
- * Create many Invitations and returns the data saved in the database.
713
- * @param {InvitationCreateManyAndReturnArgs} args - Arguments to create many Invitations.
714
- * @example
715
- * // Create many Invitations
716
- * const invitation = await prisma.invitation.createManyAndReturn({
717
- * data: [
718
- * // ... provide data here
719
- * ]
720
- * })
721
- *
722
- * // Create many Invitations and only return the `id`
723
- * const invitationWithIdOnly = await prisma.invitation.createManyAndReturn({
724
- * select: { id: true },
725
- * data: [
726
- * // ... provide data here
727
- * ]
728
- * })
729
- * Note, that providing `undefined` is treated as the value not being there.
730
- * Read more here: https://pris.ly/d/null-undefined
731
- *
732
- */
733
579
  createManyAndReturn<T extends InvitationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, InvitationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
734
- /**
735
- * Delete a Invitation.
736
- * @param {InvitationDeleteArgs} args - Arguments to delete one Invitation.
737
- * @example
738
- * // Delete one Invitation
739
- * const Invitation = await prisma.invitation.delete({
740
- * where: {
741
- * // ... filter to delete one Invitation
742
- * }
743
- * })
744
- *
745
- */
746
580
  delete<T extends InvitationDeleteArgs>(args: Prisma.SelectSubset<T, InvitationDeleteArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
747
- /**
748
- * Update one Invitation.
749
- * @param {InvitationUpdateArgs} args - Arguments to update one Invitation.
750
- * @example
751
- * // Update one Invitation
752
- * const invitation = await prisma.invitation.update({
753
- * where: {
754
- * // ... provide filter here
755
- * },
756
- * data: {
757
- * // ... provide data here
758
- * }
759
- * })
760
- *
761
- */
762
581
  update<T extends InvitationUpdateArgs>(args: Prisma.SelectSubset<T, InvitationUpdateArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
763
- /**
764
- * Delete zero or more Invitations.
765
- * @param {InvitationDeleteManyArgs} args - Arguments to filter Invitations to delete.
766
- * @example
767
- * // Delete a few Invitations
768
- * const { count } = await prisma.invitation.deleteMany({
769
- * where: {
770
- * // ... provide filter here
771
- * }
772
- * })
773
- *
774
- */
775
582
  deleteMany<T extends InvitationDeleteManyArgs>(args?: Prisma.SelectSubset<T, InvitationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
776
- /**
777
- * Update zero or more Invitations.
778
- * Note, that providing `undefined` is treated as the value not being there.
779
- * Read more here: https://pris.ly/d/null-undefined
780
- * @param {InvitationUpdateManyArgs} args - Arguments to update one or more rows.
781
- * @example
782
- * // Update many Invitations
783
- * const invitation = await prisma.invitation.updateMany({
784
- * where: {
785
- * // ... provide filter here
786
- * },
787
- * data: {
788
- * // ... provide data here
789
- * }
790
- * })
791
- *
792
- */
793
583
  updateMany<T extends InvitationUpdateManyArgs>(args: Prisma.SelectSubset<T, InvitationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
794
- /**
795
- * Update zero or more Invitations and returns the data updated in the database.
796
- * @param {InvitationUpdateManyAndReturnArgs} args - Arguments to update many Invitations.
797
- * @example
798
- * // Update many Invitations
799
- * const invitation = await prisma.invitation.updateManyAndReturn({
800
- * where: {
801
- * // ... provide filter here
802
- * },
803
- * data: [
804
- * // ... provide data here
805
- * ]
806
- * })
807
- *
808
- * // Update zero or more Invitations and only return the `id`
809
- * const invitationWithIdOnly = await prisma.invitation.updateManyAndReturn({
810
- * select: { id: true },
811
- * where: {
812
- * // ... provide filter here
813
- * },
814
- * data: [
815
- * // ... provide data here
816
- * ]
817
- * })
818
- * Note, that providing `undefined` is treated as the value not being there.
819
- * Read more here: https://pris.ly/d/null-undefined
820
- *
821
- */
822
584
  updateManyAndReturn<T extends InvitationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, InvitationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
823
- /**
824
- * Create or update one Invitation.
825
- * @param {InvitationUpsertArgs} args - Arguments to update or create a Invitation.
826
- * @example
827
- * // Update or create a Invitation
828
- * const invitation = await prisma.invitation.upsert({
829
- * create: {
830
- * // ... data to create a Invitation
831
- * },
832
- * update: {
833
- * // ... in case it already exists, update
834
- * },
835
- * where: {
836
- * // ... the filter for the Invitation we want to update
837
- * }
838
- * })
839
- */
840
585
  upsert<T extends InvitationUpsertArgs>(args: Prisma.SelectSubset<T, InvitationUpsertArgs<ExtArgs>>): Prisma.Prisma__InvitationClient<runtime.Types.Result.GetResult<Prisma.$InvitationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
841
- /**
842
- * Count the number of Invitations.
843
- * Note, that providing `undefined` is treated as the value not being there.
844
- * Read more here: https://pris.ly/d/null-undefined
845
- * @param {InvitationCountArgs} args - Arguments to filter Invitations to count.
846
- * @example
847
- * // Count the number of Invitations
848
- * const count = await prisma.invitation.count({
849
- * where: {
850
- * // ... the filter for the Invitations we want to count
851
- * }
852
- * })
853
- **/
854
586
  count<T extends InvitationCountArgs>(args?: Prisma.Subset<T, InvitationCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], InvitationCountAggregateOutputType> : number>;
855
- /**
856
- * Allows you to perform aggregations operations on a Invitation.
857
- * Note, that providing `undefined` is treated as the value not being there.
858
- * Read more here: https://pris.ly/d/null-undefined
859
- * @param {InvitationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
860
- * @example
861
- * // Ordered by age ascending
862
- * // Where email contains prisma.io
863
- * // Limited to the 10 users
864
- * const aggregations = await prisma.user.aggregate({
865
- * _avg: {
866
- * age: true,
867
- * },
868
- * where: {
869
- * email: {
870
- * contains: "prisma.io",
871
- * },
872
- * },
873
- * orderBy: {
874
- * age: "asc",
875
- * },
876
- * take: 10,
877
- * })
878
- **/
879
587
  aggregate<T extends InvitationAggregateArgs>(args: Prisma.Subset<T, InvitationAggregateArgs>): Prisma.PrismaPromise<GetInvitationAggregateType<T>>;
880
- /**
881
- * Group by Invitation.
882
- * Note, that providing `undefined` is treated as the value not being there.
883
- * Read more here: https://pris.ly/d/null-undefined
884
- * @param {InvitationGroupByArgs} args - Group by arguments.
885
- * @example
886
- * // Group by city, order by createdAt, get count
887
- * const result = await prisma.user.groupBy({
888
- * by: ['city', 'createdAt'],
889
- * orderBy: {
890
- * createdAt: true
891
- * },
892
- * _count: {
893
- * _all: true
894
- * },
895
- * })
896
- *
897
- **/
898
588
  groupBy<T extends InvitationGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
899
589
  orderBy: InvitationGroupByArgs['orderBy'];
900
590
  } : {
@@ -913,45 +603,16 @@ export interface InvitationDelegate<ExtArgs extends runtime.Types.Extensions.Int
913
603
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
914
604
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
915
605
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, InvitationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInvitationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
916
- /**
917
- * Fields of the Invitation model
918
- */
919
606
  readonly fields: InvitationFieldRefs;
920
607
  }
921
- /**
922
- * The delegate class that acts as a "Promise-like" for Invitation.
923
- * Why is this prefixed with `Prisma__`?
924
- * Because we want to prevent naming conflicts as mentioned in
925
- * https://github.com/prisma/prisma-client-js/issues/707
926
- */
927
608
  export interface Prisma__InvitationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
928
609
  readonly [Symbol.toStringTag]: "PrismaPromise";
929
610
  organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
930
611
  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>;
931
- /**
932
- * Attaches callbacks for the resolution and/or rejection of the Promise.
933
- * @param onfulfilled The callback to execute when the Promise is resolved.
934
- * @param onrejected The callback to execute when the Promise is rejected.
935
- * @returns A Promise for the completion of which ever callback is executed.
936
- */
937
612
  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>;
938
- /**
939
- * Attaches a callback for only the rejection of the Promise.
940
- * @param onrejected The callback to execute when the Promise is rejected.
941
- * @returns A Promise for the completion of the callback.
942
- */
943
613
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
944
- /**
945
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
946
- * resolved value cannot be modified from the callback.
947
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
948
- * @returns A Promise for the completion of the callback.
949
- */
950
614
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
951
615
  }
952
- /**
953
- * Fields of the Invitation model
954
- */
955
616
  export interface InvitationFieldRefs {
956
617
  readonly id: Prisma.FieldRef<"Invitation", 'String'>;
957
618
  readonly organizationId: Prisma.FieldRef<"Invitation", 'String'>;
@@ -961,398 +622,109 @@ export interface InvitationFieldRefs {
961
622
  readonly expiresAt: Prisma.FieldRef<"Invitation", 'DateTime'>;
962
623
  readonly inviterId: Prisma.FieldRef<"Invitation", 'String'>;
963
624
  }
964
- /**
965
- * Invitation findUnique
966
- */
967
625
  export type InvitationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
968
- /**
969
- * Select specific fields to fetch from the Invitation
970
- */
971
626
  select?: Prisma.InvitationSelect<ExtArgs> | null;
972
- /**
973
- * Omit specific fields from the Invitation
974
- */
975
627
  omit?: Prisma.InvitationOmit<ExtArgs> | null;
976
- /**
977
- * Choose, which related nodes to fetch as well
978
- */
979
628
  include?: Prisma.InvitationInclude<ExtArgs> | null;
980
- /**
981
- * Filter, which Invitation to fetch.
982
- */
983
629
  where: Prisma.InvitationWhereUniqueInput;
984
630
  };
985
- /**
986
- * Invitation findUniqueOrThrow
987
- */
988
631
  export type InvitationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
989
- /**
990
- * Select specific fields to fetch from the Invitation
991
- */
992
632
  select?: Prisma.InvitationSelect<ExtArgs> | null;
993
- /**
994
- * Omit specific fields from the Invitation
995
- */
996
633
  omit?: Prisma.InvitationOmit<ExtArgs> | null;
997
- /**
998
- * Choose, which related nodes to fetch as well
999
- */
1000
634
  include?: Prisma.InvitationInclude<ExtArgs> | null;
1001
- /**
1002
- * Filter, which Invitation to fetch.
1003
- */
1004
635
  where: Prisma.InvitationWhereUniqueInput;
1005
636
  };
1006
- /**
1007
- * Invitation findFirst
1008
- */
1009
637
  export type InvitationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1010
- /**
1011
- * Select specific fields to fetch from the Invitation
1012
- */
1013
638
  select?: Prisma.InvitationSelect<ExtArgs> | null;
1014
- /**
1015
- * Omit specific fields from the Invitation
1016
- */
1017
639
  omit?: Prisma.InvitationOmit<ExtArgs> | null;
1018
- /**
1019
- * Choose, which related nodes to fetch as well
1020
- */
1021
640
  include?: Prisma.InvitationInclude<ExtArgs> | null;
1022
- /**
1023
- * Filter, which Invitation to fetch.
1024
- */
1025
641
  where?: Prisma.InvitationWhereInput;
1026
- /**
1027
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1028
- *
1029
- * Determine the order of Invitations to fetch.
1030
- */
1031
642
  orderBy?: Prisma.InvitationOrderByWithRelationInput | Prisma.InvitationOrderByWithRelationInput[];
1032
- /**
1033
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1034
- *
1035
- * Sets the position for searching for Invitations.
1036
- */
1037
643
  cursor?: Prisma.InvitationWhereUniqueInput;
1038
- /**
1039
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1040
- *
1041
- * Take `±n` Invitations from the position of the cursor.
1042
- */
1043
644
  take?: number;
1044
- /**
1045
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1046
- *
1047
- * Skip the first `n` Invitations.
1048
- */
1049
645
  skip?: number;
1050
- /**
1051
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1052
- *
1053
- * Filter by unique combinations of Invitations.
1054
- */
1055
646
  distinct?: Prisma.InvitationScalarFieldEnum | Prisma.InvitationScalarFieldEnum[];
1056
647
  };
1057
- /**
1058
- * Invitation findFirstOrThrow
1059
- */
1060
648
  export type InvitationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1061
- /**
1062
- * Select specific fields to fetch from the Invitation
1063
- */
1064
649
  select?: Prisma.InvitationSelect<ExtArgs> | null;
1065
- /**
1066
- * Omit specific fields from the Invitation
1067
- */
1068
650
  omit?: Prisma.InvitationOmit<ExtArgs> | null;
1069
- /**
1070
- * Choose, which related nodes to fetch as well
1071
- */
1072
651
  include?: Prisma.InvitationInclude<ExtArgs> | null;
1073
- /**
1074
- * Filter, which Invitation to fetch.
1075
- */
1076
652
  where?: Prisma.InvitationWhereInput;
1077
- /**
1078
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1079
- *
1080
- * Determine the order of Invitations to fetch.
1081
- */
1082
653
  orderBy?: Prisma.InvitationOrderByWithRelationInput | Prisma.InvitationOrderByWithRelationInput[];
1083
- /**
1084
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1085
- *
1086
- * Sets the position for searching for Invitations.
1087
- */
1088
654
  cursor?: Prisma.InvitationWhereUniqueInput;
1089
- /**
1090
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1091
- *
1092
- * Take `±n` Invitations from the position of the cursor.
1093
- */
1094
655
  take?: number;
1095
- /**
1096
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1097
- *
1098
- * Skip the first `n` Invitations.
1099
- */
1100
656
  skip?: number;
1101
- /**
1102
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1103
- *
1104
- * Filter by unique combinations of Invitations.
1105
- */
1106
657
  distinct?: Prisma.InvitationScalarFieldEnum | Prisma.InvitationScalarFieldEnum[];
1107
658
  };
1108
- /**
1109
- * Invitation findMany
1110
- */
1111
659
  export type InvitationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1112
- /**
1113
- * Select specific fields to fetch from the Invitation
1114
- */
1115
660
  select?: Prisma.InvitationSelect<ExtArgs> | null;
1116
- /**
1117
- * Omit specific fields from the Invitation
1118
- */
1119
661
  omit?: Prisma.InvitationOmit<ExtArgs> | null;
1120
- /**
1121
- * Choose, which related nodes to fetch as well
1122
- */
1123
662
  include?: Prisma.InvitationInclude<ExtArgs> | null;
1124
- /**
1125
- * Filter, which Invitations to fetch.
1126
- */
1127
663
  where?: Prisma.InvitationWhereInput;
1128
- /**
1129
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1130
- *
1131
- * Determine the order of Invitations to fetch.
1132
- */
1133
664
  orderBy?: Prisma.InvitationOrderByWithRelationInput | Prisma.InvitationOrderByWithRelationInput[];
1134
- /**
1135
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1136
- *
1137
- * Sets the position for listing Invitations.
1138
- */
1139
665
  cursor?: Prisma.InvitationWhereUniqueInput;
1140
- /**
1141
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1142
- *
1143
- * Take `±n` Invitations from the position of the cursor.
1144
- */
1145
666
  take?: number;
1146
- /**
1147
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1148
- *
1149
- * Skip the first `n` Invitations.
1150
- */
1151
667
  skip?: number;
1152
668
  distinct?: Prisma.InvitationScalarFieldEnum | Prisma.InvitationScalarFieldEnum[];
1153
669
  };
1154
- /**
1155
- * Invitation create
1156
- */
1157
670
  export type InvitationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1158
- /**
1159
- * Select specific fields to fetch from the Invitation
1160
- */
1161
671
  select?: Prisma.InvitationSelect<ExtArgs> | null;
1162
- /**
1163
- * Omit specific fields from the Invitation
1164
- */
1165
672
  omit?: Prisma.InvitationOmit<ExtArgs> | null;
1166
- /**
1167
- * Choose, which related nodes to fetch as well
1168
- */
1169
673
  include?: Prisma.InvitationInclude<ExtArgs> | null;
1170
- /**
1171
- * The data needed to create a Invitation.
1172
- */
1173
674
  data: Prisma.XOR<Prisma.InvitationCreateInput, Prisma.InvitationUncheckedCreateInput>;
1174
675
  };
1175
- /**
1176
- * Invitation createMany
1177
- */
1178
676
  export type InvitationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1179
- /**
1180
- * The data used to create many Invitations.
1181
- */
1182
677
  data: Prisma.InvitationCreateManyInput | Prisma.InvitationCreateManyInput[];
1183
678
  skipDuplicates?: boolean;
1184
679
  };
1185
- /**
1186
- * Invitation createManyAndReturn
1187
- */
1188
680
  export type InvitationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1189
- /**
1190
- * Select specific fields to fetch from the Invitation
1191
- */
1192
681
  select?: Prisma.InvitationSelectCreateManyAndReturn<ExtArgs> | null;
1193
- /**
1194
- * Omit specific fields from the Invitation
1195
- */
1196
682
  omit?: Prisma.InvitationOmit<ExtArgs> | null;
1197
- /**
1198
- * The data used to create many Invitations.
1199
- */
1200
683
  data: Prisma.InvitationCreateManyInput | Prisma.InvitationCreateManyInput[];
1201
684
  skipDuplicates?: boolean;
1202
- /**
1203
- * Choose, which related nodes to fetch as well
1204
- */
1205
685
  include?: Prisma.InvitationIncludeCreateManyAndReturn<ExtArgs> | null;
1206
686
  };
1207
- /**
1208
- * Invitation update
1209
- */
1210
687
  export type InvitationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1211
- /**
1212
- * Select specific fields to fetch from the Invitation
1213
- */
1214
688
  select?: Prisma.InvitationSelect<ExtArgs> | null;
1215
- /**
1216
- * Omit specific fields from the Invitation
1217
- */
1218
689
  omit?: Prisma.InvitationOmit<ExtArgs> | null;
1219
- /**
1220
- * Choose, which related nodes to fetch as well
1221
- */
1222
690
  include?: Prisma.InvitationInclude<ExtArgs> | null;
1223
- /**
1224
- * The data needed to update a Invitation.
1225
- */
1226
691
  data: Prisma.XOR<Prisma.InvitationUpdateInput, Prisma.InvitationUncheckedUpdateInput>;
1227
- /**
1228
- * Choose, which Invitation to update.
1229
- */
1230
692
  where: Prisma.InvitationWhereUniqueInput;
1231
693
  };
1232
- /**
1233
- * Invitation updateMany
1234
- */
1235
694
  export type InvitationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1236
- /**
1237
- * The data used to update Invitations.
1238
- */
1239
695
  data: Prisma.XOR<Prisma.InvitationUpdateManyMutationInput, Prisma.InvitationUncheckedUpdateManyInput>;
1240
- /**
1241
- * Filter which Invitations to update
1242
- */
1243
696
  where?: Prisma.InvitationWhereInput;
1244
- /**
1245
- * Limit how many Invitations to update.
1246
- */
1247
697
  limit?: number;
1248
698
  };
1249
- /**
1250
- * Invitation updateManyAndReturn
1251
- */
1252
699
  export type InvitationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1253
- /**
1254
- * Select specific fields to fetch from the Invitation
1255
- */
1256
700
  select?: Prisma.InvitationSelectUpdateManyAndReturn<ExtArgs> | null;
1257
- /**
1258
- * Omit specific fields from the Invitation
1259
- */
1260
701
  omit?: Prisma.InvitationOmit<ExtArgs> | null;
1261
- /**
1262
- * The data used to update Invitations.
1263
- */
1264
702
  data: Prisma.XOR<Prisma.InvitationUpdateManyMutationInput, Prisma.InvitationUncheckedUpdateManyInput>;
1265
- /**
1266
- * Filter which Invitations to update
1267
- */
1268
703
  where?: Prisma.InvitationWhereInput;
1269
- /**
1270
- * Limit how many Invitations to update.
1271
- */
1272
704
  limit?: number;
1273
- /**
1274
- * Choose, which related nodes to fetch as well
1275
- */
1276
705
  include?: Prisma.InvitationIncludeUpdateManyAndReturn<ExtArgs> | null;
1277
706
  };
1278
- /**
1279
- * Invitation upsert
1280
- */
1281
707
  export type InvitationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1282
- /**
1283
- * Select specific fields to fetch from the Invitation
1284
- */
1285
708
  select?: Prisma.InvitationSelect<ExtArgs> | null;
1286
- /**
1287
- * Omit specific fields from the Invitation
1288
- */
1289
709
  omit?: Prisma.InvitationOmit<ExtArgs> | null;
1290
- /**
1291
- * Choose, which related nodes to fetch as well
1292
- */
1293
710
  include?: Prisma.InvitationInclude<ExtArgs> | null;
1294
- /**
1295
- * The filter to search for the Invitation to update in case it exists.
1296
- */
1297
711
  where: Prisma.InvitationWhereUniqueInput;
1298
- /**
1299
- * In case the Invitation found by the `where` argument doesn't exist, create a new Invitation with this data.
1300
- */
1301
712
  create: Prisma.XOR<Prisma.InvitationCreateInput, Prisma.InvitationUncheckedCreateInput>;
1302
- /**
1303
- * In case the Invitation was found with the provided `where` argument, update it with this data.
1304
- */
1305
713
  update: Prisma.XOR<Prisma.InvitationUpdateInput, Prisma.InvitationUncheckedUpdateInput>;
1306
714
  };
1307
- /**
1308
- * Invitation delete
1309
- */
1310
715
  export type InvitationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1311
- /**
1312
- * Select specific fields to fetch from the Invitation
1313
- */
1314
716
  select?: Prisma.InvitationSelect<ExtArgs> | null;
1315
- /**
1316
- * Omit specific fields from the Invitation
1317
- */
1318
717
  omit?: Prisma.InvitationOmit<ExtArgs> | null;
1319
- /**
1320
- * Choose, which related nodes to fetch as well
1321
- */
1322
718
  include?: Prisma.InvitationInclude<ExtArgs> | null;
1323
- /**
1324
- * Filter which Invitation to delete.
1325
- */
1326
719
  where: Prisma.InvitationWhereUniqueInput;
1327
720
  };
1328
- /**
1329
- * Invitation deleteMany
1330
- */
1331
721
  export type InvitationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1332
- /**
1333
- * Filter which Invitations to delete
1334
- */
1335
722
  where?: Prisma.InvitationWhereInput;
1336
- /**
1337
- * Limit how many Invitations to delete.
1338
- */
1339
723
  limit?: number;
1340
724
  };
1341
- /**
1342
- * Invitation without action
1343
- */
1344
725
  export type InvitationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1345
- /**
1346
- * Select specific fields to fetch from the Invitation
1347
- */
1348
726
  select?: Prisma.InvitationSelect<ExtArgs> | null;
1349
- /**
1350
- * Omit specific fields from the Invitation
1351
- */
1352
727
  omit?: Prisma.InvitationOmit<ExtArgs> | null;
1353
- /**
1354
- * Choose, which related nodes to fetch as well
1355
- */
1356
728
  include?: Prisma.InvitationInclude<ExtArgs> | null;
1357
729
  };
1358
730
  export {};