@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,9 +1,5 @@
1
1
  import type * as runtime from "@prisma/client/runtime/client";
2
2
  import type * as Prisma from "../internal/prismaNamespace";
3
- /**
4
- * Model LegalEntity
5
- *
6
- */
7
3
  export type LegalEntityModel = runtime.Types.Result.DefaultSelection<Prisma.$LegalEntityPayload>;
8
4
  export type AggregateLegalEntity = {
9
5
  _count: LegalEntityCountAggregateOutputType | null;
@@ -97,51 +93,13 @@ export type LegalEntityCountAggregateInputType = {
97
93
  _all?: true;
98
94
  };
99
95
  export type LegalEntityAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
100
- /**
101
- * Filter which LegalEntity to aggregate.
102
- */
103
96
  where?: Prisma.LegalEntityWhereInput;
104
- /**
105
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
106
- *
107
- * Determine the order of LegalEntities to fetch.
108
- */
109
97
  orderBy?: Prisma.LegalEntityOrderByWithRelationInput | Prisma.LegalEntityOrderByWithRelationInput[];
110
- /**
111
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
112
- *
113
- * Sets the start position
114
- */
115
98
  cursor?: Prisma.LegalEntityWhereUniqueInput;
116
- /**
117
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
118
- *
119
- * Take `±n` LegalEntities from the position of the cursor.
120
- */
121
99
  take?: number;
122
- /**
123
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
124
- *
125
- * Skip the first `n` LegalEntities.
126
- */
127
100
  skip?: number;
128
- /**
129
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
130
- *
131
- * Count returned LegalEntities
132
- **/
133
101
  _count?: true | LegalEntityCountAggregateInputType;
134
- /**
135
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
136
- *
137
- * Select which fields to find the minimum value
138
- **/
139
102
  _min?: LegalEntityMinAggregateInputType;
140
- /**
141
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
142
- *
143
- * Select which fields to find the maximum value
144
- **/
145
103
  _max?: LegalEntityMaxAggregateInputType;
146
104
  };
147
105
  export type GetLegalEntityAggregateType<T extends LegalEntityAggregateArgs> = {
@@ -662,27 +620,15 @@ export type LegalEntityUncheckedUpdateManyWithoutAddressInput = {
662
620
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
663
621
  deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
664
622
  };
665
- /**
666
- * Count Type LegalEntityCountOutputType
667
- */
668
623
  export type LegalEntityCountOutputType = {
669
624
  organizations: number;
670
625
  };
671
626
  export type LegalEntityCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
672
627
  organizations?: boolean | LegalEntityCountOutputTypeCountOrganizationsArgs;
673
628
  };
674
- /**
675
- * LegalEntityCountOutputType without action
676
- */
677
629
  export type LegalEntityCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
678
- /**
679
- * Select specific fields to fetch from the LegalEntityCountOutputType
680
- */
681
630
  select?: Prisma.LegalEntityCountOutputTypeSelect<ExtArgs> | null;
682
631
  };
683
- /**
684
- * LegalEntityCountOutputType without action
685
- */
686
632
  export type LegalEntityCountOutputTypeCountOrganizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
687
633
  where?: Prisma.OrganizationWhereInput;
688
634
  };
@@ -792,290 +738,22 @@ export interface LegalEntityDelegate<ExtArgs extends runtime.Types.Extensions.In
792
738
  name: 'LegalEntity';
793
739
  };
794
740
  };
795
- /**
796
- * Find zero or one LegalEntity that matches the filter.
797
- * @param {LegalEntityFindUniqueArgs} args - Arguments to find a LegalEntity
798
- * @example
799
- * // Get one LegalEntity
800
- * const legalEntity = await prisma.legalEntity.findUnique({
801
- * where: {
802
- * // ... provide filter here
803
- * }
804
- * })
805
- */
806
741
  findUnique<T extends LegalEntityFindUniqueArgs>(args: Prisma.SelectSubset<T, LegalEntityFindUniqueArgs<ExtArgs>>): Prisma.Prisma__LegalEntityClient<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
