@shophost/rest-api 2.0.30 → 2.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/package.json +18 -13
  2. package/scripts/minify.mjs +110 -0
  3. package/src/app.js +1 -53
  4. package/src/core/auth/auth.schema.js +1 -41
  5. package/src/core/auth/auth.util.js +1 -44
  6. package/src/core/auth/better-auth.lib.js +1 -100
  7. package/src/core/auth/generate-password-hash.util.d.ts +0 -3
  8. package/src/core/auth/generate-password-hash.util.js +1 -30
  9. package/src/core/auth/headers.schema.js +1 -22
  10. package/src/core/auth/user.schema.js +1 -30
  11. package/src/core/db/__generated__/client/browser.d.ts +0 -128
  12. package/src/core/db/__generated__/client/browser.js +1 -18
  13. package/src/core/db/__generated__/client/client.d.ts +0 -143
  14. package/src/core/db/__generated__/client/client.js +1 -35
  15. package/src/core/db/__generated__/client/commonInputTypes.js +1 -11
  16. package/src/core/db/__generated__/client/enums.js +1 -200
  17. package/src/core/db/__generated__/client/internal/class.d.ts +0 -343
  18. package/src/core/db/__generated__/client/internal/class.js +1 -55
  19. package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +0 -234
  20. package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -541
  21. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +0 -15
  22. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -512
  23. package/src/core/db/__generated__/client/models/Account.d.ts +0 -628
  24. package/src/core/db/__generated__/client/models/Account.js +1 -2
  25. package/src/core/db/__generated__/client/models/Address.d.ts +0 -701
  26. package/src/core/db/__generated__/client/models/Address.js +1 -2
  27. package/src/core/db/__generated__/client/models/Campaign.d.ts +0 -638
  28. package/src/core/db/__generated__/client/models/Campaign.js +1 -2
  29. package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +0 -634
  30. package/src/core/db/__generated__/client/models/ClosingTimes.js +1 -2
  31. package/src/core/db/__generated__/client/models/File.d.ts +0 -752
  32. package/src/core/db/__generated__/client/models/File.js +1 -2
  33. package/src/core/db/__generated__/client/models/Invitation.d.ts +0 -628
  34. package/src/core/db/__generated__/client/models/Invitation.js +1 -2
  35. package/src/core/db/__generated__/client/models/LegalEntity.d.ts +0 -652
  36. package/src/core/db/__generated__/client/models/LegalEntity.js +1 -2
  37. package/src/core/db/__generated__/client/models/Manufacturer.d.ts +0 -679
  38. package/src/core/db/__generated__/client/models/Manufacturer.js +1 -2
  39. package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +0 -628
  40. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +1 -2
  41. package/src/core/db/__generated__/client/models/Member.d.ts +0 -628
  42. package/src/core/db/__generated__/client/models/Member.js +1 -2
  43. package/src/core/db/__generated__/client/models/Modifier.d.ts +0 -662
  44. package/src/core/db/__generated__/client/models/Modifier.js +1 -2
  45. package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +0 -686
  46. package/src/core/db/__generated__/client/models/ModifierGroup.js +1 -2
  47. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +0 -628
  48. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +1 -2
  49. package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +0 -634
  50. package/src/core/db/__generated__/client/models/OpeningTimes.js +1 -2
  51. package/src/core/db/__generated__/client/models/Order.d.ts +0 -700
  52. package/src/core/db/__generated__/client/models/Order.js +1 -2
  53. package/src/core/db/__generated__/client/models/OrderItem.d.ts +0 -686
  54. package/src/core/db/__generated__/client/models/OrderItem.js +1 -2
  55. package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +0 -628
  56. package/src/core/db/__generated__/client/models/OrderItemTranslation.js +1 -2
  57. package/src/core/db/__generated__/client/models/Organization.d.ts +0 -811
  58. package/src/core/db/__generated__/client/models/Organization.js +1 -2
  59. package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +0 -676
  60. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +1 -2
  61. package/src/core/db/__generated__/client/models/Payment.d.ts +0 -668
  62. package/src/core/db/__generated__/client/models/Payment.js +1 -2
  63. package/src/core/db/__generated__/client/models/PaymentSession.d.ts +0 -638
  64. package/src/core/db/__generated__/client/models/PaymentSession.js +1 -2
  65. package/src/core/db/__generated__/client/models/Product.d.ts +0 -746
  66. package/src/core/db/__generated__/client/models/Product.js +1 -2
  67. package/src/core/db/__generated__/client/models/ProductCategory.d.ts +0 -689
  68. package/src/core/db/__generated__/client/models/ProductCategory.js +1 -2
  69. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +0 -628
  70. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +1 -2
  71. package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +0 -664
  72. package/src/core/db/__generated__/client/models/ProductSnapshot.js +1 -2
  73. package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +0 -628
  74. package/src/core/db/__generated__/client/models/ProductTranslation.js +1 -2
  75. package/src/core/db/__generated__/client/models/Reservation.d.ts +0 -650
  76. package/src/core/db/__generated__/client/models/Reservation.js +1 -2
  77. package/src/core/db/__generated__/client/models/Session.d.ts +0 -628
  78. package/src/core/db/__generated__/client/models/Session.js +1 -2
  79. package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +0 -679
  80. package/src/core/db/__generated__/client/models/ShippingMethod.js +1 -2
  81. package/src/core/db/__generated__/client/models/ShippingZone.d.ts +0 -638
  82. package/src/core/db/__generated__/client/models/ShippingZone.js +1 -2
  83. package/src/core/db/__generated__/client/models/User.d.ts +0 -736
  84. package/src/core/db/__generated__/client/models/User.js +1 -2
  85. package/src/core/db/__generated__/client/models/Verification.d.ts +0 -592
  86. package/src/core/db/__generated__/client/models/Verification.js +1 -2
  87. package/src/core/db/__generated__/client/models.js +1 -2
  88. package/src/core/db/index.js +1 -2
  89. package/src/core/exceptions/http-exception.js +1 -9
  90. package/src/core/hono/hono.js +1 -123
  91. package/src/core/lib/prisma.d.ts +9 -1
  92. package/src/core/lib/prisma.js +1 -11
  93. package/src/core/logging/pino.js +1 -5
  94. package/src/core/notifications/email.service.d.ts +0 -15
  95. package/src/core/notifications/email.service.js +1 -116
  96. package/src/core/openapi/openapi.lib.js +1 -26
  97. package/src/core/types/google-maps.types.js +1 -2
  98. package/src/core/utils/currency.util.js +1 -11
  99. package/src/core/utils/env.util.js +1 -8
  100. package/src/core/utils/object.util.d.ts +0 -10
  101. package/src/core/utils/object.util.js +1 -39
  102. package/src/core/utils/translations.util.js +0 -2
  103. package/src/core/utils/zod.util.d.ts +0 -12
  104. package/src/core/utils/zod.util.js +1 -85
  105. package/src/db.js +1 -3
  106. package/src/features/access/access.handler.js +1 -91
  107. package/src/features/access/access.route.js +1 -220
  108. package/src/features/access/access.schema.js +1 -108
  109. package/src/features/access/access.service.js +1 -294
  110. package/src/features/cart/cart.handler.js +1 -17
  111. package/src/features/cart/cart.route.js +1 -32
  112. package/src/features/cart/cart.schema.js +1 -39
  113. package/src/features/cart/cart.service.d.ts +0 -7
  114. package/src/features/cart/cart.service.js +1 -97
  115. package/src/features/cart/cart.util.js +1 -76
  116. package/src/features/file/file.handler.js +1 -23
  117. package/src/features/file/file.route.js +1 -34
  118. package/src/features/file/file.schema.js +1 -77
  119. package/src/features/file/file.service.d.ts +0 -6
  120. package/src/features/file/file.service.js +1 -66
  121. package/src/features/health/health.handler.js +1 -10
  122. package/src/features/health/health.route.js +1 -25
  123. package/src/features/index.js +1 -16
  124. package/src/features/location/location.handler.js +1 -25
  125. package/src/features/location/location.route.js +1 -56
  126. package/src/features/location/location.schema.js +1 -50
  127. package/src/features/location/location.service.d.ts +0 -3
  128. package/src/features/location/location.service.js +1 -141
  129. package/src/features/manufacturer/manufacturer.handler.js +1 -53
  130. package/src/features/manufacturer/manufacturer.route.js +1 -97
  131. package/src/features/manufacturer/manufacturer.schema.js +1 -125
  132. package/src/features/manufacturer/manufacturer.service.d.ts +0 -19
  133. package/src/features/manufacturer/manufacturer.service.js +1 -190
  134. package/src/features/order/emails/order-confirmation.email.js +1 -229
  135. package/src/features/order/emails/order-notification.email.js +1 -229
  136. package/src/features/order/fulfilment.schema.js +1 -3
  137. package/src/features/order/order.handler.js +1 -54
  138. package/src/features/order/order.route.js +1 -111
  139. package/src/features/order/order.schema.js +1 -158
  140. package/src/features/order/order.service.d.ts +0 -15
  141. package/src/features/order/order.service.js +1 -306
  142. package/src/features/order/recipient.schema.js +1 -38
  143. package/src/features/organization/legal-entity.schema.js +1 -83
  144. package/src/features/organization/organization-configuration.schema.js +1 -115
  145. package/src/features/organization/organization.handler.js +1 -48
  146. package/src/features/organization/organization.route.js +1 -84
  147. package/src/features/organization/organization.schema.js +1 -64
  148. package/src/features/organization/organization.service.d.ts +0 -15
  149. package/src/features/organization/organization.service.js +1 -334
  150. package/src/features/payment/payment.handler.js +1 -16
  151. package/src/features/payment/payment.route.js +1 -22
  152. package/src/features/payment/payment.schema.js +1 -46
  153. package/src/features/payment/payment.service.js +1 -100
  154. package/src/features/payment/stripe.service.js +1 -164
  155. package/src/features/product/product-modifier.schema.js +1 -84
  156. package/src/features/product/product.handler.js +1 -87
  157. package/src/features/product/product.route.js +1 -179
  158. package/src/features/product/product.schema.js +1 -143
  159. package/src/features/product/product.service.d.ts +0 -25
  160. package/src/features/product/product.service.js +1 -440
  161. package/src/features/product-category/product-category.handler.js +1 -59
  162. package/src/features/product-category/product-category.route.js +1 -139
  163. package/src/features/product-category/product-category.schema.js +1 -86
  164. package/src/features/product-category/product-category.service.d.ts +0 -22
  165. package/src/features/product-category/product-category.service.js +1 -220
  166. package/src/features/reservation/emails/reservation-cancellation.email.js +1 -82
  167. package/src/features/reservation/emails/reservation-confirmation.email.js +1 -82
  168. package/src/features/reservation/emails/reservation-notification.email.js +1 -93
  169. package/src/features/reservation/reservation.handler.js +1 -65
  170. package/src/features/reservation/reservation.route.js +1 -167
  171. package/src/features/reservation/reservation.schema.js +1 -51
  172. package/src/features/reservation/reservation.service.d.ts +0 -18
  173. package/src/features/reservation/reservation.service.js +1 -231
  174. package/src/features/shipping/shipping.handler.js +1 -32
  175. package/src/features/shipping/shipping.route.js +1 -51
  176. package/src/features/shipping/shipping.service.d.ts +0 -7
  177. package/src/features/shipping/shipping.service.js +1 -96
  178. package/src/features/shipping-method/shipping-method.handler.js +1 -60
  179. package/src/features/shipping-method/shipping-method.route.js +1 -144
  180. package/src/features/shipping-method/shipping-method.schema.js +1 -48
  181. package/src/features/shipping-method/shipping-method.service.d.ts +0 -25
  182. package/src/features/shipping-method/shipping-method.service.js +1 -229
  183. package/src/features/shipping-method/shipping-zone.schema.js +1 -31
  184. package/src/features/webhook/webhook.handler.js +1 -50
  185. package/src/features/webhook/webhook.route.js +1 -33
  186. package/src/index.js +1 -6
  187. package/src/integrations/next.js +1 -82
  188. package/src/schemas/address.schema.d.ts +0 -8
  189. package/src/schemas/address.schema.js +1 -112
  190. package/src/schemas/currency.schema.d.ts +0 -42
  191. package/src/schemas/currency.schema.js +1 -118
  192. package/src/schemas/error.schema.js +1 -12
  193. package/src/schemas/index.js +1 -29
  194. package/src/schemas/locales.schema.js +1 -238
  195. package/src/schemas/number.schema.js +1 -29
  196. package/src/schemas/pagination.schema.js +1 -54
  197. package/src/schemas/params.schema.js +1 -20
  198. package/src/schemas/queries.schema.js +1 -6
  199. package/src/test/global-setup.d.ts +1 -0
  200. package/src/test/global-setup.js +1 -0
  201. package/src/test/integration/api-fixtures.d.ts +4 -16
  202. package/src/test/integration/api-fixtures.js +1 -225
  203. package/src/test/integration/seed.d.ts +81 -0
  204. package/src/test/integration/seed.js +1 -0
  205. package/src/test/integration/test-helpers.d.ts +107 -924
  206. package/src/test/integration/test-helpers.js +1 -1100
  207. package/src/test/setup-test-env.d.ts +1 -1
  208. package/src/test/setup-test-env.js +1 -29
  209. package/src/app.js.map +0 -1
  210. package/src/core/auth/auth.schema.js.map +0 -1
  211. package/src/core/auth/auth.util.js.map +0 -1
  212. package/src/core/auth/better-auth.lib.js.map +0 -1
  213. package/src/core/auth/generate-password-hash.util.js.map +0 -1
  214. package/src/core/auth/headers.schema.js.map +0 -1
  215. package/src/core/auth/user.schema.js.map +0 -1
  216. package/src/core/db/__generated__/client/browser.js.map +0 -1
  217. package/src/core/db/__generated__/client/client.js.map +0 -1
  218. package/src/core/db/__generated__/client/commonInputTypes.js.map +0 -1
  219. package/src/core/db/__generated__/client/enums.js.map +0 -1
  220. package/src/core/db/__generated__/client/internal/class.js.map +0 -1
  221. package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +0 -1
  222. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +0 -1
  223. package/src/core/db/__generated__/client/models/Account.js.map +0 -1
  224. package/src/core/db/__generated__/client/models/Address.js.map +0 -1
  225. package/src/core/db/__generated__/client/models/Campaign.js.map +0 -1
  226. package/src/core/db/__generated__/client/models/ClosingTimes.js.map +0 -1
  227. package/src/core/db/__generated__/client/models/File.js.map +0 -1
  228. package/src/core/db/__generated__/client/models/Invitation.js.map +0 -1
  229. package/src/core/db/__generated__/client/models/LegalEntity.js.map +0 -1
  230. package/src/core/db/__generated__/client/models/Manufacturer.js.map +0 -1
  231. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +0 -1
  232. package/src/core/db/__generated__/client/models/Member.js.map +0 -1
  233. package/src/core/db/__generated__/client/models/Modifier.js.map +0 -1
  234. package/src/core/db/__generated__/client/models/ModifierGroup.js.map +0 -1
  235. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +0 -1
  236. package/src/core/db/__generated__/client/models/OpeningTimes.js.map +0 -1
  237. package/src/core/db/__generated__/client/models/Order.js.map +0 -1
  238. package/src/core/db/__generated__/client/models/OrderItem.js.map +0 -1
  239. package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +0 -1
  240. package/src/core/db/__generated__/client/models/Organization.js.map +0 -1
  241. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +0 -1
  242. package/src/core/db/__generated__/client/models/Payment.js.map +0 -1
  243. package/src/core/db/__generated__/client/models/PaymentSession.js.map +0 -1
  244. package/src/core/db/__generated__/client/models/Product.js.map +0 -1
  245. package/src/core/db/__generated__/client/models/ProductCategory.js.map +0 -1
  246. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +0 -1
  247. package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +0 -1
  248. package/src/core/db/__generated__/client/models/ProductTranslation.js.map +0 -1
  249. package/src/core/db/__generated__/client/models/Reservation.js.map +0 -1
  250. package/src/core/db/__generated__/client/models/Session.js.map +0 -1
  251. package/src/core/db/__generated__/client/models/ShippingMethod.js.map +0 -1
  252. package/src/core/db/__generated__/client/models/ShippingZone.js.map +0 -1
  253. package/src/core/db/__generated__/client/models/User.js.map +0 -1
  254. package/src/core/db/__generated__/client/models/Verification.js.map +0 -1
  255. package/src/core/db/__generated__/client/models.js.map +0 -1
  256. package/src/core/db/index.js.map +0 -1
  257. package/src/core/exceptions/http-exception.js.map +0 -1
  258. package/src/core/hono/hono.js.map +0 -1
  259. package/src/core/lib/prisma.js.map +0 -1
  260. package/src/core/logging/pino.js.map +0 -1
  261. package/src/core/notifications/email.service.js.map +0 -1
  262. package/src/core/openapi/openapi.lib.js.map +0 -1
  263. package/src/core/types/google-maps.types.js.map +0 -1
  264. package/src/core/utils/currency.util.js.map +0 -1
  265. package/src/core/utils/env.util.js.map +0 -1
  266. package/src/core/utils/object.util.js.map +0 -1
  267. package/src/core/utils/translations.util.js.map +0 -1
  268. package/src/core/utils/zod.util.js.map +0 -1
  269. package/src/db.js.map +0 -1
  270. package/src/features/access/access.handler.js.map +0 -1
  271. package/src/features/access/access.route.js.map +0 -1
  272. package/src/features/access/access.schema.js.map +0 -1
  273. package/src/features/access/access.service.js.map +0 -1
  274. package/src/features/cart/cart.handler.js.map +0 -1
  275. package/src/features/cart/cart.route.js.map +0 -1
  276. package/src/features/cart/cart.schema.js.map +0 -1
  277. package/src/features/cart/cart.service.js.map +0 -1
  278. package/src/features/cart/cart.util.js.map +0 -1
  279. package/src/features/file/file.handler.js.map +0 -1
  280. package/src/features/file/file.route.js.map +0 -1
  281. package/src/features/file/file.schema.js.map +0 -1
  282. package/src/features/file/file.service.js.map +0 -1
  283. package/src/features/health/health.handler.js.map +0 -1
  284. package/src/features/health/health.route.js.map +0 -1
  285. package/src/features/index.js.map +0 -1
  286. package/src/features/location/location.handler.js.map +0 -1
  287. package/src/features/location/location.route.js.map +0 -1
  288. package/src/features/location/location.schema.js.map +0 -1
  289. package/src/features/location/location.service.js.map +0 -1
  290. package/src/features/manufacturer/manufacturer.handler.js.map +0 -1
  291. package/src/features/manufacturer/manufacturer.route.js.map +0 -1
  292. package/src/features/manufacturer/manufacturer.schema.js.map +0 -1
  293. package/src/features/manufacturer/manufacturer.service.js.map +0 -1
  294. package/src/features/order/emails/order-confirmation.email.js.map +0 -1
  295. package/src/features/order/emails/order-notification.email.js.map +0 -1
  296. package/src/features/order/fulfilment.schema.js.map +0 -1
  297. package/src/features/order/order.handler.js.map +0 -1
  298. package/src/features/order/order.route.js.map +0 -1
  299. package/src/features/order/order.schema.js.map +0 -1
  300. package/src/features/order/order.service.js.map +0 -1
  301. package/src/features/order/recipient.schema.js.map +0 -1
  302. package/src/features/organization/legal-entity.schema.js.map +0 -1
  303. package/src/features/organization/organization-configuration.schema.js.map +0 -1
  304. package/src/features/organization/organization.handler.js.map +0 -1
  305. package/src/features/organization/organization.route.js.map +0 -1
  306. package/src/features/organization/organization.schema.js.map +0 -1
  307. package/src/features/organization/organization.service.js.map +0 -1
  308. package/src/features/payment/payment.handler.js.map +0 -1
  309. package/src/features/payment/payment.route.js.map +0 -1
  310. package/src/features/payment/payment.schema.js.map +0 -1
  311. package/src/features/payment/payment.service.js.map +0 -1
  312. package/src/features/payment/stripe.service.js.map +0 -1
  313. package/src/features/product/product-modifier.schema.js.map +0 -1
  314. package/src/features/product/product.handler.js.map +0 -1
  315. package/src/features/product/product.route.js.map +0 -1
  316. package/src/features/product/product.schema.js.map +0 -1
  317. package/src/features/product/product.service.js.map +0 -1
  318. package/src/features/product-category/product-category.handler.js.map +0 -1
  319. package/src/features/product-category/product-category.route.js.map +0 -1
  320. package/src/features/product-category/product-category.schema.js.map +0 -1
  321. package/src/features/product-category/product-category.service.js.map +0 -1
  322. package/src/features/reservation/emails/reservation-cancellation.email.js.map +0 -1
  323. package/src/features/reservation/emails/reservation-confirmation.email.js.map +0 -1
  324. package/src/features/reservation/emails/reservation-notification.email.js.map +0 -1
  325. package/src/features/reservation/reservation.handler.js.map +0 -1
  326. package/src/features/reservation/reservation.route.js.map +0 -1
  327. package/src/features/reservation/reservation.schema.js.map +0 -1
  328. package/src/features/reservation/reservation.service.js.map +0 -1
  329. package/src/features/shipping/shipping.handler.js.map +0 -1
  330. package/src/features/shipping/shipping.route.js.map +0 -1
  331. package/src/features/shipping/shipping.service.js.map +0 -1
  332. package/src/features/shipping-method/shipping-method.handler.js.map +0 -1
  333. package/src/features/shipping-method/shipping-method.route.js.map +0 -1
  334. package/src/features/shipping-method/shipping-method.schema.js.map +0 -1
  335. package/src/features/shipping-method/shipping-method.service.js.map +0 -1
  336. package/src/features/shipping-method/shipping-zone.schema.js.map +0 -1
  337. package/src/features/webhook/webhook.handler.js.map +0 -1
  338. package/src/features/webhook/webhook.route.js.map +0 -1
  339. package/src/index.js.map +0 -1
  340. package/src/integrations/next.js.map +0 -1
  341. package/src/schemas/address.schema.js.map +0 -1
  342. package/src/schemas/currency.schema.js.map +0 -1
  343. package/src/schemas/error.schema.js.map +0 -1
  344. package/src/schemas/index.js.map +0 -1
  345. package/src/schemas/locales.schema.js.map +0 -1
  346. package/src/schemas/number.schema.js.map +0 -1
  347. package/src/schemas/pagination.schema.js.map +0 -1
  348. package/src/schemas/params.schema.js.map +0 -1
  349. package/src/schemas/queries.schema.js.map +0 -1
  350. package/src/test/integration/api-fixtures.js.map +0 -1
  351. package/src/test/integration/test-helpers.js.map +0 -1
  352. package/src/test/setup-test-env.js.map +0 -1
