@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,10 +1,6 @@
1
1
  import type * as runtime from "@prisma/client/runtime/client";
2
2
  import type * as $Enums from "../enums";
3
3
  import type * as Prisma from "../internal/prismaNamespace";
4
- /**
5
- * Model Payment
6
- *
7
- */
8
4
  export type PaymentModel = runtime.Types.Result.DefaultSelection<Prisma.$PaymentPayload>;
9
5
  export type AggregatePayment = {
10
6
  _count: PaymentCountAggregateOutputType | null;
@@ -118,63 +114,15 @@ export type PaymentCountAggregateInputType = {
118
114
  _all?: true;
119
115
  };
120
116
  export type PaymentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
- /**
122
- * Filter which Payment to aggregate.
123
- */
124
117
  where?: Prisma.PaymentWhereInput;
125
- /**
126
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
127
- *
128
- * Determine the order of Payments to fetch.
129
- */
130
118
  orderBy?: Prisma.PaymentOrderByWithRelationInput | Prisma.PaymentOrderByWithRelationInput[];
131
- /**
132
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
133
- *
134
- * Sets the start position
135
- */
136
119
  cursor?: Prisma.PaymentWhereUniqueInput;
137
- /**
138
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
139
- *
140
- * Take `±n` Payments from the position of the cursor.
141
- */
142
120
  take?: number;
143
- /**
144
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
145
- *
146
- * Skip the first `n` Payments.
147
- */
148
121
  skip?: number;
149
- /**
150
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
- *
152
- * Count returned Payments
153
- **/
154
122
  _count?: true | PaymentCountAggregateInputType;
155
- /**
156
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
- *
158
- * Select which fields to average
159
- **/
160
123
  _avg?: PaymentAvgAggregateInputType;
161
- /**
162
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
163
- *
164
- * Select which fields to sum
165
- **/
166
124
  _sum?: PaymentSumAggregateInputType;
167
- /**
168
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
169
- *
170
- * Select which fields to find the minimum value
171
- **/
172
125
  _min?: PaymentMinAggregateInputType;
173
- /**
174
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
175
- *
176
- * Select which fields to find the maximum value
177
- **/
178
126
  _max?: PaymentMaxAggregateInputType;
179
127
  };
180
128
  export type GetPaymentAggregateType<T extends PaymentAggregateArgs> = {
@@ -630,27 +578,15 @@ export type PaymentUncheckedUpdateWithoutSessionsInput = {
630
578
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
631
579
  order?: Prisma.OrderUncheckedUpdateOneWithoutPaymentNestedInput;
632
580
  };
633
- /**
634
- * Count Type PaymentCountOutputType
635
- */
636
581
  export type PaymentCountOutputType = {
637
582
  sessions: number;
638
583
  };
639
584
  export type PaymentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
640
585
  sessions?: boolean | PaymentCountOutputTypeCountSessionsArgs;
641
586
  };
642
- /**
643
- * PaymentCountOutputType without action
644
- */
645
587
  export type PaymentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
646
- /**
647
- * Select specific fields to fetch from the PaymentCountOutputType
648
- */
649
588
  select?: Prisma.PaymentCountOutputTypeSelect<ExtArgs> | null;
650
589
  };
651
- /**
652
- * PaymentCountOutputType without action
653
- */
654
590
  export type PaymentCountOutputTypeCountSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
655
591
  where?: Prisma.PaymentSessionWhereInput;
656
592
  };
@@ -749,290 +685,22 @@ export interface PaymentDelegate<ExtArgs extends runtime.Types.Extensions.Intern
749
685
  name: 'Payment';
750
686
  };
751
687
  };