807
- /**
808
- * Find one LegalEntity that matches the filter or throw an error with `error.code='P2025'`
809
- * if no matches were found.
810
- * @param {LegalEntityFindUniqueOrThrowArgs} args - Arguments to find a LegalEntity
811
- * @example
812
- * // Get one LegalEntity
813
- * const legalEntity = await prisma.legalEntity.findUniqueOrThrow({
814
- * where: {
815
- * // ... provide filter here
816
- * }
817
- * })
818
- */
819
742
  findUniqueOrThrow<T extends LegalEntityFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, LegalEntityFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__LegalEntityClient<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
820
- /**
821
- * Find the first LegalEntity that matches the filter.
822
- * Note, that providing `undefined` is treated as the value not being there.
823
- * Read more here: https://pris.ly/d/null-undefined
824
- * @param {LegalEntityFindFirstArgs} args - Arguments to find a LegalEntity
825
- * @example
826
- * // Get one LegalEntity
827
- * const legalEntity = await prisma.legalEntity.findFirst({
828
- * where: {
829
- * // ... provide filter here
830
- * }
831
- * })
832
- */
833
743
  findFirst<T extends LegalEntityFindFirstArgs>(args?: Prisma.SelectSubset<T, LegalEntityFindFirstArgs<ExtArgs>>): Prisma.Prisma__LegalEntityClient<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
834
- /**
835
- * Find the first LegalEntity that matches the filter or
836
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
837
- * Note, that providing `undefined` is treated as the value not being there.
838
- * Read more here: https://pris.ly/d/null-undefined
839
- * @param {LegalEntityFindFirstOrThrowArgs} args - Arguments to find a LegalEntity
840
- * @example
841
- * // Get one LegalEntity
842
- * const legalEntity = await prisma.legalEntity.findFirstOrThrow({
843
- * where: {
844
- * // ... provide filter here
845
- * }
846
- * })
847
- */
848
744
  findFirstOrThrow<T extends LegalEntityFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, LegalEntityFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__LegalEntityClient<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