@@ -1,10 +1,6 @@
1
1
  import type * as runtime from "@prisma/client/runtime/client";
2
2
  import type * as $Enums from "../enums";
3
3
  import type * as Prisma from "../internal/prismaNamespace";
4
- /**
5
- * Model Campaign
6
- *
7
- */
8
4
  export type CampaignModel = runtime.Types.Result.DefaultSelection<Prisma.$CampaignPayload>;
9
5
  export type AggregateCampaign = {
10
6
  _count: CampaignCountAggregateOutputType | null;
@@ -116,63 +112,15 @@ export type CampaignCountAggregateInputType = {
116
112
  _all?: true;
117
113
  };
118
114
  export type CampaignAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
119
- /**
120
- * Filter which Campaign to aggregate.
121
- */
122
115
  where?: Prisma.CampaignWhereInput;
123
- /**
124
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
125
- *
126
- * Determine the order of Campaigns to fetch.
127
- */
128
116
  orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[];
129
- /**
130
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
131
- *
132
- * Sets the start position
133
- */
134
117
  cursor?: Prisma.CampaignWhereUniqueInput;
135
- /**
136
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
137
- *
138
- * Take `±n` Campaigns from the position of the cursor.
139
- */
140
118
  take?: number;
141
- /**
142
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
143
- *
144
- * Skip the first `n` Campaigns.
145
- */
146
119
  skip?: number;
147
- /**
148
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
149
- *
150
- * Count returned Campaigns
151
- **/
152
120
  _count?: true | CampaignCountAggregateInputType;
153
- /**
154
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
155
- *
156
- * Select which fields to average
157
- **/
158
121
  _avg?: CampaignAvgAggregateInputType;
159
- /**
160
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
161
- *
162
- * Select which fields to sum
163
- **/
164
122
  _sum?: CampaignSumAggregateInputType;
165
- /**
166
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
167
- *
168
- * Select which fields to find the minimum value
169
- **/
170
123
  _min?: CampaignMinAggregateInputType;
171
- /**
172
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
173
- *
174
- * Select which fields to find the maximum value
175
- **/
176
124
  _max?: CampaignMaxAggregateInputType;
177
125
  };
