@shophost/rest-api 2.0.32 → 2.0.34

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 (348) hide show
  1. package/package.json +13 -14
  2. package/src/app.js +53 -1
  3. package/src/app.js.map +1 -0
  4. package/src/core/auth/auth.schema.js +41 -1
  5. package/src/core/auth/auth.schema.js.map +1 -0
  6. package/src/core/auth/auth.util.js +44 -1
  7. package/src/core/auth/auth.util.js.map +1 -0
  8. package/src/core/auth/better-auth.lib.js +100 -1
  9. package/src/core/auth/better-auth.lib.js.map +1 -0
  10. package/src/core/auth/generate-password-hash.util.d.ts +3 -0
  11. package/src/core/auth/generate-password-hash.util.js +30 -1
  12. package/src/core/auth/generate-password-hash.util.js.map +1 -0
  13. package/src/core/auth/headers.schema.js +22 -1
  14. package/src/core/auth/headers.schema.js.map +1 -0
  15. package/src/core/auth/user.schema.js +30 -1
  16. package/src/core/auth/user.schema.js.map +1 -0
  17. package/src/core/db/__generated__/client/browser.d.ts +128 -0
  18. package/src/core/db/__generated__/client/browser.js +18 -1
  19. package/src/core/db/__generated__/client/browser.js.map +1 -0
  20. package/src/core/db/__generated__/client/client.d.ts +143 -0
  21. package/src/core/db/__generated__/client/client.js +35 -1
  22. package/src/core/db/__generated__/client/client.js.map +1 -0
  23. package/src/core/db/__generated__/client/commonInputTypes.js +11 -1
  24. package/src/core/db/__generated__/client/commonInputTypes.js.map +1 -0
  25. package/src/core/db/__generated__/client/enums.js +200 -1
  26. package/src/core/db/__generated__/client/enums.js.map +1 -0
  27. package/src/core/db/__generated__/client/internal/class.d.ts +343 -0
  28. package/src/core/db/__generated__/client/internal/class.js +55 -1
  29. package/src/core/db/__generated__/client/internal/class.js.map +1 -0
  30. package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +234 -0
  31. package/src/core/db/__generated__/client/internal/prismaNamespace.js +541 -1
  32. package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
  33. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +15 -0
  34. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +512 -1
  35. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -0
  36. package/src/core/db/__generated__/client/models/Account.d.ts +633 -0
  37. package/src/core/db/__generated__/client/models/Account.js +2 -1
  38. package/src/core/db/__generated__/client/models/Account.js.map +1 -0
  39. package/src/core/db/__generated__/client/models/Address.d.ts +706 -0
  40. package/src/core/db/__generated__/client/models/Address.js +2 -1
  41. package/src/core/db/__generated__/client/models/Address.js.map +1 -0
  42. package/src/core/db/__generated__/client/models/Campaign.d.ts +643 -0
  43. package/src/core/db/__generated__/client/models/Campaign.js +2 -1
  44. package/src/core/db/__generated__/client/models/Campaign.js.map +1 -0
  45. package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +639 -0
  46. package/src/core/db/__generated__/client/models/ClosingTimes.js +2 -1
  47. package/src/core/db/__generated__/client/models/ClosingTimes.js.map +1 -0
  48. package/src/core/db/__generated__/client/models/File.d.ts +757 -0
  49. package/src/core/db/__generated__/client/models/File.js +2 -1
  50. package/src/core/db/__generated__/client/models/File.js.map +1 -0
  51. package/src/core/db/__generated__/client/models/Invitation.d.ts +633 -0
  52. package/src/core/db/__generated__/client/models/Invitation.js +2 -1
  53. package/src/core/db/__generated__/client/models/Invitation.js.map +1 -0
  54. package/src/core/db/__generated__/client/models/LegalEntity.d.ts +657 -0
  55. package/src/core/db/__generated__/client/models/LegalEntity.js +2 -1
  56. package/src/core/db/__generated__/client/models/LegalEntity.js.map +1 -0
  57. package/src/core/db/__generated__/client/models/Manufacturer.d.ts +684 -0
  58. package/src/core/db/__generated__/client/models/Manufacturer.js +2 -1
  59. package/src/core/db/__generated__/client/models/Manufacturer.js.map +1 -0
  60. package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +633 -0
  61. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +2 -1
  62. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
  63. package/src/core/db/__generated__/client/models/Member.d.ts +633 -0
  64. package/src/core/db/__generated__/client/models/Member.js +2 -1
  65. package/src/core/db/__generated__/client/models/Member.js.map +1 -0
  66. package/src/core/db/__generated__/client/models/Modifier.d.ts +667 -0
  67. package/src/core/db/__generated__/client/models/Modifier.js +2 -1
  68. package/src/core/db/__generated__/client/models/Modifier.js.map +1 -0
  69. package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +691 -0
  70. package/src/core/db/__generated__/client/models/ModifierGroup.js +2 -1
  71. package/src/core/db/__generated__/client/models/ModifierGroup.js.map +1 -0
  72. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +633 -0
  73. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +2 -1
  74. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
  75. package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +639 -0
  76. package/src/core/db/__generated__/client/models/OpeningTimes.js +2 -1
  77. package/src/core/db/__generated__/client/models/OpeningTimes.js.map +1 -0
  78. package/src/core/db/__generated__/client/models/Order.d.ts +705 -0
  79. package/src/core/db/__generated__/client/models/Order.js +2 -1
  80. package/src/core/db/__generated__/client/models/Order.js.map +1 -0
  81. package/src/core/db/__generated__/client/models/OrderItem.d.ts +691 -0
  82. package/src/core/db/__generated__/client/models/OrderItem.js +2 -1
  83. package/src/core/db/__generated__/client/models/OrderItem.js.map +1 -0
  84. package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +633 -0
  85. package/src/core/db/__generated__/client/models/OrderItemTranslation.js +2 -1
  86. package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
  87. package/src/core/db/__generated__/client/models/Organization.d.ts +816 -0
  88. package/src/core/db/__generated__/client/models/Organization.js +2 -1
  89. package/src/core/db/__generated__/client/models/Organization.js.map +1 -0
  90. package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +681 -0
  91. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +2 -1
  92. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
  93. package/src/core/db/__generated__/client/models/Payment.d.ts +673 -0
  94. package/src/core/db/__generated__/client/models/Payment.js +2 -1
  95. package/src/core/db/__generated__/client/models/Payment.js.map +1 -0
  96. package/src/core/db/__generated__/client/models/PaymentSession.d.ts +643 -0
  97. package/src/core/db/__generated__/client/models/PaymentSession.js +2 -1
  98. package/src/core/db/__generated__/client/models/PaymentSession.js.map +1 -0
  99. package/src/core/db/__generated__/client/models/Product.d.ts +751 -0
  100. package/src/core/db/__generated__/client/models/Product.js +2 -1
  101. package/src/core/db/__generated__/client/models/Product.js.map +1 -0
  102. package/src/core/db/__generated__/client/models/ProductCategory.d.ts +694 -0
  103. package/src/core/db/__generated__/client/models/ProductCategory.js +2 -1
  104. package/src/core/db/__generated__/client/models/ProductCategory.js.map +1 -0
  105. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +633 -0
  106. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +2 -1
  107. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
  108. package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +669 -0
  109. package/src/core/db/__generated__/client/models/ProductSnapshot.js +2 -1
  110. package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
  111. package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +633 -0
  112. package/src/core/db/__generated__/client/models/ProductTranslation.js +2 -1
  113. package/src/core/db/__generated__/client/models/ProductTranslation.js.map +1 -0
  114. package/src/core/db/__generated__/client/models/Reservation.d.ts +655 -0
  115. package/src/core/db/__generated__/client/models/Reservation.js +2 -1
  116. package/src/core/db/__generated__/client/models/Reservation.js.map +1 -0
  117. package/src/core/db/__generated__/client/models/Session.d.ts +633 -0
  118. package/src/core/db/__generated__/client/models/Session.js +2 -1
  119. package/src/core/db/__generated__/client/models/Session.js.map +1 -0
  120. package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +684 -0
  121. package/src/core/db/__generated__/client/models/ShippingMethod.js +2 -1
  122. package/src/core/db/__generated__/client/models/ShippingMethod.js.map +1 -0
  123. package/src/core/db/__generated__/client/models/ShippingZone.d.ts +643 -0
  124. package/src/core/db/__generated__/client/models/ShippingZone.js +2 -1
  125. package/src/core/db/__generated__/client/models/ShippingZone.js.map +1 -0
  126. package/src/core/db/__generated__/client/models/User.d.ts +741 -0
  127. package/src/core/db/__generated__/client/models/User.js +2 -1
  128. package/src/core/db/__generated__/client/models/User.js.map +1 -0
  129. package/src/core/db/__generated__/client/models/Verification.d.ts +597 -0
  130. package/src/core/db/__generated__/client/models/Verification.js +2 -1
  131. package/src/core/db/__generated__/client/models/Verification.js.map +1 -0
  132. package/src/core/db/__generated__/client/models.js +2 -1
  133. package/src/core/db/__generated__/client/models.js.map +1 -0
  134. package/src/core/db/index.js +2 -1
  135. package/src/core/db/index.js.map +1 -0
  136. package/src/core/exceptions/http-exception.js +9 -1
  137. package/src/core/exceptions/http-exception.js.map +1 -0
  138. package/src/core/hono/hono.js +123 -1
  139. package/src/core/hono/hono.js.map +1 -0
  140. package/src/core/lib/prisma.js +11 -1
  141. package/src/core/lib/prisma.js.map +1 -0
  142. package/src/core/logging/pino.js +5 -1
  143. package/src/core/logging/pino.js.map +1 -0
  144. package/src/core/notifications/email.service.d.ts +15 -0
  145. package/src/core/notifications/email.service.js +116 -1
  146. package/src/core/notifications/email.service.js.map +1 -0
  147. package/src/core/openapi/openapi.lib.js +26 -1
  148. package/src/core/openapi/openapi.lib.js.map +1 -0
  149. package/src/core/types/google-maps.types.js +2 -1
  150. package/src/core/types/google-maps.types.js.map +1 -0
  151. package/src/core/utils/currency.util.js +11 -1
  152. package/src/core/utils/currency.util.js.map +1 -0
  153. package/src/core/utils/env.util.js +8 -1
  154. package/src/core/utils/env.util.js.map +1 -0
  155. package/src/core/utils/object.util.d.ts +10 -0
  156. package/src/core/utils/object.util.js +39 -1
  157. package/src/core/utils/object.util.js.map +1 -0
  158. package/src/core/utils/translations.util.js +2 -0
  159. package/src/core/utils/translations.util.js.map +1 -0
  160. package/src/core/utils/zod.util.d.ts +12 -0
  161. package/src/core/utils/zod.util.js +85 -1
  162. package/src/core/utils/zod.util.js.map +1 -0
  163. package/src/db.js +3 -1
  164. package/src/db.js.map +1 -0
  165. package/src/features/access/access.handler.js +91 -1
  166. package/src/features/access/access.handler.js.map +1 -0
  167. package/src/features/access/access.route.js +220 -1
  168. package/src/features/access/access.route.js.map +1 -0
  169. package/src/features/access/access.schema.js +108 -1
  170. package/src/features/access/access.schema.js.map +1 -0
  171. package/src/features/access/access.service.js +294 -1
  172. package/src/features/access/access.service.js.map +1 -0
  173. package/src/features/cart/cart.handler.js +17 -1
  174. package/src/features/cart/cart.handler.js.map +1 -0
  175. package/src/features/cart/cart.route.js +32 -1
  176. package/src/features/cart/cart.route.js.map +1 -0
  177. package/src/features/cart/cart.schema.js +39 -1
  178. package/src/features/cart/cart.schema.js.map +1 -0
  179. package/src/features/cart/cart.service.d.ts +7 -0
  180. package/src/features/cart/cart.service.js +97 -1
  181. package/src/features/cart/cart.service.js.map +1 -0
  182. package/src/features/cart/cart.util.js +76 -1
  183. package/src/features/cart/cart.util.js.map +1 -0
  184. package/src/features/file/file.handler.js +23 -1
  185. package/src/features/file/file.handler.js.map +1 -0
  186. package/src/features/file/file.route.js +34 -1
  187. package/src/features/file/file.route.js.map +1 -0
  188. package/src/features/file/file.schema.js +77 -1
  189. package/src/features/file/file.schema.js.map +1 -0
  190. package/src/features/file/file.service.d.ts +6 -0
  191. package/src/features/file/file.service.js +66 -1
  192. package/src/features/file/file.service.js.map +1 -0
  193. package/src/features/health/health.handler.js +10 -1
  194. package/src/features/health/health.handler.js.map +1 -0
  195. package/src/features/health/health.route.js +25 -1
  196. package/src/features/health/health.route.js.map +1 -0
  197. package/src/features/index.js +16 -1
  198. package/src/features/index.js.map +1 -0
  199. package/src/features/location/location.handler.js +25 -1
  200. package/src/features/location/location.handler.js.map +1 -0
  201. package/src/features/location/location.route.js +56 -1
  202. package/src/features/location/location.route.js.map +1 -0
  203. package/src/features/location/location.schema.js +50 -1
  204. package/src/features/location/location.schema.js.map +1 -0
  205. package/src/features/location/location.service.d.ts +3 -0
  206. package/src/features/location/location.service.js +141 -1
  207. package/src/features/location/location.service.js.map +1 -0
  208. package/src/features/manufacturer/manufacturer.handler.js +53 -1
  209. package/src/features/manufacturer/manufacturer.handler.js.map +1 -0
  210. package/src/features/manufacturer/manufacturer.route.js +97 -1
  211. package/src/features/manufacturer/manufacturer.route.js.map +1 -0
  212. package/src/features/manufacturer/manufacturer.schema.js +125 -1
  213. package/src/features/manufacturer/manufacturer.schema.js.map +1 -0
  214. package/src/features/manufacturer/manufacturer.service.d.ts +19 -0
  215. package/src/features/manufacturer/manufacturer.service.js +190 -1
  216. package/src/features/manufacturer/manufacturer.service.js.map +1 -0
  217. package/src/features/order/emails/order-confirmation.email.js +229 -1
  218. package/src/features/order/emails/order-confirmation.email.js.map +1 -0
  219. package/src/features/order/emails/order-notification.email.js +229 -1
  220. package/src/features/order/emails/order-notification.email.js.map +1 -0
  221. package/src/features/order/fulfilment.schema.js +3 -1
  222. package/src/features/order/fulfilment.schema.js.map +1 -0
  223. package/src/features/order/order.handler.js +54 -1
  224. package/src/features/order/order.handler.js.map +1 -0
  225. package/src/features/order/order.route.js +111 -1
  226. package/src/features/order/order.route.js.map +1 -0
  227. package/src/features/order/order.schema.js +158 -1
  228. package/src/features/order/order.schema.js.map +1 -0
  229. package/src/features/order/order.service.d.ts +15 -0
  230. package/src/features/order/order.service.js +306 -1
  231. package/src/features/order/order.service.js.map +1 -0
  232. package/src/features/order/recipient.schema.js +38 -1
  233. package/src/features/order/recipient.schema.js.map +1 -0
  234. package/src/features/organization/legal-entity.schema.js +83 -1
  235. package/src/features/organization/legal-entity.schema.js.map +1 -0
  236. package/src/features/organization/organization-configuration.schema.js +115 -1
  237. package/src/features/organization/organization-configuration.schema.js.map +1 -0
  238. package/src/features/organization/organization.handler.js +48 -1
  239. package/src/features/organization/organization.handler.js.map +1 -0
  240. package/src/features/organization/organization.route.js +84 -1
  241. package/src/features/organization/organization.route.js.map +1 -0
  242. package/src/features/organization/organization.schema.js +64 -1
  243. package/src/features/organization/organization.schema.js.map +1 -0
  244. package/src/features/organization/organization.service.d.ts +15 -0
  245. package/src/features/organization/organization.service.js +334 -1
  246. package/src/features/organization/organization.service.js.map +1 -0
  247. package/src/features/payment/payment.handler.js +16 -1
  248. package/src/features/payment/payment.handler.js.map +1 -0
  249. package/src/features/payment/payment.route.js +22 -1
  250. package/src/features/payment/payment.route.js.map +1 -0
  251. package/src/features/payment/payment.schema.js +46 -1
  252. package/src/features/payment/payment.schema.js.map +1 -0
  253. package/src/features/payment/payment.service.js +100 -1
  254. package/src/features/payment/payment.service.js.map +1 -0
  255. package/src/features/payment/stripe.service.js +164 -1
  256. package/src/features/payment/stripe.service.js.map +1 -0
  257. package/src/features/product/product-modifier.schema.js +84 -1
  258. package/src/features/product/product-modifier.schema.js.map +1 -0
  259. package/src/features/product/product.handler.js +87 -1
  260. package/src/features/product/product.handler.js.map +1 -0
  261. package/src/features/product/product.route.js +179 -1
  262. package/src/features/product/product.route.js.map +1 -0
  263. package/src/features/product/product.schema.js +143 -1
  264. package/src/features/product/product.schema.js.map +1 -0
  265. package/src/features/product/product.service.d.ts +25 -0
  266. package/src/features/product/product.service.js +440 -1
  267. package/src/features/product/product.service.js.map +1 -0
  268. package/src/features/product-category/product-category.handler.js +59 -1
  269. package/src/features/product-category/product-category.handler.js.map +1 -0
  270. package/src/features/product-category/product-category.route.js +139 -1
  271. package/src/features/product-category/product-category.route.js.map +1 -0
  272. package/src/features/product-category/product-category.schema.js +86 -1
  273. package/src/features/product-category/product-category.schema.js.map +1 -0
  274. package/src/features/product-category/product-category.service.d.ts +22 -0
  275. package/src/features/product-category/product-category.service.js +220 -1
  276. package/src/features/product-category/product-category.service.js.map +1 -0
  277. package/src/features/reservation/emails/reservation-cancellation.email.js +82 -1
  278. package/src/features/reservation/emails/reservation-cancellation.email.js.map +1 -0
  279. package/src/features/reservation/emails/reservation-confirmation.email.js +82 -1
  280. package/src/features/reservation/emails/reservation-confirmation.email.js.map +1 -0
  281. package/src/features/reservation/emails/reservation-notification.email.js +93 -1
  282. package/src/features/reservation/emails/reservation-notification.email.js.map +1 -0
  283. package/src/features/reservation/reservation.handler.js +65 -1
  284. package/src/features/reservation/reservation.handler.js.map +1 -0
  285. package/src/features/reservation/reservation.route.js +167 -1
  286. package/src/features/reservation/reservation.route.js.map +1 -0
  287. package/src/features/reservation/reservation.schema.js +51 -1
  288. package/src/features/reservation/reservation.schema.js.map +1 -0
  289. package/src/features/reservation/reservation.service.d.ts +18 -0
  290. package/src/features/reservation/reservation.service.js +231 -1
  291. package/src/features/reservation/reservation.service.js.map +1 -0
  292. package/src/features/shipping/shipping.handler.js +32 -1
  293. package/src/features/shipping/shipping.handler.js.map +1 -0
  294. package/src/features/shipping/shipping.route.js +51 -1
  295. package/src/features/shipping/shipping.route.js.map +1 -0
  296. package/src/features/shipping/shipping.service.d.ts +7 -0
  297. package/src/features/shipping/shipping.service.js +96 -1
  298. package/src/features/shipping/shipping.service.js.map +1 -0
  299. package/src/features/shipping-method/shipping-method.handler.js +60 -1
  300. package/src/features/shipping-method/shipping-method.handler.js.map +1 -0
  301. package/src/features/shipping-method/shipping-method.route.js +144 -1
  302. package/src/features/shipping-method/shipping-method.route.js.map +1 -0
  303. package/src/features/shipping-method/shipping-method.schema.js +48 -1
  304. package/src/features/shipping-method/shipping-method.schema.js.map +1 -0
  305. package/src/features/shipping-method/shipping-method.service.d.ts +25 -0
  306. package/src/features/shipping-method/shipping-method.service.js +229 -1
  307. package/src/features/shipping-method/shipping-method.service.js.map +1 -0
  308. package/src/features/shipping-method/shipping-zone.schema.js +31 -1
  309. package/src/features/shipping-method/shipping-zone.schema.js.map +1 -0
  310. package/src/features/webhook/webhook.handler.js +50 -1
  311. package/src/features/webhook/webhook.handler.js.map +1 -0
  312. package/src/features/webhook/webhook.route.js +33 -1
  313. package/src/features/webhook/webhook.route.js.map +1 -0
  314. package/src/index.js +6 -1
  315. package/src/index.js.map +1 -0
  316. package/src/integrations/next.js +82 -1
  317. package/src/integrations/next.js.map +1 -0
  318. package/src/schemas/address.schema.d.ts +8 -0
  319. package/src/schemas/address.schema.js +112 -1
  320. package/src/schemas/address.schema.js.map +1 -0
  321. package/src/schemas/currency.schema.d.ts +42 -0
  322. package/src/schemas/currency.schema.js +118 -1
  323. package/src/schemas/currency.schema.js.map +1 -0
  324. package/src/schemas/error.schema.js +12 -1
  325. package/src/schemas/error.schema.js.map +1 -0
  326. package/src/schemas/index.js +29 -1
  327. package/src/schemas/index.js.map +1 -0
  328. package/src/schemas/locales.schema.js +238 -1
  329. package/src/schemas/locales.schema.js.map +1 -0
  330. package/src/schemas/number.schema.js +29 -1
  331. package/src/schemas/number.schema.js.map +1 -0
  332. package/src/schemas/pagination.schema.js +54 -1
  333. package/src/schemas/pagination.schema.js.map +1 -0
  334. package/src/schemas/params.schema.js +20 -1
  335. package/src/schemas/params.schema.js.map +1 -0
  336. package/src/schemas/queries.schema.js +6 -1
  337. package/src/schemas/queries.schema.js.map +1 -0
  338. package/src/test/global-setup.js +37 -1
  339. package/src/test/global-setup.js.map +1 -0
  340. package/src/test/integration/api-fixtures.js +160 -1
  341. package/src/test/integration/api-fixtures.js.map +1 -0
  342. package/src/test/integration/seed.js +368 -1
  343. package/src/test/integration/seed.js.map +1 -0
  344. package/src/test/integration/test-helpers.js +154 -1
  345. package/src/test/integration/test-helpers.js.map +1 -0
  346. package/src/test/setup-test-env.js +7 -1
  347. package/src/test/setup-test-env.js.map +1 -0
  348. package/scripts/minify.mjs +0 -123
