@shophost/rest-api 2.0.30 → 2.0.32

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 +123 -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 ClosingTimes
5
- *
6
- */
7
3
  export type ClosingTimesModel = runtime.Types.Result.DefaultSelection<Prisma.$ClosingTimesPayload>;
8
4
  export type AggregateClosingTimes = {
9
5
  _count: ClosingTimesCountAggregateOutputType | null;
@@ -73,51 +69,13 @@ export type ClosingTimesCountAggregateInputType = {
73
69
  _all?: true;
74
70
  };
75
71
  export type ClosingTimesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
76
- /**
77
- * Filter which ClosingTimes to aggregate.
78
- */
79
72
  where?: Prisma.ClosingTimesWhereInput;
80
- /**
81
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
82
- *
83
- * Determine the order of ClosingTimes to fetch.
84
- */
85
73
  orderBy?: Prisma.ClosingTimesOrderByWithRelationInput | Prisma.ClosingTimesOrderByWithRelationInput[];
86
- /**
87
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
88
- *
89
- * Sets the start position
90
- */
91
74
  cursor?: Prisma.ClosingTimesWhereUniqueInput;
92
- /**
93
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
- *
95
- * Take `±n` ClosingTimes from the position of the cursor.
96
- */
97
75
  take?: number;
98
- /**
99
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
100
- *
101
- * Skip the first `n` ClosingTimes.
102
- */
103
76
  skip?: number;
104
- /**
105
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
- *
107
- * Count returned ClosingTimes
108
- **/
109
77
  _count?: true | ClosingTimesCountAggregateInputType;
110
- /**
111
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
- *
113
- * Select which fields to find the minimum value
114
- **/
115
78
  _min?: ClosingTimesMinAggregateInputType;
116
- /**
117
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
118
- *
119
- * Select which fields to find the maximum value
120
- **/
121
79
  _max?: ClosingTimesMaxAggregateInputType;
122
80
  };
123
81
  export type GetClosingTimesAggregateType<T extends ClosingTimesAggregateArgs> = {
@@ -465,290 +423,22 @@ export interface ClosingTimesDelegate<ExtArgs extends runtime.Types.Extensions.I
465
423
  name: 'ClosingTimes';
466
424
  };
467
425
  };