178
126
  export type GetCampaignAggregateType<T extends CampaignAggregateArgs> = {
@@ -713,290 +661,22 @@ export interface CampaignDelegate<ExtArgs extends runtime.Types.Extensions.Inter
713
661
  name: 'Campaign';
714
662
  };
715
663
  };
716
- /**
717
- * Find zero or one Campaign that matches the filter.
718
- * @param {CampaignFindUniqueArgs} args - Arguments to find a Campaign
719
- * @example
720
- * // Get one Campaign
721
- * const campaign = await prisma.campaign.findUnique({
722
- * where: {
723
- * // ... provide filter here
724
- * }
725
- * })
726
- */
727
664
  findUnique<T extends CampaignFindUniqueArgs>(args: Prisma.SelectSubset<T, CampaignFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
728
- /**
729
- * Find one Campaign that matches the filter or throw an error with `error.code='P2025'`
730
- * if no matches were found.
731
- * @param {CampaignFindUniqueOrThrowArgs} args - Arguments to find a Campaign
732
- * @example
733
- * // Get one Campaign
734
- * const campaign = await prisma.campaign.findUniqueOrThrow({
735
- * where: {
736
- * // ... provide filter here
737
- * }
738
- * })
739
- */
740
665
  findUniqueOrThrow<T extends CampaignFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CampaignFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
741
- /**
742
- * Find the first Campaign that matches the filter.
743
- * Note, that providing `undefined` is treated as the value not being there.
744
- * Read more here: https://pris.ly/d/null-undefined
745
- * @param {CampaignFindFirstArgs} args - Arguments to find a Campaign
746
- * @example
747
- * // Get one Campaign
748
- * const campaign = await prisma.campaign.findFirst({
749
- * where: {
750
- * // ... provide filter here
751
- * }
752
- * })
753
- */
754
666
  findFirst<T extends CampaignFindFirstArgs>(args?: Prisma.SelectSubset<T, CampaignFindFirstArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
755
- /**
756
- * Find the first Campaign that matches the filter or
757
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
758
- * Note, that providing `undefined` is treated as the value not being there.
759
- * Read more here: https://pris.ly/d/null-undefined
760
- * @param {CampaignFindFirstOrThrowArgs} args - Arguments to find a Campaign
761
- * @example
762
- * // Get one Campaign
763
- * const campaign = await prisma.campaign.findFirstOrThrow({
764
- * where: {
765
- * // ... provide filter here
766
- * }
767
- * })
768
- */
769
667
  findFirstOrThrow<T extends CampaignFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CampaignFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
770
- /**
771
- * Find zero or more Campaigns that matches the filter.
772
- * Note, that providing `undefined` is treated as the value not being there.
773
- * Read more here: https://pris.ly/d/null-undefined
774
- * @param {CampaignFindManyArgs} args - Arguments to filter and select certain fields only.
775
- * @example
776
- * // Get all Campaigns
777
- * const campaigns = await prisma.campaign.findMany()
778
- *
779
- * // Get first 10 Campaigns
780
- * const campaigns = await prisma.campaign.findMany({ take: 10 })
781
- *
782
- * // Only select the `id`
783
- * const campaignWithIdOnly = await prisma.campaign.findMany({ select: { id: true } })
784
- *
785
- */
786
668
  findMany<T extends CampaignFindManyArgs>(args?: Prisma.SelectSubset<T, CampaignFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
787
- /**
788
- * Create a Campaign.
789
- * @param {CampaignCreateArgs} args - Arguments to create a Campaign.
790
- * @example
791
- * // Create one Campaign
792
- * const Campaign = await prisma.campaign.create({
793
- * data: {
794
- * // ... data to create a Campaign
795
- * }
796
- * })
797
- *
798
- */
799
669
  create<T extends CampaignCreateArgs>(args: Prisma.SelectSubset<T, CampaignCreateArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
800
- /**
801
- * Create many Campaigns.
802
- * @param {CampaignCreateManyArgs} args - Arguments to create many Campaigns.
803
- * @example
804
- * // Create many Campaigns
805
- * const campaign = await prisma.campaign.createMany({
806
- * data: [
807
- * // ... provide data here
808
- * ]
809
- * })
810
- *
811
- */
812
670
  createMany<T extends CampaignCreateManyArgs>(args?: Prisma.SelectSubset<T, CampaignCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
813
- /**
814
- * Create many Campaigns and returns the data saved in the database.
815
- * @param {CampaignCreateManyAndReturnArgs} args - Arguments to create many Campaigns.
816
- * @example
817
- * // Create many Campaigns
818
- * const campaign = await prisma.campaign.createManyAndReturn({
819
- * data: [
820
- * // ... provide data here
821
- * ]
822
- * })
823
- *
824
- * // Create many Campaigns and only return the `id`
825
- * const campaignWithIdOnly = await prisma.campaign.createManyAndReturn({
826
- * select: { id: true },
827
- * data: [
828
- * // ... provide data here
829
- * ]
830
- * })
831
- * Note, that providing `undefined` is treated as the value not being there.
832
- * Read more here: https://pris.ly/d/null-undefined
833
- *
834
- */
835
671
  createManyAndReturn<T extends CampaignCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CampaignCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
836
- /**
837
- * Delete a Campaign.
838
- * @param {CampaignDeleteArgs} args - Arguments to delete one Campaign.
839
- * @example
840
- * // Delete one Campaign
841
- * const Campaign = await prisma.campaign.delete({
842
- * where: {
843
- * // ... filter to delete one Campaign
844
- * }
845
- * })
846
- *
847
- */
848
672
  delete<T extends CampaignDeleteArgs>(args: Prisma.SelectSubset<T, CampaignDeleteArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
849
- /**
850
- * Update one Campaign.
851
- * @param {CampaignUpdateArgs} args - Arguments to update one Campaign.
852
- * @example
853
- * // Update one Campaign
854
- * const campaign = await prisma.campaign.update({
855
- * where: {
856
- * // ... provide filter here
857
- * },
858
- * data: {
859
- * // ... provide data here
860
- * }
861
- * })
862
- *
863
- */
864
673
  update<T extends CampaignUpdateArgs>(args: Prisma.SelectSubset<T, CampaignUpdateArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
865
- /**
866
- * Delete zero or more Campaigns.
867
- * @param {CampaignDeleteManyArgs} args - Arguments to filter Campaigns to delete.
868
- * @example
869
- * // Delete a few Campaigns
870
- * const { count } = await prisma.campaign.deleteMany({
871
- * where: {
872
- * // ... provide filter here
873
- * }
874
- * })
875
- *
876
- */
877
674
  deleteMany<T extends CampaignDeleteManyArgs>(args?: Prisma.SelectSubset<T, CampaignDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
878
- /**
879
- * Update zero or more Campaigns.
880
- * Note, that providing `undefined` is treated as the value not being there.
881
- * Read more here: https://pris.ly/d/null-undefined
882
- * @param {CampaignUpdateManyArgs} args - Arguments to update one or more rows.
883
- * @example
884
- * // Update many Campaigns
885
- * const campaign = await prisma.campaign.updateMany({
886
- * where: {
887
- * // ... provide filter here
888
- * },
889
- * data: {
890
- * // ... provide data here
891
- * }
892
- * })
893
- *
894
- */
895
675
  updateMany<T extends CampaignUpdateManyArgs>(args: Prisma.SelectSubset<T, CampaignUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
896
- /**
897
- * Update zero or more Campaigns and returns the data updated in the database.
898
- * @param {CampaignUpdateManyAndReturnArgs} args - Arguments to update many Campaigns.
899
- * @example
900
- * // Update many Campaigns
901
- * const campaign = await prisma.campaign.updateManyAndReturn({
902
- * where: {
903
- * // ... provide filter here
904
- * },
905
- * data: [
906
- * // ... provide data here
907
- * ]
908
- * })
909
- *
910
- * // Update zero or more Campaigns and only return the `id`
911
- * const campaignWithIdOnly = await prisma.campaign.updateManyAndReturn({
912
- * select: { id: true },
913
- * where: {
914
- * // ... provide filter here
915
- * },
916
- * data: [
917
- * // ... provide data here
918
- * ]
919
- * })
920
- * Note, that providing `undefined` is treated as the value not being there.
921
- * Read more here: https://pris.ly/d/null-undefined
922
- *
923
- */
924
676
  updateManyAndReturn<T extends CampaignUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CampaignUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
925
- /**
926
- * Create or update one Campaign.
927
- * @param {CampaignUpsertArgs} args - Arguments to update or create a Campaign.
928
- * @example
929
- * // Update or create a Campaign
930
- * const campaign = await prisma.campaign.upsert({
931
- * create: {
932
- * // ... data to create a Campaign
933
- * },
934
- * update: {
935
- * // ... in case it already exists, update
936
- * },
937
- * where: {
938
- * // ... the filter for the Campaign we want to update
939
- * }
940
- * })
941
- */
942
677
  upsert<T extends CampaignUpsertArgs>(args: Prisma.SelectSubset<T, CampaignUpsertArgs<ExtArgs>>): Prisma.Prisma__CampaignClient<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
943
- /**
944
- * Count the number of Campaigns.
945
- * Note, that providing `undefined` is treated as the value not being there.
946
- * Read more here: https://pris.ly/d/null-undefined
947
- * @param {CampaignCountArgs} args - Arguments to filter Campaigns to count.
948
- * @example
949
- * // Count the number of Campaigns
950
- * const count = await prisma.campaign.count({
951
- * where: {
952
- * // ... the filter for the Campaigns we want to count
953
- * }
954
- * })
955
- **/
956
678
  count<T extends CampaignCountArgs>(args?: Prisma.Subset<T, CampaignCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], CampaignCountAggregateOutputType> : number>;
957
- /**
958
- * Allows you to perform aggregations operations on a Campaign.
959
- * Note, that providing `undefined` is treated as the value not being there.
960
- * Read more here: https://pris.ly/d/null-undefined
961
- * @param {CampaignAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
962
- * @example
963
- * // Ordered by age ascending
964
- * // Where email contains prisma.io
965
- * // Limited to the 10 users
966
- * const aggregations = await prisma.user.aggregate({
967
- * _avg: {
968
- * age: true,
969
- * },
970
- * where: {
971
- * email: {
972
- * contains: "prisma.io",
973
- * },
974
- * },
975
- * orderBy: {
976
- * age: "asc",
977
- * },
978
- * take: 10,
979
- * })
980
- **/
981
679
  aggregate<T extends CampaignAggregateArgs>(args: Prisma.Subset<T, CampaignAggregateArgs>): Prisma.PrismaPromise<GetCampaignAggregateType<T>>;
982
- /**
983
- * Group by Campaign.
984
- * Note, that providing `undefined` is treated as the value not being there.
985
- * Read more here: https://pris.ly/d/null-undefined
986
- * @param {CampaignGroupByArgs} args - Group by arguments.
987
- * @example
988
- * // Group by city, order by createdAt, get count
989
- * const result = await prisma.user.groupBy({
990
- * by: ['city', 'createdAt'],
991
- * orderBy: {
992
- * createdAt: true
993
- * },
994
- * _count: {
995
- * _all: true
996
- * },
997
- * })
998
- *
999
- **/
1000
680
  groupBy<T extends CampaignGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1001
681
  orderBy: CampaignGroupByArgs['orderBy'];
1002
682
  } : {
@@ -1015,44 +695,15 @@ export interface CampaignDelegate<ExtArgs extends runtime.Types.Extensions.Inter
1015
695
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1016
696
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1017
697
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, CampaignGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCampaignGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1018
- /**
1019
- * Fields of the Campaign model
1020
- */
1021
698
  readonly fields: CampaignFieldRefs;
1022
699
  }
1023
- /**
1024
- * The delegate class that acts as a "Promise-like" for Campaign.
1025
- * Why is this prefixed with `Prisma__`?
1026
- * Because we want to prevent naming conflicts as mentioned in
1027
- * https://github.com/prisma/prisma-client-js/issues/707
1028
- */
1029
700
  export interface Prisma__CampaignClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1030
701
  readonly [Symbol.toStringTag]: "PrismaPromise";
1031
702
  organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1032
- /**
1033
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1034
- * @param onfulfilled The callback to execute when the Promise is resolved.
1035
- * @param onrejected The callback to execute when the Promise is rejected.
1036
- * @returns A Promise for the completion of which ever callback is executed.
1037
- */
1038
703
  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>;
1039
- /**
1040
- * Attaches a callback for only the rejection of the Promise.
1041
- * @param onrejected The callback to execute when the Promise is rejected.
1042
- * @returns A Promise for the completion of the callback.
1043
- */
1044
704
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1045
- /**
1046
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1047
- * resolved value cannot be modified from the callback.
1048
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1049
- * @returns A Promise for the completion of the callback.
1050
- */
1051
705
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1052
706
  }
1053
- /**
1054
- * Fields of the Campaign model
1055
- */
1056
707
  export interface CampaignFieldRefs {
1057
708
  readonly id: Prisma.FieldRef<"Campaign", 'String'>;
1058
709
  readonly title: Prisma.FieldRef<"Campaign", 'String'>;
@@ -1067,398 +718,109 @@ export interface CampaignFieldRefs {
1067
718
  readonly createdAt: Prisma.FieldRef<"Campaign", 'DateTime'>;
1068
719
  readonly updatedAt: Prisma.FieldRef<"Campaign", 'DateTime'>;
1069
720
  }
1070
- /**
1071
- * Campaign findUnique
1072
- */
1073
721
  export type CampaignFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1074
- /**
1075
- * Select specific fields to fetch from the Campaign
1076
- */
1077
722
  select?: Prisma.CampaignSelect<ExtArgs> | null;
1078
- /**
1079
- * Omit specific fields from the Campaign
1080
- */
1081
723
  omit?: Prisma.CampaignOmit<ExtArgs> | null;
1082
- /**
1083
- * Choose, which related nodes to fetch as well
1084
- */
1085
724
  include?: Prisma.CampaignInclude<ExtArgs> | null;
1086
- /**
1087
- * Filter, which Campaign to fetch.
1088
- */
1089
725
  where: Prisma.CampaignWhereUniqueInput;
1090
726
  };
1091
- /**
1092
- * Campaign findUniqueOrThrow
1093
- */
1094
727
  export type CampaignFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1095
- /**
1096
- * Select specific fields to fetch from the Campaign
1097
- */
1098
728
  select?: Prisma.CampaignSelect<ExtArgs> | null;
1099
- /**
1100
- * Omit specific fields from the Campaign
1101
- */
1102
729
  omit?: Prisma.CampaignOmit<ExtArgs> | null;
1103
- /**
1104
- * Choose, which related nodes to fetch as well
1105
- */
1106
730
  include?: Prisma.CampaignInclude<ExtArgs> | null;
1107
- /**
1108
- * Filter, which Campaign to fetch.
1109
- */
1110
731
  where: Prisma.CampaignWhereUniqueInput;
1111
732
  };
1112
- /**
1113
- * Campaign findFirst
1114
- */
1115
733
  export type CampaignFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1116
- /**
1117
- * Select specific fields to fetch from the Campaign
1118
- */
1119
734
  select?: Prisma.CampaignSelect<ExtArgs> | null;
1120
- /**
1121
- * Omit specific fields from the Campaign
1122
- */
1123
735
  omit?: Prisma.CampaignOmit<ExtArgs> | null;
1124
- /**
1125
- * Choose, which related nodes to fetch as well
1126
- */
1127
736
  include?: Prisma.CampaignInclude<ExtArgs> | null;
1128
- /**
1129
- * Filter, which Campaign to fetch.
1130
- */
1131
737
  where?: Prisma.CampaignWhereInput;
1132
- /**
1133
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1134
- *
1135
- * Determine the order of Campaigns to fetch.
1136
- */
1137
738
  orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[];
1138
- /**
1139
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1140
- *
1141
- * Sets the position for searching for Campaigns.
1142
- */
1143
739
  cursor?: Prisma.CampaignWhereUniqueInput;
1144
- /**
1145
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1146
- *
1147
- * Take `±n` Campaigns from the position of the cursor.
1148
- */
1149
740
  take?: number;
1150
- /**
1151
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1152
- *
1153
- * Skip the first `n` Campaigns.
1154
- */
1155
741
  skip?: number;
1156
- /**
1157
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1158
- *
1159
- * Filter by unique combinations of Campaigns.
1160
- */
1161
742
  distinct?: Prisma.CampaignScalarFieldEnum | Prisma.CampaignScalarFieldEnum[];
1162
743
  };
1163
- /**
1164
- * Campaign findFirstOrThrow
1165
- */
1166
744
  export type CampaignFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1167
- /**
1168
- * Select specific fields to fetch from the Campaign
1169
- */
1170
745
  select?: Prisma.CampaignSelect<ExtArgs> | null;
1171
- /**
1172
- * Omit specific fields from the Campaign
1173
- */
1174
746
  omit?: Prisma.CampaignOmit<ExtArgs> | null;
1175
- /**
1176
- * Choose, which related nodes to fetch as well
1177
- */
1178
747
  include?: Prisma.CampaignInclude<ExtArgs> | null;
1179
- /**
1180
- * Filter, which Campaign to fetch.
1181
- */
1182
748
  where?: Prisma.CampaignWhereInput;
1183
- /**
1184
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1185
- *
1186
- * Determine the order of Campaigns to fetch.
1187
- */
1188
749
  orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[];
1189
- /**
1190
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1191
- *
1192
- * Sets the position for searching for Campaigns.
1193
- */
1194
750
  cursor?: Prisma.CampaignWhereUniqueInput;
1195
- /**
1196
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1197
- *
1198
- * Take `±n` Campaigns from the position of the cursor.
1199
- */
1200
751
  take?: number;
1201
- /**
1202
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1203
- *
1204
- * Skip the first `n` Campaigns.
1205
- */
1206
752
  skip?: number;
1207
- /**
1208
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1209
- *
1210
- * Filter by unique combinations of Campaigns.
1211
- */
1212
753
  distinct?: Prisma.CampaignScalarFieldEnum | Prisma.CampaignScalarFieldEnum[];
1213
754
  };
1214
- /**
1215
- * Campaign findMany
1216
- */
1217
755
  export type CampaignFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1218
- /**
1219
- * Select specific fields to fetch from the Campaign
1220
- */
1221
756
  select?: Prisma.CampaignSelect<ExtArgs> | null;
1222
- /**
1223
- * Omit specific fields from the Campaign
1224
- */
1225
757
  omit?: Prisma.CampaignOmit<ExtArgs> | null;
1226
- /**
1227
- * Choose, which related nodes to fetch as well
1228
- */
1229
758
  include?: Prisma.CampaignInclude<ExtArgs> | null;
1230
- /**
1231
- * Filter, which Campaigns to fetch.
1232
- */
1233
759
  where?: Prisma.CampaignWhereInput;
1234
- /**
1235
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1236
- *
1237
- * Determine the order of Campaigns to fetch.
1238
- */
1239
760
  orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[];
1240
- /**
1241
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1242
- *
1243
- * Sets the position for listing Campaigns.
1244
- */
1245
761
  cursor?: Prisma.CampaignWhereUniqueInput;
1246
- /**
1247
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1248
- *
1249
- * Take `±n` Campaigns from the position of the cursor.
1250
- */
1251
762
  take?: number;
1252
- /**
1253
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1254
- *
1255
- * Skip the first `n` Campaigns.
1256
- */
1257
763
  skip?: number;
1258
764
  distinct?: Prisma.CampaignScalarFieldEnum | Prisma.CampaignScalarFieldEnum[];
1259
765
  };
1260
- /**
1261
- * Campaign create
1262
- */
1263
766
  export type CampaignCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1264
- /**
1265
- * Select specific fields to fetch from the Campaign
1266
- */
1267
767
  select?: Prisma.CampaignSelect<ExtArgs> | null;
1268
- /**
1269
- * Omit specific fields from the Campaign
1270
- */
1271
768
  omit?: Prisma.CampaignOmit<ExtArgs> | null;
1272
- /**
1273
- * Choose, which related nodes to fetch as well
1274
- */
1275
769
  include?: Prisma.CampaignInclude<ExtArgs> | null;
1276
- /**
1277
- * The data needed to create a Campaign.
1278
- */
1279
770
  data: Prisma.XOR<Prisma.CampaignCreateInput, Prisma.CampaignUncheckedCreateInput>;
1280
771
  };
1281
- /**
1282
- * Campaign createMany
1283
- */
1284
772
  export type CampaignCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1285
- /**
1286
- * The data used to create many Campaigns.
1287
- */
1288
773
  data: Prisma.CampaignCreateManyInput | Prisma.CampaignCreateManyInput[];
1289
774
  skipDuplicates?: boolean;
1290
775
  };
1291
- /**
1292
- * Campaign createManyAndReturn
1293
- */
1294
776
  export type CampaignCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1295
- /**
1296
- * Select specific fields to fetch from the Campaign
1297
- */
1298
777
  select?: Prisma.CampaignSelectCreateManyAndReturn<ExtArgs> | null;
1299
- /**
1300
- * Omit specific fields from the Campaign
1301
- */
1302
778
  omit?: Prisma.CampaignOmit<ExtArgs> | null;
1303
- /**
1304
- * The data used to create many Campaigns.
1305
- */
1306
779
  data: Prisma.CampaignCreateManyInput | Prisma.CampaignCreateManyInput[];
1307
780
  skipDuplicates?: boolean;
1308
- /**
1309
- * Choose, which related nodes to fetch as well
1310
- */
1311
781
  include?: Prisma.CampaignIncludeCreateManyAndReturn<ExtArgs> | null;
1312
782
  };
