@shophost/rest-api 2.0.29 → 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 Reservation
5
- *
6
- */
7
3
  export type ReservationModel = runtime.Types.Result.DefaultSelection<Prisma.$ReservationPayload>;
8
4
  export type AggregateReservation = {
9
5
  _count: ReservationCountAggregateOutputType | null;
@@ -117,63 +113,15 @@ export type ReservationCountAggregateInputType = {
117
113
  _all?: true;
118
114
  };
119
115
  export type ReservationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
120
- /**
121
- * Filter which Reservation to aggregate.
122
- */
123
116
  where?: Prisma.ReservationWhereInput;
124
- /**
125
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
126
- *
127
- * Determine the order of Reservations to fetch.
128
- */
129
117
  orderBy?: Prisma.ReservationOrderByWithRelationInput | Prisma.ReservationOrderByWithRelationInput[];
130
- /**
131
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
132
- *
133
- * Sets the start position
134
- */
135
118
  cursor?: Prisma.ReservationWhereUniqueInput;
136
- /**
137
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
138
- *
139
- * Take `±n` Reservations from the position of the cursor.
140
- */
141
119
  take?: number;
142
- /**
143
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
144
- *
145
- * Skip the first `n` Reservations.
146
- */
147
120
  skip?: number;
148
- /**
149
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
150
- *
151
- * Count returned Reservations
152
- **/
153
121
  _count?: true | ReservationCountAggregateInputType;
154
- /**
155
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
156
- *
157
- * Select which fields to average
158
- **/
159
122
  _avg?: ReservationAvgAggregateInputType;
160
- /**
161
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
162
- *
163
- * Select which fields to sum
164
- **/
165
123
  _sum?: ReservationSumAggregateInputType;
166
- /**
167
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
168
- *
169
- * Select which fields to find the minimum value
170
- **/
171
124
  _min?: ReservationMinAggregateInputType;
172
- /**
173
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
174
- *
175
- * Select which fields to find the maximum value
176
- **/
177
125
  _max?: ReservationMaxAggregateInputType;
178
126
  };
179
127
  export type GetReservationAggregateType<T extends ReservationAggregateArgs> = {
@@ -889,290 +837,22 @@ export interface ReservationDelegate<ExtArgs extends runtime.Types.Extensions.In
889
837
  name: 'Reservation';
890
838
  };
891
839
  };