849
- /**
850
- * Find zero or more LegalEntities that matches the filter.
851
- * Note, that providing `undefined` is treated as the value not being there.
852
- * Read more here: https://pris.ly/d/null-undefined
853
- * @param {LegalEntityFindManyArgs} args - Arguments to filter and select certain fields only.
854
- * @example
855
- * // Get all LegalEntities
856
- * const legalEntities = await prisma.legalEntity.findMany()
857
- *
858
- * // Get first 10 LegalEntities
859
- * const legalEntities = await prisma.legalEntity.findMany({ take: 10 })
860
- *
861
- * // Only select the `id`
862
- * const legalEntityWithIdOnly = await prisma.legalEntity.findMany({ select: { id: true } })
863
- *
864
- */
865
745
  findMany<T extends LegalEntityFindManyArgs>(args?: Prisma.SelectSubset<T, LegalEntityFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
866
- /**
867
- * Create a LegalEntity.
868
- * @param {LegalEntityCreateArgs} args - Arguments to create a LegalEntity.
869
- * @example
870
- * // Create one LegalEntity
871
- * const LegalEntity = await prisma.legalEntity.create({
872
- * data: {
873
- * // ... data to create a LegalEntity
874
- * }
875
- * })
876
- *
877
- */
878
746
  create<T extends LegalEntityCreateArgs>(args: Prisma.SelectSubset<T, LegalEntityCreateArgs<ExtArgs>>): Prisma.Prisma__LegalEntityClient<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
879
- /**
880
- * Create many LegalEntities.
881
- * @param {LegalEntityCreateManyArgs} args - Arguments to create many LegalEntities.
882
- * @example
883
- * // Create many LegalEntities
884
- * const legalEntity = await prisma.legalEntity.createMany({
885
- * data: [
886
- * // ... provide data here
887
- * ]
888
- * })
889
- *
890
- */
891
747
  createMany<T extends LegalEntityCreateManyArgs>(args?: Prisma.SelectSubset<T, LegalEntityCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
892
- /**
893
- * Create many LegalEntities and returns the data saved in the database.
894
- * @param {LegalEntityCreateManyAndReturnArgs} args - Arguments to create many LegalEntities.
895
- * @example
896
- * // Create many LegalEntities
897
- * const legalEntity = await prisma.legalEntity.createManyAndReturn({
898
- * data: [
899
- * // ... provide data here
900
- * ]
901
- * })
902
- *
903
- * // Create many LegalEntities and only return the `id`
904
- * const legalEntityWithIdOnly = await prisma.legalEntity.createManyAndReturn({
905
- * select: { id: true },
906
- * data: [
907
- * // ... provide data here
908
- * ]
909
- * })
910
- * Note, that providing `undefined` is treated as the value not being there.
911
- * Read more here: https://pris.ly/d/null-undefined
912
- *
913
- */
914
748
  createManyAndReturn<T extends LegalEntityCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LegalEntityCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
915
- /**
916
- * Delete a LegalEntity.
917
- * @param {LegalEntityDeleteArgs} args - Arguments to delete one LegalEntity.
918
- * @example
919
- * // Delete one LegalEntity
920
- * const LegalEntity = await prisma.legalEntity.delete({
921
- * where: {
922
- * // ... filter to delete one LegalEntity
923
- * }
924
- * })
925
- *
926
- */
927
749
  delete<T extends LegalEntityDeleteArgs>(args: Prisma.SelectSubset<T, LegalEntityDeleteArgs<ExtArgs>>): Prisma.Prisma__LegalEntityClient<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
928
- /**
929
- * Update one LegalEntity.
930
- * @param {LegalEntityUpdateArgs} args - Arguments to update one LegalEntity.
931
- * @example
932
- * // Update one LegalEntity
933
- * const legalEntity = await prisma.legalEntity.update({
934
- * where: {
935
- * // ... provide filter here
936
- * },
937
- * data: {
938
- * // ... provide data here
939
- * }
940
- * })
941
- *
942
- */
943
750
  update<T extends LegalEntityUpdateArgs>(args: Prisma.SelectSubset<T, LegalEntityUpdateArgs<ExtArgs>>): Prisma.Prisma__LegalEntityClient<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
944
- /**
945
- * Delete zero or more LegalEntities.
946
- * @param {LegalEntityDeleteManyArgs} args - Arguments to filter LegalEntities to delete.
947
- * @example
948
- * // Delete a few LegalEntities
949
- * const { count } = await prisma.legalEntity.deleteMany({
950
- * where: {
951
- * // ... provide filter here
952
- * }
953
- * })
954
- *
955
- */
956
751
  deleteMany<T extends LegalEntityDeleteManyArgs>(args?: Prisma.SelectSubset<T, LegalEntityDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
957
- /**
958
- * Update zero or more LegalEntities.
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 {LegalEntityUpdateManyArgs} args - Arguments to update one or more rows.
962
- * @example
963
- * // Update many LegalEntities
964
- * const legalEntity = await prisma.legalEntity.updateMany({
965
- * where: {
966
- * // ... provide filter here
967
- * },
968
- * data: {
969
- * // ... provide data here
970
- * }
971
- * })
972
- *
973
- */
974
752
  updateMany<T extends LegalEntityUpdateManyArgs>(args: Prisma.SelectSubset<T, LegalEntityUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
975
- /**
976
- * Update zero or more LegalEntities and returns the data updated in the database.
977
- * @param {LegalEntityUpdateManyAndReturnArgs} args - Arguments to update many LegalEntities.
978
- * @example
979
- * // Update many LegalEntities
980
- * const legalEntity = await prisma.legalEntity.updateManyAndReturn({
981
- * where: {
982
- * // ... provide filter here
983
- * },
984
- * data: [
985
- * // ... provide data here
986
- * ]
987
- * })
988
- *
989
- * // Update zero or more LegalEntities and only return the `id`
990
- * const legalEntityWithIdOnly = await prisma.legalEntity.updateManyAndReturn({
991
- * select: { id: true },
992
- * where: {
993
- * // ... provide filter here
994
- * },
995
- * data: [
996
- * // ... provide data here
997
- * ]
998
- * })
999
- * Note, that providing `undefined` is treated as the value not being there.
1000
- * Read more here: https://pris.ly/d/null-undefined
1001
- *
1002
- */
1003
753
  updateManyAndReturn<T extends LegalEntityUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LegalEntityUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1004
- /**
1005
- * Create or update one LegalEntity.
1006
- * @param {LegalEntityUpsertArgs} args - Arguments to update or create a LegalEntity.
1007
- * @example
1008
- * // Update or create a LegalEntity
1009
- * const legalEntity = await prisma.legalEntity.upsert({
1010
- * create: {
1011
- * // ... data to create a LegalEntity
1012
- * },
1013
- * update: {
1014
- * // ... in case it already exists, update
1015
- * },
1016
- * where: {
1017
- * // ... the filter for the LegalEntity we want to update
1018
- * }
1019
- * })
1020
- */
1021
754
  upsert<T extends LegalEntityUpsertArgs>(args: Prisma.SelectSubset<T, LegalEntityUpsertArgs<ExtArgs>>): Prisma.Prisma__LegalEntityClient<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1022
- /**
1023
- * Count the number of LegalEntities.
1024
- * Note, that providing `undefined` is treated as the value not being there.
1025
- * Read more here: https://pris.ly/d/null-undefined
1026
- * @param {LegalEntityCountArgs} args - Arguments to filter LegalEntities to count.
1027
- * @example
1028
- * // Count the number of LegalEntities
1029
- * const count = await prisma.legalEntity.count({
1030
- * where: {
1031
- * // ... the filter for the LegalEntities we want to count
1032
- * }
1033
- * })
1034
- **/
1035
755
  count<T extends LegalEntityCountArgs>(args?: Prisma.Subset<T, LegalEntityCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], LegalEntityCountAggregateOutputType> : number>;
1036
- /**
1037
- * Allows you to perform aggregations operations on a LegalEntity.
1038
- * Note, that providing `undefined` is treated as the value not being there.
1039
- * Read more here: https://pris.ly/d/null-undefined
1040
- * @param {LegalEntityAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1041
- * @example
1042
- * // Ordered by age ascending
1043
- * // Where email contains prisma.io
1044
- * // Limited to the 10 users
1045
- * const aggregations = await prisma.user.aggregate({
1046
- * _avg: {
1047
- * age: true,
1048
- * },
1049
- * where: {
1050
- * email: {
1051
- * contains: "prisma.io",
1052
- * },
1053
- * },
1054
- * orderBy: {
1055
- * age: "asc",
1056
- * },
1057
- * take: 10,
1058
- * })
1059
- **/
1060
756
  aggregate<T extends LegalEntityAggregateArgs>(args: Prisma.Subset<T, LegalEntityAggregateArgs>): Prisma.PrismaPromise<GetLegalEntityAggregateType<T>>;
1061
- /**
1062
- * Group by LegalEntity.
1063
- * Note, that providing `undefined` is treated as the value not being there.
1064
- * Read more here: https://pris.ly/d/null-undefined
1065
- * @param {LegalEntityGroupByArgs} args - Group by arguments.
1066
- * @example
1067
- * // Group by city, order by createdAt, get count
1068
- * const result = await prisma.user.groupBy({
1069
- * by: ['city', 'createdAt'],
1070
- * orderBy: {
1071
- * createdAt: true
1072
- * },
1073
- * _count: {
1074
- * _all: true
1075
- * },
1076
- * })
1077
- *
1078
- **/
1079
757
  groupBy<T extends LegalEntityGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1080
758
  orderBy: LegalEntityGroupByArgs['orderBy'];
1081
759
  } : {
@@ -1094,45 +772,16 @@ export interface LegalEntityDelegate<ExtArgs extends runtime.Types.Extensions.In
1094
772
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1095
773
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1096
774
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, LegalEntityGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLegalEntityGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1097
- /**
1098
- * Fields of the LegalEntity model
1099
- */
1100
775
  readonly fields: LegalEntityFieldRefs;
1101
776
  }
1102
- /**
1103
- * The delegate class that acts as a "Promise-like" for LegalEntity.
1104
- * Why is this prefixed with `Prisma__`?
1105
- * Because we want to prevent naming conflicts as mentioned in
1106
- * https://github.com/prisma/prisma-client-js/issues/707
1107
- */
1108
777
  export interface Prisma__LegalEntityClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1109
778
  readonly [Symbol.toStringTag]: "PrismaPromise";
1110
779
  address<T extends Prisma.AddressDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AddressDefaultArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1111
780
  organizations<T extends Prisma.LegalEntity$organizationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LegalEntity$organizationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1112
- /**
1113
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1114
- * @param onfulfilled The callback to execute when the Promise is resolved.
1115
- * @param onrejected The callback to execute when the Promise is rejected.
1116
- * @returns A Promise for the completion of which ever callback is executed.
1117
- */
1118
781
  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>;
1119
- /**
1120
- * Attaches a callback for only the rejection of the Promise.
1121
- * @param onrejected The callback to execute when the Promise is rejected.
1122
- * @returns A Promise for the completion of the callback.
1123
- */
1124
782
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1125
- /**
1126
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1127
- * resolved value cannot be modified from the callback.
1128
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1129
- * @returns A Promise for the completion of the callback.
1130
- */
1131
783
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1132
784
  }
1133
- /**
1134
- * Fields of the LegalEntity model
1135
- */
1136
785
  export interface LegalEntityFieldRefs {
1137
786
  readonly id: Prisma.FieldRef<"LegalEntity", 'String'>;
1138
787
  readonly name: Prisma.FieldRef<"LegalEntity", 'String'>;
@@ -1147,398 +796,109 @@ export interface LegalEntityFieldRefs {
1147
796
  readonly deletedAt: Prisma.FieldRef<"LegalEntity", 'DateTime'>;
1148
797
  readonly deletedBy: Prisma.FieldRef<"LegalEntity", 'String'>;
1149
798
  }
1150
- /**
1151
- * LegalEntity findUnique
1152
- */
1153
799
  export type LegalEntityFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1154
- /**
1155
- * Select specific fields to fetch from the LegalEntity
1156
- */
1157
800
  select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1158
- /**
1159
- * Omit specific fields from the LegalEntity
1160
- */
1161
801
  omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1162
- /**
1163
- * Choose, which related nodes to fetch as well
1164
- */
1165
802
  include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1166
- /**
1167
- * Filter, which LegalEntity to fetch.
1168
- */
1169
803
  where: Prisma.LegalEntityWhereUniqueInput;
1170
804
  };
1171
- /**
1172
- * LegalEntity findUniqueOrThrow
1173
- */
1174
805
  export type LegalEntityFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1175
- /**
1176
- * Select specific fields to fetch from the LegalEntity
1177
- */
1178
806
  select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1179
- /**
1180
- * Omit specific fields from the LegalEntity
1181
- */
1182
807
  omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1183
- /**
1184
- * Choose, which related nodes to fetch as well
1185
- */
1186
808
  include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1187
- /**
1188
- * Filter, which LegalEntity to fetch.
1189
- */
1190
809
  where: Prisma.LegalEntityWhereUniqueInput;
1191
810
  };
1192
- /**
1193
- * LegalEntity findFirst
1194
- */
1195
811
  export type LegalEntityFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1196
- /**
1197
- * Select specific fields to fetch from the LegalEntity
1198
- */
1199
812
  select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1200
- /**
1201
- * Omit specific fields from the LegalEntity
1202
- */
1203
813
  omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1204
- /**
1205
- * Choose, which related nodes to fetch as well
1206
- */
1207
814
  include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1208
- /**
1209
- * Filter, which LegalEntity to fetch.
1210
- */
1211
815
  where?: Prisma.LegalEntityWhereInput;
1212
- /**
1213
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1214
- *
1215
- * Determine the order of LegalEntities to fetch.
1216
- */
1217
816
  orderBy?: Prisma.LegalEntityOrderByWithRelationInput | Prisma.LegalEntityOrderByWithRelationInput[];
1218
- /**
1219
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1220
- *
1221
- * Sets the position for searching for LegalEntities.
1222
- */
1223
817
  cursor?: Prisma.LegalEntityWhereUniqueInput;
1224
- /**
1225
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1226
- *
1227
- * Take `±n` LegalEntities from the position of the cursor.
1228
- */
1229
818
  take?: number;
1230
- /**
1231
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1232
- *
1233
- * Skip the first `n` LegalEntities.
1234
- */
1235
819
  skip?: number;
1236
- /**
1237
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1238
- *
1239
- * Filter by unique combinations of LegalEntities.
1240
- */
1241
820
  distinct?: Prisma.LegalEntityScalarFieldEnum | Prisma.LegalEntityScalarFieldEnum[];
1242
821
  };
