@shophost/rest-api 0.1.0

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 (430) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +69 -0
  3. package/global.d.ts +1 -0
  4. package/package.json +53 -0
  5. package/schemas.d.ts +1 -0
  6. package/schemas.js +2 -0
  7. package/schemas.ts +1 -0
  8. package/src/contract.d.ts +3853 -0
  9. package/src/contract.js +6 -0
  10. package/src/contract.js.map +1 -0
  11. package/src/contracts/cart.contract.d.ts +536 -0
  12. package/src/contracts/cart.contract.js +29 -0
  13. package/src/contracts/cart.contract.js.map +1 -0
  14. package/src/contracts/customers.contract.d.ts +903 -0
  15. package/src/contracts/customers.contract.js +119 -0
  16. package/src/contracts/customers.contract.js.map +1 -0
  17. package/src/contracts/files.contract.d.ts +152 -0
  18. package/src/contracts/files.contract.js +29 -0
  19. package/src/contracts/files.contract.js.map +1 -0
  20. package/src/contracts/health.contract.d.ts +38 -0
  21. package/src/contracts/health.contract.js +25 -0
  22. package/src/contracts/health.contract.js.map +1 -0
  23. package/src/contracts/index.d.ts +15466 -0
  24. package/src/contracts/index.js +32 -0
  25. package/src/contracts/index.js.map +1 -0
  26. package/src/contracts/location.contract.d.ts +127 -0
  27. package/src/contracts/location.contract.js +40 -0
  28. package/src/contracts/location.contract.js.map +1 -0
  29. package/src/contracts/manufacturers.contract.d.ts +931 -0
  30. package/src/contracts/manufacturers.contract.js +85 -0
  31. package/src/contracts/manufacturers.contract.js.map +1 -0
  32. package/src/contracts/orders.contract.d.ts +3910 -0
  33. package/src/contracts/orders.contract.js +92 -0
  34. package/src/contracts/orders.contract.js.map +1 -0
  35. package/src/contracts/organizations.contract.d.ts +2234 -0
  36. package/src/contracts/organizations.contract.js +71 -0
  37. package/src/contracts/organizations.contract.js.map +1 -0
  38. package/src/contracts/payment.contract.d.ts +64 -0
  39. package/src/contracts/payment.contract.js +20 -0
  40. package/src/contracts/payment.contract.js.map +1 -0
  41. package/src/contracts/product-categories.contract.d.ts +1172 -0
  42. package/src/contracts/product-categories.contract.js +103 -0
  43. package/src/contracts/product-categories.contract.js.map +1 -0
  44. package/src/contracts/products.contract.d.ts +3976 -0
  45. package/src/contracts/products.contract.js +128 -0
  46. package/src/contracts/products.contract.js.map +1 -0
  47. package/src/contracts/reservation.contract.d.ts +675 -0
  48. package/src/contracts/reservation.contract.js +141 -0
  49. package/src/contracts/reservation.contract.js.map +1 -0
  50. package/src/contracts/shipping-methods.contract.d.ts +1276 -0
  51. package/src/contracts/shipping-methods.contract.js +118 -0
  52. package/src/contracts/shipping-methods.contract.js.map +1 -0
  53. package/src/contracts/shipping.contract.d.ts +319 -0
  54. package/src/contracts/shipping.contract.js +42 -0
  55. package/src/contracts/shipping.contract.js.map +1 -0
  56. package/src/contracts/webhook.contract.d.ts +66 -0
  57. package/src/contracts/webhook.contract.js +28 -0
  58. package/src/contracts/webhook.contract.js.map +1 -0
  59. package/src/db/__generated__/client/client.d.ts +385 -0
  60. package/src/db/__generated__/client/client.js +44 -0
  61. package/src/db/__generated__/client/client.js.map +1 -0
  62. package/src/db/__generated__/client/commonInputTypes.d.ts +816 -0
  63. package/src/db/__generated__/client/commonInputTypes.js +10 -0
  64. package/src/db/__generated__/client/commonInputTypes.js.map +1 -0
  65. package/src/db/__generated__/client/enums.d.ts +204 -0
  66. package/src/db/__generated__/client/enums.js +199 -0
  67. package/src/db/__generated__/client/enums.js.map +1 -0
  68. package/src/db/__generated__/client/index.d.ts +1 -0
  69. package/src/db/__generated__/client/index.js +5 -0
  70. package/src/db/__generated__/client/index.js.map +1 -0
  71. package/src/db/__generated__/client/internal/class.d.ts +414 -0
  72. package/src/db/__generated__/client/internal/class.js +76 -0
  73. package/src/db/__generated__/client/internal/class.js.map +1 -0
  74. package/src/db/__generated__/client/internal/prismaNamespace.d.ts +3474 -0
  75. package/src/db/__generated__/client/internal/prismaNamespace.js +543 -0
  76. package/src/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
  77. package/src/db/__generated__/client/models/Account.d.ts +1459 -0
  78. package/src/db/__generated__/client/models/Account.js +2 -0
  79. package/src/db/__generated__/client/models/Account.js.map +1 -0
  80. package/src/db/__generated__/client/models/Address.d.ts +2337 -0
  81. package/src/db/__generated__/client/models/Address.js +2 -0
  82. package/src/db/__generated__/client/models/Address.js.map +1 -0
  83. package/src/db/__generated__/client/models/Campaign.d.ts +1469 -0
  84. package/src/db/__generated__/client/models/Campaign.js +2 -0
  85. package/src/db/__generated__/client/models/Campaign.js.map +1 -0
  86. package/src/db/__generated__/client/models/ClosingTimes.d.ts +1227 -0
  87. package/src/db/__generated__/client/models/ClosingTimes.js +2 -0
  88. package/src/db/__generated__/client/models/ClosingTimes.js.map +1 -0
  89. package/src/db/__generated__/client/models/File.d.ts +2670 -0
  90. package/src/db/__generated__/client/models/File.js +2 -0
  91. package/src/db/__generated__/client/models/File.js.map +1 -0
  92. package/src/db/__generated__/client/models/Invitation.d.ts +1363 -0
  93. package/src/db/__generated__/client/models/Invitation.js +2 -0
  94. package/src/db/__generated__/client/models/Invitation.js.map +1 -0
  95. package/src/db/__generated__/client/models/LegalEntity.d.ts +1572 -0
  96. package/src/db/__generated__/client/models/LegalEntity.js +2 -0
  97. package/src/db/__generated__/client/models/LegalEntity.js.map +1 -0
  98. package/src/db/__generated__/client/models/Manufacturer.d.ts +1746 -0
  99. package/src/db/__generated__/client/models/Manufacturer.js +2 -0
  100. package/src/db/__generated__/client/models/Manufacturer.js.map +1 -0
  101. package/src/db/__generated__/client/models/ManufacturerTranslation.d.ts +1286 -0
  102. package/src/db/__generated__/client/models/ManufacturerTranslation.js +2 -0
  103. package/src/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
  104. package/src/db/__generated__/client/models/Member.d.ts +1281 -0
  105. package/src/db/__generated__/client/models/Member.js +2 -0
  106. package/src/db/__generated__/client/models/Member.js.map +1 -0
  107. package/src/db/__generated__/client/models/Modifier.d.ts +1404 -0
  108. package/src/db/__generated__/client/models/Modifier.js +2 -0
  109. package/src/db/__generated__/client/models/Modifier.js.map +1 -0
  110. package/src/db/__generated__/client/models/ModifierGroup.d.ts +1469 -0
  111. package/src/db/__generated__/client/models/ModifierGroup.js +2 -0
  112. package/src/db/__generated__/client/models/ModifierGroup.js.map +1 -0
  113. package/src/db/__generated__/client/models/ModifierGroupTranslation.d.ts +1181 -0
  114. package/src/db/__generated__/client/models/ModifierGroupTranslation.js +2 -0
  115. package/src/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
  116. package/src/db/__generated__/client/models/OpeningTimes.d.ts +1227 -0
  117. package/src/db/__generated__/client/models/OpeningTimes.js +2 -0
  118. package/src/db/__generated__/client/models/OpeningTimes.js.map +1 -0
  119. package/src/db/__generated__/client/models/Order.d.ts +2820 -0
  120. package/src/db/__generated__/client/models/Order.js +2 -0
  121. package/src/db/__generated__/client/models/Order.js.map +1 -0
  122. package/src/db/__generated__/client/models/OrderItem.d.ts +1755 -0
  123. package/src/db/__generated__/client/models/OrderItem.js +2 -0
  124. package/src/db/__generated__/client/models/OrderItem.js.map +1 -0
  125. package/src/db/__generated__/client/models/OrderItemTranslation.d.ts +1181 -0
  126. package/src/db/__generated__/client/models/OrderItemTranslation.js +2 -0
  127. package/src/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
  128. package/src/db/__generated__/client/models/Organization.d.ts +3996 -0
  129. package/src/db/__generated__/client/models/Organization.js +2 -0
  130. package/src/db/__generated__/client/models/Organization.js.map +1 -0
  131. package/src/db/__generated__/client/models/OrganizationConfiguration.d.ts +1954 -0
  132. package/src/db/__generated__/client/models/OrganizationConfiguration.js +2 -0
  133. package/src/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
  134. package/src/db/__generated__/client/models/Payment.d.ts +1538 -0
  135. package/src/db/__generated__/client/models/Payment.js +2 -0
  136. package/src/db/__generated__/client/models/Payment.js.map +1 -0
  137. package/src/db/__generated__/client/models/PaymentSession.d.ts +1384 -0
  138. package/src/db/__generated__/client/models/PaymentSession.js +2 -0
  139. package/src/db/__generated__/client/models/PaymentSession.js.map +1 -0
  140. package/src/db/__generated__/client/models/Product.d.ts +3136 -0
  141. package/src/db/__generated__/client/models/Product.js +2 -0
  142. package/src/db/__generated__/client/models/Product.js.map +1 -0
  143. package/src/db/__generated__/client/models/ProductCategory.d.ts +1964 -0
  144. package/src/db/__generated__/client/models/ProductCategory.js +2 -0
  145. package/src/db/__generated__/client/models/ProductCategory.js.map +1 -0
  146. package/src/db/__generated__/client/models/ProductCategoryTranslation.d.ts +1321 -0
  147. package/src/db/__generated__/client/models/ProductCategoryTranslation.js +2 -0
  148. package/src/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
  149. package/src/db/__generated__/client/models/ProductSnapshot.d.ts +1389 -0
  150. package/src/db/__generated__/client/models/ProductSnapshot.js +2 -0
  151. package/src/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
  152. package/src/db/__generated__/client/models/ProductTranslation.d.ts +1321 -0
  153. package/src/db/__generated__/client/models/ProductTranslation.js +2 -0
  154. package/src/db/__generated__/client/models/ProductTranslation.js.map +1 -0
  155. package/src/db/__generated__/client/models/Reservation.d.ts +1665 -0
  156. package/src/db/__generated__/client/models/Reservation.js +2 -0
  157. package/src/db/__generated__/client/models/Reservation.js.map +1 -0
  158. package/src/db/__generated__/client/models/Session.d.ts +1316 -0
  159. package/src/db/__generated__/client/models/Session.js +2 -0
  160. package/src/db/__generated__/client/models/Session.js.map +1 -0
  161. package/src/db/__generated__/client/models/ShippingMethod.d.ts +1934 -0
  162. package/src/db/__generated__/client/models/ShippingMethod.js +2 -0
  163. package/src/db/__generated__/client/models/ShippingMethod.js.map +1 -0
  164. package/src/db/__generated__/client/models/ShippingZone.d.ts +1366 -0
  165. package/src/db/__generated__/client/models/ShippingZone.js +2 -0
  166. package/src/db/__generated__/client/models/ShippingZone.js.map +1 -0
  167. package/src/db/__generated__/client/models/User.d.ts +2201 -0
  168. package/src/db/__generated__/client/models/User.js +2 -0
  169. package/src/db/__generated__/client/models/User.js.map +1 -0
  170. package/src/db/__generated__/client/models/Verification.d.ts +1026 -0
  171. package/src/db/__generated__/client/models/Verification.js +2 -0
  172. package/src/db/__generated__/client/models/Verification.js.map +1 -0
  173. package/src/db/__generated__/client/models.d.ts +38 -0
  174. package/src/db/__generated__/client/models.js +2 -0
  175. package/src/db/__generated__/client/models.js.map +1 -0
  176. package/src/db/index.d.ts +1 -0
  177. package/src/db/index.js +2 -0
  178. package/src/db/index.js.map +1 -0
  179. package/src/emails/order-confirmation-email.d.ts +10 -0
  180. package/src/emails/order-confirmation-email.js +229 -0
  181. package/src/emails/order-confirmation-email.js.map +1 -0
  182. package/src/emails/order-notification-email.d.ts +10 -0
  183. package/src/emails/order-notification-email.js +229 -0
  184. package/src/emails/order-notification-email.js.map +1 -0
  185. package/src/emails/reservation-cancellation-email.d.ts +10 -0
  186. package/src/emails/reservation-cancellation-email.js +82 -0
  187. package/src/emails/reservation-cancellation-email.js.map +1 -0
  188. package/src/emails/reservation-confirmation-email.d.ts +10 -0
  189. package/src/emails/reservation-confirmation-email.js +82 -0
  190. package/src/emails/reservation-confirmation-email.js.map +1 -0
  191. package/src/emails/reservation-notification-email.d.ts +11 -0
  192. package/src/emails/reservation-notification-email.js +93 -0
  193. package/src/emails/reservation-notification-email.js.map +1 -0
  194. package/src/exceptions/http-exception.d.ts +6 -0
  195. package/src/exceptions/http-exception.js +9 -0
  196. package/src/exceptions/http-exception.js.map +1 -0
  197. package/src/handlers/webhook.handler.d.ts +8 -0
  198. package/src/handlers/webhook.handler.js +36 -0
  199. package/src/handlers/webhook.handler.js.map +1 -0
  200. package/src/index.d.ts +5 -0
  201. package/src/index.js +7 -0
  202. package/src/index.js.map +1 -0
  203. package/src/integrations/next.d.ts +25 -0
  204. package/src/integrations/next.js +69 -0
  205. package/src/integrations/next.js.map +1 -0
  206. package/src/lib/better-auth.lib.d.ts +10215 -0
  207. package/src/lib/better-auth.lib.js +96 -0
  208. package/src/lib/better-auth.lib.js.map +1 -0
  209. package/src/lib/openapi.lib.d.ts +2 -0
  210. package/src/lib/openapi.lib.js +25 -0
  211. package/src/lib/openapi.lib.js.map +1 -0
  212. package/src/lib/pino.d.ts +1 -0
  213. package/src/lib/pino.js +5 -0
  214. package/src/lib/pino.js.map +1 -0
  215. package/src/lib/prisma.d.ts +819 -0
  216. package/src/lib/prisma.js +14 -0
  217. package/src/lib/prisma.js.map +1 -0
  218. package/src/lib/stripe.d.ts +2 -0
  219. package/src/lib/stripe.js +8 -0
  220. package/src/lib/stripe.js.map +1 -0
  221. package/src/lib/ts-rest.d.ts +2 -0
  222. package/src/lib/ts-rest.js +3 -0
  223. package/src/lib/ts-rest.js.map +1 -0
  224. package/src/routers/cart.router.d.ts +536 -0
  225. package/src/routers/cart.router.js +20 -0
  226. package/src/routers/cart.router.js.map +1 -0
  227. package/src/routers/file.router.d.ts +153 -0
  228. package/src/routers/file.router.js +28 -0
  229. package/src/routers/file.router.js.map +1 -0
  230. package/src/routers/health.router.d.ts +37 -0
  231. package/src/routers/health.router.js +17 -0
  232. package/src/routers/health.router.js.map +1 -0
  233. package/src/routers/index.d.ts +11 -0
  234. package/src/routers/index.js +12 -0
  235. package/src/routers/index.js.map +1 -0
  236. package/src/routers/manufacturer.router.d.ts +931 -0
  237. package/src/routers/manufacturer.router.js +58 -0
  238. package/src/routers/manufacturer.router.js.map +1 -0
  239. package/src/routers/order.router.d.ts +3911 -0
  240. package/src/routers/order.router.js +60 -0
  241. package/src/routers/order.router.js.map +1 -0
  242. package/src/routers/organization.router.d.ts +2234 -0
  243. package/src/routers/organization.router.js +55 -0
  244. package/src/routers/organization.router.js.map +1 -0
  245. package/src/routers/payment.router.d.ts +65 -0
  246. package/src/routers/payment.router.js +22 -0
  247. package/src/routers/payment.router.js.map +1 -0
  248. package/src/routers/places.router.d.ts +132 -0
  249. package/src/routers/places.router.js +31 -0
  250. package/src/routers/places.router.js.map +1 -0
  251. package/src/routers/product-category.router.d.ts +1172 -0
  252. package/src/routers/product-category.router.js +66 -0
  253. package/src/routers/product-category.router.js.map +1 -0
  254. package/src/routers/product.router.d.ts +3976 -0
  255. package/src/routers/product.router.js +86 -0
  256. package/src/routers/product.router.js.map +1 -0
  257. package/src/routers/reservation.router.d.ts +675 -0
  258. package/src/routers/reservation.router.js +71 -0
  259. package/src/routers/reservation.router.js.map +1 -0
  260. package/src/routers/shipping-method.router.d.ts +1276 -0
  261. package/src/routers/shipping-method.router.js +67 -0
  262. package/src/routers/shipping-method.router.js.map +1 -0
  263. package/src/routers/shipping.router.d.ts +320 -0
  264. package/src/routers/shipping.router.js +38 -0
  265. package/src/routers/shipping.router.js.map +1 -0
  266. package/src/routers/webhook.router.d.ts +65 -0
  267. package/src/routers/webhook.router.js +19 -0
  268. package/src/routers/webhook.router.js.map +1 -0
  269. package/src/schemas/address.schema.d.ts +235 -0
  270. package/src/schemas/address.schema.js +114 -0
  271. package/src/schemas/address.schema.js.map +1 -0
  272. package/src/schemas/auth.schema.d.ts +29 -0
  273. package/src/schemas/auth.schema.js +39 -0
  274. package/src/schemas/auth.schema.js.map +1 -0
  275. package/src/schemas/cart.schema.d.ts +446 -0
  276. package/src/schemas/cart.schema.js +41 -0
  277. package/src/schemas/cart.schema.js.map +1 -0
  278. package/src/schemas/currency.schema.d.ts +49 -0
  279. package/src/schemas/currency.schema.js +120 -0
  280. package/src/schemas/currency.schema.js.map +1 -0
  281. package/src/schemas/error.schema.d.ts +11 -0
  282. package/src/schemas/error.schema.js +14 -0
  283. package/src/schemas/error.schema.js.map +1 -0
  284. package/src/schemas/file.schema.d.ts +115 -0
  285. package/src/schemas/file.schema.js +79 -0
  286. package/src/schemas/file.schema.js.map +1 -0
  287. package/src/schemas/fulfilment.schema.d.ts +2 -0
  288. package/src/schemas/fulfilment.schema.js +5 -0
  289. package/src/schemas/fulfilment.schema.js.map +1 -0
  290. package/src/schemas/headers.schema.d.ts +11 -0
  291. package/src/schemas/headers.schema.js +15 -0
  292. package/src/schemas/headers.schema.js.map +1 -0
  293. package/src/schemas/index.d.ts +27 -0
  294. package/src/schemas/index.js +28 -0
  295. package/src/schemas/index.js.map +1 -0
  296. package/src/schemas/legal-entity.schema.d.ts +212 -0
  297. package/src/schemas/legal-entity.schema.js +85 -0
  298. package/src/schemas/legal-entity.schema.js.map +1 -0
  299. package/src/schemas/locales.schema.d.ts +8 -0
  300. package/src/schemas/locales.schema.js +240 -0
  301. package/src/schemas/locales.schema.js.map +1 -0
  302. package/src/schemas/location.schema.d.ts +41 -0
  303. package/src/schemas/location.schema.js +50 -0
  304. package/src/schemas/location.schema.js.map +1 -0
  305. package/src/schemas/manufacturer.schema.d.ts +287 -0
  306. package/src/schemas/manufacturer.schema.js +127 -0
  307. package/src/schemas/manufacturer.schema.js.map +1 -0
  308. package/src/schemas/number.schema.d.ts +3 -0
  309. package/src/schemas/number.schema.js +29 -0
  310. package/src/schemas/number.schema.js.map +1 -0
  311. package/src/schemas/order.schema.d.ts +1046 -0
  312. package/src/schemas/order.schema.js +160 -0
  313. package/src/schemas/order.schema.js.map +1 -0
  314. package/src/schemas/organization-configuration.schema.d.ts +287 -0
  315. package/src/schemas/organization-configuration.schema.js +117 -0
  316. package/src/schemas/organization-configuration.schema.js.map +1 -0
  317. package/src/schemas/organization.schema.d.ts +894 -0
  318. package/src/schemas/organization.schema.js +66 -0
  319. package/src/schemas/organization.schema.js.map +1 -0
  320. package/src/schemas/pagination.schema.d.ts +51 -0
  321. package/src/schemas/pagination.schema.js +54 -0
  322. package/src/schemas/pagination.schema.js.map +1 -0
  323. package/src/schemas/params.schema.d.ts +19 -0
  324. package/src/schemas/params.schema.js +22 -0
  325. package/src/schemas/params.schema.js.map +1 -0
  326. package/src/schemas/payment.schema.d.ts +54 -0
  327. package/src/schemas/payment.schema.js +48 -0
  328. package/src/schemas/payment.schema.js.map +1 -0
  329. package/src/schemas/product-category.schema.d.ts +352 -0
  330. package/src/schemas/product-category.schema.js +87 -0
  331. package/src/schemas/product-category.schema.js.map +1 -0
  332. package/src/schemas/product-modifier.schema.d.ts +280 -0
  333. package/src/schemas/product-modifier.schema.js +86 -0
  334. package/src/schemas/product-modifier.schema.js.map +1 -0
  335. package/src/schemas/product.schema.d.ts +1405 -0
  336. package/src/schemas/product.schema.js +136 -0
  337. package/src/schemas/product.schema.js.map +1 -0
  338. package/src/schemas/queries.schema.d.ts +8 -0
  339. package/src/schemas/queries.schema.js +8 -0
  340. package/src/schemas/queries.schema.js.map +1 -0
  341. package/src/schemas/recipient.schema.d.ts +260 -0
  342. package/src/schemas/recipient.schema.js +40 -0
  343. package/src/schemas/recipient.schema.js.map +1 -0
  344. package/src/schemas/reservation.schema.d.ts +61 -0
  345. package/src/schemas/reservation.schema.js +53 -0
  346. package/src/schemas/reservation.schema.js.map +1 -0
  347. package/src/schemas/shipping-method.schema.d.ts +335 -0
  348. package/src/schemas/shipping-method.schema.js +50 -0
  349. package/src/schemas/shipping-method.schema.js.map +1 -0
  350. package/src/schemas/shipping-zone.schema.d.ts +24 -0
  351. package/src/schemas/shipping-zone.schema.js +33 -0
  352. package/src/schemas/shipping-zone.schema.js.map +1 -0
  353. package/src/schemas/user.schema.d.ts +24 -0
  354. package/src/schemas/user.schema.js +32 -0
  355. package/src/schemas/user.schema.js.map +1 -0
  356. package/src/services/cart.service.d.ts +60 -0
  357. package/src/services/cart.service.js +97 -0
  358. package/src/services/cart.service.js.map +1 -0
  359. package/src/services/email.service.d.ts +32 -0
  360. package/src/services/email.service.js +116 -0
  361. package/src/services/email.service.js.map +1 -0
  362. package/src/services/file.service.d.ts +28 -0
  363. package/src/services/file.service.js +66 -0
  364. package/src/services/file.service.js.map +1 -0
  365. package/src/services/location.service.d.ts +28 -0
  366. package/src/services/location.service.js +109 -0
  367. package/src/services/location.service.js.map +1 -0
  368. package/src/services/manufacturer.service.d.ts +146 -0
  369. package/src/services/manufacturer.service.js +190 -0
  370. package/src/services/manufacturer.service.js.map +1 -0
  371. package/src/services/order.service.d.ts +444 -0
  372. package/src/services/order.service.js +306 -0
  373. package/src/services/order.service.js.map +1 -0
  374. package/src/services/organization.service.d.ts +301 -0
  375. package/src/services/organization.service.js +312 -0
  376. package/src/services/organization.service.js.map +1 -0
  377. package/src/services/payment.service.d.ts +35 -0
  378. package/src/services/payment.service.js +100 -0
  379. package/src/services/payment.service.js.map +1 -0
  380. package/src/services/product-category.service.d.ts +180 -0
  381. package/src/services/product-category.service.js +220 -0
  382. package/src/services/product-category.service.js.map +1 -0
  383. package/src/services/product.service.d.ts +493 -0
  384. package/src/services/product.service.js +437 -0
  385. package/src/services/product.service.js.map +1 -0
  386. package/src/services/reservation.service.d.ts +104 -0
  387. package/src/services/reservation.service.js +231 -0
  388. package/src/services/reservation.service.js.map +1 -0
  389. package/src/services/shipping-method.service.d.ts +206 -0
  390. package/src/services/shipping-method.service.js +229 -0
  391. package/src/services/shipping-method.service.js.map +1 -0
  392. package/src/services/shipping.service.d.ts +57 -0
  393. package/src/services/shipping.service.js +96 -0
  394. package/src/services/shipping.service.js.map +1 -0
  395. package/src/services/stripe.service.d.ts +26 -0
  396. package/src/services/stripe.service.js +164 -0
  397. package/src/services/stripe.service.js.map +1 -0
  398. package/src/types/google-maps.types.d.ts +53 -0
  399. package/src/types/google-maps.types.js +2 -0
  400. package/src/types/google-maps.types.js.map +1 -0
  401. package/src/utils/auth.util.d.ts +3 -0
  402. package/src/utils/auth.util.js +36 -0
  403. package/src/utils/auth.util.js.map +1 -0
  404. package/src/utils/cart.util.d.ts +27 -0
  405. package/src/utils/cart.util.js +76 -0
  406. package/src/utils/cart.util.js.map +1 -0
  407. package/src/utils/client.util.d.ts +3853 -0
  408. package/src/utils/client.util.js +6 -0
  409. package/src/utils/client.util.js.map +1 -0
  410. package/src/utils/currency.util.d.ts +1 -0
  411. package/src/utils/currency.util.js +11 -0
  412. package/src/utils/currency.util.js.map +1 -0
  413. package/src/utils/env.util.d.ts +2 -0
  414. package/src/utils/env.util.js +8 -0
  415. package/src/utils/env.util.js.map +1 -0
  416. package/src/utils/error-handler.util.d.ts +3 -0
  417. package/src/utils/error-handler.util.js +30 -0
  418. package/src/utils/error-handler.util.js.map +1 -0
  419. package/src/utils/generate-password-hash.util.d.ts +7 -0
  420. package/src/utils/generate-password-hash.util.js +30 -0
  421. package/src/utils/generate-password-hash.util.js.map +1 -0
  422. package/src/utils/object.util.d.ts +11 -0
  423. package/src/utils/object.util.js +39 -0
  424. package/src/utils/object.util.js.map +1 -0
  425. package/src/utils/translations.util.d.ts +0 -0
  426. package/src/utils/translations.util.js +2 -0
  427. package/src/utils/translations.util.js.map +1 -0
  428. package/src/utils/zod.util.d.ts +15 -0
  429. package/src/utils/zod.util.js +85 -0
  430. package/src/utils/zod.util.js.map +1 -0