@@ -2,21 +2,108 @@ import * as runtime from "@prisma/client/runtime/client";
2
2
  import type * as Prisma from "./prismaNamespace";
3
3
  export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
4
4
  export interface PrismaClientConstructor {
5
+ /**
6
+ * ## Prisma Client
7
+ *
8
+ * Type-safe database client for TypeScript
9
+ * @example
10
+ * ```
11
+ * const prisma = new PrismaClient({
12
+ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
13
+ * })
14
+ * // Fetch zero or more Users
15
+ * const users = await prisma.user.findMany()
16
+ * ```
17
+ *
18
+ * Read more in our [docs](https://pris.ly/d/client).
19
+ */
5
20
  new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
6
21
  omit: infer U;
7
22
  } ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
8
23
  }
24
+ /**
25
+ * ## Prisma Client
26
+ *
27
+ * Type-safe database client for TypeScript
28
+ * @example
29
+ * ```
30
+ * const prisma = new PrismaClient({
31
+ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
32
+ * })
33
+ * // Fetch zero or more Users
34
+ * const users = await prisma.user.findMany()
35
+ * ```
36
+ *
37
+ * Read more in our [docs](https://pris.ly/d/client).
38
+ */
9
39
  export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
10
40
  [K: symbol]: {
11
41
  types: Prisma.TypeMap<ExtArgs>['other'];
12
42
  };