1313
- /**
1314
- * Campaign update
1315
- */
1316
783
  export type CampaignUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1317
- /**
1318
- * Select specific fields to fetch from the Campaign
1319
- */
1320
784
  select?: Prisma.CampaignSelect<ExtArgs> | null;
1321
- /**
1322
- * Omit specific fields from the Campaign
1323
- */
1324
785
  omit?: Prisma.CampaignOmit<ExtArgs> | null;
1325
- /**
1326
- * Choose, which related nodes to fetch as well
1327
- */
1328
786
  include?: Prisma.CampaignInclude<ExtArgs> | null;
1329
- /**
1330
- * The data needed to update a Campaign.
1331
- */
1332
787
  data: Prisma.XOR<Prisma.CampaignUpdateInput, Prisma.CampaignUncheckedUpdateInput>;
1333
- /**
1334
- * Choose, which Campaign to update.
1335
- */
1336
788
  where: Prisma.CampaignWhereUniqueInput;
1337
789
  };
1338
- /**
1339
- * Campaign updateMany
1340
- */
1341
790
  export type CampaignUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1342
- /**
1343
- * The data used to update Campaigns.
1344
- */
1345
791
  data: Prisma.XOR<Prisma.CampaignUpdateManyMutationInput, Prisma.CampaignUncheckedUpdateManyInput>;