892
- /**
893
- * Find zero or one Reservation that matches the filter.
894
- * @param {ReservationFindUniqueArgs} args - Arguments to find a Reservation
895
- * @example
896
- * // Get one Reservation
897
- * const reservation = await prisma.reservation.findUnique({
898
- * where: {
899
- * // ... provide filter here
900
- * }
901
- * })
902
- */
903
840
  findUnique<T extends ReservationFindUniqueArgs>(args: Prisma.SelectSubset<T, ReservationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ReservationClient<runtime.Types.Result.GetResult<Prisma.$ReservationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
904
- /**
905
- * Find one Reservation that matches the filter or throw an error with `error.code='P2025'`
906
- * if no matches were found.
907
- * @param {ReservationFindUniqueOrThrowArgs} args - Arguments to find a Reservation
908
- * @example
909
- * // Get one Reservation
910
- * const reservation = await prisma.reservation.findUniqueOrThrow({
911
- * where: {
912
- * // ... provide filter here
913
- * }
914
- * })
915
- */
916
841
  findUniqueOrThrow<T extends ReservationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ReservationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ReservationClient<runtime.Types.Result.GetResult<Prisma.$ReservationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
917
- /**
918
- * Find the first Reservation that matches the filter.
919
- * Note, that providing `undefined` is treated as the value not being there.
920
- * Read more here: https://pris.ly/d/null-undefined
921
- * @param {ReservationFindFirstArgs} args - Arguments to find a Reservation
922
- * @example
923
- * // Get one Reservation
924
- * const reservation = await prisma.reservation.findFirst({
925
- * where: {
926
- * // ... provide filter here
927
- * }
928
- * })
929
- */
930
842
  findFirst<T extends ReservationFindFirstArgs>(args?: Prisma.SelectSubset<T, ReservationFindFirstArgs<ExtArgs>>): Prisma.Prisma__ReservationClient<runtime.Types.Result.GetResult<Prisma.$ReservationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
931
- /**
932
- * Find the first Reservation that matches the filter or
933
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
934
- * Note, that providing `undefined` is treated as the value not being there.
935
- * Read more here: https://pris.ly/d/null-undefined
936
- * @param {ReservationFindFirstOrThrowArgs} args - Arguments to find a Reservation
937
- * @example
938
- * // Get one Reservation
939
- * const reservation = await prisma.reservation.findFirstOrThrow({
940
- * where: {
941
- * // ... provide filter here
942
- * }
943
- * })
944
- */
945
843
  findFirstOrThrow<T extends ReservationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ReservationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ReservationClient<runtime.Types.Result.GetResult<Prisma.$ReservationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
946
- /**
947
- * Find zero or more Reservations that matches the filter.
948
- * Note, that providing `undefined` is treated as the value not being there.
949
- * Read more here: https://pris.ly/d/null-undefined
950
- * @param {ReservationFindManyArgs} args - Arguments to filter and select certain fields only.
951
- * @example
952
- * // Get all Reservations
953
- * const reservations = await prisma.reservation.findMany()
954
- *
955
- * // Get first 10 Reservations
956
- * const reservations = await prisma.reservation.findMany({ take: 10 })
957
- *
958
- * // Only select the `id`
959
- * const reservationWithIdOnly = await prisma.reservation.findMany({ select: { id: true } })
960
- *
961
- */
962
844
  findMany<T extends ReservationFindManyArgs>(args?: Prisma.SelectSubset<T, ReservationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReservationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
963
- /**
964
- * Create a Reservation.
965
- * @param {ReservationCreateArgs} args - Arguments to create a Reservation.
966
- * @example
967
- * // Create one Reservation
968
- * const Reservation = await prisma.reservation.create({
969
- * data: {
970
- * // ... data to create a Reservation
971
- * }
972
- * })
973
- *
974
- */
975
845
  create<T extends ReservationCreateArgs>(args: Prisma.SelectSubset<T, ReservationCreateArgs<ExtArgs>>): Prisma.Prisma__ReservationClient<runtime.Types.Result.GetResult<Prisma.$ReservationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
976
- /**
977
- * Create many Reservations.
978
- * @param {ReservationCreateManyArgs} args - Arguments to create many Reservations.
979
- * @example
980
- * // Create many Reservations
981
- * const reservation = await prisma.reservation.createMany({
982
- * data: [
983
- * // ... provide data here
984
- * ]
985
- * })
986
- *
987
- */
988
846
  createMany<T extends ReservationCreateManyArgs>(args?: Prisma.SelectSubset<T, ReservationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
989
- /**
990
- * Create many Reservations and returns the data saved in the database.
991
- * @param {ReservationCreateManyAndReturnArgs} args - Arguments to create many Reservations.
992
- * @example
993
- * // Create many Reservations
994
- * const reservation = await prisma.reservation.createManyAndReturn({
995
- * data: [
996
- * // ... provide data here
997
- * ]
998
- * })
999
- *
1000
- * // Create many Reservations and only return the `id`
1001
- * const reservationWithIdOnly = await prisma.reservation.createManyAndReturn({
1002
- * select: { id: true },
1003
- * data: [
1004
- * // ... provide data here
1005
- * ]
1006
- * })
1007
- * Note, that providing `undefined` is treated as the value not being there.
1008
- * Read more here: https://pris.ly/d/null-undefined
1009
- *
1010
- */
1011
847
  createManyAndReturn<T extends ReservationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ReservationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReservationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1012
- /**
1013
- * Delete a Reservation.
1014
- * @param {ReservationDeleteArgs} args - Arguments to delete one Reservation.
1015
- * @example
1016
- * // Delete one Reservation
1017
- * const Reservation = await prisma.reservation.delete({
1018
- * where: {
1019
- * // ... filter to delete one Reservation
1020
- * }
1021
- * })
1022
- *
1023
- */
1024
848
  delete<T extends ReservationDeleteArgs>(args: Prisma.SelectSubset<T, ReservationDeleteArgs<ExtArgs>>): Prisma.Prisma__ReservationClient<runtime.Types.Result.GetResult<Prisma.$ReservationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1025
- /**
1026
- * Update one Reservation.
1027
- * @param {ReservationUpdateArgs} args - Arguments to update one Reservation.
1028
- * @example
1029
- * // Update one Reservation
1030
- * const reservation = await prisma.reservation.update({
1031
- * where: {
1032
- * // ... provide filter here
1033
- * },
1034
- * data: {
1035
- * // ... provide data here
1036
- * }
1037
- * })
1038
- *
1039
- */
1040
849
  update<T extends ReservationUpdateArgs>(args: Prisma.SelectSubset<T, ReservationUpdateArgs<ExtArgs>>): Prisma.Prisma__ReservationClient<runtime.Types.Result.GetResult<Prisma.$ReservationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1041
- /**
1042
- * Delete zero or more Reservations.
1043
- * @param {ReservationDeleteManyArgs} args - Arguments to filter Reservations to delete.
1044
- * @example
1045
- * // Delete a few Reservations
1046
- * const { count } = await prisma.reservation.deleteMany({
1047
- * where: {
1048
- * // ... provide filter here
1049
- * }
1050
- * })
1051
- *
1052
- */
1053
850
  deleteMany<T extends ReservationDeleteManyArgs>(args?: Prisma.SelectSubset<T, ReservationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1054
- /**
1055
- * Update zero or more Reservations.
1056
- * Note, that providing `undefined` is treated as the value not being there.
1057
- * Read more here: https://pris.ly/d/null-undefined
1058
- * @param {ReservationUpdateManyArgs} args - Arguments to update one or more rows.
1059
- * @example
1060
- * // Update many Reservations
1061
- * const reservation = await prisma.reservation.updateMany({
1062
- * where: {
1063
- * // ... provide filter here
1064
- * },
1065
- * data: {
1066
- * // ... provide data here
1067
- * }
1068
- * })
1069
- *
1070
- */
1071
851
  updateMany<T extends ReservationUpdateManyArgs>(args: Prisma.SelectSubset<T, ReservationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1072
- /**
1073
- * Update zero or more Reservations and returns the data updated in the database.
1074
- * @param {ReservationUpdateManyAndReturnArgs} args - Arguments to update many Reservations.
1075
- * @example
1076
- * // Update many Reservations
1077
- * const reservation = await prisma.reservation.updateManyAndReturn({
1078
- * where: {
1079
- * // ... provide filter here
1080
- * },
1081
- * data: [
1082
- * // ... provide data here
1083
- * ]
1084
- * })
1085
- *
1086
- * // Update zero or more Reservations and only return the `id`
1087
- * const reservationWithIdOnly = await prisma.reservation.updateManyAndReturn({
1088
- * select: { id: true },
1089
- * where: {
1090
- * // ... provide filter here
1091
- * },
1092
- * data: [
1093
- * // ... provide data here
1094
- * ]
1095
- * })
1096
- * Note, that providing `undefined` is treated as the value not being there.
1097
- * Read more here: https://pris.ly/d/null-undefined
1098
- *
1099
- */
1100
852
  updateManyAndReturn<T extends ReservationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ReservationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReservationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1101
- /**
1102
- * Create or update one Reservation.
1103
- * @param {ReservationUpsertArgs} args - Arguments to update or create a Reservation.
1104
- * @example
1105
- * // Update or create a Reservation
1106
- * const reservation = await prisma.reservation.upsert({
1107
- * create: {
1108
- * // ... data to create a Reservation
1109
- * },
1110
- * update: {
1111
- * // ... in case it already exists, update
1112
- * },
1113
- * where: {
1114
- * // ... the filter for the Reservation we want to update
1115
- * }
1116
- * })
1117
- */
1118
853
  upsert<T extends ReservationUpsertArgs>(args: Prisma.SelectSubset<T, ReservationUpsertArgs<ExtArgs>>): Prisma.Prisma__ReservationClient<runtime.Types.Result.GetResult<Prisma.$ReservationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1119
- /**
1120
- * Count the number of Reservations.
1121
- * Note, that providing `undefined` is treated as the value not being there.
1122
- * Read more here: https://pris.ly/d/null-undefined
1123
- * @param {ReservationCountArgs} args - Arguments to filter Reservations to count.
1124
- * @example
1125
- * // Count the number of Reservations
1126
- * const count = await prisma.reservation.count({
1127
- * where: {
1128
- * // ... the filter for the Reservations we want to count
1129
- * }
1130
- * })
1131
- **/
1132
854
  count<T extends ReservationCountArgs>(args?: Prisma.Subset<T, ReservationCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ReservationCountAggregateOutputType> : number>;
1133
- /**
1134
- * Allows you to perform aggregations operations on a Reservation.
1135
- * Note, that providing `undefined` is treated as the value not being there.
1136
- * Read more here: https://pris.ly/d/null-undefined
1137
- * @param {ReservationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1138
- * @example
1139
- * // Ordered by age ascending
1140
- * // Where email contains prisma.io
1141
- * // Limited to the 10 users
1142
- * const aggregations = await prisma.user.aggregate({
1143
- * _avg: {
1144
- * age: true,
1145
- * },
1146
- * where: {
1147
- * email: {
1148
- * contains: "prisma.io",
1149
- * },
1150
- * },
1151
- * orderBy: {
1152
- * age: "asc",
1153
- * },
1154
- * take: 10,
1155
- * })
1156
- **/
1157
855
  aggregate<T extends ReservationAggregateArgs>(args: Prisma.Subset<T, ReservationAggregateArgs>): Prisma.PrismaPromise<GetReservationAggregateType<T>>;
1158
- /**
1159
- * Group by Reservation.
1160
- * Note, that providing `undefined` is treated as the value not being there.
1161
- * Read more here: https://pris.ly/d/null-undefined
1162
- * @param {ReservationGroupByArgs} args - Group by arguments.
1163
- * @example
1164
- * // Group by city, order by createdAt, get count
1165
- * const result = await prisma.user.groupBy({
1166
- * by: ['city', 'createdAt'],
1167
- * orderBy: {
1168
- * createdAt: true
1169
- * },
1170
- * _count: {
1171
- * _all: true
1172
- * },
1173
- * })
1174
- *
1175
- **/
1176
856
  groupBy<T extends ReservationGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1177
857
  orderBy: ReservationGroupByArgs['orderBy'];
1178
858
  } : {
@@ -1191,45 +871,16 @@ export interface ReservationDelegate<ExtArgs extends runtime.Types.Extensions.In
1191
871
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1192
872
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1193
873
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, ReservationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetReservationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1194
- /**
1195
- * Fields of the Reservation model
1196
- */
1197
874
  readonly fields: ReservationFieldRefs;
1198
875
  }
1199
- /**
1200
- * The delegate class that acts as a "Promise-like" for Reservation.
1201
- * Why is this prefixed with `Prisma__`?
1202
- * Because we want to prevent naming conflicts as mentioned in
1203
- * https://github.com/prisma/prisma-client-js/issues/707
1204
- */
1205
876
  export interface Prisma__ReservationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1206
877
  readonly [Symbol.toStringTag]: "PrismaPromise";
1207
878
  user<T extends Prisma.Reservation$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Reservation$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1208
879
  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>;
1209
- /**
1210
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1211
- * @param onfulfilled The callback to execute when the Promise is resolved.
1212
- * @param onrejected The callback to execute when the Promise is rejected.
1213
- * @returns A Promise for the completion of which ever callback is executed.
1214
- */
1215
880
  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>;
1216
- /**
1217
- * Attaches a callback for only the rejection of the Promise.
1218
- * @param onrejected The callback to execute when the Promise is rejected.
1219
- * @returns A Promise for the completion of the callback.
1220
- */
1221
881
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1222
- /**
1223
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1224
- * resolved value cannot be modified from the callback.
1225
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1226
- * @returns A Promise for the completion of the callback.
1227
- */
1228
882
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1229
883
  }
1230
- /**
1231
- * Fields of the Reservation model
1232
- */
1233
884
  export interface ReservationFieldRefs {
1234
885
  readonly id: Prisma.FieldRef<"Reservation", 'String'>;
1235
886
  readonly firstname: Prisma.FieldRef<"Reservation", 'String'>;
@@ -1245,416 +896,115 @@ export interface ReservationFieldRefs {
1245
896
  readonly cancelledAt: Prisma.FieldRef<"Reservation", 'DateTime'>;
1246
897
  readonly updatedAt: Prisma.FieldRef<"Reservation", 'DateTime'>;
1247
898
  }
1248
- /**
1249
- * Reservation findUnique
1250
- */
1251
899
  export type ReservationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1252
- /**
1253
- * Select specific fields to fetch from the Reservation
1254
- */
1255
900
  select?: Prisma.ReservationSelect<ExtArgs> | null;
1256
- /**
1257
- * Omit specific fields from the Reservation
1258
- */
1259
901
  omit?: Prisma.ReservationOmit<ExtArgs> | null;
1260
- /**
1261
- * Choose, which related nodes to fetch as well
1262
- */
1263
902
  include?: Prisma.ReservationInclude<ExtArgs> | null;
1264
- /**
1265
- * Filter, which Reservation to fetch.
1266
- */
1267
903
  where: Prisma.ReservationWhereUniqueInput;
1268
904
  };
1269
- /**
1270
- * Reservation findUniqueOrThrow
1271
- */
1272
905
  export type ReservationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1273
- /**
1274
- * Select specific fields to fetch from the Reservation
1275
- */
1276
906
  select?: Prisma.ReservationSelect<ExtArgs> | null;
1277
- /**
1278
- * Omit specific fields from the Reservation
1279
- */
1280
907
  omit?: Prisma.ReservationOmit<ExtArgs> | null;
1281
- /**
1282
- * Choose, which related nodes to fetch as well
1283
- */
1284
908
  include?: Prisma.ReservationInclude<ExtArgs> | null;
1285
- /**
1286
- * Filter, which Reservation to fetch.
1287
- */
1288
909
  where: Prisma.ReservationWhereUniqueInput;
1289
910
  };
1290
- /**
1291
- * Reservation findFirst
1292
- */
1293
911
  export type ReservationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1294
- /**
1295
- * Select specific fields to fetch from the Reservation
1296
- */
1297
912
  select?: Prisma.ReservationSelect<ExtArgs> | null;
1298
- /**
1299
- * Omit specific fields from the Reservation
1300
- */
1301
913
  omit?: Prisma.ReservationOmit<ExtArgs> | null;
1302
- /**
1303
- * Choose, which related nodes to fetch as well
1304
- */
1305
914
  include?: Prisma.ReservationInclude<ExtArgs> | null;
1306
- /**
1307
- * Filter, which Reservation to fetch.
1308
- */
1309
915
  where?: Prisma.ReservationWhereInput;
1310
- /**
1311
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1312
- *
1313
- * Determine the order of Reservations to fetch.
1314
- */
1315
916
  orderBy?: Prisma.ReservationOrderByWithRelationInput | Prisma.ReservationOrderByWithRelationInput[];
1316
- /**
1317
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1318
- *
1319
- * Sets the position for searching for Reservations.
1320
- */
1321
917
  cursor?: Prisma.ReservationWhereUniqueInput;
1322
- /**
1323
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1324
- *
1325
- * Take `±n` Reservations from the position of the cursor.
1326
- */
1327
918
  take?: number;
1328
- /**
1329
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1330
- *
1331
- * Skip the first `n` Reservations.
1332
- */
1333
919
  skip?: number;
1334
- /**
1335
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1336
- *
1337
- * Filter by unique combinations of Reservations.
1338
- */
1339
920
  distinct?: Prisma.ReservationScalarFieldEnum | Prisma.ReservationScalarFieldEnum[];
1340
921
  };
1341
- /**
1342
- * Reservation findFirstOrThrow
1343
- */
1344
922
  export type ReservationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1345
- /**
1346
- * Select specific fields to fetch from the Reservation
1347
- */
1348
923
  select?: Prisma.ReservationSelect<ExtArgs> | null;
1349
- /**
1350
- * Omit specific fields from the Reservation
1351
- */
1352
924
  omit?: Prisma.ReservationOmit<ExtArgs> | null;
1353
- /**
1354
- * Choose, which related nodes to fetch as well
1355
- */
1356
925
  include?: Prisma.ReservationInclude<ExtArgs> | null;
1357
- /**
1358
- * Filter, which Reservation to fetch.
1359
- */
1360
926
  where?: Prisma.ReservationWhereInput;
1361
- /**
1362
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1363
- *
1364
- * Determine the order of Reservations to fetch.
1365
- */
1366
927
  orderBy?: Prisma.ReservationOrderByWithRelationInput | Prisma.ReservationOrderByWithRelationInput[];
1367
- /**
1368
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1369
- *
1370
- * Sets the position for searching for Reservations.
1371
- */
1372
928
  cursor?: Prisma.ReservationWhereUniqueInput;
1373
- /**
1374
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1375
- *
1376
- * Take `±n` Reservations from the position of the cursor.
1377
- */
1378
929
  take?: number;
1379
- /**
1380
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1381
- *
1382
- * Skip the first `n` Reservations.
1383
- */
1384
930
  skip?: number;
1385
- /**
1386
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1387
- *
1388
- * Filter by unique combinations of Reservations.
1389
- */
1390
931
  distinct?: Prisma.ReservationScalarFieldEnum | Prisma.ReservationScalarFieldEnum[];
1391
932
  };
1392
- /**
1393
- * Reservation findMany
1394
- */
1395
933
  export type ReservationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1396
- /**
1397
- * Select specific fields to fetch from the Reservation
1398
- */
1399
934
  select?: Prisma.ReservationSelect<ExtArgs> | null;
1400
- /**
1401
- * Omit specific fields from the Reservation
1402
- */
1403
935
  omit?: Prisma.ReservationOmit<ExtArgs> | null;
1404
- /**
1405
- * Choose, which related nodes to fetch as well
1406
- */
1407
936
  include?: Prisma.ReservationInclude<ExtArgs> | null;
1408
- /**
1409
- * Filter, which Reservations to fetch.
1410
- */
1411
937
  where?: Prisma.ReservationWhereInput;
1412
- /**
1413
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1414
- *
1415
- * Determine the order of Reservations to fetch.
1416
- */
1417
938
  orderBy?: Prisma.ReservationOrderByWithRelationInput | Prisma.ReservationOrderByWithRelationInput[];
1418
- /**
1419
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1420
- *
1421
- * Sets the position for listing Reservations.
1422
- */
1423
939
  cursor?: Prisma.ReservationWhereUniqueInput;
1424
- /**
1425
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1426
- *
1427
- * Take `±n` Reservations from the position of the cursor.
1428
- */
1429
940
  take?: number;
1430
- /**
1431
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1432
- *
1433
- * Skip the first `n` Reservations.
1434
- */
1435
941
  skip?: number;
1436
942
  distinct?: Prisma.ReservationScalarFieldEnum | Prisma.ReservationScalarFieldEnum[];
1437
943
  };