13
43
  $on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
44
+ /**
45
+ * Connect with the database
46
+ */
14
47
  $connect(): runtime.Types.Utils.JsPromise<void>;
48
+ /**
49
+ * Disconnect from the database
50
+ */
15
51
  $disconnect(): runtime.Types.Utils.JsPromise<void>;
52
+ /**
53
+ * Executes a prepared raw query and returns the number of affected rows.
54
+ * @example
55
+ * ```
56
+ * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
57
+ * ```
58
+ *
59
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
60
+ */
16
61
  $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
62
+ /**
63
+ * Executes a raw query and returns the number of affected rows.
64
+ * Susceptible to SQL injections, see documentation.
65
+ * @example
66
+ * ```
67
+ * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
68
+ * ```
69
+ *
70
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
71
+ */
17
72
  $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
73
+ /**
74
+ * Performs a prepared raw query and returns the `SELECT` data.
75
+ * @example
76
+ * ```
77
+ * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
78
+ * ```
79
+ *
80
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
81
+ */
18
82
  $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
83
+ /**
84
+ * Performs a raw query and returns the `SELECT` data.
85
+ * Susceptible to SQL injections, see documentation.
86
+ * @example
87
+ * ```
88
+ * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
89
+ * ```
90
+ *
91
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
92
+ */
19
93
  $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
