@aeolus-fleet/core 0.0.0 → 0.19.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 (610) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +98 -1
  3. package/dist/adapters/cli/fleet-init.d.ts +14 -0
  4. package/dist/adapters/cli/fleet-init.js +68 -0
  5. package/dist/adapters/cli/fleet-init.js.map +1 -0
  6. package/dist/adapters/cli/io.d.ts +35 -0
  7. package/dist/adapters/cli/io.js +21 -0
  8. package/dist/adapters/cli/io.js.map +1 -0
  9. package/dist/adapters/cli/migrate.d.ts +11 -0
  10. package/dist/adapters/cli/migrate.js +12 -0
  11. package/dist/adapters/cli/migrate.js.map +1 -0
  12. package/dist/adapters/cli/operator-reset-password.d.ts +12 -0
  13. package/dist/adapters/cli/operator-reset-password.js +49 -0
  14. package/dist/adapters/cli/operator-reset-password.js.map +1 -0
  15. package/dist/adapters/cli/run.d.ts +14 -0
  16. package/dist/adapters/cli/run.js +40 -0
  17. package/dist/adapters/cli/run.js.map +1 -0
  18. package/dist/adapters/cli/terminal.d.ts +20 -0
  19. package/dist/adapters/cli/terminal.js +68 -0
  20. package/dist/adapters/cli/terminal.js.map +1 -0
  21. package/dist/adapters/crypto/passwords.d.ts +2 -0
  22. package/dist/adapters/crypto/passwords.js +59 -0
  23. package/dist/adapters/crypto/passwords.js.map +1 -0
  24. package/dist/adapters/crypto/secrets.d.ts +5 -0
  25. package/dist/adapters/crypto/secrets.js +10 -0
  26. package/dist/adapters/crypto/secrets.js.map +1 -0
  27. package/dist/adapters/http/device-label.d.ts +9 -0
  28. package/dist/adapters/http/device-label.js +39 -0
  29. package/dist/adapters/http/device-label.js.map +1 -0
  30. package/dist/adapters/http/rate-limiter.d.ts +21 -0
  31. package/dist/adapters/http/rate-limiter.js +44 -0
  32. package/dist/adapters/http/rate-limiter.js.map +1 -0
  33. package/dist/adapters/http/request-credentials.d.ts +23 -0
  34. package/dist/adapters/http/request-credentials.js +45 -0
  35. package/dist/adapters/http/request-credentials.js.map +1 -0
  36. package/dist/adapters/http/server.d.ts +47 -0
  37. package/dist/adapters/http/server.js +216 -0
  38. package/dist/adapters/http/server.js.map +1 -0
  39. package/dist/adapters/http/version.d.ts +9 -0
  40. package/dist/adapters/http/version.js +23 -0
  41. package/dist/adapters/http/version.js.map +1 -0
  42. package/dist/adapters/mcp/mcp-endpoint.d.ts +8 -0
  43. package/dist/adapters/mcp/mcp-endpoint.js +127 -0
  44. package/dist/adapters/mcp/mcp-endpoint.js.map +1 -0
  45. package/dist/adapters/prisma/client.d.ts +10 -0
  46. package/dist/adapters/prisma/client.js +20 -0
  47. package/dist/adapters/prisma/client.js.map +1 -0
  48. package/dist/adapters/prisma/delivery-notices.d.ts +34 -0
  49. package/dist/adapters/prisma/delivery-notices.js +113 -0
  50. package/dist/adapters/prisma/delivery-notices.js.map +1 -0
  51. package/dist/adapters/prisma/event-log.d.ts +11 -0
  52. package/dist/adapters/prisma/event-log.js +61 -0
  53. package/dist/adapters/prisma/event-log.js.map +1 -0
  54. package/dist/adapters/prisma/failure-log.d.ts +22 -0
  55. package/dist/adapters/prisma/failure-log.js +70 -0
  56. package/dist/adapters/prisma/failure-log.js.map +1 -0
  57. package/dist/adapters/prisma/fleet-counter.d.ts +3 -0
  58. package/dist/adapters/prisma/fleet-counter.js +6 -0
  59. package/dist/adapters/prisma/fleet-counter.js.map +1 -0
  60. package/dist/adapters/prisma/fleet-event-wakeups.d.ts +33 -0
  61. package/dist/adapters/prisma/fleet-event-wakeups.js +86 -0
  62. package/dist/adapters/prisma/fleet-event-wakeups.js.map +1 -0
  63. package/dist/adapters/prisma/generated/browser.d.ts +127 -0
  64. package/dist/adapters/prisma/generated/browser.js +18 -0
  65. package/dist/adapters/prisma/generated/browser.js.map +1 -0
  66. package/dist/adapters/prisma/generated/client.d.ts +146 -0
  67. package/dist/adapters/prisma/generated/client.js +38 -0
  68. package/dist/adapters/prisma/generated/client.js.map +1 -0
  69. package/dist/adapters/prisma/generated/commonInputTypes.d.ts +879 -0
  70. package/dist/adapters/prisma/generated/commonInputTypes.js +11 -0
  71. package/dist/adapters/prisma/generated/commonInputTypes.js.map +1 -0
  72. package/dist/adapters/prisma/generated/enums.d.ts +75 -0
  73. package/dist/adapters/prisma/generated/enums.js +73 -0
  74. package/dist/adapters/prisma/generated/enums.js.map +1 -0
  75. package/dist/adapters/prisma/generated/internal/class.d.ts +308 -0
  76. package/dist/adapters/prisma/generated/internal/class.js +52 -0
  77. package/dist/adapters/prisma/generated/internal/class.js.map +1 -0
  78. package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +2131 -0
  79. package/dist/adapters/prisma/generated/internal/prismaNamespace.js +295 -0
  80. package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -0
  81. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +273 -0
  82. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +265 -0
  83. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -0
  84. package/dist/adapters/prisma/generated/models/ConsoleSession.d.ts +2137 -0
  85. package/dist/adapters/prisma/generated/models/ConsoleSession.js +2 -0
  86. package/dist/adapters/prisma/generated/models/ConsoleSession.js.map +1 -0
  87. package/dist/adapters/prisma/generated/models/Credential.d.ts +1360 -0
  88. package/dist/adapters/prisma/generated/models/Credential.js +2 -0
  89. package/dist/adapters/prisma/generated/models/Credential.js.map +1 -0
  90. package/dist/adapters/prisma/generated/models/CrewRequest.d.ts +1558 -0
  91. package/dist/adapters/prisma/generated/models/CrewRequest.js +2 -0
  92. package/dist/adapters/prisma/generated/models/CrewRequest.js.map +1 -0
  93. package/dist/adapters/prisma/generated/models/Delivery.d.ts +2211 -0
  94. package/dist/adapters/prisma/generated/models/Delivery.js +2 -0
  95. package/dist/adapters/prisma/generated/models/Delivery.js.map +1 -0
  96. package/dist/adapters/prisma/generated/models/Event.d.ts +1991 -0
  97. package/dist/adapters/prisma/generated/models/Event.js +2 -0
  98. package/dist/adapters/prisma/generated/models/Event.js.map +1 -0
  99. package/dist/adapters/prisma/generated/models/Fleet.d.ts +3032 -0
  100. package/dist/adapters/prisma/generated/models/Fleet.js +2 -0
  101. package/dist/adapters/prisma/generated/models/Fleet.js.map +1 -0
  102. package/dist/adapters/prisma/generated/models/Guide.d.ts +943 -0
  103. package/dist/adapters/prisma/generated/models/Guide.js +2 -0
  104. package/dist/adapters/prisma/generated/models/Guide.js.map +1 -0
  105. package/dist/adapters/prisma/generated/models/GuideProgress.d.ts +1323 -0
  106. package/dist/adapters/prisma/generated/models/GuideProgress.js +2 -0
  107. package/dist/adapters/prisma/generated/models/GuideProgress.js.map +1 -0
  108. package/dist/adapters/prisma/generated/models/InstallationRequest.d.ts +1036 -0
  109. package/dist/adapters/prisma/generated/models/InstallationRequest.js +2 -0
  110. package/dist/adapters/prisma/generated/models/InstallationRequest.js.map +1 -0
  111. package/dist/adapters/prisma/generated/models/InstallationSettings.d.ts +1027 -0
  112. package/dist/adapters/prisma/generated/models/InstallationSettings.js +2 -0
  113. package/dist/adapters/prisma/generated/models/InstallationSettings.js.map +1 -0
  114. package/dist/adapters/prisma/generated/models/Lease.d.ts +2076 -0
  115. package/dist/adapters/prisma/generated/models/Lease.js +2 -0
  116. package/dist/adapters/prisma/generated/models/Lease.js.map +1 -0
  117. package/dist/adapters/prisma/generated/models/Message.d.ts +2869 -0
  118. package/dist/adapters/prisma/generated/models/Message.js +2 -0
  119. package/dist/adapters/prisma/generated/models/Message.js.map +1 -0
  120. package/dist/adapters/prisma/generated/models/Notice.d.ts +1068 -0
  121. package/dist/adapters/prisma/generated/models/Notice.js +2 -0
  122. package/dist/adapters/prisma/generated/models/Notice.js.map +1 -0
  123. package/dist/adapters/prisma/generated/models/NoticeDismissal.d.ts +1245 -0
  124. package/dist/adapters/prisma/generated/models/NoticeDismissal.js +2 -0
  125. package/dist/adapters/prisma/generated/models/NoticeDismissal.js.map +1 -0
  126. package/dist/adapters/prisma/generated/models/Operator.d.ts +1173 -0
  127. package/dist/adapters/prisma/generated/models/Operator.js +2 -0
  128. package/dist/adapters/prisma/generated/models/Operator.js.map +1 -0
  129. package/dist/adapters/prisma/generated/models/Ship.d.ts +3320 -0
  130. package/dist/adapters/prisma/generated/models/Ship.js +2 -0
  131. package/dist/adapters/prisma/generated/models/Ship.js.map +1 -0
  132. package/dist/adapters/prisma/generated/models/SignInTicket.d.ts +1222 -0
  133. package/dist/adapters/prisma/generated/models/SignInTicket.js +2 -0
  134. package/dist/adapters/prisma/generated/models/SignInTicket.js.map +1 -0
  135. package/dist/adapters/prisma/generated/models.d.ts +18 -0
  136. package/dist/adapters/prisma/generated/models.js +2 -0
  137. package/dist/adapters/prisma/generated/models.js.map +1 -0
  138. package/dist/adapters/prisma/history.d.ts +3 -0
  139. package/dist/adapters/prisma/history.js +289 -0
  140. package/dist/adapters/prisma/history.js.map +1 -0
  141. package/dist/adapters/prisma/identity.d.ts +10 -0
  142. package/dist/adapters/prisma/identity.js +213 -0
  143. package/dist/adapters/prisma/identity.js.map +1 -0
  144. package/dist/adapters/prisma/installation.d.ts +13 -0
  145. package/dist/adapters/prisma/installation.js +155 -0
  146. package/dist/adapters/prisma/installation.js.map +1 -0
  147. package/dist/adapters/prisma/messaging.d.ts +4 -0
  148. package/dist/adapters/prisma/messaging.js +156 -0
  149. package/dist/adapters/prisma/messaging.js.map +1 -0
  150. package/dist/adapters/prisma/migrate.d.ts +5 -0
  151. package/dist/adapters/prisma/migrate.js +40 -0
  152. package/dist/adapters/prisma/migrate.js.map +1 -0
  153. package/dist/adapters/prisma/receiver-wakeups.d.ts +26 -0
  154. package/dist/adapters/prisma/receiver-wakeups.js +79 -0
  155. package/dist/adapters/prisma/receiver-wakeups.js.map +1 -0
  156. package/dist/adapters/prisma/registry.d.ts +8 -0
  157. package/dist/adapters/prisma/registry.js +427 -0
  158. package/dist/adapters/prisma/registry.js.map +1 -0
  159. package/dist/adapters/prisma/rows.d.ts +58 -0
  160. package/dist/adapters/prisma/rows.js +408 -0
  161. package/dist/adapters/prisma/rows.js.map +1 -0
  162. package/dist/adapters/prisma/unit-of-work.d.ts +36 -0
  163. package/dist/adapters/prisma/unit-of-work.js +66 -0
  164. package/dist/adapters/prisma/unit-of-work.js.map +1 -0
  165. package/dist/adapters/rest/openapi.d.ts +12 -0
  166. package/dist/adapters/rest/openapi.js +62 -0
  167. package/dist/adapters/rest/openapi.js.map +1 -0
  168. package/dist/adapters/rest/rest-api.d.ts +8 -0
  169. package/dist/adapters/rest/rest-api.js +61 -0
  170. package/dist/adapters/rest/rest-api.js.map +1 -0
  171. package/dist/adapters/trpc/console.d.ts +150 -0
  172. package/dist/adapters/trpc/console.js +102 -0
  173. package/dist/adapters/trpc/console.js.map +1 -0
  174. package/dist/adapters/trpc/context.d.ts +201 -0
  175. package/dist/adapters/trpc/context.js +2 -0
  176. package/dist/adapters/trpc/context.js.map +1 -0
  177. package/dist/adapters/trpc/fleet.d.ts +637 -0
  178. package/dist/adapters/trpc/fleet.js +437 -0
  179. package/dist/adapters/trpc/fleet.js.map +1 -0
  180. package/dist/adapters/trpc/installation.d.ts +414 -0
  181. package/dist/adapters/trpc/installation.js +138 -0
  182. package/dist/adapters/trpc/installation.js.map +1 -0
  183. package/dist/adapters/trpc/router.d.ts +1263 -0
  184. package/dist/adapters/trpc/router.js +15 -0
  185. package/dist/adapters/trpc/router.js.map +1 -0
  186. package/dist/adapters/trpc/ship-contract.d.ts +107 -0
  187. package/dist/adapters/trpc/ship-contract.js +165 -0
  188. package/dist/adapters/trpc/ship-contract.js.map +1 -0
  189. package/dist/adapters/trpc/ship-protocol.d.ts +9 -0
  190. package/dist/adapters/trpc/ship-protocol.js +25 -0
  191. package/dist/adapters/trpc/ship-protocol.js.map +1 -0
  192. package/dist/adapters/trpc/ship.d.ts +209 -0
  193. package/dist/adapters/trpc/ship.js +214 -0
  194. package/dist/adapters/trpc/ship.js.map +1 -0
  195. package/dist/adapters/trpc/starting-prompt-text.d.ts +7 -0
  196. package/dist/adapters/trpc/starting-prompt-text.js +60 -0
  197. package/dist/adapters/trpc/starting-prompt-text.js.map +1 -0
  198. package/dist/adapters/trpc/system.d.ts +29 -0
  199. package/dist/adapters/trpc/system.js +15 -0
  200. package/dist/adapters/trpc/system.js.map +1 -0
  201. package/dist/adapters/trpc/trpc.d.ts +131 -0
  202. package/dist/adapters/trpc/trpc.js +350 -0
  203. package/dist/adapters/trpc/trpc.js.map +1 -0
  204. package/dist/app.d.ts +31 -0
  205. package/dist/app.js +80 -0
  206. package/dist/app.js.map +1 -0
  207. package/dist/bin/aeolus-core.d.ts +2 -0
  208. package/dist/bin/aeolus-core.js +45 -0
  209. package/dist/bin/aeolus-core.js.map +1 -0
  210. package/dist/config.d.ts +35 -0
  211. package/dist/config.js +74 -0
  212. package/dist/config.js.map +1 -0
  213. package/dist/domain/identity/authenticate.d.ts +46 -0
  214. package/dist/domain/identity/authenticate.js +18 -0
  215. package/dist/domain/identity/authenticate.js.map +1 -0
  216. package/dist/domain/identity/console-session.d.ts +54 -0
  217. package/dist/domain/identity/console-session.js +29 -0
  218. package/dist/domain/identity/console-session.js.map +1 -0
  219. package/dist/domain/identity/credential.d.ts +76 -0
  220. package/dist/domain/identity/credential.js +63 -0
  221. package/dist/domain/identity/credential.js.map +1 -0
  222. package/dist/domain/identity/dismiss-notice.d.ts +19 -0
  223. package/dist/domain/identity/dismiss-notice.js +23 -0
  224. package/dist/domain/identity/dismiss-notice.js.map +1 -0
  225. package/dist/domain/identity/get-guide.d.ts +7 -0
  226. package/dist/domain/identity/get-guide.js +5 -0
  227. package/dist/domain/identity/get-guide.js.map +1 -0
  228. package/dist/domain/identity/get-notices.d.ts +7 -0
  229. package/dist/domain/identity/get-notices.js +5 -0
  230. package/dist/domain/identity/get-notices.js.map +1 -0
  231. package/dist/domain/identity/guide.d.ts +24 -0
  232. package/dist/domain/identity/guide.js +3 -0
  233. package/dist/domain/identity/guide.js.map +1 -0
  234. package/dist/domain/identity/issue-sign-in-ticket.d.ts +38 -0
  235. package/dist/domain/identity/issue-sign-in-ticket.js +39 -0
  236. package/dist/domain/identity/issue-sign-in-ticket.js.map +1 -0
  237. package/dist/domain/identity/notice.d.ts +16 -0
  238. package/dist/domain/identity/notice.js +12 -0
  239. package/dist/domain/identity/notice.js.map +1 -0
  240. package/dist/domain/identity/operator-account.d.ts +28 -0
  241. package/dist/domain/identity/operator-account.js +21 -0
  242. package/dist/domain/identity/operator-account.js.map +1 -0
  243. package/dist/domain/identity/ports.d.ts +193 -0
  244. package/dist/domain/identity/ports.js +2 -0
  245. package/dist/domain/identity/ports.js.map +1 -0
  246. package/dist/domain/identity/public.d.ts +3 -0
  247. package/dist/domain/identity/public.js +5 -0
  248. package/dist/domain/identity/public.js.map +1 -0
  249. package/dist/domain/identity/read-account.d.ts +35 -0
  250. package/dist/domain/identity/read-account.js +27 -0
  251. package/dist/domain/identity/read-account.js.map +1 -0
  252. package/dist/domain/identity/read-guide.d.ts +18 -0
  253. package/dist/domain/identity/read-guide.js +21 -0
  254. package/dist/domain/identity/read-guide.js.map +1 -0
  255. package/dist/domain/identity/read-notices.d.ts +13 -0
  256. package/dist/domain/identity/read-notices.js +17 -0
  257. package/dist/domain/identity/read-notices.js.map +1 -0
  258. package/dist/domain/identity/record-guide-progress.d.ts +19 -0
  259. package/dist/domain/identity/record-guide-progress.js +24 -0
  260. package/dist/domain/identity/record-guide-progress.js.map +1 -0
  261. package/dist/domain/identity/redeem-sign-in-ticket.d.ts +34 -0
  262. package/dist/domain/identity/redeem-sign-in-ticket.js +25 -0
  263. package/dist/domain/identity/redeem-sign-in-ticket.js.map +1 -0
  264. package/dist/domain/identity/reset-operator-password.d.ts +34 -0
  265. package/dist/domain/identity/reset-operator-password.js +55 -0
  266. package/dist/domain/identity/reset-operator-password.js.map +1 -0
  267. package/dist/domain/identity/set-guide.d.ts +13 -0
  268. package/dist/domain/identity/set-guide.js +12 -0
  269. package/dist/domain/identity/set-guide.js.map +1 -0
  270. package/dist/domain/identity/set-notices.d.ts +13 -0
  271. package/dist/domain/identity/set-notices.js +12 -0
  272. package/dist/domain/identity/set-notices.js.map +1 -0
  273. package/dist/domain/identity/set-theme.d.ts +21 -0
  274. package/dist/domain/identity/set-theme.js +19 -0
  275. package/dist/domain/identity/set-theme.js.map +1 -0
  276. package/dist/domain/identity/sign-in-ticket.d.ts +21 -0
  277. package/dist/domain/identity/sign-in-ticket.js +5 -0
  278. package/dist/domain/identity/sign-in-ticket.js.map +1 -0
  279. package/dist/domain/identity/sign-in.d.ts +51 -0
  280. package/dist/domain/identity/sign-in.js +43 -0
  281. package/dist/domain/identity/sign-in.js.map +1 -0
  282. package/dist/domain/identity/sign-out.d.ts +20 -0
  283. package/dist/domain/identity/sign-out.js +32 -0
  284. package/dist/domain/identity/sign-out.js.map +1 -0
  285. package/dist/domain/identity/start-console-session.d.ts +27 -0
  286. package/dist/domain/identity/start-console-session.js +54 -0
  287. package/dist/domain/identity/start-console-session.js.map +1 -0
  288. package/dist/domain/identity/start-viewer-session.d.ts +29 -0
  289. package/dist/domain/identity/start-viewer-session.js +42 -0
  290. package/dist/domain/identity/start-viewer-session.js.map +1 -0
  291. package/dist/domain/messaging/acknowledge-delivery.d.ts +30 -0
  292. package/dist/domain/messaging/acknowledge-delivery.js +31 -0
  293. package/dist/domain/messaging/acknowledge-delivery.js.map +1 -0
  294. package/dist/domain/messaging/answer-ping.d.ts +33 -0
  295. package/dist/domain/messaging/answer-ping.js +37 -0
  296. package/dist/domain/messaging/answer-ping.js.map +1 -0
  297. package/dist/domain/messaging/check-inbox.d.ts +33 -0
  298. package/dist/domain/messaging/check-inbox.js +61 -0
  299. package/dist/domain/messaging/check-inbox.js.map +1 -0
  300. package/dist/domain/messaging/content-type.d.ts +9 -0
  301. package/dist/domain/messaging/content-type.js +18 -0
  302. package/dist/domain/messaging/content-type.js.map +1 -0
  303. package/dist/domain/messaging/daily-message-limit.d.ts +19 -0
  304. package/dist/domain/messaging/daily-message-limit.js +24 -0
  305. package/dist/domain/messaging/daily-message-limit.js.map +1 -0
  306. package/dist/domain/messaging/delivery.d.ts +116 -0
  307. package/dist/domain/messaging/delivery.js +201 -0
  308. package/dist/domain/messaging/delivery.js.map +1 -0
  309. package/dist/domain/messaging/dismiss-delivery.d.ts +28 -0
  310. package/dist/domain/messaging/dismiss-delivery.js +29 -0
  311. package/dist/domain/messaging/dismiss-delivery.js.map +1 -0
  312. package/dist/domain/messaging/inbox-wait.d.ts +8 -0
  313. package/dist/domain/messaging/inbox-wait.js +19 -0
  314. package/dist/domain/messaging/inbox-wait.js.map +1 -0
  315. package/dist/domain/messaging/mark-done.d.ts +45 -0
  316. package/dist/domain/messaging/mark-done.js +49 -0
  317. package/dist/domain/messaging/mark-done.js.map +1 -0
  318. package/dist/domain/messaging/mark-read.d.ts +27 -0
  319. package/dist/domain/messaging/mark-read.js +34 -0
  320. package/dist/domain/messaging/mark-read.js.map +1 -0
  321. package/dist/domain/messaging/message.d.ts +104 -0
  322. package/dist/domain/messaging/message.js +84 -0
  323. package/dist/domain/messaging/message.js.map +1 -0
  324. package/dist/domain/messaging/payload.d.ts +9 -0
  325. package/dist/domain/messaging/payload.js +16 -0
  326. package/dist/domain/messaging/payload.js.map +1 -0
  327. package/dist/domain/messaging/ping-ship.d.ts +38 -0
  328. package/dist/domain/messaging/ping-ship.js +42 -0
  329. package/dist/domain/messaging/ping-ship.js.map +1 -0
  330. package/dist/domain/messaging/ports.d.ts +116 -0
  331. package/dist/domain/messaging/ports.js +2 -0
  332. package/dist/domain/messaging/ports.js.map +1 -0
  333. package/dist/domain/messaging/receive-deliveries.d.ts +68 -0
  334. package/dist/domain/messaging/receive-deliveries.js +119 -0
  335. package/dist/domain/messaging/receive-deliveries.js.map +1 -0
  336. package/dist/domain/messaging/receive-max.d.ts +8 -0
  337. package/dist/domain/messaging/receive-max.js +17 -0
  338. package/dist/domain/messaging/receive-max.js.map +1 -0
  339. package/dist/domain/messaging/reply-to-message.d.ts +35 -0
  340. package/dist/domain/messaging/reply-to-message.js +49 -0
  341. package/dist/domain/messaging/reply-to-message.js.map +1 -0
  342. package/dist/domain/messaging/resend-delivery.d.ts +48 -0
  343. package/dist/domain/messaging/resend-delivery.js +97 -0
  344. package/dist/domain/messaging/resend-delivery.js.map +1 -0
  345. package/dist/domain/messaging/send-message.d.ts +88 -0
  346. package/dist/domain/messaging/send-message.js +115 -0
  347. package/dist/domain/messaging/send-message.js.map +1 -0
  348. package/dist/domain/messaging/send-request.d.ts +16 -0
  349. package/dist/domain/messaging/send-request.js +18 -0
  350. package/dist/domain/messaging/send-request.js.map +1 -0
  351. package/dist/domain/registry/applied-limits.d.ts +15 -0
  352. package/dist/domain/registry/applied-limits.js +15 -0
  353. package/dist/domain/registry/applied-limits.js.map +1 -0
  354. package/dist/domain/registry/assign-crew.d.ts +31 -0
  355. package/dist/domain/registry/assign-crew.js +35 -0
  356. package/dist/domain/registry/assign-crew.js.map +1 -0
  357. package/dist/domain/registry/claim-ship.d.ts +49 -0
  358. package/dist/domain/registry/claim-ship.js +59 -0
  359. package/dist/domain/registry/claim-ship.js.map +1 -0
  360. package/dist/domain/registry/commission-ship.d.ts +54 -0
  361. package/dist/domain/registry/commission-ship.js +70 -0
  362. package/dist/domain/registry/commission-ship.js.map +1 -0
  363. package/dist/domain/registry/confirm-crew-release.d.ts +28 -0
  364. package/dist/domain/registry/confirm-crew-release.js +28 -0
  365. package/dist/domain/registry/confirm-crew-release.js.map +1 -0
  366. package/dist/domain/registry/create-fleet.d.ts +39 -0
  367. package/dist/domain/registry/create-fleet.js +56 -0
  368. package/dist/domain/registry/create-fleet.js.map +1 -0
  369. package/dist/domain/registry/crew-request.d.ts +148 -0
  370. package/dist/domain/registry/crew-request.js +175 -0
  371. package/dist/domain/registry/crew-request.js.map +1 -0
  372. package/dist/domain/registry/delete-fleet.d.ts +46 -0
  373. package/dist/domain/registry/delete-fleet.js +34 -0
  374. package/dist/domain/registry/delete-fleet.js.map +1 -0
  375. package/dist/domain/registry/deregister.d.ts +32 -0
  376. package/dist/domain/registry/deregister.js +38 -0
  377. package/dist/domain/registry/deregister.js.map +1 -0
  378. package/dist/domain/registry/explain-crew-request.d.ts +30 -0
  379. package/dist/domain/registry/explain-crew-request.js +31 -0
  380. package/dist/domain/registry/explain-crew-request.js.map +1 -0
  381. package/dist/domain/registry/fleet.d.ts +12 -0
  382. package/dist/domain/registry/fleet.js +12 -0
  383. package/dist/domain/registry/fleet.js.map +1 -0
  384. package/dist/domain/registry/found-fleet.d.ts +32 -0
  385. package/dist/domain/registry/found-fleet.js +43 -0
  386. package/dist/domain/registry/found-fleet.js.map +1 -0
  387. package/dist/domain/registry/get-fleet-limits.d.ts +17 -0
  388. package/dist/domain/registry/get-fleet-limits.js +14 -0
  389. package/dist/domain/registry/get-fleet-limits.js.map +1 -0
  390. package/dist/domain/registry/get-installation-fleet.d.ts +15 -0
  391. package/dist/domain/registry/get-installation-fleet.js +12 -0
  392. package/dist/domain/registry/get-installation-fleet.js.map +1 -0
  393. package/dist/domain/registry/get-installation-settings.d.ts +7 -0
  394. package/dist/domain/registry/get-installation-settings.js +5 -0
  395. package/dist/domain/registry/get-installation-settings.js.map +1 -0
  396. package/dist/domain/registry/get-ship.d.ts +34 -0
  397. package/dist/domain/registry/get-ship.js +36 -0
  398. package/dist/domain/registry/get-ship.js.map +1 -0
  399. package/dist/domain/registry/get-starting-prompt.d.ts +24 -0
  400. package/dist/domain/registry/get-starting-prompt.js +46 -0
  401. package/dist/domain/registry/get-starting-prompt.js.map +1 -0
  402. package/dist/domain/registry/initialise-fleet.d.ts +28 -0
  403. package/dist/domain/registry/initialise-fleet.js +39 -0
  404. package/dist/domain/registry/initialise-fleet.js.map +1 -0
  405. package/dist/domain/registry/installation-fleet.d.ts +36 -0
  406. package/dist/domain/registry/installation-fleet.js +22 -0
  407. package/dist/domain/registry/installation-fleet.js.map +1 -0
  408. package/dist/domain/registry/installation-request.d.ts +23 -0
  409. package/dist/domain/registry/installation-request.js +5 -0
  410. package/dist/domain/registry/installation-request.js.map +1 -0
  411. package/dist/domain/registry/lease.d.ts +51 -0
  412. package/dist/domain/registry/lease.js +39 -0
  413. package/dist/domain/registry/lease.js.map +1 -0
  414. package/dist/domain/registry/leases.d.ts +66 -0
  415. package/dist/domain/registry/leases.js +80 -0
  416. package/dist/domain/registry/leases.js.map +1 -0
  417. package/dist/domain/registry/limits.d.ts +50 -0
  418. package/dist/domain/registry/limits.js +24 -0
  419. package/dist/domain/registry/limits.js.map +1 -0
  420. package/dist/domain/registry/list-fleet.d.ts +70 -0
  421. package/dist/domain/registry/list-fleet.js +47 -0
  422. package/dist/domain/registry/list-fleet.js.map +1 -0
  423. package/dist/domain/registry/list-fleets.d.ts +11 -0
  424. package/dist/domain/registry/list-fleets.js +9 -0
  425. package/dist/domain/registry/list-fleets.js.map +1 -0
  426. package/dist/domain/registry/list-installation-fleets.d.ts +15 -0
  427. package/dist/domain/registry/list-installation-fleets.js +15 -0
  428. package/dist/domain/registry/list-installation-fleets.js.map +1 -0
  429. package/dist/domain/registry/ping-status.d.ts +17 -0
  430. package/dist/domain/registry/ping-status.js +28 -0
  431. package/dist/domain/registry/ping-status.js.map +1 -0
  432. package/dist/domain/registry/pingable-ship.d.ts +22 -0
  433. package/dist/domain/registry/pingable-ship.js +21 -0
  434. package/dist/domain/registry/pingable-ship.js.map +1 -0
  435. package/dist/domain/registry/ports.d.ts +318 -0
  436. package/dist/domain/registry/ports.js +2 -0
  437. package/dist/domain/registry/ports.js.map +1 -0
  438. package/dist/domain/registry/public.d.ts +8 -0
  439. package/dist/domain/registry/public.js +10 -0
  440. package/dist/domain/registry/public.js.map +1 -0
  441. package/dist/domain/registry/read-assigned-crew-requests.d.ts +14 -0
  442. package/dist/domain/registry/read-assigned-crew-requests.js +15 -0
  443. package/dist/domain/registry/read-assigned-crew-requests.js.map +1 -0
  444. package/dist/domain/registry/recrew-ship.d.ts +33 -0
  445. package/dist/domain/registry/recrew-ship.js +34 -0
  446. package/dist/domain/registry/recrew-ship.js.map +1 -0
  447. package/dist/domain/registry/release-ship.d.ts +38 -0
  448. package/dist/domain/registry/release-ship.js +47 -0
  449. package/dist/domain/registry/release-ship.js.map +1 -0
  450. package/dist/domain/registry/remove-crew-request.d.ts +28 -0
  451. package/dist/domain/registry/remove-crew-request.js +36 -0
  452. package/dist/domain/registry/remove-crew-request.js.map +1 -0
  453. package/dist/domain/registry/rename-ship.d.ts +30 -0
  454. package/dist/domain/registry/rename-ship.js +39 -0
  455. package/dist/domain/registry/rename-ship.js.map +1 -0
  456. package/dist/domain/registry/report-crew-status.d.ts +29 -0
  457. package/dist/domain/registry/report-crew-status.js +30 -0
  458. package/dist/domain/registry/report-crew-status.js.map +1 -0
  459. package/dist/domain/registry/report-details.d.ts +18 -0
  460. package/dist/domain/registry/report-details.js +41 -0
  461. package/dist/domain/registry/report-details.js.map +1 -0
  462. package/dist/domain/registry/report-log.d.ts +21 -0
  463. package/dist/domain/registry/report-log.js +16 -0
  464. package/dist/domain/registry/report-log.js.map +1 -0
  465. package/dist/domain/registry/report.d.ts +30 -0
  466. package/dist/domain/registry/report.js +30 -0
  467. package/dist/domain/registry/report.js.map +1 -0
  468. package/dist/domain/registry/request-crew.d.ts +32 -0
  469. package/dist/domain/registry/request-crew.js +29 -0
  470. package/dist/domain/registry/request-crew.js.map +1 -0
  471. package/dist/domain/registry/resolve-selector.d.ts +25 -0
  472. package/dist/domain/registry/resolve-selector.js +32 -0
  473. package/dist/domain/registry/resolve-selector.js.map +1 -0
  474. package/dist/domain/registry/retire-ship.d.ts +42 -0
  475. package/dist/domain/registry/retire-ship.js +68 -0
  476. package/dist/domain/registry/retire-ship.js.map +1 -0
  477. package/dist/domain/registry/set-fleet-limits.d.ts +30 -0
  478. package/dist/domain/registry/set-fleet-limits.js +54 -0
  479. package/dist/domain/registry/set-fleet-limits.js.map +1 -0
  480. package/dist/domain/registry/set-installation-settings.d.ts +18 -0
  481. package/dist/domain/registry/set-installation-settings.js +31 -0
  482. package/dist/domain/registry/set-installation-settings.js.map +1 -0
  483. package/dist/domain/registry/ship-handle.d.ts +5 -0
  484. package/dist/domain/registry/ship-handle.js +20 -0
  485. package/dist/domain/registry/ship-handle.js.map +1 -0
  486. package/dist/domain/registry/ship-note.d.ts +7 -0
  487. package/dist/domain/registry/ship-note.js +15 -0
  488. package/dist/domain/registry/ship-note.js.map +1 -0
  489. package/dist/domain/registry/ship-report.d.ts +42 -0
  490. package/dist/domain/registry/ship-report.js +93 -0
  491. package/dist/domain/registry/ship-report.js.map +1 -0
  492. package/dist/domain/registry/ship.d.ts +190 -0
  493. package/dist/domain/registry/ship.js +334 -0
  494. package/dist/domain/registry/ship.js.map +1 -0
  495. package/dist/domain/registry/ships.d.ts +25 -0
  496. package/dist/domain/registry/ships.js +22 -0
  497. package/dist/domain/registry/ships.js.map +1 -0
  498. package/dist/domain/registry/starting-prompt.d.ts +32 -0
  499. package/dist/domain/registry/starting-prompt.js +22 -0
  500. package/dist/domain/registry/starting-prompt.js.map +1 -0
  501. package/dist/domain/registry/whoami.d.ts +20 -0
  502. package/dist/domain/registry/whoami.js +15 -0
  503. package/dist/domain/registry/whoami.js.map +1 -0
  504. package/dist/domain/shared/caller.d.ts +25 -0
  505. package/dist/domain/shared/caller.js +8 -0
  506. package/dist/domain/shared/caller.js.map +1 -0
  507. package/dist/domain/shared/clock.d.ts +4 -0
  508. package/dist/domain/shared/clock.js +2 -0
  509. package/dist/domain/shared/clock.js.map +1 -0
  510. package/dist/domain/shared/errors.d.ts +13 -0
  511. package/dist/domain/shared/errors.js +6 -0
  512. package/dist/domain/shared/errors.js.map +1 -0
  513. package/dist/domain/shared/events.d.ts +75 -0
  514. package/dist/domain/shared/events.js +9 -0
  515. package/dist/domain/shared/events.js.map +1 -0
  516. package/dist/domain/shared/follow-fleet.d.ts +32 -0
  517. package/dist/domain/shared/follow-fleet.js +65 -0
  518. package/dist/domain/shared/follow-fleet.js.map +1 -0
  519. package/dist/domain/shared/history.d.ts +124 -0
  520. package/dist/domain/shared/history.js +16 -0
  521. package/dist/domain/shared/history.js.map +1 -0
  522. package/dist/domain/shared/idempotency-key.d.ts +8 -0
  523. package/dist/domain/shared/idempotency-key.js +14 -0
  524. package/dist/domain/shared/idempotency-key.js.map +1 -0
  525. package/dist/domain/shared/notifier.d.ts +17 -0
  526. package/dist/domain/shared/notifier.js +2 -0
  527. package/dist/domain/shared/notifier.js.map +1 -0
  528. package/dist/domain/shared/ping.d.ts +18 -0
  529. package/dist/domain/shared/ping.js +8 -0
  530. package/dist/domain/shared/ping.js.map +1 -0
  531. package/dist/domain/shared/read-fleet-events.d.ts +29 -0
  532. package/dist/domain/shared/read-fleet-events.js +25 -0
  533. package/dist/domain/shared/read-fleet-events.js.map +1 -0
  534. package/dist/domain/shared/read-fleet-limits.d.ts +39 -0
  535. package/dist/domain/shared/read-fleet-limits.js +24 -0
  536. package/dist/domain/shared/read-fleet-limits.js.map +1 -0
  537. package/dist/domain/shared/read-inbox.d.ts +20 -0
  538. package/dist/domain/shared/read-inbox.js +16 -0
  539. package/dist/domain/shared/read-inbox.js.map +1 -0
  540. package/dist/domain/shared/read-message.d.ts +21 -0
  541. package/dist/domain/shared/read-message.js +18 -0
  542. package/dist/domain/shared/read-message.js.map +1 -0
  543. package/dist/domain/shared/read-needs-attention.d.ts +12 -0
  544. package/dist/domain/shared/read-needs-attention.js +10 -0
  545. package/dist/domain/shared/read-needs-attention.js.map +1 -0
  546. package/dist/domain/shared/read-ship-messages.d.ts +28 -0
  547. package/dist/domain/shared/read-ship-messages.js +30 -0
  548. package/dist/domain/shared/read-ship-messages.js.map +1 -0
  549. package/dist/domain/shared/read-ship-timeline.d.ts +18 -0
  550. package/dist/domain/shared/read-ship-timeline.js +16 -0
  551. package/dist/domain/shared/read-ship-timeline.js.map +1 -0
  552. package/dist/domain/shared/result.d.ts +16 -0
  553. package/dist/domain/shared/result.js +7 -0
  554. package/dist/domain/shared/result.js.map +1 -0
  555. package/dist/domain/shared/secrets.d.ts +26 -0
  556. package/dist/domain/shared/secrets.js +2 -0
  557. package/dist/domain/shared/secrets.js.map +1 -0
  558. package/dist/domain/shared/selector.d.ts +29 -0
  559. package/dist/domain/shared/selector.js +2 -0
  560. package/dist/domain/shared/selector.js.map +1 -0
  561. package/dist/domain/shared/unit-of-work.d.ts +13 -0
  562. package/dist/domain/shared/unit-of-work.js +2 -0
  563. package/dist/domain/shared/unit-of-work.js.map +1 -0
  564. package/dist/domain/shared/utc-day.d.ts +4 -0
  565. package/dist/domain/shared/utc-day.js +9 -0
  566. package/dist/domain/shared/utc-day.js.map +1 -0
  567. package/dist/index.d.ts +1 -0
  568. package/dist/index.js +2 -0
  569. package/dist/index.js.map +1 -0
  570. package/dist/start.d.ts +6 -0
  571. package/dist/start.js +29 -0
  572. package/dist/start.js.map +1 -0
  573. package/dist/wiring.d.ts +158 -0
  574. package/dist/wiring.js +185 -0
  575. package/dist/wiring.js.map +1 -0
  576. package/package.json +58 -3
  577. package/prisma.config.ts +18 -0
  578. package/src/adapters/prisma/migrations/20260929124818_init/migration.sql +201 -0
  579. package/src/adapters/prisma/migrations/20260929160000_fleet_argo_console_session/migration.sql +130 -0
  580. package/src/adapters/prisma/migrations/20260929220017_operator_login/migration.sql +27 -0
  581. package/src/adapters/prisma/migrations/20260930090000_crew_token/migration.sql +5 -0
  582. package/src/adapters/prisma/migrations/20260930120000_send/migration.sql +30 -0
  583. package/src/adapters/prisma/migrations/20260930150000_receive/migration.sql +24 -0
  584. package/src/adapters/prisma/migrations/20261001010000_event_seq/migration.sql +34 -0
  585. package/src/adapters/prisma/migrations/20261001020000_console_session_end_reason/migration.sql +14 -0
  586. package/src/adapters/prisma/migrations/20261001030000_account_theme_session_device/migration.sql +8 -0
  587. package/src/adapters/prisma/migrations/20261001040000_lease_last_seen/migration.sql +2 -0
  588. package/src/adapters/prisma/migrations/20261002190000_lease_report/migration.sql +7 -0
  589. package/src/adapters/prisma/migrations/20261003140000_commission_key/migration.sql +7 -0
  590. package/src/adapters/prisma/migrations/20261003200000_message_model/migration.sql +5 -0
  591. package/src/adapters/prisma/migrations/20261003201000_lease_harness/migration.sql +2 -0
  592. package/src/adapters/prisma/migrations/20261004120000_operator_without_password/migration.sql +2 -0
  593. package/src/adapters/prisma/migrations/20261004121000_installation_requests/migration.sql +21 -0
  594. package/src/adapters/prisma/migrations/20261004122000_events_deleted_with_their_fleet/migration.sql +11 -0
  595. package/src/adapters/prisma/migrations/20261004130000_sign_in_tickets/migration.sql +16 -0
  596. package/src/adapters/prisma/migrations/20261004140000_fleet_limits/migration.sql +6 -0
  597. package/src/adapters/prisma/migrations/20261004141000_installation_settings/migration.sql +12 -0
  598. package/src/adapters/prisma/migrations/20261005090000_viewer_ship/migration.sql +2 -0
  599. package/src/adapters/prisma/migrations/20261005100000_viewer_sessions/migration.sql +20 -0
  600. package/src/adapters/prisma/migrations/20261005110000_notices/migration.sql +37 -0
  601. package/src/adapters/prisma/migrations/20261005120000_guide/migration.sql +34 -0
  602. package/src/adapters/prisma/migrations/20261006100000_fleet_crew_scope/migration.sql +8 -0
  603. package/src/adapters/prisma/migrations/20261006140000_lease_report_details/migration.sql +3 -0
  604. package/src/adapters/prisma/migrations/20261006160000_crew_requests/migration.sql +20 -0
  605. package/src/adapters/prisma/migrations/20261006180000_crew_scopes/migration.sql +9 -0
  606. package/src/adapters/prisma/migrations/20261006190000_crew_assignment/migration.sql +13 -0
  607. package/src/adapters/prisma/migrations/20261006200000_crew_request_reason/migration.sql +3 -0
  608. package/src/adapters/prisma/migrations/20261007020000_broad_crewing_scope_retired/migration.sql +8 -0
  609. package/src/adapters/prisma/migrations/migration_lock.toml +3 -0
  610. package/src/adapters/prisma/schema.prisma +558 -0