468
- /**
469
- * Find zero or one ClosingTimes that matches the filter.
470
- * @param {ClosingTimesFindUniqueArgs} args - Arguments to find a ClosingTimes
471
- * @example
472
- * // Get one ClosingTimes
473
- * const closingTimes = await prisma.closingTimes.findUnique({
474
- * where: {
475
- * // ... provide filter here
476
- * }
477
- * })
478
- */
479
426
  findUnique<T extends ClosingTimesFindUniqueArgs>(args: Prisma.SelectSubset<T, ClosingTimesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ClosingTimesClient<runtime.Types.Result.GetResult<Prisma.$ClosingTimesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
480
- /**
481
- * Find one ClosingTimes that matches the filter or throw an error with `error.code='P2025'`
482
- * if no matches were found.
483
- * @param {ClosingTimesFindUniqueOrThrowArgs} args - Arguments to find a ClosingTimes
484
- * @example
485
- * // Get one ClosingTimes
486
- * const closingTimes = await prisma.closingTimes.findUniqueOrThrow({
487
- * where: {
488
- * // ... provide filter here
489
- * }
490
- * })
491
- */
492
427
  findUniqueOrThrow<T extends ClosingTimesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ClosingTimesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ClosingTimesClient<runtime.Types.Result.GetResult<Prisma.$ClosingTimesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
493
- /**
494
- * Find the first ClosingTimes that matches the filter.
495
- * Note, that providing `undefined` is treated as the value not being there.
496
- * Read more here: https://pris.ly/d/null-undefined
497
- * @param {ClosingTimesFindFirstArgs} args - Arguments to find a ClosingTimes
498
- * @example
499
- * // Get one ClosingTimes
500
- * const closingTimes = await prisma.closingTimes.findFirst({
501
- * where: {
502
- * // ... provide filter here
503
- * }
504
- * })
505
- */
506
428
  findFirst<T extends ClosingTimesFindFirstArgs>(args?: Prisma.SelectSubset<T, ClosingTimesFindFirstArgs<ExtArgs>>): Prisma.Prisma__ClosingTimesClient<runtime.Types.Result.GetResult<Prisma.$ClosingTimesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
507
- /**
508
- * Find the first ClosingTimes that matches the filter or
509
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
510
- * Note, that providing `undefined` is treated as the value not being there.
511
- * Read more here: https://pris.ly/d/null-undefined
512
- * @param {ClosingTimesFindFirstOrThrowArgs} args - Arguments to find a ClosingTimes
513
- * @example
514
- * // Get one ClosingTimes
515
- * const closingTimes = await prisma.closingTimes.findFirstOrThrow({
516
- * where: {
517
- * // ... provide filter here
518
- * }
519
- * })
520
- */
521
429
  findFirstOrThrow<T extends ClosingTimesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ClosingTimesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ClosingTimesClient<runtime.Types.Result.GetResult<Prisma.$ClosingTimesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
522
- /**
523
- * Find zero or more ClosingTimes that matches the filter.
524
- * Note, that providing `undefined` is treated as the value not being there.
525
- * Read more here: https://pris.ly/d/null-undefined
526
- * @param {ClosingTimesFindManyArgs} args - Arguments to filter and select certain fields only.
527
- * @example
528
- * // Get all ClosingTimes
529
- * const closingTimes = await prisma.closingTimes.findMany()
530
- *
531
- * // Get first 10 ClosingTimes
532
- * const closingTimes = await prisma.closingTimes.findMany({ take: 10 })
533
- *
534
- * // Only select the `id`
535
- * const closingTimesWithIdOnly = await prisma.closingTimes.findMany({ select: { id: true } })
536
- *
537
- */
538
430
  findMany<T extends ClosingTimesFindManyArgs>(args?: Prisma.SelectSubset<T, ClosingTimesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ClosingTimesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
539
- /**
540
- * Create a ClosingTimes.
541
- * @param {ClosingTimesCreateArgs} args - Arguments to create a ClosingTimes.
542
- * @example
543
- * // Create one ClosingTimes
544
- * const ClosingTimes = await prisma.closingTimes.create({
545
- * data: {
546
- * // ... data to create a ClosingTimes
547
- * }
548
- * })
549
- *
550
- */
551
431
  create<T extends ClosingTimesCreateArgs>(args: Prisma.SelectSubset<T, ClosingTimesCreateArgs<ExtArgs>>): Prisma.Prisma__ClosingTimesClient<runtime.Types.Result.GetResult<Prisma.$ClosingTimesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
552
- /**
553
- * Create many ClosingTimes.
554
- * @param {ClosingTimesCreateManyArgs} args - Arguments to create many ClosingTimes.
555
- * @example
556
- * // Create many ClosingTimes
557
- * const closingTimes = await prisma.closingTimes.createMany({
558
- * data: [
559
- * // ... provide data here
560
- * ]
561
- * })
562
- *
563
- */
564
432
  createMany<T extends ClosingTimesCreateManyArgs>(args?: Prisma.SelectSubset<T, ClosingTimesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
565
- /**
566
- * Create many ClosingTimes and returns the data saved in the database.
567
- * @param {ClosingTimesCreateManyAndReturnArgs} args - Arguments to create many ClosingTimes.
568
- * @example
569
- * // Create many ClosingTimes
570
- * const closingTimes = await prisma.closingTimes.createManyAndReturn({
571
- * data: [
572
- * // ... provide data here
573
- * ]
574
- * })
575
- *
576
- * // Create many ClosingTimes and only return the `id`
577
- * const closingTimesWithIdOnly = await prisma.closingTimes.createManyAndReturn({
578
- * select: { id: true },
579
- * data: [
580
- * // ... provide data here
581
- * ]
582
- * })
583
- * Note, that providing `undefined` is treated as the value not being there.
584
- * Read more here: https://pris.ly/d/null-undefined
585
- *
586
- */
587
433
  createManyAndReturn<T extends ClosingTimesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ClosingTimesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ClosingTimesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
588
- /**
589
- * Delete a ClosingTimes.
590
- * @param {ClosingTimesDeleteArgs} args - Arguments to delete one ClosingTimes.
591
- * @example
592
- * // Delete one ClosingTimes
593
- * const ClosingTimes = await prisma.closingTimes.delete({
594
- * where: {
595
- * // ... filter to delete one ClosingTimes
596
- * }
597
- * })
598
- *
599
- */
600
434
  delete<T extends ClosingTimesDeleteArgs>(args: Prisma.SelectSubset<T, ClosingTimesDeleteArgs<ExtArgs>>): Prisma.Prisma__ClosingTimesClient<runtime.Types.Result.GetResult<Prisma.$ClosingTimesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
601
- /**
602
- * Update one ClosingTimes.
603
- * @param {ClosingTimesUpdateArgs} args - Arguments to update one ClosingTimes.
604
- * @example
605
- * // Update one ClosingTimes
606
- * const closingTimes = await prisma.closingTimes.update({
607
- * where: {
608
- * // ... provide filter here
609
- * },
610
- * data: {
611
- * // ... provide data here
612
- * }
613
- * })
614
- *
615
- */
616
435
  update<T extends ClosingTimesUpdateArgs>(args: Prisma.SelectSubset<T, ClosingTimesUpdateArgs<ExtArgs>>): Prisma.Prisma__ClosingTimesClient<runtime.Types.Result.GetResult<Prisma.$ClosingTimesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
617
- /**
618
- * Delete zero or more ClosingTimes.
619
- * @param {ClosingTimesDeleteManyArgs} args - Arguments to filter ClosingTimes to delete.
620
- * @example
621
- * // Delete a few ClosingTimes
622
- * const { count } = await prisma.closingTimes.deleteMany({
623
- * where: {
624
- * // ... provide filter here
625
- * }
626
- * })
627
- *
628
- */
629
436
  deleteMany<T extends ClosingTimesDeleteManyArgs>(args?: Prisma.SelectSubset<T, ClosingTimesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
630
- /**
631
- * Update zero or more ClosingTimes.
632
- * Note, that providing `undefined` is treated as the value not being there.
633
- * Read more here: https://pris.ly/d/null-undefined
634
- * @param {ClosingTimesUpdateManyArgs} args - Arguments to update one or more rows.
635
- * @example
636
- * // Update many ClosingTimes
637
- * const closingTimes = await prisma.closingTimes.updateMany({
638
- * where: {
639
- * // ... provide filter here
640
- * },
641
- * data: {
642
- * // ... provide data here
643
- * }
644
- * })
645
- *
646
- */
647
437
  updateMany<T extends ClosingTimesUpdateManyArgs>(args: Prisma.SelectSubset<T, ClosingTimesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
648
- /**
649
- * Update zero or more ClosingTimes and returns the data updated in the database.
650
- * @param {ClosingTimesUpdateManyAndReturnArgs} args - Arguments to update many ClosingTimes.
651
- * @example
652
- * // Update many ClosingTimes
653
- * const closingTimes = await prisma.closingTimes.updateManyAndReturn({
654
- * where: {
655
- * // ... provide filter here
656
- * },
657
- * data: [
658
- * // ... provide data here
659
- * ]
660
- * })
661
- *
662
- * // Update zero or more ClosingTimes and only return the `id`
663
- * const closingTimesWithIdOnly = await prisma.closingTimes.updateManyAndReturn({
664
- * select: { id: true },
665
- * where: {
666
- * // ... provide filter here
667
- * },
668
- * data: [
669
- * // ... provide data here
670
- * ]
671
- * })
672
- * Note, that providing `undefined` is treated as the value not being there.
673
- * Read more here: https://pris.ly/d/null-undefined
674
- *
675
- */
676
438
  updateManyAndReturn<T extends ClosingTimesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ClosingTimesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ClosingTimesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
677
- /**
678
- * Create or update one ClosingTimes.
679
- * @param {ClosingTimesUpsertArgs} args - Arguments to update or create a ClosingTimes.
680
- * @example
681
- * // Update or create a ClosingTimes
682
- * const closingTimes = await prisma.closingTimes.upsert({
683
- * create: {
684
- * // ... data to create a ClosingTimes
685
- * },
686
- * update: {
687
- * // ... in case it already exists, update
688
- * },
689
- * where: {
690
- * // ... the filter for the ClosingTimes we want to update
691
- * }
692
- * })
693
- */
694
439
  upsert<T extends ClosingTimesUpsertArgs>(args: Prisma.SelectSubset<T, ClosingTimesUpsertArgs<ExtArgs>>): Prisma.Prisma__ClosingTimesClient<runtime.Types.Result.GetResult<Prisma.$ClosingTimesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
695
- /**
696
- * Count the number of ClosingTimes.
697
- * Note, that providing `undefined` is treated as the value not being there.
698
- * Read more here: https://pris.ly/d/null-undefined
699
- * @param {ClosingTimesCountArgs} args - Arguments to filter ClosingTimes to count.
700
- * @example
701
- * // Count the number of ClosingTimes
702
- * const count = await prisma.closingTimes.count({
703
- * where: {
704
- * // ... the filter for the ClosingTimes we want to count
705
- * }
706
- * })
707
- **/
708
440
  count<T extends ClosingTimesCountArgs>(args?: Prisma.Subset<T, ClosingTimesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ClosingTimesCountAggregateOutputType> : number>;
709
- /**
710
- * Allows you to perform aggregations operations on a ClosingTimes.
711
- * Note, that providing `undefined` is treated as the value not being there.
712
- * Read more here: https://pris.ly/d/null-undefined
713
- * @param {ClosingTimesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
714
- * @example
715
- * // Ordered by age ascending
716
- * // Where email contains prisma.io
717
- * // Limited to the 10 users
718
- * const aggregations = await prisma.user.aggregate({
719
- * _avg: {
720
- * age: true,
721
- * },
722
- * where: {
723
- * email: {
724
- * contains: "prisma.io",
725
- * },
726
- * },
727
- * orderBy: {
728
- * age: "asc",
729
- * },
730
- * take: 10,
731
- * })
732
- **/
733
441
  aggregate<T extends ClosingTimesAggregateArgs>(args: Prisma.Subset<T, ClosingTimesAggregateArgs>): Prisma.PrismaPromise<GetClosingTimesAggregateType<T>>;
734
- /**
735
- * Group by ClosingTimes.
736
- * Note, that providing `undefined` is treated as the value not being there.
737
- * Read more here: https://pris.ly/d/null-undefined
738
- * @param {ClosingTimesGroupByArgs} args - Group by arguments.
739
- * @example
740
- * // Group by city, order by createdAt, get count
741
- * const result = await prisma.user.groupBy({
742
- * by: ['city', 'createdAt'],
743
- * orderBy: {
744
- * createdAt: true
745
- * },
746
- * _count: {
747
- * _all: true
748
- * },
749
- * })
750
- *
751
- **/
752
442
  groupBy<T extends ClosingTimesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
753
443
  orderBy: ClosingTimesGroupByArgs['orderBy'];
754
444
  } : {
@@ -767,44 +457,15 @@ export interface ClosingTimesDelegate<ExtArgs extends runtime.Types.Extensions.I
767
457
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
768
458
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
769
459
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, ClosingTimesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetClosingTimesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
770
- /**
771
- * Fields of the ClosingTimes model
772
- */
773
460
  readonly fields: ClosingTimesFieldRefs;
774
461
  }
775
- /**
776
- * The delegate class that acts as a "Promise-like" for ClosingTimes.
777
- * Why is this prefixed with `Prisma__`?
778
- * Because we want to prevent naming conflicts as mentioned in
779
- * https://github.com/prisma/prisma-client-js/issues/707
780
- */
781
462
  export interface Prisma__ClosingTimesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
782
463
  readonly [Symbol.toStringTag]: "PrismaPromise";
783
464
  organizationConfiguration<T extends Prisma.ClosingTimes$organizationConfigurationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ClosingTimes$organizationConfigurationArgs<ExtArgs>>): Prisma.Prisma__OrganizationConfigurationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationConfigurationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
784
- /**
785
- * Attaches callbacks for the resolution and/or rejection of the Promise.
786
- * @param onfulfilled The callback to execute when the Promise is resolved.
787
- * @param onrejected The callback to execute when the Promise is rejected.
788
- * @returns A Promise for the completion of which ever callback is executed.
789
- */
790
465
  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>;
791
- /**
792
- * Attaches a callback for only the rejection of the Promise.
793
- * @param onrejected The callback to execute when the Promise is rejected.
794
- * @returns A Promise for the completion of the callback.
795
- */
796
466
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
797
- /**
798
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
799
- * resolved value cannot be modified from the callback.
800
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
801
- * @returns A Promise for the completion of the callback.
802
- */
803
467
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
804
468
  }
805
- /**
806
- * Fields of the ClosingTimes model
807
- */
808
469
  export interface ClosingTimesFieldRefs {
809
470
  readonly id: Prisma.FieldRef<"ClosingTimes", 'String'>;
810
471
  readonly monday: Prisma.FieldRef<"ClosingTimes", 'DateTime'>;
@@ -815,408 +476,113 @@ export interface ClosingTimesFieldRefs {
815
476
  readonly saturday: Prisma.FieldRef<"ClosingTimes", 'DateTime'>;
816
477
  readonly sunday: Prisma.FieldRef<"ClosingTimes", 'DateTime'>;
817
478
  }
818
- /**
819
- * ClosingTimes findUnique
820
- */
821
479
  export type ClosingTimesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
822
- /**
823
- * Select specific fields to fetch from the ClosingTimes
824
- */
825
480
  select?: Prisma.ClosingTimesSelect<ExtArgs> | null;
826
- /**
827
- * Omit specific fields from the ClosingTimes
828
- */
829
481
  omit?: Prisma.ClosingTimesOmit<ExtArgs> | null;
830
- /**
831
- * Choose, which related nodes to fetch as well
832
- */
833
482
  include?: Prisma.ClosingTimesInclude<ExtArgs> | null;
834
- /**
835
- * Filter, which ClosingTimes to fetch.
836
- */
837
483
  where: Prisma.ClosingTimesWhereUniqueInput;
838
484
  };
839
- /**
840
- * ClosingTimes findUniqueOrThrow
841
- */
842
485
  export type ClosingTimesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
843
- /**
844
- * Select specific fields to fetch from the ClosingTimes
845
- */
846
486
  select?: Prisma.ClosingTimesSelect<ExtArgs> | null;
847
- /**
848
- * Omit specific fields from the ClosingTimes
849
- */
850
487
  omit?: Prisma.ClosingTimesOmit<ExtArgs> | null;
851
- /**
852
- * Choose, which related nodes to fetch as well
853
- */
854
488
  include?: Prisma.ClosingTimesInclude<ExtArgs> | null;
855
- /**
856
- * Filter, which ClosingTimes to fetch.
857
- */
858
489
  where: Prisma.ClosingTimesWhereUniqueInput;
859
490
  };
860
- /**
861
- * ClosingTimes findFirst
862
- */
863
491
  export type ClosingTimesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
864
- /**
865
- * Select specific fields to fetch from the ClosingTimes
866
- */
867
492
  select?: Prisma.ClosingTimesSelect<ExtArgs> | null;
868
- /**
869
- * Omit specific fields from the ClosingTimes
870
- */
871
493
  omit?: Prisma.ClosingTimesOmit<ExtArgs> | null;
872
- /**
873
- * Choose, which related nodes to fetch as well
874
- */
875
494
  include?: Prisma.ClosingTimesInclude<ExtArgs> | null;
876
- /**
877
- * Filter, which ClosingTimes to fetch.
878
- */
879
495
  where?: Prisma.ClosingTimesWhereInput;
880
- /**
881
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
882
- *
883
- * Determine the order of ClosingTimes to fetch.
884
- */
885
496
  orderBy?: Prisma.ClosingTimesOrderByWithRelationInput | Prisma.ClosingTimesOrderByWithRelationInput[];
886
- /**
887
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
888
- *
889
- * Sets the position for searching for ClosingTimes.
890
- */
891
497
  cursor?: Prisma.ClosingTimesWhereUniqueInput;
892
- /**
893
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
894
- *
895
- * Take `±n` ClosingTimes from the position of the cursor.
896
- */
897
498
  take?: number;
898
- /**
899
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
900
- *
901
- * Skip the first `n` ClosingTimes.
902
- */
903
499
  skip?: number;
904
- /**
905
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
906
- *
907
- * Filter by unique combinations of ClosingTimes.
908
- */
909
500
  distinct?: Prisma.ClosingTimesScalarFieldEnum | Prisma.ClosingTimesScalarFieldEnum[];
910
501
  };
911
- /**
912
- * ClosingTimes findFirstOrThrow
913
- */
914
502
  export type ClosingTimesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
915
- /**
916
- * Select specific fields to fetch from the ClosingTimes
917
- */
918
503
  select?: Prisma.ClosingTimesSelect<ExtArgs> | null;
919
- /**
920
- * Omit specific fields from the ClosingTimes
921
- */
922
504
  omit?: Prisma.ClosingTimesOmit<ExtArgs> | null;
923
- /**
924
- * Choose, which related nodes to fetch as well
925
- */
926
505
  include?: Prisma.ClosingTimesInclude<ExtArgs> | null;
927
- /**
928
- * Filter, which ClosingTimes to fetch.
929
- */
930
506
  where?: Prisma.ClosingTimesWhereInput;
931
- /**
932
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
933
- *
934
- * Determine the order of ClosingTimes to fetch.
935
- */
936
507
  orderBy?: Prisma.ClosingTimesOrderByWithRelationInput | Prisma.ClosingTimesOrderByWithRelationInput[];
937
- /**
938
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
939
- *
940
- * Sets the position for searching for ClosingTimes.
941
- */
942
508
  cursor?: Prisma.ClosingTimesWhereUniqueInput;
943
- /**
944
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
945
- *
946
- * Take `±n` ClosingTimes from the position of the cursor.
947
- */
948
509
  take?: number;
949
- /**
950
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
951
- *
952
- * Skip the first `n` ClosingTimes.
953
- */
954
510
  skip?: number;
955
- /**
956
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
957
- *
958
- * Filter by unique combinations of ClosingTimes.
959
- */
960
511
  distinct?: Prisma.ClosingTimesScalarFieldEnum | Prisma.ClosingTimesScalarFieldEnum[];
961
512
  };