752
- /**
753
- * Find zero or one Payment that matches the filter.
754
- * @param {PaymentFindUniqueArgs} args - Arguments to find a Payment
755
- * @example
756
- * // Get one Payment
757
- * const payment = await prisma.payment.findUnique({
758
- * where: {
759
- * // ... provide filter here
760
- * }
761
- * })
762
- */
763
688
  findUnique<T extends PaymentFindUniqueArgs>(args: Prisma.SelectSubset<T, PaymentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
764
- /**
765
- * Find one Payment that matches the filter or throw an error with `error.code='P2025'`
766
- * if no matches were found.
767
- * @param {PaymentFindUniqueOrThrowArgs} args - Arguments to find a Payment
768
- * @example
769
- * // Get one Payment
770
- * const payment = await prisma.payment.findUniqueOrThrow({
771
- * where: {
772
- * // ... provide filter here
773
- * }
774
- * })
775
- */
776
689
  findUniqueOrThrow<T extends PaymentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PaymentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
777
- /**
778
- * Find the first Payment that matches the filter.
779
- * Note, that providing `undefined` is treated as the value not being there.
780
- * Read more here: https://pris.ly/d/null-undefined
781
- * @param {PaymentFindFirstArgs} args - Arguments to find a Payment
782
- * @example
783
- * // Get one Payment
784
- * const payment = await prisma.payment.findFirst({
785
- * where: {
786
- * // ... provide filter here
787
- * }
788
- * })
789
- */
790
690
  findFirst<T extends PaymentFindFirstArgs>(args?: Prisma.SelectSubset<T, PaymentFindFirstArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
791
- /**
792
- * Find the first Payment that matches the filter or
793
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
794
- * Note, that providing `undefined` is treated as the value not being there.
795
- * Read more here: https://pris.ly/d/null-undefined
796
- * @param {PaymentFindFirstOrThrowArgs} args - Arguments to find a Payment
797
- * @example
798
- * // Get one Payment
799
- * const payment = await prisma.payment.findFirstOrThrow({
800
- * where: {
801
- * // ... provide filter here
802
- * }
803
- * })
804
- */
805
691
  findFirstOrThrow<T extends PaymentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PaymentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
806
- /**
807
- * Find zero or more Payments that matches the filter.
808
- * Note, that providing `undefined` is treated as the value not being there.
809
- * Read more here: https://pris.ly/d/null-undefined
810
- * @param {PaymentFindManyArgs} args - Arguments to filter and select certain fields only.
811
- * @example
812
- * // Get all Payments
813
- * const payments = await prisma.payment.findMany()
814
- *
815
- * // Get first 10 Payments
816
- * const payments = await prisma.payment.findMany({ take: 10 })
817
- *
818
- * // Only select the `id`
819
- * const paymentWithIdOnly = await prisma.payment.findMany({ select: { id: true } })
820
- *
821
- */
822
692
  findMany<T extends PaymentFindManyArgs>(args?: Prisma.SelectSubset<T, PaymentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
823
- /**
824
- * Create a Payment.
825
- * @param {PaymentCreateArgs} args - Arguments to create a Payment.
826
- * @example
827
- * // Create one Payment
828
- * const Payment = await prisma.payment.create({
829
- * data: {
830
- * // ... data to create a Payment
831
- * }
832
- * })
833
- *
834
- */
835
693
  create<T extends PaymentCreateArgs>(args: Prisma.SelectSubset<T, PaymentCreateArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
836
- /**
837
- * Create many Payments.
838
- * @param {PaymentCreateManyArgs} args - Arguments to create many Payments.
839
- * @example
840
- * // Create many Payments
841
- * const payment = await prisma.payment.createMany({
842
- * data: [
843
- * // ... provide data here
844
- * ]
845
- * })
846
- *
847
- */
848
694
  createMany<T extends PaymentCreateManyArgs>(args?: Prisma.SelectSubset<T, PaymentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
849
- /**
850
- * Create many Payments and returns the data saved in the database.
851
- * @param {PaymentCreateManyAndReturnArgs} args - Arguments to create many Payments.
852
- * @example
853
- * // Create many Payments
854
- * const payment = await prisma.payment.createManyAndReturn({
855
- * data: [
856
- * // ... provide data here
857
- * ]
858
- * })
859
- *
860
- * // Create many Payments and only return the `id`
861
- * const paymentWithIdOnly = await prisma.payment.createManyAndReturn({
862
- * select: { id: true },
863
- * data: [
864
- * // ... provide data here
865
- * ]
866
- * })
867
- * Note, that providing `undefined` is treated as the value not being there.
868
- * Read more here: https://pris.ly/d/null-undefined
869
- *
870
- */
871
695
  createManyAndReturn<T extends PaymentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PaymentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
872
- /**
873
- * Delete a Payment.
874
- * @param {PaymentDeleteArgs} args - Arguments to delete one Payment.
875
- * @example
876
- * // Delete one Payment
877
- * const Payment = await prisma.payment.delete({
878
- * where: {
879
- * // ... filter to delete one Payment
880
- * }
881
- * })
882
- *
883
- */
884
696
  delete<T extends PaymentDeleteArgs>(args: Prisma.SelectSubset<T, PaymentDeleteArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
885
- /**
886
- * Update one Payment.
887
- * @param {PaymentUpdateArgs} args - Arguments to update one Payment.
888
- * @example
889
- * // Update one Payment
890
- * const payment = await prisma.payment.update({
891
- * where: {
892
- * // ... provide filter here
893
- * },
894
- * data: {
895
- * // ... provide data here
896
- * }
897
- * })
898
- *
899
- */
900
697
  update<T extends PaymentUpdateArgs>(args: Prisma.SelectSubset<T, PaymentUpdateArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
901
- /**
902
- * Delete zero or more Payments.
903
- * @param {PaymentDeleteManyArgs} args - Arguments to filter Payments to delete.
904
- * @example
905
- * // Delete a few Payments
906
- * const { count } = await prisma.payment.deleteMany({
907
- * where: {
908
- * // ... provide filter here
909
- * }
910
- * })
911
- *
912
- */
913
698
  deleteMany<T extends PaymentDeleteManyArgs>(args?: Prisma.SelectSubset<T, PaymentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
914
- /**
915
- * Update zero or more Payments.
916
- * Note, that providing `undefined` is treated as the value not being there.
917
- * Read more here: https://pris.ly/d/null-undefined
918
- * @param {PaymentUpdateManyArgs} args - Arguments to update one or more rows.
919
- * @example
920
- * // Update many Payments
921
- * const payment = await prisma.payment.updateMany({
922
- * where: {
923
- * // ... provide filter here
924
- * },
925
- * data: {
926
- * // ... provide data here
927
- * }
928
- * })
929
- *
930
- */
931
699
  updateMany<T extends PaymentUpdateManyArgs>(args: Prisma.SelectSubset<T, PaymentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
932
- /**
933
- * Update zero or more Payments and returns the data updated in the database.
934
- * @param {PaymentUpdateManyAndReturnArgs} args - Arguments to update many Payments.
935
- * @example
936
- * // Update many Payments
937
- * const payment = await prisma.payment.updateManyAndReturn({
938
- * where: {
939
- * // ... provide filter here
940
- * },
941
- * data: [
942
- * // ... provide data here
943
- * ]
944
- * })
945
- *
946
- * // Update zero or more Payments and only return the `id`
947
- * const paymentWithIdOnly = await prisma.payment.updateManyAndReturn({
948
- * select: { id: true },
949
- * where: {
950
- * // ... provide filter here
951
- * },
952
- * data: [
953
- * // ... provide data here
954
- * ]
955
- * })
956
- * Note, that providing `undefined` is treated as the value not being there.
957
- * Read more here: https://pris.ly/d/null-undefined
958
- *
959
- */
960
700
  updateManyAndReturn<T extends PaymentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PaymentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
961
- /**
962
- * Create or update one Payment.
963
- * @param {PaymentUpsertArgs} args - Arguments to update or create a Payment.
964
- * @example
965
- * // Update or create a Payment
966
- * const payment = await prisma.payment.upsert({
967
- * create: {
968
- * // ... data to create a Payment
969
- * },
970
- * update: {
971
- * // ... in case it already exists, update
972
- * },
973
- * where: {
974
- * // ... the filter for the Payment we want to update
975
- * }
976
- * })
977
- */
978
701
  upsert<T extends PaymentUpsertArgs>(args: Prisma.SelectSubset<T, PaymentUpsertArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
979
- /**
980
- * Count the number of Payments.
981
- * Note, that providing `undefined` is treated as the value not being there.
982
- * Read more here: https://pris.ly/d/null-undefined
983
- * @param {PaymentCountArgs} args - Arguments to filter Payments to count.
984
- * @example
985
- * // Count the number of Payments
986
- * const count = await prisma.payment.count({
987
- * where: {
988
- * // ... the filter for the Payments we want to count
989
- * }
990
- * })
991
- **/
992
702
  count<T extends PaymentCountArgs>(args?: Prisma.Subset<T, PaymentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PaymentCountAggregateOutputType> : number>;
993
- /**
994
- * Allows you to perform aggregations operations on a Payment.
995
- * Note, that providing `undefined` is treated as the value not being there.
996
- * Read more here: https://pris.ly/d/null-undefined
997
- * @param {PaymentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
998
- * @example
999
- * // Ordered by age ascending
1000
- * // Where email contains prisma.io
1001
- * // Limited to the 10 users
1002
- * const aggregations = await prisma.user.aggregate({
1003
- * _avg: {
1004
- * age: true,
1005
- * },
1006
- * where: {
1007
- * email: {
1008
- * contains: "prisma.io",
1009
- * },
1010
- * },
1011
- * orderBy: {
1012
- * age: "asc",
1013
- * },
1014
- * take: 10,
1015
- * })
1016
- **/
1017
703
  aggregate<T extends PaymentAggregateArgs>(args: Prisma.Subset<T, PaymentAggregateArgs>): Prisma.PrismaPromise<GetPaymentAggregateType<T>>;
1018
- /**
1019
- * Group by Payment.
1020
- * Note, that providing `undefined` is treated as the value not being there.
1021
- * Read more here: https://pris.ly/d/null-undefined
1022
- * @param {PaymentGroupByArgs} args - Group by arguments.
1023
- * @example
1024
- * // Group by city, order by createdAt, get count
1025
- * const result = await prisma.user.groupBy({
1026
- * by: ['city', 'createdAt'],
1027
- * orderBy: {
1028
- * createdAt: true
1029
- * },
1030
- * _count: {
1031
- * _all: true
1032
- * },
1033
- * })
1034
- *
1035
- **/
1036
704
  groupBy<T extends PaymentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1037
705
  orderBy: PaymentGroupByArgs['orderBy'];
1038
706
  } : {
@@ -1051,45 +719,16 @@ export interface PaymentDelegate<ExtArgs extends runtime.Types.Extensions.Intern
1051
719
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1052
720
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1053
721
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, PaymentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPaymentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1054
- /**
1055
- * Fields of the Payment model
1056
- */
1057
722
  readonly fields: PaymentFieldRefs;
1058
723
  }
1059
- /**
1060
- * The delegate class that acts as a "Promise-like" for Payment.
1061
- * Why is this prefixed with `Prisma__`?
1062
- * Because we want to prevent naming conflicts as mentioned in
1063
- * https://github.com/prisma/prisma-client-js/issues/707
1064
- */
1065
724
  export interface Prisma__PaymentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1066
725
  readonly [Symbol.toStringTag]: "PrismaPromise";
1067
726
  sessions<T extends Prisma.Payment$sessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Payment$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1068
727
  order<T extends Prisma.Payment$orderArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Payment$orderArgs<ExtArgs>>): Prisma.Prisma__OrderClient<runtime.Types.Result.GetResult<Prisma.$OrderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1069
- /**
1070
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1071
- * @param onfulfilled The callback to execute when the Promise is resolved.
1072
- * @param onrejected The callback to execute when the Promise is rejected.
1073
- * @returns A Promise for the completion of which ever callback is executed.
1074
- */
1075
728
  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>;
1076
- /**
1077
- * Attaches a callback for only the rejection of the Promise.
1078
- * @param onrejected The callback to execute when the Promise is rejected.
1079
- * @returns A Promise for the completion of the callback.
1080
- */
1081
729
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1082
- /**
1083
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1084
- * resolved value cannot be modified from the callback.
1085
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1086
- * @returns A Promise for the completion of the callback.
1087
- */
1088
730
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1089
731
  }
1090
- /**
1091
- * Fields of the Payment model
1092
- */
1093
732
  export interface PaymentFieldRefs {
1094
733
  readonly id: Prisma.FieldRef<"Payment", 'String'>;
1095
734
  readonly method: Prisma.FieldRef<"Payment", 'PaymentMethod'>;
@@ -1103,390 +742,107 @@ export interface PaymentFieldRefs {
1103
742
  readonly createdAt: Prisma.FieldRef<"Payment", 'DateTime'>;
1104
743
  readonly updatedAt: Prisma.FieldRef<"Payment", 'DateTime'>;
1105
744
  }
1106
- /**
1107
- * Payment findUnique
1108
- */
1109
745
  export type PaymentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1110
- /**
1111
- * Select specific fields to fetch from the Payment
1112
- */
1113
746
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1114
- /**
1115
- * Omit specific fields from the Payment
1116
- */
1117
747
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1118
- /**
1119
- * Choose, which related nodes to fetch as well
1120
- */
1121
748
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1122
- /**
1123
- * Filter, which Payment to fetch.
1124
- */
1125
749
  where: Prisma.PaymentWhereUniqueInput;
1126
750
  };
1127
- /**
1128
- * Payment findUniqueOrThrow
1129
- */
1130
751
  export type PaymentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1131
- /**
1132
- * Select specific fields to fetch from the Payment
1133
- */
1134
752
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1135
- /**
1136
- * Omit specific fields from the Payment
1137
- */
1138
753
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1139
- /**
1140
- * Choose, which related nodes to fetch as well
1141
- */
1142
754
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1143
- /**
1144
- * Filter, which Payment to fetch.
1145
- */
1146
755
  where: Prisma.PaymentWhereUniqueInput;
1147
756
  };
1148
- /**
1149
- * Payment findFirst
1150
- */
1151
757
  export type PaymentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1152
- /**
1153
- * Select specific fields to fetch from the Payment
1154
- */
1155
758
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1156
- /**
1157
- * Omit specific fields from the Payment
1158
- */
1159
759
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1160
- /**
1161
- * Choose, which related nodes to fetch as well
1162
- */
1163
760
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1164
- /**
1165
- * Filter, which Payment to fetch.
1166
- */
1167
761
  where?: Prisma.PaymentWhereInput;
1168
- /**
1169
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1170
- *
1171
- * Determine the order of Payments to fetch.
1172
- */
1173
762
  orderBy?: Prisma.PaymentOrderByWithRelationInput | Prisma.PaymentOrderByWithRelationInput[];
1174
- /**
1175
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1176
- *
1177
- * Sets the position for searching for Payments.
1178
- */
1179
763
  cursor?: Prisma.PaymentWhereUniqueInput;
1180
- /**
1181
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1182
- *
1183
- * Take `±n` Payments from the position of the cursor.
1184
- */
1185
764
  take?: number;
1186
- /**
1187
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1188
- *
1189
- * Skip the first `n` Payments.
1190
- */
1191
765
  skip?: number;
1192
- /**
1193
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1194
- *
1195
- * Filter by unique combinations of Payments.
1196
- */
1197
766
  distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[];
1198
767
  };
1199
- /**
1200
- * Payment findFirstOrThrow
1201
- */
1202
768
  export type PaymentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1203
- /**
1204
- * Select specific fields to fetch from the Payment
1205
- */
1206
769
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1207
- /**
1208
- * Omit specific fields from the Payment
1209
- */
1210
770
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1211
- /**
1212
- * Choose, which related nodes to fetch as well
1213
- */
1214
771
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1215
- /**
1216
- * Filter, which Payment to fetch.
1217
- */
1218
772
  where?: Prisma.PaymentWhereInput;
1219
- /**
1220
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1221
- *
1222
- * Determine the order of Payments to fetch.
1223
- */
1224
773
  orderBy?: Prisma.PaymentOrderByWithRelationInput | Prisma.PaymentOrderByWithRelationInput[];
1225
- /**
1226
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1227
- *
1228
- * Sets the position for searching for Payments.
1229
- */
1230
774
  cursor?: Prisma.PaymentWhereUniqueInput;
1231
- /**
1232
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1233
- *
1234
- * Take `±n` Payments from the position of the cursor.
1235
- */
1236
775
  take?: number;
1237
- /**
1238
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1239
- *
1240
- * Skip the first `n` Payments.
1241
- */
1242
776
  skip?: number;
1243
- /**
1244
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1245
- *
1246
- * Filter by unique combinations of Payments.
1247
- */
1248
777
  distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[];
1249
778
  };
1250
- /**
1251
- * Payment findMany
1252
- */
1253
779
  export type PaymentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1254
- /**
1255
- * Select specific fields to fetch from the Payment
1256
- */
1257
780
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1258
- /**
1259
- * Omit specific fields from the Payment
1260
- */
1261
781
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1262
- /**
1263
- * Choose, which related nodes to fetch as well
1264
- */
1265
782
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1266
- /**
1267
- * Filter, which Payments to fetch.
1268
- */
1269
783
  where?: Prisma.PaymentWhereInput;
1270
- /**
1271
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1272
- *
1273
- * Determine the order of Payments to fetch.
1274
- */
1275
784
  orderBy?: Prisma.PaymentOrderByWithRelationInput | Prisma.PaymentOrderByWithRelationInput[];
1276
- /**
1277
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1278
- *
1279
- * Sets the position for listing Payments.
1280
- */
1281
785
  cursor?: Prisma.PaymentWhereUniqueInput;
1282
- /**
1283
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1284
- *
1285
- * Take `±n` Payments from the position of the cursor.
1286
- */
1287
786
  take?: number;
1288
- /**
1289
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1290
- *
1291
- * Skip the first `n` Payments.
1292
- */
1293
787
  skip?: number;
1294
788
  distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[];
1295
789
  };
1296
- /**
1297
- * Payment create
1298
- */
1299
790
  export type PaymentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1300
- /**
1301
- * Select specific fields to fetch from the Payment
1302
- */
1303
791
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1304
- /**
1305
- * Omit specific fields from the Payment
1306
- */
1307
792
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1308
- /**
1309
- * Choose, which related nodes to fetch as well
1310
- */
1311
793
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1312
- /**
1313
- * The data needed to create a Payment.
1314
- */
1315
794
  data: Prisma.XOR<Prisma.PaymentCreateInput, Prisma.PaymentUncheckedCreateInput>;
1316
795
  };
1317
- /**
1318
- * Payment createMany
1319
- */
1320
796
  export type PaymentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1321
- /**
1322
- * The data used to create many Payments.
1323
- */
1324
797
  data: Prisma.PaymentCreateManyInput | Prisma.PaymentCreateManyInput[];
1325
798
  skipDuplicates?: boolean;
1326
799
  };
1327
- /**
1328
- * Payment createManyAndReturn
1329
- */
1330
800
  export type PaymentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1331
- /**
1332
- * Select specific fields to fetch from the Payment
1333
- */
1334
801
  select?: Prisma.PaymentSelectCreateManyAndReturn<ExtArgs> | null;
1335
- /**
1336
- * Omit specific fields from the Payment
1337
- */
1338
802
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1339
- /**
1340
- * The data used to create many Payments.
1341
- */
1342
803
  data: Prisma.PaymentCreateManyInput | Prisma.PaymentCreateManyInput[];
1343
804
  skipDuplicates?: boolean;
1344
805
  };
1345
- /**
1346
- * Payment update
1347
- */
1348
806
  export type PaymentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1349
- /**
1350
- * Select specific fields to fetch from the Payment
1351
- */
1352
807
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1353
- /**
1354
- * Omit specific fields from the Payment
1355
- */
1356
808
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1357
- /**
1358
- * Choose, which related nodes to fetch as well
1359
- */
1360
809
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1361
- /**
1362
- * The data needed to update a Payment.
1363
- */
1364
810
  data: Prisma.XOR<Prisma.PaymentUpdateInput, Prisma.PaymentUncheckedUpdateInput>;
1365
- /**
1366
- * Choose, which Payment to update.
1367
- */
1368
811
  where: Prisma.PaymentWhereUniqueInput;
1369
812
  };