1243
- /**
1244
- * LegalEntity findFirstOrThrow
1245
- */
1246
822
  export type LegalEntityFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1247
- /**
1248
- * Select specific fields to fetch from the LegalEntity
1249
- */
1250
823
  select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1251
- /**
1252
- * Omit specific fields from the LegalEntity
1253
- */
1254
824
  omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1255
- /**
1256
- * Choose, which related nodes to fetch as well
1257
- */
1258
825
  include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1259
- /**
1260
- * Filter, which LegalEntity to fetch.
1261
- */
1262
826
  where?: Prisma.LegalEntityWhereInput;
1263
- /**
1264
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1265
- *
1266
- * Determine the order of LegalEntities to fetch.
1267
- */
1268
827
  orderBy?: Prisma.LegalEntityOrderByWithRelationInput | Prisma.LegalEntityOrderByWithRelationInput[];
1269
- /**
1270
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1271
- *
1272
- * Sets the position for searching for LegalEntities.
1273
- */
1274
828
  cursor?: Prisma.LegalEntityWhereUniqueInput;
1275
- /**
1276
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1277
- *
1278
- * Take `±n` LegalEntities from the position of the cursor.
1279
- */
1280
829
  take?: number;
1281
- /**
1282
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1283
- *
1284
- * Skip the first `n` LegalEntities.
1285
- */
1286
830
  skip?: number;