962
- /**
963
- * ClosingTimes findMany
964
- */
965
513
  export type ClosingTimesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
966
- /**
967
- * Select specific fields to fetch from the ClosingTimes
968
- */
969
514
  select?: Prisma.ClosingTimesSelect<ExtArgs> | null;
970
- /**
971
- * Omit specific fields from the ClosingTimes
972
- */
973
515
  omit?: Prisma.ClosingTimesOmit<ExtArgs> | null;
974
- /**
975
- * Choose, which related nodes to fetch as well
976
- */
977
516
  include?: Prisma.ClosingTimesInclude<ExtArgs> | null;
978
- /**
979
- * Filter, which ClosingTimes to fetch.
980
- */
981
517
  where?: Prisma.ClosingTimesWhereInput;
982
- /**
983
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
984
- *
985
- * Determine the order of ClosingTimes to fetch.
986
- */
987
518
  orderBy?: Prisma.ClosingTimesOrderByWithRelationInput | Prisma.ClosingTimesOrderByWithRelationInput[];
988
- /**
989
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
990
- *
991
- * Sets the position for listing ClosingTimes.
992
- */
993
519
  cursor?: Prisma.ClosingTimesWhereUniqueInput;
994
- /**
995
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
996
- *
997
- * Take `±n` ClosingTimes from the position of the cursor.
998
- */
999
520
  take?: number;