94
+ /**
95
+ * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
96
+ * @example
97
+ * ```
98
+ * const [george, bob, alice] = await prisma.$transaction([
99
+ * prisma.user.create({ data: { name: 'George' } }),
100
+ * prisma.user.create({ data: { name: 'Bob' } }),
101
+ * prisma.user.create({ data: { name: 'Alice' } }),
102
+ * ])
103
+ * ```
104
+ *
105
+ * Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions).
106
+ */
20
107
  $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
21
108
  isolationLevel?: Prisma.TransactionIsolationLevel;
22
109
  }): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
@@ -28,99 +115,355 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
28
115
  $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
29
116
  extArgs: ExtArgs;
30
117
  }>>;
118
+ /**
119
+ * `prisma.user`: Exposes CRUD operations for the **User** model.
120
+ * Example usage:
121
+ * ```ts
122
+ * // Fetch zero or more Users
123
+ * const users = await prisma.user.findMany()
124
+ * ```
125
+ */
31
126
  get user(): Prisma.UserDelegate<ExtArgs, {
32
127
  omit: OmitOpts;
33
128
  }>;
129
+ /**
130
+ * `prisma.session`: Exposes CRUD operations for the **Session** model.
131
+ * Example usage:
132
+ * ```ts
133
+ * // Fetch zero or more Sessions
134
+ * const sessions = await prisma.session.findMany()
135
+ * ```
136
+ */
34
137
  get session(): Prisma.SessionDelegate<ExtArgs, {
35
138
  omit: OmitOpts;
36
139
  }>;
