@shophost/rest-api 2.0.32 → 2.0.33

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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../../../../../../packages/rest-api/src/core/db/__generated__/client/internal/class.ts"],"names":[],"mappings":"AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;;;GAMG;;AAEH,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAA;AAIxD,MAAM,MAAM,GAAkC;IAC5C,iBAAiB,EAAE;QACjB,gBAAgB;KACjB;IACD,eAAe,EAAE,OAAO;IACxB,eAAe,EAAE,0CAA0C;IAC3D,gBAAgB,EAAE,YAAY;IAC9B,cAAc,EAAE,4qxBAA4qxB;IAC5rxB,kBAAkB,EAAE;QAClB,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,EAAE;KACZ;IACD,wBAAwB,EAAE;QACxB,SAAS,EAAE,EAAE;QACb,OAAO,EAAE,EAAE;KACZ;CACF,CAAA;AAED,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,07jCAA07jC,CAAC,CAAA;AACh+jC,MAAM,CAAC,sBAAsB,GAAG;IAC9B,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,kklBAAkklB,CAAC;IACvllB,KAAK,EAAE,65vKAA65vK;CACr6vK,CAAA;AAED,SAAe,kBAAkB,CAAC,UAAkB;;QAClD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAA;QAC9C,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;QACnD,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC1C,CAAC;CAAA;AAED,MAAM,CAAC,YAAY,GAAG;IACpB,UAAU,EAAE,GAAS,EAAE,kDAAC,OAAA,MAAM,MAAM,CAAC,8DAA8D,CAAC,CAAA,GAAA;IAEpG,0BAA0B,EAAE,GAAS,EAAE;QACrC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,0EAA0E,CAAC,CAAA;QACzG,OAAO,MAAM,kBAAkB,CAAC,IAAI,CAAC,CAAA;IACvC,CAAC,CAAA;IAED,UAAU,EAAE,6BAA6B;CAC1C,CAAA;AAwcD,MAAM,UAAU,oBAAoB;IAClC,OAAO,OAAO,CAAC,eAAe,CAAC,MAAM,CAAuC,CAAA;AAC9E,CAAC"}
@@ -4,6 +4,9 @@ import { type PrismaClient } from "./class";
4
4
  export type * from '../models';
5
5
  export type DMMF = typeof runtime.DMMF;
6
6
  export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>;
7
+ /**
8
+ * Prisma Errors
9
+ */
7
10
  export declare const PrismaClientKnownRequestError: typeof runtime.PrismaClientKnownRequestError;
8
11
  export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
9
12
  export declare const PrismaClientUnknownRequestError: typeof runtime.PrismaClientUnknownRequestError;
@@ -14,15 +17,24 @@ export declare const PrismaClientInitializationError: typeof runtime.PrismaClien
14
17
  export type PrismaClientInitializationError = runtime.PrismaClientInitializationError;
15
18
  export declare const PrismaClientValidationError: typeof runtime.PrismaClientValidationError;
16
19
  export type PrismaClientValidationError = runtime.PrismaClientValidationError;
20
+ /**
21
+ * Re-export of sql-template-tag
22
+ */
17
23
  export declare const sql: typeof runtime.sqltag;
18
24
  export declare const empty: runtime.Sql;
19
25
  export declare const join: typeof runtime.join;
20
26
  export declare const raw: typeof runtime.raw;
21
27
  export declare const Sql: typeof runtime.Sql;
22
28
  export type Sql = runtime.Sql;
29
+ /**
30
+ * Decimal.js
31
+ */
23
32
  export declare const Decimal: typeof runtime.Decimal;
24
33
  export type Decimal = runtime.Decimal;
25
34
  export type DecimalJsLike = runtime.DecimalJsLike;
35
+ /**
36
+ * Extensions
37
+ */
26
38
  export type Extension = runtime.Types.Extensions.UserArgs;
27
39
  export declare const getExtensionContext: typeof runtime.Extensions.getExtensionContext;
28
40
  export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>;
@@ -33,7 +45,14 @@ export type PrismaVersion = {
33
45
  client: string;
34
46
  engine: string;
35
47
  };
48
+ /**
49
+ * Prisma Client JS version: 7.5.0
50
+ * Query Engine version: 280c870be64f457428992c43c1f6d557fab6e29e
51
+ */
36
52
  export declare const prismaVersion: PrismaVersion;
53
+ /**
54
+ * Utility Types
55
+ */
37
56
  export type Bytes = runtime.Bytes;