1370
- /**
1371
- * Payment updateMany
1372
- */
1373
813
  export type PaymentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1374
- /**
1375
- * The data used to update Payments.
1376
- */
1377
814
  data: Prisma.XOR<Prisma.PaymentUpdateManyMutationInput, Prisma.PaymentUncheckedUpdateManyInput>;
1378
- /**
1379
- * Filter which Payments to update
1380
- */
1381
815
  where?: Prisma.PaymentWhereInput;
1382
- /**
1383
- * Limit how many Payments to update.
1384
- */
1385
816
  limit?: number;
1386
817
  };
1387
- /**
1388
- * Payment updateManyAndReturn
1389
- */
1390
818
  export type PaymentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1391
- /**
1392
- * Select specific fields to fetch from the Payment
1393
- */
1394
819
  select?: Prisma.PaymentSelectUpdateManyAndReturn<ExtArgs> | null;
1395
- /**
1396
- * Omit specific fields from the Payment
1397
- */
1398
820
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1399
- /**
1400
- * The data used to update Payments.
1401
- */
1402
821
  data: Prisma.XOR<Prisma.PaymentUpdateManyMutationInput, Prisma.PaymentUncheckedUpdateManyInput>;
1403
- /**
1404
- * Filter which Payments to update
1405
- */
1406
822
  where?: Prisma.PaymentWhereInput;