1438
- /**
1439
- * Reservation create
1440
- */
1441
944
  export type ReservationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1442
- /**
1443
- * Select specific fields to fetch from the Reservation
1444
- */
1445
945
  select?: Prisma.ReservationSelect<ExtArgs> | null;
1446
- /**
1447
- * Omit specific fields from the Reservation
1448
- */
1449
946
  omit?: Prisma.ReservationOmit<ExtArgs> | null;
1450
- /**
1451
- * Choose, which related nodes to fetch as well
1452
- */
1453
947
  include?: Prisma.ReservationInclude<ExtArgs> | null;
1454
- /**
1455
- * The data needed to create a Reservation.
1456
- */
1457
948
  data: Prisma.XOR<Prisma.ReservationCreateInput, Prisma.ReservationUncheckedCreateInput>;
1458
949
  };
1459
- /**
1460
- * Reservation createMany
1461
- */
1462
950
  export type ReservationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1463
- /**
1464
- * The data used to create many Reservations.
1465
- */
1466
951
  data: Prisma.ReservationCreateManyInput | Prisma.ReservationCreateManyInput[];
1467
952
  skipDuplicates?: boolean;
1468
953
  };
1469
- /**
1470
- * Reservation createManyAndReturn
1471
- */
1472
954
  export type ReservationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1473