1000
- /**
1001
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1002
- *
1003
- * Skip the first `n` ClosingTimes.
1004
- */
1005
521
  skip?: number;
1006
522
  distinct?: Prisma.ClosingTimesScalarFieldEnum | Prisma.ClosingTimesScalarFieldEnum[];
1007
523
  };
1008
- /**
1009
- * ClosingTimes create
1010
- */
1011
524
  export type ClosingTimesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1012
- /**
1013
- * Select specific fields to fetch from the ClosingTimes
1014
- */
1015
525
  select?: Prisma.ClosingTimesSelect<ExtArgs> | null;
1016
- /**
1017
- * Omit specific fields from the ClosingTimes
1018
- */
1019
526
  omit?: Prisma.ClosingTimesOmit<ExtArgs> | null;
1020
- /**
1021
- * Choose, which related nodes to fetch as well
1022
- */
1023
527
  include?: Prisma.ClosingTimesInclude<ExtArgs> | null;
1024
- /**
1025
- * The data needed to create a ClosingTimes.
1026
- */
1027
528
  data?: Prisma.XOR<Prisma.ClosingTimesCreateInput, Prisma.ClosingTimesUncheckedCreateInput>;
1028
529
  };
1029
- /**
1030
- * ClosingTimes createMany
1031
- */
1032
530
  export type ClosingTimesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1033