1407
- /**
1408
- * Limit how many Payments to update.
1409
- */
1410
823
  limit?: number;
1411
824
  };
1412
- /**
1413
- * Payment upsert
1414
- */
1415
825
  export type PaymentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1416
- /**
1417
- * Select specific fields to fetch from the Payment
1418
- */
1419
826
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1420
- /**
1421
- * Omit specific fields from the Payment
1422
- */
1423
827
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1424
- /**
1425
- * Choose, which related nodes to fetch as well
1426
- */
1427
828
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1428
- /**
1429
- * The filter to search for the Payment to update in case it exists.
1430
- */
1431
829
  where: Prisma.PaymentWhereUniqueInput;
1432
- /**
1433
- * In case the Payment found by the `where` argument doesn't exist, create a new Payment with this data.
1434
- */
1435
830
  create: Prisma.XOR<Prisma.PaymentCreateInput, Prisma.PaymentUncheckedCreateInput>;
1436
- /**
1437
- * In case the Payment was found with the provided `where` argument, update it with this data.
1438
- */
1439
831
  update: Prisma.XOR<Prisma.PaymentUpdateInput, Prisma.PaymentUncheckedUpdateInput>;
1440
832
  };
1441
- /**
1442
- * Payment delete
1443
- */
1444
833
  export type PaymentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1445