- /**
1474
- * Select specific fields to fetch from the Reservation
1475
- */
1476
955
  select?: Prisma.ReservationSelectCreateManyAndReturn<ExtArgs> | null;
1477
- /**
1478
- * Omit specific fields from the Reservation
1479
- */
1480
956
  omit?: Prisma.ReservationOmit<ExtArgs> | null;
1481
- /**
1482
- * The data used to create many Reservations.
1483
- */
1484
957
  data: Prisma.ReservationCreateManyInput | Prisma.ReservationCreateManyInput[];
1485
958
  skipDuplicates?: boolean;
1486
- /**
1487
- * Choose, which related nodes to fetch as well
1488
- */
1489
959
  include?: Prisma.ReservationIncludeCreateManyAndReturn<ExtArgs> | null;
1490
960
  };
1491
- /**
1492
- * Reservation update
1493
- */
1494
961
  export type ReservationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1495
- /**
1496
- * Select specific fields to fetch from the Reservation
1497
- */
1498
962
  select?: Prisma.ReservationSelect<ExtArgs> | null;
1499
- /**
1500
- * Omit specific fields from the Reservation
1501
- */
1502
963
  omit?: Prisma.ReservationOmit<ExtArgs> | null;
1503
- /**
1504
- * Choose, which related nodes to fetch as well
1505
- */
1506
964
  include?: Prisma.ReservationInclude<ExtArgs> | null;