38
57
  export type JsonObject = runtime.JsonObject;
39
58
  export type JsonArray = runtime.JsonArray;
@@ -46,8 +65,23 @@ export declare const NullTypes: {
46
65
  JsonNull: (new (secret: never) => typeof runtime.JsonNull);
47
66
  AnyNull: (new (secret: never) => typeof runtime.AnyNull);
48
67
  };
68
+ /**
69
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
70
+ *
71
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
72
+ */
49
73
  export declare const DbNull: runtime.DbNullClass;
74
+ /**
75
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
76
+ *
77
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
78
+ */
50
79
  export declare const JsonNull: runtime.JsonNullClass;
80
+ /**
81
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
82
+ *
83
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
84
+ */
51
85
  export declare const AnyNull: runtime.AnyNullClass;
52
86
  type SelectAndInclude = {
53
87
  select: any;
@@ -57,25 +91,54 @@ type SelectAndOmit = {
57
91
  select: any;
58
92
  omit: any;
59
93
  };
94
+ /**
95
+ * From T, pick a set of properties whose keys are in the union K
96
+ */
60
97
  type Prisma__Pick<T, K extends keyof T> = {
61
98
  [P in K]: T[P];
62
99
  };
63
100
  export type Enumerable<T> = T | Array<T>;
101
+ /**
102
+ * Subset
103
+ * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
104
+ */
64
105
  export type Subset<T, U> = {
65
106
  [key in keyof T]: key extends keyof U ? T[key] : never;
66
107
  };
108
+ /**
109
+ * SelectSubset
110
+ * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
111
+ * Additionally, it validates, if both select and include are present. If the case, it errors.
112
+ */
67
113
  export type SelectSubset<T, U> = {
68
114
  [key in keyof T]: key extends keyof U ? T[key] : never;
69
115
  } & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {});
116
+ /**
117
+ * Subset + Intersection
118
+ * @desc From `T` pick properties that exist in `U` and intersect `K`
119
+ */
70
120
  export type SubsetIntersection<T, U, K> = {
71
121
  [key in keyof T]: key extends keyof U ? T[key] : never;
72
122
  } & K;
73
123
  type Without<T, U> = {
74
124
  [P in Exclude<keyof T, keyof U>]?: never;
75
125
  };
126
+ /**
127
+ * XOR is needed to have a real mutually exclusive union type
128
+ * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
129
+ */
76
130
  export type XOR<T, U> = T extends object ? U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : U : T;
131
+ /**
132
+ * Is T a Record?
133
+ */
77
134
  type IsObject<T extends any> = T extends Array<any> ? False : T extends Date ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False;
135
+ /**
136
+ * If it's T[], return T
137
+ */
78
138
  export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T;
139
+ /**
140
+ * From ts-toolbelt
141
+ */
79
142
  type __Either<O extends object, K extends Key> = Omit<O, K> & {
80
143
  [P in K]: Prisma__Pick<O, P & keyof O>;
81
144
  }[K];
@@ -90,6 +153,7 @@ export type Union = any;
90
153
  export type PatchUndefined<O extends object, O1 extends object> = {
91
154
  [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K];
92
155
  } & {};
156
+ /** Helper Types for "Merge" **/
93
157
  export type IntersectOf<U extends Union> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
94
158
  export type Overwrite<O extends object, O1 extends object> = {
95
159
  [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
@@ -121,6 +185,7 @@ export type AtLeast<O extends object, K extends string> = NoExpand<O extends unk
121
185
  } & O : never>;
122
186
  type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
123
187
  export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
188
+ /** End Helper Types for "Merge" **/
124
189
  export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
125
190
  export type Boolean = True | False;
126
191
  export type True = 1;
@@ -149,10 +214,19 @@ type FieldPaths<T, U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>> =
149
214
  export type GetHavingFields<T> = {
150
215
  [K in keyof T]: Or<Or<Extends<'OR', K>, Extends<'AND', K>>, Extends<'NOT', K>> extends True ? T[K] extends infer TK ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never> : never : {} extends FieldPaths<T[K]> ? never : K;
151
216
  }[keyof T];
217
+ /**
218
+ * Convert tuple to union
219
+ */
152
220
  type _TupleToUnion<T> = T extends (infer E)[] ? E : never;
153
221
  type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>;
154
222
  export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T;
223
+ /**
224
+ * Like `Pick`, but additionally can also accept an array of keys
225
+ */
155
226
  export type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>;
227
+ /**
228
+ * Exclude all keys with underscores
229
+ */
156
230
  export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T;
157
231
  export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>;
158
232
  type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>;
@@ -2597,6 +2671,9 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
2597
2671
  };