- /**
1446
- * Select specific fields to fetch from the Payment
1447
- */
1448
834
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1449
- /**
1450
- * Omit specific fields from the Payment
1451
- */
1452
835
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1453
- /**
1454
- * Choose, which related nodes to fetch as well
1455
- */
1456
836
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1457
- /**
1458
- * Filter which Payment to delete.
1459
- */
1460
837
  where: Prisma.PaymentWhereUniqueInput;
1461
838
  };
1462
- /**
1463
- * Payment deleteMany
1464
- */
1465
839
  export type PaymentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1466
- /**
1467
- * Filter which Payments to delete
1468
- */
1469
840
  where?: Prisma.PaymentWhereInput;
1470
- /**
1471
- * Limit how many Payments to delete.
1472
- */
1473
841
  limit?: number;
1474
842
  };
1475
- /**
1476
- * Payment.sessions
1477
- */
1478
843
  export type Payment$sessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1479
- /**
1480
- * Select specific fields to fetch from the PaymentSession
1481
- */
1482
844
  select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1483
- /**
1484
- * Omit specific fields from the PaymentSession
1485
- */
1486
845
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1487
- /**
1488
- * Choose, which related nodes to fetch as well
1489
- */
1490
846
  include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1491
847
  where?: Prisma.PaymentSessionWhereInput;