- /**
1034
- * The data used to create many ClosingTimes.
1035
- */
1036
531
  data: Prisma.ClosingTimesCreateManyInput | Prisma.ClosingTimesCreateManyInput[];
1037
532
  skipDuplicates?: boolean;
1038
533
  };
1039
- /**
1040
- * ClosingTimes createManyAndReturn
1041
- */
1042
534
  export type ClosingTimesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1043
- /**
1044
- * Select specific fields to fetch from the ClosingTimes
1045
- */
1046
535
  select?: Prisma.ClosingTimesSelectCreateManyAndReturn<ExtArgs> | null;
1047
- /**
1048
- * Omit specific fields from the ClosingTimes
1049
- */
1050
536
  omit?: Prisma.ClosingTimesOmit<ExtArgs> | null;
1051
- /**
1052
- * The data used to create many ClosingTimes.
1053
- */
1054
537
  data: Prisma.ClosingTimesCreateManyInput | Prisma.ClosingTimesCreateManyInput[];
1055
538
  skipDuplicates?: boolean;
1056
539
  };
1057
- /**
1058
- * ClosingTimes update
1059
- */
1060
540
  export type ClosingTimesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1061
- /**
1062
- * Select specific fields to fetch from the ClosingTimes
1063
- */
1064
541
  select?: Prisma.ClosingTimesSelect<ExtArgs> | null;