2598
2672
  };
2599
2673
  };
2674
+ /**
2675
+ * Enums
2676
+ */
2600
2677
  export declare const TransactionIsolationLevel: {
2601
2678
  readonly ReadUncommitted: "ReadUncommitted";
2602
2679
  readonly ReadCommitted: "ReadCommitted";
@@ -3070,33 +3147,120 @@ export declare const JsonNullValueFilter: {
3070
3147
  readonly AnyNull: runtime.AnyNullClass;
3071
3148
  };
3072
3149
  export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter];
3150
+ /**
3151
+ * Field references
3152
+ */
3153
+ /**
3154
+ * Reference to a field of type 'String'
3155
+ */
3073
3156
  export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>;
3157
+ /**
3158
+ * Reference to a field of type 'String[]'
3159
+ */
3074
3160
  export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>;
3161
+ /**
3162
+ * Reference to a field of type 'Boolean'
3163
+ */
3075
3164
  export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>;
3165
+ /**
3166
+ * Reference to a field of type 'DateTime'
3167
+ */
3076
3168
  export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>;
3169
+ /**
3170
+ * Reference to a field of type 'DateTime[]'
3171
+ */
3077
3172
  export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>;
3173
+ /**
3174
+ * Reference to a field of type 'Currency'
3175
+ */
3078
3176
  export type EnumCurrencyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Currency'>;
3177
+ /**
3178
+ * Reference to a field of type 'Currency[]'
3179
+ */
3079
3180
  export type ListEnumCurrencyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Currency[]'>;
3181
+ /**
3182
+ * Reference to a field of type 'Locale'
3183
+ */
3080
3184
  export type EnumLocaleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Locale'>;
3185
+ /**
3186
+ * Reference to a field of type 'Locale[]'
3187
+ */
3081
3188
  export type ListEnumLocaleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Locale[]'>;
3189
+ /**
3190
+ * Reference to a field of type 'Float'
3191
+ */
3082
3192
  export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>;
3193
+ /**
3194
+ * Reference to a field of type 'Float[]'
3195
+ */
3083
3196
  export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>;
3197
+ /**
3198
+ * Reference to a field of type 'Int'
3199
+ */
3084
3200
  export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>;
3201
+ /**
3202
+ * Reference to a field of type 'Int[]'
3203
+ */
3085
3204
  export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>;
3205
+ /**
3206
+ * Reference to a field of type 'FileUploadStatus'
3207
+ */
3086
3208
  export type EnumFileUploadStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'FileUploadStatus'>;
3209
+ /**
3210
+ * Reference to a field of type 'FileUploadStatus[]'
3211
+ */
3087
3212
  export type ListEnumFileUploadStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'FileUploadStatus[]'>;
3213
+ /**
3214
+ * Reference to a field of type 'Json'
3215
+ */
3088
3216
  export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>;
3217
+ /**
3218
+ * Reference to a field of type 'QueryMode'
3219
+ */
3089
3220
  export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>;
3221
+ /**
3222
+ * Reference to a field of type 'OrderFulfilmentMethod'
3223
+ */
3090
3224
  export type EnumOrderFulfilmentMethodFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'OrderFulfilmentMethod'>;
3225
+ /**
3226
+ * Reference to a field of type 'OrderFulfilmentMethod[]'
3227
+ */
3091
3228
  export type ListEnumOrderFulfilmentMethodFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'OrderFulfilmentMethod[]'>;
3229
+ /**
3230
+ * Reference to a field of type 'PaymentMethod'
3231
+ */
3092
3232
  export type EnumPaymentMethodFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentMethod'>;
3233
+ /**
3234
+ * Reference to a field of type 'PaymentMethod[]'
3235
+ */
3093
3236
  export type ListEnumPaymentMethodFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentMethod[]'>;
3237
+ /**
3238
+ * Reference to a field of type 'PaymentProvider'
3239
+ */
3094
3240
  export type EnumPaymentProviderFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentProvider'>;
3241
+ /**
3242
+ * Reference to a field of type 'PaymentProvider[]'
3243
+ */
3095
3244
  export type ListEnumPaymentProviderFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentProvider[]'>;