140
+ /**
141
+ * `prisma.account`: Exposes CRUD operations for the **Account** model.
142
+ * Example usage:
143
+ * ```ts
144
+ * // Fetch zero or more Accounts
145
+ * const accounts = await prisma.account.findMany()
146
+ * ```
147
+ */
37
148
  get account(): Prisma.AccountDelegate<ExtArgs, {
38
149
  omit: OmitOpts;
39
150
  }>;
151
+ /**
152
+ * `prisma.verification`: Exposes CRUD operations for the **Verification** model.
153
+ * Example usage:
154
+ * ```ts
155
+ * // Fetch zero or more Verifications
156
+ * const verifications = await prisma.verification.findMany()
157
+ * ```
158
+ */
40
159
  get verification(): Prisma.VerificationDelegate<ExtArgs, {
41
160
  omit: OmitOpts;
42
161
  }>;
162
+ /**
163
+ * `prisma.member`: Exposes CRUD operations for the **Member** model.
164
+ * Example usage:
165
+ * ```ts
166
+ * // Fetch zero or more Members
167
+ * const members = await prisma.member.findMany()
168
+ * ```
169
+ */
43
170
  get member(): Prisma.MemberDelegate<ExtArgs, {
44
171
  omit: OmitOpts;
45
172
  }>;