1346
- /**
1347
- * Filter which Campaigns to update
1348
- */
1349
792
  where?: Prisma.CampaignWhereInput;
1350
- /**
1351
- * Limit how many Campaigns to update.
1352
- */
1353
793
  limit?: number;
1354
794
  };
1355
- /**
1356
- * Campaign updateManyAndReturn
1357
- */
1358
795
  export type CampaignUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1359
- /**
1360
- * Select specific fields to fetch from the Campaign
1361
- */
1362
796
  select?: Prisma.CampaignSelectUpdateManyAndReturn<ExtArgs> | null;
1363
- /**
1364
- * Omit specific fields from the Campaign
1365
- */
1366
797
  omit?: Prisma.CampaignOmit<ExtArgs> | null;
1367
- /**
1368
- * The data used to update Campaigns.
1369
- */
1370
798
  data: Prisma.XOR<Prisma.CampaignUpdateManyMutationInput, Prisma.CampaignUncheckedUpdateManyInput>;
1371
- /**
1372
- * Filter which Campaigns to update
1373
- */
1374
799
  where?: Prisma.CampaignWhereInput;
1375
- /**
1376
- * Limit how many Campaigns to update.
1377
- */
1378
800
  limit?: number;
1379
- /**
1380
- * Choose, which related nodes to fetch as well
1381
- */
1382
801
  include?: Prisma.CampaignIncludeUpdateManyAndReturn<ExtArgs> | null;