1507
- /**
1508
- * The data needed to update a Reservation.
1509
- */
1510
965
  data: Prisma.XOR<Prisma.ReservationUpdateInput, Prisma.ReservationUncheckedUpdateInput>;
1511
- /**
1512
- * Choose, which Reservation to update.
1513
- */
1514
966
  where: Prisma.ReservationWhereUniqueInput;
1515
967
  };
1516
- /**
1517
- * Reservation updateMany
1518
- */
1519
968
  export type ReservationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1520
- /**
1521
- * The data used to update Reservations.
1522
- */
1523
969
  data: Prisma.XOR<Prisma.ReservationUpdateManyMutationInput, Prisma.ReservationUncheckedUpdateManyInput>;
1524
- /**
1525
- * Filter which Reservations to update
1526
- */
1527
970
  where?: Prisma.ReservationWhereInput;
1528
- /**
1529
- * Limit how many Reservations to update.
1530
- */
1531
971
  limit?: number;
1532
972
  };
1533
- /**
1534
- * Reservation updateManyAndReturn
1535
- */
1536
973
  export type ReservationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1537
- /**
1538
- * Select specific fields to fetch from the Reservation
1539
- */
1540
974
  select?: Prisma.ReservationSelectUpdateManyAndReturn<ExtArgs> | null;