173
+ /**
174
+ * `prisma.invitation`: Exposes CRUD operations for the **Invitation** model.
175
+ * Example usage:
176
+ * ```ts
177
+ * // Fetch zero or more Invitations
178
+ * const invitations = await prisma.invitation.findMany()
179
+ * ```
180
+ */
46
181
  get invitation(): Prisma.InvitationDelegate<ExtArgs, {
47
182
  omit: OmitOpts;
48
183
  }>;
184
+ /**
185
+ * `prisma.organization`: Exposes CRUD operations for the **Organization** model.
186
+ * Example usage:
187
+ * ```ts
188
+ * // Fetch zero or more Organizations
189
+ * const organizations = await prisma.organization.findMany()
190
+ * ```
191
+ */
49
192
  get organization(): Prisma.OrganizationDelegate<ExtArgs, {
50
193
  omit: OmitOpts;
51
194
  }>;
195
+ /**
196
+ * `prisma.openingTimes`: Exposes CRUD operations for the **OpeningTimes** model.
197
+ * Example usage:
198
+ * ```ts
199
+ * // Fetch zero or more OpeningTimes
200
+ * const openingTimes = await prisma.openingTimes.findMany()
201
+ * ```
202
+ */
52
203
  get openingTimes(): Prisma.OpeningTimesDelegate<ExtArgs, {
53
204
  omit: OmitOpts;
54
205
  }>;
206
+ /**
207
+ * `prisma.closingTimes`: Exposes CRUD operations for the **ClosingTimes** model.
208
+ * Example usage:
209
+ * ```ts
210
+ * // Fetch zero or more ClosingTimes
211
+ * const closingTimes = await prisma.closingTimes.findMany()
212
+ * ```
213
+ */
55
214
  get closingTimes(): Prisma.ClosingTimesDelegate<ExtArgs, {
56
215
  omit: OmitOpts;
57
216
  }>;
217
+ /**
218
+ * `prisma.organizationConfiguration`: Exposes CRUD operations for the **OrganizationConfiguration** model.
219
+ * Example usage:
220
+ * ```ts
221
+ * // Fetch zero or more OrganizationConfigurations
222
+ * const organizationConfigurations = await prisma.organizationConfiguration.findMany()
223
+ * ```
224
+ */
58
225
  get organizationConfiguration(): Prisma.OrganizationConfigurationDelegate<ExtArgs, {
59
226
  omit: OmitOpts;
60
227
  }>;