@@ -0,0 +1,1572 @@
1
+ /**
2
+ * This file exports the `LegalEntity` model and its related types.
3
+ *
4
+ * 🟢 You can import this file directly.
5
+ */
6
+ import * as runtime from "@prisma/client/runtime/library";
7
+ import type * as Prisma from "../internal/prismaNamespace.ts";
8
+ /**
9
+ * Model LegalEntity
10
+ *
11
+ */
12
+ export type LegalEntityModel = runtime.Types.Result.DefaultSelection<Prisma.$LegalEntityPayload>;
13
+ export type AggregateLegalEntity = {
14
+ _count: LegalEntityCountAggregateOutputType | null;
15
+ _min: LegalEntityMinAggregateOutputType | null;
16
+ _max: LegalEntityMaxAggregateOutputType | null;
17
+ };
18
+ export type LegalEntityMinAggregateOutputType = {
19
+ id: string | null;
20
+ name: string | null;
21
+ taxId: string | null;
22
+ addressId: string | null;
23
+ email: string | null;
24
+ phone: string | null;
25
+ createdAt: Date | null;
26
+ createdBy: string | null;
27
+ updatedAt: Date | null;
28
+ updatedBy: string | null;
29
+ deletedAt: Date | null;
30
+ deletedBy: string | null;
31
+ };
32
+ export type LegalEntityMaxAggregateOutputType = {
33
+ id: string | null;
34
+ name: string | null;
35
+ taxId: string | null;
36
+ addressId: string | null;
37
+ email: string | null;
38
+ phone: string | null;
39
+ createdAt: Date | null;
40
+ createdBy: string | null;
41
+ updatedAt: Date | null;
42
+ updatedBy: string | null;
43
+ deletedAt: Date | null;
44
+ deletedBy: string | null;
45
+ };
46
+ export type LegalEntityCountAggregateOutputType = {
47
+ id: number;
48
+ name: number;
49
+ taxId: number;
50
+ addressId: number;
51
+ email: number;
52
+ phone: number;
53
+ createdAt: number;
54
+ createdBy: number;
55
+ updatedAt: number;
56
+ updatedBy: number;
57
+ deletedAt: number;
58
+ deletedBy: number;
59
+ _all: number;
60
+ };
61
+ export type LegalEntityMinAggregateInputType = {
62
+ id?: true;
63
+ name?: true;
64
+ taxId?: true;
65
+ addressId?: true;
66
+ email?: true;
67
+ phone?: true;
68
+ createdAt?: true;
69
+ createdBy?: true;
70
+ updatedAt?: true;
71
+ updatedBy?: true;
72
+ deletedAt?: true;
73
+ deletedBy?: true;
74
+ };
75
+ export type LegalEntityMaxAggregateInputType = {
76
+ id?: true;
77
+ name?: true;
78
+ taxId?: true;
79
+ addressId?: true;
80
+ email?: true;
81
+ phone?: true;
82
+ createdAt?: true;
83
+ createdBy?: true;
84
+ updatedAt?: true;
85
+ updatedBy?: true;
86
+ deletedAt?: true;
87
+ deletedBy?: true;
88
+ };
89
+ export type LegalEntityCountAggregateInputType = {
90
+ id?: true;
91
+ name?: true;
92
+ taxId?: true;
93
+ addressId?: true;
94
+ email?: true;
95
+ phone?: true;
96
+ createdAt?: true;
97
+ createdBy?: true;
98
+ updatedAt?: true;
99
+ updatedBy?: true;
100
+ deletedAt?: true;
101
+ deletedBy?: true;
102
+ _all?: true;
103
+ };
104
+ export type LegalEntityAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
105
+ /**
106
+ * Filter which LegalEntity to aggregate.
107
+ */
108
+ where?: Prisma.LegalEntityWhereInput;
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
111
+ *
112
+ * Determine the order of LegalEntities to fetch.
113
+ */
114
+ orderBy?: Prisma.LegalEntityOrderByWithRelationInput | Prisma.LegalEntityOrderByWithRelationInput[];
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
117
+ *
118
+ * Sets the start position
119
+ */
120
+ cursor?: Prisma.LegalEntityWhereUniqueInput;
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
123
+ *
124
+ * Take `±n` LegalEntities from the position of the cursor.
125
+ */
126
+ take?: number;
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
129
+ *
130
+ * Skip the first `n` LegalEntities.
131
+ */
132
+ skip?: number;
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
135
+ *
136
+ * Count returned LegalEntities
137
+ **/
138
+ _count?: true | LegalEntityCountAggregateInputType;
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
+ *
142
+ * Select which fields to find the minimum value
143
+ **/
144
+ _min?: LegalEntityMinAggregateInputType;
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Select which fields to find the maximum value
149
+ **/
150
+ _max?: LegalEntityMaxAggregateInputType;
151
+ };
152
+ export type GetLegalEntityAggregateType<T extends LegalEntityAggregateArgs> = {
153
+ [P in keyof T & keyof AggregateLegalEntity]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateLegalEntity[P]> : Prisma.GetScalarType<T[P], AggregateLegalEntity[P]>;
154
+ };
155
+ export type LegalEntityGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
156
+ where?: Prisma.LegalEntityWhereInput;
157
+ orderBy?: Prisma.LegalEntityOrderByWithAggregationInput | Prisma.LegalEntityOrderByWithAggregationInput[];
158
+ by: Prisma.LegalEntityScalarFieldEnum[] | Prisma.LegalEntityScalarFieldEnum;
159
+ having?: Prisma.LegalEntityScalarWhereWithAggregatesInput;
160
+ take?: number;
161
+ skip?: number;
162
+ _count?: LegalEntityCountAggregateInputType | true;
163
+ _min?: LegalEntityMinAggregateInputType;
164
+ _max?: LegalEntityMaxAggregateInputType;
165
+ };
166
+ export type LegalEntityGroupByOutputType = {
167
+ id: string;
168
+ name: string;
169
+ taxId: string;
170
+ addressId: string;
171
+ email: string | null;
172
+ phone: string | null;
173
+ createdAt: Date;
174
+ createdBy: string | null;
175
+ updatedAt: Date;
176
+ updatedBy: string | null;
177
+ deletedAt: Date | null;
178
+ deletedBy: string | null;
179
+ _count: LegalEntityCountAggregateOutputType | null;
180
+ _min: LegalEntityMinAggregateOutputType | null;
181
+ _max: LegalEntityMaxAggregateOutputType | null;
182
+ };
183
+ type GetLegalEntityGroupByPayload<T extends LegalEntityGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<LegalEntityGroupByOutputType, T['by']> & {
184
+ [P in ((keyof T) & (keyof LegalEntityGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], LegalEntityGroupByOutputType[P]> : Prisma.GetScalarType<T[P], LegalEntityGroupByOutputType[P]>;
185
+ }>>;
186
+ export type LegalEntityWhereInput = {
187
+ AND?: Prisma.LegalEntityWhereInput | Prisma.LegalEntityWhereInput[];
188
+ OR?: Prisma.LegalEntityWhereInput[];
189
+ NOT?: Prisma.LegalEntityWhereInput | Prisma.LegalEntityWhereInput[];
190
+ id?: Prisma.StringFilter<"LegalEntity"> | string;
191
+ name?: Prisma.StringFilter<"LegalEntity"> | string;
192
+ taxId?: Prisma.StringFilter<"LegalEntity"> | string;
193
+ addressId?: Prisma.StringFilter<"LegalEntity"> | string;
194
+ email?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
195
+ phone?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
196
+ createdAt?: Prisma.DateTimeFilter<"LegalEntity"> | Date | string;
197
+ createdBy?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
198
+ updatedAt?: Prisma.DateTimeFilter<"LegalEntity"> | Date | string;
199
+ updatedBy?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
200
+ deletedAt?: Prisma.DateTimeNullableFilter<"LegalEntity"> | Date | string | null;
201
+ deletedBy?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
202
+ address?: Prisma.XOR<Prisma.AddressScalarRelationFilter, Prisma.AddressWhereInput>;
203
+ organizations?: Prisma.OrganizationListRelationFilter;
204
+ };
205
+ export type LegalEntityOrderByWithRelationInput = {
206
+ id?: Prisma.SortOrder;
207
+ name?: Prisma.SortOrder;
208
+ taxId?: Prisma.SortOrder;
209
+ addressId?: Prisma.SortOrder;
210
+ email?: Prisma.SortOrderInput | Prisma.SortOrder;
211
+ phone?: Prisma.SortOrderInput | Prisma.SortOrder;
212
+ createdAt?: Prisma.SortOrder;
213
+ createdBy?: Prisma.SortOrderInput | Prisma.SortOrder;
214
+ updatedAt?: Prisma.SortOrder;
215
+ updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
216
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
217
+ deletedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
218
+ address?: Prisma.AddressOrderByWithRelationInput;
219
+ organizations?: Prisma.OrganizationOrderByRelationAggregateInput;
220
+ };
221
+ export type LegalEntityWhereUniqueInput = Prisma.AtLeast<{
222
+ id?: string;
223
+ AND?: Prisma.LegalEntityWhereInput | Prisma.LegalEntityWhereInput[];
224
+ OR?: Prisma.LegalEntityWhereInput[];
225
+ NOT?: Prisma.LegalEntityWhereInput | Prisma.LegalEntityWhereInput[];
226
+ name?: Prisma.StringFilter<"LegalEntity"> | string;
227
+ taxId?: Prisma.StringFilter<"LegalEntity"> | string;
228
+ addressId?: Prisma.StringFilter<"LegalEntity"> | string;
229
+ email?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
230
+ phone?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
231
+ createdAt?: Prisma.DateTimeFilter<"LegalEntity"> | Date | string;
232
+ createdBy?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
233
+ updatedAt?: Prisma.DateTimeFilter<"LegalEntity"> | Date | string;
234
+ updatedBy?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
235
+ deletedAt?: Prisma.DateTimeNullableFilter<"LegalEntity"> | Date | string | null;
236
+ deletedBy?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
237
+ address?: Prisma.XOR<Prisma.AddressScalarRelationFilter, Prisma.AddressWhereInput>;
238
+ organizations?: Prisma.OrganizationListRelationFilter;
239
+ }, "id">;
240
+ export type LegalEntityOrderByWithAggregationInput = {
241
+ id?: Prisma.SortOrder;
242
+ name?: Prisma.SortOrder;
243
+ taxId?: Prisma.SortOrder;
244
+ addressId?: Prisma.SortOrder;
245
+ email?: Prisma.SortOrderInput | Prisma.SortOrder;
246
+ phone?: Prisma.SortOrderInput | Prisma.SortOrder;
247
+ createdAt?: Prisma.SortOrder;
248
+ createdBy?: Prisma.SortOrderInput | Prisma.SortOrder;
249
+ updatedAt?: Prisma.SortOrder;
250
+ updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
251
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
252
+ deletedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
253
+ _count?: Prisma.LegalEntityCountOrderByAggregateInput;
254
+ _max?: Prisma.LegalEntityMaxOrderByAggregateInput;
255
+ _min?: Prisma.LegalEntityMinOrderByAggregateInput;
256
+ };
257
+ export type LegalEntityScalarWhereWithAggregatesInput = {
258
+ AND?: Prisma.LegalEntityScalarWhereWithAggregatesInput | Prisma.LegalEntityScalarWhereWithAggregatesInput[];
259
+ OR?: Prisma.LegalEntityScalarWhereWithAggregatesInput[];
260
+ NOT?: Prisma.LegalEntityScalarWhereWithAggregatesInput | Prisma.LegalEntityScalarWhereWithAggregatesInput[];
261
+ id?: Prisma.StringWithAggregatesFilter<"LegalEntity"> | string;
262
+ name?: Prisma.StringWithAggregatesFilter<"LegalEntity"> | string;
263
+ taxId?: Prisma.StringWithAggregatesFilter<"LegalEntity"> | string;
264
+ addressId?: Prisma.StringWithAggregatesFilter<"LegalEntity"> | string;
265
+ email?: Prisma.StringNullableWithAggregatesFilter<"LegalEntity"> | string | null;
266
+ phone?: Prisma.StringNullableWithAggregatesFilter<"LegalEntity"> | string | null;
267
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"LegalEntity"> | Date | string;
268
+ createdBy?: Prisma.StringNullableWithAggregatesFilter<"LegalEntity"> | string | null;
269
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"LegalEntity"> | Date | string;
270
+ updatedBy?: Prisma.StringNullableWithAggregatesFilter<"LegalEntity"> | string | null;
271
+ deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"LegalEntity"> | Date | string | null;
272
+ deletedBy?: Prisma.StringNullableWithAggregatesFilter<"LegalEntity"> | string | null;
273
+ };
274
+ export type LegalEntityCreateInput = {
275
+ id?: string;
276
+ name: string;
277
+ taxId: string;
278
+ email?: string | null;
279
+ phone?: string | null;
280
+ createdAt?: Date | string;
281
+ createdBy?: string | null;
282
+ updatedAt?: Date | string;
283
+ updatedBy?: string | null;
284
+ deletedAt?: Date | string | null;
285
+ deletedBy?: string | null;
286
+ address: Prisma.AddressCreateNestedOneWithoutLegalEntityInput;
287
+ organizations?: Prisma.OrganizationCreateNestedManyWithoutLegalEntityInput;
288
+ };
289
+ export type LegalEntityUncheckedCreateInput = {
290
+ id?: string;
291
+ name: string;
292
+ taxId: string;
293
+ addressId: string;
294
+ email?: string | null;
295
+ phone?: string | null;
296
+ createdAt?: Date | string;
297
+ createdBy?: string | null;
298
+ updatedAt?: Date | string;
299
+ updatedBy?: string | null;
300
+ deletedAt?: Date | string | null;
301
+ deletedBy?: string | null;
302
+ organizations?: Prisma.OrganizationUncheckedCreateNestedManyWithoutLegalEntityInput;
303
+ };
304
+ export type LegalEntityUpdateInput = {
305
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
306
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
307
+ taxId?: Prisma.StringFieldUpdateOperationsInput | string;
308
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
309
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
310
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
311
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
312
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
313
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
314
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
315
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
316
+ address?: Prisma.AddressUpdateOneRequiredWithoutLegalEntityNestedInput;
317
+ organizations?: Prisma.OrganizationUpdateManyWithoutLegalEntityNestedInput;
318
+ };
319
+ export type LegalEntityUncheckedUpdateInput = {
320
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
321
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
322
+ taxId?: Prisma.StringFieldUpdateOperationsInput | string;
323
+ addressId?: Prisma.StringFieldUpdateOperationsInput | string;
324
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
325
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
326
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
327
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
328
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
329
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
330
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
331
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
332
+ organizations?: Prisma.OrganizationUncheckedUpdateManyWithoutLegalEntityNestedInput;
333
+ };
334
+ export type LegalEntityCreateManyInput = {
335
+ id?: string;
336
+ name: string;
337
+ taxId: string;
338
+ addressId: string;
339
+ email?: string | null;
340
+ phone?: string | null;
341
+ createdAt?: Date | string;
342
+ createdBy?: string | null;
343
+ updatedAt?: Date | string;
344
+ updatedBy?: string | null;
345
+ deletedAt?: Date | string | null;
346
+ deletedBy?: string | null;
347
+ };
348
+ export type LegalEntityUpdateManyMutationInput = {
349
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
350
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
351
+ taxId?: Prisma.StringFieldUpdateOperationsInput | string;
352
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
353
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
354
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
355
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
356
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
357
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
358
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
359
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
360
+ };
361
+ export type LegalEntityUncheckedUpdateManyInput = {
362
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
363
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
364
+ taxId?: Prisma.StringFieldUpdateOperationsInput | string;
365
+ addressId?: Prisma.StringFieldUpdateOperationsInput | string;
366
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
367
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
368
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
369
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
370
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
371
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
372
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
373
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
374
+ };
375
+ export type LegalEntityNullableScalarRelationFilter = {
376
+ is?: Prisma.LegalEntityWhereInput | null;
377
+ isNot?: Prisma.LegalEntityWhereInput | null;
378
+ };
379
+ export type LegalEntityListRelationFilter = {
380
+ every?: Prisma.LegalEntityWhereInput;
381
+ some?: Prisma.LegalEntityWhereInput;
382
+ none?: Prisma.LegalEntityWhereInput;
383
+ };
384
+ export type LegalEntityOrderByRelationAggregateInput = {
385
+ _count?: Prisma.SortOrder;
386
+ };
387
+ export type LegalEntityCountOrderByAggregateInput = {
388
+ id?: Prisma.SortOrder;
389
+ name?: Prisma.SortOrder;
390
+ taxId?: Prisma.SortOrder;
391
+ addressId?: Prisma.SortOrder;
392
+ email?: Prisma.SortOrder;
393
+ phone?: Prisma.SortOrder;
394
+ createdAt?: Prisma.SortOrder;
395
+ createdBy?: Prisma.SortOrder;
396
+ updatedAt?: Prisma.SortOrder;
397
+ updatedBy?: Prisma.SortOrder;
398
+ deletedAt?: Prisma.SortOrder;
399
+ deletedBy?: Prisma.SortOrder;
400
+ };
401
+ export type LegalEntityMaxOrderByAggregateInput = {
402
+ id?: Prisma.SortOrder;
403
+ name?: Prisma.SortOrder;
404
+ taxId?: Prisma.SortOrder;
405
+ addressId?: Prisma.SortOrder;
406
+ email?: Prisma.SortOrder;
407
+ phone?: Prisma.SortOrder;
408
+ createdAt?: Prisma.SortOrder;
409
+ createdBy?: Prisma.SortOrder;
410
+ updatedAt?: Prisma.SortOrder;
411
+ updatedBy?: Prisma.SortOrder;
412
+ deletedAt?: Prisma.SortOrder;
413
+ deletedBy?: Prisma.SortOrder;
414
+ };
415
+ export type LegalEntityMinOrderByAggregateInput = {
416
+ id?: Prisma.SortOrder;
417
+ name?: Prisma.SortOrder;
418
+ taxId?: Prisma.SortOrder;
419
+ addressId?: Prisma.SortOrder;
420
+ email?: Prisma.SortOrder;
421
+ phone?: Prisma.SortOrder;
422
+ createdAt?: Prisma.SortOrder;
423
+ createdBy?: Prisma.SortOrder;
424
+ updatedAt?: Prisma.SortOrder;
425
+ updatedBy?: Prisma.SortOrder;
426
+ deletedAt?: Prisma.SortOrder;
427
+ deletedBy?: Prisma.SortOrder;
428
+ };
429
+ export type LegalEntityCreateNestedOneWithoutOrganizationsInput = {
430
+ create?: Prisma.XOR<Prisma.LegalEntityCreateWithoutOrganizationsInput, Prisma.LegalEntityUncheckedCreateWithoutOrganizationsInput>;
431
+ connectOrCreate?: Prisma.LegalEntityCreateOrConnectWithoutOrganizationsInput;
432
+ connect?: Prisma.LegalEntityWhereUniqueInput;
433
+ };
434
+ export type LegalEntityUpdateOneWithoutOrganizationsNestedInput = {
435
+ create?: Prisma.XOR<Prisma.LegalEntityCreateWithoutOrganizationsInput, Prisma.LegalEntityUncheckedCreateWithoutOrganizationsInput>;
436
+ connectOrCreate?: Prisma.LegalEntityCreateOrConnectWithoutOrganizationsInput;
437
+ upsert?: Prisma.LegalEntityUpsertWithoutOrganizationsInput;
438
+ disconnect?: Prisma.LegalEntityWhereInput | boolean;
439
+ delete?: Prisma.LegalEntityWhereInput | boolean;
440
+ connect?: Prisma.LegalEntityWhereUniqueInput;
441
+ update?: Prisma.XOR<Prisma.XOR<Prisma.LegalEntityUpdateToOneWithWhereWithoutOrganizationsInput, Prisma.LegalEntityUpdateWithoutOrganizationsInput>, Prisma.LegalEntityUncheckedUpdateWithoutOrganizationsInput>;
442
+ };
443
+ export type LegalEntityCreateNestedManyWithoutAddressInput = {
444
+ create?: Prisma.XOR<Prisma.LegalEntityCreateWithoutAddressInput, Prisma.LegalEntityUncheckedCreateWithoutAddressInput> | Prisma.LegalEntityCreateWithoutAddressInput[] | Prisma.LegalEntityUncheckedCreateWithoutAddressInput[];
445
+ connectOrCreate?: Prisma.LegalEntityCreateOrConnectWithoutAddressInput | Prisma.LegalEntityCreateOrConnectWithoutAddressInput[];
446
+ createMany?: Prisma.LegalEntityCreateManyAddressInputEnvelope;
447
+ connect?: Prisma.LegalEntityWhereUniqueInput | Prisma.LegalEntityWhereUniqueInput[];
448
+ };
449
+ export type LegalEntityUncheckedCreateNestedManyWithoutAddressInput = {
450
+ create?: Prisma.XOR<Prisma.LegalEntityCreateWithoutAddressInput, Prisma.LegalEntityUncheckedCreateWithoutAddressInput> | Prisma.LegalEntityCreateWithoutAddressInput[] | Prisma.LegalEntityUncheckedCreateWithoutAddressInput[];
451
+ connectOrCreate?: Prisma.LegalEntityCreateOrConnectWithoutAddressInput | Prisma.LegalEntityCreateOrConnectWithoutAddressInput[];
452
+ createMany?: Prisma.LegalEntityCreateManyAddressInputEnvelope;
453
+ connect?: Prisma.LegalEntityWhereUniqueInput | Prisma.LegalEntityWhereUniqueInput[];
454
+ };
455
+ export type LegalEntityUpdateManyWithoutAddressNestedInput = {
456
+ create?: Prisma.XOR<Prisma.LegalEntityCreateWithoutAddressInput, Prisma.LegalEntityUncheckedCreateWithoutAddressInput> | Prisma.LegalEntityCreateWithoutAddressInput[] | Prisma.LegalEntityUncheckedCreateWithoutAddressInput[];
457
+ connectOrCreate?: Prisma.LegalEntityCreateOrConnectWithoutAddressInput | Prisma.LegalEntityCreateOrConnectWithoutAddressInput[];
458
+ upsert?: Prisma.LegalEntityUpsertWithWhereUniqueWithoutAddressInput | Prisma.LegalEntityUpsertWithWhereUniqueWithoutAddressInput[];
459
+ createMany?: Prisma.LegalEntityCreateManyAddressInputEnvelope;
460
+ set?: Prisma.LegalEntityWhereUniqueInput | Prisma.LegalEntityWhereUniqueInput[];
461
+ disconnect?: Prisma.LegalEntityWhereUniqueInput | Prisma.LegalEntityWhereUniqueInput[];
462
+ delete?: Prisma.LegalEntityWhereUniqueInput | Prisma.LegalEntityWhereUniqueInput[];
463
+ connect?: Prisma.LegalEntityWhereUniqueInput | Prisma.LegalEntityWhereUniqueInput[];
464
+ update?: Prisma.LegalEntityUpdateWithWhereUniqueWithoutAddressInput | Prisma.LegalEntityUpdateWithWhereUniqueWithoutAddressInput[];
465
+ updateMany?: Prisma.LegalEntityUpdateManyWithWhereWithoutAddressInput | Prisma.LegalEntityUpdateManyWithWhereWithoutAddressInput[];
466
+ deleteMany?: Prisma.LegalEntityScalarWhereInput | Prisma.LegalEntityScalarWhereInput[];
467
+ };
468
+ export type LegalEntityUncheckedUpdateManyWithoutAddressNestedInput = {
469
+ create?: Prisma.XOR<Prisma.LegalEntityCreateWithoutAddressInput, Prisma.LegalEntityUncheckedCreateWithoutAddressInput> | Prisma.LegalEntityCreateWithoutAddressInput[] | Prisma.LegalEntityUncheckedCreateWithoutAddressInput[];
470
+ connectOrCreate?: Prisma.LegalEntityCreateOrConnectWithoutAddressInput | Prisma.LegalEntityCreateOrConnectWithoutAddressInput[];
471
+ upsert?: Prisma.LegalEntityUpsertWithWhereUniqueWithoutAddressInput | Prisma.LegalEntityUpsertWithWhereUniqueWithoutAddressInput[];
472
+ createMany?: Prisma.LegalEntityCreateManyAddressInputEnvelope;
473
+ set?: Prisma.LegalEntityWhereUniqueInput | Prisma.LegalEntityWhereUniqueInput[];
474
+ disconnect?: Prisma.LegalEntityWhereUniqueInput | Prisma.LegalEntityWhereUniqueInput[];
475
+ delete?: Prisma.LegalEntityWhereUniqueInput | Prisma.LegalEntityWhereUniqueInput[];
476
+ connect?: Prisma.LegalEntityWhereUniqueInput | Prisma.LegalEntityWhereUniqueInput[];
477
+ update?: Prisma.LegalEntityUpdateWithWhereUniqueWithoutAddressInput | Prisma.LegalEntityUpdateWithWhereUniqueWithoutAddressInput[];
478
+ updateMany?: Prisma.LegalEntityUpdateManyWithWhereWithoutAddressInput | Prisma.LegalEntityUpdateManyWithWhereWithoutAddressInput[];
479
+ deleteMany?: Prisma.LegalEntityScalarWhereInput | Prisma.LegalEntityScalarWhereInput[];
480
+ };
481
+ export type LegalEntityCreateWithoutOrganizationsInput = {
482
+ id?: string;
483
+ name: string;
484
+ taxId: string;
485
+ email?: string | null;
486
+ phone?: string | null;
487
+ createdAt?: Date | string;
488
+ createdBy?: string | null;
489
+ updatedAt?: Date | string;
490
+ updatedBy?: string | null;
491
+ deletedAt?: Date | string | null;
492
+ deletedBy?: string | null;
493
+ address: Prisma.AddressCreateNestedOneWithoutLegalEntityInput;
494
+ };
495
+ export type LegalEntityUncheckedCreateWithoutOrganizationsInput = {
496
+ id?: string;
497
+ name: string;
498
+ taxId: string;
499
+ addressId: string;
500
+ email?: string | null;
501
+ phone?: string | null;
502
+ createdAt?: Date | string;
503
+ createdBy?: string | null;
504
+ updatedAt?: Date | string;
505
+ updatedBy?: string | null;
506
+ deletedAt?: Date | string | null;
507
+ deletedBy?: string | null;
508
+ };
509
+ export type LegalEntityCreateOrConnectWithoutOrganizationsInput = {
510
+ where: Prisma.LegalEntityWhereUniqueInput;
511
+ create: Prisma.XOR<Prisma.LegalEntityCreateWithoutOrganizationsInput, Prisma.LegalEntityUncheckedCreateWithoutOrganizationsInput>;
512
+ };
513
+ export type LegalEntityUpsertWithoutOrganizationsInput = {
514
+ update: Prisma.XOR<Prisma.LegalEntityUpdateWithoutOrganizationsInput, Prisma.LegalEntityUncheckedUpdateWithoutOrganizationsInput>;
515
+ create: Prisma.XOR<Prisma.LegalEntityCreateWithoutOrganizationsInput, Prisma.LegalEntityUncheckedCreateWithoutOrganizationsInput>;
516
+ where?: Prisma.LegalEntityWhereInput;
517
+ };
518
+ export type LegalEntityUpdateToOneWithWhereWithoutOrganizationsInput = {
519
+ where?: Prisma.LegalEntityWhereInput;
520
+ data: Prisma.XOR<Prisma.LegalEntityUpdateWithoutOrganizationsInput, Prisma.LegalEntityUncheckedUpdateWithoutOrganizationsInput>;
521
+ };
522
+ export type LegalEntityUpdateWithoutOrganizationsInput = {
523
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
524
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
525
+ taxId?: Prisma.StringFieldUpdateOperationsInput | string;
526
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
527
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
528
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
529
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
530
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
531
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
532
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
533
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
534
+ address?: Prisma.AddressUpdateOneRequiredWithoutLegalEntityNestedInput;
535
+ };
536
+ export type LegalEntityUncheckedUpdateWithoutOrganizationsInput = {
537
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
538
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
539
+ taxId?: Prisma.StringFieldUpdateOperationsInput | string;
540
+ addressId?: Prisma.StringFieldUpdateOperationsInput | string;
541
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
542
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
543
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
544
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
545
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
546
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
547
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
548
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
549
+ };
550
+ export type LegalEntityCreateWithoutAddressInput = {
551
+ id?: string;
552
+ name: string;
553
+ taxId: string;
554
+ email?: string | null;
555
+ phone?: string | null;
556
+ createdAt?: Date | string;
557
+ createdBy?: string | null;
558
+ updatedAt?: Date | string;
559
+ updatedBy?: string | null;
560
+ deletedAt?: Date | string | null;
561
+ deletedBy?: string | null;
562
+ organizations?: Prisma.OrganizationCreateNestedManyWithoutLegalEntityInput;
563
+ };
564
+ export type LegalEntityUncheckedCreateWithoutAddressInput = {
565
+ id?: string;
566
+ name: string;
567
+ taxId: string;
568
+ email?: string | null;
569
+ phone?: string | null;
570
+ createdAt?: Date | string;
571
+ createdBy?: string | null;
572
+ updatedAt?: Date | string;
573
+ updatedBy?: string | null;
574
+ deletedAt?: Date | string | null;
575
+ deletedBy?: string | null;
576
+ organizations?: Prisma.OrganizationUncheckedCreateNestedManyWithoutLegalEntityInput;
577
+ };
578
+ export type LegalEntityCreateOrConnectWithoutAddressInput = {
579
+ where: Prisma.LegalEntityWhereUniqueInput;
580
+ create: Prisma.XOR<Prisma.LegalEntityCreateWithoutAddressInput, Prisma.LegalEntityUncheckedCreateWithoutAddressInput>;
581
+ };
582
+ export type LegalEntityCreateManyAddressInputEnvelope = {
583
+ data: Prisma.LegalEntityCreateManyAddressInput | Prisma.LegalEntityCreateManyAddressInput[];
584
+ skipDuplicates?: boolean;
585
+ };
586
+ export type LegalEntityUpsertWithWhereUniqueWithoutAddressInput = {
587
+ where: Prisma.LegalEntityWhereUniqueInput;
588
+ update: Prisma.XOR<Prisma.LegalEntityUpdateWithoutAddressInput, Prisma.LegalEntityUncheckedUpdateWithoutAddressInput>;
589
+ create: Prisma.XOR<Prisma.LegalEntityCreateWithoutAddressInput, Prisma.LegalEntityUncheckedCreateWithoutAddressInput>;
590
+ };
591
+ export type LegalEntityUpdateWithWhereUniqueWithoutAddressInput = {
592
+ where: Prisma.LegalEntityWhereUniqueInput;
593
+ data: Prisma.XOR<Prisma.LegalEntityUpdateWithoutAddressInput, Prisma.LegalEntityUncheckedUpdateWithoutAddressInput>;
594
+ };
595
+ export type LegalEntityUpdateManyWithWhereWithoutAddressInput = {
596
+ where: Prisma.LegalEntityScalarWhereInput;
597
+ data: Prisma.XOR<Prisma.LegalEntityUpdateManyMutationInput, Prisma.LegalEntityUncheckedUpdateManyWithoutAddressInput>;
598
+ };
599
+ export type LegalEntityScalarWhereInput = {
600
+ AND?: Prisma.LegalEntityScalarWhereInput | Prisma.LegalEntityScalarWhereInput[];
601
+ OR?: Prisma.LegalEntityScalarWhereInput[];
602
+ NOT?: Prisma.LegalEntityScalarWhereInput | Prisma.LegalEntityScalarWhereInput[];
603
+ id?: Prisma.StringFilter<"LegalEntity"> | string;
604
+ name?: Prisma.StringFilter<"LegalEntity"> | string;
605
+ taxId?: Prisma.StringFilter<"LegalEntity"> | string;
606
+ addressId?: Prisma.StringFilter<"LegalEntity"> | string;
607
+ email?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
608
+ phone?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
609
+ createdAt?: Prisma.DateTimeFilter<"LegalEntity"> | Date | string;
610
+ createdBy?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
611
+ updatedAt?: Prisma.DateTimeFilter<"LegalEntity"> | Date | string;
612
+ updatedBy?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
613
+ deletedAt?: Prisma.DateTimeNullableFilter<"LegalEntity"> | Date | string | null;
614
+ deletedBy?: Prisma.StringNullableFilter<"LegalEntity"> | string | null;
615
+ };
616
+ export type LegalEntityCreateManyAddressInput = {
617
+ id?: string;
618
+ name: string;
619
+ taxId: string;
620
+ email?: string | null;
621
+ phone?: string | null;
622
+ createdAt?: Date | string;
623
+ createdBy?: string | null;
624
+ updatedAt?: Date | string;
625
+ updatedBy?: string | null;
626
+ deletedAt?: Date | string | null;
627
+ deletedBy?: string | null;
628
+ };
629
+ export type LegalEntityUpdateWithoutAddressInput = {
630
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
631
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
632
+ taxId?: Prisma.StringFieldUpdateOperationsInput | string;
633
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
634
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
635
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
636
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
637
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
638
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
639
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
640
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
641
+ organizations?: Prisma.OrganizationUpdateManyWithoutLegalEntityNestedInput;
642
+ };
643
+ export type LegalEntityUncheckedUpdateWithoutAddressInput = {
644
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
645
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
646
+ taxId?: Prisma.StringFieldUpdateOperationsInput | string;
647
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
648
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
649
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
650
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
651
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
652
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
653
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
654
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
655
+ organizations?: Prisma.OrganizationUncheckedUpdateManyWithoutLegalEntityNestedInput;
656
+ };
657
+ export type LegalEntityUncheckedUpdateManyWithoutAddressInput = {
658
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
659
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
660
+ taxId?: Prisma.StringFieldUpdateOperationsInput | string;
661
+ email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
662
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
663
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
664
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
665
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
666
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
667
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
668
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
669
+ };
670
+ /**
671
+ * Count Type LegalEntityCountOutputType
672
+ */
673
+ export type LegalEntityCountOutputType = {
674
+ organizations: number;
675
+ };
676
+ export type LegalEntityCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
677
+ organizations?: boolean | LegalEntityCountOutputTypeCountOrganizationsArgs;
678
+ };
679
+ /**
680
+ * LegalEntityCountOutputType without action
681
+ */
682
+ export type LegalEntityCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
683
+ /**
684
+ * Select specific fields to fetch from the LegalEntityCountOutputType
685
+ */
686
+ select?: Prisma.LegalEntityCountOutputTypeSelect<ExtArgs> | null;
687
+ };
688
+ /**
689
+ * LegalEntityCountOutputType without action
690
+ */
691
+ export type LegalEntityCountOutputTypeCountOrganizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
692
+ where?: Prisma.OrganizationWhereInput;
693
+ };
694
+ export type LegalEntitySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
695
+ id?: boolean;
696
+ name?: boolean;
697
+ taxId?: boolean;
698
+ addressId?: boolean;
699
+ email?: boolean;
700
+ phone?: boolean;
701
+ createdAt?: boolean;
702
+ createdBy?: boolean;
703
+ updatedAt?: boolean;
704
+ updatedBy?: boolean;
705
+ deletedAt?: boolean;
706
+ deletedBy?: boolean;
707
+ address?: boolean | Prisma.AddressDefaultArgs<ExtArgs>;
708
+ organizations?: boolean | Prisma.LegalEntity$organizationsArgs<ExtArgs>;
709
+ _count?: boolean | Prisma.LegalEntityCountOutputTypeDefaultArgs<ExtArgs>;
710
+ }, ExtArgs["result"]["legalEntity"]>;
711
+ export type LegalEntitySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
712
+ id?: boolean;
713
+ name?: boolean;
714
+ taxId?: boolean;
715
+ addressId?: boolean;
716
+ email?: boolean;
717
+ phone?: boolean;
718
+ createdAt?: boolean;
719
+ createdBy?: boolean;
720
+ updatedAt?: boolean;
721
+ updatedBy?: boolean;
722
+ deletedAt?: boolean;
723
+ deletedBy?: boolean;
724
+ address?: boolean | Prisma.AddressDefaultArgs<ExtArgs>;
725
+ }, ExtArgs["result"]["legalEntity"]>;
726
+ export type LegalEntitySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
727
+ id?: boolean;
728
+ name?: boolean;
729
+ taxId?: boolean;
730
+ addressId?: boolean;
731
+ email?: boolean;
732
+ phone?: boolean;
733
+ createdAt?: boolean;
734
+ createdBy?: boolean;
735
+ updatedAt?: boolean;
736
+ updatedBy?: boolean;
737
+ deletedAt?: boolean;
738
+ deletedBy?: boolean;
739
+ address?: boolean | Prisma.AddressDefaultArgs<ExtArgs>;
740
+ }, ExtArgs["result"]["legalEntity"]>;
741
+ export type LegalEntitySelectScalar = {
742
+ id?: boolean;
743
+ name?: boolean;
744
+ taxId?: boolean;
745
+ addressId?: boolean;
746
+ email?: boolean;
747
+ phone?: boolean;
748
+ createdAt?: boolean;
749
+ createdBy?: boolean;
750
+ updatedAt?: boolean;
751
+ updatedBy?: boolean;
752
+ deletedAt?: boolean;
753
+ deletedBy?: boolean;
754
+ };
755
+ export type LegalEntityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "taxId" | "addressId" | "email" | "phone" | "createdAt" | "createdBy" | "updatedAt" | "updatedBy" | "deletedAt" | "deletedBy", ExtArgs["result"]["legalEntity"]>;
756
+ export type LegalEntityInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
757
+ address?: boolean | Prisma.AddressDefaultArgs<ExtArgs>;
758
+ organizations?: boolean | Prisma.LegalEntity$organizationsArgs<ExtArgs>;
759
+ _count?: boolean | Prisma.LegalEntityCountOutputTypeDefaultArgs<ExtArgs>;
760
+ };
761
+ export type LegalEntityIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
762
+ address?: boolean | Prisma.AddressDefaultArgs<ExtArgs>;
763
+ };
764
+ export type LegalEntityIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
765
+ address?: boolean | Prisma.AddressDefaultArgs<ExtArgs>;
766
+ };
767
+ export type $LegalEntityPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
768
+ name: "LegalEntity";
769
+ objects: {
770
+ address: Prisma.$AddressPayload<ExtArgs>;
771
+ organizations: Prisma.$OrganizationPayload<ExtArgs>[];
772
+ };
773
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
774
+ id: string;
775
+ name: string;
776
+ taxId: string;
777
+ addressId: string;
778
+ email: string | null;
779
+ phone: string | null;
780
+ createdAt: Date;
781
+ createdBy: string | null;
782
+ updatedAt: Date;
783
+ updatedBy: string | null;
784
+ deletedAt: Date | null;
785
+ deletedBy: string | null;
786
+ }, ExtArgs["result"]["legalEntity"]>;
787
+ composites: {};
788
+ };
789
+ export type LegalEntityGetPayload<S extends boolean | null | undefined | LegalEntityDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload, S>;
790
+ export type LegalEntityCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<LegalEntityFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
791
+ select?: LegalEntityCountAggregateInputType | true;
792
+ };
793
+ export interface LegalEntityDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
794
+ [K: symbol]: {
795
+ types: Prisma.TypeMap<ExtArgs>['model']['LegalEntity'];
796
+ meta: {
797
+ name: 'LegalEntity';
798
+ };
799
+ };
800
+ /**
801
+ * Find zero or one LegalEntity that matches the filter.
802
+ * @param {LegalEntityFindUniqueArgs} args - Arguments to find a LegalEntity
803
+ * @example
804
+ * // Get one LegalEntity
805
+ * const legalEntity = await prisma.legalEntity.findUnique({
806
+ * where: {
807
+ * // ... provide filter here
808
+ * }
809
+ * })
810
+ */
811
+ 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>;
812
+ /**
813
+ * Find one LegalEntity that matches the filter or throw an error with `error.code='P2025'`
814
+ * if no matches were found.
815
+ * @param {LegalEntityFindUniqueOrThrowArgs} args - Arguments to find a LegalEntity
816
+ * @example
817
+ * // Get one LegalEntity
818
+ * const legalEntity = await prisma.legalEntity.findUniqueOrThrow({
819
+ * where: {
820
+ * // ... provide filter here
821
+ * }
822
+ * })
823
+ */
824
+ 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>;
825
+ /**
826
+ * Find the first LegalEntity that matches the filter.
827
+ * Note, that providing `undefined` is treated as the value not being there.
828
+ * Read more here: https://pris.ly/d/null-undefined
829
+ * @param {LegalEntityFindFirstArgs} args - Arguments to find a LegalEntity
830
+ * @example
831
+ * // Get one LegalEntity
832
+ * const legalEntity = await prisma.legalEntity.findFirst({
833
+ * where: {
834
+ * // ... provide filter here
835
+ * }
836
+ * })
837
+ */
838
+ 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>;
839
+ /**
840
+ * Find the first LegalEntity that matches the filter or
841
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
842
+ * Note, that providing `undefined` is treated as the value not being there.
843
+ * Read more here: https://pris.ly/d/null-undefined
844
+ * @param {LegalEntityFindFirstOrThrowArgs} args - Arguments to find a LegalEntity
845
+ * @example
846
+ * // Get one LegalEntity
847
+ * const legalEntity = await prisma.legalEntity.findFirstOrThrow({
848
+ * where: {
849
+ * // ... provide filter here
850
+ * }
851
+ * })
852
+ */
853
+ 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>;
854
+ /**
855
+ * Find zero or more LegalEntities that matches the filter.
856
+ * Note, that providing `undefined` is treated as the value not being there.
857
+ * Read more here: https://pris.ly/d/null-undefined
858
+ * @param {LegalEntityFindManyArgs} args - Arguments to filter and select certain fields only.
859
+ * @example
860
+ * // Get all LegalEntities
861
+ * const legalEntities = await prisma.legalEntity.findMany()
862
+ *
863
+ * // Get first 10 LegalEntities
864
+ * const legalEntities = await prisma.legalEntity.findMany({ take: 10 })
865
+ *
866
+ * // Only select the `id`
867
+ * const legalEntityWithIdOnly = await prisma.legalEntity.findMany({ select: { id: true } })
868
+ *
869
+ */
870
+ findMany<T extends LegalEntityFindManyArgs>(args?: Prisma.SelectSubset<T, LegalEntityFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
871
+ /**
872
+ * Create a LegalEntity.
873
+ * @param {LegalEntityCreateArgs} args - Arguments to create a LegalEntity.
874
+ * @example
875
+ * // Create one LegalEntity
876
+ * const LegalEntity = await prisma.legalEntity.create({
877
+ * data: {
878
+ * // ... data to create a LegalEntity
879
+ * }
880
+ * })
881
+ *
882
+ */
883
+ 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>;
884
+ /**
885
+ * Create many LegalEntities.
886
+ * @param {LegalEntityCreateManyArgs} args - Arguments to create many LegalEntities.
887
+ * @example
888
+ * // Create many LegalEntities
889
+ * const legalEntity = await prisma.legalEntity.createMany({
890
+ * data: [
891
+ * // ... provide data here
892
+ * ]
893
+ * })
894
+ *
895
+ */
896
+ createMany<T extends LegalEntityCreateManyArgs>(args?: Prisma.SelectSubset<T, LegalEntityCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
897
+ /**
898
+ * Create many LegalEntities and returns the data saved in the database.
899
+ * @param {LegalEntityCreateManyAndReturnArgs} args - Arguments to create many LegalEntities.
900
+ * @example
901
+ * // Create many LegalEntities
902
+ * const legalEntity = await prisma.legalEntity.createManyAndReturn({
903
+ * data: [
904
+ * // ... provide data here
905
+ * ]
906
+ * })
907
+ *
908
+ * // Create many LegalEntities and only return the `id`
909
+ * const legalEntityWithIdOnly = await prisma.legalEntity.createManyAndReturn({
910
+ * select: { id: true },
911
+ * data: [
912
+ * // ... provide data here
913
+ * ]
914
+ * })
915
+ * Note, that providing `undefined` is treated as the value not being there.
916
+ * Read more here: https://pris.ly/d/null-undefined
917
+ *
918
+ */
919
+ createManyAndReturn<T extends LegalEntityCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LegalEntityCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
920
+ /**
921
+ * Delete a LegalEntity.
922
+ * @param {LegalEntityDeleteArgs} args - Arguments to delete one LegalEntity.
923
+ * @example
924
+ * // Delete one LegalEntity
925
+ * const LegalEntity = await prisma.legalEntity.delete({
926
+ * where: {
927
+ * // ... filter to delete one LegalEntity
928
+ * }
929
+ * })
930
+ *
931
+ */
932
+ 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>;
933
+ /**
934
+ * Update one LegalEntity.
935
+ * @param {LegalEntityUpdateArgs} args - Arguments to update one LegalEntity.
936
+ * @example
937
+ * // Update one LegalEntity
938
+ * const legalEntity = await prisma.legalEntity.update({
939
+ * where: {
940
+ * // ... provide filter here
941
+ * },
942
+ * data: {
943
+ * // ... provide data here
944
+ * }
945
+ * })
946
+ *
947
+ */
948
+ 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>;
949
+ /**
950
+ * Delete zero or more LegalEntities.
951
+ * @param {LegalEntityDeleteManyArgs} args - Arguments to filter LegalEntities to delete.
952
+ * @example
953
+ * // Delete a few LegalEntities
954
+ * const { count } = await prisma.legalEntity.deleteMany({
955
+ * where: {
956
+ * // ... provide filter here
957
+ * }
958
+ * })
959
+ *
960
+ */
961
+ deleteMany<T extends LegalEntityDeleteManyArgs>(args?: Prisma.SelectSubset<T, LegalEntityDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
962
+ /**
963
+ * Update zero or more LegalEntities.
964
+ * Note, that providing `undefined` is treated as the value not being there.
965
+ * Read more here: https://pris.ly/d/null-undefined
966
+ * @param {LegalEntityUpdateManyArgs} args - Arguments to update one or more rows.
967
+ * @example
968
+ * // Update many LegalEntities
969
+ * const legalEntity = await prisma.legalEntity.updateMany({
970
+ * where: {
971
+ * // ... provide filter here
972
+ * },
973
+ * data: {
974
+ * // ... provide data here
975
+ * }
976
+ * })
977
+ *
978
+ */
979
+ updateMany<T extends LegalEntityUpdateManyArgs>(args: Prisma.SelectSubset<T, LegalEntityUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
980
+ /**
981
+ * Update zero or more LegalEntities and returns the data updated in the database.
982
+ * @param {LegalEntityUpdateManyAndReturnArgs} args - Arguments to update many LegalEntities.
983
+ * @example
984
+ * // Update many LegalEntities
985
+ * const legalEntity = await prisma.legalEntity.updateManyAndReturn({
986
+ * where: {
987
+ * // ... provide filter here
988
+ * },
989
+ * data: [
990
+ * // ... provide data here
991
+ * ]
992
+ * })
993
+ *
994
+ * // Update zero or more LegalEntities and only return the `id`
995
+ * const legalEntityWithIdOnly = await prisma.legalEntity.updateManyAndReturn({
996
+ * select: { id: true },
997
+ * where: {
998
+ * // ... provide filter here
999
+ * },
1000
+ * data: [
1001
+ * // ... provide data here
1002
+ * ]
1003
+ * })
1004
+ * Note, that providing `undefined` is treated as the value not being there.
1005
+ * Read more here: https://pris.ly/d/null-undefined
1006
+ *
1007
+ */
1008
+ updateManyAndReturn<T extends LegalEntityUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LegalEntityUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1009
+ /**
1010
+ * Create or update one LegalEntity.
1011
+ * @param {LegalEntityUpsertArgs} args - Arguments to update or create a LegalEntity.
1012
+ * @example
1013
+ * // Update or create a LegalEntity
1014
+ * const legalEntity = await prisma.legalEntity.upsert({
1015
+ * create: {
1016
+ * // ... data to create a LegalEntity
1017
+ * },
1018
+ * update: {
1019
+ * // ... in case it already exists, update
1020
+ * },
1021
+ * where: {
1022
+ * // ... the filter for the LegalEntity we want to update
1023
+ * }
1024
+ * })
1025
+ */
1026
+ 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>;
1027
+ /**
1028
+ * Count the number of LegalEntities.
1029
+ * Note, that providing `undefined` is treated as the value not being there.
1030
+ * Read more here: https://pris.ly/d/null-undefined
1031
+ * @param {LegalEntityCountArgs} args - Arguments to filter LegalEntities to count.
1032
+ * @example
1033
+ * // Count the number of LegalEntities
1034
+ * const count = await prisma.legalEntity.count({
1035
+ * where: {
1036
+ * // ... the filter for the LegalEntities we want to count
1037
+ * }
1038
+ * })
1039
+ **/
1040
+ 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>;
1041
+ /**
1042
+ * Allows you to perform aggregations operations on a LegalEntity.
1043
+ * Note, that providing `undefined` is treated as the value not being there.
1044
+ * Read more here: https://pris.ly/d/null-undefined
1045
+ * @param {LegalEntityAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1046
+ * @example
1047
+ * // Ordered by age ascending
1048
+ * // Where email contains prisma.io
1049
+ * // Limited to the 10 users
1050
+ * const aggregations = await prisma.user.aggregate({
1051
+ * _avg: {
1052
+ * age: true,
1053
+ * },
1054
+ * where: {
1055
+ * email: {
1056
+ * contains: "prisma.io",
1057
+ * },
1058
+ * },
1059
+ * orderBy: {
1060
+ * age: "asc",
1061
+ * },
1062
+ * take: 10,
1063
+ * })
1064
+ **/
1065
+ aggregate<T extends LegalEntityAggregateArgs>(args: Prisma.Subset<T, LegalEntityAggregateArgs>): Prisma.PrismaPromise<GetLegalEntityAggregateType<T>>;
1066
+ /**
1067
+ * Group by LegalEntity.
1068
+ * Note, that providing `undefined` is treated as the value not being there.
1069
+ * Read more here: https://pris.ly/d/null-undefined
1070
+ * @param {LegalEntityGroupByArgs} args - Group by arguments.
1071
+ * @example
1072
+ * // Group by city, order by createdAt, get count
1073
+ * const result = await prisma.user.groupBy({
1074
+ * by: ['city', 'createdAt'],
1075
+ * orderBy: {
1076
+ * createdAt: true
1077
+ * },
1078
+ * _count: {
1079
+ * _all: true
1080
+ * },
1081
+ * })
1082
+ *
1083
+ **/
1084
+ 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 ? {
1085
+ orderBy: LegalEntityGroupByArgs['orderBy'];
1086
+ } : {
1087
+ orderBy?: LegalEntityGroupByArgs['orderBy'];
1088
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1089
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1090
+ Error,
1091
+ 'Field ',
1092
+ P,
1093
+ ` in "having" needs to be provided in "by"`
1094
+ ];
1095
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1096
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1097
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1098
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1099
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1100
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1101
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, LegalEntityGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLegalEntityGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1102
+ /**
1103
+ * Fields of the LegalEntity model
1104
+ */
1105
+ readonly fields: LegalEntityFieldRefs;
1106
+ }
1107
+ /**
1108
+ * The delegate class that acts as a "Promise-like" for LegalEntity.
1109
+ * Why is this prefixed with `Prisma__`?
1110
+ * Because we want to prevent naming conflicts as mentioned in
1111
+ * https://github.com/prisma/prisma-client-js/issues/707
1112
+ */
1113
+ export interface Prisma__LegalEntityClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1114
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1115
+ 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>;
1116
+ 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>;
1117
+ /**
1118
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1119
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1120
+ * @param onrejected The callback to execute when the Promise is rejected.
1121
+ * @returns A Promise for the completion of which ever callback is executed.
1122
+ */
1123
+ 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>;
1124
+ /**
1125
+ * Attaches a callback for only the rejection of the Promise.
1126
+ * @param onrejected The callback to execute when the Promise is rejected.
1127
+ * @returns A Promise for the completion of the callback.
1128
+ */
1129
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1130
+ /**
1131
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1132
+ * resolved value cannot be modified from the callback.
1133
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1134
+ * @returns A Promise for the completion of the callback.
1135
+ */
1136
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1137
+ }
1138
+ /**
1139
+ * Fields of the LegalEntity model
1140
+ */
1141
+ export interface LegalEntityFieldRefs {
1142
+ readonly id: Prisma.FieldRef<"LegalEntity", 'String'>;
1143
+ readonly name: Prisma.FieldRef<"LegalEntity", 'String'>;
1144
+ readonly taxId: Prisma.FieldRef<"LegalEntity", 'String'>;
1145
+ readonly addressId: Prisma.FieldRef<"LegalEntity", 'String'>;
1146
+ readonly email: Prisma.FieldRef<"LegalEntity", 'String'>;
1147
+ readonly phone: Prisma.FieldRef<"LegalEntity", 'String'>;
1148
+ readonly createdAt: Prisma.FieldRef<"LegalEntity", 'DateTime'>;
1149
+ readonly createdBy: Prisma.FieldRef<"LegalEntity", 'String'>;
1150
+ readonly updatedAt: Prisma.FieldRef<"LegalEntity", 'DateTime'>;
1151
+ readonly updatedBy: Prisma.FieldRef<"LegalEntity", 'String'>;
1152
+ readonly deletedAt: Prisma.FieldRef<"LegalEntity", 'DateTime'>;
1153
+ readonly deletedBy: Prisma.FieldRef<"LegalEntity", 'String'>;
1154
+ }
1155
+ /**
1156
+ * LegalEntity findUnique
1157
+ */
1158
+ export type LegalEntityFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1159
+ /**
1160
+ * Select specific fields to fetch from the LegalEntity
1161
+ */
1162
+ select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1163
+ /**
1164
+ * Omit specific fields from the LegalEntity
1165
+ */
1166
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1167
+ /**
1168
+ * Choose, which related nodes to fetch as well
1169
+ */
1170
+ include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1171
+ /**
1172
+ * Filter, which LegalEntity to fetch.
1173
+ */
1174
+ where: Prisma.LegalEntityWhereUniqueInput;
1175
+ };
1176
+ /**
1177
+ * LegalEntity findUniqueOrThrow
1178
+ */
1179
+ export type LegalEntityFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1180
+ /**
1181
+ * Select specific fields to fetch from the LegalEntity
1182
+ */
1183
+ select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1184
+ /**
1185
+ * Omit specific fields from the LegalEntity
1186
+ */
1187
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1188
+ /**
1189
+ * Choose, which related nodes to fetch as well
1190
+ */
1191
+ include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1192
+ /**
1193
+ * Filter, which LegalEntity to fetch.
1194
+ */
1195
+ where: Prisma.LegalEntityWhereUniqueInput;
1196
+ };
1197
+ /**
1198
+ * LegalEntity findFirst
1199
+ */
1200
+ export type LegalEntityFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1201
+ /**
1202
+ * Select specific fields to fetch from the LegalEntity
1203
+ */
1204
+ select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1205
+ /**
1206
+ * Omit specific fields from the LegalEntity
1207
+ */
1208
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1209
+ /**
1210
+ * Choose, which related nodes to fetch as well
1211
+ */
1212
+ include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1213
+ /**
1214
+ * Filter, which LegalEntity to fetch.
1215
+ */
1216
+ where?: Prisma.LegalEntityWhereInput;
1217
+ /**
1218
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1219
+ *
1220
+ * Determine the order of LegalEntities to fetch.
1221
+ */
1222
+ orderBy?: Prisma.LegalEntityOrderByWithRelationInput | Prisma.LegalEntityOrderByWithRelationInput[];
1223
+ /**
1224
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1225
+ *
1226
+ * Sets the position for searching for LegalEntities.
1227
+ */
1228
+ cursor?: Prisma.LegalEntityWhereUniqueInput;
1229
+ /**
1230
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1231
+ *
1232
+ * Take `±n` LegalEntities from the position of the cursor.
1233
+ */
1234
+ take?: number;
1235
+ /**
1236
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1237
+ *
1238
+ * Skip the first `n` LegalEntities.
1239
+ */
1240
+ skip?: number;
1241
+ /**
1242
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1243
+ *
1244
+ * Filter by unique combinations of LegalEntities.
1245
+ */
1246
+ distinct?: Prisma.LegalEntityScalarFieldEnum | Prisma.LegalEntityScalarFieldEnum[];
1247
+ };
1248
+ /**
1249
+ * LegalEntity findFirstOrThrow
1250
+ */
1251
+ export type LegalEntityFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1252
+ /**
1253
+ * Select specific fields to fetch from the LegalEntity
1254
+ */
1255
+ select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1256
+ /**
1257
+ * Omit specific fields from the LegalEntity
1258
+ */
1259
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1260
+ /**
1261
+ * Choose, which related nodes to fetch as well
1262
+ */
1263
+ include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1264
+ /**
1265
+ * Filter, which LegalEntity to fetch.
1266
+ */
1267
+ where?: Prisma.LegalEntityWhereInput;
1268
+ /**
1269
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1270
+ *
1271
+ * Determine the order of LegalEntities to fetch.
1272
+ */
1273
+ orderBy?: Prisma.LegalEntityOrderByWithRelationInput | Prisma.LegalEntityOrderByWithRelationInput[];
1274
+ /**
1275
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1276
+ *
1277
+ * Sets the position for searching for LegalEntities.
1278
+ */
1279
+ cursor?: Prisma.LegalEntityWhereUniqueInput;
1280
+ /**
1281
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1282
+ *
1283
+ * Take `±n` LegalEntities from the position of the cursor.
1284
+ */
1285
+ take?: number;
1286
+ /**
1287
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1288
+ *
1289
+ * Skip the first `n` LegalEntities.
1290
+ */
1291
+ skip?: number;
1292
+ /**
1293
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1294
+ *
1295
+ * Filter by unique combinations of LegalEntities.
1296
+ */
1297
+ distinct?: Prisma.LegalEntityScalarFieldEnum | Prisma.LegalEntityScalarFieldEnum[];
1298
+ };
1299
+ /**
1300
+ * LegalEntity findMany
1301
+ */
1302
+ export type LegalEntityFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1303
+ /**
1304
+ * Select specific fields to fetch from the LegalEntity
1305
+ */
1306
+ select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1307
+ /**
1308
+ * Omit specific fields from the LegalEntity
1309
+ */
1310
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1311
+ /**
1312
+ * Choose, which related nodes to fetch as well
1313
+ */
1314
+ include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1315
+ /**
1316
+ * Filter, which LegalEntities to fetch.
1317
+ */
1318
+ where?: Prisma.LegalEntityWhereInput;
1319
+ /**
1320
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1321
+ *
1322
+ * Determine the order of LegalEntities to fetch.
1323
+ */
1324
+ orderBy?: Prisma.LegalEntityOrderByWithRelationInput | Prisma.LegalEntityOrderByWithRelationInput[];
1325
+ /**
1326
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1327
+ *
1328
+ * Sets the position for listing LegalEntities.
1329
+ */
1330
+ cursor?: Prisma.LegalEntityWhereUniqueInput;
1331
+ /**
1332
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1333
+ *
1334
+ * Take `±n` LegalEntities from the position of the cursor.
1335
+ */
1336
+ take?: number;
1337
+ /**
1338
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1339
+ *
1340
+ * Skip the first `n` LegalEntities.
1341
+ */
1342
+ skip?: number;
1343
+ distinct?: Prisma.LegalEntityScalarFieldEnum | Prisma.LegalEntityScalarFieldEnum[];
1344
+ };
1345
+ /**
1346
+ * LegalEntity create
1347
+ */
1348
+ export type LegalEntityCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1349
+ /**
1350
+ * Select specific fields to fetch from the LegalEntity
1351
+ */
1352
+ select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1353
+ /**
1354
+ * Omit specific fields from the LegalEntity
1355
+ */
1356
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1357
+ /**
1358
+ * Choose, which related nodes to fetch as well
1359
+ */
1360
+ include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1361
+ /**
1362
+ * The data needed to create a LegalEntity.
1363
+ */
1364
+ data: Prisma.XOR<Prisma.LegalEntityCreateInput, Prisma.LegalEntityUncheckedCreateInput>;
1365
+ };
1366
+ /**
1367
+ * LegalEntity createMany
1368
+ */
1369
+ export type LegalEntityCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1370
+ /**
1371
+ * The data used to create many LegalEntities.
1372
+ */
1373
+ data: Prisma.LegalEntityCreateManyInput | Prisma.LegalEntityCreateManyInput[];
1374
+ skipDuplicates?: boolean;
1375
+ };
1376
+ /**
1377
+ * LegalEntity createManyAndReturn
1378
+ */
1379
+ export type LegalEntityCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1380
+ /**
1381
+ * Select specific fields to fetch from the LegalEntity
1382
+ */
1383
+ select?: Prisma.LegalEntitySelectCreateManyAndReturn<ExtArgs> | null;
1384
+ /**
1385
+ * Omit specific fields from the LegalEntity
1386
+ */
1387
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1388
+ /**
1389
+ * The data used to create many LegalEntities.
1390
+ */
1391
+ data: Prisma.LegalEntityCreateManyInput | Prisma.LegalEntityCreateManyInput[];
1392
+ skipDuplicates?: boolean;
1393
+ /**
1394
+ * Choose, which related nodes to fetch as well
1395
+ */
1396
+ include?: Prisma.LegalEntityIncludeCreateManyAndReturn<ExtArgs> | null;
1397
+ };
1398
+ /**
1399
+ * LegalEntity update
1400
+ */
1401
+ export type LegalEntityUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1402
+ /**
1403
+ * Select specific fields to fetch from the LegalEntity
1404
+ */
1405
+ select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1406
+ /**
1407
+ * Omit specific fields from the LegalEntity
1408
+ */
1409
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1410
+ /**
1411
+ * Choose, which related nodes to fetch as well
1412
+ */
1413
+ include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1414
+ /**
1415
+ * The data needed to update a LegalEntity.
1416
+ */
1417
+ data: Prisma.XOR<Prisma.LegalEntityUpdateInput, Prisma.LegalEntityUncheckedUpdateInput>;
1418
+ /**
1419
+ * Choose, which LegalEntity to update.
1420
+ */
1421
+ where: Prisma.LegalEntityWhereUniqueInput;
1422
+ };
1423
+ /**
1424
+ * LegalEntity updateMany
1425
+ */
1426
+ export type LegalEntityUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1427
+ /**
1428
+ * The data used to update LegalEntities.
1429
+ */
1430
+ data: Prisma.XOR<Prisma.LegalEntityUpdateManyMutationInput, Prisma.LegalEntityUncheckedUpdateManyInput>;
1431
+ /**
1432
+ * Filter which LegalEntities to update
1433
+ */
1434
+ where?: Prisma.LegalEntityWhereInput;
1435
+ /**
1436
+ * Limit how many LegalEntities to update.
1437
+ */
1438
+ limit?: number;
1439
+ };
1440
+ /**
1441
+ * LegalEntity updateManyAndReturn
1442
+ */
1443
+ export type LegalEntityUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1444
+ /**
1445
+ * Select specific fields to fetch from the LegalEntity
1446
+ */
1447
+ select?: Prisma.LegalEntitySelectUpdateManyAndReturn<ExtArgs> | null;
1448
+ /**
1449
+ * Omit specific fields from the LegalEntity
1450
+ */
1451
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1452
+ /**
1453
+ * The data used to update LegalEntities.
1454
+ */
1455
+ data: Prisma.XOR<Prisma.LegalEntityUpdateManyMutationInput, Prisma.LegalEntityUncheckedUpdateManyInput>;
1456
+ /**
1457
+ * Filter which LegalEntities to update
1458
+ */
1459
+ where?: Prisma.LegalEntityWhereInput;
1460
+ /**
1461
+ * Limit how many LegalEntities to update.
1462
+ */
1463
+ limit?: number;
1464
+ /**
1465
+ * Choose, which related nodes to fetch as well
1466
+ */
1467
+ include?: Prisma.LegalEntityIncludeUpdateManyAndReturn<ExtArgs> | null;
1468
+ };
1469
+ /**
1470
+ * LegalEntity upsert
1471
+ */
1472
+ export type LegalEntityUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1473
+ /**
1474
+ * Select specific fields to fetch from the LegalEntity
1475
+ */
1476
+ select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1477
+ /**
1478
+ * Omit specific fields from the LegalEntity
1479
+ */
1480
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1481
+ /**
1482
+ * Choose, which related nodes to fetch as well
1483
+ */
1484
+ include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1485
+ /**
1486
+ * The filter to search for the LegalEntity to update in case it exists.
1487
+ */
1488
+ where: Prisma.LegalEntityWhereUniqueInput;
1489
+ /**
1490
+ * In case the LegalEntity found by the `where` argument doesn't exist, create a new LegalEntity with this data.
1491
+ */
1492
+ create: Prisma.XOR<Prisma.LegalEntityCreateInput, Prisma.LegalEntityUncheckedCreateInput>;
1493
+ /**
1494
+ * In case the LegalEntity was found with the provided `where` argument, update it with this data.
1495
+ */
1496
+ update: Prisma.XOR<Prisma.LegalEntityUpdateInput, Prisma.LegalEntityUncheckedUpdateInput>;
1497
+ };
1498
+ /**
1499
+ * LegalEntity delete
1500
+ */
1501
+ export type LegalEntityDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1502
+ /**
1503
+ * Select specific fields to fetch from the LegalEntity
1504
+ */
1505
+ select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1506
+ /**
1507
+ * Omit specific fields from the LegalEntity
1508
+ */
1509
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1510
+ /**
1511
+ * Choose, which related nodes to fetch as well
1512
+ */
1513
+ include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1514
+ /**
1515
+ * Filter which LegalEntity to delete.
1516
+ */
1517
+ where: Prisma.LegalEntityWhereUniqueInput;
1518
+ };
1519
+ /**
1520
+ * LegalEntity deleteMany
1521
+ */
1522
+ export type LegalEntityDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1523
+ /**
1524
+ * Filter which LegalEntities to delete
1525
+ */
1526
+ where?: Prisma.LegalEntityWhereInput;
1527
+ /**
1528
+ * Limit how many LegalEntities to delete.
1529
+ */
1530
+ limit?: number;
1531
+ };
1532
+ /**
1533
+ * LegalEntity.organizations
1534
+ */
1535
+ export type LegalEntity$organizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1536
+ /**
1537
+ * Select specific fields to fetch from the Organization
1538
+ */
1539
+ select?: Prisma.OrganizationSelect<ExtArgs> | null;
1540
+ /**
1541
+ * Omit specific fields from the Organization
1542
+ */
1543
+ omit?: Prisma.OrganizationOmit<ExtArgs> | null;
1544
+ /**
1545
+ * Choose, which related nodes to fetch as well
1546
+ */
1547
+ include?: Prisma.OrganizationInclude<ExtArgs> | null;
1548
+ where?: Prisma.OrganizationWhereInput;
1549
+ orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[];
1550
+ cursor?: Prisma.OrganizationWhereUniqueInput;
1551
+ take?: number;
1552
+ skip?: number;
1553
+ distinct?: Prisma.OrganizationScalarFieldEnum | Prisma.OrganizationScalarFieldEnum[];
1554
+ };
1555
+ /**
1556
+ * LegalEntity without action
1557
+ */
1558
+ export type LegalEntityDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1559
+ /**
1560
+ * Select specific fields to fetch from the LegalEntity
1561
+ */
1562
+ select?: Prisma.LegalEntitySelect<ExtArgs> | null;
1563
+ /**
1564
+ * Omit specific fields from the LegalEntity
1565
+ */
1566
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
1567
+ /**
1568
+ * Choose, which related nodes to fetch as well
1569
+ */
1570
+ include?: Prisma.LegalEntityInclude<ExtArgs> | null;
1571
+ };
1572
+ export {};