1541
- /**
1542
- * Omit specific fields from the Reservation
1543
- */
1544
975
  omit?: Prisma.ReservationOmit<ExtArgs> | null;
1545
- /**
1546
- * The data used to update Reservations.
1547
- */
1548
976
  data: Prisma.XOR<Prisma.ReservationUpdateManyMutationInput, Prisma.ReservationUncheckedUpdateManyInput>;
1549
- /**
1550
- * Filter which Reservations to update
1551
- */
1552
977
  where?: Prisma.ReservationWhereInput;
1553
- /**
1554
- * Limit how many Reservations to update.
1555
- */
1556
978
  limit?: number;
1557
- /**
1558
- * Choose, which related nodes to fetch as well
1559
- */
1560
979
  include?: Prisma.ReservationIncludeUpdateManyAndReturn<ExtArgs> | null;
1561
980
  };
1562
- /**
1563
- * Reservation upsert
1564
- */
1565
981
  export type ReservationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1566
- /**
1567
- * Select specific fields to fetch from the Reservation
1568
- */
1569
982
  select?: Prisma.ReservationSelect<ExtArgs> | null;
1570
- /**
1571
- * Omit specific fields from the Reservation
1572
- */
1573
983
  omit?: Prisma.ReservationOmit<ExtArgs> | null;