1287
- /**
1288
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1289
- *
1290
- * Filter by unique combinations of LegalEntities.
1291
- */
1292
831
  distinct?: Prisma.LegalEntityScalarFieldEnum | Prisma.LegalEntityScalarFieldEnum[];
1293
832
  };
1294
- /**
1295
- * LegalEntity findMany
1296
- */
1297
833
  export type LegalEntityFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1298
- /**
1299
- * Select specific fields to fetch from the LegalEntity
1300
- */
1301
834
  select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1302
- /**
1303
- * Omit specific fields from the LegalEntity
1304
- */
1305
835
  omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1306
- /**
1307
- * Choose, which related nodes to fetch as well
1308
- */
1309
836
  include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1310
- /**
1311
- * Filter, which LegalEntities to fetch.
1312
- */
1313
837
  where?: Prisma.LegalEntityWhereInput;
1314
- /**
1315
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1316
- *
1317
- * Determine the order of LegalEntities to fetch.
1318
- */
1319
838
  orderBy?: Prisma.LegalEntityOrderByWithRelationInput | Prisma.LegalEntityOrderByWithRelationInput[];
1320
- /**
1321
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1322
- *
1323
- * Sets the position for listing LegalEntities.
1324
- */
1325
839
  cursor?: Prisma.LegalEntityWhereUniqueInput;