228
+ /**
229
+ * `prisma.address`: Exposes CRUD operations for the **Address** model.
230
+ * Example usage:
231
+ * ```ts
232
+ * // Fetch zero or more Addresses
233
+ * const addresses = await prisma.address.findMany()
234
+ * ```
235
+ */
61
236
  get address(): Prisma.AddressDelegate<ExtArgs, {
62
237
  omit: OmitOpts;
63
238
  }>;
239
+ /**
240
+ * `prisma.legalEntity`: Exposes CRUD operations for the **LegalEntity** model.
241
+ * Example usage:
242
+ * ```ts
243
+ * // Fetch zero or more LegalEntities
244
+ * const legalEntities = await prisma.legalEntity.findMany()
245
+ * ```
246
+ */
64
247
  get legalEntity(): Prisma.LegalEntityDelegate<ExtArgs, {
65
248
  omit: OmitOpts;
66
249
  }>;
250
+ /**
251
+ * `prisma.file`: Exposes CRUD operations for the **File** model.
252
+ * Example usage:
253
+ * ```ts
254
+ * // Fetch zero or more Files
255
+ * const files = await prisma.file.findMany()
256
+ * ```
257
+ */
67
258
  get file(): Prisma.FileDelegate<ExtArgs, {
68
259
  omit: OmitOpts;
69
260
  }>;
261
+ /**
262
+ * `prisma.manufacturer`: Exposes CRUD operations for the **Manufacturer** model.
263
+ * Example usage:
264
+ * ```ts
265
+ * // Fetch zero or more Manufacturers
266
+ * const manufacturers = await prisma.manufacturer.findMany()
267
+ * ```
268
+ */
70
269
  get manufacturer(): Prisma.ManufacturerDelegate<ExtArgs, {
71
270
  omit: OmitOpts;
72
271
  }>;
272
+ /**
273
+ * `prisma.manufacturerTranslation`: Exposes CRUD operations for the **ManufacturerTranslation** model.
274
+ * Example usage:
275
+ * ```ts
276
+ * // Fetch zero or more ManufacturerTranslations
277
+ * const manufacturerTranslations = await prisma.manufacturerTranslation.findMany()
278
+ * ```
279
+ */
73
280
  get manufacturerTranslation(): Prisma.ManufacturerTranslationDelegate<ExtArgs, {
74
281
  omit: OmitOpts;
75
282
  }>;
283
+ /**
284
+ * `prisma.productCategory`: Exposes CRUD operations for the **ProductCategory** model.
285
+ * Example usage:
286
+ * ```ts
287
+ * // Fetch zero or more ProductCategories
288
+ * const productCategories = await prisma.productCategory.findMany()
289
+ * ```
290
+ */
76
291
  get productCategory(): Prisma.ProductCategoryDelegate<ExtArgs, {
77
292
  omit: OmitOpts;
78
293
  }>;
294
+ /**
295
+ * `prisma.productCategoryTranslation`: Exposes CRUD operations for the **ProductCategoryTranslation** model.
296
+ * Example usage:
297
+ * ```ts
298
+ * // Fetch zero or more ProductCategoryTranslations
299
+ * const productCategoryTranslations = await prisma.productCategoryTranslation.findMany()
300
+ * ```
301
+ */
79
302
  get productCategoryTranslation(): Prisma.ProductCategoryTranslationDelegate<ExtArgs, {
80
303
  omit: OmitOpts;
81
304
  }>;
305
+ /**
306
+ * `prisma.product`: Exposes CRUD operations for the **Product** model.
307
+ * Example usage:
308
+ * ```ts
309
+ * // Fetch zero or more Products
310
+ * const products = await prisma.product.findMany()
311
+ * ```
312
+ */
82
313
  get product(): Prisma.ProductDelegate<ExtArgs, {
83
314
  omit: OmitOpts;
84
315
  }>;
316
+ /**
317
+ * `prisma.productSnapshot`: Exposes CRUD operations for the **ProductSnapshot** model.
318
+ * Example usage:
319
+ * ```ts
320
+ * // Fetch zero or more ProductSnapshots
321
+ * const productSnapshots = await prisma.productSnapshot.findMany()
322
+ * ```
323
+ */
85
324
  get productSnapshot(): Prisma.ProductSnapshotDelegate<ExtArgs, {
86
325
  omit: OmitOpts;
87
326
  }>;
327
+ /**
328
+ * `prisma.productTranslation`: Exposes CRUD operations for the **ProductTranslation** model.
329
+ * Example usage:
330
+ * ```ts
331
+ * // Fetch zero or more ProductTranslations
332
+ * const productTranslations = await prisma.productTranslation.findMany()
333
+ * ```
334
+ */
88
335
  get productTranslation(): Prisma.ProductTranslationDelegate<ExtArgs, {
89
336
  omit: OmitOpts;
90
337
  }>;
338
+ /**
339
+ * `prisma.modifierGroup`: Exposes CRUD operations for the **ModifierGroup** model.
340
+ * Example usage:
341
+ * ```ts
342
+ * // Fetch zero or more ModifierGroups
343
+ * const modifierGroups = await prisma.modifierGroup.findMany()
344
+ * ```
345
+ */
91
346
  get modifierGroup(): Prisma.ModifierGroupDelegate<ExtArgs, {
92
347
  omit: OmitOpts;
93
348
  }>;