1574
- /**
1575
- * Choose, which related nodes to fetch as well
1576
- */
1577
984
  include?: Prisma.ReservationInclude<ExtArgs> | null;
1578
- /**
1579
- * The filter to search for the Reservation to update in case it exists.
1580
- */
1581
985
  where: Prisma.ReservationWhereUniqueInput;
1582
- /**
1583
- * In case the Reservation found by the `where` argument doesn't exist, create a new Reservation with this data.
1584
- */
1585
986
  create: Prisma.XOR<Prisma.ReservationCreateInput, Prisma.ReservationUncheckedCreateInput>;
1586
- /**
1587
- * In case the Reservation was found with the provided `where` argument, update it with this data.
1588
- */
1589
987
  update: Prisma.XOR<Prisma.ReservationUpdateInput, Prisma.ReservationUncheckedUpdateInput>;
1590
988
  };
1591
- /**
1592
- * Reservation delete
1593
- */
1594
989
  export type ReservationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1595
- /**
1596
- * Select specific fields to fetch from the Reservation
1597
- */
1598
990
  select?: Prisma.ReservationSelect<ExtArgs> | null;
1599
- /**
1600
- * Omit specific fields from the Reservation
1601
- */
1602
991
  omit?: Prisma.ReservationOmit<ExtArgs> | null;