1492
848
  orderBy?: Prisma.PaymentSessionOrderByWithRelationInput | Prisma.PaymentSessionOrderByWithRelationInput[];
@@ -1495,39 +851,15 @@ export type Payment$sessionsArgs<ExtArgs extends runtime.Types.Extensions.Intern
1495
851
  skip?: number;
1496
852
  distinct?: Prisma.PaymentSessionScalarFieldEnum | Prisma.PaymentSessionScalarFieldEnum[];
1497
853
  };
1498
- /**
1499
- * Payment.order
1500
- */
1501
854
  export type Payment$orderArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1502
- /**
1503
- * Select specific fields to fetch from the Order
1504
- */
1505
855
  select?: Prisma.OrderSelect<ExtArgs> | null;
1506
- /**
1507
- * Omit specific fields from the Order
1508
- */
1509
856
  omit?: Prisma.OrderOmit<ExtArgs> | null;
1510
- /**
1511
- * Choose, which related nodes to fetch as well
1512
- */
1513
857
  include?: Prisma.OrderInclude<ExtArgs> | null;
1514
858
  where?: Prisma.OrderWhereInput;
1515
859
  };
1516
- /**
1517
- * Payment without action
1518
- */
1519
860
  export type PaymentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1520
- /**
1521
- * Select specific fields to fetch from the Payment
1522
- */
1523
861
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1524
- /**
1525
- * Omit specific fields from the Payment
1526
- */
1527
862
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1528
- /**
1529
- * Choose, which related nodes to fetch as well
1530
- */
1531
863
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1532
864
  };
1533
865
  export {};