1065
- /**
1066
- * Omit specific fields from the ClosingTimes
1067
- */
1068
542
  omit?: Prisma.ClosingTimesOmit<ExtArgs> | null;
1069
- /**
1070
- * Choose, which related nodes to fetch as well
1071
- */
1072
543
  include?: Prisma.ClosingTimesInclude<ExtArgs> | null;
1073
- /**
1074
- * The data needed to update a ClosingTimes.
1075
- */
1076
544
  data: Prisma.XOR<Prisma.ClosingTimesUpdateInput, Prisma.ClosingTimesUncheckedUpdateInput>;
1077
- /**
1078
- * Choose, which ClosingTimes to update.
1079
- */
1080
545
  where: Prisma.ClosingTimesWhereUniqueInput;
1081
546
  };
1082
- /**
1083
- * ClosingTimes updateMany
1084
- */
1085
547
  export type ClosingTimesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1086
- /**
1087
- * The data used to update ClosingTimes.
1088
- */
1089
548
  data: Prisma.XOR<Prisma.ClosingTimesUpdateManyMutationInput, Prisma.ClosingTimesUncheckedUpdateManyInput>;
1090
- /**
1091
- * Filter which ClosingTimes to update
1092
- */
1093
549
  where?: Prisma.ClosingTimesWhereInput;
