@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,2337 @@
1
+ /**
2
+ * This file exports the `Address` 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 Address
10
+ *
11
+ */
12
+ export type AddressModel = runtime.Types.Result.DefaultSelection<Prisma.$AddressPayload>;
13
+ export type AggregateAddress = {
14
+ _count: AddressCountAggregateOutputType | null;
15
+ _avg: AddressAvgAggregateOutputType | null;
16
+ _sum: AddressSumAggregateOutputType | null;
17
+ _min: AddressMinAggregateOutputType | null;
18
+ _max: AddressMaxAggregateOutputType | null;
19
+ };
20
+ export type AddressAvgAggregateOutputType = {
21
+ latitude: number | null;
22
+ longitude: number | null;
23
+ };
24
+ export type AddressSumAggregateOutputType = {
25
+ latitude: number | null;
26
+ longitude: number | null;
27
+ };
28
+ export type AddressMinAggregateOutputType = {
29
+ id: string | null;
30
+ firstname: string | null;
31
+ lastname: string | null;
32
+ phone: string | null;
33
+ addressLineOne: string | null;
34
+ doorNumber: string | null;
35
+ addressLineTwo: string | null;
36
+ zipCode: string | null;
37
+ placeId: string | null;
38
+ deliveryInstructions: string | null;
39
+ city: string | null;
40
+ country: string | null;
41
+ latitude: number | null;
42
+ longitude: number | null;
43
+ isDefault: boolean | null;
44
+ createdAt: Date | null;
45
+ createdBy: string | null;
46
+ updatedAt: Date | null;
47
+ updatedBy: string | null;
48
+ deletedAt: Date | null;
49
+ deletedBy: string | null;
50
+ };
51
+ export type AddressMaxAggregateOutputType = {
52
+ id: string | null;
53
+ firstname: string | null;
54
+ lastname: string | null;
55
+ phone: string | null;
56
+ addressLineOne: string | null;
57
+ doorNumber: string | null;
58
+ addressLineTwo: string | null;
59
+ zipCode: string | null;
60
+ placeId: string | null;
61
+ deliveryInstructions: string | null;
62
+ city: string | null;
63
+ country: string | null;
64
+ latitude: number | null;
65
+ longitude: number | null;
66
+ isDefault: boolean | null;
67
+ createdAt: Date | null;
68
+ createdBy: string | null;
69
+ updatedAt: Date | null;
70
+ updatedBy: string | null;
71
+ deletedAt: Date | null;
72
+ deletedBy: string | null;
73
+ };
74
+ export type AddressCountAggregateOutputType = {
75
+ id: number;
76
+ firstname: number;
77
+ lastname: number;
78
+ phone: number;
79
+ addressLineOne: number;
80
+ doorNumber: number;
81
+ addressLineTwo: number;
82
+ zipCode: number;
83
+ placeId: number;
84
+ deliveryInstructions: number;
85
+ city: number;
86
+ country: number;
87
+ latitude: number;
88
+ longitude: number;
89
+ isDefault: number;
90
+ createdAt: number;
91
+ createdBy: number;
92
+ updatedAt: number;
93
+ updatedBy: number;
94
+ deletedAt: number;
95
+ deletedBy: number;
96
+ _all: number;
97
+ };
98
+ export type AddressAvgAggregateInputType = {
99
+ latitude?: true;
100
+ longitude?: true;
101
+ };
102
+ export type AddressSumAggregateInputType = {
103
+ latitude?: true;
104
+ longitude?: true;
105
+ };
106
+ export type AddressMinAggregateInputType = {
107
+ id?: true;
108
+ firstname?: true;
109
+ lastname?: true;
110
+ phone?: true;
111
+ addressLineOne?: true;
112
+ doorNumber?: true;
113
+ addressLineTwo?: true;
114
+ zipCode?: true;
115
+ placeId?: true;
116
+ deliveryInstructions?: true;
117
+ city?: true;
118
+ country?: true;
119
+ latitude?: true;
120
+ longitude?: true;
121
+ isDefault?: true;
122
+ createdAt?: true;
123
+ createdBy?: true;
124
+ updatedAt?: true;
125
+ updatedBy?: true;
126
+ deletedAt?: true;
127
+ deletedBy?: true;
128
+ };
129
+ export type AddressMaxAggregateInputType = {
130
+ id?: true;
131
+ firstname?: true;
132
+ lastname?: true;
133
+ phone?: true;
134
+ addressLineOne?: true;
135
+ doorNumber?: true;
136
+ addressLineTwo?: true;
137
+ zipCode?: true;
138
+ placeId?: true;
139
+ deliveryInstructions?: true;
140
+ city?: true;
141
+ country?: true;
142
+ latitude?: true;
143
+ longitude?: true;
144
+ isDefault?: true;
145
+ createdAt?: true;
146
+ createdBy?: true;
147
+ updatedAt?: true;
148
+ updatedBy?: true;
149
+ deletedAt?: true;
150
+ deletedBy?: true;
151
+ };
152
+ export type AddressCountAggregateInputType = {
153
+ id?: true;
154
+ firstname?: true;
155
+ lastname?: true;
156
+ phone?: true;
157
+ addressLineOne?: true;
158
+ doorNumber?: true;
159
+ addressLineTwo?: true;
160
+ zipCode?: true;
161
+ placeId?: true;
162
+ deliveryInstructions?: true;
163
+ city?: true;
164
+ country?: true;
165
+ latitude?: true;
166
+ longitude?: true;
167
+ isDefault?: true;
168
+ createdAt?: true;
169
+ createdBy?: true;
170
+ updatedAt?: true;
171
+ updatedBy?: true;
172
+ deletedAt?: true;
173
+ deletedBy?: true;
174
+ _all?: true;
175
+ };
176
+ export type AddressAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
177
+ /**
178
+ * Filter which Address to aggregate.
179
+ */
180
+ where?: Prisma.AddressWhereInput;
181
+ /**
182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
183
+ *
184
+ * Determine the order of Addresses to fetch.
185
+ */
186
+ orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[];
187
+ /**
188
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
189
+ *
190
+ * Sets the start position
191
+ */
192
+ cursor?: Prisma.AddressWhereUniqueInput;
193
+ /**
194
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
195
+ *
196
+ * Take `±n` Addresses from the position of the cursor.
197
+ */
198
+ take?: number;
199
+ /**
200
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
201
+ *
202
+ * Skip the first `n` Addresses.
203
+ */
204
+ skip?: number;
205
+ /**
206
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
207
+ *
208
+ * Count returned Addresses
209
+ **/
210
+ _count?: true | AddressCountAggregateInputType;
211
+ /**
212
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
213
+ *
214
+ * Select which fields to average
215
+ **/
216
+ _avg?: AddressAvgAggregateInputType;
217
+ /**
218
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
219
+ *
220
+ * Select which fields to sum
221
+ **/
222
+ _sum?: AddressSumAggregateInputType;
223
+ /**
224
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
225
+ *
226
+ * Select which fields to find the minimum value
227
+ **/
228
+ _min?: AddressMinAggregateInputType;
229
+ /**
230
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
231
+ *
232
+ * Select which fields to find the maximum value
233
+ **/
234
+ _max?: AddressMaxAggregateInputType;
235
+ };
236
+ export type GetAddressAggregateType<T extends AddressAggregateArgs> = {
237
+ [P in keyof T & keyof AggregateAddress]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAddress[P]> : Prisma.GetScalarType<T[P], AggregateAddress[P]>;
238
+ };
239
+ export type AddressGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
240
+ where?: Prisma.AddressWhereInput;
241
+ orderBy?: Prisma.AddressOrderByWithAggregationInput | Prisma.AddressOrderByWithAggregationInput[];
242
+ by: Prisma.AddressScalarFieldEnum[] | Prisma.AddressScalarFieldEnum;
243
+ having?: Prisma.AddressScalarWhereWithAggregatesInput;
244
+ take?: number;
245
+ skip?: number;
246
+ _count?: AddressCountAggregateInputType | true;
247
+ _avg?: AddressAvgAggregateInputType;
248
+ _sum?: AddressSumAggregateInputType;
249
+ _min?: AddressMinAggregateInputType;
250
+ _max?: AddressMaxAggregateInputType;
251
+ };
252
+ export type AddressGroupByOutputType = {
253
+ id: string;
254
+ firstname: string | null;
255
+ lastname: string | null;
256
+ phone: string | null;
257
+ addressLineOne: string;
258
+ doorNumber: string | null;
259
+ addressLineTwo: string | null;
260
+ zipCode: string | null;
261
+ placeId: string | null;
262
+ deliveryInstructions: string | null;
263
+ city: string;
264
+ country: string | null;
265
+ latitude: number | null;
266
+ longitude: number | null;
267
+ isDefault: boolean;
268
+ createdAt: Date;
269
+ createdBy: string | null;
270
+ updatedAt: Date;
271
+ updatedBy: string | null;
272
+ deletedAt: Date | null;
273
+ deletedBy: string | null;
274
+ _count: AddressCountAggregateOutputType | null;
275
+ _avg: AddressAvgAggregateOutputType | null;
276
+ _sum: AddressSumAggregateOutputType | null;
277
+ _min: AddressMinAggregateOutputType | null;
278
+ _max: AddressMaxAggregateOutputType | null;
279
+ };
280
+ type GetAddressGroupByPayload<T extends AddressGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AddressGroupByOutputType, T['by']> & {
281
+ [P in ((keyof T) & (keyof AddressGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AddressGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AddressGroupByOutputType[P]>;
282
+ }>>;
283
+ export type AddressWhereInput = {
284
+ AND?: Prisma.AddressWhereInput | Prisma.AddressWhereInput[];
285
+ OR?: Prisma.AddressWhereInput[];
286
+ NOT?: Prisma.AddressWhereInput | Prisma.AddressWhereInput[];
287
+ id?: Prisma.StringFilter<"Address"> | string;
288
+ firstname?: Prisma.StringNullableFilter<"Address"> | string | null;
289
+ lastname?: Prisma.StringNullableFilter<"Address"> | string | null;
290
+ phone?: Prisma.StringNullableFilter<"Address"> | string | null;
291
+ addressLineOne?: Prisma.StringFilter<"Address"> | string;
292
+ doorNumber?: Prisma.StringNullableFilter<"Address"> | string | null;
293
+ addressLineTwo?: Prisma.StringNullableFilter<"Address"> | string | null;
294
+ zipCode?: Prisma.StringNullableFilter<"Address"> | string | null;
295
+ placeId?: Prisma.StringNullableFilter<"Address"> | string | null;
296
+ deliveryInstructions?: Prisma.StringNullableFilter<"Address"> | string | null;
297
+ city?: Prisma.StringFilter<"Address"> | string;
298
+ country?: Prisma.StringNullableFilter<"Address"> | string | null;
299
+ latitude?: Prisma.FloatNullableFilter<"Address"> | number | null;
300
+ longitude?: Prisma.FloatNullableFilter<"Address"> | number | null;
301
+ isDefault?: Prisma.BoolFilter<"Address"> | boolean;
302
+ createdAt?: Prisma.DateTimeFilter<"Address"> | Date | string;
303
+ createdBy?: Prisma.StringNullableFilter<"Address"> | string | null;
304
+ updatedAt?: Prisma.DateTimeFilter<"Address"> | Date | string;
305
+ updatedBy?: Prisma.StringNullableFilter<"Address"> | string | null;
306
+ deletedAt?: Prisma.DateTimeNullableFilter<"Address"> | Date | string | null;
307
+ deletedBy?: Prisma.StringNullableFilter<"Address"> | string | null;
308
+ LegalEntity?: Prisma.LegalEntityListRelationFilter;
309
+ organizations?: Prisma.OrganizationListRelationFilter;
310
+ users?: Prisma.UserListRelationFilter;
311
+ orders?: Prisma.OrderListRelationFilter;
312
+ };
313
+ export type AddressOrderByWithRelationInput = {
314
+ id?: Prisma.SortOrder;
315
+ firstname?: Prisma.SortOrderInput | Prisma.SortOrder;
316
+ lastname?: Prisma.SortOrderInput | Prisma.SortOrder;
317
+ phone?: Prisma.SortOrderInput | Prisma.SortOrder;
318
+ addressLineOne?: Prisma.SortOrder;
319
+ doorNumber?: Prisma.SortOrderInput | Prisma.SortOrder;
320
+ addressLineTwo?: Prisma.SortOrderInput | Prisma.SortOrder;
321
+ zipCode?: Prisma.SortOrderInput | Prisma.SortOrder;
322
+ placeId?: Prisma.SortOrderInput | Prisma.SortOrder;
323
+ deliveryInstructions?: Prisma.SortOrderInput | Prisma.SortOrder;
324
+ city?: Prisma.SortOrder;
325
+ country?: Prisma.SortOrderInput | Prisma.SortOrder;
326
+ latitude?: Prisma.SortOrderInput | Prisma.SortOrder;
327
+ longitude?: Prisma.SortOrderInput | Prisma.SortOrder;
328
+ isDefault?: Prisma.SortOrder;
329
+ createdAt?: Prisma.SortOrder;
330
+ createdBy?: Prisma.SortOrderInput | Prisma.SortOrder;
331
+ updatedAt?: Prisma.SortOrder;
332
+ updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
333
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
334
+ deletedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
335
+ LegalEntity?: Prisma.LegalEntityOrderByRelationAggregateInput;
336
+ organizations?: Prisma.OrganizationOrderByRelationAggregateInput;
337
+ users?: Prisma.UserOrderByRelationAggregateInput;
338
+ orders?: Prisma.OrderOrderByRelationAggregateInput;
339
+ };
340
+ export type AddressWhereUniqueInput = Prisma.AtLeast<{
341
+ id?: string;
342
+ AND?: Prisma.AddressWhereInput | Prisma.AddressWhereInput[];
343
+ OR?: Prisma.AddressWhereInput[];
344
+ NOT?: Prisma.AddressWhereInput | Prisma.AddressWhereInput[];
345
+ firstname?: Prisma.StringNullableFilter<"Address"> | string | null;
346
+ lastname?: Prisma.StringNullableFilter<"Address"> | string | null;
347
+ phone?: Prisma.StringNullableFilter<"Address"> | string | null;
348
+ addressLineOne?: Prisma.StringFilter<"Address"> | string;
349
+ doorNumber?: Prisma.StringNullableFilter<"Address"> | string | null;
350
+ addressLineTwo?: Prisma.StringNullableFilter<"Address"> | string | null;
351
+ zipCode?: Prisma.StringNullableFilter<"Address"> | string | null;
352
+ placeId?: Prisma.StringNullableFilter<"Address"> | string | null;
353
+ deliveryInstructions?: Prisma.StringNullableFilter<"Address"> | string | null;
354
+ city?: Prisma.StringFilter<"Address"> | string;
355
+ country?: Prisma.StringNullableFilter<"Address"> | string | null;
356
+ latitude?: Prisma.FloatNullableFilter<"Address"> | number | null;
357
+ longitude?: Prisma.FloatNullableFilter<"Address"> | number | null;
358
+ isDefault?: Prisma.BoolFilter<"Address"> | boolean;
359
+ createdAt?: Prisma.DateTimeFilter<"Address"> | Date | string;
360
+ createdBy?: Prisma.StringNullableFilter<"Address"> | string | null;
361
+ updatedAt?: Prisma.DateTimeFilter<"Address"> | Date | string;
362
+ updatedBy?: Prisma.StringNullableFilter<"Address"> | string | null;
363
+ deletedAt?: Prisma.DateTimeNullableFilter<"Address"> | Date | string | null;
364
+ deletedBy?: Prisma.StringNullableFilter<"Address"> | string | null;
365
+ LegalEntity?: Prisma.LegalEntityListRelationFilter;
366
+ organizations?: Prisma.OrganizationListRelationFilter;
367
+ users?: Prisma.UserListRelationFilter;
368
+ orders?: Prisma.OrderListRelationFilter;
369
+ }, "id">;
370
+ export type AddressOrderByWithAggregationInput = {
371
+ id?: Prisma.SortOrder;
372
+ firstname?: Prisma.SortOrderInput | Prisma.SortOrder;
373
+ lastname?: Prisma.SortOrderInput | Prisma.SortOrder;
374
+ phone?: Prisma.SortOrderInput | Prisma.SortOrder;
375
+ addressLineOne?: Prisma.SortOrder;
376
+ doorNumber?: Prisma.SortOrderInput | Prisma.SortOrder;
377
+ addressLineTwo?: Prisma.SortOrderInput | Prisma.SortOrder;
378
+ zipCode?: Prisma.SortOrderInput | Prisma.SortOrder;
379
+ placeId?: Prisma.SortOrderInput | Prisma.SortOrder;
380
+ deliveryInstructions?: Prisma.SortOrderInput | Prisma.SortOrder;
381
+ city?: Prisma.SortOrder;
382
+ country?: Prisma.SortOrderInput | Prisma.SortOrder;
383
+ latitude?: Prisma.SortOrderInput | Prisma.SortOrder;
384
+ longitude?: Prisma.SortOrderInput | Prisma.SortOrder;
385
+ isDefault?: Prisma.SortOrder;
386
+ createdAt?: Prisma.SortOrder;
387
+ createdBy?: Prisma.SortOrderInput | Prisma.SortOrder;
388
+ updatedAt?: Prisma.SortOrder;
389
+ updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
390
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
391
+ deletedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
392
+ _count?: Prisma.AddressCountOrderByAggregateInput;
393
+ _avg?: Prisma.AddressAvgOrderByAggregateInput;
394
+ _max?: Prisma.AddressMaxOrderByAggregateInput;
395
+ _min?: Prisma.AddressMinOrderByAggregateInput;
396
+ _sum?: Prisma.AddressSumOrderByAggregateInput;
397
+ };
398
+ export type AddressScalarWhereWithAggregatesInput = {
399
+ AND?: Prisma.AddressScalarWhereWithAggregatesInput | Prisma.AddressScalarWhereWithAggregatesInput[];
400
+ OR?: Prisma.AddressScalarWhereWithAggregatesInput[];
401
+ NOT?: Prisma.AddressScalarWhereWithAggregatesInput | Prisma.AddressScalarWhereWithAggregatesInput[];
402
+ id?: Prisma.StringWithAggregatesFilter<"Address"> | string;
403
+ firstname?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null;
404
+ lastname?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null;
405
+ phone?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null;
406
+ addressLineOne?: Prisma.StringWithAggregatesFilter<"Address"> | string;
407
+ doorNumber?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null;
408
+ addressLineTwo?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null;
409
+ zipCode?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null;
410
+ placeId?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null;
411
+ deliveryInstructions?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null;
412
+ city?: Prisma.StringWithAggregatesFilter<"Address"> | string;
413
+ country?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null;
414
+ latitude?: Prisma.FloatNullableWithAggregatesFilter<"Address"> | number | null;
415
+ longitude?: Prisma.FloatNullableWithAggregatesFilter<"Address"> | number | null;
416
+ isDefault?: Prisma.BoolWithAggregatesFilter<"Address"> | boolean;
417
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Address"> | Date | string;
418
+ createdBy?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null;
419
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Address"> | Date | string;
420
+ updatedBy?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null;
421
+ deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Address"> | Date | string | null;
422
+ deletedBy?: Prisma.StringNullableWithAggregatesFilter<"Address"> | string | null;
423
+ };
424
+ export type AddressCreateInput = {
425
+ id?: string;
426
+ firstname?: string | null;
427
+ lastname?: string | null;
428
+ phone?: string | null;
429
+ addressLineOne: string;
430
+ doorNumber?: string | null;
431
+ addressLineTwo?: string | null;
432
+ zipCode?: string | null;
433
+ placeId?: string | null;
434
+ deliveryInstructions?: string | null;
435
+ city: string;
436
+ country?: string | null;
437
+ latitude?: number | null;
438
+ longitude?: number | null;
439
+ isDefault?: boolean;
440
+ createdAt?: Date | string;
441
+ createdBy?: string | null;
442
+ updatedAt?: Date | string;
443
+ updatedBy?: string | null;
444
+ deletedAt?: Date | string | null;
445
+ deletedBy?: string | null;
446
+ LegalEntity?: Prisma.LegalEntityCreateNestedManyWithoutAddressInput;
447
+ organizations?: Prisma.OrganizationCreateNestedManyWithoutAddressInput;
448
+ users?: Prisma.UserCreateNestedManyWithoutShippingAddressesInput;
449
+ orders?: Prisma.OrderCreateNestedManyWithoutShippingAddressInput;
450
+ };
451
+ export type AddressUncheckedCreateInput = {
452
+ id?: string;
453
+ firstname?: string | null;
454
+ lastname?: string | null;
455
+ phone?: string | null;
456
+ addressLineOne: string;
457
+ doorNumber?: string | null;
458
+ addressLineTwo?: string | null;
459
+ zipCode?: string | null;
460
+ placeId?: string | null;
461
+ deliveryInstructions?: string | null;
462
+ city: string;
463
+ country?: string | null;
464
+ latitude?: number | null;
465
+ longitude?: number | null;
466
+ isDefault?: boolean;
467
+ createdAt?: Date | string;
468
+ createdBy?: string | null;
469
+ updatedAt?: Date | string;
470
+ updatedBy?: string | null;
471
+ deletedAt?: Date | string | null;
472
+ deletedBy?: string | null;
473
+ LegalEntity?: Prisma.LegalEntityUncheckedCreateNestedManyWithoutAddressInput;
474
+ organizations?: Prisma.OrganizationUncheckedCreateNestedManyWithoutAddressInput;
475
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutShippingAddressesInput;
476
+ orders?: Prisma.OrderUncheckedCreateNestedManyWithoutShippingAddressInput;
477
+ };
478
+ export type AddressUpdateInput = {
479
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
480
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
481
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
482
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
483
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
484
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
485
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
486
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
487
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
488
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
489
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
490
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
491
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
492
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
493
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
494
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
495
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
496
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
497
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
498
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
499
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
500
+ LegalEntity?: Prisma.LegalEntityUpdateManyWithoutAddressNestedInput;
501
+ organizations?: Prisma.OrganizationUpdateManyWithoutAddressNestedInput;
502
+ users?: Prisma.UserUpdateManyWithoutShippingAddressesNestedInput;
503
+ orders?: Prisma.OrderUpdateManyWithoutShippingAddressNestedInput;
504
+ };
505
+ export type AddressUncheckedUpdateInput = {
506
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
507
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
508
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
509
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
510
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
511
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
512
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
513
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
514
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
515
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
516
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
517
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
518
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
519
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
520
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
521
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
522
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
523
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
524
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
525
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
526
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
527
+ LegalEntity?: Prisma.LegalEntityUncheckedUpdateManyWithoutAddressNestedInput;
528
+ organizations?: Prisma.OrganizationUncheckedUpdateManyWithoutAddressNestedInput;
529
+ users?: Prisma.UserUncheckedUpdateManyWithoutShippingAddressesNestedInput;
530
+ orders?: Prisma.OrderUncheckedUpdateManyWithoutShippingAddressNestedInput;
531
+ };
532
+ export type AddressCreateManyInput = {
533
+ id?: string;
534
+ firstname?: string | null;
535
+ lastname?: string | null;
536
+ phone?: string | null;
537
+ addressLineOne: string;
538
+ doorNumber?: string | null;
539
+ addressLineTwo?: string | null;
540
+ zipCode?: string | null;
541
+ placeId?: string | null;
542
+ deliveryInstructions?: string | null;
543
+ city: string;
544
+ country?: string | null;
545
+ latitude?: number | null;
546
+ longitude?: number | null;
547
+ isDefault?: boolean;
548
+ createdAt?: Date | string;
549
+ createdBy?: string | null;
550
+ updatedAt?: Date | string;
551
+ updatedBy?: string | null;
552
+ deletedAt?: Date | string | null;
553
+ deletedBy?: string | null;
554
+ };
555
+ export type AddressUpdateManyMutationInput = {
556
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
557
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
558
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
559
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
560
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
561
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
562
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
563
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
564
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
565
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
566
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
567
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
568
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
569
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
570
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
571
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
572
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
573
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
574
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
575
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
576
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
577
+ };
578
+ export type AddressUncheckedUpdateManyInput = {
579
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
580
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
581
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
582
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
583
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
584
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
585
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
586
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
587
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
588
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
589
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
590
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
591
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
592
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
593
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
594
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
595
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
596
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
597
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
598
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
599
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
600
+ };
601
+ export type AddressListRelationFilter = {
602
+ every?: Prisma.AddressWhereInput;
603
+ some?: Prisma.AddressWhereInput;
604
+ none?: Prisma.AddressWhereInput;
605
+ };
606
+ export type AddressOrderByRelationAggregateInput = {
607
+ _count?: Prisma.SortOrder;
608
+ };
609
+ export type AddressScalarRelationFilter = {
610
+ is?: Prisma.AddressWhereInput;
611
+ isNot?: Prisma.AddressWhereInput;
612
+ };
613
+ export type AddressCountOrderByAggregateInput = {
614
+ id?: Prisma.SortOrder;
615
+ firstname?: Prisma.SortOrder;
616
+ lastname?: Prisma.SortOrder;
617
+ phone?: Prisma.SortOrder;
618
+ addressLineOne?: Prisma.SortOrder;
619
+ doorNumber?: Prisma.SortOrder;
620
+ addressLineTwo?: Prisma.SortOrder;
621
+ zipCode?: Prisma.SortOrder;
622
+ placeId?: Prisma.SortOrder;
623
+ deliveryInstructions?: Prisma.SortOrder;
624
+ city?: Prisma.SortOrder;
625
+ country?: Prisma.SortOrder;
626
+ latitude?: Prisma.SortOrder;
627
+ longitude?: Prisma.SortOrder;
628
+ isDefault?: Prisma.SortOrder;
629
+ createdAt?: Prisma.SortOrder;
630
+ createdBy?: Prisma.SortOrder;
631
+ updatedAt?: Prisma.SortOrder;
632
+ updatedBy?: Prisma.SortOrder;
633
+ deletedAt?: Prisma.SortOrder;
634
+ deletedBy?: Prisma.SortOrder;
635
+ };
636
+ export type AddressAvgOrderByAggregateInput = {
637
+ latitude?: Prisma.SortOrder;
638
+ longitude?: Prisma.SortOrder;
639
+ };
640
+ export type AddressMaxOrderByAggregateInput = {
641
+ id?: Prisma.SortOrder;
642
+ firstname?: Prisma.SortOrder;
643
+ lastname?: Prisma.SortOrder;
644
+ phone?: Prisma.SortOrder;
645
+ addressLineOne?: Prisma.SortOrder;
646
+ doorNumber?: Prisma.SortOrder;
647
+ addressLineTwo?: Prisma.SortOrder;
648
+ zipCode?: Prisma.SortOrder;
649
+ placeId?: Prisma.SortOrder;
650
+ deliveryInstructions?: Prisma.SortOrder;
651
+ city?: Prisma.SortOrder;
652
+ country?: Prisma.SortOrder;
653
+ latitude?: Prisma.SortOrder;
654
+ longitude?: Prisma.SortOrder;
655
+ isDefault?: Prisma.SortOrder;
656
+ createdAt?: Prisma.SortOrder;
657
+ createdBy?: Prisma.SortOrder;
658
+ updatedAt?: Prisma.SortOrder;
659
+ updatedBy?: Prisma.SortOrder;
660
+ deletedAt?: Prisma.SortOrder;
661
+ deletedBy?: Prisma.SortOrder;
662
+ };
663
+ export type AddressMinOrderByAggregateInput = {
664
+ id?: Prisma.SortOrder;
665
+ firstname?: Prisma.SortOrder;
666
+ lastname?: Prisma.SortOrder;
667
+ phone?: Prisma.SortOrder;
668
+ addressLineOne?: Prisma.SortOrder;
669
+ doorNumber?: Prisma.SortOrder;
670
+ addressLineTwo?: Prisma.SortOrder;
671
+ zipCode?: Prisma.SortOrder;
672
+ placeId?: Prisma.SortOrder;
673
+ deliveryInstructions?: Prisma.SortOrder;
674
+ city?: Prisma.SortOrder;
675
+ country?: Prisma.SortOrder;
676
+ latitude?: Prisma.SortOrder;
677
+ longitude?: Prisma.SortOrder;
678
+ isDefault?: Prisma.SortOrder;
679
+ createdAt?: Prisma.SortOrder;
680
+ createdBy?: Prisma.SortOrder;
681
+ updatedAt?: Prisma.SortOrder;
682
+ updatedBy?: Prisma.SortOrder;
683
+ deletedAt?: Prisma.SortOrder;
684
+ deletedBy?: Prisma.SortOrder;
685
+ };
686
+ export type AddressSumOrderByAggregateInput = {
687
+ latitude?: Prisma.SortOrder;
688
+ longitude?: Prisma.SortOrder;
689
+ };
690
+ export type AddressNullableScalarRelationFilter = {
691
+ is?: Prisma.AddressWhereInput | null;
692
+ isNot?: Prisma.AddressWhereInput | null;
693
+ };
694
+ export type AddressCreateNestedManyWithoutUsersInput = {
695
+ create?: Prisma.XOR<Prisma.AddressCreateWithoutUsersInput, Prisma.AddressUncheckedCreateWithoutUsersInput> | Prisma.AddressCreateWithoutUsersInput[] | Prisma.AddressUncheckedCreateWithoutUsersInput[];
696
+ connectOrCreate?: Prisma.AddressCreateOrConnectWithoutUsersInput | Prisma.AddressCreateOrConnectWithoutUsersInput[];
697
+ connect?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[];
698
+ };
699
+ export type AddressUncheckedCreateNestedManyWithoutUsersInput = {
700
+ create?: Prisma.XOR<Prisma.AddressCreateWithoutUsersInput, Prisma.AddressUncheckedCreateWithoutUsersInput> | Prisma.AddressCreateWithoutUsersInput[] | Prisma.AddressUncheckedCreateWithoutUsersInput[];
701
+ connectOrCreate?: Prisma.AddressCreateOrConnectWithoutUsersInput | Prisma.AddressCreateOrConnectWithoutUsersInput[];
702
+ connect?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[];
703
+ };
704
+ export type AddressUpdateManyWithoutUsersNestedInput = {
705
+ create?: Prisma.XOR<Prisma.AddressCreateWithoutUsersInput, Prisma.AddressUncheckedCreateWithoutUsersInput> | Prisma.AddressCreateWithoutUsersInput[] | Prisma.AddressUncheckedCreateWithoutUsersInput[];
706
+ connectOrCreate?: Prisma.AddressCreateOrConnectWithoutUsersInput | Prisma.AddressCreateOrConnectWithoutUsersInput[];
707
+ upsert?: Prisma.AddressUpsertWithWhereUniqueWithoutUsersInput | Prisma.AddressUpsertWithWhereUniqueWithoutUsersInput[];
708
+ set?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[];
709
+ disconnect?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[];
710
+ delete?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[];
711
+ connect?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[];
712
+ update?: Prisma.AddressUpdateWithWhereUniqueWithoutUsersInput | Prisma.AddressUpdateWithWhereUniqueWithoutUsersInput[];
713
+ updateMany?: Prisma.AddressUpdateManyWithWhereWithoutUsersInput | Prisma.AddressUpdateManyWithWhereWithoutUsersInput[];
714
+ deleteMany?: Prisma.AddressScalarWhereInput | Prisma.AddressScalarWhereInput[];
715
+ };
716
+ export type AddressUncheckedUpdateManyWithoutUsersNestedInput = {
717
+ create?: Prisma.XOR<Prisma.AddressCreateWithoutUsersInput, Prisma.AddressUncheckedCreateWithoutUsersInput> | Prisma.AddressCreateWithoutUsersInput[] | Prisma.AddressUncheckedCreateWithoutUsersInput[];
718
+ connectOrCreate?: Prisma.AddressCreateOrConnectWithoutUsersInput | Prisma.AddressCreateOrConnectWithoutUsersInput[];
719
+ upsert?: Prisma.AddressUpsertWithWhereUniqueWithoutUsersInput | Prisma.AddressUpsertWithWhereUniqueWithoutUsersInput[];
720
+ set?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[];
721
+ disconnect?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[];
722
+ delete?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[];
723
+ connect?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[];
724
+ update?: Prisma.AddressUpdateWithWhereUniqueWithoutUsersInput | Prisma.AddressUpdateWithWhereUniqueWithoutUsersInput[];
725
+ updateMany?: Prisma.AddressUpdateManyWithWhereWithoutUsersInput | Prisma.AddressUpdateManyWithWhereWithoutUsersInput[];
726
+ deleteMany?: Prisma.AddressScalarWhereInput | Prisma.AddressScalarWhereInput[];
727
+ };
728
+ export type AddressCreateNestedOneWithoutOrganizationsInput = {
729
+ create?: Prisma.XOR<Prisma.AddressCreateWithoutOrganizationsInput, Prisma.AddressUncheckedCreateWithoutOrganizationsInput>;
730
+ connectOrCreate?: Prisma.AddressCreateOrConnectWithoutOrganizationsInput;
731
+ connect?: Prisma.AddressWhereUniqueInput;
732
+ };
733
+ export type AddressUpdateOneRequiredWithoutOrganizationsNestedInput = {
734
+ create?: Prisma.XOR<Prisma.AddressCreateWithoutOrganizationsInput, Prisma.AddressUncheckedCreateWithoutOrganizationsInput>;
735
+ connectOrCreate?: Prisma.AddressCreateOrConnectWithoutOrganizationsInput;
736
+ upsert?: Prisma.AddressUpsertWithoutOrganizationsInput;
737
+ connect?: Prisma.AddressWhereUniqueInput;
738
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AddressUpdateToOneWithWhereWithoutOrganizationsInput, Prisma.AddressUpdateWithoutOrganizationsInput>, Prisma.AddressUncheckedUpdateWithoutOrganizationsInput>;
739
+ };
740
+ export type NullableFloatFieldUpdateOperationsInput = {
741
+ set?: number | null;
742
+ increment?: number;
743
+ decrement?: number;
744
+ multiply?: number;
745
+ divide?: number;
746
+ };
747
+ export type AddressCreateNestedOneWithoutLegalEntityInput = {
748
+ create?: Prisma.XOR<Prisma.AddressCreateWithoutLegalEntityInput, Prisma.AddressUncheckedCreateWithoutLegalEntityInput>;
749
+ connectOrCreate?: Prisma.AddressCreateOrConnectWithoutLegalEntityInput;
750
+ connect?: Prisma.AddressWhereUniqueInput;
751
+ };
752
+ export type AddressUpdateOneRequiredWithoutLegalEntityNestedInput = {
753
+ create?: Prisma.XOR<Prisma.AddressCreateWithoutLegalEntityInput, Prisma.AddressUncheckedCreateWithoutLegalEntityInput>;
754
+ connectOrCreate?: Prisma.AddressCreateOrConnectWithoutLegalEntityInput;
755
+ upsert?: Prisma.AddressUpsertWithoutLegalEntityInput;
756
+ connect?: Prisma.AddressWhereUniqueInput;
757
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AddressUpdateToOneWithWhereWithoutLegalEntityInput, Prisma.AddressUpdateWithoutLegalEntityInput>, Prisma.AddressUncheckedUpdateWithoutLegalEntityInput>;
758
+ };
759
+ export type AddressCreateNestedOneWithoutOrdersInput = {
760
+ create?: Prisma.XOR<Prisma.AddressCreateWithoutOrdersInput, Prisma.AddressUncheckedCreateWithoutOrdersInput>;
761
+ connectOrCreate?: Prisma.AddressCreateOrConnectWithoutOrdersInput;
762
+ connect?: Prisma.AddressWhereUniqueInput;
763
+ };
764
+ export type AddressUpdateOneWithoutOrdersNestedInput = {
765
+ create?: Prisma.XOR<Prisma.AddressCreateWithoutOrdersInput, Prisma.AddressUncheckedCreateWithoutOrdersInput>;
766
+ connectOrCreate?: Prisma.AddressCreateOrConnectWithoutOrdersInput;
767
+ upsert?: Prisma.AddressUpsertWithoutOrdersInput;
768
+ disconnect?: Prisma.AddressWhereInput | boolean;
769
+ delete?: Prisma.AddressWhereInput | boolean;
770
+ connect?: Prisma.AddressWhereUniqueInput;
771
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AddressUpdateToOneWithWhereWithoutOrdersInput, Prisma.AddressUpdateWithoutOrdersInput>, Prisma.AddressUncheckedUpdateWithoutOrdersInput>;
772
+ };
773
+ export type AddressCreateWithoutUsersInput = {
774
+ id?: string;
775
+ firstname?: string | null;
776
+ lastname?: string | null;
777
+ phone?: string | null;
778
+ addressLineOne: string;
779
+ doorNumber?: string | null;
780
+ addressLineTwo?: string | null;
781
+ zipCode?: string | null;
782
+ placeId?: string | null;
783
+ deliveryInstructions?: string | null;
784
+ city: string;
785
+ country?: string | null;
786
+ latitude?: number | null;
787
+ longitude?: number | null;
788
+ isDefault?: boolean;
789
+ createdAt?: Date | string;
790
+ createdBy?: string | null;
791
+ updatedAt?: Date | string;
792
+ updatedBy?: string | null;
793
+ deletedAt?: Date | string | null;
794
+ deletedBy?: string | null;
795
+ LegalEntity?: Prisma.LegalEntityCreateNestedManyWithoutAddressInput;
796
+ organizations?: Prisma.OrganizationCreateNestedManyWithoutAddressInput;
797
+ orders?: Prisma.OrderCreateNestedManyWithoutShippingAddressInput;
798
+ };
799
+ export type AddressUncheckedCreateWithoutUsersInput = {
800
+ id?: string;
801
+ firstname?: string | null;
802
+ lastname?: string | null;
803
+ phone?: string | null;
804
+ addressLineOne: string;
805
+ doorNumber?: string | null;
806
+ addressLineTwo?: string | null;
807
+ zipCode?: string | null;
808
+ placeId?: string | null;
809
+ deliveryInstructions?: string | null;
810
+ city: string;
811
+ country?: string | null;
812
+ latitude?: number | null;
813
+ longitude?: number | null;
814
+ isDefault?: boolean;
815
+ createdAt?: Date | string;
816
+ createdBy?: string | null;
817
+ updatedAt?: Date | string;
818
+ updatedBy?: string | null;
819
+ deletedAt?: Date | string | null;
820
+ deletedBy?: string | null;
821
+ LegalEntity?: Prisma.LegalEntityUncheckedCreateNestedManyWithoutAddressInput;
822
+ organizations?: Prisma.OrganizationUncheckedCreateNestedManyWithoutAddressInput;
823
+ orders?: Prisma.OrderUncheckedCreateNestedManyWithoutShippingAddressInput;
824
+ };
825
+ export type AddressCreateOrConnectWithoutUsersInput = {
826
+ where: Prisma.AddressWhereUniqueInput;
827
+ create: Prisma.XOR<Prisma.AddressCreateWithoutUsersInput, Prisma.AddressUncheckedCreateWithoutUsersInput>;
828
+ };
829
+ export type AddressUpsertWithWhereUniqueWithoutUsersInput = {
830
+ where: Prisma.AddressWhereUniqueInput;
831
+ update: Prisma.XOR<Prisma.AddressUpdateWithoutUsersInput, Prisma.AddressUncheckedUpdateWithoutUsersInput>;
832
+ create: Prisma.XOR<Prisma.AddressCreateWithoutUsersInput, Prisma.AddressUncheckedCreateWithoutUsersInput>;
833
+ };
834
+ export type AddressUpdateWithWhereUniqueWithoutUsersInput = {
835
+ where: Prisma.AddressWhereUniqueInput;
836
+ data: Prisma.XOR<Prisma.AddressUpdateWithoutUsersInput, Prisma.AddressUncheckedUpdateWithoutUsersInput>;
837
+ };
838
+ export type AddressUpdateManyWithWhereWithoutUsersInput = {
839
+ where: Prisma.AddressScalarWhereInput;
840
+ data: Prisma.XOR<Prisma.AddressUpdateManyMutationInput, Prisma.AddressUncheckedUpdateManyWithoutUsersInput>;
841
+ };
842
+ export type AddressScalarWhereInput = {
843
+ AND?: Prisma.AddressScalarWhereInput | Prisma.AddressScalarWhereInput[];
844
+ OR?: Prisma.AddressScalarWhereInput[];
845
+ NOT?: Prisma.AddressScalarWhereInput | Prisma.AddressScalarWhereInput[];
846
+ id?: Prisma.StringFilter<"Address"> | string;
847
+ firstname?: Prisma.StringNullableFilter<"Address"> | string | null;
848
+ lastname?: Prisma.StringNullableFilter<"Address"> | string | null;
849
+ phone?: Prisma.StringNullableFilter<"Address"> | string | null;
850
+ addressLineOne?: Prisma.StringFilter<"Address"> | string;
851
+ doorNumber?: Prisma.StringNullableFilter<"Address"> | string | null;
852
+ addressLineTwo?: Prisma.StringNullableFilter<"Address"> | string | null;
853
+ zipCode?: Prisma.StringNullableFilter<"Address"> | string | null;
854
+ placeId?: Prisma.StringNullableFilter<"Address"> | string | null;
855
+ deliveryInstructions?: Prisma.StringNullableFilter<"Address"> | string | null;
856
+ city?: Prisma.StringFilter<"Address"> | string;
857
+ country?: Prisma.StringNullableFilter<"Address"> | string | null;
858
+ latitude?: Prisma.FloatNullableFilter<"Address"> | number | null;
859
+ longitude?: Prisma.FloatNullableFilter<"Address"> | number | null;
860
+ isDefault?: Prisma.BoolFilter<"Address"> | boolean;
861
+ createdAt?: Prisma.DateTimeFilter<"Address"> | Date | string;
862
+ createdBy?: Prisma.StringNullableFilter<"Address"> | string | null;
863
+ updatedAt?: Prisma.DateTimeFilter<"Address"> | Date | string;
864
+ updatedBy?: Prisma.StringNullableFilter<"Address"> | string | null;
865
+ deletedAt?: Prisma.DateTimeNullableFilter<"Address"> | Date | string | null;
866
+ deletedBy?: Prisma.StringNullableFilter<"Address"> | string | null;
867
+ };
868
+ export type AddressCreateWithoutOrganizationsInput = {
869
+ id?: string;
870
+ firstname?: string | null;
871
+ lastname?: string | null;
872
+ phone?: string | null;
873
+ addressLineOne: string;
874
+ doorNumber?: string | null;
875
+ addressLineTwo?: string | null;
876
+ zipCode?: string | null;
877
+ placeId?: string | null;
878
+ deliveryInstructions?: string | null;
879
+ city: string;
880
+ country?: string | null;
881
+ latitude?: number | null;
882
+ longitude?: number | null;
883
+ isDefault?: boolean;
884
+ createdAt?: Date | string;
885
+ createdBy?: string | null;
886
+ updatedAt?: Date | string;
887
+ updatedBy?: string | null;
888
+ deletedAt?: Date | string | null;
889
+ deletedBy?: string | null;
890
+ LegalEntity?: Prisma.LegalEntityCreateNestedManyWithoutAddressInput;
891
+ users?: Prisma.UserCreateNestedManyWithoutShippingAddressesInput;
892
+ orders?: Prisma.OrderCreateNestedManyWithoutShippingAddressInput;
893
+ };
894
+ export type AddressUncheckedCreateWithoutOrganizationsInput = {
895
+ id?: string;
896
+ firstname?: string | null;
897
+ lastname?: string | null;
898
+ phone?: string | null;
899
+ addressLineOne: string;
900
+ doorNumber?: string | null;
901
+ addressLineTwo?: string | null;
902
+ zipCode?: string | null;
903
+ placeId?: string | null;
904
+ deliveryInstructions?: string | null;
905
+ city: string;
906
+ country?: string | null;
907
+ latitude?: number | null;
908
+ longitude?: number | null;
909
+ isDefault?: boolean;
910
+ createdAt?: Date | string;
911
+ createdBy?: string | null;
912
+ updatedAt?: Date | string;
913
+ updatedBy?: string | null;
914
+ deletedAt?: Date | string | null;
915
+ deletedBy?: string | null;
916
+ LegalEntity?: Prisma.LegalEntityUncheckedCreateNestedManyWithoutAddressInput;
917
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutShippingAddressesInput;
918
+ orders?: Prisma.OrderUncheckedCreateNestedManyWithoutShippingAddressInput;
919
+ };
920
+ export type AddressCreateOrConnectWithoutOrganizationsInput = {
921
+ where: Prisma.AddressWhereUniqueInput;
922
+ create: Prisma.XOR<Prisma.AddressCreateWithoutOrganizationsInput, Prisma.AddressUncheckedCreateWithoutOrganizationsInput>;
923
+ };
924
+ export type AddressUpsertWithoutOrganizationsInput = {
925
+ update: Prisma.XOR<Prisma.AddressUpdateWithoutOrganizationsInput, Prisma.AddressUncheckedUpdateWithoutOrganizationsInput>;
926
+ create: Prisma.XOR<Prisma.AddressCreateWithoutOrganizationsInput, Prisma.AddressUncheckedCreateWithoutOrganizationsInput>;
927
+ where?: Prisma.AddressWhereInput;
928
+ };
929
+ export type AddressUpdateToOneWithWhereWithoutOrganizationsInput = {
930
+ where?: Prisma.AddressWhereInput;
931
+ data: Prisma.XOR<Prisma.AddressUpdateWithoutOrganizationsInput, Prisma.AddressUncheckedUpdateWithoutOrganizationsInput>;
932
+ };
933
+ export type AddressUpdateWithoutOrganizationsInput = {
934
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
935
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
936
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
937
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
938
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
939
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
940
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
941
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
942
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
943
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
944
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
945
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
946
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
947
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
948
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
949
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
950
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
951
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
952
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
953
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
954
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
955
+ LegalEntity?: Prisma.LegalEntityUpdateManyWithoutAddressNestedInput;
956
+ users?: Prisma.UserUpdateManyWithoutShippingAddressesNestedInput;
957
+ orders?: Prisma.OrderUpdateManyWithoutShippingAddressNestedInput;
958
+ };
959
+ export type AddressUncheckedUpdateWithoutOrganizationsInput = {
960
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
961
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
962
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
963
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
964
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
965
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
966
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
967
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
968
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
969
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
970
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
971
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
972
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
973
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
974
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
975
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
976
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
977
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
978
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
979
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
980
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
981
+ LegalEntity?: Prisma.LegalEntityUncheckedUpdateManyWithoutAddressNestedInput;
982
+ users?: Prisma.UserUncheckedUpdateManyWithoutShippingAddressesNestedInput;
983
+ orders?: Prisma.OrderUncheckedUpdateManyWithoutShippingAddressNestedInput;
984
+ };
985
+ export type AddressCreateWithoutLegalEntityInput = {
986
+ id?: string;
987
+ firstname?: string | null;
988
+ lastname?: string | null;
989
+ phone?: string | null;
990
+ addressLineOne: string;
991
+ doorNumber?: string | null;
992
+ addressLineTwo?: string | null;
993
+ zipCode?: string | null;
994
+ placeId?: string | null;
995
+ deliveryInstructions?: string | null;
996
+ city: string;
997
+ country?: string | null;
998
+ latitude?: number | null;
999
+ longitude?: number | null;
1000
+ isDefault?: boolean;
1001
+ createdAt?: Date | string;
1002
+ createdBy?: string | null;
1003
+ updatedAt?: Date | string;
1004
+ updatedBy?: string | null;
1005
+ deletedAt?: Date | string | null;
1006
+ deletedBy?: string | null;
1007
+ organizations?: Prisma.OrganizationCreateNestedManyWithoutAddressInput;
1008
+ users?: Prisma.UserCreateNestedManyWithoutShippingAddressesInput;
1009
+ orders?: Prisma.OrderCreateNestedManyWithoutShippingAddressInput;
1010
+ };
1011
+ export type AddressUncheckedCreateWithoutLegalEntityInput = {
1012
+ id?: string;
1013
+ firstname?: string | null;
1014
+ lastname?: string | null;
1015
+ phone?: string | null;
1016
+ addressLineOne: string;
1017
+ doorNumber?: string | null;
1018
+ addressLineTwo?: string | null;
1019
+ zipCode?: string | null;
1020
+ placeId?: string | null;
1021
+ deliveryInstructions?: string | null;
1022
+ city: string;
1023
+ country?: string | null;
1024
+ latitude?: number | null;
1025
+ longitude?: number | null;
1026
+ isDefault?: boolean;
1027
+ createdAt?: Date | string;
1028
+ createdBy?: string | null;
1029
+ updatedAt?: Date | string;
1030
+ updatedBy?: string | null;
1031
+ deletedAt?: Date | string | null;
1032
+ deletedBy?: string | null;
1033
+ organizations?: Prisma.OrganizationUncheckedCreateNestedManyWithoutAddressInput;
1034
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutShippingAddressesInput;
1035
+ orders?: Prisma.OrderUncheckedCreateNestedManyWithoutShippingAddressInput;
1036
+ };
1037
+ export type AddressCreateOrConnectWithoutLegalEntityInput = {
1038
+ where: Prisma.AddressWhereUniqueInput;
1039
+ create: Prisma.XOR<Prisma.AddressCreateWithoutLegalEntityInput, Prisma.AddressUncheckedCreateWithoutLegalEntityInput>;
1040
+ };
1041
+ export type AddressUpsertWithoutLegalEntityInput = {
1042
+ update: Prisma.XOR<Prisma.AddressUpdateWithoutLegalEntityInput, Prisma.AddressUncheckedUpdateWithoutLegalEntityInput>;
1043
+ create: Prisma.XOR<Prisma.AddressCreateWithoutLegalEntityInput, Prisma.AddressUncheckedCreateWithoutLegalEntityInput>;
1044
+ where?: Prisma.AddressWhereInput;
1045
+ };
1046
+ export type AddressUpdateToOneWithWhereWithoutLegalEntityInput = {
1047
+ where?: Prisma.AddressWhereInput;
1048
+ data: Prisma.XOR<Prisma.AddressUpdateWithoutLegalEntityInput, Prisma.AddressUncheckedUpdateWithoutLegalEntityInput>;
1049
+ };
1050
+ export type AddressUpdateWithoutLegalEntityInput = {
1051
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1052
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1053
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1054
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1055
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
1056
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1057
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1058
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1059
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1060
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1061
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
1062
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1063
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1064
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1065
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1066
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1067
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1068
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1069
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1070
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1071
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1072
+ organizations?: Prisma.OrganizationUpdateManyWithoutAddressNestedInput;
1073
+ users?: Prisma.UserUpdateManyWithoutShippingAddressesNestedInput;
1074
+ orders?: Prisma.OrderUpdateManyWithoutShippingAddressNestedInput;
1075
+ };
1076
+ export type AddressUncheckedUpdateWithoutLegalEntityInput = {
1077
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1078
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1079
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1080
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1081
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
1082
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1083
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1084
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1085
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1086
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1087
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
1088
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1089
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1090
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1091
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1092
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1093
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1094
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1095
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1096
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1097
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1098
+ organizations?: Prisma.OrganizationUncheckedUpdateManyWithoutAddressNestedInput;
1099
+ users?: Prisma.UserUncheckedUpdateManyWithoutShippingAddressesNestedInput;
1100
+ orders?: Prisma.OrderUncheckedUpdateManyWithoutShippingAddressNestedInput;
1101
+ };
1102
+ export type AddressCreateWithoutOrdersInput = {
1103
+ id?: string;
1104
+ firstname?: string | null;
1105
+ lastname?: string | null;
1106
+ phone?: string | null;
1107
+ addressLineOne: string;
1108
+ doorNumber?: string | null;
1109
+ addressLineTwo?: string | null;
1110
+ zipCode?: string | null;
1111
+ placeId?: string | null;
1112
+ deliveryInstructions?: string | null;
1113
+ city: string;
1114
+ country?: string | null;
1115
+ latitude?: number | null;
1116
+ longitude?: number | null;
1117
+ isDefault?: boolean;
1118
+ createdAt?: Date | string;
1119
+ createdBy?: string | null;
1120
+ updatedAt?: Date | string;
1121
+ updatedBy?: string | null;
1122
+ deletedAt?: Date | string | null;
1123
+ deletedBy?: string | null;
1124
+ LegalEntity?: Prisma.LegalEntityCreateNestedManyWithoutAddressInput;
1125
+ organizations?: Prisma.OrganizationCreateNestedManyWithoutAddressInput;
1126
+ users?: Prisma.UserCreateNestedManyWithoutShippingAddressesInput;
1127
+ };
1128
+ export type AddressUncheckedCreateWithoutOrdersInput = {
1129
+ id?: string;
1130
+ firstname?: string | null;
1131
+ lastname?: string | null;
1132
+ phone?: string | null;
1133
+ addressLineOne: string;
1134
+ doorNumber?: string | null;
1135
+ addressLineTwo?: string | null;
1136
+ zipCode?: string | null;
1137
+ placeId?: string | null;
1138
+ deliveryInstructions?: string | null;
1139
+ city: string;
1140
+ country?: string | null;
1141
+ latitude?: number | null;
1142
+ longitude?: number | null;
1143
+ isDefault?: boolean;
1144
+ createdAt?: Date | string;
1145
+ createdBy?: string | null;
1146
+ updatedAt?: Date | string;
1147
+ updatedBy?: string | null;
1148
+ deletedAt?: Date | string | null;
1149
+ deletedBy?: string | null;
1150
+ LegalEntity?: Prisma.LegalEntityUncheckedCreateNestedManyWithoutAddressInput;
1151
+ organizations?: Prisma.OrganizationUncheckedCreateNestedManyWithoutAddressInput;
1152
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutShippingAddressesInput;
1153
+ };
1154
+ export type AddressCreateOrConnectWithoutOrdersInput = {
1155
+ where: Prisma.AddressWhereUniqueInput;
1156
+ create: Prisma.XOR<Prisma.AddressCreateWithoutOrdersInput, Prisma.AddressUncheckedCreateWithoutOrdersInput>;
1157
+ };
1158
+ export type AddressUpsertWithoutOrdersInput = {
1159
+ update: Prisma.XOR<Prisma.AddressUpdateWithoutOrdersInput, Prisma.AddressUncheckedUpdateWithoutOrdersInput>;
1160
+ create: Prisma.XOR<Prisma.AddressCreateWithoutOrdersInput, Prisma.AddressUncheckedCreateWithoutOrdersInput>;
1161
+ where?: Prisma.AddressWhereInput;
1162
+ };
1163
+ export type AddressUpdateToOneWithWhereWithoutOrdersInput = {
1164
+ where?: Prisma.AddressWhereInput;
1165
+ data: Prisma.XOR<Prisma.AddressUpdateWithoutOrdersInput, Prisma.AddressUncheckedUpdateWithoutOrdersInput>;
1166
+ };
1167
+ export type AddressUpdateWithoutOrdersInput = {
1168
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1169
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1170
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1171
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1172
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
1173
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1174
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1175
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1176
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1177
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1178
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
1179
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1180
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1181
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1182
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1183
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1184
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1185
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1186
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1187
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1188
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1189
+ LegalEntity?: Prisma.LegalEntityUpdateManyWithoutAddressNestedInput;
1190
+ organizations?: Prisma.OrganizationUpdateManyWithoutAddressNestedInput;
1191
+ users?: Prisma.UserUpdateManyWithoutShippingAddressesNestedInput;
1192
+ };
1193
+ export type AddressUncheckedUpdateWithoutOrdersInput = {
1194
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1195
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1196
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1197
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1198
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
1199
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1200
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1201
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1202
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1203
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1204
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
1205
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1206
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1207
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1208
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1209
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1210
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1211
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1212
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1213
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1214
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1215
+ LegalEntity?: Prisma.LegalEntityUncheckedUpdateManyWithoutAddressNestedInput;
1216
+ organizations?: Prisma.OrganizationUncheckedUpdateManyWithoutAddressNestedInput;
1217
+ users?: Prisma.UserUncheckedUpdateManyWithoutShippingAddressesNestedInput;
1218
+ };
1219
+ export type AddressUpdateWithoutUsersInput = {
1220
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1221
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1222
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1223
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1224
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
1225
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1226
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1227
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1228
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1229
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1230
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
1231
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1232
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1233
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1234
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1235
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1236
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1237
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1238
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1239
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1240
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1241
+ LegalEntity?: Prisma.LegalEntityUpdateManyWithoutAddressNestedInput;
1242
+ organizations?: Prisma.OrganizationUpdateManyWithoutAddressNestedInput;
1243
+ orders?: Prisma.OrderUpdateManyWithoutShippingAddressNestedInput;
1244
+ };
1245
+ export type AddressUncheckedUpdateWithoutUsersInput = {
1246
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1247
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1248
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1249
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1250
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
1251
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1252
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1253
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1254
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1255
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1256
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
1257
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1258
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1259
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1260
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1261
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1262
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1263
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1264
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1265
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1266
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1267
+ LegalEntity?: Prisma.LegalEntityUncheckedUpdateManyWithoutAddressNestedInput;
1268
+ organizations?: Prisma.OrganizationUncheckedUpdateManyWithoutAddressNestedInput;
1269
+ orders?: Prisma.OrderUncheckedUpdateManyWithoutShippingAddressNestedInput;
1270
+ };
1271
+ export type AddressUncheckedUpdateManyWithoutUsersInput = {
1272
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1273
+ firstname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1274
+ lastname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1275
+ phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1276
+ addressLineOne?: Prisma.StringFieldUpdateOperationsInput | string;
1277
+ doorNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1278
+ addressLineTwo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1279
+ zipCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1280
+ placeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1281
+ deliveryInstructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1282
+ city?: Prisma.StringFieldUpdateOperationsInput | string;
1283
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1284
+ latitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1285
+ longitude?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1286
+ isDefault?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1287
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1288
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1289
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1290
+ updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1291
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1292
+ deletedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1293
+ };
1294
+ /**
1295
+ * Count Type AddressCountOutputType
1296
+ */
1297
+ export type AddressCountOutputType = {
1298
+ LegalEntity: number;
1299
+ organizations: number;
1300
+ users: number;
1301
+ orders: number;
1302
+ };
1303
+ export type AddressCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1304
+ LegalEntity?: boolean | AddressCountOutputTypeCountLegalEntityArgs;
1305
+ organizations?: boolean | AddressCountOutputTypeCountOrganizationsArgs;
1306
+ users?: boolean | AddressCountOutputTypeCountUsersArgs;
1307
+ orders?: boolean | AddressCountOutputTypeCountOrdersArgs;
1308
+ };
1309
+ /**
1310
+ * AddressCountOutputType without action
1311
+ */
1312
+ export type AddressCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1313
+ /**
1314
+ * Select specific fields to fetch from the AddressCountOutputType
1315
+ */
1316
+ select?: Prisma.AddressCountOutputTypeSelect<ExtArgs> | null;
1317
+ };
1318
+ /**
1319
+ * AddressCountOutputType without action
1320
+ */
1321
+ export type AddressCountOutputTypeCountLegalEntityArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1322
+ where?: Prisma.LegalEntityWhereInput;
1323
+ };
1324
+ /**
1325
+ * AddressCountOutputType without action
1326
+ */
1327
+ export type AddressCountOutputTypeCountOrganizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1328
+ where?: Prisma.OrganizationWhereInput;
1329
+ };
1330
+ /**
1331
+ * AddressCountOutputType without action
1332
+ */
1333
+ export type AddressCountOutputTypeCountUsersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1334
+ where?: Prisma.UserWhereInput;
1335
+ };
1336
+ /**
1337
+ * AddressCountOutputType without action
1338
+ */
1339
+ export type AddressCountOutputTypeCountOrdersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1340
+ where?: Prisma.OrderWhereInput;
1341
+ };
1342
+ export type AddressSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1343
+ id?: boolean;
1344
+ firstname?: boolean;
1345
+ lastname?: boolean;
1346
+ phone?: boolean;
1347
+ addressLineOne?: boolean;
1348
+ doorNumber?: boolean;
1349
+ addressLineTwo?: boolean;
1350
+ zipCode?: boolean;
1351
+ placeId?: boolean;
1352
+ deliveryInstructions?: boolean;
1353
+ city?: boolean;
1354
+ country?: boolean;
1355
+ latitude?: boolean;
1356
+ longitude?: boolean;
1357
+ isDefault?: boolean;
1358
+ createdAt?: boolean;
1359
+ createdBy?: boolean;
1360
+ updatedAt?: boolean;
1361
+ updatedBy?: boolean;
1362
+ deletedAt?: boolean;
1363
+ deletedBy?: boolean;
1364
+ LegalEntity?: boolean | Prisma.Address$LegalEntityArgs<ExtArgs>;
1365
+ organizations?: boolean | Prisma.Address$organizationsArgs<ExtArgs>;
1366
+ users?: boolean | Prisma.Address$usersArgs<ExtArgs>;
1367
+ orders?: boolean | Prisma.Address$ordersArgs<ExtArgs>;
1368
+ _count?: boolean | Prisma.AddressCountOutputTypeDefaultArgs<ExtArgs>;
1369
+ }, ExtArgs["result"]["address"]>;
1370
+ export type AddressSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1371
+ id?: boolean;
1372
+ firstname?: boolean;
1373
+ lastname?: boolean;
1374
+ phone?: boolean;
1375
+ addressLineOne?: boolean;
1376
+ doorNumber?: boolean;
1377
+ addressLineTwo?: boolean;
1378
+ zipCode?: boolean;
1379
+ placeId?: boolean;
1380
+ deliveryInstructions?: boolean;
1381
+ city?: boolean;
1382
+ country?: boolean;
1383
+ latitude?: boolean;
1384
+ longitude?: boolean;
1385
+ isDefault?: boolean;
1386
+ createdAt?: boolean;
1387
+ createdBy?: boolean;
1388
+ updatedAt?: boolean;
1389
+ updatedBy?: boolean;
1390
+ deletedAt?: boolean;
1391
+ deletedBy?: boolean;
1392
+ }, ExtArgs["result"]["address"]>;
1393
+ export type AddressSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1394
+ id?: boolean;
1395
+ firstname?: boolean;
1396
+ lastname?: boolean;
1397
+ phone?: boolean;
1398
+ addressLineOne?: boolean;
1399
+ doorNumber?: boolean;
1400
+ addressLineTwo?: boolean;
1401
+ zipCode?: boolean;
1402
+ placeId?: boolean;
1403
+ deliveryInstructions?: boolean;
1404
+ city?: boolean;
1405
+ country?: boolean;
1406
+ latitude?: boolean;
1407
+ longitude?: boolean;
1408
+ isDefault?: boolean;
1409
+ createdAt?: boolean;
1410
+ createdBy?: boolean;
1411
+ updatedAt?: boolean;
1412
+ updatedBy?: boolean;
1413
+ deletedAt?: boolean;
1414
+ deletedBy?: boolean;
1415
+ }, ExtArgs["result"]["address"]>;
1416
+ export type AddressSelectScalar = {
1417
+ id?: boolean;
1418
+ firstname?: boolean;
1419
+ lastname?: boolean;
1420
+ phone?: boolean;
1421
+ addressLineOne?: boolean;
1422
+ doorNumber?: boolean;
1423
+ addressLineTwo?: boolean;
1424
+ zipCode?: boolean;
1425
+ placeId?: boolean;
1426
+ deliveryInstructions?: boolean;
1427
+ city?: boolean;
1428
+ country?: boolean;
1429
+ latitude?: boolean;
1430
+ longitude?: boolean;
1431
+ isDefault?: boolean;
1432
+ createdAt?: boolean;
1433
+ createdBy?: boolean;
1434
+ updatedAt?: boolean;
1435
+ updatedBy?: boolean;
1436
+ deletedAt?: boolean;
1437
+ deletedBy?: boolean;
1438
+ };
1439
+ export type AddressOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "firstname" | "lastname" | "phone" | "addressLineOne" | "doorNumber" | "addressLineTwo" | "zipCode" | "placeId" | "deliveryInstructions" | "city" | "country" | "latitude" | "longitude" | "isDefault" | "createdAt" | "createdBy" | "updatedAt" | "updatedBy" | "deletedAt" | "deletedBy", ExtArgs["result"]["address"]>;
1440
+ export type AddressInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1441
+ LegalEntity?: boolean | Prisma.Address$LegalEntityArgs<ExtArgs>;
1442
+ organizations?: boolean | Prisma.Address$organizationsArgs<ExtArgs>;
1443
+ users?: boolean | Prisma.Address$usersArgs<ExtArgs>;
1444
+ orders?: boolean | Prisma.Address$ordersArgs<ExtArgs>;
1445
+ _count?: boolean | Prisma.AddressCountOutputTypeDefaultArgs<ExtArgs>;
1446
+ };
1447
+ export type AddressIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
1448
+ export type AddressIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
1449
+ export type $AddressPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1450
+ name: "Address";
1451
+ objects: {
1452
+ LegalEntity: Prisma.$LegalEntityPayload<ExtArgs>[];
1453
+ organizations: Prisma.$OrganizationPayload<ExtArgs>[];
1454
+ users: Prisma.$UserPayload<ExtArgs>[];
1455
+ orders: Prisma.$OrderPayload<ExtArgs>[];
1456
+ };
1457
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1458
+ id: string;
1459
+ firstname: string | null;
1460
+ lastname: string | null;
1461
+ phone: string | null;
1462
+ addressLineOne: string;
1463
+ doorNumber: string | null;
1464
+ addressLineTwo: string | null;
1465
+ zipCode: string | null;
1466
+ placeId: string | null;
1467
+ deliveryInstructions: string | null;
1468
+ city: string;
1469
+ country: string | null;
1470
+ latitude: number | null;
1471
+ longitude: number | null;
1472
+ isDefault: boolean;
1473
+ createdAt: Date;
1474
+ createdBy: string | null;
1475
+ updatedAt: Date;
1476
+ updatedBy: string | null;
1477
+ deletedAt: Date | null;
1478
+ deletedBy: string | null;
1479
+ }, ExtArgs["result"]["address"]>;
1480
+ composites: {};
1481
+ };
1482
+ export type AddressGetPayload<S extends boolean | null | undefined | AddressDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AddressPayload, S>;
1483
+ export type AddressCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AddressFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1484
+ select?: AddressCountAggregateInputType | true;
1485
+ };
1486
+ export interface AddressDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1487
+ [K: symbol]: {
1488
+ types: Prisma.TypeMap<ExtArgs>['model']['Address'];
1489
+ meta: {
1490
+ name: 'Address';
1491
+ };
1492
+ };
1493
+ /**
1494
+ * Find zero or one Address that matches the filter.
1495
+ * @param {AddressFindUniqueArgs} args - Arguments to find a Address
1496
+ * @example
1497
+ * // Get one Address
1498
+ * const address = await prisma.address.findUnique({
1499
+ * where: {
1500
+ * // ... provide filter here
1501
+ * }
1502
+ * })
1503
+ */
1504
+ findUnique<T extends AddressFindUniqueArgs>(args: Prisma.SelectSubset<T, AddressFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1505
+ /**
1506
+ * Find one Address that matches the filter or throw an error with `error.code='P2025'`
1507
+ * if no matches were found.
1508
+ * @param {AddressFindUniqueOrThrowArgs} args - Arguments to find a Address
1509
+ * @example
1510
+ * // Get one Address
1511
+ * const address = await prisma.address.findUniqueOrThrow({
1512
+ * where: {
1513
+ * // ... provide filter here
1514
+ * }
1515
+ * })
1516
+ */
1517
+ findUniqueOrThrow<T extends AddressFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AddressFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1518
+ /**
1519
+ * Find the first Address that matches the filter.
1520
+ * Note, that providing `undefined` is treated as the value not being there.
1521
+ * Read more here: https://pris.ly/d/null-undefined
1522
+ * @param {AddressFindFirstArgs} args - Arguments to find a Address
1523
+ * @example
1524
+ * // Get one Address
1525
+ * const address = await prisma.address.findFirst({
1526
+ * where: {
1527
+ * // ... provide filter here
1528
+ * }
1529
+ * })
1530
+ */
1531
+ findFirst<T extends AddressFindFirstArgs>(args?: Prisma.SelectSubset<T, AddressFindFirstArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1532
+ /**
1533
+ * Find the first Address that matches the filter or
1534
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1535
+ * Note, that providing `undefined` is treated as the value not being there.
1536
+ * Read more here: https://pris.ly/d/null-undefined
1537
+ * @param {AddressFindFirstOrThrowArgs} args - Arguments to find a Address
1538
+ * @example
1539
+ * // Get one Address
1540
+ * const address = await prisma.address.findFirstOrThrow({
1541
+ * where: {
1542
+ * // ... provide filter here
1543
+ * }
1544
+ * })
1545
+ */
1546
+ findFirstOrThrow<T extends AddressFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AddressFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1547
+ /**
1548
+ * Find zero or more Addresses that matches the filter.
1549
+ * Note, that providing `undefined` is treated as the value not being there.
1550
+ * Read more here: https://pris.ly/d/null-undefined
1551
+ * @param {AddressFindManyArgs} args - Arguments to filter and select certain fields only.
1552
+ * @example
1553
+ * // Get all Addresses
1554
+ * const addresses = await prisma.address.findMany()
1555
+ *
1556
+ * // Get first 10 Addresses
1557
+ * const addresses = await prisma.address.findMany({ take: 10 })
1558
+ *
1559
+ * // Only select the `id`
1560
+ * const addressWithIdOnly = await prisma.address.findMany({ select: { id: true } })
1561
+ *
1562
+ */
1563
+ findMany<T extends AddressFindManyArgs>(args?: Prisma.SelectSubset<T, AddressFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1564
+ /**
1565
+ * Create a Address.
1566
+ * @param {AddressCreateArgs} args - Arguments to create a Address.
1567
+ * @example
1568
+ * // Create one Address
1569
+ * const Address = await prisma.address.create({
1570
+ * data: {
1571
+ * // ... data to create a Address
1572
+ * }
1573
+ * })
1574
+ *
1575
+ */
1576
+ create<T extends AddressCreateArgs>(args: Prisma.SelectSubset<T, AddressCreateArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1577
+ /**
1578
+ * Create many Addresses.
1579
+ * @param {AddressCreateManyArgs} args - Arguments to create many Addresses.
1580
+ * @example
1581
+ * // Create many Addresses
1582
+ * const address = await prisma.address.createMany({
1583
+ * data: [
1584
+ * // ... provide data here
1585
+ * ]
1586
+ * })
1587
+ *
1588
+ */
1589
+ createMany<T extends AddressCreateManyArgs>(args?: Prisma.SelectSubset<T, AddressCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1590
+ /**
1591
+ * Create many Addresses and returns the data saved in the database.
1592
+ * @param {AddressCreateManyAndReturnArgs} args - Arguments to create many Addresses.
1593
+ * @example
1594
+ * // Create many Addresses
1595
+ * const address = await prisma.address.createManyAndReturn({
1596
+ * data: [
1597
+ * // ... provide data here
1598
+ * ]
1599
+ * })
1600
+ *
1601
+ * // Create many Addresses and only return the `id`
1602
+ * const addressWithIdOnly = await prisma.address.createManyAndReturn({
1603
+ * select: { id: true },
1604
+ * data: [
1605
+ * // ... provide data here
1606
+ * ]
1607
+ * })
1608
+ * Note, that providing `undefined` is treated as the value not being there.
1609
+ * Read more here: https://pris.ly/d/null-undefined
1610
+ *
1611
+ */
1612
+ createManyAndReturn<T extends AddressCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AddressCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1613
+ /**
1614
+ * Delete a Address.
1615
+ * @param {AddressDeleteArgs} args - Arguments to delete one Address.
1616
+ * @example
1617
+ * // Delete one Address
1618
+ * const Address = await prisma.address.delete({
1619
+ * where: {
1620
+ * // ... filter to delete one Address
1621
+ * }
1622
+ * })
1623
+ *
1624
+ */
1625
+ delete<T extends AddressDeleteArgs>(args: Prisma.SelectSubset<T, AddressDeleteArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1626
+ /**
1627
+ * Update one Address.
1628
+ * @param {AddressUpdateArgs} args - Arguments to update one Address.
1629
+ * @example
1630
+ * // Update one Address
1631
+ * const address = await prisma.address.update({
1632
+ * where: {
1633
+ * // ... provide filter here
1634
+ * },
1635
+ * data: {
1636
+ * // ... provide data here
1637
+ * }
1638
+ * })
1639
+ *
1640
+ */
1641
+ update<T extends AddressUpdateArgs>(args: Prisma.SelectSubset<T, AddressUpdateArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1642
+ /**
1643
+ * Delete zero or more Addresses.
1644
+ * @param {AddressDeleteManyArgs} args - Arguments to filter Addresses to delete.
1645
+ * @example
1646
+ * // Delete a few Addresses
1647
+ * const { count } = await prisma.address.deleteMany({
1648
+ * where: {
1649
+ * // ... provide filter here
1650
+ * }
1651
+ * })
1652
+ *
1653
+ */
1654
+ deleteMany<T extends AddressDeleteManyArgs>(args?: Prisma.SelectSubset<T, AddressDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1655
+ /**
1656
+ * Update zero or more Addresses.
1657
+ * Note, that providing `undefined` is treated as the value not being there.
1658
+ * Read more here: https://pris.ly/d/null-undefined
1659
+ * @param {AddressUpdateManyArgs} args - Arguments to update one or more rows.
1660
+ * @example
1661
+ * // Update many Addresses
1662
+ * const address = await prisma.address.updateMany({
1663
+ * where: {
1664
+ * // ... provide filter here
1665
+ * },
1666
+ * data: {
1667
+ * // ... provide data here
1668
+ * }
1669
+ * })
1670
+ *
1671
+ */
1672
+ updateMany<T extends AddressUpdateManyArgs>(args: Prisma.SelectSubset<T, AddressUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1673
+ /**
1674
+ * Update zero or more Addresses and returns the data updated in the database.
1675
+ * @param {AddressUpdateManyAndReturnArgs} args - Arguments to update many Addresses.
1676
+ * @example
1677
+ * // Update many Addresses
1678
+ * const address = await prisma.address.updateManyAndReturn({
1679
+ * where: {
1680
+ * // ... provide filter here
1681
+ * },
1682
+ * data: [
1683
+ * // ... provide data here
1684
+ * ]
1685
+ * })
1686
+ *
1687
+ * // Update zero or more Addresses and only return the `id`
1688
+ * const addressWithIdOnly = await prisma.address.updateManyAndReturn({
1689
+ * select: { id: true },
1690
+ * where: {
1691
+ * // ... provide filter here
1692
+ * },
1693
+ * data: [
1694
+ * // ... provide data here
1695
+ * ]
1696
+ * })
1697
+ * Note, that providing `undefined` is treated as the value not being there.
1698
+ * Read more here: https://pris.ly/d/null-undefined
1699
+ *
1700
+ */
1701
+ updateManyAndReturn<T extends AddressUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AddressUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1702
+ /**
1703
+ * Create or update one Address.
1704
+ * @param {AddressUpsertArgs} args - Arguments to update or create a Address.
1705
+ * @example
1706
+ * // Update or create a Address
1707
+ * const address = await prisma.address.upsert({
1708
+ * create: {
1709
+ * // ... data to create a Address
1710
+ * },
1711
+ * update: {
1712
+ * // ... in case it already exists, update
1713
+ * },
1714
+ * where: {
1715
+ * // ... the filter for the Address we want to update
1716
+ * }
1717
+ * })
1718
+ */
1719
+ upsert<T extends AddressUpsertArgs>(args: Prisma.SelectSubset<T, AddressUpsertArgs<ExtArgs>>): Prisma.Prisma__AddressClient<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1720
+ /**
1721
+ * Count the number of Addresses.
1722
+ * Note, that providing `undefined` is treated as the value not being there.
1723
+ * Read more here: https://pris.ly/d/null-undefined
1724
+ * @param {AddressCountArgs} args - Arguments to filter Addresses to count.
1725
+ * @example
1726
+ * // Count the number of Addresses
1727
+ * const count = await prisma.address.count({
1728
+ * where: {
1729
+ * // ... the filter for the Addresses we want to count
1730
+ * }
1731
+ * })
1732
+ **/
1733
+ count<T extends AddressCountArgs>(args?: Prisma.Subset<T, AddressCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AddressCountAggregateOutputType> : number>;
1734
+ /**
1735
+ * Allows you to perform aggregations operations on a Address.
1736
+ * Note, that providing `undefined` is treated as the value not being there.
1737
+ * Read more here: https://pris.ly/d/null-undefined
1738
+ * @param {AddressAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1739
+ * @example
1740
+ * // Ordered by age ascending
1741
+ * // Where email contains prisma.io
1742
+ * // Limited to the 10 users
1743
+ * const aggregations = await prisma.user.aggregate({
1744
+ * _avg: {
1745
+ * age: true,
1746
+ * },
1747
+ * where: {
1748
+ * email: {
1749
+ * contains: "prisma.io",
1750
+ * },
1751
+ * },
1752
+ * orderBy: {
1753
+ * age: "asc",
1754
+ * },
1755
+ * take: 10,
1756
+ * })
1757
+ **/
1758
+ aggregate<T extends AddressAggregateArgs>(args: Prisma.Subset<T, AddressAggregateArgs>): Prisma.PrismaPromise<GetAddressAggregateType<T>>;
1759
+ /**
1760
+ * Group by Address.
1761
+ * Note, that providing `undefined` is treated as the value not being there.
1762
+ * Read more here: https://pris.ly/d/null-undefined
1763
+ * @param {AddressGroupByArgs} args - Group by arguments.
1764
+ * @example
1765
+ * // Group by city, order by createdAt, get count
1766
+ * const result = await prisma.user.groupBy({
1767
+ * by: ['city', 'createdAt'],
1768
+ * orderBy: {
1769
+ * createdAt: true
1770
+ * },
1771
+ * _count: {
1772
+ * _all: true
1773
+ * },
1774
+ * })
1775
+ *
1776
+ **/
1777
+ groupBy<T extends AddressGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1778
+ orderBy: AddressGroupByArgs['orderBy'];
1779
+ } : {
1780
+ orderBy?: AddressGroupByArgs['orderBy'];
1781
+ }, 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 ? {
1782
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1783
+ Error,
1784
+ 'Field ',
1785
+ P,
1786
+ ` in "having" needs to be provided in "by"`
1787
+ ];
1788
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1789
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1790
+ }[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 ? {} : {
1791
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1792
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1793
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1794
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, AddressGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAddressGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1795
+ /**
1796
+ * Fields of the Address model
1797
+ */
1798
+ readonly fields: AddressFieldRefs;
1799
+ }
1800
+ /**
1801
+ * The delegate class that acts as a "Promise-like" for Address.
1802
+ * Why is this prefixed with `Prisma__`?
1803
+ * Because we want to prevent naming conflicts as mentioned in
1804
+ * https://github.com/prisma/prisma-client-js/issues/707
1805
+ */
1806
+ export interface Prisma__AddressClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1807
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1808
+ LegalEntity<T extends Prisma.Address$LegalEntityArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Address$LegalEntityArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LegalEntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1809
+ organizations<T extends Prisma.Address$organizationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Address$organizationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1810
+ users<T extends Prisma.Address$usersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Address$usersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1811
+ orders<T extends Prisma.Address$ordersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Address$ordersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1812
+ /**
1813
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1814
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1815
+ * @param onrejected The callback to execute when the Promise is rejected.
1816
+ * @returns A Promise for the completion of which ever callback is executed.
1817
+ */
1818
+ 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>;
1819
+ /**
1820
+ * Attaches a callback for only the rejection of the Promise.
1821
+ * @param onrejected The callback to execute when the Promise is rejected.
1822
+ * @returns A Promise for the completion of the callback.
1823
+ */
1824
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1825
+ /**
1826
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1827
+ * resolved value cannot be modified from the callback.
1828
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1829
+ * @returns A Promise for the completion of the callback.
1830
+ */
1831
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1832
+ }
1833
+ /**
1834
+ * Fields of the Address model
1835
+ */
1836
+ export interface AddressFieldRefs {
1837
+ readonly id: Prisma.FieldRef<"Address", 'String'>;
1838
+ readonly firstname: Prisma.FieldRef<"Address", 'String'>;
1839
+ readonly lastname: Prisma.FieldRef<"Address", 'String'>;
1840
+ readonly phone: Prisma.FieldRef<"Address", 'String'>;
1841
+ readonly addressLineOne: Prisma.FieldRef<"Address", 'String'>;
1842
+ readonly doorNumber: Prisma.FieldRef<"Address", 'String'>;
1843
+ readonly addressLineTwo: Prisma.FieldRef<"Address", 'String'>;
1844
+ readonly zipCode: Prisma.FieldRef<"Address", 'String'>;
1845
+ readonly placeId: Prisma.FieldRef<"Address", 'String'>;
1846
+ readonly deliveryInstructions: Prisma.FieldRef<"Address", 'String'>;
1847
+ readonly city: Prisma.FieldRef<"Address", 'String'>;
1848
+ readonly country: Prisma.FieldRef<"Address", 'String'>;
1849
+ readonly latitude: Prisma.FieldRef<"Address", 'Float'>;
1850
+ readonly longitude: Prisma.FieldRef<"Address", 'Float'>;
1851
+ readonly isDefault: Prisma.FieldRef<"Address", 'Boolean'>;
1852
+ readonly createdAt: Prisma.FieldRef<"Address", 'DateTime'>;
1853
+ readonly createdBy: Prisma.FieldRef<"Address", 'String'>;
1854
+ readonly updatedAt: Prisma.FieldRef<"Address", 'DateTime'>;
1855
+ readonly updatedBy: Prisma.FieldRef<"Address", 'String'>;
1856
+ readonly deletedAt: Prisma.FieldRef<"Address", 'DateTime'>;
1857
+ readonly deletedBy: Prisma.FieldRef<"Address", 'String'>;
1858
+ }
1859
+ /**
1860
+ * Address findUnique
1861
+ */
1862
+ export type AddressFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1863
+ /**
1864
+ * Select specific fields to fetch from the Address
1865
+ */
1866
+ select?: Prisma.AddressSelect<ExtArgs> | null;
1867
+ /**
1868
+ * Omit specific fields from the Address
1869
+ */
1870
+ omit?: Prisma.AddressOmit<ExtArgs> | null;
1871
+ /**
1872
+ * Choose, which related nodes to fetch as well
1873
+ */
1874
+ include?: Prisma.AddressInclude<ExtArgs> | null;
1875
+ /**
1876
+ * Filter, which Address to fetch.
1877
+ */
1878
+ where: Prisma.AddressWhereUniqueInput;
1879
+ };
1880
+ /**
1881
+ * Address findUniqueOrThrow
1882
+ */
1883
+ export type AddressFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1884
+ /**
1885
+ * Select specific fields to fetch from the Address
1886
+ */
1887
+ select?: Prisma.AddressSelect<ExtArgs> | null;
1888
+ /**
1889
+ * Omit specific fields from the Address
1890
+ */
1891
+ omit?: Prisma.AddressOmit<ExtArgs> | null;
1892
+ /**
1893
+ * Choose, which related nodes to fetch as well
1894
+ */
1895
+ include?: Prisma.AddressInclude<ExtArgs> | null;
1896
+ /**
1897
+ * Filter, which Address to fetch.
1898
+ */
1899
+ where: Prisma.AddressWhereUniqueInput;
1900
+ };
1901
+ /**
1902
+ * Address findFirst
1903
+ */
1904
+ export type AddressFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1905
+ /**
1906
+ * Select specific fields to fetch from the Address
1907
+ */
1908
+ select?: Prisma.AddressSelect<ExtArgs> | null;
1909
+ /**
1910
+ * Omit specific fields from the Address
1911
+ */
1912
+ omit?: Prisma.AddressOmit<ExtArgs> | null;
1913
+ /**
1914
+ * Choose, which related nodes to fetch as well
1915
+ */
1916
+ include?: Prisma.AddressInclude<ExtArgs> | null;
1917
+ /**
1918
+ * Filter, which Address to fetch.
1919
+ */
1920
+ where?: Prisma.AddressWhereInput;
1921
+ /**
1922
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1923
+ *
1924
+ * Determine the order of Addresses to fetch.
1925
+ */
1926
+ orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[];
1927
+ /**
1928
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1929
+ *
1930
+ * Sets the position for searching for Addresses.
1931
+ */
1932
+ cursor?: Prisma.AddressWhereUniqueInput;
1933
+ /**
1934
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1935
+ *
1936
+ * Take `±n` Addresses from the position of the cursor.
1937
+ */
1938
+ take?: number;
1939
+ /**
1940
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1941
+ *
1942
+ * Skip the first `n` Addresses.
1943
+ */
1944
+ skip?: number;
1945
+ /**
1946
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1947
+ *
1948
+ * Filter by unique combinations of Addresses.
1949
+ */
1950
+ distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[];
1951
+ };
1952
+ /**
1953
+ * Address findFirstOrThrow
1954
+ */
1955
+ export type AddressFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1956
+ /**
1957
+ * Select specific fields to fetch from the Address
1958
+ */
1959
+ select?: Prisma.AddressSelect<ExtArgs> | null;
1960
+ /**
1961
+ * Omit specific fields from the Address
1962
+ */
1963
+ omit?: Prisma.AddressOmit<ExtArgs> | null;
1964
+ /**
1965
+ * Choose, which related nodes to fetch as well
1966
+ */
1967
+ include?: Prisma.AddressInclude<ExtArgs> | null;
1968
+ /**
1969
+ * Filter, which Address to fetch.
1970
+ */
1971
+ where?: Prisma.AddressWhereInput;
1972
+ /**
1973
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1974
+ *
1975
+ * Determine the order of Addresses to fetch.
1976
+ */
1977
+ orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[];
1978
+ /**
1979
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1980
+ *
1981
+ * Sets the position for searching for Addresses.
1982
+ */
1983
+ cursor?: Prisma.AddressWhereUniqueInput;
1984
+ /**
1985
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1986
+ *
1987
+ * Take `±n` Addresses from the position of the cursor.
1988
+ */
1989
+ take?: number;
1990
+ /**
1991
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1992
+ *
1993
+ * Skip the first `n` Addresses.
1994
+ */
1995
+ skip?: number;
1996
+ /**
1997
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1998
+ *
1999
+ * Filter by unique combinations of Addresses.
2000
+ */
2001
+ distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[];
2002
+ };
2003
+ /**
2004
+ * Address findMany
2005
+ */
2006
+ export type AddressFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2007
+ /**
2008
+ * Select specific fields to fetch from the Address
2009
+ */
2010
+ select?: Prisma.AddressSelect<ExtArgs> | null;
2011
+ /**
2012
+ * Omit specific fields from the Address
2013
+ */
2014
+ omit?: Prisma.AddressOmit<ExtArgs> | null;
2015
+ /**
2016
+ * Choose, which related nodes to fetch as well
2017
+ */
2018
+ include?: Prisma.AddressInclude<ExtArgs> | null;
2019
+ /**
2020
+ * Filter, which Addresses to fetch.
2021
+ */
2022
+ where?: Prisma.AddressWhereInput;
2023
+ /**
2024
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2025
+ *
2026
+ * Determine the order of Addresses to fetch.
2027
+ */
2028
+ orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[];
2029
+ /**
2030
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2031
+ *
2032
+ * Sets the position for listing Addresses.
2033
+ */
2034
+ cursor?: Prisma.AddressWhereUniqueInput;
2035
+ /**
2036
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2037
+ *
2038
+ * Take `±n` Addresses from the position of the cursor.
2039
+ */
2040
+ take?: number;
2041
+ /**
2042
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2043
+ *
2044
+ * Skip the first `n` Addresses.
2045
+ */
2046
+ skip?: number;
2047
+ distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[];
2048
+ };
2049
+ /**
2050
+ * Address create
2051
+ */
2052
+ export type AddressCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2053
+ /**
2054
+ * Select specific fields to fetch from the Address
2055
+ */
2056
+ select?: Prisma.AddressSelect<ExtArgs> | null;
2057
+ /**
2058
+ * Omit specific fields from the Address
2059
+ */
2060
+ omit?: Prisma.AddressOmit<ExtArgs> | null;
2061
+ /**
2062
+ * Choose, which related nodes to fetch as well
2063
+ */
2064
+ include?: Prisma.AddressInclude<ExtArgs> | null;
2065
+ /**
2066
+ * The data needed to create a Address.
2067
+ */
2068
+ data: Prisma.XOR<Prisma.AddressCreateInput, Prisma.AddressUncheckedCreateInput>;
2069
+ };
2070
+ /**
2071
+ * Address createMany
2072
+ */
2073
+ export type AddressCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2074
+ /**
2075
+ * The data used to create many Addresses.
2076
+ */
2077
+ data: Prisma.AddressCreateManyInput | Prisma.AddressCreateManyInput[];
2078
+ skipDuplicates?: boolean;
2079
+ };
2080
+ /**
2081
+ * Address createManyAndReturn
2082
+ */
2083
+ export type AddressCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2084
+ /**
2085
+ * Select specific fields to fetch from the Address
2086
+ */
2087
+ select?: Prisma.AddressSelectCreateManyAndReturn<ExtArgs> | null;
2088
+ /**
2089
+ * Omit specific fields from the Address
2090
+ */
2091
+ omit?: Prisma.AddressOmit<ExtArgs> | null;
2092
+ /**
2093
+ * The data used to create many Addresses.
2094
+ */
2095
+ data: Prisma.AddressCreateManyInput | Prisma.AddressCreateManyInput[];
2096
+ skipDuplicates?: boolean;
2097
+ };
2098
+ /**
2099
+ * Address update
2100
+ */
2101
+ export type AddressUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2102
+ /**
2103
+ * Select specific fields to fetch from the Address
2104
+ */
2105
+ select?: Prisma.AddressSelect<ExtArgs> | null;
2106
+ /**
2107
+ * Omit specific fields from the Address
2108
+ */
2109
+ omit?: Prisma.AddressOmit<ExtArgs> | null;
2110
+ /**
2111
+ * Choose, which related nodes to fetch as well
2112
+ */
2113
+ include?: Prisma.AddressInclude<ExtArgs> | null;
2114
+ /**
2115
+ * The data needed to update a Address.
2116
+ */
2117
+ data: Prisma.XOR<Prisma.AddressUpdateInput, Prisma.AddressUncheckedUpdateInput>;
2118
+ /**
2119
+ * Choose, which Address to update.
2120
+ */
2121
+ where: Prisma.AddressWhereUniqueInput;
2122
+ };
2123
+ /**
2124
+ * Address updateMany
2125
+ */
2126
+ export type AddressUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2127
+ /**
2128
+ * The data used to update Addresses.
2129
+ */
2130
+ data: Prisma.XOR<Prisma.AddressUpdateManyMutationInput, Prisma.AddressUncheckedUpdateManyInput>;
2131
+ /**
2132
+ * Filter which Addresses to update
2133
+ */
2134
+ where?: Prisma.AddressWhereInput;
2135
+ /**
2136
+ * Limit how many Addresses to update.
2137
+ */
2138
+ limit?: number;
2139
+ };
2140
+ /**
2141
+ * Address updateManyAndReturn
2142
+ */
2143
+ export type AddressUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2144
+ /**
2145
+ * Select specific fields to fetch from the Address
2146
+ */
2147
+ select?: Prisma.AddressSelectUpdateManyAndReturn<ExtArgs> | null;
2148
+ /**
2149
+ * Omit specific fields from the Address
2150
+ */
2151
+ omit?: Prisma.AddressOmit<ExtArgs> | null;
2152
+ /**
2153
+ * The data used to update Addresses.
2154
+ */
2155
+ data: Prisma.XOR<Prisma.AddressUpdateManyMutationInput, Prisma.AddressUncheckedUpdateManyInput>;
2156
+ /**
2157
+ * Filter which Addresses to update
2158
+ */
2159
+ where?: Prisma.AddressWhereInput;
2160
+ /**
2161
+ * Limit how many Addresses to update.
2162
+ */
2163
+ limit?: number;
2164
+ };
2165
+ /**
2166
+ * Address upsert
2167
+ */
2168
+ export type AddressUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2169
+ /**
2170
+ * Select specific fields to fetch from the Address
2171
+ */
2172
+ select?: Prisma.AddressSelect<ExtArgs> | null;
2173
+ /**
2174
+ * Omit specific fields from the Address
2175
+ */
2176
+ omit?: Prisma.AddressOmit<ExtArgs> | null;
2177
+ /**
2178
+ * Choose, which related nodes to fetch as well
2179
+ */
2180
+ include?: Prisma.AddressInclude<ExtArgs> | null;
2181
+ /**
2182
+ * The filter to search for the Address to update in case it exists.
2183
+ */
2184
+ where: Prisma.AddressWhereUniqueInput;
2185
+ /**
2186
+ * In case the Address found by the `where` argument doesn't exist, create a new Address with this data.
2187
+ */
2188
+ create: Prisma.XOR<Prisma.AddressCreateInput, Prisma.AddressUncheckedCreateInput>;
2189
+ /**
2190
+ * In case the Address was found with the provided `where` argument, update it with this data.
2191
+ */
2192
+ update: Prisma.XOR<Prisma.AddressUpdateInput, Prisma.AddressUncheckedUpdateInput>;
2193
+ };
2194
+ /**
2195
+ * Address delete
2196
+ */
2197
+ export type AddressDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2198
+ /**
2199
+ * Select specific fields to fetch from the Address
2200
+ */
2201
+ select?: Prisma.AddressSelect<ExtArgs> | null;
2202
+ /**
2203
+ * Omit specific fields from the Address
2204
+ */
2205
+ omit?: Prisma.AddressOmit<ExtArgs> | null;
2206
+ /**
2207
+ * Choose, which related nodes to fetch as well
2208
+ */
2209
+ include?: Prisma.AddressInclude<ExtArgs> | null;
2210
+ /**
2211
+ * Filter which Address to delete.
2212
+ */
2213
+ where: Prisma.AddressWhereUniqueInput;
2214
+ };
2215
+ /**
2216
+ * Address deleteMany
2217
+ */
2218
+ export type AddressDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2219
+ /**
2220
+ * Filter which Addresses to delete
2221
+ */
2222
+ where?: Prisma.AddressWhereInput;
2223
+ /**
2224
+ * Limit how many Addresses to delete.
2225
+ */
2226
+ limit?: number;
2227
+ };
2228
+ /**
2229
+ * Address.LegalEntity
2230
+ */
2231
+ export type Address$LegalEntityArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2232
+ /**
2233
+ * Select specific fields to fetch from the LegalEntity
2234
+ */
2235
+ select?: Prisma.LegalEntitySelect<ExtArgs> | null;
2236
+ /**
2237
+ * Omit specific fields from the LegalEntity
2238
+ */
2239
+ omit?: Prisma.LegalEntityOmit<ExtArgs> | null;
2240
+ /**
2241
+ * Choose, which related nodes to fetch as well
2242
+ */
2243
+ include?: Prisma.LegalEntityInclude<ExtArgs> | null;
2244
+ where?: Prisma.LegalEntityWhereInput;
2245
+ orderBy?: Prisma.LegalEntityOrderByWithRelationInput | Prisma.LegalEntityOrderByWithRelationInput[];
2246
+ cursor?: Prisma.LegalEntityWhereUniqueInput;
2247
+ take?: number;
2248
+ skip?: number;
2249
+ distinct?: Prisma.LegalEntityScalarFieldEnum | Prisma.LegalEntityScalarFieldEnum[];
2250
+ };
2251
+ /**
2252
+ * Address.organizations
2253
+ */
2254
+ export type Address$organizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2255
+ /**
2256
+ * Select specific fields to fetch from the Organization
2257
+ */
2258
+ select?: Prisma.OrganizationSelect<ExtArgs> | null;
2259
+ /**
2260
+ * Omit specific fields from the Organization
2261
+ */
2262
+ omit?: Prisma.OrganizationOmit<ExtArgs> | null;
2263
+ /**
2264
+ * Choose, which related nodes to fetch as well
2265
+ */
2266
+ include?: Prisma.OrganizationInclude<ExtArgs> | null;
2267
+ where?: Prisma.OrganizationWhereInput;
2268
+ orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[];
2269
+ cursor?: Prisma.OrganizationWhereUniqueInput;
2270
+ take?: number;
2271
+ skip?: number;
2272
+ distinct?: Prisma.OrganizationScalarFieldEnum | Prisma.OrganizationScalarFieldEnum[];
2273
+ };
2274
+ /**
2275
+ * Address.users
2276
+ */
2277
+ export type Address$usersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2278
+ /**
2279
+ * Select specific fields to fetch from the User
2280
+ */
2281
+ select?: Prisma.UserSelect<ExtArgs> | null;
2282
+ /**
2283
+ * Omit specific fields from the User
2284
+ */
2285
+ omit?: Prisma.UserOmit<ExtArgs> | null;
2286
+ /**
2287
+ * Choose, which related nodes to fetch as well
2288
+ */
2289
+ include?: Prisma.UserInclude<ExtArgs> | null;
2290
+ where?: Prisma.UserWhereInput;
2291
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
2292
+ cursor?: Prisma.UserWhereUniqueInput;
2293
+ take?: number;
2294
+ skip?: number;
2295
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
2296
+ };
2297
+ /**
2298
+ * Address.orders
2299
+ */
2300
+ export type Address$ordersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2301
+ /**
2302
+ * Select specific fields to fetch from the Order
2303
+ */
2304
+ select?: Prisma.OrderSelect<ExtArgs> | null;
2305
+ /**
2306
+ * Omit specific fields from the Order
2307
+ */
2308
+ omit?: Prisma.OrderOmit<ExtArgs> | null;
2309
+ /**
2310
+ * Choose, which related nodes to fetch as well
2311
+ */
2312
+ include?: Prisma.OrderInclude<ExtArgs> | null;
2313
+ where?: Prisma.OrderWhereInput;
2314
+ orderBy?: Prisma.OrderOrderByWithRelationInput | Prisma.OrderOrderByWithRelationInput[];
2315
+ cursor?: Prisma.OrderWhereUniqueInput;
2316
+ take?: number;
2317
+ skip?: number;
2318
+ distinct?: Prisma.OrderScalarFieldEnum | Prisma.OrderScalarFieldEnum[];
2319
+ };
2320
+ /**
2321
+ * Address without action
2322
+ */
2323
+ export type AddressDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2324
+ /**
2325
+ * Select specific fields to fetch from the Address
2326
+ */
2327
+ select?: Prisma.AddressSelect<ExtArgs> | null;
2328
+ /**
2329
+ * Omit specific fields from the Address
2330
+ */
2331
+ omit?: Prisma.AddressOmit<ExtArgs> | null;
2332
+ /**
2333
+ * Choose, which related nodes to fetch as well
2334
+ */
2335
+ include?: Prisma.AddressInclude<ExtArgs> | null;
2336
+ };
2337
+ export {};