@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,3320 @@
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 Ship
6
+ * A durable, addressable identity with an inbox. Ids start with shp_.
7
+ * Scopes are set when the ship is created and checked before every call.
8
+ */
9
+ export type ShipModel = runtime.Types.Result.DefaultSelection<Prisma.$ShipPayload>;
10
+ export type AggregateShip = {
11
+ _count: ShipCountAggregateOutputType | null;
12
+ _min: ShipMinAggregateOutputType | null;
13
+ _max: ShipMaxAggregateOutputType | null;
14
+ };
15
+ export type ShipMinAggregateOutputType = {
16
+ id: string | null;
17
+ fleetId: string | null;
18
+ name: string | null;
19
+ type: string | null;
20
+ kind: $Enums.ShipKind | null;
21
+ note: string | null;
22
+ createdAt: Date | null;
23
+ retiredAt: Date | null;
24
+ commissionedBy: string | null;
25
+ commissionKey: string | null;
26
+ commissionRequestHash: string | null;
27
+ };
28
+ export type ShipMaxAggregateOutputType = {
29
+ id: string | null;
30
+ fleetId: string | null;
31
+ name: string | null;
32
+ type: string | null;
33
+ kind: $Enums.ShipKind | null;
34
+ note: string | null;
35
+ createdAt: Date | null;
36
+ retiredAt: Date | null;
37
+ commissionedBy: string | null;
38
+ commissionKey: string | null;
39
+ commissionRequestHash: string | null;
40
+ };
41
+ export type ShipCountAggregateOutputType = {
42
+ id: number;
43
+ fleetId: number;
44
+ name: number;
45
+ type: number;
46
+ kind: number;
47
+ scopes: number;
48
+ note: number;
49
+ createdAt: number;
50
+ retiredAt: number;
51
+ commissionedBy: number;
52
+ commissionKey: number;
53
+ commissionRequestHash: number;
54
+ _all: number;
55
+ };
56
+ export type ShipMinAggregateInputType = {
57
+ id?: true;
58
+ fleetId?: true;
59
+ name?: true;
60
+ type?: true;
61
+ kind?: true;
62
+ note?: true;
63
+ createdAt?: true;
64
+ retiredAt?: true;
65
+ commissionedBy?: true;
66
+ commissionKey?: true;
67
+ commissionRequestHash?: true;
68
+ };
69
+ export type ShipMaxAggregateInputType = {
70
+ id?: true;
71
+ fleetId?: true;
72
+ name?: true;
73
+ type?: true;
74
+ kind?: true;
75
+ note?: true;
76
+ createdAt?: true;
77
+ retiredAt?: true;
78
+ commissionedBy?: true;
79
+ commissionKey?: true;
80
+ commissionRequestHash?: true;
81
+ };
82
+ export type ShipCountAggregateInputType = {
83
+ id?: true;
84
+ fleetId?: true;
85
+ name?: true;
86
+ type?: true;
87
+ kind?: true;
88
+ scopes?: true;
89
+ note?: true;
90
+ createdAt?: true;
91
+ retiredAt?: true;
92
+ commissionedBy?: true;
93
+ commissionKey?: true;
94
+ commissionRequestHash?: true;
95
+ _all?: true;
96
+ };
97
+ export type ShipAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
98
+ /**
99
+ * Filter which Ship to aggregate.
100
+ */
101
+ where?: Prisma.ShipWhereInput;
102
+ /**
103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
104
+ *
105
+ * Determine the order of Ships to fetch.
106
+ */
107
+ orderBy?: Prisma.ShipOrderByWithRelationInput | Prisma.ShipOrderByWithRelationInput[];
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
110
+ *
111
+ * Sets the start position
112
+ */
113
+ cursor?: Prisma.ShipWhereUniqueInput;
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
116
+ *
117
+ * Take `±n` Ships from the position of the cursor.
118
+ */
119
+ take?: number;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
122
+ *
123
+ * Skip the first `n` Ships.
124
+ */
125
+ skip?: number;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
128
+ *
129
+ * Count returned Ships
130
+ **/
131
+ _count?: true | ShipCountAggregateInputType;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
+ *
135
+ * Select which fields to find the minimum value
136
+ **/
137
+ _min?: ShipMinAggregateInputType;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
140
+ *
141
+ * Select which fields to find the maximum value
142
+ **/
143
+ _max?: ShipMaxAggregateInputType;
144
+ };
145
+ export type GetShipAggregateType<T extends ShipAggregateArgs> = {
146
+ [P in keyof T & keyof AggregateShip]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateShip[P]> : Prisma.GetScalarType<T[P], AggregateShip[P]>;
147
+ };
148
+ export type ShipGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
149
+ where?: Prisma.ShipWhereInput;
150
+ orderBy?: Prisma.ShipOrderByWithAggregationInput | Prisma.ShipOrderByWithAggregationInput[];
151
+ by: Prisma.ShipScalarFieldEnum[] | Prisma.ShipScalarFieldEnum;
152
+ having?: Prisma.ShipScalarWhereWithAggregatesInput;
153
+ take?: number;
154
+ skip?: number;
155
+ _count?: ShipCountAggregateInputType | true;
156
+ _min?: ShipMinAggregateInputType;
157
+ _max?: ShipMaxAggregateInputType;
158
+ };
159
+ export type ShipGroupByOutputType = {
160
+ id: string;
161
+ fleetId: string;
162
+ name: string;
163
+ type: string;
164
+ kind: $Enums.ShipKind;
165
+ scopes: string[];
166
+ note: string | null;
167
+ createdAt: Date;
168
+ retiredAt: Date | null;
169
+ commissionedBy: string | null;
170
+ commissionKey: string | null;
171
+ commissionRequestHash: string | null;
172
+ _count: ShipCountAggregateOutputType | null;
173
+ _min: ShipMinAggregateOutputType | null;
174
+ _max: ShipMaxAggregateOutputType | null;
175
+ };
176
+ export type GetShipGroupByPayload<T extends ShipGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ShipGroupByOutputType, T['by']> & {
177
+ [P in ((keyof T) & (keyof ShipGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ShipGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ShipGroupByOutputType[P]>;
178
+ }>>;
179
+ export type ShipWhereInput = {
180
+ AND?: Prisma.ShipWhereInput | Prisma.ShipWhereInput[];
181
+ OR?: Prisma.ShipWhereInput[];
182
+ NOT?: Prisma.ShipWhereInput | Prisma.ShipWhereInput[];
183
+ id?: Prisma.StringFilter<"Ship"> | string;
184
+ fleetId?: Prisma.StringFilter<"Ship"> | string;
185
+ name?: Prisma.StringFilter<"Ship"> | string;
186
+ type?: Prisma.StringFilter<"Ship"> | string;
187
+ kind?: Prisma.EnumShipKindFilter<"Ship"> | $Enums.ShipKind;
188
+ scopes?: Prisma.StringNullableListFilter<"Ship">;
189
+ note?: Prisma.StringNullableFilter<"Ship"> | string | null;
190
+ createdAt?: Prisma.DateTimeFilter<"Ship"> | Date | string;
191
+ retiredAt?: Prisma.DateTimeNullableFilter<"Ship"> | Date | string | null;
192
+ commissionedBy?: Prisma.StringNullableFilter<"Ship"> | string | null;
193
+ commissionKey?: Prisma.StringNullableFilter<"Ship"> | string | null;
194
+ commissionRequestHash?: Prisma.StringNullableFilter<"Ship"> | string | null;
195
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
196
+ leases?: Prisma.LeaseListRelationFilter;
197
+ credentials?: Prisma.CredentialListRelationFilter;
198
+ sentMessages?: Prisma.MessageListRelationFilter;
199
+ addressedMessages?: Prisma.MessageListRelationFilter;
200
+ deliveries?: Prisma.DeliveryListRelationFilter;
201
+ claimedDeliveries?: Prisma.DeliveryListRelationFilter;
202
+ consoleSessions?: Prisma.ConsoleSessionListRelationFilter;
203
+ actorOfEvents?: Prisma.EventListRelationFilter;
204
+ events?: Prisma.EventListRelationFilter;
205
+ crewRequest?: Prisma.XOR<Prisma.CrewRequestNullableScalarRelationFilter, Prisma.CrewRequestWhereInput> | null;
206
+ assignedCrews?: Prisma.CrewRequestListRelationFilter;
207
+ };
208
+ export type ShipOrderByWithRelationInput = {
209
+ id?: Prisma.SortOrder;
210
+ fleetId?: Prisma.SortOrder;
211
+ name?: Prisma.SortOrder;
212
+ type?: Prisma.SortOrder;
213
+ kind?: Prisma.SortOrder;
214
+ scopes?: Prisma.SortOrder;
215
+ note?: Prisma.SortOrderInput | Prisma.SortOrder;
216
+ createdAt?: Prisma.SortOrder;
217
+ retiredAt?: Prisma.SortOrderInput | Prisma.SortOrder;
218
+ commissionedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
219
+ commissionKey?: Prisma.SortOrderInput | Prisma.SortOrder;
220
+ commissionRequestHash?: Prisma.SortOrderInput | Prisma.SortOrder;
221
+ fleet?: Prisma.FleetOrderByWithRelationInput;
222
+ leases?: Prisma.LeaseOrderByRelationAggregateInput;
223
+ credentials?: Prisma.CredentialOrderByRelationAggregateInput;
224
+ sentMessages?: Prisma.MessageOrderByRelationAggregateInput;
225
+ addressedMessages?: Prisma.MessageOrderByRelationAggregateInput;
226
+ deliveries?: Prisma.DeliveryOrderByRelationAggregateInput;
227
+ claimedDeliveries?: Prisma.DeliveryOrderByRelationAggregateInput;
228
+ consoleSessions?: Prisma.ConsoleSessionOrderByRelationAggregateInput;
229
+ actorOfEvents?: Prisma.EventOrderByRelationAggregateInput;
230
+ events?: Prisma.EventOrderByRelationAggregateInput;
231
+ crewRequest?: Prisma.CrewRequestOrderByWithRelationInput;
232
+ assignedCrews?: Prisma.CrewRequestOrderByRelationAggregateInput;
233
+ };
234
+ export type ShipWhereUniqueInput = Prisma.AtLeast<{
235
+ id?: string;
236
+ fleetId?: string;
237
+ fleetId_id?: Prisma.ShipFleetIdIdCompoundUniqueInput;
238
+ fleetId_commissionedBy_commissionKey?: Prisma.ShipFleetIdCommissionedByCommissionKeyCompoundUniqueInput;
239
+ fleetId_name?: Prisma.ShipFleetIdNameCompoundUniqueInput;
240
+ AND?: Prisma.ShipWhereInput | Prisma.ShipWhereInput[];
241
+ OR?: Prisma.ShipWhereInput[];
242
+ NOT?: Prisma.ShipWhereInput | Prisma.ShipWhereInput[];
243
+ name?: Prisma.StringFilter<"Ship"> | string;
244
+ type?: Prisma.StringFilter<"Ship"> | string;
245
+ kind?: Prisma.EnumShipKindFilter<"Ship"> | $Enums.ShipKind;
246
+ scopes?: Prisma.StringNullableListFilter<"Ship">;
247
+ note?: Prisma.StringNullableFilter<"Ship"> | string | null;
248
+ createdAt?: Prisma.DateTimeFilter<"Ship"> | Date | string;
249
+ retiredAt?: Prisma.DateTimeNullableFilter<"Ship"> | Date | string | null;
250
+ commissionedBy?: Prisma.StringNullableFilter<"Ship"> | string | null;
251
+ commissionKey?: Prisma.StringNullableFilter<"Ship"> | string | null;
252
+ commissionRequestHash?: Prisma.StringNullableFilter<"Ship"> | string | null;
253
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
254
+ leases?: Prisma.LeaseListRelationFilter;
255
+ credentials?: Prisma.CredentialListRelationFilter;
256
+ sentMessages?: Prisma.MessageListRelationFilter;
257
+ addressedMessages?: Prisma.MessageListRelationFilter;
258
+ deliveries?: Prisma.DeliveryListRelationFilter;
259
+ claimedDeliveries?: Prisma.DeliveryListRelationFilter;
260
+ consoleSessions?: Prisma.ConsoleSessionListRelationFilter;
261
+ actorOfEvents?: Prisma.EventListRelationFilter;
262
+ events?: Prisma.EventListRelationFilter;
263
+ crewRequest?: Prisma.XOR<Prisma.CrewRequestNullableScalarRelationFilter, Prisma.CrewRequestWhereInput> | null;
264
+ assignedCrews?: Prisma.CrewRequestListRelationFilter;
265
+ }, "id" | "fleetId_id" | "fleetId_commissionedBy_commissionKey" | "fleetId_name" | "fleetId" | "fleetId">;
266
+ export type ShipOrderByWithAggregationInput = {
267
+ id?: Prisma.SortOrder;
268
+ fleetId?: Prisma.SortOrder;
269
+ name?: Prisma.SortOrder;
270
+ type?: Prisma.SortOrder;
271
+ kind?: Prisma.SortOrder;
272
+ scopes?: Prisma.SortOrder;
273
+ note?: Prisma.SortOrderInput | Prisma.SortOrder;
274
+ createdAt?: Prisma.SortOrder;
275
+ retiredAt?: Prisma.SortOrderInput | Prisma.SortOrder;
276
+ commissionedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
277
+ commissionKey?: Prisma.SortOrderInput | Prisma.SortOrder;
278
+ commissionRequestHash?: Prisma.SortOrderInput | Prisma.SortOrder;
279
+ _count?: Prisma.ShipCountOrderByAggregateInput;
280
+ _max?: Prisma.ShipMaxOrderByAggregateInput;
281
+ _min?: Prisma.ShipMinOrderByAggregateInput;
282
+ };
283
+ export type ShipScalarWhereWithAggregatesInput = {
284
+ AND?: Prisma.ShipScalarWhereWithAggregatesInput | Prisma.ShipScalarWhereWithAggregatesInput[];
285
+ OR?: Prisma.ShipScalarWhereWithAggregatesInput[];
286
+ NOT?: Prisma.ShipScalarWhereWithAggregatesInput | Prisma.ShipScalarWhereWithAggregatesInput[];
287
+ id?: Prisma.StringWithAggregatesFilter<"Ship"> | string;
288
+ fleetId?: Prisma.StringWithAggregatesFilter<"Ship"> | string;
289
+ name?: Prisma.StringWithAggregatesFilter<"Ship"> | string;
290
+ type?: Prisma.StringWithAggregatesFilter<"Ship"> | string;
291
+ kind?: Prisma.EnumShipKindWithAggregatesFilter<"Ship"> | $Enums.ShipKind;
292
+ scopes?: Prisma.StringNullableListFilter<"Ship">;
293
+ note?: Prisma.StringNullableWithAggregatesFilter<"Ship"> | string | null;
294
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Ship"> | Date | string;
295
+ retiredAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Ship"> | Date | string | null;
296
+ commissionedBy?: Prisma.StringNullableWithAggregatesFilter<"Ship"> | string | null;
297
+ commissionKey?: Prisma.StringNullableWithAggregatesFilter<"Ship"> | string | null;
298
+ commissionRequestHash?: Prisma.StringNullableWithAggregatesFilter<"Ship"> | string | null;
299
+ };
300
+ export type ShipCreateInput = {
301
+ id: string;
302
+ name: string;
303
+ type: string;
304
+ kind: $Enums.ShipKind;
305
+ scopes?: Prisma.ShipCreatescopesInput | string[];
306
+ note?: string | null;
307
+ createdAt: Date | string;
308
+ retiredAt?: Date | string | null;
309
+ commissionedBy?: string | null;
310
+ commissionKey?: string | null;
311
+ commissionRequestHash?: string | null;
312
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
313
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
314
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
315
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
316
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
317
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
318
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
319
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
320
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
321
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
322
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
323
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
324
+ };
325
+ export type ShipUncheckedCreateInput = {
326
+ id: string;
327
+ fleetId: string;
328
+ name: string;
329
+ type: string;
330
+ kind: $Enums.ShipKind;
331
+ scopes?: Prisma.ShipCreatescopesInput | string[];
332
+ note?: string | null;
333
+ createdAt: Date | string;
334
+ retiredAt?: Date | string | null;
335
+ commissionedBy?: string | null;
336
+ commissionKey?: string | null;
337
+ commissionRequestHash?: string | null;
338
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
339
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
340
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
341
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
342
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
343
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
344
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
345
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
346
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
347
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
348
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
349
+ };
350
+ export type ShipUpdateInput = {
351
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
352
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
353
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
354
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
355
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
356
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
357
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
358
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
359
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
360
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
361
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
362
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
363
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
364
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
365
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
366
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
367
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
368
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
369
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
370
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
371
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
372
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
373
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
374
+ };
375
+ export type ShipUncheckedUpdateInput = {
376
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
377
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
378
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
379
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
380
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
381
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
382
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
383
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
384
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
385
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
386
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
387
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
388
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
389
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
390
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
391
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
392
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
393
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
394
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
395
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
396
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
397
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
398
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
399
+ };
400
+ export type ShipCreateManyInput = {
401
+ id: string;
402
+ fleetId: string;
403
+ name: string;
404
+ type: string;
405
+ kind: $Enums.ShipKind;
406
+ scopes?: Prisma.ShipCreatescopesInput | string[];
407
+ note?: string | null;
408
+ createdAt: Date | string;
409
+ retiredAt?: Date | string | null;
410
+ commissionedBy?: string | null;
411
+ commissionKey?: string | null;
412
+ commissionRequestHash?: string | null;
413
+ };
414
+ export type ShipUpdateManyMutationInput = {
415
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
416
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
417
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
418
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
419
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
420
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
421
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
422
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
423
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
424
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
425
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
426
+ };
427
+ export type ShipUncheckedUpdateManyInput = {
428
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
429
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
430
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
431
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
432
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
433
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
434
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
435
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
436
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
437
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
438
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
439
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
440
+ };
441
+ export type ShipListRelationFilter = {
442
+ every?: Prisma.ShipWhereInput;
443
+ some?: Prisma.ShipWhereInput;
444
+ none?: Prisma.ShipWhereInput;
445
+ };
446
+ export type ShipOrderByRelationAggregateInput = {
447
+ _count?: Prisma.SortOrder;
448
+ };
449
+ export type StringNullableListFilter<$PrismaModel = never> = {
450
+ equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
451
+ has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
452
+ hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
453
+ hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
454
+ isEmpty?: boolean;
455
+ };
456
+ export type ShipFleetIdIdCompoundUniqueInput = {
457
+ fleetId: string;
458
+ id: string;
459
+ };
460
+ export type ShipFleetIdCommissionedByCommissionKeyCompoundUniqueInput = {
461
+ fleetId: string;
462
+ commissionedBy: string;
463
+ commissionKey: string;
464
+ };
465
+ export type ShipFleetIdNameCompoundUniqueInput = {
466
+ fleetId: string;
467
+ name: string;
468
+ };
469
+ export type ShipCountOrderByAggregateInput = {
470
+ id?: Prisma.SortOrder;
471
+ fleetId?: Prisma.SortOrder;
472
+ name?: Prisma.SortOrder;
473
+ type?: Prisma.SortOrder;
474
+ kind?: Prisma.SortOrder;
475
+ scopes?: Prisma.SortOrder;
476
+ note?: Prisma.SortOrder;
477
+ createdAt?: Prisma.SortOrder;
478
+ retiredAt?: Prisma.SortOrder;
479
+ commissionedBy?: Prisma.SortOrder;
480
+ commissionKey?: Prisma.SortOrder;
481
+ commissionRequestHash?: Prisma.SortOrder;
482
+ };
483
+ export type ShipMaxOrderByAggregateInput = {
484
+ id?: Prisma.SortOrder;
485
+ fleetId?: Prisma.SortOrder;
486
+ name?: Prisma.SortOrder;
487
+ type?: Prisma.SortOrder;
488
+ kind?: Prisma.SortOrder;
489
+ note?: Prisma.SortOrder;
490
+ createdAt?: Prisma.SortOrder;
491
+ retiredAt?: Prisma.SortOrder;
492
+ commissionedBy?: Prisma.SortOrder;
493
+ commissionKey?: Prisma.SortOrder;
494
+ commissionRequestHash?: Prisma.SortOrder;
495
+ };
496
+ export type ShipMinOrderByAggregateInput = {
497
+ id?: Prisma.SortOrder;
498
+ fleetId?: Prisma.SortOrder;
499
+ name?: Prisma.SortOrder;
500
+ type?: Prisma.SortOrder;
501
+ kind?: Prisma.SortOrder;
502
+ note?: Prisma.SortOrder;
503
+ createdAt?: Prisma.SortOrder;
504
+ retiredAt?: Prisma.SortOrder;
505
+ commissionedBy?: Prisma.SortOrder;
506
+ commissionKey?: Prisma.SortOrder;
507
+ commissionRequestHash?: Prisma.SortOrder;
508
+ };
509
+ export type ShipScalarRelationFilter = {
510
+ is?: Prisma.ShipWhereInput;
511
+ isNot?: Prisma.ShipWhereInput;
512
+ };
513
+ export type ShipNullableScalarRelationFilter = {
514
+ is?: Prisma.ShipWhereInput | null;
515
+ isNot?: Prisma.ShipWhereInput | null;
516
+ };
517
+ export type ShipCreateNestedManyWithoutFleetInput = {
518
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutFleetInput, Prisma.ShipUncheckedCreateWithoutFleetInput> | Prisma.ShipCreateWithoutFleetInput[] | Prisma.ShipUncheckedCreateWithoutFleetInput[];
519
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutFleetInput | Prisma.ShipCreateOrConnectWithoutFleetInput[];
520
+ createMany?: Prisma.ShipCreateManyFleetInputEnvelope;
521
+ connect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
522
+ };
523
+ export type ShipUncheckedCreateNestedManyWithoutFleetInput = {
524
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutFleetInput, Prisma.ShipUncheckedCreateWithoutFleetInput> | Prisma.ShipCreateWithoutFleetInput[] | Prisma.ShipUncheckedCreateWithoutFleetInput[];
525
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutFleetInput | Prisma.ShipCreateOrConnectWithoutFleetInput[];
526
+ createMany?: Prisma.ShipCreateManyFleetInputEnvelope;
527
+ connect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
528
+ };
529
+ export type ShipUpdateManyWithoutFleetNestedInput = {
530
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutFleetInput, Prisma.ShipUncheckedCreateWithoutFleetInput> | Prisma.ShipCreateWithoutFleetInput[] | Prisma.ShipUncheckedCreateWithoutFleetInput[];
531
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutFleetInput | Prisma.ShipCreateOrConnectWithoutFleetInput[];
532
+ upsert?: Prisma.ShipUpsertWithWhereUniqueWithoutFleetInput | Prisma.ShipUpsertWithWhereUniqueWithoutFleetInput[];
533
+ createMany?: Prisma.ShipCreateManyFleetInputEnvelope;
534
+ set?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
535
+ disconnect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
536
+ delete?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
537
+ connect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
538
+ update?: Prisma.ShipUpdateWithWhereUniqueWithoutFleetInput | Prisma.ShipUpdateWithWhereUniqueWithoutFleetInput[];
539
+ updateMany?: Prisma.ShipUpdateManyWithWhereWithoutFleetInput | Prisma.ShipUpdateManyWithWhereWithoutFleetInput[];
540
+ deleteMany?: Prisma.ShipScalarWhereInput | Prisma.ShipScalarWhereInput[];
541
+ };
542
+ export type ShipUncheckedUpdateManyWithoutFleetNestedInput = {
543
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutFleetInput, Prisma.ShipUncheckedCreateWithoutFleetInput> | Prisma.ShipCreateWithoutFleetInput[] | Prisma.ShipUncheckedCreateWithoutFleetInput[];
544
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutFleetInput | Prisma.ShipCreateOrConnectWithoutFleetInput[];
545
+ upsert?: Prisma.ShipUpsertWithWhereUniqueWithoutFleetInput | Prisma.ShipUpsertWithWhereUniqueWithoutFleetInput[];
546
+ createMany?: Prisma.ShipCreateManyFleetInputEnvelope;
547
+ set?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
548
+ disconnect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
549
+ delete?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
550
+ connect?: Prisma.ShipWhereUniqueInput | Prisma.ShipWhereUniqueInput[];
551
+ update?: Prisma.ShipUpdateWithWhereUniqueWithoutFleetInput | Prisma.ShipUpdateWithWhereUniqueWithoutFleetInput[];
552
+ updateMany?: Prisma.ShipUpdateManyWithWhereWithoutFleetInput | Prisma.ShipUpdateManyWithWhereWithoutFleetInput[];
553
+ deleteMany?: Prisma.ShipScalarWhereInput | Prisma.ShipScalarWhereInput[];
554
+ };
555
+ export type ShipCreatescopesInput = {
556
+ set: string[];
557
+ };
558
+ export type EnumShipKindFieldUpdateOperationsInput = {
559
+ set?: $Enums.ShipKind;
560
+ };
561
+ export type ShipUpdatescopesInput = {
562
+ set?: string[];
563
+ push?: string | string[];
564
+ };
565
+ export type NullableStringFieldUpdateOperationsInput = {
566
+ set?: string | null;
567
+ };
568
+ export type NullableDateTimeFieldUpdateOperationsInput = {
569
+ set?: Date | string | null;
570
+ };
571
+ export type ShipCreateNestedOneWithoutLeasesInput = {
572
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutLeasesInput, Prisma.ShipUncheckedCreateWithoutLeasesInput>;
573
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutLeasesInput;
574
+ connect?: Prisma.ShipWhereUniqueInput;
575
+ };
576
+ export type ShipUpdateOneRequiredWithoutLeasesNestedInput = {
577
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutLeasesInput, Prisma.ShipUncheckedCreateWithoutLeasesInput>;
578
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutLeasesInput;
579
+ upsert?: Prisma.ShipUpsertWithoutLeasesInput;
580
+ connect?: Prisma.ShipWhereUniqueInput;
581
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutLeasesInput, Prisma.ShipUpdateWithoutLeasesInput>, Prisma.ShipUncheckedUpdateWithoutLeasesInput>;
582
+ };
583
+ export type ShipCreateNestedOneWithoutCrewRequestInput = {
584
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutCrewRequestInput, Prisma.ShipUncheckedCreateWithoutCrewRequestInput>;
585
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutCrewRequestInput;
586
+ connect?: Prisma.ShipWhereUniqueInput;
587
+ };
588
+ export type ShipCreateNestedOneWithoutAssignedCrewsInput = {
589
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutAssignedCrewsInput, Prisma.ShipUncheckedCreateWithoutAssignedCrewsInput>;
590
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutAssignedCrewsInput;
591
+ connect?: Prisma.ShipWhereUniqueInput;
592
+ };
593
+ export type ShipUpdateOneRequiredWithoutCrewRequestNestedInput = {
594
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutCrewRequestInput, Prisma.ShipUncheckedCreateWithoutCrewRequestInput>;
595
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutCrewRequestInput;
596
+ upsert?: Prisma.ShipUpsertWithoutCrewRequestInput;
597
+ connect?: Prisma.ShipWhereUniqueInput;
598
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutCrewRequestInput, Prisma.ShipUpdateWithoutCrewRequestInput>, Prisma.ShipUncheckedUpdateWithoutCrewRequestInput>;
599
+ };
600
+ export type ShipUpdateOneWithoutAssignedCrewsNestedInput = {
601
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutAssignedCrewsInput, Prisma.ShipUncheckedCreateWithoutAssignedCrewsInput>;
602
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutAssignedCrewsInput;
603
+ upsert?: Prisma.ShipUpsertWithoutAssignedCrewsInput;
604
+ disconnect?: Prisma.ShipWhereInput | boolean;
605
+ delete?: Prisma.ShipWhereInput | boolean;
606
+ connect?: Prisma.ShipWhereUniqueInput;
607
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutAssignedCrewsInput, Prisma.ShipUpdateWithoutAssignedCrewsInput>, Prisma.ShipUncheckedUpdateWithoutAssignedCrewsInput>;
608
+ };
609
+ export type ShipCreateNestedOneWithoutCredentialsInput = {
610
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutCredentialsInput, Prisma.ShipUncheckedCreateWithoutCredentialsInput>;
611
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutCredentialsInput;
612
+ connect?: Prisma.ShipWhereUniqueInput;
613
+ };
614
+ export type ShipUpdateOneRequiredWithoutCredentialsNestedInput = {
615
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutCredentialsInput, Prisma.ShipUncheckedCreateWithoutCredentialsInput>;
616
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutCredentialsInput;
617
+ upsert?: Prisma.ShipUpsertWithoutCredentialsInput;
618
+ connect?: Prisma.ShipWhereUniqueInput;
619
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutCredentialsInput, Prisma.ShipUpdateWithoutCredentialsInput>, Prisma.ShipUncheckedUpdateWithoutCredentialsInput>;
620
+ };
621
+ export type ShipCreateNestedOneWithoutSentMessagesInput = {
622
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutSentMessagesInput, Prisma.ShipUncheckedCreateWithoutSentMessagesInput>;
623
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutSentMessagesInput;
624
+ connect?: Prisma.ShipWhereUniqueInput;
625
+ };
626
+ export type ShipCreateNestedOneWithoutAddressedMessagesInput = {
627
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutAddressedMessagesInput, Prisma.ShipUncheckedCreateWithoutAddressedMessagesInput>;
628
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutAddressedMessagesInput;
629
+ connect?: Prisma.ShipWhereUniqueInput;
630
+ };
631
+ export type ShipUpdateOneRequiredWithoutSentMessagesNestedInput = {
632
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutSentMessagesInput, Prisma.ShipUncheckedCreateWithoutSentMessagesInput>;
633
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutSentMessagesInput;
634
+ upsert?: Prisma.ShipUpsertWithoutSentMessagesInput;
635
+ connect?: Prisma.ShipWhereUniqueInput;
636
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutSentMessagesInput, Prisma.ShipUpdateWithoutSentMessagesInput>, Prisma.ShipUncheckedUpdateWithoutSentMessagesInput>;
637
+ };
638
+ export type ShipUpdateOneWithoutAddressedMessagesNestedInput = {
639
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutAddressedMessagesInput, Prisma.ShipUncheckedCreateWithoutAddressedMessagesInput>;
640
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutAddressedMessagesInput;
641
+ upsert?: Prisma.ShipUpsertWithoutAddressedMessagesInput;
642
+ disconnect?: Prisma.ShipWhereInput | boolean;
643
+ delete?: Prisma.ShipWhereInput | boolean;
644
+ connect?: Prisma.ShipWhereUniqueInput;
645
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutAddressedMessagesInput, Prisma.ShipUpdateWithoutAddressedMessagesInput>, Prisma.ShipUncheckedUpdateWithoutAddressedMessagesInput>;
646
+ };
647
+ export type ShipCreateNestedOneWithoutDeliveriesInput = {
648
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutDeliveriesInput, Prisma.ShipUncheckedCreateWithoutDeliveriesInput>;
649
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutDeliveriesInput;
650
+ connect?: Prisma.ShipWhereUniqueInput;
651
+ };
652
+ export type ShipCreateNestedOneWithoutClaimedDeliveriesInput = {
653
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutClaimedDeliveriesInput, Prisma.ShipUncheckedCreateWithoutClaimedDeliveriesInput>;
654
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutClaimedDeliveriesInput;
655
+ connect?: Prisma.ShipWhereUniqueInput;
656
+ };
657
+ export type ShipUpdateOneWithoutDeliveriesNestedInput = {
658
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutDeliveriesInput, Prisma.ShipUncheckedCreateWithoutDeliveriesInput>;
659
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutDeliveriesInput;
660
+ upsert?: Prisma.ShipUpsertWithoutDeliveriesInput;
661
+ disconnect?: Prisma.ShipWhereInput | boolean;
662
+ delete?: Prisma.ShipWhereInput | boolean;
663
+ connect?: Prisma.ShipWhereUniqueInput;
664
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutDeliveriesInput, Prisma.ShipUpdateWithoutDeliveriesInput>, Prisma.ShipUncheckedUpdateWithoutDeliveriesInput>;
665
+ };
666
+ export type ShipUpdateOneWithoutClaimedDeliveriesNestedInput = {
667
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutClaimedDeliveriesInput, Prisma.ShipUncheckedCreateWithoutClaimedDeliveriesInput>;
668
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutClaimedDeliveriesInput;
669
+ upsert?: Prisma.ShipUpsertWithoutClaimedDeliveriesInput;
670
+ disconnect?: Prisma.ShipWhereInput | boolean;
671
+ delete?: Prisma.ShipWhereInput | boolean;
672
+ connect?: Prisma.ShipWhereUniqueInput;
673
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutClaimedDeliveriesInput, Prisma.ShipUpdateWithoutClaimedDeliveriesInput>, Prisma.ShipUncheckedUpdateWithoutClaimedDeliveriesInput>;
674
+ };
675
+ export type ShipCreateNestedOneWithoutActorOfEventsInput = {
676
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutActorOfEventsInput, Prisma.ShipUncheckedCreateWithoutActorOfEventsInput>;
677
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutActorOfEventsInput;
678
+ connect?: Prisma.ShipWhereUniqueInput;
679
+ };
680
+ export type ShipCreateNestedOneWithoutEventsInput = {
681
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutEventsInput, Prisma.ShipUncheckedCreateWithoutEventsInput>;
682
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutEventsInput;
683
+ connect?: Prisma.ShipWhereUniqueInput;
684
+ };
685
+ export type ShipUpdateOneWithoutActorOfEventsNestedInput = {
686
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutActorOfEventsInput, Prisma.ShipUncheckedCreateWithoutActorOfEventsInput>;
687
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutActorOfEventsInput;
688
+ upsert?: Prisma.ShipUpsertWithoutActorOfEventsInput;
689
+ disconnect?: Prisma.ShipWhereInput | boolean;
690
+ delete?: Prisma.ShipWhereInput | boolean;
691
+ connect?: Prisma.ShipWhereUniqueInput;
692
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutActorOfEventsInput, Prisma.ShipUpdateWithoutActorOfEventsInput>, Prisma.ShipUncheckedUpdateWithoutActorOfEventsInput>;
693
+ };
694
+ export type ShipUpdateOneWithoutEventsNestedInput = {
695
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutEventsInput, Prisma.ShipUncheckedCreateWithoutEventsInput>;
696
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutEventsInput;
697
+ upsert?: Prisma.ShipUpsertWithoutEventsInput;
698
+ disconnect?: Prisma.ShipWhereInput | boolean;
699
+ delete?: Prisma.ShipWhereInput | boolean;
700
+ connect?: Prisma.ShipWhereUniqueInput;
701
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutEventsInput, Prisma.ShipUpdateWithoutEventsInput>, Prisma.ShipUncheckedUpdateWithoutEventsInput>;
702
+ };
703
+ export type ShipCreateNestedOneWithoutConsoleSessionsInput = {
704
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutConsoleSessionsInput, Prisma.ShipUncheckedCreateWithoutConsoleSessionsInput>;
705
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutConsoleSessionsInput;
706
+ connect?: Prisma.ShipWhereUniqueInput;
707
+ };
708
+ export type ShipUpdateOneRequiredWithoutConsoleSessionsNestedInput = {
709
+ create?: Prisma.XOR<Prisma.ShipCreateWithoutConsoleSessionsInput, Prisma.ShipUncheckedCreateWithoutConsoleSessionsInput>;
710
+ connectOrCreate?: Prisma.ShipCreateOrConnectWithoutConsoleSessionsInput;
711
+ upsert?: Prisma.ShipUpsertWithoutConsoleSessionsInput;
712
+ connect?: Prisma.ShipWhereUniqueInput;
713
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ShipUpdateToOneWithWhereWithoutConsoleSessionsInput, Prisma.ShipUpdateWithoutConsoleSessionsInput>, Prisma.ShipUncheckedUpdateWithoutConsoleSessionsInput>;
714
+ };
715
+ export type ShipCreateWithoutFleetInput = {
716
+ id: string;
717
+ name: string;
718
+ type: string;
719
+ kind: $Enums.ShipKind;
720
+ scopes?: Prisma.ShipCreatescopesInput | string[];
721
+ note?: string | null;
722
+ createdAt: Date | string;
723
+ retiredAt?: Date | string | null;
724
+ commissionedBy?: string | null;
725
+ commissionKey?: string | null;
726
+ commissionRequestHash?: string | null;
727
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
728
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
729
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
730
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
731
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
732
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
733
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
734
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
735
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
736
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
737
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
738
+ };
739
+ export type ShipUncheckedCreateWithoutFleetInput = {
740
+ id: string;
741
+ name: string;
742
+ type: string;
743
+ kind: $Enums.ShipKind;
744
+ scopes?: Prisma.ShipCreatescopesInput | string[];
745
+ note?: string | null;
746
+ createdAt: Date | string;
747
+ retiredAt?: Date | string | null;
748
+ commissionedBy?: string | null;
749
+ commissionKey?: string | null;
750
+ commissionRequestHash?: string | null;
751
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
752
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
753
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
754
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
755
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
756
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
757
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
758
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
759
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
760
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
761
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
762
+ };
763
+ export type ShipCreateOrConnectWithoutFleetInput = {
764
+ where: Prisma.ShipWhereUniqueInput;
765
+ create: Prisma.XOR<Prisma.ShipCreateWithoutFleetInput, Prisma.ShipUncheckedCreateWithoutFleetInput>;
766
+ };
767
+ export type ShipCreateManyFleetInputEnvelope = {
768
+ data: Prisma.ShipCreateManyFleetInput | Prisma.ShipCreateManyFleetInput[];
769
+ skipDuplicates?: boolean;
770
+ };
771
+ export type ShipUpsertWithWhereUniqueWithoutFleetInput = {
772
+ where: Prisma.ShipWhereUniqueInput;
773
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutFleetInput, Prisma.ShipUncheckedUpdateWithoutFleetInput>;
774
+ create: Prisma.XOR<Prisma.ShipCreateWithoutFleetInput, Prisma.ShipUncheckedCreateWithoutFleetInput>;
775
+ };
776
+ export type ShipUpdateWithWhereUniqueWithoutFleetInput = {
777
+ where: Prisma.ShipWhereUniqueInput;
778
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutFleetInput, Prisma.ShipUncheckedUpdateWithoutFleetInput>;
779
+ };
780
+ export type ShipUpdateManyWithWhereWithoutFleetInput = {
781
+ where: Prisma.ShipScalarWhereInput;
782
+ data: Prisma.XOR<Prisma.ShipUpdateManyMutationInput, Prisma.ShipUncheckedUpdateManyWithoutFleetInput>;
783
+ };
784
+ export type ShipScalarWhereInput = {
785
+ AND?: Prisma.ShipScalarWhereInput | Prisma.ShipScalarWhereInput[];
786
+ OR?: Prisma.ShipScalarWhereInput[];
787
+ NOT?: Prisma.ShipScalarWhereInput | Prisma.ShipScalarWhereInput[];
788
+ id?: Prisma.StringFilter<"Ship"> | string;
789
+ fleetId?: Prisma.StringFilter<"Ship"> | string;
790
+ name?: Prisma.StringFilter<"Ship"> | string;
791
+ type?: Prisma.StringFilter<"Ship"> | string;
792
+ kind?: Prisma.EnumShipKindFilter<"Ship"> | $Enums.ShipKind;
793
+ scopes?: Prisma.StringNullableListFilter<"Ship">;
794
+ note?: Prisma.StringNullableFilter<"Ship"> | string | null;
795
+ createdAt?: Prisma.DateTimeFilter<"Ship"> | Date | string;
796
+ retiredAt?: Prisma.DateTimeNullableFilter<"Ship"> | Date | string | null;
797
+ commissionedBy?: Prisma.StringNullableFilter<"Ship"> | string | null;
798
+ commissionKey?: Prisma.StringNullableFilter<"Ship"> | string | null;
799
+ commissionRequestHash?: Prisma.StringNullableFilter<"Ship"> | string | null;
800
+ };
801
+ export type ShipCreateWithoutLeasesInput = {
802
+ id: string;
803
+ name: string;
804
+ type: string;
805
+ kind: $Enums.ShipKind;
806
+ scopes?: Prisma.ShipCreatescopesInput | string[];
807
+ note?: string | null;
808
+ createdAt: Date | string;
809
+ retiredAt?: Date | string | null;
810
+ commissionedBy?: string | null;
811
+ commissionKey?: string | null;
812
+ commissionRequestHash?: string | null;
813
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
814
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
815
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
816
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
817
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
818
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
819
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
820
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
821
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
822
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
823
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
824
+ };
825
+ export type ShipUncheckedCreateWithoutLeasesInput = {
826
+ id: string;
827
+ fleetId: string;
828
+ name: string;
829
+ type: string;
830
+ kind: $Enums.ShipKind;
831
+ scopes?: Prisma.ShipCreatescopesInput | string[];
832
+ note?: string | null;
833
+ createdAt: Date | string;
834
+ retiredAt?: Date | string | null;
835
+ commissionedBy?: string | null;
836
+ commissionKey?: string | null;
837
+ commissionRequestHash?: string | null;
838
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
839
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
840
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
841
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
842
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
843
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
844
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
845
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
846
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
847
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
848
+ };
849
+ export type ShipCreateOrConnectWithoutLeasesInput = {
850
+ where: Prisma.ShipWhereUniqueInput;
851
+ create: Prisma.XOR<Prisma.ShipCreateWithoutLeasesInput, Prisma.ShipUncheckedCreateWithoutLeasesInput>;
852
+ };
853
+ export type ShipUpsertWithoutLeasesInput = {
854
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutLeasesInput, Prisma.ShipUncheckedUpdateWithoutLeasesInput>;
855
+ create: Prisma.XOR<Prisma.ShipCreateWithoutLeasesInput, Prisma.ShipUncheckedCreateWithoutLeasesInput>;
856
+ where?: Prisma.ShipWhereInput;
857
+ };
858
+ export type ShipUpdateToOneWithWhereWithoutLeasesInput = {
859
+ where?: Prisma.ShipWhereInput;
860
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutLeasesInput, Prisma.ShipUncheckedUpdateWithoutLeasesInput>;
861
+ };
862
+ export type ShipUpdateWithoutLeasesInput = {
863
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
864
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
865
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
866
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
867
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
868
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
869
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
870
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
871
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
872
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
873
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
874
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
875
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
876
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
877
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
878
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
879
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
880
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
881
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
882
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
883
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
884
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
885
+ };
886
+ export type ShipUncheckedUpdateWithoutLeasesInput = {
887
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
888
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
889
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
890
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
891
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
892
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
893
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
894
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
895
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
896
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
897
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
898
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
899
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
900
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
901
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
902
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
903
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
904
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
905
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
906
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
907
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
908
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
909
+ };
910
+ export type ShipCreateWithoutCrewRequestInput = {
911
+ id: string;
912
+ name: string;
913
+ type: string;
914
+ kind: $Enums.ShipKind;
915
+ scopes?: Prisma.ShipCreatescopesInput | string[];
916
+ note?: string | null;
917
+ createdAt: Date | string;
918
+ retiredAt?: Date | string | null;
919
+ commissionedBy?: string | null;
920
+ commissionKey?: string | null;
921
+ commissionRequestHash?: string | null;
922
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
923
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
924
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
925
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
926
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
927
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
928
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
929
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
930
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
931
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
932
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
933
+ };
934
+ export type ShipUncheckedCreateWithoutCrewRequestInput = {
935
+ id: string;
936
+ fleetId: string;
937
+ name: string;
938
+ type: string;
939
+ kind: $Enums.ShipKind;
940
+ scopes?: Prisma.ShipCreatescopesInput | string[];
941
+ note?: string | null;
942
+ createdAt: Date | string;
943
+ retiredAt?: Date | string | null;
944
+ commissionedBy?: string | null;
945
+ commissionKey?: string | null;
946
+ commissionRequestHash?: string | null;
947
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
948
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
949
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
950
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
951
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
952
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
953
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
954
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
955
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
956
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
957
+ };
958
+ export type ShipCreateOrConnectWithoutCrewRequestInput = {
959
+ where: Prisma.ShipWhereUniqueInput;
960
+ create: Prisma.XOR<Prisma.ShipCreateWithoutCrewRequestInput, Prisma.ShipUncheckedCreateWithoutCrewRequestInput>;
961
+ };
962
+ export type ShipCreateWithoutAssignedCrewsInput = {
963
+ id: string;
964
+ name: string;
965
+ type: string;
966
+ kind: $Enums.ShipKind;
967
+ scopes?: Prisma.ShipCreatescopesInput | string[];
968
+ note?: string | null;
969
+ createdAt: Date | string;
970
+ retiredAt?: Date | string | null;
971
+ commissionedBy?: string | null;
972
+ commissionKey?: string | null;
973
+ commissionRequestHash?: string | null;
974
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
975
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
976
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
977
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
978
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
979
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
980
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
981
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
982
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
983
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
984
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
985
+ };
986
+ export type ShipUncheckedCreateWithoutAssignedCrewsInput = {
987
+ id: string;
988
+ fleetId: string;
989
+ name: string;
990
+ type: string;
991
+ kind: $Enums.ShipKind;
992
+ scopes?: Prisma.ShipCreatescopesInput | string[];
993
+ note?: string | null;
994
+ createdAt: Date | string;
995
+ retiredAt?: Date | string | null;
996
+ commissionedBy?: string | null;
997
+ commissionKey?: string | null;
998
+ commissionRequestHash?: string | null;
999
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1000
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1001
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1002
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
1003
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
1004
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
1005
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
1006
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
1007
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
1008
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1009
+ };
1010
+ export type ShipCreateOrConnectWithoutAssignedCrewsInput = {
1011
+ where: Prisma.ShipWhereUniqueInput;
1012
+ create: Prisma.XOR<Prisma.ShipCreateWithoutAssignedCrewsInput, Prisma.ShipUncheckedCreateWithoutAssignedCrewsInput>;
1013
+ };
1014
+ export type ShipUpsertWithoutCrewRequestInput = {
1015
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutCrewRequestInput, Prisma.ShipUncheckedUpdateWithoutCrewRequestInput>;
1016
+ create: Prisma.XOR<Prisma.ShipCreateWithoutCrewRequestInput, Prisma.ShipUncheckedCreateWithoutCrewRequestInput>;
1017
+ where?: Prisma.ShipWhereInput;
1018
+ };
1019
+ export type ShipUpdateToOneWithWhereWithoutCrewRequestInput = {
1020
+ where?: Prisma.ShipWhereInput;
1021
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutCrewRequestInput, Prisma.ShipUncheckedUpdateWithoutCrewRequestInput>;
1022
+ };
1023
+ export type ShipUpdateWithoutCrewRequestInput = {
1024
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1025
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1026
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1027
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1028
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1029
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1030
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1031
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1032
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1033
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1034
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1035
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1036
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1037
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1038
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1039
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
1040
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
1041
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
1042
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
1043
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
1044
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
1045
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
1046
+ };
1047
+ export type ShipUncheckedUpdateWithoutCrewRequestInput = {
1048
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1049
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1050
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1051
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1052
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1053
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1054
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1055
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1056
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1057
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1058
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1059
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1060
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1061
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1062
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1063
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
1064
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
1065
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
1066
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
1067
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
1068
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
1069
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
1070
+ };
1071
+ export type ShipUpsertWithoutAssignedCrewsInput = {
1072
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutAssignedCrewsInput, Prisma.ShipUncheckedUpdateWithoutAssignedCrewsInput>;
1073
+ create: Prisma.XOR<Prisma.ShipCreateWithoutAssignedCrewsInput, Prisma.ShipUncheckedCreateWithoutAssignedCrewsInput>;
1074
+ where?: Prisma.ShipWhereInput;
1075
+ };
1076
+ export type ShipUpdateToOneWithWhereWithoutAssignedCrewsInput = {
1077
+ where?: Prisma.ShipWhereInput;
1078
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutAssignedCrewsInput, Prisma.ShipUncheckedUpdateWithoutAssignedCrewsInput>;
1079
+ };
1080
+ export type ShipUpdateWithoutAssignedCrewsInput = {
1081
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1082
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1083
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1084
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1085
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1086
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1087
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1088
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1089
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1090
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1091
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1092
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1093
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1094
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1095
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1096
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
1097
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
1098
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
1099
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
1100
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
1101
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
1102
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
1103
+ };
1104
+ export type ShipUncheckedUpdateWithoutAssignedCrewsInput = {
1105
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1106
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1107
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1108
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1109
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1110
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1111
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1112
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1113
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1114
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1115
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1116
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1117
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1118
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1119
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1120
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
1121
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
1122
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
1123
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
1124
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
1125
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
1126
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
1127
+ };
1128
+ export type ShipCreateWithoutCredentialsInput = {
1129
+ id: string;
1130
+ name: string;
1131
+ type: string;
1132
+ kind: $Enums.ShipKind;
1133
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1134
+ note?: string | null;
1135
+ createdAt: Date | string;
1136
+ retiredAt?: Date | string | null;
1137
+ commissionedBy?: string | null;
1138
+ commissionKey?: string | null;
1139
+ commissionRequestHash?: string | null;
1140
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1141
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1142
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
1143
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
1144
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
1145
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
1146
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
1147
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
1148
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
1149
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
1150
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
1151
+ };
1152
+ export type ShipUncheckedCreateWithoutCredentialsInput = {
1153
+ id: string;
1154
+ fleetId: string;
1155
+ name: string;
1156
+ type: string;
1157
+ kind: $Enums.ShipKind;
1158
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1159
+ note?: string | null;
1160
+ createdAt: Date | string;
1161
+ retiredAt?: Date | string | null;
1162
+ commissionedBy?: string | null;
1163
+ commissionKey?: string | null;
1164
+ commissionRequestHash?: string | null;
1165
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1166
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1167
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
1168
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
1169
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
1170
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
1171
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
1172
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
1173
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1174
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
1175
+ };
1176
+ export type ShipCreateOrConnectWithoutCredentialsInput = {
1177
+ where: Prisma.ShipWhereUniqueInput;
1178
+ create: Prisma.XOR<Prisma.ShipCreateWithoutCredentialsInput, Prisma.ShipUncheckedCreateWithoutCredentialsInput>;
1179
+ };
1180
+ export type ShipUpsertWithoutCredentialsInput = {
1181
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutCredentialsInput, Prisma.ShipUncheckedUpdateWithoutCredentialsInput>;
1182
+ create: Prisma.XOR<Prisma.ShipCreateWithoutCredentialsInput, Prisma.ShipUncheckedCreateWithoutCredentialsInput>;
1183
+ where?: Prisma.ShipWhereInput;
1184
+ };
1185
+ export type ShipUpdateToOneWithWhereWithoutCredentialsInput = {
1186
+ where?: Prisma.ShipWhereInput;
1187
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutCredentialsInput, Prisma.ShipUncheckedUpdateWithoutCredentialsInput>;
1188
+ };
1189
+ export type ShipUpdateWithoutCredentialsInput = {
1190
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1191
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1192
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1193
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1194
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1195
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1196
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1197
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1198
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1199
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1200
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1201
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1202
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1203
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1204
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
1205
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
1206
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
1207
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
1208
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
1209
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
1210
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
1211
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
1212
+ };
1213
+ export type ShipUncheckedUpdateWithoutCredentialsInput = {
1214
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1215
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1216
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1217
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1218
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1219
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1220
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1221
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1222
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1223
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1224
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1225
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1226
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1227
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1228
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
1229
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
1230
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
1231
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
1232
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
1233
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
1234
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
1235
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
1236
+ };
1237
+ export type ShipCreateWithoutSentMessagesInput = {
1238
+ id: string;
1239
+ name: string;
1240
+ type: string;
1241
+ kind: $Enums.ShipKind;
1242
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1243
+ note?: string | null;
1244
+ createdAt: Date | string;
1245
+ retiredAt?: Date | string | null;
1246
+ commissionedBy?: string | null;
1247
+ commissionKey?: string | null;
1248
+ commissionRequestHash?: string | null;
1249
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1250
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1251
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1252
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
1253
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
1254
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
1255
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
1256
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
1257
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
1258
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
1259
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
1260
+ };
1261
+ export type ShipUncheckedCreateWithoutSentMessagesInput = {
1262
+ id: string;
1263
+ fleetId: string;
1264
+ name: string;
1265
+ type: string;
1266
+ kind: $Enums.ShipKind;
1267
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1268
+ note?: string | null;
1269
+ createdAt: Date | string;
1270
+ retiredAt?: Date | string | null;
1271
+ commissionedBy?: string | null;
1272
+ commissionKey?: string | null;
1273
+ commissionRequestHash?: string | null;
1274
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1275
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1276
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
1277
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
1278
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
1279
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
1280
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
1281
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
1282
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1283
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
1284
+ };
1285
+ export type ShipCreateOrConnectWithoutSentMessagesInput = {
1286
+ where: Prisma.ShipWhereUniqueInput;
1287
+ create: Prisma.XOR<Prisma.ShipCreateWithoutSentMessagesInput, Prisma.ShipUncheckedCreateWithoutSentMessagesInput>;
1288
+ };
1289
+ export type ShipCreateWithoutAddressedMessagesInput = {
1290
+ id: string;
1291
+ name: string;
1292
+ type: string;
1293
+ kind: $Enums.ShipKind;
1294
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1295
+ note?: string | null;
1296
+ createdAt: Date | string;
1297
+ retiredAt?: Date | string | null;
1298
+ commissionedBy?: string | null;
1299
+ commissionKey?: string | null;
1300
+ commissionRequestHash?: string | null;
1301
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1302
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1303
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1304
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
1305
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
1306
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
1307
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
1308
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
1309
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
1310
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
1311
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
1312
+ };
1313
+ export type ShipUncheckedCreateWithoutAddressedMessagesInput = {
1314
+ id: string;
1315
+ fleetId: string;
1316
+ name: string;
1317
+ type: string;
1318
+ kind: $Enums.ShipKind;
1319
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1320
+ note?: string | null;
1321
+ createdAt: Date | string;
1322
+ retiredAt?: Date | string | null;
1323
+ commissionedBy?: string | null;
1324
+ commissionKey?: string | null;
1325
+ commissionRequestHash?: string | null;
1326
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1327
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1328
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1329
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
1330
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
1331
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
1332
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
1333
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
1334
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1335
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
1336
+ };
1337
+ export type ShipCreateOrConnectWithoutAddressedMessagesInput = {
1338
+ where: Prisma.ShipWhereUniqueInput;
1339
+ create: Prisma.XOR<Prisma.ShipCreateWithoutAddressedMessagesInput, Prisma.ShipUncheckedCreateWithoutAddressedMessagesInput>;
1340
+ };
1341
+ export type ShipUpsertWithoutSentMessagesInput = {
1342
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutSentMessagesInput, Prisma.ShipUncheckedUpdateWithoutSentMessagesInput>;
1343
+ create: Prisma.XOR<Prisma.ShipCreateWithoutSentMessagesInput, Prisma.ShipUncheckedCreateWithoutSentMessagesInput>;
1344
+ where?: Prisma.ShipWhereInput;
1345
+ };
1346
+ export type ShipUpdateToOneWithWhereWithoutSentMessagesInput = {
1347
+ where?: Prisma.ShipWhereInput;
1348
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutSentMessagesInput, Prisma.ShipUncheckedUpdateWithoutSentMessagesInput>;
1349
+ };
1350
+ export type ShipUpdateWithoutSentMessagesInput = {
1351
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1352
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1353
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1354
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1355
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1356
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1357
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1358
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1359
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1360
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1361
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1362
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1363
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1364
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1365
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
1366
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
1367
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
1368
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
1369
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
1370
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
1371
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
1372
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
1373
+ };
1374
+ export type ShipUncheckedUpdateWithoutSentMessagesInput = {
1375
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1376
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1377
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1378
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1379
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1380
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1381
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1382
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1383
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1384
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1385
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1386
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1387
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1388
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1389
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
1390
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
1391
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
1392
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
1393
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
1394
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
1395
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
1396
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
1397
+ };
1398
+ export type ShipUpsertWithoutAddressedMessagesInput = {
1399
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutAddressedMessagesInput, Prisma.ShipUncheckedUpdateWithoutAddressedMessagesInput>;
1400
+ create: Prisma.XOR<Prisma.ShipCreateWithoutAddressedMessagesInput, Prisma.ShipUncheckedCreateWithoutAddressedMessagesInput>;
1401
+ where?: Prisma.ShipWhereInput;
1402
+ };
1403
+ export type ShipUpdateToOneWithWhereWithoutAddressedMessagesInput = {
1404
+ where?: Prisma.ShipWhereInput;
1405
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutAddressedMessagesInput, Prisma.ShipUncheckedUpdateWithoutAddressedMessagesInput>;
1406
+ };
1407
+ export type ShipUpdateWithoutAddressedMessagesInput = {
1408
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1409
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1410
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1411
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1412
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1413
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1414
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1415
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1416
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1417
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1418
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1419
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1420
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1421
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1422
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1423
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
1424
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
1425
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
1426
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
1427
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
1428
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
1429
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
1430
+ };
1431
+ export type ShipUncheckedUpdateWithoutAddressedMessagesInput = {
1432
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1433
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1434
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1435
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1436
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1437
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1438
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1439
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1440
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1441
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1442
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1443
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1444
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1445
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1446
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1447
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
1448
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
1449
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
1450
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
1451
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
1452
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
1453
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
1454
+ };
1455
+ export type ShipCreateWithoutDeliveriesInput = {
1456
+ id: string;
1457
+ name: string;
1458
+ type: string;
1459
+ kind: $Enums.ShipKind;
1460
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1461
+ note?: string | null;
1462
+ createdAt: Date | string;
1463
+ retiredAt?: Date | string | null;
1464
+ commissionedBy?: string | null;
1465
+ commissionKey?: string | null;
1466
+ commissionRequestHash?: string | null;
1467
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1468
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1469
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1470
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
1471
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
1472
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
1473
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
1474
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
1475
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
1476
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
1477
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
1478
+ };
1479
+ export type ShipUncheckedCreateWithoutDeliveriesInput = {
1480
+ id: string;
1481
+ fleetId: string;
1482
+ name: string;
1483
+ type: string;
1484
+ kind: $Enums.ShipKind;
1485
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1486
+ note?: string | null;
1487
+ createdAt: Date | string;
1488
+ retiredAt?: Date | string | null;
1489
+ commissionedBy?: string | null;
1490
+ commissionKey?: string | null;
1491
+ commissionRequestHash?: string | null;
1492
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1493
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1494
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1495
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
1496
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
1497
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
1498
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
1499
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
1500
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1501
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
1502
+ };
1503
+ export type ShipCreateOrConnectWithoutDeliveriesInput = {
1504
+ where: Prisma.ShipWhereUniqueInput;
1505
+ create: Prisma.XOR<Prisma.ShipCreateWithoutDeliveriesInput, Prisma.ShipUncheckedCreateWithoutDeliveriesInput>;
1506
+ };
1507
+ export type ShipCreateWithoutClaimedDeliveriesInput = {
1508
+ id: string;
1509
+ name: string;
1510
+ type: string;
1511
+ kind: $Enums.ShipKind;
1512
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1513
+ note?: string | null;
1514
+ createdAt: Date | string;
1515
+ retiredAt?: Date | string | null;
1516
+ commissionedBy?: string | null;
1517
+ commissionKey?: string | null;
1518
+ commissionRequestHash?: string | null;
1519
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1520
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1521
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1522
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
1523
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
1524
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
1525
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
1526
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
1527
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
1528
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
1529
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
1530
+ };
1531
+ export type ShipUncheckedCreateWithoutClaimedDeliveriesInput = {
1532
+ id: string;
1533
+ fleetId: string;
1534
+ name: string;
1535
+ type: string;
1536
+ kind: $Enums.ShipKind;
1537
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1538
+ note?: string | null;
1539
+ createdAt: Date | string;
1540
+ retiredAt?: Date | string | null;
1541
+ commissionedBy?: string | null;
1542
+ commissionKey?: string | null;
1543
+ commissionRequestHash?: string | null;
1544
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1545
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1546
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1547
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
1548
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
1549
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
1550
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
1551
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
1552
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1553
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
1554
+ };
1555
+ export type ShipCreateOrConnectWithoutClaimedDeliveriesInput = {
1556
+ where: Prisma.ShipWhereUniqueInput;
1557
+ create: Prisma.XOR<Prisma.ShipCreateWithoutClaimedDeliveriesInput, Prisma.ShipUncheckedCreateWithoutClaimedDeliveriesInput>;
1558
+ };
1559
+ export type ShipUpsertWithoutDeliveriesInput = {
1560
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutDeliveriesInput, Prisma.ShipUncheckedUpdateWithoutDeliveriesInput>;
1561
+ create: Prisma.XOR<Prisma.ShipCreateWithoutDeliveriesInput, Prisma.ShipUncheckedCreateWithoutDeliveriesInput>;
1562
+ where?: Prisma.ShipWhereInput;
1563
+ };
1564
+ export type ShipUpdateToOneWithWhereWithoutDeliveriesInput = {
1565
+ where?: Prisma.ShipWhereInput;
1566
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutDeliveriesInput, Prisma.ShipUncheckedUpdateWithoutDeliveriesInput>;
1567
+ };
1568
+ export type ShipUpdateWithoutDeliveriesInput = {
1569
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1570
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1571
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1572
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1573
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1574
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1575
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1576
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1577
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1578
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1579
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1580
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1581
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1582
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1583
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1584
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
1585
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
1586
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
1587
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
1588
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
1589
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
1590
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
1591
+ };
1592
+ export type ShipUncheckedUpdateWithoutDeliveriesInput = {
1593
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1594
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1595
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1596
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1597
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1598
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1599
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1600
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1601
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1602
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1603
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1604
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1605
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1606
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1607
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1608
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
1609
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
1610
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
1611
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
1612
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
1613
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
1614
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
1615
+ };
1616
+ export type ShipUpsertWithoutClaimedDeliveriesInput = {
1617
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutClaimedDeliveriesInput, Prisma.ShipUncheckedUpdateWithoutClaimedDeliveriesInput>;
1618
+ create: Prisma.XOR<Prisma.ShipCreateWithoutClaimedDeliveriesInput, Prisma.ShipUncheckedCreateWithoutClaimedDeliveriesInput>;
1619
+ where?: Prisma.ShipWhereInput;
1620
+ };
1621
+ export type ShipUpdateToOneWithWhereWithoutClaimedDeliveriesInput = {
1622
+ where?: Prisma.ShipWhereInput;
1623
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutClaimedDeliveriesInput, Prisma.ShipUncheckedUpdateWithoutClaimedDeliveriesInput>;
1624
+ };
1625
+ export type ShipUpdateWithoutClaimedDeliveriesInput = {
1626
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1627
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1628
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1629
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1630
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1631
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1632
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1633
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1634
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1635
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1636
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1637
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1638
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1639
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1640
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1641
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
1642
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
1643
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
1644
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
1645
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
1646
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
1647
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
1648
+ };
1649
+ export type ShipUncheckedUpdateWithoutClaimedDeliveriesInput = {
1650
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1651
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1652
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1653
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1654
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1655
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1656
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1657
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1658
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1659
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1660
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1661
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1662
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1663
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1664
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1665
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
1666
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
1667
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
1668
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
1669
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
1670
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
1671
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
1672
+ };
1673
+ export type ShipCreateWithoutActorOfEventsInput = {
1674
+ id: string;
1675
+ name: string;
1676
+ type: string;
1677
+ kind: $Enums.ShipKind;
1678
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1679
+ note?: string | null;
1680
+ createdAt: Date | string;
1681
+ retiredAt?: Date | string | null;
1682
+ commissionedBy?: string | null;
1683
+ commissionKey?: string | null;
1684
+ commissionRequestHash?: string | null;
1685
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1686
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1687
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1688
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
1689
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
1690
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
1691
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
1692
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
1693
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
1694
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
1695
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
1696
+ };
1697
+ export type ShipUncheckedCreateWithoutActorOfEventsInput = {
1698
+ id: string;
1699
+ fleetId: string;
1700
+ name: string;
1701
+ type: string;
1702
+ kind: $Enums.ShipKind;
1703
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1704
+ note?: string | null;
1705
+ createdAt: Date | string;
1706
+ retiredAt?: Date | string | null;
1707
+ commissionedBy?: string | null;
1708
+ commissionKey?: string | null;
1709
+ commissionRequestHash?: string | null;
1710
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1711
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1712
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1713
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
1714
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
1715
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
1716
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
1717
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
1718
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1719
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
1720
+ };
1721
+ export type ShipCreateOrConnectWithoutActorOfEventsInput = {
1722
+ where: Prisma.ShipWhereUniqueInput;
1723
+ create: Prisma.XOR<Prisma.ShipCreateWithoutActorOfEventsInput, Prisma.ShipUncheckedCreateWithoutActorOfEventsInput>;
1724
+ };
1725
+ export type ShipCreateWithoutEventsInput = {
1726
+ id: string;
1727
+ name: string;
1728
+ type: string;
1729
+ kind: $Enums.ShipKind;
1730
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1731
+ note?: string | null;
1732
+ createdAt: Date | string;
1733
+ retiredAt?: Date | string | null;
1734
+ commissionedBy?: string | null;
1735
+ commissionKey?: string | null;
1736
+ commissionRequestHash?: string | null;
1737
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1738
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1739
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1740
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
1741
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
1742
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
1743
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
1744
+ consoleSessions?: Prisma.ConsoleSessionCreateNestedManyWithoutShipInput;
1745
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
1746
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
1747
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
1748
+ };
1749
+ export type ShipUncheckedCreateWithoutEventsInput = {
1750
+ id: string;
1751
+ fleetId: string;
1752
+ name: string;
1753
+ type: string;
1754
+ kind: $Enums.ShipKind;
1755
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1756
+ note?: string | null;
1757
+ createdAt: Date | string;
1758
+ retiredAt?: Date | string | null;
1759
+ commissionedBy?: string | null;
1760
+ commissionKey?: string | null;
1761
+ commissionRequestHash?: string | null;
1762
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1763
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1764
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1765
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
1766
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
1767
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
1768
+ consoleSessions?: Prisma.ConsoleSessionUncheckedCreateNestedManyWithoutShipInput;
1769
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
1770
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1771
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
1772
+ };
1773
+ export type ShipCreateOrConnectWithoutEventsInput = {
1774
+ where: Prisma.ShipWhereUniqueInput;
1775
+ create: Prisma.XOR<Prisma.ShipCreateWithoutEventsInput, Prisma.ShipUncheckedCreateWithoutEventsInput>;
1776
+ };
1777
+ export type ShipUpsertWithoutActorOfEventsInput = {
1778
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutActorOfEventsInput, Prisma.ShipUncheckedUpdateWithoutActorOfEventsInput>;
1779
+ create: Prisma.XOR<Prisma.ShipCreateWithoutActorOfEventsInput, Prisma.ShipUncheckedCreateWithoutActorOfEventsInput>;
1780
+ where?: Prisma.ShipWhereInput;
1781
+ };
1782
+ export type ShipUpdateToOneWithWhereWithoutActorOfEventsInput = {
1783
+ where?: Prisma.ShipWhereInput;
1784
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutActorOfEventsInput, Prisma.ShipUncheckedUpdateWithoutActorOfEventsInput>;
1785
+ };
1786
+ export type ShipUpdateWithoutActorOfEventsInput = {
1787
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1788
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1789
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1790
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1791
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1792
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1793
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1794
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1795
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1796
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1797
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1798
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1799
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1800
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1801
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1802
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
1803
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
1804
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
1805
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
1806
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
1807
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
1808
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
1809
+ };
1810
+ export type ShipUncheckedUpdateWithoutActorOfEventsInput = {
1811
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1812
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1813
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1814
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1815
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1816
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1817
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1818
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1819
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1820
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1821
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1822
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1823
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1824
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1825
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1826
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
1827
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
1828
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
1829
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
1830
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
1831
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
1832
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
1833
+ };
1834
+ export type ShipUpsertWithoutEventsInput = {
1835
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutEventsInput, Prisma.ShipUncheckedUpdateWithoutEventsInput>;
1836
+ create: Prisma.XOR<Prisma.ShipCreateWithoutEventsInput, Prisma.ShipUncheckedCreateWithoutEventsInput>;
1837
+ where?: Prisma.ShipWhereInput;
1838
+ };
1839
+ export type ShipUpdateToOneWithWhereWithoutEventsInput = {
1840
+ where?: Prisma.ShipWhereInput;
1841
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutEventsInput, Prisma.ShipUncheckedUpdateWithoutEventsInput>;
1842
+ };
1843
+ export type ShipUpdateWithoutEventsInput = {
1844
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1845
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1846
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1847
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1848
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1849
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1850
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1851
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1852
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1853
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1854
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1855
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1856
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1857
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1858
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1859
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
1860
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
1861
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
1862
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
1863
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
1864
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
1865
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
1866
+ };
1867
+ export type ShipUncheckedUpdateWithoutEventsInput = {
1868
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1869
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1870
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1871
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1872
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1873
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1874
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1875
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1876
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1877
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1878
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1879
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1880
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1881
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1882
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1883
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
1884
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
1885
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
1886
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
1887
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
1888
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
1889
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
1890
+ };
1891
+ export type ShipCreateWithoutConsoleSessionsInput = {
1892
+ id: string;
1893
+ name: string;
1894
+ type: string;
1895
+ kind: $Enums.ShipKind;
1896
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1897
+ note?: string | null;
1898
+ createdAt: Date | string;
1899
+ retiredAt?: Date | string | null;
1900
+ commissionedBy?: string | null;
1901
+ commissionKey?: string | null;
1902
+ commissionRequestHash?: string | null;
1903
+ fleet: Prisma.FleetCreateNestedOneWithoutShipsInput;
1904
+ leases?: Prisma.LeaseCreateNestedManyWithoutShipInput;
1905
+ credentials?: Prisma.CredentialCreateNestedManyWithoutShipInput;
1906
+ sentMessages?: Prisma.MessageCreateNestedManyWithoutSenderShipInput;
1907
+ addressedMessages?: Prisma.MessageCreateNestedManyWithoutSelectorShipInput;
1908
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutRecipientShipInput;
1909
+ claimedDeliveries?: Prisma.DeliveryCreateNestedManyWithoutClaimedByShipInput;
1910
+ actorOfEvents?: Prisma.EventCreateNestedManyWithoutActorShipInput;
1911
+ events?: Prisma.EventCreateNestedManyWithoutShipInput;
1912
+ crewRequest?: Prisma.CrewRequestCreateNestedOneWithoutShipInput;
1913
+ assignedCrews?: Prisma.CrewRequestCreateNestedManyWithoutAssigneeInput;
1914
+ };
1915
+ export type ShipUncheckedCreateWithoutConsoleSessionsInput = {
1916
+ id: string;
1917
+ fleetId: string;
1918
+ name: string;
1919
+ type: string;
1920
+ kind: $Enums.ShipKind;
1921
+ scopes?: Prisma.ShipCreatescopesInput | string[];
1922
+ note?: string | null;
1923
+ createdAt: Date | string;
1924
+ retiredAt?: Date | string | null;
1925
+ commissionedBy?: string | null;
1926
+ commissionKey?: string | null;
1927
+ commissionRequestHash?: string | null;
1928
+ leases?: Prisma.LeaseUncheckedCreateNestedManyWithoutShipInput;
1929
+ credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutShipInput;
1930
+ sentMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderShipInput;
1931
+ addressedMessages?: Prisma.MessageUncheckedCreateNestedManyWithoutSelectorShipInput;
1932
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutRecipientShipInput;
1933
+ claimedDeliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutClaimedByShipInput;
1934
+ actorOfEvents?: Prisma.EventUncheckedCreateNestedManyWithoutActorShipInput;
1935
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutShipInput;
1936
+ crewRequest?: Prisma.CrewRequestUncheckedCreateNestedOneWithoutShipInput;
1937
+ assignedCrews?: Prisma.CrewRequestUncheckedCreateNestedManyWithoutAssigneeInput;
1938
+ };
1939
+ export type ShipCreateOrConnectWithoutConsoleSessionsInput = {
1940
+ where: Prisma.ShipWhereUniqueInput;
1941
+ create: Prisma.XOR<Prisma.ShipCreateWithoutConsoleSessionsInput, Prisma.ShipUncheckedCreateWithoutConsoleSessionsInput>;
1942
+ };
1943
+ export type ShipUpsertWithoutConsoleSessionsInput = {
1944
+ update: Prisma.XOR<Prisma.ShipUpdateWithoutConsoleSessionsInput, Prisma.ShipUncheckedUpdateWithoutConsoleSessionsInput>;
1945
+ create: Prisma.XOR<Prisma.ShipCreateWithoutConsoleSessionsInput, Prisma.ShipUncheckedCreateWithoutConsoleSessionsInput>;
1946
+ where?: Prisma.ShipWhereInput;
1947
+ };
1948
+ export type ShipUpdateToOneWithWhereWithoutConsoleSessionsInput = {
1949
+ where?: Prisma.ShipWhereInput;
1950
+ data: Prisma.XOR<Prisma.ShipUpdateWithoutConsoleSessionsInput, Prisma.ShipUncheckedUpdateWithoutConsoleSessionsInput>;
1951
+ };
1952
+ export type ShipUpdateWithoutConsoleSessionsInput = {
1953
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1954
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1955
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1956
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1957
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1958
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1959
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1960
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1961
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1962
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1963
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1964
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutShipsNestedInput;
1965
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
1966
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
1967
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
1968
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
1969
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
1970
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
1971
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
1972
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
1973
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
1974
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
1975
+ };
1976
+ export type ShipUncheckedUpdateWithoutConsoleSessionsInput = {
1977
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1978
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1979
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1980
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1981
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
1982
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
1983
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1984
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1985
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1986
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1987
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1988
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1989
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
1990
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
1991
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
1992
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
1993
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
1994
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
1995
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
1996
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
1997
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
1998
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
1999
+ };
2000
+ export type ShipCreateManyFleetInput = {
2001
+ id: string;
2002
+ name: string;
2003
+ type: string;
2004
+ kind: $Enums.ShipKind;
2005
+ scopes?: Prisma.ShipCreatescopesInput | string[];
2006
+ note?: string | null;
2007
+ createdAt: Date | string;
2008
+ retiredAt?: Date | string | null;
2009
+ commissionedBy?: string | null;
2010
+ commissionKey?: string | null;
2011
+ commissionRequestHash?: string | null;
2012
+ };
2013
+ export type ShipUpdateWithoutFleetInput = {
2014
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2015
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2016
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
2017
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
2018
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
2019
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2020
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2021
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2022
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2023
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2024
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2025
+ leases?: Prisma.LeaseUpdateManyWithoutShipNestedInput;
2026
+ credentials?: Prisma.CredentialUpdateManyWithoutShipNestedInput;
2027
+ sentMessages?: Prisma.MessageUpdateManyWithoutSenderShipNestedInput;
2028
+ addressedMessages?: Prisma.MessageUpdateManyWithoutSelectorShipNestedInput;
2029
+ deliveries?: Prisma.DeliveryUpdateManyWithoutRecipientShipNestedInput;
2030
+ claimedDeliveries?: Prisma.DeliveryUpdateManyWithoutClaimedByShipNestedInput;
2031
+ consoleSessions?: Prisma.ConsoleSessionUpdateManyWithoutShipNestedInput;
2032
+ actorOfEvents?: Prisma.EventUpdateManyWithoutActorShipNestedInput;
2033
+ events?: Prisma.EventUpdateManyWithoutShipNestedInput;
2034
+ crewRequest?: Prisma.CrewRequestUpdateOneWithoutShipNestedInput;
2035
+ assignedCrews?: Prisma.CrewRequestUpdateManyWithoutAssigneeNestedInput;
2036
+ };
2037
+ export type ShipUncheckedUpdateWithoutFleetInput = {
2038
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2039
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2040
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
2041
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
2042
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
2043
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2044
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2045
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2046
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2047
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2048
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2049
+ leases?: Prisma.LeaseUncheckedUpdateManyWithoutShipNestedInput;
2050
+ credentials?: Prisma.CredentialUncheckedUpdateManyWithoutShipNestedInput;
2051
+ sentMessages?: Prisma.MessageUncheckedUpdateManyWithoutSenderShipNestedInput;
2052
+ addressedMessages?: Prisma.MessageUncheckedUpdateManyWithoutSelectorShipNestedInput;
2053
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutRecipientShipNestedInput;
2054
+ claimedDeliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutClaimedByShipNestedInput;
2055
+ consoleSessions?: Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput;
2056
+ actorOfEvents?: Prisma.EventUncheckedUpdateManyWithoutActorShipNestedInput;
2057
+ events?: Prisma.EventUncheckedUpdateManyWithoutShipNestedInput;
2058
+ crewRequest?: Prisma.CrewRequestUncheckedUpdateOneWithoutShipNestedInput;
2059
+ assignedCrews?: Prisma.CrewRequestUncheckedUpdateManyWithoutAssigneeNestedInput;
2060
+ };
2061
+ export type ShipUncheckedUpdateManyWithoutFleetInput = {
2062
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2063
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2064
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
2065
+ kind?: Prisma.EnumShipKindFieldUpdateOperationsInput | $Enums.ShipKind;
2066
+ scopes?: Prisma.ShipUpdatescopesInput | string[];
2067
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2068
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2069
+ retiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2070
+ commissionedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2071
+ commissionKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2072
+ commissionRequestHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2073
+ };
2074
+ /**
2075
+ * Count Type ShipCountOutputType
2076
+ */
2077
+ export type ShipCountOutputType = {
2078
+ leases: number;
2079
+ credentials: number;
2080
+ sentMessages: number;
2081
+ addressedMessages: number;
2082
+ deliveries: number;
2083
+ claimedDeliveries: number;
2084
+ consoleSessions: number;
2085
+ actorOfEvents: number;
2086
+ events: number;
2087
+ assignedCrews: number;
2088
+ };
2089
+ export type ShipCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2090
+ leases?: boolean | ShipCountOutputTypeCountLeasesArgs;
2091
+ credentials?: boolean | ShipCountOutputTypeCountCredentialsArgs;
2092
+ sentMessages?: boolean | ShipCountOutputTypeCountSentMessagesArgs;
2093
+ addressedMessages?: boolean | ShipCountOutputTypeCountAddressedMessagesArgs;
2094
+ deliveries?: boolean | ShipCountOutputTypeCountDeliveriesArgs;
2095
+ claimedDeliveries?: boolean | ShipCountOutputTypeCountClaimedDeliveriesArgs;
2096
+ consoleSessions?: boolean | ShipCountOutputTypeCountConsoleSessionsArgs;
2097
+ actorOfEvents?: boolean | ShipCountOutputTypeCountActorOfEventsArgs;
2098
+ events?: boolean | ShipCountOutputTypeCountEventsArgs;
2099
+ assignedCrews?: boolean | ShipCountOutputTypeCountAssignedCrewsArgs;
2100
+ };
2101
+ /**
2102
+ * ShipCountOutputType without action
2103
+ */
2104
+ export type ShipCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2105
+ /**
2106
+ * Select specific fields to fetch from the ShipCountOutputType
2107
+ */
2108
+ select?: Prisma.ShipCountOutputTypeSelect<ExtArgs> | null;
2109
+ };
2110
+ /**
2111
+ * ShipCountOutputType without action
2112
+ */
2113
+ export type ShipCountOutputTypeCountLeasesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2114
+ where?: Prisma.LeaseWhereInput;
2115
+ };
2116
+ /**
2117
+ * ShipCountOutputType without action
2118
+ */
2119
+ export type ShipCountOutputTypeCountCredentialsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2120
+ where?: Prisma.CredentialWhereInput;
2121
+ };
2122
+ /**
2123
+ * ShipCountOutputType without action
2124
+ */
2125
+ export type ShipCountOutputTypeCountSentMessagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2126
+ where?: Prisma.MessageWhereInput;
2127
+ };
2128
+ /**
2129
+ * ShipCountOutputType without action
2130
+ */
2131
+ export type ShipCountOutputTypeCountAddressedMessagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2132
+ where?: Prisma.MessageWhereInput;
2133
+ };
2134
+ /**
2135
+ * ShipCountOutputType without action
2136
+ */
2137
+ export type ShipCountOutputTypeCountDeliveriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2138
+ where?: Prisma.DeliveryWhereInput;
2139
+ };
2140
+ /**
2141
+ * ShipCountOutputType without action
2142
+ */
2143
+ export type ShipCountOutputTypeCountClaimedDeliveriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2144
+ where?: Prisma.DeliveryWhereInput;
2145
+ };
2146
+ /**
2147
+ * ShipCountOutputType without action
2148
+ */
2149
+ export type ShipCountOutputTypeCountConsoleSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2150
+ where?: Prisma.ConsoleSessionWhereInput;
2151
+ };
2152
+ /**
2153
+ * ShipCountOutputType without action
2154
+ */
2155
+ export type ShipCountOutputTypeCountActorOfEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2156
+ where?: Prisma.EventWhereInput;
2157
+ };
2158
+ /**
2159
+ * ShipCountOutputType without action
2160
+ */
2161
+ export type ShipCountOutputTypeCountEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2162
+ where?: Prisma.EventWhereInput;
2163
+ };
2164
+ /**
2165
+ * ShipCountOutputType without action
2166
+ */
2167
+ export type ShipCountOutputTypeCountAssignedCrewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2168
+ where?: Prisma.CrewRequestWhereInput;
2169
+ };
2170
+ export type ShipSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2171
+ id?: boolean;
2172
+ fleetId?: boolean;
2173
+ name?: boolean;
2174
+ type?: boolean;
2175
+ kind?: boolean;
2176
+ scopes?: boolean;
2177
+ note?: boolean;
2178
+ createdAt?: boolean;
2179
+ retiredAt?: boolean;
2180
+ commissionedBy?: boolean;
2181
+ commissionKey?: boolean;
2182
+ commissionRequestHash?: boolean;
2183
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
2184
+ leases?: boolean | Prisma.Ship$leasesArgs<ExtArgs>;
2185
+ credentials?: boolean | Prisma.Ship$credentialsArgs<ExtArgs>;
2186
+ sentMessages?: boolean | Prisma.Ship$sentMessagesArgs<ExtArgs>;
2187
+ addressedMessages?: boolean | Prisma.Ship$addressedMessagesArgs<ExtArgs>;
2188
+ deliveries?: boolean | Prisma.Ship$deliveriesArgs<ExtArgs>;
2189
+ claimedDeliveries?: boolean | Prisma.Ship$claimedDeliveriesArgs<ExtArgs>;
2190
+ consoleSessions?: boolean | Prisma.Ship$consoleSessionsArgs<ExtArgs>;
2191
+ actorOfEvents?: boolean | Prisma.Ship$actorOfEventsArgs<ExtArgs>;
2192
+ events?: boolean | Prisma.Ship$eventsArgs<ExtArgs>;
2193
+ crewRequest?: boolean | Prisma.Ship$crewRequestArgs<ExtArgs>;
2194
+ assignedCrews?: boolean | Prisma.Ship$assignedCrewsArgs<ExtArgs>;
2195
+ _count?: boolean | Prisma.ShipCountOutputTypeDefaultArgs<ExtArgs>;
2196
+ }, ExtArgs["result"]["ship"]>;
2197
+ export type ShipSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2198
+ id?: boolean;
2199
+ fleetId?: boolean;
2200
+ name?: boolean;
2201
+ type?: boolean;
2202
+ kind?: boolean;
2203
+ scopes?: boolean;
2204
+ note?: boolean;
2205
+ createdAt?: boolean;
2206
+ retiredAt?: boolean;
2207
+ commissionedBy?: boolean;
2208
+ commissionKey?: boolean;
2209
+ commissionRequestHash?: boolean;
2210
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
2211
+ }, ExtArgs["result"]["ship"]>;
2212
+ export type ShipSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2213
+ id?: boolean;
2214
+ fleetId?: boolean;
2215
+ name?: boolean;
2216
+ type?: boolean;
2217
+ kind?: boolean;
2218
+ scopes?: boolean;
2219
+ note?: boolean;
2220
+ createdAt?: boolean;
2221
+ retiredAt?: boolean;
2222
+ commissionedBy?: boolean;
2223
+ commissionKey?: boolean;
2224
+ commissionRequestHash?: boolean;
2225
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
2226
+ }, ExtArgs["result"]["ship"]>;
2227
+ export type ShipSelectScalar = {
2228
+ id?: boolean;
2229
+ fleetId?: boolean;
2230
+ name?: boolean;
2231
+ type?: boolean;
2232
+ kind?: boolean;
2233
+ scopes?: boolean;
2234
+ note?: boolean;
2235
+ createdAt?: boolean;
2236
+ retiredAt?: boolean;
2237
+ commissionedBy?: boolean;
2238
+ commissionKey?: boolean;
2239
+ commissionRequestHash?: boolean;
2240
+ };
2241
+ export type ShipOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "fleetId" | "name" | "type" | "kind" | "scopes" | "note" | "createdAt" | "retiredAt" | "commissionedBy" | "commissionKey" | "commissionRequestHash", ExtArgs["result"]["ship"]>;
2242
+ export type ShipInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2243
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
2244
+ leases?: boolean | Prisma.Ship$leasesArgs<ExtArgs>;
2245
+ credentials?: boolean | Prisma.Ship$credentialsArgs<ExtArgs>;
2246
+ sentMessages?: boolean | Prisma.Ship$sentMessagesArgs<ExtArgs>;
2247
+ addressedMessages?: boolean | Prisma.Ship$addressedMessagesArgs<ExtArgs>;
2248
+ deliveries?: boolean | Prisma.Ship$deliveriesArgs<ExtArgs>;
2249
+ claimedDeliveries?: boolean | Prisma.Ship$claimedDeliveriesArgs<ExtArgs>;
2250
+ consoleSessions?: boolean | Prisma.Ship$consoleSessionsArgs<ExtArgs>;
2251
+ actorOfEvents?: boolean | Prisma.Ship$actorOfEventsArgs<ExtArgs>;
2252
+ events?: boolean | Prisma.Ship$eventsArgs<ExtArgs>;
2253
+ crewRequest?: boolean | Prisma.Ship$crewRequestArgs<ExtArgs>;
2254
+ assignedCrews?: boolean | Prisma.Ship$assignedCrewsArgs<ExtArgs>;
2255
+ _count?: boolean | Prisma.ShipCountOutputTypeDefaultArgs<ExtArgs>;
2256
+ };
2257
+ export type ShipIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2258
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
2259
+ };
2260
+ export type ShipIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2261
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
2262
+ };
2263
+ export type $ShipPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2264
+ name: "Ship";
2265
+ objects: {
2266
+ fleet: Prisma.$FleetPayload<ExtArgs>;
2267
+ leases: Prisma.$LeasePayload<ExtArgs>[];
2268
+ credentials: Prisma.$CredentialPayload<ExtArgs>[];
2269
+ sentMessages: Prisma.$MessagePayload<ExtArgs>[];
2270
+ addressedMessages: Prisma.$MessagePayload<ExtArgs>[];
2271
+ deliveries: Prisma.$DeliveryPayload<ExtArgs>[];
2272
+ claimedDeliveries: Prisma.$DeliveryPayload<ExtArgs>[];
2273
+ consoleSessions: Prisma.$ConsoleSessionPayload<ExtArgs>[];
2274
+ actorOfEvents: Prisma.$EventPayload<ExtArgs>[];
2275
+ events: Prisma.$EventPayload<ExtArgs>[];
2276
+ crewRequest: Prisma.$CrewRequestPayload<ExtArgs> | null;
2277
+ assignedCrews: Prisma.$CrewRequestPayload<ExtArgs>[];
2278
+ };
2279
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
2280
+ id: string;
2281
+ fleetId: string;
2282
+ name: string;
2283
+ type: string;
2284
+ kind: $Enums.ShipKind;
2285
+ scopes: string[];
2286
+ note: string | null;
2287
+ createdAt: Date;
2288
+ retiredAt: Date | null;
2289
+ /**
2290
+ * The ship that commissioned it, its idempotency key and the request's hash; null for argo.
2291
+ */
2292
+ commissionedBy: string | null;
2293
+ commissionKey: string | null;
2294
+ commissionRequestHash: string | null;
2295
+ }, ExtArgs["result"]["ship"]>;
2296
+ composites: {};
2297
+ };
2298
+ export type ShipGetPayload<S extends boolean | null | undefined | ShipDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ShipPayload, S>;
2299
+ export type ShipCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ShipFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
2300
+ select?: ShipCountAggregateInputType | true;
2301
+ };
2302
+ export interface ShipDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
2303
+ [K: symbol]: {
2304
+ types: Prisma.TypeMap<ExtArgs>['model']['Ship'];
2305
+ meta: {
2306
+ name: 'Ship';
2307
+ };
2308
+ };
2309
+ /**
2310
+ * Find zero or one Ship that matches the filter.
2311
+ * @param {ShipFindUniqueArgs} args - Arguments to find a Ship
2312
+ * @example
2313
+ * // Get one Ship
2314
+ * const ship = await prisma.ship.findUnique({
2315
+ * where: {
2316
+ * // ... provide filter here
2317
+ * }
2318
+ * })
2319
+ */
2320
+ findUnique<T extends ShipFindUniqueArgs>(args: Prisma.SelectSubset<T, ShipFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2321
+ /**
2322
+ * Find one Ship that matches the filter or throw an error with `error.code='P2025'`
2323
+ * if no matches were found.
2324
+ * @param {ShipFindUniqueOrThrowArgs} args - Arguments to find a Ship
2325
+ * @example
2326
+ * // Get one Ship
2327
+ * const ship = await prisma.ship.findUniqueOrThrow({
2328
+ * where: {
2329
+ * // ... provide filter here
2330
+ * }
2331
+ * })
2332
+ */
2333
+ findUniqueOrThrow<T extends ShipFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ShipFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2334
+ /**
2335
+ * Find the first Ship that matches the filter.
2336
+ * Note, that providing `undefined` is treated as the value not being there.
2337
+ * Read more here: https://pris.ly/d/null-undefined
2338
+ * @param {ShipFindFirstArgs} args - Arguments to find a Ship
2339
+ * @example
2340
+ * // Get one Ship
2341
+ * const ship = await prisma.ship.findFirst({
2342
+ * where: {
2343
+ * // ... provide filter here
2344
+ * }
2345
+ * })
2346
+ */
2347
+ findFirst<T extends ShipFindFirstArgs>(args?: Prisma.SelectSubset<T, ShipFindFirstArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2348
+ /**
2349
+ * Find the first Ship that matches the filter or
2350
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
2351
+ * Note, that providing `undefined` is treated as the value not being there.
2352
+ * Read more here: https://pris.ly/d/null-undefined
2353
+ * @param {ShipFindFirstOrThrowArgs} args - Arguments to find a Ship
2354
+ * @example
2355
+ * // Get one Ship
2356
+ * const ship = await prisma.ship.findFirstOrThrow({
2357
+ * where: {
2358
+ * // ... provide filter here
2359
+ * }
2360
+ * })
2361
+ */
2362
+ findFirstOrThrow<T extends ShipFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ShipFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2363
+ /**
2364
+ * Find zero or more Ships that matches the filter.
2365
+ * Note, that providing `undefined` is treated as the value not being there.
2366
+ * Read more here: https://pris.ly/d/null-undefined
2367
+ * @param {ShipFindManyArgs} args - Arguments to filter and select certain fields only.
2368
+ * @example
2369
+ * // Get all Ships
2370
+ * const ships = await prisma.ship.findMany()
2371
+ *
2372
+ * // Get first 10 Ships
2373
+ * const ships = await prisma.ship.findMany({ take: 10 })
2374
+ *
2375
+ * // Only select the `id`
2376
+ * const shipWithIdOnly = await prisma.ship.findMany({ select: { id: true } })
2377
+ *
2378
+ */
2379
+ findMany<T extends ShipFindManyArgs>(args?: Prisma.SelectSubset<T, ShipFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
2380
+ /**
2381
+ * Create a Ship.
2382
+ * @param {ShipCreateArgs} args - Arguments to create a Ship.
2383
+ * @example
2384
+ * // Create one Ship
2385
+ * const Ship = await prisma.ship.create({
2386
+ * data: {
2387
+ * // ... data to create a Ship
2388
+ * }
2389
+ * })
2390
+ *
2391
+ */
2392
+ create<T extends ShipCreateArgs>(args: Prisma.SelectSubset<T, ShipCreateArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2393
+ /**
2394
+ * Create many Ships.
2395
+ * @param {ShipCreateManyArgs} args - Arguments to create many Ships.
2396
+ * @example
2397
+ * // Create many Ships
2398
+ * const ship = await prisma.ship.createMany({
2399
+ * data: [
2400
+ * // ... provide data here
2401
+ * ]
2402
+ * })
2403
+ *
2404
+ */
2405
+ createMany<T extends ShipCreateManyArgs>(args?: Prisma.SelectSubset<T, ShipCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2406
+ /**
2407
+ * Create many Ships and returns the data saved in the database.
2408
+ * @param {ShipCreateManyAndReturnArgs} args - Arguments to create many Ships.
2409
+ * @example
2410
+ * // Create many Ships
2411
+ * const ship = await prisma.ship.createManyAndReturn({
2412
+ * data: [
2413
+ * // ... provide data here
2414
+ * ]
2415
+ * })
2416
+ *
2417
+ * // Create many Ships and only return the `id`
2418
+ * const shipWithIdOnly = await prisma.ship.createManyAndReturn({
2419
+ * select: { id: true },
2420
+ * data: [
2421
+ * // ... provide data here
2422
+ * ]
2423
+ * })
2424
+ * Note, that providing `undefined` is treated as the value not being there.
2425
+ * Read more here: https://pris.ly/d/null-undefined
2426
+ *
2427
+ */
2428
+ createManyAndReturn<T extends ShipCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ShipCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
2429
+ /**
2430
+ * Delete a Ship.
2431
+ * @param {ShipDeleteArgs} args - Arguments to delete one Ship.
2432
+ * @example
2433
+ * // Delete one Ship
2434
+ * const Ship = await prisma.ship.delete({
2435
+ * where: {
2436
+ * // ... filter to delete one Ship
2437
+ * }
2438
+ * })
2439
+ *
2440
+ */
2441
+ delete<T extends ShipDeleteArgs>(args: Prisma.SelectSubset<T, ShipDeleteArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2442
+ /**
2443
+ * Update one Ship.
2444
+ * @param {ShipUpdateArgs} args - Arguments to update one Ship.
2445
+ * @example
2446
+ * // Update one Ship
2447
+ * const ship = await prisma.ship.update({
2448
+ * where: {
2449
+ * // ... provide filter here
2450
+ * },
2451
+ * data: {
2452
+ * // ... provide data here
2453
+ * }
2454
+ * })
2455
+ *
2456
+ */
2457
+ update<T extends ShipUpdateArgs>(args: Prisma.SelectSubset<T, ShipUpdateArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2458
+ /**
2459
+ * Delete zero or more Ships.
2460
+ * @param {ShipDeleteManyArgs} args - Arguments to filter Ships to delete.
2461
+ * @example
2462
+ * // Delete a few Ships
2463
+ * const { count } = await prisma.ship.deleteMany({
2464
+ * where: {
2465
+ * // ... provide filter here
2466
+ * }
2467
+ * })
2468
+ *
2469
+ */
2470
+ deleteMany<T extends ShipDeleteManyArgs>(args?: Prisma.SelectSubset<T, ShipDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2471
+ /**
2472
+ * Update zero or more Ships.
2473
+ * Note, that providing `undefined` is treated as the value not being there.
2474
+ * Read more here: https://pris.ly/d/null-undefined
2475
+ * @param {ShipUpdateManyArgs} args - Arguments to update one or more rows.
2476
+ * @example
2477
+ * // Update many Ships
2478
+ * const ship = await prisma.ship.updateMany({
2479
+ * where: {
2480
+ * // ... provide filter here
2481
+ * },
2482
+ * data: {
2483
+ * // ... provide data here
2484
+ * }
2485
+ * })
2486
+ *
2487
+ */
2488
+ updateMany<T extends ShipUpdateManyArgs>(args: Prisma.SelectSubset<T, ShipUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2489
+ /**
2490
+ * Update zero or more Ships and returns the data updated in the database.
2491
+ * @param {ShipUpdateManyAndReturnArgs} args - Arguments to update many Ships.
2492
+ * @example
2493
+ * // Update many Ships
2494
+ * const ship = await prisma.ship.updateManyAndReturn({
2495
+ * where: {
2496
+ * // ... provide filter here
2497
+ * },
2498
+ * data: [
2499
+ * // ... provide data here
2500
+ * ]
2501
+ * })
2502
+ *
2503
+ * // Update zero or more Ships and only return the `id`
2504
+ * const shipWithIdOnly = await prisma.ship.updateManyAndReturn({
2505
+ * select: { id: true },
2506
+ * where: {
2507
+ * // ... provide filter here
2508
+ * },
2509
+ * data: [
2510
+ * // ... provide data here
2511
+ * ]
2512
+ * })
2513
+ * Note, that providing `undefined` is treated as the value not being there.
2514
+ * Read more here: https://pris.ly/d/null-undefined
2515
+ *
2516
+ */
2517
+ updateManyAndReturn<T extends ShipUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ShipUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
2518
+ /**
2519
+ * Create or update one Ship.
2520
+ * @param {ShipUpsertArgs} args - Arguments to update or create a Ship.
2521
+ * @example
2522
+ * // Update or create a Ship
2523
+ * const ship = await prisma.ship.upsert({
2524
+ * create: {
2525
+ * // ... data to create a Ship
2526
+ * },
2527
+ * update: {
2528
+ * // ... in case it already exists, update
2529
+ * },
2530
+ * where: {
2531
+ * // ... the filter for the Ship we want to update
2532
+ * }
2533
+ * })
2534
+ */
2535
+ upsert<T extends ShipUpsertArgs>(args: Prisma.SelectSubset<T, ShipUpsertArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2536
+ /**
2537
+ * Count the number of Ships.
2538
+ * Note, that providing `undefined` is treated as the value not being there.
2539
+ * Read more here: https://pris.ly/d/null-undefined
2540
+ * @param {ShipCountArgs} args - Arguments to filter Ships to count.
2541
+ * @example
2542
+ * // Count the number of Ships
2543
+ * const count = await prisma.ship.count({
2544
+ * where: {
2545
+ * // ... the filter for the Ships we want to count
2546
+ * }
2547
+ * })
2548
+ **/
2549
+ count<T extends ShipCountArgs>(args?: Prisma.Subset<T, ShipCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ShipCountAggregateOutputType> : number>;
2550
+ /**
2551
+ * Allows you to perform aggregations operations on a Ship.
2552
+ * Note, that providing `undefined` is treated as the value not being there.
2553
+ * Read more here: https://pris.ly/d/null-undefined
2554
+ * @param {ShipAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
2555
+ * @example
2556
+ * // Ordered by age ascending
2557
+ * // Where email contains prisma.io
2558
+ * // Limited to the 10 users
2559
+ * const aggregations = await prisma.user.aggregate({
2560
+ * _avg: {
2561
+ * age: true,
2562
+ * },
2563
+ * where: {
2564
+ * email: {
2565
+ * contains: "prisma.io",
2566
+ * },
2567
+ * },
2568
+ * orderBy: {
2569
+ * age: "asc",
2570
+ * },
2571
+ * take: 10,
2572
+ * })
2573
+ **/
2574
+ aggregate<T extends ShipAggregateArgs>(args: Prisma.Subset<T, ShipAggregateArgs>): Prisma.PrismaPromise<GetShipAggregateType<T>>;
2575
+ /**
2576
+ * Group by Ship.
2577
+ * Note, that providing `undefined` is treated as the value not being there.
2578
+ * Read more here: https://pris.ly/d/null-undefined
2579
+ * @param {ShipGroupByArgs} args - Group by arguments.
2580
+ * @example
2581
+ * // Group by city, order by createdAt, get count
2582
+ * const result = await prisma.user.groupBy({
2583
+ * by: ['city', 'createdAt'],
2584
+ * orderBy: {
2585
+ * createdAt: true
2586
+ * },
2587
+ * _count: {
2588
+ * _all: true
2589
+ * },
2590
+ * })
2591
+ *
2592
+ **/
2593
+ groupBy<T extends ShipGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
2594
+ orderBy: ShipGroupByArgs['orderBy'];
2595
+ } : {
2596
+ orderBy?: ShipGroupByArgs['orderBy'];
2597
+ }, 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 ? {
2598
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
2599
+ Error,
2600
+ 'Field ',
2601
+ P,
2602
+ ` in "having" needs to be provided in "by"`
2603
+ ];
2604
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
2605
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2606
+ }[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 ? {} : {
2607
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2608
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
2609
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2610
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ShipGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShipGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
2611
+ /**
2612
+ * Fields of the Ship model
2613
+ */
2614
+ readonly fields: ShipFieldRefs;
2615
+ }
2616
+ /**
2617
+ * The delegate class that acts as a "Promise-like" for Ship.
2618
+ * Why is this prefixed with `Prisma__`?
2619
+ * Because we want to prevent naming conflicts as mentioned in
2620
+ * https://github.com/prisma/prisma-client-js/issues/707
2621
+ */
2622
+ export interface Prisma__ShipClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2623
+ readonly [Symbol.toStringTag]: "PrismaPromise";
2624
+ 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>;
2625
+ leases<T extends Prisma.Ship$leasesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$leasesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2626
+ credentials<T extends Prisma.Ship$credentialsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$credentialsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2627
+ sentMessages<T extends Prisma.Ship$sentMessagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$sentMessagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2628
+ addressedMessages<T extends Prisma.Ship$addressedMessagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$addressedMessagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2629
+ deliveries<T extends Prisma.Ship$deliveriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$deliveriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeliveryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2630
+ claimedDeliveries<T extends Prisma.Ship$claimedDeliveriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$claimedDeliveriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeliveryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2631
+ consoleSessions<T extends Prisma.Ship$consoleSessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$consoleSessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2632
+ actorOfEvents<T extends Prisma.Ship$actorOfEventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$actorOfEventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2633
+ events<T extends Prisma.Ship$eventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$eventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2634
+ crewRequest<T extends Prisma.Ship$crewRequestArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$crewRequestArgs<ExtArgs>>): Prisma.Prisma__CrewRequestClient<runtime.Types.Result.GetResult<Prisma.$CrewRequestPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2635
+ assignedCrews<T extends Prisma.Ship$assignedCrewsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Ship$assignedCrewsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CrewRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2636
+ /**
2637
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
2638
+ * @param onfulfilled The callback to execute when the Promise is resolved.
2639
+ * @param onrejected The callback to execute when the Promise is rejected.
2640
+ * @returns A Promise for the completion of which ever callback is executed.
2641
+ */
2642
+ 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>;
2643
+ /**
2644
+ * Attaches a callback for only the rejection of the Promise.
2645
+ * @param onrejected The callback to execute when the Promise is rejected.
2646
+ * @returns A Promise for the completion of the callback.
2647
+ */
2648
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
2649
+ /**
2650
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2651
+ * resolved value cannot be modified from the callback.
2652
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2653
+ * @returns A Promise for the completion of the callback.
2654
+ */
2655
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
2656
+ }
2657
+ /**
2658
+ * Fields of the Ship model
2659
+ */
2660
+ export interface ShipFieldRefs {
2661
+ readonly id: Prisma.FieldRef<"Ship", 'String'>;
2662
+ readonly fleetId: Prisma.FieldRef<"Ship", 'String'>;
2663
+ readonly name: Prisma.FieldRef<"Ship", 'String'>;
2664
+ readonly type: Prisma.FieldRef<"Ship", 'String'>;
2665
+ readonly kind: Prisma.FieldRef<"Ship", 'ShipKind'>;
2666
+ readonly scopes: Prisma.FieldRef<"Ship", 'String[]'>;
2667
+ readonly note: Prisma.FieldRef<"Ship", 'String'>;
2668
+ readonly createdAt: Prisma.FieldRef<"Ship", 'DateTime'>;
2669
+ readonly retiredAt: Prisma.FieldRef<"Ship", 'DateTime'>;
2670
+ readonly commissionedBy: Prisma.FieldRef<"Ship", 'String'>;
2671
+ readonly commissionKey: Prisma.FieldRef<"Ship", 'String'>;
2672
+ readonly commissionRequestHash: Prisma.FieldRef<"Ship", 'String'>;
2673
+ }
2674
+ /**
2675
+ * Ship findUnique
2676
+ */
2677
+ export type ShipFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2678
+ /**
2679
+ * Select specific fields to fetch from the Ship
2680
+ */
2681
+ select?: Prisma.ShipSelect<ExtArgs> | null;
2682
+ /**
2683
+ * Omit specific fields from the Ship
2684
+ */
2685
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
2686
+ /**
2687
+ * Choose, which related nodes to fetch as well
2688
+ */
2689
+ include?: Prisma.ShipInclude<ExtArgs> | null;
2690
+ /**
2691
+ * Filter, which Ship to fetch.
2692
+ */
2693
+ where: Prisma.ShipWhereUniqueInput;
2694
+ };
2695
+ /**
2696
+ * Ship findUniqueOrThrow
2697
+ */
2698
+ export type ShipFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2699
+ /**
2700
+ * Select specific fields to fetch from the Ship
2701
+ */
2702
+ select?: Prisma.ShipSelect<ExtArgs> | null;
2703
+ /**
2704
+ * Omit specific fields from the Ship
2705
+ */
2706
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
2707
+ /**
2708
+ * Choose, which related nodes to fetch as well
2709
+ */
2710
+ include?: Prisma.ShipInclude<ExtArgs> | null;
2711
+ /**
2712
+ * Filter, which Ship to fetch.
2713
+ */
2714
+ where: Prisma.ShipWhereUniqueInput;
2715
+ };
2716
+ /**
2717
+ * Ship findFirst
2718
+ */
2719
+ export type ShipFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2720
+ /**
2721
+ * Select specific fields to fetch from the Ship
2722
+ */
2723
+ select?: Prisma.ShipSelect<ExtArgs> | null;
2724
+ /**
2725
+ * Omit specific fields from the Ship
2726
+ */
2727
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
2728
+ /**
2729
+ * Choose, which related nodes to fetch as well
2730
+ */
2731
+ include?: Prisma.ShipInclude<ExtArgs> | null;
2732
+ /**
2733
+ * Filter, which Ship to fetch.
2734
+ */
2735
+ where?: Prisma.ShipWhereInput;
2736
+ /**
2737
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2738
+ *
2739
+ * Determine the order of Ships to fetch.
2740
+ */
2741
+ orderBy?: Prisma.ShipOrderByWithRelationInput | Prisma.ShipOrderByWithRelationInput[];
2742
+ /**
2743
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2744
+ *
2745
+ * Sets the position for searching for Ships.
2746
+ */
2747
+ cursor?: Prisma.ShipWhereUniqueInput;
2748
+ /**
2749
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2750
+ *
2751
+ * Take `±n` Ships from the position of the cursor.
2752
+ */
2753
+ take?: number;
2754
+ /**
2755
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2756
+ *
2757
+ * Skip the first `n` Ships.
2758
+ */
2759
+ skip?: number;
2760
+ /**
2761
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2762
+ *
2763
+ * Filter by unique combinations of Ships.
2764
+ */
2765
+ distinct?: Prisma.ShipScalarFieldEnum | Prisma.ShipScalarFieldEnum[];
2766
+ };
2767
+ /**
2768
+ * Ship findFirstOrThrow
2769
+ */
2770
+ export type ShipFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2771
+ /**
2772
+ * Select specific fields to fetch from the Ship
2773
+ */
2774
+ select?: Prisma.ShipSelect<ExtArgs> | null;
2775
+ /**
2776
+ * Omit specific fields from the Ship
2777
+ */
2778
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
2779
+ /**
2780
+ * Choose, which related nodes to fetch as well
2781
+ */
2782
+ include?: Prisma.ShipInclude<ExtArgs> | null;
2783
+ /**
2784
+ * Filter, which Ship to fetch.
2785
+ */
2786
+ where?: Prisma.ShipWhereInput;
2787
+ /**
2788
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2789
+ *
2790
+ * Determine the order of Ships to fetch.
2791
+ */
2792
+ orderBy?: Prisma.ShipOrderByWithRelationInput | Prisma.ShipOrderByWithRelationInput[];
2793
+ /**
2794
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2795
+ *
2796
+ * Sets the position for searching for Ships.
2797
+ */
2798
+ cursor?: Prisma.ShipWhereUniqueInput;
2799
+ /**
2800
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2801
+ *
2802
+ * Take `±n` Ships from the position of the cursor.
2803
+ */
2804
+ take?: number;
2805
+ /**
2806
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2807
+ *
2808
+ * Skip the first `n` Ships.
2809
+ */
2810
+ skip?: number;
2811
+ /**
2812
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2813
+ *
2814
+ * Filter by unique combinations of Ships.
2815
+ */
2816
+ distinct?: Prisma.ShipScalarFieldEnum | Prisma.ShipScalarFieldEnum[];
2817
+ };
2818
+ /**
2819
+ * Ship findMany
2820
+ */
2821
+ export type ShipFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2822
+ /**
2823
+ * Select specific fields to fetch from the Ship
2824
+ */
2825
+ select?: Prisma.ShipSelect<ExtArgs> | null;
2826
+ /**
2827
+ * Omit specific fields from the Ship
2828
+ */
2829
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
2830
+ /**
2831
+ * Choose, which related nodes to fetch as well
2832
+ */
2833
+ include?: Prisma.ShipInclude<ExtArgs> | null;
2834
+ /**
2835
+ * Filter, which Ships to fetch.
2836
+ */
2837
+ where?: Prisma.ShipWhereInput;
2838
+ /**
2839
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2840
+ *
2841
+ * Determine the order of Ships to fetch.
2842
+ */
2843
+ orderBy?: Prisma.ShipOrderByWithRelationInput | Prisma.ShipOrderByWithRelationInput[];
2844
+ /**
2845
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2846
+ *
2847
+ * Sets the position for listing Ships.
2848
+ */
2849
+ cursor?: Prisma.ShipWhereUniqueInput;
2850
+ /**
2851
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2852
+ *
2853
+ * Take `±n` Ships from the position of the cursor.
2854
+ */
2855
+ take?: number;
2856
+ /**
2857
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2858
+ *
2859
+ * Skip the first `n` Ships.
2860
+ */
2861
+ skip?: number;
2862
+ /**
2863
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2864
+ *
2865
+ * Filter by unique combinations of Ships.
2866
+ */
2867
+ distinct?: Prisma.ShipScalarFieldEnum | Prisma.ShipScalarFieldEnum[];
2868
+ };
2869
+ /**
2870
+ * Ship create
2871
+ */
2872
+ export type ShipCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2873
+ /**
2874
+ * Select specific fields to fetch from the Ship
2875
+ */
2876
+ select?: Prisma.ShipSelect<ExtArgs> | null;
2877
+ /**
2878
+ * Omit specific fields from the Ship
2879
+ */
2880
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
2881
+ /**
2882
+ * Choose, which related nodes to fetch as well
2883
+ */
2884
+ include?: Prisma.ShipInclude<ExtArgs> | null;
2885
+ /**
2886
+ * The data needed to create a Ship.
2887
+ */
2888
+ data: Prisma.XOR<Prisma.ShipCreateInput, Prisma.ShipUncheckedCreateInput>;
2889
+ };
2890
+ /**
2891
+ * Ship createMany
2892
+ */
2893
+ export type ShipCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2894
+ /**
2895
+ * The data used to create many Ships.
2896
+ */
2897
+ data: Prisma.ShipCreateManyInput | Prisma.ShipCreateManyInput[];
2898
+ skipDuplicates?: boolean;
2899
+ };
2900
+ /**
2901
+ * Ship createManyAndReturn
2902
+ */
2903
+ export type ShipCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2904
+ /**
2905
+ * Select specific fields to fetch from the Ship
2906
+ */
2907
+ select?: Prisma.ShipSelectCreateManyAndReturn<ExtArgs> | null;
2908
+ /**
2909
+ * Omit specific fields from the Ship
2910
+ */
2911
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
2912
+ /**
2913
+ * The data used to create many Ships.
2914
+ */
2915
+ data: Prisma.ShipCreateManyInput | Prisma.ShipCreateManyInput[];
2916
+ skipDuplicates?: boolean;
2917
+ /**
2918
+ * Choose, which related nodes to fetch as well
2919
+ */
2920
+ include?: Prisma.ShipIncludeCreateManyAndReturn<ExtArgs> | null;
2921
+ };
2922
+ /**
2923
+ * Ship update
2924
+ */
2925
+ export type ShipUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2926
+ /**
2927
+ * Select specific fields to fetch from the Ship
2928
+ */
2929
+ select?: Prisma.ShipSelect<ExtArgs> | null;
2930
+ /**
2931
+ * Omit specific fields from the Ship
2932
+ */
2933
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
2934
+ /**
2935
+ * Choose, which related nodes to fetch as well
2936
+ */
2937
+ include?: Prisma.ShipInclude<ExtArgs> | null;
2938
+ /**
2939
+ * The data needed to update a Ship.
2940
+ */
2941
+ data: Prisma.XOR<Prisma.ShipUpdateInput, Prisma.ShipUncheckedUpdateInput>;
2942
+ /**
2943
+ * Choose, which Ship to update.
2944
+ */
2945
+ where: Prisma.ShipWhereUniqueInput;
2946
+ };
2947
+ /**
2948
+ * Ship updateMany
2949
+ */
2950
+ export type ShipUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2951
+ /**
2952
+ * The data used to update Ships.
2953
+ */
2954
+ data: Prisma.XOR<Prisma.ShipUpdateManyMutationInput, Prisma.ShipUncheckedUpdateManyInput>;
2955
+ /**
2956
+ * Filter which Ships to update
2957
+ */
2958
+ where?: Prisma.ShipWhereInput;
2959
+ /**
2960
+ * Limit how many Ships to update.
2961
+ */
2962
+ limit?: number;
2963
+ };
2964
+ /**
2965
+ * Ship updateManyAndReturn
2966
+ */
2967
+ export type ShipUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2968
+ /**
2969
+ * Select specific fields to fetch from the Ship
2970
+ */
2971
+ select?: Prisma.ShipSelectUpdateManyAndReturn<ExtArgs> | null;
2972
+ /**
2973
+ * Omit specific fields from the Ship
2974
+ */
2975
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
2976
+ /**
2977
+ * The data used to update Ships.
2978
+ */
2979
+ data: Prisma.XOR<Prisma.ShipUpdateManyMutationInput, Prisma.ShipUncheckedUpdateManyInput>;
2980
+ /**
2981
+ * Filter which Ships to update
2982
+ */
2983
+ where?: Prisma.ShipWhereInput;
2984
+ /**
2985
+ * Limit how many Ships to update.
2986
+ */
2987
+ limit?: number;
2988
+ /**
2989
+ * Choose, which related nodes to fetch as well
2990
+ */
2991
+ include?: Prisma.ShipIncludeUpdateManyAndReturn<ExtArgs> | null;
2992
+ };
2993
+ /**
2994
+ * Ship upsert
2995
+ */
2996
+ export type ShipUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2997
+ /**
2998
+ * Select specific fields to fetch from the Ship
2999
+ */
3000
+ select?: Prisma.ShipSelect<ExtArgs> | null;
3001
+ /**
3002
+ * Omit specific fields from the Ship
3003
+ */
3004
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
3005
+ /**
3006
+ * Choose, which related nodes to fetch as well
3007
+ */
3008
+ include?: Prisma.ShipInclude<ExtArgs> | null;
3009
+ /**
3010
+ * The filter to search for the Ship to update in case it exists.
3011
+ */
3012
+ where: Prisma.ShipWhereUniqueInput;
3013
+ /**
3014
+ * In case the Ship found by the `where` argument doesn't exist, create a new Ship with this data.
3015
+ */
3016
+ create: Prisma.XOR<Prisma.ShipCreateInput, Prisma.ShipUncheckedCreateInput>;
3017
+ /**
3018
+ * In case the Ship was found with the provided `where` argument, update it with this data.
3019
+ */
3020
+ update: Prisma.XOR<Prisma.ShipUpdateInput, Prisma.ShipUncheckedUpdateInput>;
3021
+ };
3022
+ /**
3023
+ * Ship delete
3024
+ */
3025
+ export type ShipDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3026
+ /**
3027
+ * Select specific fields to fetch from the Ship
3028
+ */
3029
+ select?: Prisma.ShipSelect<ExtArgs> | null;
3030
+ /**
3031
+ * Omit specific fields from the Ship
3032
+ */
3033
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
3034
+ /**
3035
+ * Choose, which related nodes to fetch as well
3036
+ */
3037
+ include?: Prisma.ShipInclude<ExtArgs> | null;
3038
+ /**
3039
+ * Filter which Ship to delete.
3040
+ */
3041
+ where: Prisma.ShipWhereUniqueInput;
3042
+ };
3043
+ /**
3044
+ * Ship deleteMany
3045
+ */
3046
+ export type ShipDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3047
+ /**
3048
+ * Filter which Ships to delete
3049
+ */
3050
+ where?: Prisma.ShipWhereInput;
3051
+ /**
3052
+ * Limit how many Ships to delete.
3053
+ */
3054
+ limit?: number;
3055
+ };
3056
+ /**
3057
+ * Ship.leases
3058
+ */
3059
+ export type Ship$leasesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3060
+ /**
3061
+ * Select specific fields to fetch from the Lease
3062
+ */
3063
+ select?: Prisma.LeaseSelect<ExtArgs> | null;
3064
+ /**
3065
+ * Omit specific fields from the Lease
3066
+ */
3067
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
3068
+ /**
3069
+ * Choose, which related nodes to fetch as well
3070
+ */
3071
+ include?: Prisma.LeaseInclude<ExtArgs> | null;
3072
+ where?: Prisma.LeaseWhereInput;
3073
+ orderBy?: Prisma.LeaseOrderByWithRelationInput | Prisma.LeaseOrderByWithRelationInput[];
3074
+ cursor?: Prisma.LeaseWhereUniqueInput;
3075
+ take?: number;
3076
+ skip?: number;
3077
+ distinct?: Prisma.LeaseScalarFieldEnum | Prisma.LeaseScalarFieldEnum[];
3078
+ };
3079
+ /**
3080
+ * Ship.credentials
3081
+ */
3082
+ export type Ship$credentialsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3083
+ /**
3084
+ * Select specific fields to fetch from the Credential
3085
+ */
3086
+ select?: Prisma.CredentialSelect<ExtArgs> | null;
3087
+ /**
3088
+ * Omit specific fields from the Credential
3089
+ */
3090
+ omit?: Prisma.CredentialOmit<ExtArgs> | null;
3091
+ /**
3092
+ * Choose, which related nodes to fetch as well
3093
+ */
3094
+ include?: Prisma.CredentialInclude<ExtArgs> | null;
3095
+ where?: Prisma.CredentialWhereInput;
3096
+ orderBy?: Prisma.CredentialOrderByWithRelationInput | Prisma.CredentialOrderByWithRelationInput[];
3097
+ cursor?: Prisma.CredentialWhereUniqueInput;
3098
+ take?: number;
3099
+ skip?: number;
3100
+ distinct?: Prisma.CredentialScalarFieldEnum | Prisma.CredentialScalarFieldEnum[];
3101
+ };
3102
+ /**
3103
+ * Ship.sentMessages
3104
+ */
3105
+ export type Ship$sentMessagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3106
+ /**
3107
+ * Select specific fields to fetch from the Message
3108
+ */
3109
+ select?: Prisma.MessageSelect<ExtArgs> | null;
3110
+ /**
3111
+ * Omit specific fields from the Message
3112
+ */
3113
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
3114
+ /**
3115
+ * Choose, which related nodes to fetch as well
3116
+ */
3117
+ include?: Prisma.MessageInclude<ExtArgs> | null;
3118
+ where?: Prisma.MessageWhereInput;
3119
+ orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[];
3120
+ cursor?: Prisma.MessageWhereUniqueInput;
3121
+ take?: number;
3122
+ skip?: number;
3123
+ distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[];
3124
+ };
3125
+ /**
3126
+ * Ship.addressedMessages
3127
+ */
3128
+ export type Ship$addressedMessagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3129
+ /**
3130
+ * Select specific fields to fetch from the Message
3131
+ */
3132
+ select?: Prisma.MessageSelect<ExtArgs> | null;
3133
+ /**
3134
+ * Omit specific fields from the Message
3135
+ */
3136
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
3137
+ /**
3138
+ * Choose, which related nodes to fetch as well
3139
+ */
3140
+ include?: Prisma.MessageInclude<ExtArgs> | null;
3141
+ where?: Prisma.MessageWhereInput;
3142
+ orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[];
3143
+ cursor?: Prisma.MessageWhereUniqueInput;
3144
+ take?: number;
3145
+ skip?: number;
3146
+ distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[];
3147
+ };
3148
+ /**
3149
+ * Ship.deliveries
3150
+ */
3151
+ export type Ship$deliveriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3152
+ /**
3153
+ * Select specific fields to fetch from the Delivery
3154
+ */
3155
+ select?: Prisma.DeliverySelect<ExtArgs> | null;
3156
+ /**
3157
+ * Omit specific fields from the Delivery
3158
+ */
3159
+ omit?: Prisma.DeliveryOmit<ExtArgs> | null;
3160
+ /**
3161
+ * Choose, which related nodes to fetch as well
3162
+ */
3163
+ include?: Prisma.DeliveryInclude<ExtArgs> | null;
3164
+ where?: Prisma.DeliveryWhereInput;
3165
+ orderBy?: Prisma.DeliveryOrderByWithRelationInput | Prisma.DeliveryOrderByWithRelationInput[];
3166
+ cursor?: Prisma.DeliveryWhereUniqueInput;
3167
+ take?: number;
3168
+ skip?: number;
3169
+ distinct?: Prisma.DeliveryScalarFieldEnum | Prisma.DeliveryScalarFieldEnum[];
3170
+ };
3171
+ /**
3172
+ * Ship.claimedDeliveries
3173
+ */
3174
+ export type Ship$claimedDeliveriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3175
+ /**
3176
+ * Select specific fields to fetch from the Delivery
3177
+ */
3178
+ select?: Prisma.DeliverySelect<ExtArgs> | null;
3179
+ /**
3180
+ * Omit specific fields from the Delivery
3181
+ */
3182
+ omit?: Prisma.DeliveryOmit<ExtArgs> | null;
3183
+ /**
3184
+ * Choose, which related nodes to fetch as well
3185
+ */
3186
+ include?: Prisma.DeliveryInclude<ExtArgs> | null;
3187
+ where?: Prisma.DeliveryWhereInput;
3188
+ orderBy?: Prisma.DeliveryOrderByWithRelationInput | Prisma.DeliveryOrderByWithRelationInput[];
3189
+ cursor?: Prisma.DeliveryWhereUniqueInput;
3190
+ take?: number;
3191
+ skip?: number;
3192
+ distinct?: Prisma.DeliveryScalarFieldEnum | Prisma.DeliveryScalarFieldEnum[];
3193
+ };
3194
+ /**
3195
+ * Ship.consoleSessions
3196
+ */
3197
+ export type Ship$consoleSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3198
+ /**
3199
+ * Select specific fields to fetch from the ConsoleSession
3200
+ */
3201
+ select?: Prisma.ConsoleSessionSelect<ExtArgs> | null;
3202
+ /**
3203
+ * Omit specific fields from the ConsoleSession
3204
+ */
3205
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
3206
+ /**
3207
+ * Choose, which related nodes to fetch as well
3208
+ */
3209
+ include?: Prisma.ConsoleSessionInclude<ExtArgs> | null;
3210
+ where?: Prisma.ConsoleSessionWhereInput;
3211
+ orderBy?: Prisma.ConsoleSessionOrderByWithRelationInput | Prisma.ConsoleSessionOrderByWithRelationInput[];
3212
+ cursor?: Prisma.ConsoleSessionWhereUniqueInput;
3213
+ take?: number;
3214
+ skip?: number;
3215
+ distinct?: Prisma.ConsoleSessionScalarFieldEnum | Prisma.ConsoleSessionScalarFieldEnum[];
3216
+ };
3217
+ /**
3218
+ * Ship.actorOfEvents
3219
+ */
3220
+ export type Ship$actorOfEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3221
+ /**
3222
+ * Select specific fields to fetch from the Event
3223
+ */
3224
+ select?: Prisma.EventSelect<ExtArgs> | null;
3225
+ /**
3226
+ * Omit specific fields from the Event
3227
+ */
3228
+ omit?: Prisma.EventOmit<ExtArgs> | null;
3229
+ /**
3230
+ * Choose, which related nodes to fetch as well
3231
+ */
3232
+ include?: Prisma.EventInclude<ExtArgs> | null;
3233
+ where?: Prisma.EventWhereInput;
3234
+ orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[];
3235
+ cursor?: Prisma.EventWhereUniqueInput;
3236
+ take?: number;
3237
+ skip?: number;
3238
+ distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[];
3239
+ };
3240
+ /**
3241
+ * Ship.events
3242
+ */
3243
+ export type Ship$eventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3244
+ /**
3245
+ * Select specific fields to fetch from the Event
3246
+ */
3247
+ select?: Prisma.EventSelect<ExtArgs> | null;
3248
+ /**
3249
+ * Omit specific fields from the Event
3250
+ */
3251
+ omit?: Prisma.EventOmit<ExtArgs> | null;
3252
+ /**
3253
+ * Choose, which related nodes to fetch as well
3254
+ */
3255
+ include?: Prisma.EventInclude<ExtArgs> | null;
3256
+ where?: Prisma.EventWhereInput;
3257
+ orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[];
3258
+ cursor?: Prisma.EventWhereUniqueInput;
3259
+ take?: number;
3260
+ skip?: number;
3261
+ distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[];
3262
+ };
3263
+ /**
3264
+ * Ship.crewRequest
3265
+ */
3266
+ export type Ship$crewRequestArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3267
+ /**
3268
+ * Select specific fields to fetch from the CrewRequest
3269
+ */
3270
+ select?: Prisma.CrewRequestSelect<ExtArgs> | null;
3271
+ /**
3272
+ * Omit specific fields from the CrewRequest
3273
+ */
3274
+ omit?: Prisma.CrewRequestOmit<ExtArgs> | null;
3275
+ /**
3276
+ * Choose, which related nodes to fetch as well
3277
+ */
3278
+ include?: Prisma.CrewRequestInclude<ExtArgs> | null;
3279
+ where?: Prisma.CrewRequestWhereInput;
3280
+ };
3281
+ /**
3282
+ * Ship.assignedCrews
3283
+ */
3284
+ export type Ship$assignedCrewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3285
+ /**
3286
+ * Select specific fields to fetch from the CrewRequest
3287
+ */
3288
+ select?: Prisma.CrewRequestSelect<ExtArgs> | null;
3289
+ /**
3290
+ * Omit specific fields from the CrewRequest
3291
+ */
3292
+ omit?: Prisma.CrewRequestOmit<ExtArgs> | null;
3293
+ /**
3294
+ * Choose, which related nodes to fetch as well
3295
+ */
3296
+ include?: Prisma.CrewRequestInclude<ExtArgs> | null;
3297
+ where?: Prisma.CrewRequestWhereInput;
3298
+ orderBy?: Prisma.CrewRequestOrderByWithRelationInput | Prisma.CrewRequestOrderByWithRelationInput[];
3299
+ cursor?: Prisma.CrewRequestWhereUniqueInput;
3300
+ take?: number;
3301
+ skip?: number;
3302
+ distinct?: Prisma.CrewRequestScalarFieldEnum | Prisma.CrewRequestScalarFieldEnum[];
3303
+ };
3304
+ /**
3305
+ * Ship without action
3306
+ */
3307
+ export type ShipDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3308
+ /**
3309
+ * Select specific fields to fetch from the Ship
3310
+ */
3311
+ select?: Prisma.ShipSelect<ExtArgs> | null;
3312
+ /**
3313
+ * Omit specific fields from the Ship
3314
+ */
3315
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
3316
+ /**
3317
+ * Choose, which related nodes to fetch as well
3318
+ */
3319
+ include?: Prisma.ShipInclude<ExtArgs> | null;
3320
+ };