1094
- /**
1095
- * Limit how many ClosingTimes to update.
1096
- */
1097
550
  limit?: number;
1098
551
  };
1099
- /**
1100
- * ClosingTimes updateManyAndReturn
1101
- */
1102
552
  export type ClosingTimesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1103
- /**
1104
- * Select specific fields to fetch from the ClosingTimes
1105
- */
1106
553
  select?: Prisma.ClosingTimesSelectUpdateManyAndReturn<ExtArgs> | null;
1107
- /**
1108
- * Omit specific fields from the ClosingTimes
1109
- */
1110
554
  omit?: Prisma.ClosingTimesOmit<ExtArgs> | null;
1111
- /**
1112
- * The data used to update ClosingTimes.
1113
- */
1114
555
  data: Prisma.XOR<Prisma.ClosingTimesUpdateManyMutationInput, Prisma.ClosingTimesUncheckedUpdateManyInput>;
1115
- /**
1116
- * Filter which ClosingTimes to update
1117
- */
1118
556
  where?: Prisma.ClosingTimesWhereInput;
1119
- /**
1120
- * Limit how many ClosingTimes to update.
1121
- */
1122
557
  limit?: number;
1123
558
  };
1124
- /**
1125
- * ClosingTimes upsert
1126
- */
1127
559
  export type ClosingTimesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1128