1326
- /**
1327
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1328
- *
1329
- * Take `±n` LegalEntities from the position of the cursor.
1330
- */
1331
840
  take?: number;
1332
- /**
1333
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1334
- *
1335
- * Skip the first `n` LegalEntities.
1336
- */
1337
841
  skip?: number;
1338
842
  distinct?: Prisma.LegalEntityScalarFieldEnum | Prisma.LegalEntityScalarFieldEnum[];
1339
843
  };
1340
- /**
1341
- * LegalEntity create
1342
- */
1343
844
  export type LegalEntityCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1344
- /**
1345
- * Select specific fields to fetch from the LegalEntity
1346
- */
1347
845
  select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1348
- /**
1349
- * Omit specific fields from the LegalEntity
1350
- */
1351
846
  omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1352
- /**
1353
- * Choose, which related nodes to fetch as well
1354
- */
1355
847
  include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1356
- /**
1357
- * The data needed to create a LegalEntity.
1358
- */
1359
848
  data: Prisma.XOR<Prisma.LegalEntityCreateInput, Prisma.LegalEntityUncheckedCreateInput>;
1360
849
  };
1361
- /**
1362
- * LegalEntity createMany
1363
- */
1364
850
  export type LegalEntityCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1365
- /**
1366
- * The data used to create many LegalEntities.
1367
- */
1368
851
  data: Prisma.LegalEntityCreateManyInput | Prisma.LegalEntityCreateManyInput[];