1603
- /**
1604
- * Choose, which related nodes to fetch as well
1605
- */
1606
992
  include?: Prisma.ReservationInclude<ExtArgs> | null;
1607
- /**
1608
- * Filter which Reservation to delete.
1609
- */
1610
993
  where: Prisma.ReservationWhereUniqueInput;
1611
994
  };
1612
- /**
1613
- * Reservation deleteMany
1614
- */
1615
995
  export type ReservationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1616
- /**
1617
- * Filter which Reservations to delete
1618
- */
1619
996
  where?: Prisma.ReservationWhereInput;
1620
- /**
1621
- * Limit how many Reservations to delete.
1622
- */
1623
997
  limit?: number;
1624
998
  };
1625
- /**
1626
- * Reservation.user
1627
- */
1628
999
  export type Reservation$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1629
- /**
1630
- * Select specific fields to fetch from the User
1631
- */
1632
1000
  select?: Prisma.UserSelect<ExtArgs> | null;
1633
- /**
1634
- * Omit specific fields from the User
1635
- */
1636
1001
  omit?: Prisma.UserOmit<ExtArgs> | null;
1637
- /**
1638
- * Choose, which related nodes to fetch as well
1639
- */
1640
1002
  include?: Prisma.UserInclude<ExtArgs> | null;
1641
1003
  where?: Prisma.UserWhereInput;
1642
1004
  };
1643
- /**
1644
- * Reservation without action
1645
- */
1646
1005
  export type ReservationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1647
- /**
1648
- * Select specific fields to fetch from the Reservation
1649
- */
1650
1006
  select?: Prisma.ReservationSelect<ExtArgs> | null;
1651
- /**
1652
- * Omit specific fields from the Reservation
1653
- */
1654
1007
  omit?: Prisma.ReservationOmit<ExtArgs> | null;
1655
- /**
1656
- * Choose, which related nodes to fetch as well
1657
- */
1658
1008
  include?: Prisma.ReservationInclude<ExtArgs> | null;
1659
1009
  };
1660
1010
  export {};