1383
802
  };
1384
- /**
1385
- * Campaign upsert
1386
- */
1387
803
  export type CampaignUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1388
- /**
1389
- * Select specific fields to fetch from the Campaign
1390
- */
1391
804
  select?: Prisma.CampaignSelect<ExtArgs> | null;
1392
- /**
1393
- * Omit specific fields from the Campaign
1394
- */
1395
805
  omit?: Prisma.CampaignOmit<ExtArgs> | null;
1396
- /**
1397
- * Choose, which related nodes to fetch as well
1398
- */
1399
806
  include?: Prisma.CampaignInclude<ExtArgs> | null;
1400
- /**
1401
- * The filter to search for the Campaign to update in case it exists.
1402
- */
1403
807
  where: Prisma.CampaignWhereUniqueInput;
1404
- /**
1405
- * In case the Campaign found by the `where` argument doesn't exist, create a new Campaign with this data.
1406
- */
1407
808
  create: Prisma.XOR<Prisma.CampaignCreateInput, Prisma.CampaignUncheckedCreateInput>;
1408
- /**
1409
- * In case the Campaign was found with the provided `where` argument, update it with this data.
1410
- */
1411
809
  update: Prisma.XOR<Prisma.CampaignUpdateInput, Prisma.CampaignUncheckedUpdateInput>;