@@ -0,0 +1,2076 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model Lease
6
+ * The exclusive right of one session to crew a ship, and where that session runs.
7
+ * Ids start with lse_.
8
+ * The hash of the crew token register gave the session, unique across all fleets:
9
+ * finding a ship by its crew token is a lookup not scoped by fleet (ADR 0007). A
10
+ * console session's lease on argo has none; the console session holds its token.
11
+ */
12
+ export type LeaseModel = runtime.Types.Result.DefaultSelection<Prisma.$LeasePayload>;
13
+ export type AggregateLease = {
14
+ _count: LeaseCountAggregateOutputType | null;
15
+ _avg: LeaseAvgAggregateOutputType | null;
16
+ _sum: LeaseSumAggregateOutputType | null;
17
+ _min: LeaseMinAggregateOutputType | null;
18
+ _max: LeaseMaxAggregateOutputType | null;
19
+ };
20
+ export type LeaseAvgAggregateOutputType = {
21
+ reportDetailsVersion: number | null;
22
+ };
23
+ export type LeaseSumAggregateOutputType = {
24
+ reportDetailsVersion: number | null;
25
+ };
26
+ export type LeaseMinAggregateOutputType = {
27
+ id: string | null;
28
+ fleetId: string | null;
29
+ shipId: string | null;
30
+ location: $Enums.LocationKind | null;
31
+ locationDescription: string | null;
32
+ harness: string | null;
33
+ crewTokenHash: string | null;
34
+ startedAt: Date | null;
35
+ lastSeenAt: Date | null;
36
+ reportState: $Enums.ReportState | null;
37
+ reportNote: string | null;
38
+ reportedAt: Date | null;
39
+ reportDetailsVersion: number | null;
40
+ endedAt: Date | null;
41
+ };
42
+ export type LeaseMaxAggregateOutputType = {
43
+ id: string | null;
44
+ fleetId: string | null;
45
+ shipId: string | null;
46
+ location: $Enums.LocationKind | null;
47
+ locationDescription: string | null;
48
+ harness: string | null;
49
+ crewTokenHash: string | null;
50
+ startedAt: Date | null;
51
+ lastSeenAt: Date | null;
52
+ reportState: $Enums.ReportState | null;
53
+ reportNote: string | null;
54
+ reportedAt: Date | null;
55
+ reportDetailsVersion: number | null;
56
+ endedAt: Date | null;
57
+ };
58
+ export type LeaseCountAggregateOutputType = {
59
+ id: number;
60
+ fleetId: number;
61
+ shipId: number;
62
+ location: number;
63
+ locationDescription: number;
64
+ harness: number;
65
+ crewTokenHash: number;
66
+ startedAt: number;
67
+ lastSeenAt: number;
68
+ reportState: number;
69
+ reportNote: number;
70
+ reportedAt: number;
71
+ reportDetails: number;
72
+ reportDetailsVersion: number;
73
+ endedAt: number;
74
+ _all: number;
75
+ };
76
+ export type LeaseAvgAggregateInputType = {
77
+ reportDetailsVersion?: true;
78
+ };
79
+ export type LeaseSumAggregateInputType = {
80
+ reportDetailsVersion?: true;
81
+ };
82
+ export type LeaseMinAggregateInputType = {
83
+ id?: true;
84
+ fleetId?: true;
85
+ shipId?: true;
86
+ location?: true;
87
+ locationDescription?: true;
88
+ harness?: true;
89
+ crewTokenHash?: true;
90
+ startedAt?: true;
91
+ lastSeenAt?: true;
92
+ reportState?: true;
93
+ reportNote?: true;
94
+ reportedAt?: true;
95
+ reportDetailsVersion?: true;
96
+ endedAt?: true;
97
+ };
98
+ export type LeaseMaxAggregateInputType = {
99
+ id?: true;
100
+ fleetId?: true;
101
+ shipId?: true;
102
+ location?: true;
103
+ locationDescription?: true;
104
+ harness?: true;
105
+ crewTokenHash?: true;
106
+ startedAt?: true;
107
+ lastSeenAt?: true;
108
+ reportState?: true;
109
+ reportNote?: true;
110
+ reportedAt?: true;
111
+ reportDetailsVersion?: true;
112
+ endedAt?: true;
113
+ };
114
+ export type LeaseCountAggregateInputType = {
115
+ id?: true;
116
+ fleetId?: true;
117
+ shipId?: true;
118
+ location?: true;
119
+ locationDescription?: true;
120
+ harness?: true;
121
+ crewTokenHash?: true;
122
+ startedAt?: true;
123
+ lastSeenAt?: true;
124
+ reportState?: true;
125
+ reportNote?: true;
126
+ reportedAt?: true;
127
+ reportDetails?: true;
128
+ reportDetailsVersion?: true;
129
+ endedAt?: true;
130
+ _all?: true;
131
+ };
132
+ export type LeaseAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
133
+ /**
134
+ * Filter which Lease to aggregate.
135
+ */
136
+ where?: Prisma.LeaseWhereInput;
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
139
+ *
140
+ * Determine the order of Leases to fetch.
141
+ */
142
+ orderBy?: Prisma.LeaseOrderByWithRelationInput | Prisma.LeaseOrderByWithRelationInput[];
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
145
+ *
146
+ * Sets the start position
147
+ */
148
+ cursor?: Prisma.LeaseWhereUniqueInput;
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
151
+ *
152
+ * Take `±n` Leases from the position of the cursor.
153
+ */
154
+ take?: number;
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
157
+ *
158
+ * Skip the first `n` Leases.
159
+ */
160
+ skip?: number;
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
163
+ *
164
+ * Count returned Leases
165
+ **/
166
+ _count?: true | LeaseCountAggregateInputType;
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
169
+ *
170
+ * Select which fields to average
171
+ **/
172
+ _avg?: LeaseAvgAggregateInputType;
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
175
+ *
176
+ * Select which fields to sum
177
+ **/
178
+ _sum?: LeaseSumAggregateInputType;
179
+ /**
180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
181
+ *
182
+ * Select which fields to find the minimum value
183
+ **/
184
+ _min?: LeaseMinAggregateInputType;
185
+ /**
186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
187
+ *
188
+ * Select which fields to find the maximum value
189
+ **/
190
+ _max?: LeaseMaxAggregateInputType;
191
+ };
192
+ export type GetLeaseAggregateType<T extends LeaseAggregateArgs> = {
193
+ [P in keyof T & keyof AggregateLease]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateLease[P]> : Prisma.GetScalarType<T[P], AggregateLease[P]>;
194
+ };
195
+ export type LeaseGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
196
+ where?: Prisma.LeaseWhereInput;
197
+ orderBy?: Prisma.LeaseOrderByWithAggregationInput | Prisma.LeaseOrderByWithAggregationInput[];
198
+ by: Prisma.LeaseScalarFieldEnum[] | Prisma.LeaseScalarFieldEnum;
199
+ having?: Prisma.LeaseScalarWhereWithAggregatesInput;
200
+ take?: number;
201
+ skip?: number;
202
+ _count?: LeaseCountAggregateInputType | true;
203
+ _avg?: LeaseAvgAggregateInputType;
204
+ _sum?: LeaseSumAggregateInputType;
205
+ _min?: LeaseMinAggregateInputType;
206
+ _max?: LeaseMaxAggregateInputType;
207
+ };
208
+ export type LeaseGroupByOutputType = {
209
+ id: string;
210
+ fleetId: string;
211
+ shipId: string;
212
+ location: $Enums.LocationKind;
213
+ locationDescription: string | null;
214
+ harness: string | null;
215
+ crewTokenHash: string | null;
216
+ startedAt: Date;
217
+ lastSeenAt: Date | null;
218
+ reportState: $Enums.ReportState | null;
219
+ reportNote: string | null;
220
+ reportedAt: Date | null;
221
+ reportDetails: runtime.JsonValue | null;
222
+ reportDetailsVersion: number;
223
+ endedAt: Date | null;
224
+ _count: LeaseCountAggregateOutputType | null;
225
+ _avg: LeaseAvgAggregateOutputType | null;
226
+ _sum: LeaseSumAggregateOutputType | null;
227
+ _min: LeaseMinAggregateOutputType | null;
228
+ _max: LeaseMaxAggregateOutputType | null;
229
+ };
230
+ export type GetLeaseGroupByPayload<T extends LeaseGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<LeaseGroupByOutputType, T['by']> & {
231
+ [P in ((keyof T) & (keyof LeaseGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], LeaseGroupByOutputType[P]> : Prisma.GetScalarType<T[P], LeaseGroupByOutputType[P]>;
232
+ }>>;
233
+ export type LeaseWhereInput = {
234
+ AND?: Prisma.LeaseWhereInput | Prisma.LeaseWhereInput[];
235
+ OR?: Prisma.LeaseWhereInput[];
236
+ NOT?: Prisma.LeaseWhereInput | Prisma.LeaseWhereInput[];
237
+ id?: Prisma.StringFilter<"Lease"> | string;
238
+ fleetId?: Prisma.StringFilter<"Lease"> | string;
239
+ shipId?: Prisma.StringFilter<"Lease"> | string;
240
+ location?: Prisma.EnumLocationKindFilter<"Lease"> | $Enums.LocationKind;
241
+ locationDescription?: Prisma.StringNullableFilter<"Lease"> | string | null;
242
+ harness?: Prisma.StringNullableFilter<"Lease"> | string | null;
243
+ crewTokenHash?: Prisma.StringNullableFilter<"Lease"> | string | null;
244
+ startedAt?: Prisma.DateTimeFilter<"Lease"> | Date | string;
245
+ lastSeenAt?: Prisma.DateTimeNullableFilter<"Lease"> | Date | string | null;
246
+ reportState?: Prisma.EnumReportStateNullableFilter<"Lease"> | $Enums.ReportState | null;
247
+ reportNote?: Prisma.StringNullableFilter<"Lease"> | string | null;
248
+ reportedAt?: Prisma.DateTimeNullableFilter<"Lease"> | Date | string | null;
249
+ reportDetails?: Prisma.JsonNullableFilter<"Lease">;
250
+ reportDetailsVersion?: Prisma.IntFilter<"Lease"> | number;
251
+ endedAt?: Prisma.DateTimeNullableFilter<"Lease"> | Date | string | null;
252
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
253
+ ship?: Prisma.XOR<Prisma.ShipScalarRelationFilter, Prisma.ShipWhereInput>;
254
+ consoleSessions?: Prisma.ConsoleSessionListRelationFilter;
255
+ claimedDeliveries?: Prisma.DeliveryListRelationFilter;
256
+ };
257
+ export type LeaseOrderByWithRelationInput = {
258
+ id?: Prisma.SortOrder;
259
+ fleetId?: Prisma.SortOrder;
260
+ shipId?: Prisma.SortOrder;
261
+ location?: Prisma.SortOrder;
262
+ locationDescription?: Prisma.SortOrderInput | Prisma.SortOrder;
263
+ harness?: Prisma.SortOrderInput | Prisma.SortOrder;
264
+ crewTokenHash?: Prisma.SortOrderInput | Prisma.SortOrder;
265
+ startedAt?: Prisma.SortOrder;
266
+ lastSeenAt?: Prisma.SortOrderInput | Prisma.SortOrder;
267
+ reportState?: Prisma.SortOrderInput | Prisma.SortOrder;
268
+ reportNote?: Prisma.SortOrderInput | Prisma.SortOrder;
269
+ reportedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
270
+ reportDetails?: Prisma.SortOrderInput | Prisma.SortOrder;
271
+ reportDetailsVersion?: Prisma.SortOrder;
272
+ endedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
273
+ fleet?: Prisma.FleetOrderByWithRelationInput;
274
+ ship?: Prisma.ShipOrderByWithRelationInput;
275
+ consoleSessions?: Prisma.ConsoleSessionOrderByRelationAggregateInput;
276
+ claimedDeliveries?: Prisma.DeliveryOrderByRelationAggregateInput;
277
+ };
278
+ export type LeaseWhereUniqueInput = Prisma.AtLeast<{
279
+ id?: string;
280
+ shipId?: string;
281
+ crewTokenHash?: string;
282
+ fleetId_id?: Prisma.LeaseFleetIdIdCompoundUniqueInput;
283
+ AND?: Prisma.LeaseWhereInput | Prisma.LeaseWhereInput[];
284
+ OR?: Prisma.LeaseWhereInput[];
285
+ NOT?: Prisma.LeaseWhereInput | Prisma.LeaseWhereInput[];
286
+ fleetId?: Prisma.StringFilter<"Lease"> | string;
287
+ location?: Prisma.EnumLocationKindFilter<"Lease"> | $Enums.LocationKind;
288
+ locationDescription?: Prisma.StringNullableFilter<"Lease"> | string | null;
289
+ harness?: Prisma.StringNullableFilter<"Lease"> | string | null;
290
+ startedAt?: Prisma.DateTimeFilter<"Lease"> | Date | string;
291
+ lastSeenAt?: Prisma.DateTimeNullableFilter<"Lease"> | Date | string | null;
292
+ reportState?: Prisma.EnumReportStateNullableFilter<"Lease"> | $Enums.ReportState | null;
293
+ reportNote?: Prisma.StringNullableFilter<"Lease"> | string | null;
294
+ reportedAt?: Prisma.DateTimeNullableFilter<"Lease"> | Date | string | null;
295
+ reportDetails?: Prisma.JsonNullableFilter<"Lease">;
296
+ reportDetailsVersion?: Prisma.IntFilter<"Lease"> | number;
297
+ endedAt?: Prisma.DateTimeNullableFilter<"Lease"> | Date | string | null;
298
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
299
+ ship?: Prisma.XOR<Prisma.ShipScalarRelationFilter, Prisma.ShipWhereInput>;
300
+ consoleSessions?: Prisma.ConsoleSessionListRelationFilter;
301
+ claimedDeliveries?: Prisma.DeliveryListRelationFilter;
302
+ }, "id" | "crewTokenHash" | "fleetId_id" | "shipId">;
303
+ export type LeaseOrderByWithAggregationInput = {
304
+ id?: Prisma.SortOrder;
305
+ fleetId?: Prisma.SortOrder;
306
+ shipId?: Prisma.SortOrder;
307
+ location?: Prisma.SortOrder;
308
+ locationDescription?: Prisma.SortOrderInput | Prisma.SortOrder;
309
+ harness?: Prisma.SortOrderInput | Prisma.SortOrder;
310
+ crewTokenHash?: Prisma.SortOrderInput | Prisma.SortOrder;
311
+ startedAt?: Prisma.SortOrder;
312
+ lastSeenAt?: Prisma.SortOrderInput | Prisma.SortOrder;
313
+ reportState?: Prisma.SortOrderInput | Prisma.SortOrder;
314
+ reportNote?: Prisma.SortOrderInput | Prisma.SortOrder;
315
+ reportedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
316
+ reportDetails?: Prisma.SortOrderInput | Prisma.SortOrder;
317
+ reportDetailsVersion?: Prisma.SortOrder;
318
+ endedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
319
+ _count?: Prisma.LeaseCountOrderByAggregateInput;
320
+ _avg?: Prisma.LeaseAvgOrderByAggregateInput;
321
+ _max?: Prisma.LeaseMaxOrderByAggregateInput;
322
+ _min?: Prisma.LeaseMinOrderByAggregateInput;
323
+ _sum?: Prisma.LeaseSumOrderByAggregateInput;
324
+ };
325
+ export type LeaseScalarWhereWithAggregatesInput = {
326
+ AND?: Prisma.LeaseScalarWhereWithAggregatesInput | Prisma.LeaseScalarWhereWithAggregatesInput[];
327
+ OR?: Prisma.LeaseScalarWhereWithAggregatesInput[];
328
+ NOT?: Prisma.LeaseScalarWhereWithAggregatesInput | Prisma.LeaseScalarWhereWithAggregatesInput[];
329
+ id?: Prisma.StringWithAggregatesFilter<"Lease"> | string;
330
+ fleetId?: Prisma.StringWithAggregatesFilter<"Lease"> | string;
331
+ shipId?: Prisma.StringWithAggregatesFilter<"Lease"> | string;
332
+ location?: Prisma.EnumLocationKindWithAggregatesFilter<"Lease"> | $Enums.LocationKind;
333
+ locationDescription?: Prisma.StringNullableWithAggregatesFilter<"Lease"> | string | null;
334
+ harness?: Prisma.StringNullableWithAggregatesFilter<"Lease"> | string | null;
335
+ crewTokenHash?: Prisma.StringNullableWithAggregatesFilter<"Lease"> | string | null;
336
+ startedAt?: Prisma.DateTimeWithAggregatesFilter<"Lease"> | Date | string;
337
+ lastSeenAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Lease"> | Date | string | null;
338
+ reportState?: Prisma.EnumReportStateNullableWithAggregatesFilter<"Lease"> | $Enums.ReportState | null;
339
+ reportNote?: Prisma.StringNullableWithAggregatesFilter<"Lease"> | string | null;
340
+ reportedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Lease"> | Date | string | null;
341
+ reportDetails?: Prisma.JsonNullableWithAggregatesFilter<"Lease">;
342
+ reportDetailsVersion?: Prisma.IntWithAggregatesFilter<"Lease"> | number;
343
+ endedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Lease"> | Date | string | null;
344
+ };
345
+ export type LeaseCreateInput = {
346
+ id: string;
347
+ location: $Enums.LocationKind;
348
+ locationDescription?: string | null;
349
+ harness?: string | null;
350
+ crewTokenHash?: string | null;
351
+ startedAt: Date | string;
352
+ lastSeenAt?: Date | string | null;
353
+ reportState?: $Enums.ReportState | null;
354
+ reportNote?: string | null;
355
+ reportedAt?: Date | string | null;
356
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
357
+ reportDetailsVersion?: number;
358
+ endedAt?: Date | string | null;
359
+ fleet: Prisma.FleetCreateNestedOneWithoutLeasesInput;
360
+ ship: Prisma.ShipCreateNestedOneWithoutLeasesInput;
361
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutLeaseInput;
362
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByLeaseInput;
363
+ };
364
+ export type LeaseUncheckedCreateInput = {
365
+ id: string;
366
+ fleetId: string;
367
+ shipId: string;
368
+ location: $Enums.LocationKind;
369
+ locationDescription?: string | null;
370
+ harness?: string | null;
371
+ crewTokenHash?: string | null;
372
+ startedAt: Date | string;
373
+ lastSeenAt?: Date | string | null;
374
+ reportState?: $Enums.ReportState | null;
375
+ reportNote?: string | null;
376
+ reportedAt?: Date | string | null;
377
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
378
+ reportDetailsVersion?: number;
379
+ endedAt?: Date | string | null;
380
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutLeaseInput;
381
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByLeaseInput;
382
+ };
383
+ export type LeaseUpdateInput = {
384
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
385
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
386
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
387
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
388
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
389
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
390
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
391
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
392
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
393
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
394
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
395
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
396
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
397
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutLeasesNestedInput;
398
+ ship?: Prisma.ShipUpdateOneRequiredWithoutLeasesNestedInput;
399
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutLeaseNestedInput;
400
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByLeaseNestedInput;
401
+ };
402
+ export type LeaseUncheckedUpdateInput = {
403
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
404
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
405
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
406
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
407
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
408
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
409
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
410
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
411
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
412
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
413
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
414
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
415
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
416
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
417
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
418
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutLeaseNestedInput;
419
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByLeaseNestedInput;
420
+ };
421
+ export type LeaseCreateManyInput = {
422
+ id: string;
423
+ fleetId: string;
424
+ shipId: string;
425
+ location: $Enums.LocationKind;
426
+ locationDescription?: string | null;
427
+ harness?: string | null;
428
+ crewTokenHash?: string | null;
429
+ startedAt: Date | string;
430
+ lastSeenAt?: Date | string | null;
431
+ reportState?: $Enums.ReportState | null;
432
+ reportNote?: string | null;
433
+ reportedAt?: Date | string | null;
434
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
435
+ reportDetailsVersion?: number;
436
+ endedAt?: Date | string | null;
437
+ };
438
+ export type LeaseUpdateManyMutationInput = {
439
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
440
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
441
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
442
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
443
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
444
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
445
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
446
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
447
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
448
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
449
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
450
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
451
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
452
+ };
453
+ export type LeaseUncheckedUpdateManyInput = {
454
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
455
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
456
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
457
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
458
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
459
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
460
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
461
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
462
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
463
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
464
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
465
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
466
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
467
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
468
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
469
+ };
470
+ export type LeaseListRelationFilter = {
471
+ every?: Prisma.LeaseWhereInput;
472
+ some?: Prisma.LeaseWhereInput;
473
+ none?: Prisma.LeaseWhereInput;
474
+ };
475
+ export type LeaseOrderByRelationAggregateInput = {
476
+ _count?: Prisma.SortOrder;
477
+ };
478
+ export type LeaseFleetIdIdCompoundUniqueInput = {
479
+ fleetId: string;
480
+ id: string;
481
+ };
482
+ export type LeaseCountOrderByAggregateInput = {
483
+ id?: Prisma.SortOrder;
484
+ fleetId?: Prisma.SortOrder;
485
+ shipId?: Prisma.SortOrder;
486
+ location?: Prisma.SortOrder;
487
+ locationDescription?: Prisma.SortOrder;
488
+ harness?: Prisma.SortOrder;
489
+ crewTokenHash?: Prisma.SortOrder;
490
+ startedAt?: Prisma.SortOrder;
491
+ lastSeenAt?: Prisma.SortOrder;
492
+ reportState?: Prisma.SortOrder;
493
+ reportNote?: Prisma.SortOrder;
494
+ reportedAt?: Prisma.SortOrder;
495
+ reportDetails?: Prisma.SortOrder;
496
+ reportDetailsVersion?: Prisma.SortOrder;
497
+ endedAt?: Prisma.SortOrder;
498
+ };
499
+ export type LeaseAvgOrderByAggregateInput = {
500
+ reportDetailsVersion?: Prisma.SortOrder;
501
+ };
502
+ export type LeaseMaxOrderByAggregateInput = {
503
+ id?: Prisma.SortOrder;
504
+ fleetId?: Prisma.SortOrder;
505
+ shipId?: Prisma.SortOrder;
506
+ location?: Prisma.SortOrder;
507
+ locationDescription?: Prisma.SortOrder;
508
+ harness?: Prisma.SortOrder;
509
+ crewTokenHash?: Prisma.SortOrder;
510
+ startedAt?: Prisma.SortOrder;
511
+ lastSeenAt?: Prisma.SortOrder;
512
+ reportState?: Prisma.SortOrder;
513
+ reportNote?: Prisma.SortOrder;
514
+ reportedAt?: Prisma.SortOrder;
515
+ reportDetailsVersion?: Prisma.SortOrder;
516
+ endedAt?: Prisma.SortOrder;
517
+ };
518
+ export type LeaseMinOrderByAggregateInput = {
519
+ id?: Prisma.SortOrder;
520
+ fleetId?: Prisma.SortOrder;
521
+ shipId?: Prisma.SortOrder;
522
+ location?: Prisma.SortOrder;
523
+ locationDescription?: Prisma.SortOrder;
524
+ harness?: Prisma.SortOrder;
525
+ crewTokenHash?: Prisma.SortOrder;
526
+ startedAt?: Prisma.SortOrder;
527
+ lastSeenAt?: Prisma.SortOrder;
528
+ reportState?: Prisma.SortOrder;
529
+ reportNote?: Prisma.SortOrder;
530
+ reportedAt?: Prisma.SortOrder;
531
+ reportDetailsVersion?: Prisma.SortOrder;
532
+ endedAt?: Prisma.SortOrder;
533
+ };
534
+ export type LeaseSumOrderByAggregateInput = {
535
+ reportDetailsVersion?: Prisma.SortOrder;
536
+ };
537
+ export type LeaseNullableScalarRelationFilter = {
538
+ is?: Prisma.LeaseWhereInput | null;
539
+ isNot?: Prisma.LeaseWhereInput | null;
540
+ };
541
+ export type LeaseCreateNestedManyWithoutFleetInput = {
542
+ create?: Prisma.XOR<Prisma.LeaseCreateWithoutFleetInput, Prisma.LeaseUncheckedCreateWithoutFleetInput> | Prisma.LeaseCreateWithoutFleetInput[] | Prisma.LeaseUncheckedCreateWithoutFleetInput[];
543
+ connectOrCreate?: Prisma.LeaseCreateOrConnectWithoutFleetInput | Prisma.LeaseCreateOrConnectWithoutFleetInput[];
544
+ createMany?: Prisma.LeaseCreateManyFleetInputEnvelope;
545
+ connect?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
546
+ };
547
+ export type LeaseUncheckedCreateNestedManyWithoutFleetInput = {
548
+ create?: Prisma.XOR<Prisma.LeaseCreateWithoutFleetInput, Prisma.LeaseUncheckedCreateWithoutFleetInput> | Prisma.LeaseCreateWithoutFleetInput[] | Prisma.LeaseUncheckedCreateWithoutFleetInput[];
549
+ connectOrCreate?: Prisma.LeaseCreateOrConnectWithoutFleetInput | Prisma.LeaseCreateOrConnectWithoutFleetInput[];
550
+ createMany?: Prisma.LeaseCreateManyFleetInputEnvelope;
551
+ connect?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
552
+ };
553
+ export type LeaseUpdateManyWithoutFleetNestedInput = {
554
+ create?: Prisma.XOR<Prisma.LeaseCreateWithoutFleetInput, Prisma.LeaseUncheckedCreateWithoutFleetInput> | Prisma.LeaseCreateWithoutFleetInput[] | Prisma.LeaseUncheckedCreateWithoutFleetInput[];
555
+ connectOrCreate?: Prisma.LeaseCreateOrConnectWithoutFleetInput | Prisma.LeaseCreateOrConnectWithoutFleetInput[];
556
+ upsert?: Prisma.LeaseUpsertWithWhereUniqueWithoutFleetInput | Prisma.LeaseUpsertWithWhereUniqueWithoutFleetInput[];
557
+ createMany?: Prisma.LeaseCreateManyFleetInputEnvelope;
558
+ set?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
559
+ disconnect?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
560
+ delete?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
561
+ connect?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
562
+ update?: Prisma.LeaseUpdateWithWhereUniqueWithoutFleetInput | Prisma.LeaseUpdateWithWhereUniqueWithoutFleetInput[];
563
+ updateMany?: Prisma.LeaseUpdateManyWithWhereWithoutFleetInput | Prisma.LeaseUpdateManyWithWhereWithoutFleetInput[];
564
+ deleteMany?: Prisma.LeaseScalarWhereInput | Prisma.LeaseScalarWhereInput[];
565
+ };
566
+ export type LeaseUncheckedUpdateManyWithoutFleetNestedInput = {
567
+ create?: Prisma.XOR<Prisma.LeaseCreateWithoutFleetInput, Prisma.LeaseUncheckedCreateWithoutFleetInput> | Prisma.LeaseCreateWithoutFleetInput[] | Prisma.LeaseUncheckedCreateWithoutFleetInput[];
568
+ connectOrCreate?: Prisma.LeaseCreateOrConnectWithoutFleetInput | Prisma.LeaseCreateOrConnectWithoutFleetInput[];
569
+ upsert?: Prisma.LeaseUpsertWithWhereUniqueWithoutFleetInput | Prisma.LeaseUpsertWithWhereUniqueWithoutFleetInput[];
570
+ createMany?: Prisma.LeaseCreateManyFleetInputEnvelope;
571
+ set?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
572
+ disconnect?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
573
+ delete?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
574
+ connect?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
575
+ update?: Prisma.LeaseUpdateWithWhereUniqueWithoutFleetInput | Prisma.LeaseUpdateWithWhereUniqueWithoutFleetInput[];
576
+ updateMany?: Prisma.LeaseUpdateManyWithWhereWithoutFleetInput | Prisma.LeaseUpdateManyWithWhereWithoutFleetInput[];
577
+ deleteMany?: Prisma.LeaseScalarWhereInput | Prisma.LeaseScalarWhereInput[];
578
+ };
579
+ export type LeaseCreateNestedManyWithoutShipInput = {
580
+ create?: Prisma.XOR<Prisma.LeaseCreateWithoutShipInput, Prisma.LeaseUncheckedCreateWithoutShipInput> | Prisma.LeaseCreateWithoutShipInput[] | Prisma.LeaseUncheckedCreateWithoutShipInput[];
581
+ connectOrCreate?: Prisma.LeaseCreateOrConnectWithoutShipInput | Prisma.LeaseCreateOrConnectWithoutShipInput[];
582
+ createMany?: Prisma.LeaseCreateManyShipInputEnvelope;
583
+ connect?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
584
+ };
585
+ export type LeaseUncheckedCreateNestedManyWithoutShipInput = {
586
+ create?: Prisma.XOR<Prisma.LeaseCreateWithoutShipInput, Prisma.LeaseUncheckedCreateWithoutShipInput> | Prisma.LeaseCreateWithoutShipInput[] | Prisma.LeaseUncheckedCreateWithoutShipInput[];
587
+ connectOrCreate?: Prisma.LeaseCreateOrConnectWithoutShipInput | Prisma.LeaseCreateOrConnectWithoutShipInput[];
588
+ createMany?: Prisma.LeaseCreateManyShipInputEnvelope;
589
+ connect?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
590
+ };
591
+ export type LeaseUpdateManyWithoutShipNestedInput = {
592
+ create?: Prisma.XOR<Prisma.LeaseCreateWithoutShipInput, Prisma.LeaseUncheckedCreateWithoutShipInput> | Prisma.LeaseCreateWithoutShipInput[] | Prisma.LeaseUncheckedCreateWithoutShipInput[];
593
+ connectOrCreate?: Prisma.LeaseCreateOrConnectWithoutShipInput | Prisma.LeaseCreateOrConnectWithoutShipInput[];
594
+ upsert?: Prisma.LeaseUpsertWithWhereUniqueWithoutShipInput | Prisma.LeaseUpsertWithWhereUniqueWithoutShipInput[];
595
+ createMany?: Prisma.LeaseCreateManyShipInputEnvelope;
596
+ set?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
597
+ disconnect?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
598
+ delete?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
599
+ connect?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
600
+ update?: Prisma.LeaseUpdateWithWhereUniqueWithoutShipInput | Prisma.LeaseUpdateWithWhereUniqueWithoutShipInput[];
601
+ updateMany?: Prisma.LeaseUpdateManyWithWhereWithoutShipInput | Prisma.LeaseUpdateManyWithWhereWithoutShipInput[];
602
+ deleteMany?: Prisma.LeaseScalarWhereInput | Prisma.LeaseScalarWhereInput[];
603
+ };
604
+ export type LeaseUncheckedUpdateManyWithoutShipNestedInput = {
605
+ create?: Prisma.XOR<Prisma.LeaseCreateWithoutShipInput, Prisma.LeaseUncheckedCreateWithoutShipInput> | Prisma.LeaseCreateWithoutShipInput[] | Prisma.LeaseUncheckedCreateWithoutShipInput[];
606
+ connectOrCreate?: Prisma.LeaseCreateOrConnectWithoutShipInput | Prisma.LeaseCreateOrConnectWithoutShipInput[];
607
+ upsert?: Prisma.LeaseUpsertWithWhereUniqueWithoutShipInput | Prisma.LeaseUpsertWithWhereUniqueWithoutShipInput[];
608
+ createMany?: Prisma.LeaseCreateManyShipInputEnvelope;
609
+ set?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
610
+ disconnect?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
611
+ delete?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
612
+ connect?: Prisma.LeaseWhereUniqueInput | Prisma.LeaseWhereUniqueInput[];
613
+ update?: Prisma.LeaseUpdateWithWhereUniqueWithoutShipInput | Prisma.LeaseUpdateWithWhereUniqueWithoutShipInput[];
614
+ updateMany?: Prisma.LeaseUpdateManyWithWhereWithoutShipInput | Prisma.LeaseUpdateManyWithWhereWithoutShipInput[];
615
+ deleteMany?: Prisma.LeaseScalarWhereInput | Prisma.LeaseScalarWhereInput[];
616
+ };
617
+ export type EnumLocationKindFieldUpdateOperationsInput = {
618
+ set?: $Enums.LocationKind;
619
+ };
620
+ export type NullableEnumReportStateFieldUpdateOperationsInput = {
621
+ set?: $Enums.ReportState | null;
622
+ };
623
+ export type IntFieldUpdateOperationsInput = {
624
+ set?: number;
625
+ increment?: number;
626
+ decrement?: number;
627
+ multiply?: number;
628
+ divide?: number;
629
+ };
630
+ export type LeaseCreateNestedOneWithoutClaimedDeliveriesInput = {
631
+ create?: Prisma.XOR<Prisma.LeaseCreateWithoutClaimedDeliveriesInput, Prisma.LeaseUncheckedCreateWithoutClaimedDeliveriesInput>;
632
+ connectOrCreate?: Prisma.LeaseCreateOrConnectWithoutClaimedDeliveriesInput;
633
+ connect?: Prisma.LeaseWhereUniqueInput;
634
+ };
635
+ export type LeaseUpdateOneWithoutClaimedDeliveriesNestedInput = {
636
+ create?: Prisma.XOR<Prisma.LeaseCreateWithoutClaimedDeliveriesInput, Prisma.LeaseUncheckedCreateWithoutClaimedDeliveriesInput>;
637
+ connectOrCreate?: Prisma.LeaseCreateOrConnectWithoutClaimedDeliveriesInput;
638
+ upsert?: Prisma.LeaseUpsertWithoutClaimedDeliveriesInput;
639
+ disconnect?: Prisma.LeaseWhereInput | boolean;
640
+ delete?: Prisma.LeaseWhereInput | boolean;
641
+ connect?: Prisma.LeaseWhereUniqueInput;
642
+ update?: Prisma.XOR<Prisma.XOR<Prisma.LeaseUpdateToOneWithWhereWithoutClaimedDeliveriesInput, Prisma.LeaseUpdateWithoutClaimedDeliveriesInput>, Prisma.LeaseUncheckedUpdateWithoutClaimedDeliveriesInput>;
643
+ };
644
+ export type LeaseCreateNestedOneWithoutConsoleSessionsInput = {
645
+ create?: Prisma.XOR<Prisma.LeaseCreateWithoutConsoleSessionsInput, Prisma.LeaseUncheckedCreateWithoutConsoleSessionsInput>;
646
+ connectOrCreate?: Prisma.LeaseCreateOrConnectWithoutConsoleSessionsInput;
647
+ connect?: Prisma.LeaseWhereUniqueInput;
648
+ };
649
+ export type LeaseUpdateOneWithoutConsoleSessionsNestedInput = {
650
+ create?: Prisma.XOR<Prisma.LeaseCreateWithoutConsoleSessionsInput, Prisma.LeaseUncheckedCreateWithoutConsoleSessionsInput>;
651
+ connectOrCreate?: Prisma.LeaseCreateOrConnectWithoutConsoleSessionsInput;
652
+ upsert?: Prisma.LeaseUpsertWithoutConsoleSessionsInput;
653
+ disconnect?: Prisma.LeaseWhereInput | boolean;
654
+ delete?: Prisma.LeaseWhereInput | boolean;
655
+ connect?: Prisma.LeaseWhereUniqueInput;
656
+ update?: Prisma.XOR<Prisma.XOR<Prisma.LeaseUpdateToOneWithWhereWithoutConsoleSessionsInput, Prisma.LeaseUpdateWithoutConsoleSessionsInput>, Prisma.LeaseUncheckedUpdateWithoutConsoleSessionsInput>;
657
+ };
658
+ export type LeaseCreateWithoutFleetInput = {
659
+ id: string;
660
+ location: $Enums.LocationKind;
661
+ locationDescription?: string | null;
662
+ harness?: string | null;
663
+ crewTokenHash?: string | null;
664
+ startedAt: Date | string;
665
+ lastSeenAt?: Date | string | null;
666
+ reportState?: $Enums.ReportState | null;
667
+ reportNote?: string | null;
668
+ reportedAt?: Date | string | null;
669
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
670
+ reportDetailsVersion?: number;
671
+ endedAt?: Date | string | null;
672
+ ship: Prisma.ShipCreateNestedOneWithoutLeasesInput;
673
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutLeaseInput;
674
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByLeaseInput;
675
+ };
676
+ export type LeaseUncheckedCreateWithoutFleetInput = {
677
+ id: string;
678
+ shipId: string;
679
+ location: $Enums.LocationKind;
680
+ locationDescription?: string | null;
681
+ harness?: string | null;
682
+ crewTokenHash?: string | null;
683
+ startedAt: Date | string;
684
+ lastSeenAt?: Date | string | null;
685
+ reportState?: $Enums.ReportState | null;
686
+ reportNote?: string | null;
687
+ reportedAt?: Date | string | null;
688
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
689
+ reportDetailsVersion?: number;
690
+ endedAt?: Date | string | null;
691
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutLeaseInput;
692
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByLeaseInput;
693
+ };
694
+ export type LeaseCreateOrConnectWithoutFleetInput = {
695
+ where: Prisma.LeaseWhereUniqueInput;
696
+ create: Prisma.XOR<Prisma.LeaseCreateWithoutFleetInput, Prisma.LeaseUncheckedCreateWithoutFleetInput>;
697
+ };
698
+ export type LeaseCreateManyFleetInputEnvelope = {
699
+ data: Prisma.LeaseCreateManyFleetInput | Prisma.LeaseCreateManyFleetInput[];
700
+ skipDuplicates?: boolean;
701
+ };
702
+ export type LeaseUpsertWithWhereUniqueWithoutFleetInput = {
703
+ where: Prisma.LeaseWhereUniqueInput;
704
+ update: Prisma.XOR<Prisma.LeaseUpdateWithoutFleetInput, Prisma.LeaseUncheckedUpdateWithoutFleetInput>;
705
+ create: Prisma.XOR<Prisma.LeaseCreateWithoutFleetInput, Prisma.LeaseUncheckedCreateWithoutFleetInput>;
706
+ };
707
+ export type LeaseUpdateWithWhereUniqueWithoutFleetInput = {
708
+ where: Prisma.LeaseWhereUniqueInput;
709
+ data: Prisma.XOR<Prisma.LeaseUpdateWithoutFleetInput, Prisma.LeaseUncheckedUpdateWithoutFleetInput>;
710
+ };
711
+ export type LeaseUpdateManyWithWhereWithoutFleetInput = {
712
+ where: Prisma.LeaseScalarWhereInput;
713
+ data: Prisma.XOR<Prisma.LeaseUpdateManyMutationInput, Prisma.LeaseUncheckedUpdateManyWithoutFleetInput>;
714
+ };
715
+ export type LeaseScalarWhereInput = {
716
+ AND?: Prisma.LeaseScalarWhereInput | Prisma.LeaseScalarWhereInput[];
717
+ OR?: Prisma.LeaseScalarWhereInput[];
718
+ NOT?: Prisma.LeaseScalarWhereInput | Prisma.LeaseScalarWhereInput[];
719
+ id?: Prisma.StringFilter<"Lease"> | string;
720
+ fleetId?: Prisma.StringFilter<"Lease"> | string;
721
+ shipId?: Prisma.StringFilter<"Lease"> | string;
722
+ location?: Prisma.EnumLocationKindFilter<"Lease"> | $Enums.LocationKind;
723
+ locationDescription?: Prisma.StringNullableFilter<"Lease"> | string | null;
724
+ harness?: Prisma.StringNullableFilter<"Lease"> | string | null;
725
+ crewTokenHash?: Prisma.StringNullableFilter<"Lease"> | string | null;
726
+ startedAt?: Prisma.DateTimeFilter<"Lease"> | Date | string;
727
+ lastSeenAt?: Prisma.DateTimeNullableFilter<"Lease"> | Date | string | null;
728
+ reportState?: Prisma.EnumReportStateNullableFilter<"Lease"> | $Enums.ReportState | null;
729
+ reportNote?: Prisma.StringNullableFilter<"Lease"> | string | null;
730
+ reportedAt?: Prisma.DateTimeNullableFilter<"Lease"> | Date | string | null;
731
+ reportDetails?: Prisma.JsonNullableFilter<"Lease">;
732
+ reportDetailsVersion?: Prisma.IntFilter<"Lease"> | number;
733
+ endedAt?: Prisma.DateTimeNullableFilter<"Lease"> | Date | string | null;
734
+ };
735
+ export type LeaseCreateWithoutShipInput = {
736
+ id: string;
737
+ location: $Enums.LocationKind;
738
+ locationDescription?: string | null;
739
+ harness?: string | null;
740
+ crewTokenHash?: string | null;
741
+ startedAt: Date | string;
742
+ lastSeenAt?: Date | string | null;
743
+ reportState?: $Enums.ReportState | null;
744
+ reportNote?: string | null;
745
+ reportedAt?: Date | string | null;
746
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
747
+ reportDetailsVersion?: number;
748
+ endedAt?: Date | string | null;
749
+ fleet: Prisma.FleetCreateNestedOneWithoutLeasesInput;
750
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutLeaseInput;
751
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByLeaseInput;
752
+ };
753
+ export type LeaseUncheckedCreateWithoutShipInput = {
754
+ id: string;
755
+ location: $Enums.LocationKind;
756
+ locationDescription?: string | null;
757
+ harness?: string | null;
758
+ crewTokenHash?: string | null;
759
+ startedAt: Date | string;
760
+ lastSeenAt?: Date | string | null;
761
+ reportState?: $Enums.ReportState | null;
762
+ reportNote?: string | null;
763
+ reportedAt?: Date | string | null;
764
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
765
+ reportDetailsVersion?: number;
766
+ endedAt?: Date | string | null;
767
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutLeaseInput;
768
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByLeaseInput;
769
+ };
770
+ export type LeaseCreateOrConnectWithoutShipInput = {
771
+ where: Prisma.LeaseWhereUniqueInput;
772
+ create: Prisma.XOR<Prisma.LeaseCreateWithoutShipInput, Prisma.LeaseUncheckedCreateWithoutShipInput>;
773
+ };
774
+ export type LeaseCreateManyShipInputEnvelope = {
775
+ data: Prisma.LeaseCreateManyShipInput | Prisma.LeaseCreateManyShipInput[];
776
+ skipDuplicates?: boolean;
777
+ };
778
+ export type LeaseUpsertWithWhereUniqueWithoutShipInput = {
779
+ where: Prisma.LeaseWhereUniqueInput;
780
+ update: Prisma.XOR<Prisma.LeaseUpdateWithoutShipInput, Prisma.LeaseUncheckedUpdateWithoutShipInput>;
781
+ create: Prisma.XOR<Prisma.LeaseCreateWithoutShipInput, Prisma.LeaseUncheckedCreateWithoutShipInput>;
782
+ };
783
+ export type LeaseUpdateWithWhereUniqueWithoutShipInput = {
784
+ where: Prisma.LeaseWhereUniqueInput;
785
+ data: Prisma.XOR<Prisma.LeaseUpdateWithoutShipInput, Prisma.LeaseUncheckedUpdateWithoutShipInput>;
786
+ };
787
+ export type LeaseUpdateManyWithWhereWithoutShipInput = {
788
+ where: Prisma.LeaseScalarWhereInput;
789
+ data: Prisma.XOR<Prisma.LeaseUpdateManyMutationInput, Prisma.LeaseUncheckedUpdateManyWithoutShipInput>;
790
+ };
791
+ export type LeaseCreateWithoutClaimedDeliveriesInput = {
792
+ id: string;
793
+ location: $Enums.LocationKind;
794
+ locationDescription?: string | null;
795
+ harness?: string | null;
796
+ crewTokenHash?: string | null;
797
+ startedAt: Date | string;
798
+ lastSeenAt?: Date | string | null;
799
+ reportState?: $Enums.ReportState | null;
800
+ reportNote?: string | null;
801
+ reportedAt?: Date | string | null;
802
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
803
+ reportDetailsVersion?: number;
804
+ endedAt?: Date | string | null;
805
+ fleet: Prisma.FleetCreateNestedOneWithoutLeasesInput;
806
+ ship: Prisma.ShipCreateNestedOneWithoutLeasesInput;
807
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutLeaseInput;
808
+ };
809
+ export type LeaseUncheckedCreateWithoutClaimedDeliveriesInput = {
810
+ id: string;
811
+ fleetId: string;
812
+ shipId: string;
813
+ location: $Enums.LocationKind;
814
+ locationDescription?: string | null;
815
+ harness?: string | null;
816
+ crewTokenHash?: string | null;
817
+ startedAt: Date | string;
818
+ lastSeenAt?: Date | string | null;
819
+ reportState?: $Enums.ReportState | null;
820
+ reportNote?: string | null;
821
+ reportedAt?: Date | string | null;
822
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
823
+ reportDetailsVersion?: number;
824
+ endedAt?: Date | string | null;
825
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutLeaseInput;
826
+ };
827
+ export type LeaseCreateOrConnectWithoutClaimedDeliveriesInput = {
828
+ where: Prisma.LeaseWhereUniqueInput;
829
+ create: Prisma.XOR<Prisma.LeaseCreateWithoutClaimedDeliveriesInput, Prisma.LeaseUncheckedCreateWithoutClaimedDeliveriesInput>;
830
+ };
831
+ export type LeaseUpsertWithoutClaimedDeliveriesInput = {
832
+ update: Prisma.XOR<Prisma.LeaseUpdateWithoutClaimedDeliveriesInput, Prisma.LeaseUncheckedUpdateWithoutClaimedDeliveriesInput>;
833
+ create: Prisma.XOR<Prisma.LeaseCreateWithoutClaimedDeliveriesInput, Prisma.LeaseUncheckedCreateWithoutClaimedDeliveriesInput>;
834
+ where?: Prisma.LeaseWhereInput;
835
+ };
836
+ export type LeaseUpdateToOneWithWhereWithoutClaimedDeliveriesInput = {
837
+ where?: Prisma.LeaseWhereInput;
838
+ data: Prisma.XOR<Prisma.LeaseUpdateWithoutClaimedDeliveriesInput, Prisma.LeaseUncheckedUpdateWithoutClaimedDeliveriesInput>;
839
+ };
840
+ export type LeaseUpdateWithoutClaimedDeliveriesInput = {
841
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
842
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
843
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
844
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
845
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
846
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
847
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
848
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
849
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
850
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
851
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
852
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
853
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
854
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutLeasesNestedInput;
855
+ ship?: Prisma.ShipUpdateOneRequiredWithoutLeasesNestedInput;
856
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutLeaseNestedInput;
857
+ };
858
+ export type LeaseUncheckedUpdateWithoutClaimedDeliveriesInput = {
859
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
860
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
861
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
862
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
863
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
864
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
865
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
866
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
867
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
868
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
869
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
870
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
871
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
872
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
873
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
874
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutLeaseNestedInput;
875
+ };
876
+ export type LeaseCreateWithoutConsoleSessionsInput = {
877
+ id: string;
878
+ location: $Enums.LocationKind;
879
+ locationDescription?: string | null;
880
+ harness?: string | null;
881
+ crewTokenHash?: string | null;
882
+ startedAt: Date | string;
883
+ lastSeenAt?: Date | string | null;
884
+ reportState?: $Enums.ReportState | null;
885
+ reportNote?: string | null;
886
+ reportedAt?: Date | string | null;
887
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
888
+ reportDetailsVersion?: number;
889
+ endedAt?: Date | string | null;
890
+ fleet: Prisma.FleetCreateNestedOneWithoutLeasesInput;
891
+ ship: Prisma.ShipCreateNestedOneWithoutLeasesInput;
892
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByLeaseInput;
893
+ };
894
+ export type LeaseUncheckedCreateWithoutConsoleSessionsInput = {
895
+ id: string;
896
+ fleetId: string;
897
+ shipId: string;
898
+ location: $Enums.LocationKind;
899
+ locationDescription?: string | null;
900
+ harness?: string | null;
901
+ crewTokenHash?: string | null;
902
+ startedAt: Date | string;
903
+ lastSeenAt?: Date | string | null;
904
+ reportState?: $Enums.ReportState | null;
905
+ reportNote?: string | null;
906
+ reportedAt?: Date | string | null;
907
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
908
+ reportDetailsVersion?: number;
909
+ endedAt?: Date | string | null;
910
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByLeaseInput;
911
+ };
912
+ export type LeaseCreateOrConnectWithoutConsoleSessionsInput = {
913
+ where: Prisma.LeaseWhereUniqueInput;
914
+ create: Prisma.XOR<Prisma.LeaseCreateWithoutConsoleSessionsInput, Prisma.LeaseUncheckedCreateWithoutConsoleSessionsInput>;
915
+ };
916
+ export type LeaseUpsertWithoutConsoleSessionsInput = {
917
+ update: Prisma.XOR<Prisma.LeaseUpdateWithoutConsoleSessionsInput, Prisma.LeaseUncheckedUpdateWithoutConsoleSessionsInput>;
918
+ create: Prisma.XOR<Prisma.LeaseCreateWithoutConsoleSessionsInput, Prisma.LeaseUncheckedCreateWithoutConsoleSessionsInput>;
919
+ where?: Prisma.LeaseWhereInput;
920
+ };
921
+ export type LeaseUpdateToOneWithWhereWithoutConsoleSessionsInput = {
922
+ where?: Prisma.LeaseWhereInput;
923
+ data: Prisma.XOR<Prisma.LeaseUpdateWithoutConsoleSessionsInput, Prisma.LeaseUncheckedUpdateWithoutConsoleSessionsInput>;
924
+ };
925
+ export type LeaseUpdateWithoutConsoleSessionsInput = {
926
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
927
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
928
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
929
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
930
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
931
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
932
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
933
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
934
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
935
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
936
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
937
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
938
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
939
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutLeasesNestedInput;
940
+ ship?: Prisma.ShipUpdateOneRequiredWithoutLeasesNestedInput;
941
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByLeaseNestedInput;
942
+ };
943
+ export type LeaseUncheckedUpdateWithoutConsoleSessionsInput = {
944
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
945
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
946
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
947
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
948
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
949
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
950
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
951
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
952
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
953
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
954
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
955
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
956
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
957
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
958
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
959
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByLeaseNestedInput;
960
+ };
961
+ export type LeaseCreateManyFleetInput = {
962
+ id: string;
963
+ shipId: string;
964
+ location: $Enums.LocationKind;
965
+ locationDescription?: string | null;
966
+ harness?: string | null;
967
+ crewTokenHash?: string | null;
968
+ startedAt: Date | string;
969
+ lastSeenAt?: Date | string | null;
970
+ reportState?: $Enums.ReportState | null;
971
+ reportNote?: string | null;
972
+ reportedAt?: Date | string | null;
973
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
974
+ reportDetailsVersion?: number;
975
+ endedAt?: Date | string | null;
976
+ };
977
+ export type LeaseUpdateWithoutFleetInput = {
978
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
979
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
980
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
981
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
982
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
983
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
984
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
985
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
986
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
987
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
988
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
989
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
990
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
991
+ ship?: Prisma.ShipUpdateOneRequiredWithoutLeasesNestedInput;
992
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutLeaseNestedInput;
993
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByLeaseNestedInput;
994
+ };
995
+ export type LeaseUncheckedUpdateWithoutFleetInput = {
996
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
997
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
998
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
999
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1000
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1001
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1002
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1003
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1004
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
1005
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1006
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1007
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1008
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
1009
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1010
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutLeaseNestedInput;
1011
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByLeaseNestedInput;
1012
+ };
1013
+ export type LeaseUncheckedUpdateManyWithoutFleetInput = {
1014
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1015
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
1016
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
1017
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1018
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1019
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1020
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1021
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1022
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
1023
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1024
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1025
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1026
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
1027
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1028
+ };
1029
+ export type LeaseCreateManyShipInput = {
1030
+ id: string;
1031
+ location: $Enums.LocationKind;
1032
+ locationDescription?: string | null;
1033
+ harness?: string | null;
1034
+ crewTokenHash?: string | null;
1035
+ startedAt: Date | string;
1036
+ lastSeenAt?: Date | string | null;
1037
+ reportState?: $Enums.ReportState | null;
1038
+ reportNote?: string | null;
1039
+ reportedAt?: Date | string | null;
1040
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1041
+ reportDetailsVersion?: number;
1042
+ endedAt?: Date | string | null;
1043
+ };
1044
+ export type LeaseUpdateWithoutShipInput = {
1045
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1046
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
1047
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1048
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1049
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1050
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1051
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1052
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
1053
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1054
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1055
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1056
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
1057
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1058
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutLeasesNestedInput;
1059
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutLeaseNestedInput;
1060
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByLeaseNestedInput;
1061
+ };
1062
+ export type LeaseUncheckedUpdateWithoutShipInput = {
1063
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1064
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
1065
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1066
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1067
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1068
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1069
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1070
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
1071
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1072
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1073
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1074
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
1075
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1076
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutLeaseNestedInput;
1077
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByLeaseNestedInput;
1078
+ };
1079
+ export type LeaseUncheckedUpdateManyWithoutShipInput = {
1080
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1081
+ location?: Prisma.EnumLocationKindFieldUpdateOperationsInput | $Enums.LocationKind;
1082
+ locationDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1083
+ harness?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1084
+ crewTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1085
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1086
+ lastSeenAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1087
+ reportState?: Prisma.NullableEnumReportStateFieldUpdateOperationsInput | $Enums.ReportState | null;
1088
+ reportNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1089
+ reportedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1090
+ reportDetails?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1091
+ reportDetailsVersion?: Prisma.IntFieldUpdateOperationsInput | number;
1092
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1093
+ };
1094
+ /**
1095
+ * Count Type LeaseCountOutputType
1096
+ */
1097
+ export type LeaseCountOutputType = {
1098
+ consoleSessions: number;
1099
+ claimedDeliveries: number;
1100
+ };
1101
+ export type LeaseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1102
+ consoleSessions?: boolean | LeaseCountOutputTypeCountConsoleSessionsArgs;
1103
+ claimedDeliveries?: boolean | LeaseCountOutputTypeCountClaimedDeliveriesArgs;
1104
+ };
1105
+ /**
1106
+ * LeaseCountOutputType without action
1107
+ */
1108
+ export type LeaseCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1109
+ /**
1110
+ * Select specific fields to fetch from the LeaseCountOutputType
1111
+ */
1112
+ select?: Prisma.LeaseCountOutputTypeSelect<ExtArgs> | null;
1113
+ };
1114
+ /**
1115
+ * LeaseCountOutputType without action
1116
+ */
1117
+ export type LeaseCountOutputTypeCountConsoleSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1118
+ where?: Prisma.ConsoleSessionWhereInput;
1119
+ };
1120
+ /**
1121
+ * LeaseCountOutputType without action
1122
+ */
1123
+ export type LeaseCountOutputTypeCountClaimedDeliveriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1124
+ where?: Prisma.DeliveryWhereInput;
1125
+ };
1126
+ export type LeaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1127
+ id?: boolean;
1128
+ fleetId?: boolean;
1129
+ shipId?: boolean;
1130
+ location?: boolean;
1131
+ locationDescription?: boolean;
1132
+ harness?: boolean;
1133
+ crewTokenHash?: boolean;
1134
+ startedAt?: boolean;
1135
+ lastSeenAt?: boolean;
1136
+ reportState?: boolean;
1137
+ reportNote?: boolean;
1138
+ reportedAt?: boolean;
1139
+ reportDetails?: boolean;
1140
+ reportDetailsVersion?: boolean;
1141
+ endedAt?: boolean;
1142
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1143
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1144
+ consoleSessions?: boolean | Prisma.Lease$consoleSessionsArgs<ExtArgs>;
1145
+ claimedDeliveries?: boolean | Prisma.Lease$claimedDeliveriesArgs<ExtArgs>;
1146
+ _count?: boolean | Prisma.LeaseCountOutputTypeDefaultArgs<ExtArgs>;
1147
+ }, ExtArgs["result"]["lease"]>;
1148
+ export type LeaseSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1149
+ id?: boolean;
1150
+ fleetId?: boolean;
1151
+ shipId?: boolean;
1152
+ location?: boolean;
1153
+ locationDescription?: boolean;
1154
+ harness?: boolean;
1155
+ crewTokenHash?: boolean;
1156
+ startedAt?: boolean;
1157
+ lastSeenAt?: boolean;
1158
+ reportState?: boolean;
1159
+ reportNote?: boolean;
1160
+ reportedAt?: boolean;
1161
+ reportDetails?: boolean;
1162
+ reportDetailsVersion?: boolean;
1163
+ endedAt?: boolean;
1164
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1165
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1166
+ }, ExtArgs["result"]["lease"]>;
1167
+ export type LeaseSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1168
+ id?: boolean;
1169
+ fleetId?: boolean;
1170
+ shipId?: boolean;
1171
+ location?: boolean;
1172
+ locationDescription?: boolean;
1173
+ harness?: boolean;
1174
+ crewTokenHash?: boolean;
1175
+ startedAt?: boolean;
1176
+ lastSeenAt?: boolean;
1177
+ reportState?: boolean;
1178
+ reportNote?: boolean;
1179
+ reportedAt?: boolean;
1180
+ reportDetails?: boolean;
1181
+ reportDetailsVersion?: boolean;
1182
+ endedAt?: boolean;
1183
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1184
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1185
+ }, ExtArgs["result"]["lease"]>;
1186
+ export type LeaseSelectScalar = {
1187
+ id?: boolean;
1188
+ fleetId?: boolean;
1189
+ shipId?: boolean;
1190
+ location?: boolean;
1191
+ locationDescription?: boolean;
1192
+ harness?: boolean;
1193
+ crewTokenHash?: boolean;
1194
+ startedAt?: boolean;
1195
+ lastSeenAt?: boolean;
1196
+ reportState?: boolean;
1197
+ reportNote?: boolean;
1198
+ reportedAt?: boolean;
1199
+ reportDetails?: boolean;
1200
+ reportDetailsVersion?: boolean;
1201
+ endedAt?: boolean;
1202
+ };
1203
+ export type LeaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "fleetId" | "shipId" | "location" | "locationDescription" | "harness" | "crewTokenHash" | "startedAt" | "lastSeenAt" | "reportState" | "reportNote" | "reportedAt" | "reportDetails" | "reportDetailsVersion" | "endedAt", ExtArgs["result"]["lease"]>;
1204
+ export type LeaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1205
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1206
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1207
+ consoleSessions?: boolean | Prisma.Lease$consoleSessionsArgs<ExtArgs>;
1208
+ claimedDeliveries?: boolean | Prisma.Lease$claimedDeliveriesArgs<ExtArgs>;
1209
+ _count?: boolean | Prisma.LeaseCountOutputTypeDefaultArgs<ExtArgs>;
1210
+ };
1211
+ export type LeaseIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1212
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1213
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1214
+ };
1215
+ export type LeaseIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1216
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1217
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1218
+ };
1219
+ export type $LeasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1220
+ name: "Lease";
1221
+ objects: {
1222
+ fleet: Prisma.$FleetPayload<ExtArgs>;
1223
+ ship: Prisma.$ShipPayload<ExtArgs>;
1224
+ consoleSessions: Prisma.$ConsoleSessionPayload<ExtArgs>[];
1225
+ claimedDeliveries: Prisma.$DeliveryPayload<ExtArgs>[];
1226
+ };
1227
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1228
+ id: string;
1229
+ fleetId: string;
1230
+ shipId: string;
1231
+ location: $Enums.LocationKind;
1232
+ locationDescription: string | null;
1233
+ /**
1234
+ * The harness the session stated when it claimed the ship; none for argo's console lease and for leases from before harnesses were stated.
1235
+ */
1236
+ harness: string | null;
1237
+ crewTokenHash: string | null;
1238
+ startedAt: Date;
1239
+ /**
1240
+ * The last call by its crew: observation only, nothing acts on it (ADR 0016).
1241
+ */
1242
+ lastSeenAt: Date | null;
1243
+ /**
1244
+ * The crew's last report: plain data, nothing acts on it. Null until it reports.
1245
+ */
1246
+ reportState: $Enums.ReportState | null;
1247
+ reportNote: string | null;
1248
+ reportedAt: Date | null;
1249
+ /**
1250
+ * The report's details: one JSON object stored without meaning, at most 16 KB (decision 0028). Null when there are none.
1251
+ */
1252
+ reportDetails: runtime.JsonValue | null;
1253
+ /**
1254
+ * Moves by one each time the details change; 0 before any.
1255
+ */
1256
+ reportDetailsVersion: number;
1257
+ endedAt: Date | null;
1258
+ }, ExtArgs["result"]["lease"]>;
1259
+ composites: {};
1260
+ };
1261
+ export type LeaseGetPayload<S extends boolean | null | undefined | LeaseDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LeasePayload, S>;
1262
+ export type LeaseCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<LeaseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1263
+ select?: LeaseCountAggregateInputType | true;
1264
+ };
1265
+ export interface LeaseDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1266
+ [K: symbol]: {
1267
+ types: Prisma.TypeMap<ExtArgs>['model']['Lease'];
1268
+ meta: {
1269
+ name: 'Lease';
1270
+ };
1271
+ };
1272
+ /**
1273
+ * Find zero or one Lease that matches the filter.
1274
+ * @param {LeaseFindUniqueArgs} args - Arguments to find a Lease
1275
+ * @example
1276
+ * // Get one Lease
1277
+ * const lease = await prisma.lease.findUnique({
1278
+ * where: {
1279
+ * // ... provide filter here
1280
+ * }
1281
+ * })
1282
+ */
1283
+ findUnique<T extends LeaseFindUniqueArgs>(args: Prisma.SelectSubset<T, LeaseFindUniqueArgs<ExtArgs>>): Prisma.Prisma__LeaseClient<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1284
+ /**
1285
+ * Find one Lease that matches the filter or throw an error with `error.code='P2025'`
1286
+ * if no matches were found.
1287
+ * @param {LeaseFindUniqueOrThrowArgs} args - Arguments to find a Lease
1288
+ * @example
1289
+ * // Get one Lease
1290
+ * const lease = await prisma.lease.findUniqueOrThrow({
1291
+ * where: {
1292
+ * // ... provide filter here
1293
+ * }
1294
+ * })
1295
+ */
1296
+ findUniqueOrThrow<T extends LeaseFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, LeaseFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__LeaseClient<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1297
+ /**
1298
+ * Find the first Lease that matches the filter.
1299
+ * Note, that providing `undefined` is treated as the value not being there.
1300
+ * Read more here: https://pris.ly/d/null-undefined
1301
+ * @param {LeaseFindFirstArgs} args - Arguments to find a Lease
1302
+ * @example
1303
+ * // Get one Lease
1304
+ * const lease = await prisma.lease.findFirst({
1305
+ * where: {
1306
+ * // ... provide filter here
1307
+ * }
1308
+ * })
1309
+ */
1310
+ findFirst<T extends LeaseFindFirstArgs>(args?: Prisma.SelectSubset<T, LeaseFindFirstArgs<ExtArgs>>): Prisma.Prisma__LeaseClient<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1311
+ /**
1312
+ * Find the first Lease that matches the filter or
1313
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1314
+ * Note, that providing `undefined` is treated as the value not being there.
1315
+ * Read more here: https://pris.ly/d/null-undefined
1316
+ * @param {LeaseFindFirstOrThrowArgs} args - Arguments to find a Lease
1317
+ * @example
1318
+ * // Get one Lease
1319
+ * const lease = await prisma.lease.findFirstOrThrow({
1320
+ * where: {
1321
+ * // ... provide filter here
1322
+ * }
1323
+ * })
1324
+ */
1325
+ findFirstOrThrow<T extends LeaseFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, LeaseFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__LeaseClient<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1326
+ /**
1327
+ * Find zero or more Leases that matches the filter.
1328
+ * Note, that providing `undefined` is treated as the value not being there.
1329
+ * Read more here: https://pris.ly/d/null-undefined
1330
+ * @param {LeaseFindManyArgs} args - Arguments to filter and select certain fields only.
1331
+ * @example
1332
+ * // Get all Leases
1333
+ * const leases = await prisma.lease.findMany()
1334
+ *
1335
+ * // Get first 10 Leases
1336
+ * const leases = await prisma.lease.findMany({ take: 10 })
1337
+ *
1338
+ * // Only select the `id`
1339
+ * const leaseWithIdOnly = await prisma.lease.findMany({ select: { id: true } })
1340
+ *
1341
+ */
1342
+ findMany<T extends LeaseFindManyArgs>(args?: Prisma.SelectSubset<T, LeaseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1343
+ /**
1344
+ * Create a Lease.
1345
+ * @param {LeaseCreateArgs} args - Arguments to create a Lease.
1346
+ * @example
1347
+ * // Create one Lease
1348
+ * const Lease = await prisma.lease.create({
1349
+ * data: {
1350
+ * // ... data to create a Lease
1351
+ * }
1352
+ * })
1353
+ *
1354
+ */
1355
+ create<T extends LeaseCreateArgs>(args: Prisma.SelectSubset<T, LeaseCreateArgs<ExtArgs>>): Prisma.Prisma__LeaseClient<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1356
+ /**
1357
+ * Create many Leases.
1358
+ * @param {LeaseCreateManyArgs} args - Arguments to create many Leases.
1359
+ * @example
1360
+ * // Create many Leases
1361
+ * const lease = await prisma.lease.createMany({
1362
+ * data: [
1363
+ * // ... provide data here
1364
+ * ]
1365
+ * })
1366
+ *
1367
+ */
1368
+ createMany<T extends LeaseCreateManyArgs>(args?: Prisma.SelectSubset<T, LeaseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1369
+ /**
1370
+ * Create many Leases and returns the data saved in the database.
1371
+ * @param {LeaseCreateManyAndReturnArgs} args - Arguments to create many Leases.
1372
+ * @example
1373
+ * // Create many Leases
1374
+ * const lease = await prisma.lease.createManyAndReturn({
1375
+ * data: [
1376
+ * // ... provide data here
1377
+ * ]
1378
+ * })
1379
+ *
1380
+ * // Create many Leases and only return the `id`
1381
+ * const leaseWithIdOnly = await prisma.lease.createManyAndReturn({
1382
+ * select: { id: true },
1383
+ * data: [
1384
+ * // ... provide data here
1385
+ * ]
1386
+ * })
1387
+ * Note, that providing `undefined` is treated as the value not being there.
1388
+ * Read more here: https://pris.ly/d/null-undefined
1389
+ *
1390
+ */
1391
+ createManyAndReturn<T extends LeaseCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LeaseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1392
+ /**
1393
+ * Delete a Lease.
1394
+ * @param {LeaseDeleteArgs} args - Arguments to delete one Lease.
1395
+ * @example
1396
+ * // Delete one Lease
1397
+ * const Lease = await prisma.lease.delete({
1398
+ * where: {
1399
+ * // ... filter to delete one Lease
1400
+ * }
1401
+ * })
1402
+ *
1403
+ */
1404
+ delete<T extends LeaseDeleteArgs>(args: Prisma.SelectSubset<T, LeaseDeleteArgs<ExtArgs>>): Prisma.Prisma__LeaseClient<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1405
+ /**
1406
+ * Update one Lease.
1407
+ * @param {LeaseUpdateArgs} args - Arguments to update one Lease.
1408
+ * @example
1409
+ * // Update one Lease
1410
+ * const lease = await prisma.lease.update({
1411
+ * where: {
1412
+ * // ... provide filter here
1413
+ * },
1414
+ * data: {
1415
+ * // ... provide data here
1416
+ * }
1417
+ * })
1418
+ *
1419
+ */
1420
+ update<T extends LeaseUpdateArgs>(args: Prisma.SelectSubset<T, LeaseUpdateArgs<ExtArgs>>): Prisma.Prisma__LeaseClient<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1421
+ /**
1422
+ * Delete zero or more Leases.
1423
+ * @param {LeaseDeleteManyArgs} args - Arguments to filter Leases to delete.
1424
+ * @example
1425
+ * // Delete a few Leases
1426
+ * const { count } = await prisma.lease.deleteMany({
1427
+ * where: {
1428
+ * // ... provide filter here
1429
+ * }
1430
+ * })
1431
+ *
1432
+ */
1433
+ deleteMany<T extends LeaseDeleteManyArgs>(args?: Prisma.SelectSubset<T, LeaseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1434
+ /**
1435
+ * Update zero or more Leases.
1436
+ * Note, that providing `undefined` is treated as the value not being there.
1437
+ * Read more here: https://pris.ly/d/null-undefined
1438
+ * @param {LeaseUpdateManyArgs} args - Arguments to update one or more rows.
1439
+ * @example
1440
+ * // Update many Leases
1441
+ * const lease = await prisma.lease.updateMany({
1442
+ * where: {
1443
+ * // ... provide filter here
1444
+ * },
1445
+ * data: {
1446
+ * // ... provide data here
1447
+ * }
1448
+ * })
1449
+ *
1450
+ */
1451
+ updateMany<T extends LeaseUpdateManyArgs>(args: Prisma.SelectSubset<T, LeaseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1452
+ /**
1453
+ * Update zero or more Leases and returns the data updated in the database.
1454
+ * @param {LeaseUpdateManyAndReturnArgs} args - Arguments to update many Leases.
1455
+ * @example
1456
+ * // Update many Leases
1457
+ * const lease = await prisma.lease.updateManyAndReturn({
1458
+ * where: {
1459
+ * // ... provide filter here
1460
+ * },
1461
+ * data: [
1462
+ * // ... provide data here
1463
+ * ]
1464
+ * })
1465
+ *
1466
+ * // Update zero or more Leases and only return the `id`
1467
+ * const leaseWithIdOnly = await prisma.lease.updateManyAndReturn({
1468
+ * select: { id: true },
1469
+ * where: {
1470
+ * // ... provide filter here
1471
+ * },
1472
+ * data: [
1473
+ * // ... provide data here
1474
+ * ]
1475
+ * })
1476
+ * Note, that providing `undefined` is treated as the value not being there.
1477
+ * Read more here: https://pris.ly/d/null-undefined
1478
+ *
1479
+ */
1480
+ updateManyAndReturn<T extends LeaseUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LeaseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1481
+ /**
1482
+ * Create or update one Lease.
1483
+ * @param {LeaseUpsertArgs} args - Arguments to update or create a Lease.
1484
+ * @example
1485
+ * // Update or create a Lease
1486
+ * const lease = await prisma.lease.upsert({
1487
+ * create: {
1488
+ * // ... data to create a Lease
1489
+ * },
1490
+ * update: {
1491
+ * // ... in case it already exists, update
1492
+ * },
1493
+ * where: {
1494
+ * // ... the filter for the Lease we want to update
1495
+ * }
1496
+ * })
1497
+ */
1498
+ upsert<T extends LeaseUpsertArgs>(args: Prisma.SelectSubset<T, LeaseUpsertArgs<ExtArgs>>): Prisma.Prisma__LeaseClient<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1499
+ /**
1500
+ * Count the number of Leases.
1501
+ * Note, that providing `undefined` is treated as the value not being there.
1502
+ * Read more here: https://pris.ly/d/null-undefined
1503
+ * @param {LeaseCountArgs} args - Arguments to filter Leases to count.
1504
+ * @example
1505
+ * // Count the number of Leases
1506
+ * const count = await prisma.lease.count({
1507
+ * where: {
1508
+ * // ... the filter for the Leases we want to count
1509
+ * }
1510
+ * })
1511
+ **/
1512
+ count<T extends LeaseCountArgs>(args?: Prisma.Subset<T, LeaseCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], LeaseCountAggregateOutputType> : number>;
1513
+ /**
1514
+ * Allows you to perform aggregations operations on a Lease.
1515
+ * Note, that providing `undefined` is treated as the value not being there.
1516
+ * Read more here: https://pris.ly/d/null-undefined
1517
+ * @param {LeaseAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1518
+ * @example
1519
+ * // Ordered by age ascending
1520
+ * // Where email contains prisma.io
1521
+ * // Limited to the 10 users
1522
+ * const aggregations = await prisma.user.aggregate({
1523
+ * _avg: {
1524
+ * age: true,
1525
+ * },
1526
+ * where: {
1527
+ * email: {
1528
+ * contains: "prisma.io",
1529
+ * },
1530
+ * },
1531
+ * orderBy: {
1532
+ * age: "asc",
1533
+ * },
1534
+ * take: 10,
1535
+ * })
1536
+ **/
1537
+ aggregate<T extends LeaseAggregateArgs>(args: Prisma.Subset<T, LeaseAggregateArgs>): Prisma.PrismaPromise<GetLeaseAggregateType<T>>;
1538
+ /**
1539
+ * Group by Lease.
1540
+ * Note, that providing `undefined` is treated as the value not being there.
1541
+ * Read more here: https://pris.ly/d/null-undefined
1542
+ * @param {LeaseGroupByArgs} args - Group by arguments.
1543
+ * @example
1544
+ * // Group by city, order by createdAt, get count
1545
+ * const result = await prisma.user.groupBy({
1546
+ * by: ['city', 'createdAt'],
1547
+ * orderBy: {
1548
+ * createdAt: true
1549
+ * },
1550
+ * _count: {
1551
+ * _all: true
1552
+ * },
1553
+ * })
1554
+ *
1555
+ **/
1556
+ groupBy<T extends LeaseGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1557
+ orderBy: LeaseGroupByArgs['orderBy'];
1558
+ } : {
1559
+ orderBy?: LeaseGroupByArgs['orderBy'];
1560
+ }, 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 ? {
1561
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1562
+ Error,
1563
+ 'Field ',
1564
+ P,
1565
+ ` in "having" needs to be provided in "by"`
1566
+ ];
1567
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1568
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1569
+ }[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 ? {} : {
1570
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1571
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1572
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1573
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, LeaseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLeaseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1574
+ /**
1575
+ * Fields of the Lease model
1576
+ */
1577
+ readonly fields: LeaseFieldRefs;
1578
+ }
1579
+ /**
1580
+ * The delegate class that acts as a "Promise-like" for Lease.
1581
+ * Why is this prefixed with `Prisma__`?
1582
+ * Because we want to prevent naming conflicts as mentioned in
1583
+ * https://github.com/prisma/prisma-client-js/issues/707
1584
+ */
1585
+ export interface Prisma__LeaseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1586
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1587
+ fleet<T extends Prisma.FleetDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FleetDefaultArgs<ExtArgs>>): Prisma.Prisma__FleetClient<runtime.Types.Result.GetResult<Prisma.$FleetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1588
+ ship<T extends Prisma.ShipDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShipDefaultArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1589
+ consoleSessions<T extends Prisma.Lease$consoleSessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Lease$consoleSessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1590
+ claimedDeliveries<T extends Prisma.Lease$claimedDeliveriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Lease$claimedDeliveriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeliveryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1591
+ /**
1592
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1593
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1594
+ * @param onrejected The callback to execute when the Promise is rejected.
1595
+ * @returns A Promise for the completion of which ever callback is executed.
1596
+ */
1597
+ 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>;
1598
+ /**
1599
+ * Attaches a callback for only the rejection of the Promise.
1600
+ * @param onrejected The callback to execute when the Promise is rejected.
1601
+ * @returns A Promise for the completion of the callback.
1602
+ */
1603
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1604
+ /**
1605
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1606
+ * resolved value cannot be modified from the callback.
1607
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1608
+ * @returns A Promise for the completion of the callback.
1609
+ */
1610
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1611
+ }
1612
+ /**
1613
+ * Fields of the Lease model
1614
+ */
1615
+ export interface LeaseFieldRefs {
1616
+ readonly id: Prisma.FieldRef<"Lease", 'String'>;
1617
+ readonly fleetId: Prisma.FieldRef<"Lease", 'String'>;
1618
+ readonly shipId: Prisma.FieldRef<"Lease", 'String'>;
1619
+ readonly location: Prisma.FieldRef<"Lease", 'LocationKind'>;
1620
+ readonly locationDescription: Prisma.FieldRef<"Lease", 'String'>;
1621
+ readonly harness: Prisma.FieldRef<"Lease", 'String'>;
1622
+ readonly crewTokenHash: Prisma.FieldRef<"Lease", 'String'>;
1623
+ readonly startedAt: Prisma.FieldRef<"Lease", 'DateTime'>;
1624
+ readonly lastSeenAt: Prisma.FieldRef<"Lease", 'DateTime'>;
1625
+ readonly reportState: Prisma.FieldRef<"Lease", 'ReportState'>;
1626
+ readonly reportNote: Prisma.FieldRef<"Lease", 'String'>;
1627
+ readonly reportedAt: Prisma.FieldRef<"Lease", 'DateTime'>;
1628
+ readonly reportDetails: Prisma.FieldRef<"Lease", 'Json'>;
1629
+ readonly reportDetailsVersion: Prisma.FieldRef<"Lease", 'Int'>;
1630
+ readonly endedAt: Prisma.FieldRef<"Lease", 'DateTime'>;
1631
+ }
1632
+ /**
1633
+ * Lease findUnique
1634
+ */
1635
+ export type LeaseFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1636
+ /**
1637
+ * Select specific fields to fetch from the Lease
1638
+ */
1639
+ select?: Prisma.LeaseSelect<ExtArgs> | null;
1640
+ /**
1641
+ * Omit specific fields from the Lease
1642
+ */
1643
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
1644
+ /**
1645
+ * Choose, which related nodes to fetch as well
1646
+ */
1647
+ include?: Prisma.LeaseInclude<ExtArgs> | null;
1648
+ /**
1649
+ * Filter, which Lease to fetch.
1650
+ */
1651
+ where: Prisma.LeaseWhereUniqueInput;
1652
+ };
1653
+ /**
1654
+ * Lease findUniqueOrThrow
1655
+ */
1656
+ export type LeaseFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1657
+ /**
1658
+ * Select specific fields to fetch from the Lease
1659
+ */
1660
+ select?: Prisma.LeaseSelect<ExtArgs> | null;
1661
+ /**
1662
+ * Omit specific fields from the Lease
1663
+ */
1664
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
1665
+ /**
1666
+ * Choose, which related nodes to fetch as well
1667
+ */
1668
+ include?: Prisma.LeaseInclude<ExtArgs> | null;
1669
+ /**
1670
+ * Filter, which Lease to fetch.
1671
+ */
1672
+ where: Prisma.LeaseWhereUniqueInput;
1673
+ };
1674
+ /**
1675
+ * Lease findFirst
1676
+ */
1677
+ export type LeaseFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1678
+ /**
1679
+ * Select specific fields to fetch from the Lease
1680
+ */
1681
+ select?: Prisma.LeaseSelect<ExtArgs> | null;
1682
+ /**
1683
+ * Omit specific fields from the Lease
1684
+ */
1685
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
1686
+ /**
1687
+ * Choose, which related nodes to fetch as well
1688
+ */
1689
+ include?: Prisma.LeaseInclude<ExtArgs> | null;
1690
+ /**
1691
+ * Filter, which Lease to fetch.
1692
+ */
1693
+ where?: Prisma.LeaseWhereInput;
1694
+ /**
1695
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1696
+ *
1697
+ * Determine the order of Leases to fetch.
1698
+ */
1699
+ orderBy?: Prisma.LeaseOrderByWithRelationInput | Prisma.LeaseOrderByWithRelationInput[];
1700
+ /**
1701
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1702
+ *
1703
+ * Sets the position for searching for Leases.
1704
+ */
1705
+ cursor?: Prisma.LeaseWhereUniqueInput;
1706
+ /**
1707
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1708
+ *
1709
+ * Take `±n` Leases from the position of the cursor.
1710
+ */
1711
+ take?: number;
1712
+ /**
1713
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1714
+ *
1715
+ * Skip the first `n` Leases.
1716
+ */
1717
+ skip?: number;
1718
+ /**
1719
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1720
+ *
1721
+ * Filter by unique combinations of Leases.
1722
+ */
1723
+ distinct?: Prisma.LeaseScalarFieldEnum | Prisma.LeaseScalarFieldEnum[];
1724
+ };
1725
+ /**
1726
+ * Lease findFirstOrThrow
1727
+ */
1728
+ export type LeaseFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1729
+ /**
1730
+ * Select specific fields to fetch from the Lease
1731
+ */
1732
+ select?: Prisma.LeaseSelect<ExtArgs> | null;
1733
+ /**
1734
+ * Omit specific fields from the Lease
1735
+ */
1736
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
1737
+ /**
1738
+ * Choose, which related nodes to fetch as well
1739
+ */
1740
+ include?: Prisma.LeaseInclude<ExtArgs> | null;
1741
+ /**
1742
+ * Filter, which Lease to fetch.
1743
+ */
1744
+ where?: Prisma.LeaseWhereInput;
1745
+ /**
1746
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1747
+ *
1748
+ * Determine the order of Leases to fetch.
1749
+ */
1750
+ orderBy?: Prisma.LeaseOrderByWithRelationInput | Prisma.LeaseOrderByWithRelationInput[];
1751
+ /**
1752
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1753
+ *
1754
+ * Sets the position for searching for Leases.
1755
+ */
1756
+ cursor?: Prisma.LeaseWhereUniqueInput;
1757
+ /**
1758
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1759
+ *
1760
+ * Take `±n` Leases from the position of the cursor.
1761
+ */
1762
+ take?: number;
1763
+ /**
1764
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1765
+ *
1766
+ * Skip the first `n` Leases.
1767
+ */
1768
+ skip?: number;
1769
+ /**
1770
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1771
+ *
1772
+ * Filter by unique combinations of Leases.
1773
+ */
1774
+ distinct?: Prisma.LeaseScalarFieldEnum | Prisma.LeaseScalarFieldEnum[];
1775
+ };
1776
+ /**
1777
+ * Lease findMany
1778
+ */
1779
+ export type LeaseFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1780
+ /**
1781
+ * Select specific fields to fetch from the Lease
1782
+ */
1783
+ select?: Prisma.LeaseSelect<ExtArgs> | null;
1784
+ /**
1785
+ * Omit specific fields from the Lease
1786
+ */
1787
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
1788
+ /**
1789
+ * Choose, which related nodes to fetch as well
1790
+ */
1791
+ include?: Prisma.LeaseInclude<ExtArgs> | null;
1792
+ /**
1793
+ * Filter, which Leases to fetch.
1794
+ */
1795
+ where?: Prisma.LeaseWhereInput;
1796
+ /**
1797
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1798
+ *
1799
+ * Determine the order of Leases to fetch.
1800
+ */
1801
+ orderBy?: Prisma.LeaseOrderByWithRelationInput | Prisma.LeaseOrderByWithRelationInput[];
1802
+ /**
1803
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1804
+ *
1805
+ * Sets the position for listing Leases.
1806
+ */
1807
+ cursor?: Prisma.LeaseWhereUniqueInput;
1808
+ /**
1809
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1810
+ *
1811
+ * Take `±n` Leases from the position of the cursor.
1812
+ */
1813
+ take?: number;
1814
+ /**
1815
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1816
+ *
1817
+ * Skip the first `n` Leases.
1818
+ */
1819
+ skip?: number;
1820
+ /**
1821
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1822
+ *
1823
+ * Filter by unique combinations of Leases.
1824
+ */
1825
+ distinct?: Prisma.LeaseScalarFieldEnum | Prisma.LeaseScalarFieldEnum[];
1826
+ };
1827
+ /**
1828
+ * Lease create
1829
+ */
1830
+ export type LeaseCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1831
+ /**
1832
+ * Select specific fields to fetch from the Lease
1833
+ */
1834
+ select?: Prisma.LeaseSelect<ExtArgs> | null;
1835
+ /**
1836
+ * Omit specific fields from the Lease
1837
+ */
1838
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
1839
+ /**
1840
+ * Choose, which related nodes to fetch as well
1841
+ */
1842
+ include?: Prisma.LeaseInclude<ExtArgs> | null;
1843
+ /**
1844
+ * The data needed to create a Lease.
1845
+ */
1846
+ data: Prisma.XOR<Prisma.LeaseCreateInput, Prisma.LeaseUncheckedCreateInput>;
1847
+ };
1848
+ /**
1849
+ * Lease createMany
1850
+ */
1851
+ export type LeaseCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1852
+ /**
1853
+ * The data used to create many Leases.
1854
+ */
1855
+ data: Prisma.LeaseCreateManyInput | Prisma.LeaseCreateManyInput[];
1856
+ skipDuplicates?: boolean;
1857
+ };
1858
+ /**
1859
+ * Lease createManyAndReturn
1860
+ */
1861
+ export type LeaseCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1862
+ /**
1863
+ * Select specific fields to fetch from the Lease
1864
+ */
1865
+ select?: Prisma.LeaseSelectCreateManyAndReturn<ExtArgs> | null;
1866
+ /**
1867
+ * Omit specific fields from the Lease
1868
+ */
1869
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
1870
+ /**
1871
+ * The data used to create many Leases.
1872
+ */
1873
+ data: Prisma.LeaseCreateManyInput | Prisma.LeaseCreateManyInput[];
1874
+ skipDuplicates?: boolean;
1875
+ /**
1876
+ * Choose, which related nodes to fetch as well
1877
+ */
1878
+ include?: Prisma.LeaseIncludeCreateManyAndReturn<ExtArgs> | null;
1879
+ };
1880
+ /**
1881
+ * Lease update
1882
+ */
1883
+ export type LeaseUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1884
+ /**
1885
+ * Select specific fields to fetch from the Lease
1886
+ */
1887
+ select?: Prisma.LeaseSelect<ExtArgs> | null;
1888
+ /**
1889
+ * Omit specific fields from the Lease
1890
+ */
1891
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
1892
+ /**
1893
+ * Choose, which related nodes to fetch as well
1894
+ */
1895
+ include?: Prisma.LeaseInclude<ExtArgs> | null;
1896
+ /**
1897
+ * The data needed to update a Lease.
1898
+ */
1899
+ data: Prisma.XOR<Prisma.LeaseUpdateInput, Prisma.LeaseUncheckedUpdateInput>;
1900
+ /**
1901
+ * Choose, which Lease to update.
1902
+ */
1903
+ where: Prisma.LeaseWhereUniqueInput;
1904
+ };
1905
+ /**
1906
+ * Lease updateMany
1907
+ */
1908
+ export type LeaseUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1909
+ /**
1910
+ * The data used to update Leases.
1911
+ */
1912
+ data: Prisma.XOR<Prisma.LeaseUpdateManyMutationInput, Prisma.LeaseUncheckedUpdateManyInput>;
1913
+ /**
1914
+ * Filter which Leases to update
1915
+ */
1916
+ where?: Prisma.LeaseWhereInput;
1917
+ /**
1918
+ * Limit how many Leases to update.
1919
+ */
1920
+ limit?: number;
1921
+ };
1922
+ /**
1923
+ * Lease updateManyAndReturn
1924
+ */
1925
+ export type LeaseUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1926
+ /**
1927
+ * Select specific fields to fetch from the Lease
1928
+ */
1929
+ select?: Prisma.LeaseSelectUpdateManyAndReturn<ExtArgs> | null;
1930
+ /**
1931
+ * Omit specific fields from the Lease
1932
+ */
1933
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
1934
+ /**
1935
+ * The data used to update Leases.
1936
+ */
1937
+ data: Prisma.XOR<Prisma.LeaseUpdateManyMutationInput, Prisma.LeaseUncheckedUpdateManyInput>;
1938
+ /**
1939
+ * Filter which Leases to update
1940
+ */
1941
+ where?: Prisma.LeaseWhereInput;
1942
+ /**
1943
+ * Limit how many Leases to update.
1944
+ */
1945
+ limit?: number;
1946
+ /**
1947
+ * Choose, which related nodes to fetch as well
1948
+ */
1949
+ include?: Prisma.LeaseIncludeUpdateManyAndReturn<ExtArgs> | null;
1950
+ };
1951
+ /**
1952
+ * Lease upsert
1953
+ */
1954
+ export type LeaseUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1955
+ /**
1956
+ * Select specific fields to fetch from the Lease
1957
+ */
1958
+ select?: Prisma.LeaseSelect<ExtArgs> | null;
1959
+ /**
1960
+ * Omit specific fields from the Lease
1961
+ */
1962
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
1963
+ /**
1964
+ * Choose, which related nodes to fetch as well
1965
+ */
1966
+ include?: Prisma.LeaseInclude<ExtArgs> | null;
1967
+ /**
1968
+ * The filter to search for the Lease to update in case it exists.
1969
+ */
1970
+ where: Prisma.LeaseWhereUniqueInput;
1971
+ /**
1972
+ * In case the Lease found by the `where` argument doesn't exist, create a new Lease with this data.
1973
+ */
1974
+ create: Prisma.XOR<Prisma.LeaseCreateInput, Prisma.LeaseUncheckedCreateInput>;
1975
+ /**
1976
+ * In case the Lease was found with the provided `where` argument, update it with this data.
1977
+ */
1978
+ update: Prisma.XOR<Prisma.LeaseUpdateInput, Prisma.LeaseUncheckedUpdateInput>;
1979
+ };
1980
+ /**
1981
+ * Lease delete
1982
+ */
1983
+ export type LeaseDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1984
+ /**
1985
+ * Select specific fields to fetch from the Lease
1986
+ */
1987
+ select?: Prisma.LeaseSelect<ExtArgs> | null;
1988
+ /**
1989
+ * Omit specific fields from the Lease
1990
+ */
1991
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
1992
+ /**
1993
+ * Choose, which related nodes to fetch as well
1994
+ */
1995
+ include?: Prisma.LeaseInclude<ExtArgs> | null;
1996
+ /**
1997
+ * Filter which Lease to delete.
1998
+ */
1999
+ where: Prisma.LeaseWhereUniqueInput;
2000
+ };
2001
+ /**
2002
+ * Lease deleteMany
2003
+ */
2004
+ export type LeaseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2005
+ /**
2006
+ * Filter which Leases to delete
2007
+ */
2008
+ where?: Prisma.LeaseWhereInput;
2009
+ /**
2010
+ * Limit how many Leases to delete.
2011
+ */
2012
+ limit?: number;
2013
+ };
2014
+ /**
2015
+ * Lease.consoleSessions
2016
+ */
2017
+ export type Lease$consoleSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2018
+ /**
2019
+ * Select specific fields to fetch from the ConsoleSession
2020
+ */
2021
+ select?: Prisma.ConsoleSessionSelect<ExtArgs> | null;
2022
+ /**
2023
+ * Omit specific fields from the ConsoleSession
2024
+ */
2025
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
2026
+ /**
2027
+ * Choose, which related nodes to fetch as well
2028
+ */
2029
+ include?: Prisma.ConsoleSessionInclude<ExtArgs> | null;
2030
+ where?: Prisma.ConsoleSessionWhereInput;
2031
+ orderBy?: Prisma.ConsoleSessionOrderByWithRelationInput | Prisma.ConsoleSessionOrderByWithRelationInput[];
2032
+ cursor?: Prisma.ConsoleSessionWhereUniqueInput;
2033
+ take?: number;
2034
+ skip?: number;
2035
+ distinct?: Prisma.ConsoleSessionScalarFieldEnum | Prisma.ConsoleSessionScalarFieldEnum[];
2036
+ };
2037
+ /**
2038
+ * Lease.claimedDeliveries
2039
+ */
2040
+ export type Lease$claimedDeliveriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2041
+ /**
2042
+ * Select specific fields to fetch from the Delivery
2043
+ */
2044
+ select?: Prisma.DeliverySelect<ExtArgs> | null;
2045
+ /**
2046
+ * Omit specific fields from the Delivery
2047
+ */
2048
+ omit?: Prisma.DeliveryOmit<ExtArgs> | null;
2049
+ /**
2050
+ * Choose, which related nodes to fetch as well
2051
+ */
2052
+ include?: Prisma.DeliveryInclude<ExtArgs> | null;
2053
+ where?: Prisma.DeliveryWhereInput;
2054
+ orderBy?: Prisma.DeliveryOrderByWithRelationInput | Prisma.DeliveryOrderByWithRelationInput[];
2055
+ cursor?: Prisma.DeliveryWhereUniqueInput;
2056
+ take?: number;
2057
+ skip?: number;
2058
+ distinct?: Prisma.DeliveryScalarFieldEnum | Prisma.DeliveryScalarFieldEnum[];
2059
+ };
2060
+ /**
2061
+ * Lease without action
2062
+ */
2063
+ export type LeaseDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2064
+ /**
2065
+ * Select specific fields to fetch from the Lease
2066
+ */
2067
+ select?: Prisma.LeaseSelect<ExtArgs> | null;
2068
+ /**
2069
+ * Omit specific fields from the Lease
2070
+ */
2071
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
2072
+ /**
2073
+ * Choose, which related nodes to fetch as well
2074
+ */
2075
+ include?: Prisma.LeaseInclude<ExtArgs> | null;
2076
+ };