3245
+ /**
3246
+ * Reference to a field of type 'PaymentStatus'
3247
+ */
3096
3248
  export type EnumPaymentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentStatus'>;
3249
+ /**
3250
+ * Reference to a field of type 'PaymentStatus[]'
3251
+ */
3097
3252
  export type ListEnumPaymentStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentStatus[]'>;
3253
+ /**
3254
+ * Reference to a field of type 'CampaignType'
3255
+ */
3098
3256
  export type EnumCampaignTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CampaignType'>;
3257
+ /**
3258
+ * Reference to a field of type 'CampaignType[]'
3259
+ */
3099
3260
  export type ListEnumCampaignTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CampaignType[]'>;
3261
+ /**
3262
+ * Batch Payload for updateMany & deleteMany & createMany
3263
+ */
3100
3264
  export type BatchPayload = {
3101
3265
  count: number;
3102
3266
  };
@@ -3104,20 +3268,87 @@ export declare const defineExtension: runtime.Types.Extensions.ExtendsHook<"defi
3104
3268
  export type DefaultPrismaClient = PrismaClient;
3105
3269
  export type ErrorFormat = 'pretty' | 'colorless' | 'minimal';
3106
3270
  export type PrismaClientOptions = ({
3271
+ /**
3272
+ * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
3273
+ */
3107
3274
  adapter: runtime.SqlDriverAdapterFactory;
3108
3275
  accelerateUrl?: never;
3109
3276
  } | {
3277
+ /**
3278
+ * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
3279
+ */
3110
3280
  accelerateUrl: string;
3111
3281
  adapter?: never;
3112
3282
  }) & {
3283
+ /**
3284
+ * @default "colorless"
3285
+ */
3113
3286
  errorFormat?: ErrorFormat;
3287
+ /**
3288
+ * @example
3289
+ * ```
3290
+ * // Shorthand for `emit: 'stdout'`
3291
+ * log: ['query', 'info', 'warn', 'error']
3292
+ *
3293
+ * // Emit as events only
3294
+ * log: [
3295
+ * { emit: 'event', level: 'query' },
3296
+ * { emit: 'event', level: 'info' },
3297
+ * { emit: 'event', level: 'warn' }
3298
+ * { emit: 'event', level: 'error' }
3299
+ * ]
3300
+ *
3301
+ * / Emit as events and log to stdout
3302
+ * og: [
3303
+ * { emit: 'stdout', level: 'query' },
3304
+ * { emit: 'stdout', level: 'info' },
3305
+ * { emit: 'stdout', level: 'warn' }
3306
+ * { emit: 'stdout', level: 'error' }
3307
+ *
3308
+ * ```
3309
+ * Read more in our [docs](https://pris.ly/d/logging).
3310
+ */
3114
3311
  log?: (LogLevel | LogDefinition)[];
3312
+ /**
3313
+ * The default values for transactionOptions
3314
+ * maxWait ?= 2000
3315
+ * timeout ?= 5000
3316
+ */
3115
3317
  transactionOptions?: {
3116
3318
  maxWait?: number;
3117
3319
  timeout?: number;
3118
3320
  isolationLevel?: TransactionIsolationLevel;
3119
3321
  };
3322
+ /**
3323
+ * Global configuration for omitting model fields by default.
3324
+ *
3325
+ * @example
3326
+ * ```
3327
+ * const prisma = new PrismaClient({
3328
+ * omit: {
3329
+ * user: {
3330
+ * password: true
3331
+ * }
3332
+ * }
3333
+ * })
3334
+ * ```
3335
+ */
3120
3336
  omit?: GlobalOmitConfig;
3337
+ /**
3338
+ * SQL commenter plugins that add metadata to SQL queries as comments.
3339
+ * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/
3340
+ *
3341
+ * @example
3342
+ * ```
3343
+ * const prisma = new PrismaClient({
3344
+ * adapter,
3345
+ * comments: [
3346
+ * traceContext(),
3347
+ * queryInsights(),
3348
+ * ],
3349
+ * })
3350
+ * ```
3351
+ */
3121
3352
  comments?: runtime.SqlCommenterPlugin[];
3122
3353
  };
3123
3354
  export type GlobalOmitConfig = {
@@ -3175,4 +3406,7 @@ export type LogEvent = {
3175
3406
  target: string;
3176
3407
  };
3177
3408
  export type PrismaAction = 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy';
3409
+ /**
3410
+ * `PrismaClient` proxy available in interactive transactions.
3411
+ */
3178
3412
  export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>;