1369
852
  skipDuplicates?: boolean;
1370
853
  };
1371
- /**
1372
- * LegalEntity createManyAndReturn
1373
- */
1374
854
  export type LegalEntityCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1375
- /**
1376
- * Select specific fields to fetch from the LegalEntity
1377
- */
1378
855
  select?: Prisma.LegalEntitySelectCreateManyAndReturn<ExtArgs> | null;
1379
- /**
1380
- * Omit specific fields from the LegalEntity
1381
- */
1382
856
  omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1383
- /**
1384
- * The data used to create many LegalEntities.
1385
- */
1386
857
  data: Prisma.LegalEntityCreateManyInput | Prisma.LegalEntityCreateManyInput[];
1387
858
  skipDuplicates?: boolean;
1388
- /**
1389
- * Choose, which related nodes to fetch as well
1390
- */
1391
859
  include?: Prisma.LegalEntityIncludeCreateManyAndReturn<ExtArgs> | null;
1392
860
  };
1393
- /**
1394
- * LegalEntity update
1395
- */
1396
861
  export type LegalEntityUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1397
- /**
1398
- * Select specific fields to fetch from the LegalEntity
1399
- */
1400
862
  select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1401
- /**
1402
- * Omit specific fields from the LegalEntity
1403
- */
1404
863
  omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1405
- /**
1406
- * Choose, which related nodes to fetch as well
1407
- */
1408
864
  include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1409
- /**
1410
- * The data needed to update a LegalEntity.
1411
- */
1412
865
  data: Prisma.XOR<Prisma.LegalEntityUpdateInput, Prisma.LegalEntityUncheckedUpdateInput>;
1413
- /**
1414
- * Choose, which LegalEntity to update.
1415
- */
1416
866
  where: Prisma.LegalEntityWhereUniqueInput;
1417
867
  };
1418
- /**
1419
- * LegalEntity updateMany
1420
- */
1421
868
  export type LegalEntityUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1422
- /**
1423
- * The data used to update LegalEntities.
1424
- */
1425
869
  data: Prisma.XOR<Prisma.LegalEntityUpdateManyMutationInput, Prisma.LegalEntityUncheckedUpdateManyInput>;
1426
- /**
1427
- * Filter which LegalEntities to update
1428
- */
1429
870
  where?: Prisma.LegalEntityWhereInput;
1430
- /**
1431
- * Limit how many LegalEntities to update.
1432
- */
1433
871
  limit?: number;
1434
872
  };
1435
- /**
1436
- * LegalEntity updateManyAndReturn
1437
- */
1438
873
  export type LegalEntityUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1439
- /**
1440
- * Select specific fields to fetch from the LegalEntity
1441
- */
1442
874
  select?: Prisma.LegalEntitySelectUpdateManyAndReturn<ExtArgs> | null;
1443
- /**
1444
- * Omit specific fields from the LegalEntity
1445
- */
1446
875
  omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1447
- /**
1448
- * The data used to update LegalEntities.
1449
- */
1450
876
  data: Prisma.XOR<Prisma.LegalEntityUpdateManyMutationInput, Prisma.LegalEntityUncheckedUpdateManyInput>;
1451
- /**
1452
- * Filter which LegalEntities to update
1453
- */
1454
877
  where?: Prisma.LegalEntityWhereInput;