1412
810
  };
1413
- /**
1414
- * Campaign delete
1415
- */
1416
811
  export type CampaignDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1417
- /**
1418
- * Select specific fields to fetch from the Campaign
1419
- */
1420
812
  select?: Prisma.CampaignSelect<ExtArgs> | null;
1421
- /**
1422
- * Omit specific fields from the Campaign
1423
- */
1424
813
  omit?: Prisma.CampaignOmit<ExtArgs> | null;
1425
- /**
1426
- * Choose, which related nodes to fetch as well
1427
- */
1428
814
  include?: Prisma.CampaignInclude<ExtArgs> | null;
1429
- /**
1430
- * Filter which Campaign to delete.
1431
- */
1432
815
  where: Prisma.CampaignWhereUniqueInput;
1433
816
  };
1434
- /**
1435
- * Campaign deleteMany
1436
- */
1437
817
  export type CampaignDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1438
- /**
1439
- * Filter which Campaigns to delete
1440
- */
1441
818
  where?: Prisma.CampaignWhereInput;
1442
- /**
1443
- * Limit how many Campaigns to delete.
1444
- */
1445
819
  limit?: number;
1446
820
  };
1447
- /**
1448
- * Campaign without action
1449
- */
1450
821
  export type CampaignDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1451
- /**
1452
- * Select specific fields to fetch from the Campaign
1453
- */
1454
822
  select?: Prisma.CampaignSelect<ExtArgs> | null;
1455
- /**
1456
- * Omit specific fields from the Campaign
1457
- */
1458
823
  omit?: Prisma.CampaignOmit<ExtArgs> | null;
1459
- /**
1460
- * Choose, which related nodes to fetch as well
1461
- */
1462
824
  include?: Prisma.CampaignInclude<ExtArgs> | null;
1463
825
  };
1464
826
  export {};