349
+ /**
350
+ * `prisma.modifierGroupTranslation`: Exposes CRUD operations for the **ModifierGroupTranslation** model.
351
+ * Example usage:
352
+ * ```ts
353
+ * // Fetch zero or more ModifierGroupTranslations
354
+ * const modifierGroupTranslations = await prisma.modifierGroupTranslation.findMany()
355
+ * ```
356
+ */
94
357
  get modifierGroupTranslation(): Prisma.ModifierGroupTranslationDelegate<ExtArgs, {
95
358
  omit: OmitOpts;
96
359
  }>;
360
+ /**
361
+ * `prisma.modifier`: Exposes CRUD operations for the **Modifier** model.
362
+ * Example usage:
363
+ * ```ts
364
+ * // Fetch zero or more Modifiers
365
+ * const modifiers = await prisma.modifier.findMany()
366
+ * ```
367
+ */
97
368
  get modifier(): Prisma.ModifierDelegate<ExtArgs, {
98
369
  omit: OmitOpts;
99
370
  }>;
371
+ /**
372
+ * `prisma.order`: Exposes CRUD operations for the **Order** model.
373
+ * Example usage:
374
+ * ```ts
375
+ * // Fetch zero or more Orders
376
+ * const orders = await prisma.order.findMany()
377
+ * ```
378
+ */
100
379
  get order(): Prisma.OrderDelegate<ExtArgs, {
101
380
  omit: OmitOpts;
102
381
  }>;
382
+ /**
383
+ * `prisma.orderItem`: Exposes CRUD operations for the **OrderItem** model.
384
+ * Example usage:
385
+ * ```ts
386
+ * // Fetch zero or more OrderItems
387
+ * const orderItems = await prisma.orderItem.findMany()
388
+ * ```
389
+ */
103
390
  get orderItem(): Prisma.OrderItemDelegate<ExtArgs, {
104
391
  omit: OmitOpts;
105
392
  }>;
393
+ /**
394
+ * `prisma.orderItemTranslation`: Exposes CRUD operations for the **OrderItemTranslation** model.
395
+ * Example usage:
396
+ * ```ts
397
+ * // Fetch zero or more OrderItemTranslations
398
+ * const orderItemTranslations = await prisma.orderItemTranslation.findMany()
399
+ * ```
400
+ */
106
401
  get orderItemTranslation(): Prisma.OrderItemTranslationDelegate<ExtArgs, {
107
402
  omit: OmitOpts;
108
403
  }>;
404
+ /**
405
+ * `prisma.payment`: Exposes CRUD operations for the **Payment** model.
406
+ * Example usage:
407
+ * ```ts
408
+ * // Fetch zero or more Payments
409
+ * const payments = await prisma.payment.findMany()
410
+ * ```
411
+ */
109
412
  get payment(): Prisma.PaymentDelegate<ExtArgs, {
110
413
  omit: OmitOpts;
111
414
  }>;
415
+ /**
416
+ * `prisma.paymentSession`: Exposes CRUD operations for the **PaymentSession** model.
417
+ * Example usage:
418
+ * ```ts
419
+ * // Fetch zero or more PaymentSessions
420
+ * const paymentSessions = await prisma.paymentSession.findMany()
421
+ * ```
422
+ */
112
423
  get paymentSession(): Prisma.PaymentSessionDelegate<ExtArgs, {
113
424
  omit: OmitOpts;
114
425
  }>;
426
+ /**
427
+ * `prisma.campaign`: Exposes CRUD operations for the **Campaign** model.
428
+ * Example usage:
429
+ * ```ts
430
+ * // Fetch zero or more Campaigns
431
+ * const campaigns = await prisma.campaign.findMany()
432
+ * ```
433
+ */
115
434
  get campaign(): Prisma.CampaignDelegate<ExtArgs, {
116
435
  omit: OmitOpts;
117
436
  }>;
437
+ /**
438
+ * `prisma.shippingMethod`: Exposes CRUD operations for the **ShippingMethod** model.
439
+ * Example usage:
440
+ * ```ts
441
+ * // Fetch zero or more ShippingMethods
442
+ * const shippingMethods = await prisma.shippingMethod.findMany()
443
+ * ```
444
+ */
118
445
  get shippingMethod(): Prisma.ShippingMethodDelegate<ExtArgs, {
119
446
  omit: OmitOpts;
120
447
  }>;
448
+ /**
449
+ * `prisma.shippingZone`: Exposes CRUD operations for the **ShippingZone** model.
450
+ * Example usage:
451
+ * ```ts
452
+ * // Fetch zero or more ShippingZones
453
+ * const shippingZones = await prisma.shippingZone.findMany()
454
+ * ```
455
+ */
121
456
  get shippingZone(): Prisma.ShippingZoneDelegate<ExtArgs, {
122
457
  omit: OmitOpts;
123
458
  }>;
459
+ /**
460
+ * `prisma.reservation`: Exposes CRUD operations for the **Reservation** model.
461
+ * Example usage:
462
+ * ```ts
463
+ * // Fetch zero or more Reservations
464
+ * const reservations = await prisma.reservation.findMany()
465
+ * ```
466
+ */
124
467
  get reservation(): Prisma.ReservationDelegate<ExtArgs, {
125
468
  omit: OmitOpts;
126
469
  }>;