1455
- /**
1456
- * Limit how many LegalEntities to update.
1457
- */
1458
878
  limit?: number;
1459
- /**
1460
- * Choose, which related nodes to fetch as well
1461
- */
1462
879
  include?: Prisma.LegalEntityIncludeUpdateManyAndReturn<ExtArgs> | null;
1463
880
  };
1464
- /**
1465
- * LegalEntity upsert
1466
- */
1467
881
  export type LegalEntityUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1468
- /**
1469
- * Select specific fields to fetch from the LegalEntity
1470
- */
1471
882
  select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1472
- /**
1473
- * Omit specific fields from the LegalEntity
1474
- */
1475
883
  omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1476
- /**
1477
- * Choose, which related nodes to fetch as well
1478
- */
1479
884
  include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1480
- /**
1481
- * The filter to search for the LegalEntity to update in case it exists.
1482
- */
1483
885
  where: Prisma.LegalEntityWhereUniqueInput;
1484
- /**
1485
- * In case the LegalEntity found by the `where` argument doesn't exist, create a new LegalEntity with this data.
1486
- */
1487
886
  create: Prisma.XOR<Prisma.LegalEntityCreateInput, Prisma.LegalEntityUncheckedCreateInput>;
1488
- /**
1489
- * In case the LegalEntity was found with the provided `where` argument, update it with this data.
1490
- */
1491
887
  update: Prisma.XOR<Prisma.LegalEntityUpdateInput, Prisma.LegalEntityUncheckedUpdateInput>;
1492
888
  };
1493
- /**
1494
- * LegalEntity delete
1495
- */
1496
889
  export type LegalEntityDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1497
- /**
1498
- * Select specific fields to fetch from the LegalEntity
1499
- */
1500
890
  select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1501
- /**
1502
- * Omit specific fields from the LegalEntity
1503
- */
1504
891
  omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1505
- /**
1506
- * Choose, which related nodes to fetch as well
1507
- */
1508
892
  include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1509
- /**
1510
- * Filter which LegalEntity to delete.
1511
- */
1512
893
  where: Prisma.LegalEntityWhereUniqueInput;
1513
894
  };
1514
- /**
1515
- * LegalEntity deleteMany
1516
- */
1517
895
  export type LegalEntityDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1518
- /**
1519
- * Filter which LegalEntities to delete
1520
- */
1521
896
  where?: Prisma.LegalEntityWhereInput;
1522
- /**
1523
- * Limit how many LegalEntities to delete.
1524
- */
1525
897
  limit?: number;
1526
898
  };
1527
- /**
1528
- * LegalEntity.organizations
1529
- */
1530
899
  export type LegalEntity$organizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1531
- /**
1532
- * Select specific fields to fetch from the Organization
1533
- */
1534
900
  select?: Prisma.OrganizationSelect<ExtArgs> | null;
1535
- /**
1536
- * Omit specific fields from the Organization
1537
- */
1538
901
  omit?: Prisma.OrganizationOmit<ExtArgs> | null;
1539
- /**
1540
- * Choose, which related nodes to fetch as well
1541
- */
1542
902
  include?: Prisma.OrganizationInclude<ExtArgs> | null;
1543
903
  where?: Prisma.OrganizationWhereInput;
1544
904
  orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[];
@@ -1547,21 +907,9 @@ export type LegalEntity$organizationsArgs<ExtArgs extends runtime.Types.Extensio
1547
907
  skip?: number;
1548
908
  distinct?: Prisma.OrganizationScalarFieldEnum | Prisma.OrganizationScalarFieldEnum[];
1549
909
  };
1550
- /**
1551
- * LegalEntity without action
1552
- */
1553
910
  export type LegalEntityDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1554
- /**
1555
- * Select specific fields to fetch from the LegalEntity
1556
- */
1557
911
  select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1558
- /**
1559
- * Omit specific fields from the LegalEntity
1560
- */
1561
912
  omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1562
- /**
1563
- * Choose, which related nodes to fetch as well
1564
- */
1565
913
  include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1566
914
  };
1567
915
  export {};