- /**
1129
- * Select specific fields to fetch from the ClosingTimes
1130
- */
1131
560
  select?: Prisma.ClosingTimesSelect<ExtArgs> | null;
1132
- /**
1133
- * Omit specific fields from the ClosingTimes
1134
- */
1135
561
  omit?: Prisma.ClosingTimesOmit<ExtArgs> | null;
1136
- /**
1137
- * Choose, which related nodes to fetch as well
1138
- */
1139
562
  include?: Prisma.ClosingTimesInclude<ExtArgs> | null;
1140
- /**
1141
- * The filter to search for the ClosingTimes to update in case it exists.
1142
- */
1143
563
  where: Prisma.ClosingTimesWhereUniqueInput;
1144
- /**
1145
- * In case the ClosingTimes found by the `where` argument doesn't exist, create a new ClosingTimes with this data.
1146
- */
1147
564
  create: Prisma.XOR<Prisma.ClosingTimesCreateInput, Prisma.ClosingTimesUncheckedCreateInput>;
1148
- /**
1149
- * In case the ClosingTimes was found with the provided `where` argument, update it with this data.
1150
- */
1151
565
  update: Prisma.XOR<Prisma.ClosingTimesUpdateInput, Prisma.ClosingTimesUncheckedUpdateInput>;
1152
566
  };
1153
- /**
1154
- * ClosingTimes delete
1155
- */
1156
567
  export type ClosingTimesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1157
- /**
1158
- * Select specific fields to fetch from the ClosingTimes
1159
- */
1160
568
  select?: Prisma.ClosingTimesSelect<ExtArgs> | null;
1161
- /**
1162
- * Omit specific fields from the ClosingTimes
1163
- */
1164
569
  omit?: Prisma.ClosingTimesOmit<ExtArgs> | null;
1165
- /**
1166
- * Choose, which related nodes to fetch as well
1167
- */
1168
570
  include?: Prisma.ClosingTimesInclude<ExtArgs> | null;
1169
- /**
1170
- * Filter which ClosingTimes to delete.
1171
- */
1172
571
  where: Prisma.ClosingTimesWhereUniqueInput;
1173
572
  };
1174
- /**
1175
- * ClosingTimes deleteMany
1176
- */
1177
573
  export type ClosingTimesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1178
- /**
1179
- * Filter which ClosingTimes to delete
1180
- */
1181
574
  where?: Prisma.ClosingTimesWhereInput;
1182
- /**
1183
- * Limit how many ClosingTimes to delete.
1184
- */
1185
575
  limit?: number;
1186
576
  };
1187
- /**
1188
- * ClosingTimes.organizationConfiguration
1189
- */
1190
577
  export type ClosingTimes$organizationConfigurationArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1191
- /**
1192
- * Select specific fields to fetch from the OrganizationConfiguration
1193
- */
1194
578
  select?: Prisma.OrganizationConfigurationSelect<ExtArgs> | null;
1195
- /**
1196
- * Omit specific fields from the OrganizationConfiguration
1197
- */
1198
579
  omit?: Prisma.OrganizationConfigurationOmit<ExtArgs> | null;
1199
- /**
1200
- * Choose, which related nodes to fetch as well
1201
- */
1202
580
  include?: Prisma.OrganizationConfigurationInclude<ExtArgs> | null;
1203
581
  where?: Prisma.OrganizationConfigurationWhereInput;
1204
582
  };
1205
- /**
1206
- * ClosingTimes without action
1207
- */
1208
583
  export type ClosingTimesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1209
- /**
1210
- * Select specific fields to fetch from the ClosingTimes
1211
- */
1212
584
  select?: Prisma.ClosingTimesSelect<ExtArgs> | null;
1213
- /**
1214
- * Omit specific fields from the ClosingTimes
1215
- */
1216
585
  omit?: Prisma.ClosingTimesOmit<ExtArgs> | null;
1217
- /**
1218
- * Choose, which related nodes to fetch as well
1219
- */
1220
586
  include?: Prisma.ClosingTimesInclude<ExtArgs> | null;
1221
587
  };
1222
588
  export {};