@shizuoka-its/core 2.1.2 → 3.0.0-rc.1

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 (524) hide show
  1. package/README.md +45 -25
  2. package/dist/_virtual/_rolldown/runtime.cjs +13 -0
  3. package/dist/_virtual/_rolldown/runtime.mjs +13 -0
  4. package/dist/application/exceptions/ApplicationExceptions.cjs +124 -0
  5. package/dist/application/exceptions/ApplicationExceptions.cjs.map +1 -0
  6. package/dist/application/exceptions/ApplicationExceptions.mjs +115 -0
  7. package/dist/application/exceptions/ApplicationExceptions.mjs.map +1 -0
  8. package/dist/application/index.cjs +39 -0
  9. package/dist/application/index.mjs +40 -0
  10. package/dist/application/usecase/base.cjs +11 -0
  11. package/dist/application/usecase/base.cjs.map +1 -0
  12. package/dist/application/usecase/base.d.cts +12 -0
  13. package/dist/application/usecase/base.d.mts +12 -0
  14. package/dist/application/usecase/base.mjs +11 -0
  15. package/dist/application/usecase/base.mjs.map +1 -0
  16. package/dist/application/usecase/event/AddExhibitToEvent.cjs +27 -0
  17. package/dist/application/usecase/event/AddExhibitToEvent.cjs.map +1 -0
  18. package/dist/application/usecase/event/AddExhibitToEvent.d.cts +32 -0
  19. package/dist/application/usecase/event/AddExhibitToEvent.d.mts +32 -0
  20. package/dist/application/usecase/event/AddExhibitToEvent.mjs +27 -0
  21. package/dist/application/usecase/event/AddExhibitToEvent.mjs.map +1 -0
  22. package/dist/application/usecase/event/ChangeExhibitDescription.cjs +23 -0
  23. package/dist/application/usecase/event/ChangeExhibitDescription.cjs.map +1 -0
  24. package/dist/application/usecase/event/ChangeExhibitDescription.d.cts +26 -0
  25. package/dist/application/usecase/event/ChangeExhibitDescription.d.mts +26 -0
  26. package/dist/application/usecase/event/ChangeExhibitDescription.mjs +23 -0
  27. package/dist/application/usecase/event/ChangeExhibitDescription.mjs.map +1 -0
  28. package/dist/application/usecase/event/ChangeExhibitMarkdownContent.cjs +23 -0
  29. package/dist/application/usecase/event/ChangeExhibitMarkdownContent.cjs.map +1 -0
  30. package/dist/application/usecase/event/ChangeExhibitMarkdownContent.d.cts +26 -0
  31. package/dist/application/usecase/event/ChangeExhibitMarkdownContent.d.mts +26 -0
  32. package/dist/application/usecase/event/ChangeExhibitMarkdownContent.mjs +23 -0
  33. package/dist/application/usecase/event/ChangeExhibitMarkdownContent.mjs.map +1 -0
  34. package/dist/application/usecase/event/ChangeExhibitName.cjs +23 -0
  35. package/dist/application/usecase/event/ChangeExhibitName.cjs.map +1 -0
  36. package/dist/application/usecase/event/ChangeExhibitName.d.cts +26 -0
  37. package/dist/application/usecase/event/ChangeExhibitName.d.mts +26 -0
  38. package/dist/application/usecase/event/ChangeExhibitName.mjs +23 -0
  39. package/dist/application/usecase/event/ChangeExhibitName.mjs.map +1 -0
  40. package/dist/application/usecase/event/ChangeExhibitUrl.cjs +23 -0
  41. package/dist/application/usecase/event/ChangeExhibitUrl.cjs.map +1 -0
  42. package/dist/application/usecase/event/ChangeExhibitUrl.d.cts +27 -0
  43. package/dist/application/usecase/event/ChangeExhibitUrl.d.mts +27 -0
  44. package/dist/application/usecase/event/ChangeExhibitUrl.mjs +23 -0
  45. package/dist/application/usecase/event/ChangeExhibitUrl.mjs.map +1 -0
  46. package/dist/application/usecase/event/ChangeLightningTalkDuration.cjs +23 -0
  47. package/dist/application/usecase/event/ChangeLightningTalkDuration.cjs.map +1 -0
  48. package/dist/application/usecase/event/ChangeLightningTalkDuration.d.cts +27 -0
  49. package/dist/application/usecase/event/ChangeLightningTalkDuration.d.mts +27 -0
  50. package/dist/application/usecase/event/ChangeLightningTalkDuration.mjs +23 -0
  51. package/dist/application/usecase/event/ChangeLightningTalkDuration.mjs.map +1 -0
  52. package/dist/application/usecase/event/ChangeLightningTalkSlideUrl.cjs +23 -0
  53. package/dist/application/usecase/event/ChangeLightningTalkSlideUrl.cjs.map +1 -0
  54. package/dist/application/usecase/event/ChangeLightningTalkSlideUrl.d.cts +27 -0
  55. package/dist/application/usecase/event/ChangeLightningTalkSlideUrl.d.mts +27 -0
  56. package/dist/application/usecase/event/ChangeLightningTalkSlideUrl.mjs +23 -0
  57. package/dist/application/usecase/event/ChangeLightningTalkSlideUrl.mjs.map +1 -0
  58. package/dist/application/usecase/event/ChangeLightningTalkStartTime.cjs +23 -0
  59. package/dist/application/usecase/event/ChangeLightningTalkStartTime.cjs.map +1 -0
  60. package/dist/application/usecase/event/ChangeLightningTalkStartTime.d.cts +26 -0
  61. package/dist/application/usecase/event/ChangeLightningTalkStartTime.d.mts +26 -0
  62. package/dist/application/usecase/event/ChangeLightningTalkStartTime.mjs +23 -0
  63. package/dist/application/usecase/event/ChangeLightningTalkStartTime.mjs.map +1 -0
  64. package/dist/application/usecase/event/CreateEvent.cjs +23 -0
  65. package/dist/application/usecase/event/CreateEvent.cjs.map +1 -0
  66. package/dist/application/usecase/event/CreateEvent.d.cts +25 -0
  67. package/dist/application/usecase/event/CreateEvent.d.mts +25 -0
  68. package/dist/application/usecase/event/CreateEvent.mjs +23 -0
  69. package/dist/application/usecase/event/CreateEvent.mjs.map +1 -0
  70. package/dist/application/usecase/event/DeleteEvent.cjs +22 -0
  71. package/dist/application/usecase/event/DeleteEvent.cjs.map +1 -0
  72. package/dist/application/usecase/event/DeleteEvent.d.cts +23 -0
  73. package/dist/application/usecase/event/DeleteEvent.d.mts +23 -0
  74. package/dist/application/usecase/event/DeleteEvent.mjs +22 -0
  75. package/dist/application/usecase/event/DeleteEvent.mjs.map +1 -0
  76. package/dist/application/usecase/event/GetEvent.cjs +18 -0
  77. package/dist/application/usecase/event/GetEvent.cjs.map +1 -0
  78. package/dist/application/usecase/event/GetEvent.d.cts +23 -0
  79. package/dist/application/usecase/event/GetEvent.d.mts +23 -0
  80. package/dist/application/usecase/event/GetEvent.mjs +18 -0
  81. package/dist/application/usecase/event/GetEvent.mjs.map +1 -0
  82. package/dist/application/usecase/event/GetEventList.cjs +15 -0
  83. package/dist/application/usecase/event/GetEventList.cjs.map +1 -0
  84. package/dist/application/usecase/event/GetEventList.d.cts +17 -0
  85. package/dist/application/usecase/event/GetEventList.d.mts +17 -0
  86. package/dist/application/usecase/event/GetEventList.mjs +15 -0
  87. package/dist/application/usecase/event/GetEventList.mjs.map +1 -0
  88. package/dist/application/usecase/event/RemoveExhibitFromEvent.cjs +23 -0
  89. package/dist/application/usecase/event/RemoveExhibitFromEvent.cjs.map +1 -0
  90. package/dist/application/usecase/event/RemoveExhibitFromEvent.d.cts +25 -0
  91. package/dist/application/usecase/event/RemoveExhibitFromEvent.d.mts +25 -0
  92. package/dist/application/usecase/event/RemoveExhibitFromEvent.mjs +23 -0
  93. package/dist/application/usecase/event/RemoveExhibitFromEvent.mjs.map +1 -0
  94. package/dist/application/usecase/event/UpdateEvent.cjs +21 -0
  95. package/dist/application/usecase/event/UpdateEvent.cjs.map +1 -0
  96. package/dist/application/usecase/event/UpdateEvent.d.cts +22 -0
  97. package/dist/application/usecase/event/UpdateEvent.d.mts +22 -0
  98. package/dist/application/usecase/event/UpdateEvent.mjs +21 -0
  99. package/dist/application/usecase/event/UpdateEvent.mjs.map +1 -0
  100. package/dist/application/usecase/event/index.cjs +14 -0
  101. package/dist/application/usecase/event/index.mjs +15 -0
  102. package/dist/application/usecase/eventParticipation/GetEventsByMember.cjs +15 -0
  103. package/dist/application/usecase/eventParticipation/GetEventsByMember.cjs.map +1 -0
  104. package/dist/application/usecase/eventParticipation/GetEventsByMember.d.cts +20 -0
  105. package/dist/application/usecase/eventParticipation/GetEventsByMember.d.mts +20 -0
  106. package/dist/application/usecase/eventParticipation/GetEventsByMember.mjs +15 -0
  107. package/dist/application/usecase/eventParticipation/GetEventsByMember.mjs.map +1 -0
  108. package/dist/application/usecase/eventParticipation/GetExhibitsByMember.cjs +18 -0
  109. package/dist/application/usecase/eventParticipation/GetExhibitsByMember.cjs.map +1 -0
  110. package/dist/application/usecase/eventParticipation/GetExhibitsByMember.d.cts +20 -0
  111. package/dist/application/usecase/eventParticipation/GetExhibitsByMember.d.mts +20 -0
  112. package/dist/application/usecase/eventParticipation/GetExhibitsByMember.mjs +18 -0
  113. package/dist/application/usecase/eventParticipation/GetExhibitsByMember.mjs.map +1 -0
  114. package/dist/application/usecase/eventParticipation/GetMembersByEvent.cjs +19 -0
  115. package/dist/application/usecase/eventParticipation/GetMembersByEvent.cjs.map +1 -0
  116. package/dist/application/usecase/eventParticipation/GetMembersByEvent.d.cts +22 -0
  117. package/dist/application/usecase/eventParticipation/GetMembersByEvent.d.mts +22 -0
  118. package/dist/application/usecase/eventParticipation/GetMembersByEvent.mjs +19 -0
  119. package/dist/application/usecase/eventParticipation/GetMembersByEvent.mjs.map +1 -0
  120. package/dist/application/usecase/eventParticipation/GetMembersByExhibit.cjs +19 -0
  121. package/dist/application/usecase/eventParticipation/GetMembersByExhibit.cjs.map +1 -0
  122. package/dist/application/usecase/eventParticipation/GetMembersByExhibit.d.cts +22 -0
  123. package/dist/application/usecase/eventParticipation/GetMembersByExhibit.d.mts +22 -0
  124. package/dist/application/usecase/eventParticipation/GetMembersByExhibit.mjs +19 -0
  125. package/dist/application/usecase/eventParticipation/GetMembersByExhibit.mjs.map +1 -0
  126. package/dist/application/usecase/eventParticipation/RegisterMemberToEvent.cjs +22 -0
  127. package/dist/application/usecase/eventParticipation/RegisterMemberToEvent.cjs.map +1 -0
  128. package/dist/application/usecase/eventParticipation/RegisterMemberToEvent.d.cts +24 -0
  129. package/dist/application/usecase/eventParticipation/RegisterMemberToEvent.d.mts +24 -0
  130. package/dist/application/usecase/eventParticipation/RegisterMemberToEvent.mjs +22 -0
  131. package/dist/application/usecase/eventParticipation/RegisterMemberToEvent.mjs.map +1 -0
  132. package/dist/application/usecase/eventParticipation/RegisterMemberToExhibit.cjs +22 -0
  133. package/dist/application/usecase/eventParticipation/RegisterMemberToExhibit.cjs.map +1 -0
  134. package/dist/application/usecase/eventParticipation/RegisterMemberToExhibit.d.cts +24 -0
  135. package/dist/application/usecase/eventParticipation/RegisterMemberToExhibit.d.mts +24 -0
  136. package/dist/application/usecase/eventParticipation/RegisterMemberToExhibit.mjs +22 -0
  137. package/dist/application/usecase/eventParticipation/RegisterMemberToExhibit.mjs.map +1 -0
  138. package/dist/application/usecase/eventParticipation/RemoveMemberFromEvent.cjs +21 -0
  139. package/dist/application/usecase/eventParticipation/RemoveMemberFromEvent.cjs.map +1 -0
  140. package/dist/application/usecase/eventParticipation/RemoveMemberFromEvent.d.cts +24 -0
  141. package/dist/application/usecase/eventParticipation/RemoveMemberFromEvent.d.mts +24 -0
  142. package/dist/application/usecase/eventParticipation/RemoveMemberFromEvent.mjs +21 -0
  143. package/dist/application/usecase/eventParticipation/RemoveMemberFromEvent.mjs.map +1 -0
  144. package/dist/application/usecase/eventParticipation/RemoveMemberFromExhibit.cjs +21 -0
  145. package/dist/application/usecase/eventParticipation/RemoveMemberFromExhibit.cjs.map +1 -0
  146. package/dist/application/usecase/eventParticipation/RemoveMemberFromExhibit.d.cts +24 -0
  147. package/dist/application/usecase/eventParticipation/RemoveMemberFromExhibit.d.mts +24 -0
  148. package/dist/application/usecase/eventParticipation/RemoveMemberFromExhibit.mjs +21 -0
  149. package/dist/application/usecase/eventParticipation/RemoveMemberFromExhibit.mjs.map +1 -0
  150. package/dist/application/usecase/karte/CorrectKarte.cjs +20 -0
  151. package/dist/application/usecase/karte/CorrectKarte.cjs.map +1 -0
  152. package/dist/application/usecase/karte/CorrectKarte.d.cts +20 -0
  153. package/dist/application/usecase/karte/CorrectKarte.d.mts +20 -0
  154. package/dist/application/usecase/karte/CorrectKarte.mjs +20 -0
  155. package/dist/application/usecase/karte/CorrectKarte.mjs.map +1 -0
  156. package/dist/application/usecase/karte/CreateKarte.cjs +19 -0
  157. package/dist/application/usecase/karte/CreateKarte.cjs.map +1 -0
  158. package/dist/application/usecase/karte/CreateKarte.d.cts +20 -0
  159. package/dist/application/usecase/karte/CreateKarte.d.mts +20 -0
  160. package/dist/application/usecase/karte/CreateKarte.mjs +19 -0
  161. package/dist/application/usecase/karte/CreateKarte.mjs.map +1 -0
  162. package/dist/application/usecase/karte/GetKarte.cjs +18 -0
  163. package/dist/application/usecase/karte/GetKarte.cjs.map +1 -0
  164. package/dist/application/usecase/karte/GetKarte.d.cts +20 -0
  165. package/dist/application/usecase/karte/GetKarte.d.mts +20 -0
  166. package/dist/application/usecase/karte/GetKarte.mjs +18 -0
  167. package/dist/application/usecase/karte/GetKarte.mjs.map +1 -0
  168. package/dist/application/usecase/karte/ImportKarte.cjs +19 -0
  169. package/dist/application/usecase/karte/ImportKarte.cjs.map +1 -0
  170. package/dist/application/usecase/karte/ImportKarte.d.cts +39 -0
  171. package/dist/application/usecase/karte/ImportKarte.d.mts +39 -0
  172. package/dist/application/usecase/karte/ImportKarte.mjs +19 -0
  173. package/dist/application/usecase/karte/ImportKarte.mjs.map +1 -0
  174. package/dist/application/usecase/karte/ListKartes.cjs +15 -0
  175. package/dist/application/usecase/karte/ListKartes.cjs.map +1 -0
  176. package/dist/application/usecase/karte/ListKartes.d.cts +17 -0
  177. package/dist/application/usecase/karte/ListKartes.d.mts +17 -0
  178. package/dist/application/usecase/karte/ListKartes.mjs +15 -0
  179. package/dist/application/usecase/karte/ListKartes.mjs.map +1 -0
  180. package/dist/application/usecase/karte/index.cjs +5 -0
  181. package/dist/application/usecase/karte/index.mjs +6 -0
  182. package/dist/application/usecase/member/ChangeDiscordNickName.cjs +20 -0
  183. package/dist/application/usecase/member/ChangeDiscordNickName.cjs.map +1 -0
  184. package/dist/application/usecase/member/ChangeDiscordNickName.d.cts +21 -0
  185. package/dist/application/usecase/member/ChangeDiscordNickName.d.mts +21 -0
  186. package/dist/application/usecase/member/ChangeDiscordNickName.mjs +20 -0
  187. package/dist/application/usecase/member/ChangeDiscordNickName.mjs.map +1 -0
  188. package/dist/application/usecase/member/ConnectDiscordAccount.cjs +27 -0
  189. package/dist/application/usecase/member/ConnectDiscordAccount.cjs.map +1 -0
  190. package/dist/application/usecase/member/ConnectDiscordAccount.d.cts +25 -0
  191. package/dist/application/usecase/member/ConnectDiscordAccount.d.mts +25 -0
  192. package/dist/application/usecase/member/ConnectDiscordAccount.mjs +27 -0
  193. package/dist/application/usecase/member/ConnectDiscordAccount.mjs.map +1 -0
  194. package/dist/application/usecase/member/GetMember.cjs +15 -0
  195. package/dist/application/usecase/member/GetMember.cjs.map +1 -0
  196. package/dist/application/usecase/member/GetMember.d.cts +20 -0
  197. package/dist/application/usecase/member/GetMember.d.mts +20 -0
  198. package/dist/application/usecase/member/GetMember.mjs +15 -0
  199. package/dist/application/usecase/member/GetMember.mjs.map +1 -0
  200. package/dist/application/usecase/member/GetMemberByDiscordId.cjs +18 -0
  201. package/dist/application/usecase/member/GetMemberByDiscordId.cjs.map +1 -0
  202. package/dist/application/usecase/member/GetMemberByDiscordId.d.cts +22 -0
  203. package/dist/application/usecase/member/GetMemberByDiscordId.d.mts +22 -0
  204. package/dist/application/usecase/member/GetMemberByDiscordId.mjs +18 -0
  205. package/dist/application/usecase/member/GetMemberByDiscordId.mjs.map +1 -0
  206. package/dist/application/usecase/member/GetMemberByEmail.cjs +15 -0
  207. package/dist/application/usecase/member/GetMemberByEmail.cjs.map +1 -0
  208. package/dist/application/usecase/member/GetMemberByEmail.d.cts +20 -0
  209. package/dist/application/usecase/member/GetMemberByEmail.d.mts +20 -0
  210. package/dist/application/usecase/member/GetMemberByEmail.mjs +15 -0
  211. package/dist/application/usecase/member/GetMemberByEmail.mjs.map +1 -0
  212. package/dist/application/usecase/member/GetMemberList.cjs +15 -0
  213. package/dist/application/usecase/member/GetMemberList.cjs.map +1 -0
  214. package/dist/application/usecase/member/GetMemberList.d.cts +17 -0
  215. package/dist/application/usecase/member/GetMemberList.d.mts +17 -0
  216. package/dist/application/usecase/member/GetMemberList.mjs +15 -0
  217. package/dist/application/usecase/member/GetMemberList.mjs.map +1 -0
  218. package/dist/application/usecase/member/RegisterMember.cjs +30 -0
  219. package/dist/application/usecase/member/RegisterMember.cjs.map +1 -0
  220. package/dist/application/usecase/member/RegisterMember.d.cts +28 -0
  221. package/dist/application/usecase/member/RegisterMember.d.mts +28 -0
  222. package/dist/application/usecase/member/RegisterMember.mjs +30 -0
  223. package/dist/application/usecase/member/RegisterMember.mjs.map +1 -0
  224. package/dist/application/usecase/member/UpdateMember.cjs +24 -0
  225. package/dist/application/usecase/member/UpdateMember.cjs.map +1 -0
  226. package/dist/application/usecase/member/UpdateMember.d.cts +26 -0
  227. package/dist/application/usecase/member/UpdateMember.d.mts +26 -0
  228. package/dist/application/usecase/member/UpdateMember.mjs +24 -0
  229. package/dist/application/usecase/member/UpdateMember.mjs.map +1 -0
  230. package/dist/application/usecase/member/index.cjs +8 -0
  231. package/dist/application/usecase/member/index.mjs +9 -0
  232. package/dist/domain/aggregates/discord-account/DiscordAccount.cjs +47 -0
  233. package/dist/domain/aggregates/discord-account/DiscordAccount.cjs.map +1 -0
  234. package/dist/domain/aggregates/discord-account/DiscordAccount.d.cts +43 -0
  235. package/dist/domain/aggregates/discord-account/DiscordAccount.d.mts +43 -0
  236. package/dist/domain/aggregates/discord-account/DiscordAccount.mjs +46 -0
  237. package/dist/domain/aggregates/discord-account/DiscordAccount.mjs.map +1 -0
  238. package/dist/domain/aggregates/discord-account/DiscordAccountRepository.d.cts +14 -0
  239. package/dist/domain/aggregates/discord-account/DiscordAccountRepository.d.mts +14 -0
  240. package/dist/domain/aggregates/discord-account/DiscordId.cjs +8 -0
  241. package/dist/domain/aggregates/discord-account/DiscordId.cjs.map +1 -0
  242. package/dist/domain/aggregates/discord-account/DiscordId.d.cts +9 -0
  243. package/dist/domain/aggregates/discord-account/DiscordId.d.mts +9 -0
  244. package/dist/domain/aggregates/discord-account/DiscordId.mjs +8 -0
  245. package/dist/domain/aggregates/discord-account/DiscordId.mjs.map +1 -0
  246. package/dist/domain/aggregates/event/Event.cjs +91 -0
  247. package/dist/domain/aggregates/event/Event.cjs.map +1 -0
  248. package/dist/domain/aggregates/event/Event.d.cts +59 -0
  249. package/dist/domain/aggregates/event/Event.d.mts +59 -0
  250. package/dist/domain/aggregates/event/Event.mjs +91 -0
  251. package/dist/domain/aggregates/event/Event.mjs.map +1 -0
  252. package/dist/domain/aggregates/event/EventId.cjs +8 -0
  253. package/dist/domain/aggregates/event/EventId.cjs.map +1 -0
  254. package/dist/domain/aggregates/event/EventId.d.cts +9 -0
  255. package/dist/domain/aggregates/event/EventId.d.mts +9 -0
  256. package/dist/domain/aggregates/event/EventId.mjs +8 -0
  257. package/dist/domain/aggregates/event/EventId.mjs.map +1 -0
  258. package/dist/domain/aggregates/event/EventRepository.d.cts +17 -0
  259. package/dist/domain/aggregates/event/EventRepository.d.mts +17 -0
  260. package/dist/domain/aggregates/event/Exhibit.cjs +86 -0
  261. package/dist/domain/aggregates/event/Exhibit.cjs.map +1 -0
  262. package/dist/domain/aggregates/event/Exhibit.d.cts +52 -0
  263. package/dist/domain/aggregates/event/Exhibit.d.mts +52 -0
  264. package/dist/domain/aggregates/event/Exhibit.mjs +86 -0
  265. package/dist/domain/aggregates/event/Exhibit.mjs.map +1 -0
  266. package/dist/domain/aggregates/event/ExhibitId.cjs +8 -0
  267. package/dist/domain/aggregates/event/ExhibitId.cjs.map +1 -0
  268. package/dist/domain/aggregates/event/ExhibitId.d.cts +9 -0
  269. package/dist/domain/aggregates/event/ExhibitId.d.mts +9 -0
  270. package/dist/domain/aggregates/event/ExhibitId.mjs +8 -0
  271. package/dist/domain/aggregates/event/ExhibitId.mjs.map +1 -0
  272. package/dist/domain/aggregates/event/LightningTalk.cjs +39 -0
  273. package/dist/domain/aggregates/event/LightningTalk.cjs.map +1 -0
  274. package/dist/domain/aggregates/event/LightningTalk.d.cts +27 -0
  275. package/dist/domain/aggregates/event/LightningTalk.d.mts +27 -0
  276. package/dist/domain/aggregates/event/LightningTalk.mjs +39 -0
  277. package/dist/domain/aggregates/event/LightningTalk.mjs.map +1 -0
  278. package/dist/domain/aggregates/event/LightningTalkDuration.cjs +12 -0
  279. package/dist/domain/aggregates/event/LightningTalkDuration.cjs.map +1 -0
  280. package/dist/domain/aggregates/event/LightningTalkDuration.d.cts +9 -0
  281. package/dist/domain/aggregates/event/LightningTalkDuration.d.mts +9 -0
  282. package/dist/domain/aggregates/event/LightningTalkDuration.mjs +12 -0
  283. package/dist/domain/aggregates/event/LightningTalkDuration.mjs.map +1 -0
  284. package/dist/domain/aggregates/event/Url.cjs +19 -0
  285. package/dist/domain/aggregates/event/Url.cjs.map +1 -0
  286. package/dist/domain/aggregates/event/Url.d.cts +9 -0
  287. package/dist/domain/aggregates/event/Url.d.mts +9 -0
  288. package/dist/domain/aggregates/event/Url.mjs +19 -0
  289. package/dist/domain/aggregates/event/Url.mjs.map +1 -0
  290. package/dist/domain/aggregates/index.cjs +25 -0
  291. package/dist/domain/aggregates/index.mjs +26 -0
  292. package/dist/domain/aggregates/karte/Assignee.cjs +7 -0
  293. package/dist/domain/aggregates/karte/Assignee.cjs.map +1 -0
  294. package/dist/domain/aggregates/karte/Assignee.d.cts +20 -0
  295. package/dist/domain/aggregates/karte/Assignee.d.mts +20 -0
  296. package/dist/domain/aggregates/karte/Assignee.mjs +7 -0
  297. package/dist/domain/aggregates/karte/Assignee.mjs.map +1 -0
  298. package/dist/domain/aggregates/karte/Client.cjs +20 -0
  299. package/dist/domain/aggregates/karte/Client.cjs.map +1 -0
  300. package/dist/domain/aggregates/karte/Client.d.cts +42 -0
  301. package/dist/domain/aggregates/karte/Client.d.mts +42 -0
  302. package/dist/domain/aggregates/karte/Client.mjs +19 -0
  303. package/dist/domain/aggregates/karte/Client.mjs.map +1 -0
  304. package/dist/domain/aggregates/karte/Consent.d.cts +14 -0
  305. package/dist/domain/aggregates/karte/Consent.d.mts +14 -0
  306. package/dist/domain/aggregates/karte/Consultation.d.cts +19 -0
  307. package/dist/domain/aggregates/karte/Consultation.d.mts +19 -0
  308. package/dist/domain/aggregates/karte/ConsultationCategory.cjs +89 -0
  309. package/dist/domain/aggregates/karte/ConsultationCategory.cjs.map +1 -0
  310. package/dist/domain/aggregates/karte/ConsultationCategory.d.cts +75 -0
  311. package/dist/domain/aggregates/karte/ConsultationCategory.d.mts +75 -0
  312. package/dist/domain/aggregates/karte/ConsultationCategory.mjs +89 -0
  313. package/dist/domain/aggregates/karte/ConsultationCategory.mjs.map +1 -0
  314. package/dist/domain/aggregates/karte/ConsultedAt.cjs +90 -0
  315. package/dist/domain/aggregates/karte/ConsultedAt.cjs.map +1 -0
  316. package/dist/domain/aggregates/karte/ConsultedAt.d.cts +49 -0
  317. package/dist/domain/aggregates/karte/ConsultedAt.d.mts +49 -0
  318. package/dist/domain/aggregates/karte/ConsultedAt.mjs +85 -0
  319. package/dist/domain/aggregates/karte/ConsultedAt.mjs.map +1 -0
  320. package/dist/domain/aggregates/karte/FollowUp.cjs +13 -0
  321. package/dist/domain/aggregates/karte/FollowUp.cjs.map +1 -0
  322. package/dist/domain/aggregates/karte/FollowUp.d.cts +8 -0
  323. package/dist/domain/aggregates/karte/FollowUp.d.mts +8 -0
  324. package/dist/domain/aggregates/karte/FollowUp.mjs +13 -0
  325. package/dist/domain/aggregates/karte/FollowUp.mjs.map +1 -0
  326. package/dist/domain/aggregates/karte/Karte.cjs +94 -0
  327. package/dist/domain/aggregates/karte/Karte.cjs.map +1 -0
  328. package/dist/domain/aggregates/karte/Karte.d.cts +131 -0
  329. package/dist/domain/aggregates/karte/Karte.d.mts +131 -0
  330. package/dist/domain/aggregates/karte/Karte.mjs +94 -0
  331. package/dist/domain/aggregates/karte/Karte.mjs.map +1 -0
  332. package/dist/domain/aggregates/karte/KarteId.cjs +8 -0
  333. package/dist/domain/aggregates/karte/KarteId.cjs.map +1 -0
  334. package/dist/domain/aggregates/karte/KarteId.d.cts +9 -0
  335. package/dist/domain/aggregates/karte/KarteId.d.mts +9 -0
  336. package/dist/domain/aggregates/karte/KarteId.mjs +8 -0
  337. package/dist/domain/aggregates/karte/KarteId.mjs.map +1 -0
  338. package/dist/domain/aggregates/karte/KarteRepository.d.cts +12 -0
  339. package/dist/domain/aggregates/karte/KarteRepository.d.mts +12 -0
  340. package/dist/domain/aggregates/karte/Resolution.cjs +7 -0
  341. package/dist/domain/aggregates/karte/Resolution.cjs.map +1 -0
  342. package/dist/domain/aggregates/karte/Resolution.d.cts +21 -0
  343. package/dist/domain/aggregates/karte/Resolution.d.mts +21 -0
  344. package/dist/domain/aggregates/karte/Resolution.mjs +7 -0
  345. package/dist/domain/aggregates/karte/Resolution.mjs.map +1 -0
  346. package/dist/domain/aggregates/karte/SupportRecord.d.cts +22 -0
  347. package/dist/domain/aggregates/karte/SupportRecord.d.mts +22 -0
  348. package/dist/domain/aggregates/karte/WorkDuration.cjs +11 -0
  349. package/dist/domain/aggregates/karte/WorkDuration.cjs.map +1 -0
  350. package/dist/domain/aggregates/karte/WorkDuration.d.cts +10 -0
  351. package/dist/domain/aggregates/karte/WorkDuration.d.mts +10 -0
  352. package/dist/domain/aggregates/karte/WorkDuration.mjs +11 -0
  353. package/dist/domain/aggregates/karte/WorkDuration.mjs.map +1 -0
  354. package/dist/domain/aggregates/karte/index.cjs +9 -0
  355. package/dist/domain/aggregates/karte/index.mjs +10 -0
  356. package/dist/domain/aggregates/member/Email.cjs +12 -0
  357. package/dist/domain/aggregates/member/Email.cjs.map +1 -0
  358. package/dist/domain/aggregates/member/Email.d.cts +9 -0
  359. package/dist/domain/aggregates/member/Email.d.mts +9 -0
  360. package/dist/domain/aggregates/member/Email.mjs +12 -0
  361. package/dist/domain/aggregates/member/Email.mjs.map +1 -0
  362. package/dist/domain/aggregates/member/Member.cjs +247 -0
  363. package/dist/domain/aggregates/member/Member.cjs.map +1 -0
  364. package/dist/domain/aggregates/member/Member.d.cts +91 -0
  365. package/dist/domain/aggregates/member/Member.d.mts +91 -0
  366. package/dist/domain/aggregates/member/Member.mjs +245 -0
  367. package/dist/domain/aggregates/member/Member.mjs.map +1 -0
  368. package/dist/domain/aggregates/member/MemberEvent.cjs +20 -0
  369. package/dist/domain/aggregates/member/MemberEvent.cjs.map +1 -0
  370. package/dist/domain/aggregates/member/MemberEvent.d.cts +115 -0
  371. package/dist/domain/aggregates/member/MemberEvent.d.mts +115 -0
  372. package/dist/domain/aggregates/member/MemberEvent.mjs +20 -0
  373. package/dist/domain/aggregates/member/MemberEvent.mjs.map +1 -0
  374. package/dist/domain/aggregates/member/MemberId.cjs +8 -0
  375. package/dist/domain/aggregates/member/MemberId.cjs.map +1 -0
  376. package/dist/domain/aggregates/member/MemberId.d.cts +9 -0
  377. package/dist/domain/aggregates/member/MemberId.d.mts +9 -0
  378. package/dist/domain/aggregates/member/MemberId.mjs +8 -0
  379. package/dist/domain/aggregates/member/MemberId.mjs.map +1 -0
  380. package/dist/domain/aggregates/member/MemberRepository.d.cts +14 -0
  381. package/dist/domain/aggregates/member/MemberRepository.d.mts +14 -0
  382. package/dist/domain/aggregates/member/UniversityEmail.cjs +14 -0
  383. package/dist/domain/aggregates/member/UniversityEmail.cjs.map +1 -0
  384. package/dist/domain/aggregates/member/UniversityEmail.d.cts +9 -0
  385. package/dist/domain/aggregates/member/UniversityEmail.d.mts +9 -0
  386. package/dist/domain/aggregates/member/UniversityEmail.mjs +14 -0
  387. package/dist/domain/aggregates/member/UniversityEmail.mjs.map +1 -0
  388. package/dist/domain/aggregates/member/index.cjs +5 -0
  389. package/dist/domain/aggregates/member/index.mjs +6 -0
  390. package/dist/domain/base/DomainEvent.d.cts +9 -0
  391. package/dist/domain/base/DomainEvent.d.mts +9 -0
  392. package/dist/domain/base/NonEmptyArray.d.cts +10 -0
  393. package/dist/domain/base/NonEmptyArray.d.mts +10 -0
  394. package/dist/domain/base/NonEmptyString.cjs +12 -0
  395. package/dist/domain/base/NonEmptyString.cjs.map +1 -0
  396. package/dist/domain/base/NonEmptyString.d.cts +12 -0
  397. package/dist/domain/base/NonEmptyString.d.mts +12 -0
  398. package/dist/domain/base/NonEmptyString.mjs +12 -0
  399. package/dist/domain/base/NonEmptyString.mjs.map +1 -0
  400. package/dist/domain/base/ValueObject.cjs +21 -0
  401. package/dist/domain/base/ValueObject.cjs.map +1 -0
  402. package/dist/domain/base/ValueObject.d.cts +12 -0
  403. package/dist/domain/base/ValueObject.d.mts +12 -0
  404. package/dist/domain/base/ValueObject.mjs +21 -0
  405. package/dist/domain/base/ValueObject.mjs.map +1 -0
  406. package/dist/domain/exceptions/DomainExceptions.cjs +196 -0
  407. package/dist/domain/exceptions/DomainExceptions.cjs.map +1 -0
  408. package/dist/domain/exceptions/DomainExceptions.d.cts +192 -0
  409. package/dist/domain/exceptions/DomainExceptions.d.mts +192 -0
  410. package/dist/domain/exceptions/DomainExceptions.mjs +181 -0
  411. package/dist/domain/exceptions/DomainExceptions.mjs.map +1 -0
  412. package/dist/domain/index.cjs +32 -0
  413. package/dist/domain/index.mjs +33 -0
  414. package/dist/domain/shared/Recorded.cjs +17 -0
  415. package/dist/domain/shared/Recorded.cjs.map +1 -0
  416. package/dist/domain/shared/Recorded.d.cts +20 -0
  417. package/dist/domain/shared/Recorded.d.mts +20 -0
  418. package/dist/domain/shared/Recorded.mjs +16 -0
  419. package/dist/domain/shared/Recorded.mjs.map +1 -0
  420. package/dist/domain/shared/StudentId.cjs +35 -0
  421. package/dist/domain/shared/StudentId.cjs.map +1 -0
  422. package/dist/domain/shared/StudentId.d.cts +25 -0
  423. package/dist/domain/shared/StudentId.d.mts +25 -0
  424. package/dist/domain/shared/StudentId.mjs +35 -0
  425. package/dist/domain/shared/StudentId.mjs.map +1 -0
  426. package/dist/domain/shared/affiliation/Affiliation.cjs +12 -0
  427. package/dist/domain/shared/affiliation/Affiliation.cjs.map +1 -0
  428. package/dist/domain/shared/affiliation/Affiliation.d.cts +59 -0
  429. package/dist/domain/shared/affiliation/Affiliation.d.mts +59 -0
  430. package/dist/domain/shared/affiliation/Affiliation.mjs +12 -0
  431. package/dist/domain/shared/affiliation/Affiliation.mjs.map +1 -0
  432. package/dist/domain/shared/affiliation/index.cjs +2 -0
  433. package/dist/domain/shared/affiliation/index.mjs +3 -0
  434. package/dist/domain/shared/affiliation/universityStructure.cjs +444 -0
  435. package/dist/domain/shared/affiliation/universityStructure.cjs.map +1 -0
  436. package/dist/domain/shared/affiliation/universityStructure.d.cts +262 -0
  437. package/dist/domain/shared/affiliation/universityStructure.d.mts +262 -0
  438. package/dist/domain/shared/affiliation/universityStructure.mjs +439 -0
  439. package/dist/domain/shared/affiliation/universityStructure.mjs.map +1 -0
  440. package/dist/domain/shared/index.cjs +5 -0
  441. package/dist/domain/shared/index.mjs +6 -0
  442. package/dist/executable/event.cjs +63 -0
  443. package/dist/executable/event.cjs.map +1 -0
  444. package/dist/executable/event.d.cts +56 -0
  445. package/dist/executable/event.d.mts +56 -0
  446. package/dist/executable/event.mjs +63 -0
  447. package/dist/executable/event.mjs.map +1 -0
  448. package/dist/executable/eventService.cjs +146 -0
  449. package/dist/executable/eventService.cjs.map +1 -0
  450. package/dist/executable/eventService.d.cts +143 -0
  451. package/dist/executable/eventService.d.mts +143 -0
  452. package/dist/executable/eventService.mjs +146 -0
  453. package/dist/executable/eventService.mjs.map +1 -0
  454. package/dist/executable/index.cjs +6 -0
  455. package/dist/executable/index.mjs +7 -0
  456. package/dist/executable/karte.cjs +24 -0
  457. package/dist/executable/karte.cjs.map +1 -0
  458. package/dist/executable/karte.d.cts +19 -0
  459. package/dist/executable/karte.d.mts +19 -0
  460. package/dist/executable/karte.mjs +24 -0
  461. package/dist/executable/karte.mjs.map +1 -0
  462. package/dist/executable/karteService.cjs +79 -0
  463. package/dist/executable/karteService.cjs.map +1 -0
  464. package/dist/executable/karteService.d.cts +87 -0
  465. package/dist/executable/karteService.d.mts +87 -0
  466. package/dist/executable/karteService.mjs +79 -0
  467. package/dist/executable/karteService.mjs.map +1 -0
  468. package/dist/executable/member.cjs +32 -0
  469. package/dist/executable/member.cjs.map +1 -0
  470. package/dist/executable/member.d.cts +25 -0
  471. package/dist/executable/member.d.mts +25 -0
  472. package/dist/executable/member.mjs +32 -0
  473. package/dist/executable/member.mjs.map +1 -0
  474. package/dist/executable/memberService.cjs +63 -0
  475. package/dist/executable/memberService.cjs.map +1 -0
  476. package/dist/executable/memberService.d.cts +59 -0
  477. package/dist/executable/memberService.d.mts +59 -0
  478. package/dist/executable/memberService.mjs +63 -0
  479. package/dist/executable/memberService.mjs.map +1 -0
  480. package/dist/index.cjs +105 -1914
  481. package/dist/index.d.cts +46 -754
  482. package/dist/index.d.mts +46 -0
  483. package/dist/index.mjs +39 -0
  484. package/dist/infrastructure/drizzle/DrizzleDiscordAccountRepository.cjs +57 -0
  485. package/dist/infrastructure/drizzle/DrizzleDiscordAccountRepository.cjs.map +1 -0
  486. package/dist/infrastructure/drizzle/DrizzleDiscordAccountRepository.mjs +57 -0
  487. package/dist/infrastructure/drizzle/DrizzleDiscordAccountRepository.mjs.map +1 -0
  488. package/dist/infrastructure/drizzle/DrizzleEventRepository.cjs +196 -0
  489. package/dist/infrastructure/drizzle/DrizzleEventRepository.cjs.map +1 -0
  490. package/dist/infrastructure/drizzle/DrizzleEventRepository.mjs +196 -0
  491. package/dist/infrastructure/drizzle/DrizzleEventRepository.mjs.map +1 -0
  492. package/dist/infrastructure/drizzle/DrizzleKarteRepository.cjs +241 -0
  493. package/dist/infrastructure/drizzle/DrizzleKarteRepository.cjs.map +1 -0
  494. package/dist/infrastructure/drizzle/DrizzleKarteRepository.mjs +241 -0
  495. package/dist/infrastructure/drizzle/DrizzleKarteRepository.mjs.map +1 -0
  496. package/dist/infrastructure/drizzle/DrizzleMemberRepository.cjs +112 -0
  497. package/dist/infrastructure/drizzle/DrizzleMemberRepository.cjs.map +1 -0
  498. package/dist/infrastructure/drizzle/DrizzleMemberRepository.mjs +112 -0
  499. package/dist/infrastructure/drizzle/DrizzleMemberRepository.mjs.map +1 -0
  500. package/dist/infrastructure/drizzle/client.cjs +20 -0
  501. package/dist/infrastructure/drizzle/client.cjs.map +1 -0
  502. package/dist/infrastructure/drizzle/client.mjs +20 -0
  503. package/dist/infrastructure/drizzle/client.mjs.map +1 -0
  504. package/dist/infrastructure/drizzle/index.cjs +4 -0
  505. package/dist/infrastructure/drizzle/index.mjs +5 -0
  506. package/dist/infrastructure/drizzle/schema.cjs +353 -0
  507. package/dist/infrastructure/drizzle/schema.cjs.map +1 -0
  508. package/dist/infrastructure/drizzle/schema.mjs +337 -0
  509. package/dist/infrastructure/drizzle/schema.mjs.map +1 -0
  510. package/dist/infrastructure/drizzle/serializeDiscordAccountEvent.cjs +14 -0
  511. package/dist/infrastructure/drizzle/serializeDiscordAccountEvent.cjs.map +1 -0
  512. package/dist/infrastructure/drizzle/serializeDiscordAccountEvent.mjs +14 -0
  513. package/dist/infrastructure/drizzle/serializeDiscordAccountEvent.mjs.map +1 -0
  514. package/dist/infrastructure/drizzle/serializeMemberEvent.cjs +61 -0
  515. package/dist/infrastructure/drizzle/serializeMemberEvent.cjs.map +1 -0
  516. package/dist/infrastructure/drizzle/serializeMemberEvent.mjs +61 -0
  517. package/dist/infrastructure/drizzle/serializeMemberEvent.mjs.map +1 -0
  518. package/dist/infrastructure/index.cjs +5 -0
  519. package/dist/infrastructure/index.mjs +6 -0
  520. package/package.json +67 -60
  521. package/dist/index.cjs.map +0 -1
  522. package/dist/index.d.ts +0 -754
  523. package/dist/index.js +0 -1875
  524. package/dist/index.js.map +0 -1
@@ -0,0 +1,131 @@
1
+ import { NonEmptyArray } from "../../base/NonEmptyArray.cjs";
2
+ import { NonEmptyString } from "../../base/NonEmptyString.cjs";
3
+ import { ConsultedAt } from "./ConsultedAt.cjs";
4
+ import { CompleteAffiliation } from "../../shared/affiliation/Affiliation.cjs";
5
+ import { Recorded } from "../../shared/Recorded.cjs";
6
+ import { StudentId } from "../../shared/StudentId.cjs";
7
+ import { Client } from "./Client.cjs";
8
+ import { Consent } from "./Consent.cjs";
9
+ import { ConsultationCategory } from "./ConsultationCategory.cjs";
10
+ import { Consultation } from "./Consultation.cjs";
11
+ import { FollowUp } from "./FollowUp.cjs";
12
+ import { KarteId } from "./KarteId.cjs";
13
+ import { WorkDuration } from "./WorkDuration.cjs";
14
+ import { SupportRecord } from "./SupportRecord.cjs";
15
+ import { MemberId } from "../member/MemberId.cjs";
16
+
17
+ //#region src/domain/aggregates/karte/Karte.d.ts
18
+ /** 新規作成・訂正時の解決ステータス — 後処理は必須 */
19
+ type CompleteResolution = {
20
+ readonly type: "resolved";
21
+ } | {
22
+ readonly type: "unresolved";
23
+ readonly followUp: FollowUp;
24
+ };
25
+ /**
26
+ * 新規作成・訂正時の相談者
27
+ *
28
+ * 完全なAffiliationのみ受け付ける。PartialAffiliationは不可。
29
+ */
30
+ type CompleteClient = {
31
+ readonly type: "student";
32
+ readonly studentId: StudentId;
33
+ readonly name: string;
34
+ readonly affiliation: CompleteAffiliation;
35
+ } | {
36
+ readonly type: "teacher";
37
+ readonly name: string;
38
+ } | {
39
+ readonly type: "staff";
40
+ readonly name: string;
41
+ } | {
42
+ readonly type: "other";
43
+ readonly name: string;
44
+ };
45
+ /**
46
+ * カルテの内容を表す入力型
47
+ *
48
+ * create/correctの共通部分。全フィールドが完全に揃った状態を要求する。
49
+ * Recorded型は使わず、生の値を受け取る。
50
+ */
51
+ type KarteContentProps = {
52
+ readonly consultedAt: ConsultedAt;
53
+ readonly client: CompleteClient;
54
+ readonly consent: Consent;
55
+ readonly consultation: {
56
+ readonly categories: NonEmptyArray<ConsultationCategory>;
57
+ readonly targetDevice: NonEmptyString;
58
+ readonly troubleDetails: NonEmptyString;
59
+ };
60
+ readonly supportRecord: {
61
+ readonly assignedMemberIds: NonEmptyArray<MemberId>;
62
+ readonly content: NonEmptyString;
63
+ readonly resolution: CompleteResolution;
64
+ readonly workDuration: WorkDuration;
65
+ };
66
+ };
67
+ /** 新規カルテ作成時の入力型 */
68
+ type KarteCreationProps = KarteContentProps & {
69
+ readonly id: KarteId;
70
+ };
71
+ /** 永続化データからの復元時の入力型 */
72
+ type KarteReconstructProps = {
73
+ readonly id: KarteId;
74
+ readonly recordedAt: Date;
75
+ readonly consultedAt: Recorded<ConsultedAt>;
76
+ readonly lastUpdatedAt: Date;
77
+ readonly client: Recorded<Client>;
78
+ readonly consent: Consent;
79
+ readonly consultation: Consultation;
80
+ readonly supportRecord: SupportRecord;
81
+ };
82
+ /**
83
+ * カルテ集約ルート
84
+ *
85
+ * PC相談室での相談記録を表す。
86
+ * 同意事項・相談事・対応記録という3つのドメイン概念で構成される。
87
+ * 作成時に全データが揃うイミュータブルな記録であり、
88
+ * 修正は correct() による明示的な訂正操作のみ許可する。
89
+ *
90
+ * 過去データでは一部フィールドが未記録(Recorded型のnotRecorded)の場合がある。
91
+ * 新規作成時は create() により全フィールドの完全性を保証する。
92
+ */
93
+ declare class Karte {
94
+ readonly id: KarteId;
95
+ /** 相談日時 */
96
+ readonly consultedAt: Recorded<ConsultedAt>;
97
+ /** 相談者 */
98
+ readonly client: Recorded<Client>;
99
+ /** 同意事項 */
100
+ readonly consent: Consent;
101
+ /** 相談事 */
102
+ readonly consultation: Consultation;
103
+ /** 対応記録 */
104
+ readonly supportRecord: SupportRecord;
105
+ /**
106
+ * Dateはミュータブルなため、privateで保持しgetterで防御的コピーを返す。
107
+ * readonlyは再代入を防ぐが、Date.setTime()等の破壊的メソッドは防げない。
108
+ */
109
+ private readonly _recordedAt;
110
+ private readonly _lastUpdatedAt;
111
+ private constructor();
112
+ /** 記録日時 */
113
+ get recordedAt(): Date;
114
+ /** 最終更新日時 */
115
+ get lastUpdatedAt(): Date;
116
+ /** 新規カルテの作成 — 全フィールド完全であることを型で保証する */
117
+ static create(props: KarteCreationProps): Karte;
118
+ /** 永続化データからの復元 — バリデーションなし */
119
+ static reconstruct(props: KarteReconstructProps): Karte;
120
+ /**
121
+ * カルテの訂正
122
+ *
123
+ * 記録ミスの修正など、既存カルテの内容を訂正した新しいインスタンスを返す。
124
+ * recordedAt(元の記録日時)は保持し、lastUpdatedAt を現在時刻に更新する。
125
+ * 完全な生の値を受け取り、不変条件は型で保証する。
126
+ */
127
+ correct(props: KarteContentProps): Karte;
128
+ }
129
+ //#endregion
130
+ export { CompleteClient, CompleteResolution, Karte, KarteContentProps };
131
+ //# sourceMappingURL=Karte.d.cts.map
@@ -0,0 +1,131 @@
1
+ import { NonEmptyArray } from "../../base/NonEmptyArray.mjs";
2
+ import { NonEmptyString } from "../../base/NonEmptyString.mjs";
3
+ import { ConsultedAt } from "./ConsultedAt.mjs";
4
+ import { CompleteAffiliation } from "../../shared/affiliation/Affiliation.mjs";
5
+ import { Recorded } from "../../shared/Recorded.mjs";
6
+ import { StudentId } from "../../shared/StudentId.mjs";
7
+ import { Client } from "./Client.mjs";
8
+ import { Consent } from "./Consent.mjs";
9
+ import { ConsultationCategory } from "./ConsultationCategory.mjs";
10
+ import { Consultation } from "./Consultation.mjs";
11
+ import { FollowUp } from "./FollowUp.mjs";
12
+ import { KarteId } from "./KarteId.mjs";
13
+ import { WorkDuration } from "./WorkDuration.mjs";
14
+ import { SupportRecord } from "./SupportRecord.mjs";
15
+ import { MemberId } from "../member/MemberId.mjs";
16
+
17
+ //#region src/domain/aggregates/karte/Karte.d.ts
18
+ /** 新規作成・訂正時の解決ステータス — 後処理は必須 */
19
+ type CompleteResolution = {
20
+ readonly type: "resolved";
21
+ } | {
22
+ readonly type: "unresolved";
23
+ readonly followUp: FollowUp;
24
+ };
25
+ /**
26
+ * 新規作成・訂正時の相談者
27
+ *
28
+ * 完全なAffiliationのみ受け付ける。PartialAffiliationは不可。
29
+ */
30
+ type CompleteClient = {
31
+ readonly type: "student";
32
+ readonly studentId: StudentId;
33
+ readonly name: string;
34
+ readonly affiliation: CompleteAffiliation;
35
+ } | {
36
+ readonly type: "teacher";
37
+ readonly name: string;
38
+ } | {
39
+ readonly type: "staff";
40
+ readonly name: string;
41
+ } | {
42
+ readonly type: "other";
43
+ readonly name: string;
44
+ };
45
+ /**
46
+ * カルテの内容を表す入力型
47
+ *
48
+ * create/correctの共通部分。全フィールドが完全に揃った状態を要求する。
49
+ * Recorded型は使わず、生の値を受け取る。
50
+ */
51
+ type KarteContentProps = {
52
+ readonly consultedAt: ConsultedAt;
53
+ readonly client: CompleteClient;
54
+ readonly consent: Consent;
55
+ readonly consultation: {
56
+ readonly categories: NonEmptyArray<ConsultationCategory>;
57
+ readonly targetDevice: NonEmptyString;
58
+ readonly troubleDetails: NonEmptyString;
59
+ };
60
+ readonly supportRecord: {
61
+ readonly assignedMemberIds: NonEmptyArray<MemberId>;
62
+ readonly content: NonEmptyString;
63
+ readonly resolution: CompleteResolution;
64
+ readonly workDuration: WorkDuration;
65
+ };
66
+ };
67
+ /** 新規カルテ作成時の入力型 */
68
+ type KarteCreationProps = KarteContentProps & {
69
+ readonly id: KarteId;
70
+ };
71
+ /** 永続化データからの復元時の入力型 */
72
+ type KarteReconstructProps = {
73
+ readonly id: KarteId;
74
+ readonly recordedAt: Date;
75
+ readonly consultedAt: Recorded<ConsultedAt>;
76
+ readonly lastUpdatedAt: Date;
77
+ readonly client: Recorded<Client>;
78
+ readonly consent: Consent;
79
+ readonly consultation: Consultation;
80
+ readonly supportRecord: SupportRecord;
81
+ };
82
+ /**
83
+ * カルテ集約ルート
84
+ *
85
+ * PC相談室での相談記録を表す。
86
+ * 同意事項・相談事・対応記録という3つのドメイン概念で構成される。
87
+ * 作成時に全データが揃うイミュータブルな記録であり、
88
+ * 修正は correct() による明示的な訂正操作のみ許可する。
89
+ *
90
+ * 過去データでは一部フィールドが未記録(Recorded型のnotRecorded)の場合がある。
91
+ * 新規作成時は create() により全フィールドの完全性を保証する。
92
+ */
93
+ declare class Karte {
94
+ readonly id: KarteId;
95
+ /** 相談日時 */
96
+ readonly consultedAt: Recorded<ConsultedAt>;
97
+ /** 相談者 */
98
+ readonly client: Recorded<Client>;
99
+ /** 同意事項 */
100
+ readonly consent: Consent;
101
+ /** 相談事 */
102
+ readonly consultation: Consultation;
103
+ /** 対応記録 */
104
+ readonly supportRecord: SupportRecord;
105
+ /**
106
+ * Dateはミュータブルなため、privateで保持しgetterで防御的コピーを返す。
107
+ * readonlyは再代入を防ぐが、Date.setTime()等の破壊的メソッドは防げない。
108
+ */
109
+ private readonly _recordedAt;
110
+ private readonly _lastUpdatedAt;
111
+ private constructor();
112
+ /** 記録日時 */
113
+ get recordedAt(): Date;
114
+ /** 最終更新日時 */
115
+ get lastUpdatedAt(): Date;
116
+ /** 新規カルテの作成 — 全フィールド完全であることを型で保証する */
117
+ static create(props: KarteCreationProps): Karte;
118
+ /** 永続化データからの復元 — バリデーションなし */
119
+ static reconstruct(props: KarteReconstructProps): Karte;
120
+ /**
121
+ * カルテの訂正
122
+ *
123
+ * 記録ミスの修正など、既存カルテの内容を訂正した新しいインスタンスを返す。
124
+ * recordedAt(元の記録日時)は保持し、lastUpdatedAt を現在時刻に更新する。
125
+ * 完全な生の値を受け取り、不変条件は型で保証する。
126
+ */
127
+ correct(props: KarteContentProps): Karte;
128
+ }
129
+ //#endregion
130
+ export { CompleteClient, CompleteResolution, Karte, KarteContentProps };
131
+ //# sourceMappingURL=Karte.d.mts.map
@@ -0,0 +1,94 @@
1
+ import { recorded } from "../../shared/Recorded.mjs";
2
+ import "../../shared/index.mjs";
3
+ //#region src/domain/aggregates/karte/Karte.ts
4
+ /**
5
+ * カルテ集約ルート
6
+ *
7
+ * PC相談室での相談記録を表す。
8
+ * 同意事項・相談事・対応記録という3つのドメイン概念で構成される。
9
+ * 作成時に全データが揃うイミュータブルな記録であり、
10
+ * 修正は correct() による明示的な訂正操作のみ許可する。
11
+ *
12
+ * 過去データでは一部フィールドが未記録(Recorded型のnotRecorded)の場合がある。
13
+ * 新規作成時は create() により全フィールドの完全性を保証する。
14
+ */
15
+ var Karte = class Karte {
16
+ /**
17
+ * Dateはミュータブルなため、privateで保持しgetterで防御的コピーを返す。
18
+ * readonlyは再代入を防ぐが、Date.setTime()等の破壊的メソッドは防げない。
19
+ */
20
+ _recordedAt;
21
+ _lastUpdatedAt;
22
+ constructor(id, recordedAt, consultedAt, lastUpdatedAt, client, consent, consultation, supportRecord) {
23
+ this.id = id;
24
+ this.consultedAt = consultedAt;
25
+ this.client = client;
26
+ this.consent = consent;
27
+ this.consultation = consultation;
28
+ this.supportRecord = supportRecord;
29
+ this._recordedAt = recordedAt;
30
+ this._lastUpdatedAt = lastUpdatedAt;
31
+ }
32
+ /** 記録日時 */
33
+ get recordedAt() {
34
+ return new Date(this._recordedAt);
35
+ }
36
+ /** 最終更新日時 */
37
+ get lastUpdatedAt() {
38
+ return new Date(this._lastUpdatedAt);
39
+ }
40
+ /** 新規カルテの作成 — 全フィールド完全であることを型で保証する */
41
+ static create(props) {
42
+ const now = Date.now();
43
+ return new Karte(props.id, new Date(now), recorded(props.consultedAt), new Date(now), recorded(props.client), props.consent, toConsultation(props), toSupportRecord(props));
44
+ }
45
+ /** 永続化データからの復元 — バリデーションなし */
46
+ static reconstruct(props) {
47
+ return new Karte(props.id, props.recordedAt, props.consultedAt, props.lastUpdatedAt, props.client, props.consent, props.consultation, props.supportRecord);
48
+ }
49
+ /**
50
+ * カルテの訂正
51
+ *
52
+ * 記録ミスの修正など、既存カルテの内容を訂正した新しいインスタンスを返す。
53
+ * recordedAt(元の記録日時)は保持し、lastUpdatedAt を現在時刻に更新する。
54
+ * 完全な生の値を受け取り、不変条件は型で保証する。
55
+ */
56
+ correct(props) {
57
+ return new Karte(this.id, this.recordedAt, recorded(props.consultedAt), /* @__PURE__ */ new Date(), recorded(props.client), props.consent, toConsultation(props), toSupportRecord(props));
58
+ }
59
+ };
60
+ /** 生の入力から Consultation(Recorded付き)を構築する */
61
+ function toConsultation(props) {
62
+ return {
63
+ categories: recorded(props.consultation.categories),
64
+ targetDevice: recorded(props.consultation.targetDevice),
65
+ troubleDetails: recorded(props.consultation.troubleDetails)
66
+ };
67
+ }
68
+ /** 生の入力から SupportRecord(Recorded付き)を構築する */
69
+ function toSupportRecord(props) {
70
+ const [first, ...rest] = props.supportRecord.assignedMemberIds;
71
+ return {
72
+ assignees: recorded([{
73
+ type: "resolved",
74
+ memberId: first
75
+ }, ...rest.map((memberId) => ({
76
+ type: "resolved",
77
+ memberId
78
+ }))]),
79
+ content: recorded(props.supportRecord.content),
80
+ resolution: recorded(toRecordedResolution(props.supportRecord.resolution)),
81
+ workDuration: recorded(props.supportRecord.workDuration)
82
+ };
83
+ }
84
+ function toRecordedResolution(complete) {
85
+ if (complete.type === "resolved") return { type: "resolved" };
86
+ return {
87
+ type: "unresolved",
88
+ followUp: recorded(complete.followUp)
89
+ };
90
+ }
91
+ //#endregion
92
+ export { Karte };
93
+
94
+ //# sourceMappingURL=Karte.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Karte.mjs","names":[],"sources":["../../../../src/domain/aggregates/karte/Karte.ts"],"sourcesContent":["import type { MemberId } from \"#domain\";\nimport type { NonEmptyArray } from \"../../base\";\nimport type { NonEmptyString } from \"../../base\";\nimport type { CompleteAffiliation } from \"../../shared\";\nimport type { StudentId } from \"../../shared\";\nimport { type Recorded, recorded } from \"../../shared\";\nimport type { Assignee } from \"./Assignee\";\nimport type { Client } from \"./Client\";\nimport type { Consent } from \"./Consent\";\nimport type { Consultation } from \"./Consultation\";\nimport type { ConsultationCategory } from \"./ConsultationCategory\";\nimport type { ConsultedAt } from \"./ConsultedAt\";\nimport type { FollowUp } from \"./FollowUp\";\nimport type { KarteId } from \"./KarteId\";\nimport type { Resolution } from \"./Resolution\";\nimport type { SupportRecord } from \"./SupportRecord\";\nimport type { WorkDuration } from \"./WorkDuration\";\n\n/** 新規作成・訂正時の解決ステータス — 後処理は必須 */\nexport type CompleteResolution =\n\t| { readonly type: \"resolved\" }\n\t| {\n\t\t\treadonly type: \"unresolved\";\n\t\t\treadonly followUp: FollowUp;\n\t };\n\n/**\n * 新規作成・訂正時の相談者\n *\n * 完全なAffiliationのみ受け付ける。PartialAffiliationは不可。\n */\nexport type CompleteClient =\n\t| {\n\t\t\treadonly type: \"student\";\n\t\t\treadonly studentId: StudentId;\n\t\t\treadonly name: string;\n\t\t\treadonly affiliation: CompleteAffiliation;\n\t }\n\t| { readonly type: \"teacher\"; readonly name: string }\n\t| { readonly type: \"staff\"; readonly name: string }\n\t| { readonly type: \"other\"; readonly name: string };\n\n/**\n * カルテの内容を表す入力型\n *\n * create/correctの共通部分。全フィールドが完全に揃った状態を要求する。\n * Recorded型は使わず、生の値を受け取る。\n */\nexport type KarteContentProps = {\n\treadonly consultedAt: ConsultedAt;\n\treadonly client: CompleteClient;\n\treadonly consent: Consent;\n\treadonly consultation: {\n\t\treadonly categories: NonEmptyArray<ConsultationCategory>;\n\t\treadonly targetDevice: NonEmptyString;\n\t\treadonly troubleDetails: NonEmptyString;\n\t};\n\treadonly supportRecord: {\n\t\treadonly assignedMemberIds: NonEmptyArray<MemberId>;\n\t\treadonly content: NonEmptyString;\n\t\treadonly resolution: CompleteResolution;\n\t\treadonly workDuration: WorkDuration;\n\t};\n};\n\n/** 新規カルテ作成時の入力型 */\ntype KarteCreationProps = KarteContentProps & { readonly id: KarteId };\n\n/** 永続化データからの復元時の入力型 */\ntype KarteReconstructProps = {\n\treadonly id: KarteId;\n\treadonly recordedAt: Date;\n\treadonly consultedAt: Recorded<ConsultedAt>;\n\treadonly lastUpdatedAt: Date;\n\treadonly client: Recorded<Client>;\n\treadonly consent: Consent;\n\treadonly consultation: Consultation;\n\treadonly supportRecord: SupportRecord;\n};\n\n/**\n * カルテ集約ルート\n *\n * PC相談室での相談記録を表す。\n * 同意事項・相談事・対応記録という3つのドメイン概念で構成される。\n * 作成時に全データが揃うイミュータブルな記録であり、\n * 修正は correct() による明示的な訂正操作のみ許可する。\n *\n * 過去データでは一部フィールドが未記録(Recorded型のnotRecorded)の場合がある。\n * 新規作成時は create() により全フィールドの完全性を保証する。\n */\nexport class Karte {\n\t/**\n\t * Dateはミュータブルなため、privateで保持しgetterで防御的コピーを返す。\n\t * readonlyは再代入を防ぐが、Date.setTime()等の破壊的メソッドは防げない。\n\t */\n\tprivate readonly _recordedAt: Date;\n\tprivate readonly _lastUpdatedAt: Date;\n\n\tprivate constructor(\n\t\tpublic readonly id: KarteId,\n\t\trecordedAt: Date,\n\t\t/** 相談日時 */\n\t\tpublic readonly consultedAt: Recorded<ConsultedAt>,\n\t\tlastUpdatedAt: Date,\n\t\t/** 相談者 */\n\t\tpublic readonly client: Recorded<Client>,\n\t\t/** 同意事項 */\n\t\tpublic readonly consent: Consent,\n\t\t/** 相談事 */\n\t\tpublic readonly consultation: Consultation,\n\t\t/** 対応記録 */\n\t\tpublic readonly supportRecord: SupportRecord,\n\t) {\n\t\tthis._recordedAt = recordedAt;\n\t\tthis._lastUpdatedAt = lastUpdatedAt;\n\t}\n\n\t/** 記録日時 */\n\tget recordedAt(): Date {\n\t\treturn new Date(this._recordedAt);\n\t}\n\n\t/** 最終更新日時 */\n\tget lastUpdatedAt(): Date {\n\t\treturn new Date(this._lastUpdatedAt);\n\t}\n\n\t/** 新規カルテの作成 — 全フィールド完全であることを型で保証する */\n\tstatic create(props: KarteCreationProps): Karte {\n\t\tconst now = Date.now();\n\t\treturn new Karte(\n\t\t\tprops.id,\n\t\t\tnew Date(now),\n\t\t\trecorded(props.consultedAt),\n\t\t\tnew Date(now),\n\t\t\trecorded(props.client),\n\t\t\tprops.consent,\n\t\t\ttoConsultation(props),\n\t\t\ttoSupportRecord(props),\n\t\t);\n\t}\n\n\t/** 永続化データからの復元 — バリデーションなし */\n\tstatic reconstruct(props: KarteReconstructProps): Karte {\n\t\treturn new Karte(\n\t\t\tprops.id,\n\t\t\tprops.recordedAt,\n\t\t\tprops.consultedAt,\n\t\t\tprops.lastUpdatedAt,\n\t\t\tprops.client,\n\t\t\tprops.consent,\n\t\t\tprops.consultation,\n\t\t\tprops.supportRecord,\n\t\t);\n\t}\n\n\t/**\n\t * カルテの訂正\n\t *\n\t * 記録ミスの修正など、既存カルテの内容を訂正した新しいインスタンスを返す。\n\t * recordedAt(元の記録日時)は保持し、lastUpdatedAt を現在時刻に更新する。\n\t * 完全な生の値を受け取り、不変条件は型で保証する。\n\t */\n\tcorrect(props: KarteContentProps): Karte {\n\t\treturn new Karte(\n\t\t\tthis.id,\n\t\t\tthis.recordedAt,\n\t\t\trecorded(props.consultedAt),\n\t\t\tnew Date(),\n\t\t\trecorded(props.client),\n\t\t\tprops.consent,\n\t\t\ttoConsultation(props),\n\t\t\ttoSupportRecord(props),\n\t\t);\n\t}\n}\n\n/** 生の入力から Consultation(Recorded付き)を構築する */\nfunction toConsultation(props: KarteContentProps): Consultation {\n\treturn {\n\t\tcategories: recorded(props.consultation.categories),\n\t\ttargetDevice: recorded(props.consultation.targetDevice),\n\t\ttroubleDetails: recorded(props.consultation.troubleDetails),\n\t};\n}\n\n/** 生の入力から SupportRecord(Recorded付き)を構築する */\nfunction toSupportRecord(props: KarteContentProps): SupportRecord {\n\tconst [first, ...rest] = props.supportRecord.assignedMemberIds;\n\tconst assignees: NonEmptyArray<Assignee> = [\n\t\t{ type: \"resolved\", memberId: first },\n\t\t...rest.map((memberId): Assignee => ({ type: \"resolved\", memberId })),\n\t];\n\n\treturn {\n\t\tassignees: recorded(assignees),\n\t\tcontent: recorded(props.supportRecord.content),\n\t\tresolution: recorded(toRecordedResolution(props.supportRecord.resolution)),\n\t\tworkDuration: recorded(props.supportRecord.workDuration),\n\t};\n}\n\nfunction toRecordedResolution(complete: CompleteResolution): Resolution {\n\tif (complete.type === \"resolved\") {\n\t\treturn { type: \"resolved\" };\n\t}\n\treturn {\n\t\ttype: \"unresolved\",\n\t\tfollowUp: recorded(complete.followUp),\n\t};\n}\n"],"mappings":";;;;;;;;;;;;;;AA2FA,IAAa,QAAb,MAAa,MAAM;;;;;CAKlB;CACA;CAEA,YACC,IACA,YAEA,aACA,eAEA,QAEA,SAEA,cAEA,eACC;AAbe,OAAA,KAAA;AAGA,OAAA,cAAA;AAGA,OAAA,SAAA;AAEA,OAAA,UAAA;AAEA,OAAA,eAAA;AAEA,OAAA,gBAAA;AAEhB,OAAK,cAAc;AACnB,OAAK,iBAAiB;;;CAIvB,IAAI,aAAmB;AACtB,SAAO,IAAI,KAAK,KAAK,YAAY;;;CAIlC,IAAI,gBAAsB;AACzB,SAAO,IAAI,KAAK,KAAK,eAAe;;;CAIrC,OAAO,OAAO,OAAkC;EAC/C,MAAM,MAAM,KAAK,KAAK;AACtB,SAAO,IAAI,MACV,MAAM,IACN,IAAI,KAAK,IAAI,EACb,SAAS,MAAM,YAAY,EAC3B,IAAI,KAAK,IAAI,EACb,SAAS,MAAM,OAAO,EACtB,MAAM,SACN,eAAe,MAAM,EACrB,gBAAgB,MAAM,CACtB;;;CAIF,OAAO,YAAY,OAAqC;AACvD,SAAO,IAAI,MACV,MAAM,IACN,MAAM,YACN,MAAM,aACN,MAAM,eACN,MAAM,QACN,MAAM,SACN,MAAM,cACN,MAAM,cACN;;;;;;;;;CAUF,QAAQ,OAAiC;AACxC,SAAO,IAAI,MACV,KAAK,IACL,KAAK,YACL,SAAS,MAAM,YAAY,kBAC3B,IAAI,MAAM,EACV,SAAS,MAAM,OAAO,EACtB,MAAM,SACN,eAAe,MAAM,EACrB,gBAAgB,MAAM,CACtB;;;;AAKH,SAAS,eAAe,OAAwC;AAC/D,QAAO;EACN,YAAY,SAAS,MAAM,aAAa,WAAW;EACnD,cAAc,SAAS,MAAM,aAAa,aAAa;EACvD,gBAAgB,SAAS,MAAM,aAAa,eAAe;EAC3D;;;AAIF,SAAS,gBAAgB,OAAyC;CACjE,MAAM,CAAC,OAAO,GAAG,QAAQ,MAAM,cAAc;AAM7C,QAAO;EACN,WAAW,SAN+B,CAC1C;GAAE,MAAM;GAAY,UAAU;GAAO,EACrC,GAAG,KAAK,KAAK,cAAwB;GAAE,MAAM;GAAY;GAAU,EAAE,CACrE,CAG8B;EAC9B,SAAS,SAAS,MAAM,cAAc,QAAQ;EAC9C,YAAY,SAAS,qBAAqB,MAAM,cAAc,WAAW,CAAC;EAC1E,cAAc,SAAS,MAAM,cAAc,aAAa;EACxD;;AAGF,SAAS,qBAAqB,UAA0C;AACvE,KAAI,SAAS,SAAS,WACrB,QAAO,EAAE,MAAM,YAAY;AAE5B,QAAO;EACN,MAAM;EACN,UAAU,SAAS,SAAS,SAAS;EACrC"}
@@ -0,0 +1,8 @@
1
+ //#region src/domain/aggregates/karte/KarteId.ts
2
+ function karteId(value) {
3
+ return value;
4
+ }
5
+ //#endregion
6
+ exports.karteId = karteId;
7
+
8
+ //# sourceMappingURL=KarteId.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KarteId.cjs","names":[],"sources":["../../../../src/domain/aggregates/karte/KarteId.ts"],"sourcesContent":["/** カルテID — カルテを一意に識別するブランド型 */\nexport type KarteId = string & { readonly __brand: unique symbol };\n\nexport function karteId(value: string): KarteId {\n\treturn value as KarteId;\n}\n"],"mappings":";AAGA,SAAgB,QAAQ,OAAwB;AAC/C,QAAO"}
@@ -0,0 +1,9 @@
1
+ //#region src/domain/aggregates/karte/KarteId.d.ts
2
+ /** カルテID — カルテを一意に識別するブランド型 */
3
+ type KarteId = string & {
4
+ readonly __brand: unique symbol;
5
+ };
6
+ declare function karteId(value: string): KarteId;
7
+ //#endregion
8
+ export { KarteId, karteId };
9
+ //# sourceMappingURL=KarteId.d.cts.map
@@ -0,0 +1,9 @@
1
+ //#region src/domain/aggregates/karte/KarteId.d.ts
2
+ /** カルテID — カルテを一意に識別するブランド型 */
3
+ type KarteId = string & {
4
+ readonly __brand: unique symbol;
5
+ };
6
+ declare function karteId(value: string): KarteId;
7
+ //#endregion
8
+ export { KarteId, karteId };
9
+ //# sourceMappingURL=KarteId.d.mts.map
@@ -0,0 +1,8 @@
1
+ //#region src/domain/aggregates/karte/KarteId.ts
2
+ function karteId(value) {
3
+ return value;
4
+ }
5
+ //#endregion
6
+ export { karteId };
7
+
8
+ //# sourceMappingURL=KarteId.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KarteId.mjs","names":[],"sources":["../../../../src/domain/aggregates/karte/KarteId.ts"],"sourcesContent":["/** カルテID — カルテを一意に識別するブランド型 */\nexport type KarteId = string & { readonly __brand: unique symbol };\n\nexport function karteId(value: string): KarteId {\n\treturn value as KarteId;\n}\n"],"mappings":";AAGA,SAAgB,QAAQ,OAAwB;AAC/C,QAAO"}
@@ -0,0 +1,12 @@
1
+ import { KarteId } from "./KarteId.cjs";
2
+ import { Karte } from "./Karte.cjs";
3
+
4
+ //#region src/domain/aggregates/karte/KarteRepository.d.ts
5
+ interface KarteRepository {
6
+ findById(id: KarteId): Promise<Karte | null>;
7
+ findAll(): Promise<Karte[]>;
8
+ save(karte: Karte): Promise<void>;
9
+ }
10
+ //#endregion
11
+ export { KarteRepository };
12
+ //# sourceMappingURL=KarteRepository.d.cts.map
@@ -0,0 +1,12 @@
1
+ import { KarteId } from "./KarteId.mjs";
2
+ import { Karte } from "./Karte.mjs";
3
+
4
+ //#region src/domain/aggregates/karte/KarteRepository.d.ts
5
+ interface KarteRepository {
6
+ findById(id: KarteId): Promise<Karte | null>;
7
+ findAll(): Promise<Karte[]>;
8
+ save(karte: Karte): Promise<void>;
9
+ }
10
+ //#endregion
11
+ export { KarteRepository };
12
+ //# sourceMappingURL=KarteRepository.d.mts.map
@@ -0,0 +1,7 @@
1
+ //#region src/domain/aggregates/karte/Resolution.ts
2
+ /** 解決ステータスの選択肢一覧 */
3
+ const RESOLUTION_TYPES = ["resolved", "unresolved"];
4
+ //#endregion
5
+ exports.RESOLUTION_TYPES = RESOLUTION_TYPES;
6
+
7
+ //# sourceMappingURL=Resolution.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Resolution.cjs","names":[],"sources":["../../../../src/domain/aggregates/karte/Resolution.ts"],"sourcesContent":["import type { Recorded } from \"../../shared\";\nimport type { FollowUp } from \"./FollowUp\";\n\n/**\n * 解決ステータス — 相談が解決したかどうか\n *\n * 未解決の場合、後処理は過去データでは未記録の場合がある。\n * FDM原則に従い、Recorded型で明示する。\n */\nexport type Resolution =\n\t| { readonly type: \"resolved\" }\n\t| {\n\t\t\treadonly type: \"unresolved\";\n\t\t\t/** 後処理 */\n\t\t\treadonly followUp: Recorded<FollowUp>;\n\t };\n\n/** 解決ステータスの選択肢一覧 */\nexport const RESOLUTION_TYPES = [\n\t\"resolved\",\n\t\"unresolved\",\n] as const satisfies readonly Resolution[\"type\"][];\n"],"mappings":";;AAkBA,MAAa,mBAAmB,CAC/B,YACA,aACA"}
@@ -0,0 +1,21 @@
1
+ import { Recorded } from "../../shared/Recorded.cjs";
2
+ import { FollowUp } from "./FollowUp.cjs";
3
+
4
+ //#region src/domain/aggregates/karte/Resolution.d.ts
5
+ /**
6
+ * 解決ステータス — 相談が解決したかどうか
7
+ *
8
+ * 未解決の場合、後処理は過去データでは未記録の場合がある。
9
+ * FDM原則に従い、Recorded型で明示する。
10
+ */
11
+ type Resolution = {
12
+ readonly type: "resolved";
13
+ } | {
14
+ readonly type: "unresolved"; /** 後処理 */
15
+ readonly followUp: Recorded<FollowUp>;
16
+ };
17
+ /** 解決ステータスの選択肢一覧 */
18
+ declare const RESOLUTION_TYPES: readonly ["resolved", "unresolved"];
19
+ //#endregion
20
+ export { RESOLUTION_TYPES, Resolution };
21
+ //# sourceMappingURL=Resolution.d.cts.map
@@ -0,0 +1,21 @@
1
+ import { Recorded } from "../../shared/Recorded.mjs";
2
+ import { FollowUp } from "./FollowUp.mjs";
3
+
4
+ //#region src/domain/aggregates/karte/Resolution.d.ts
5
+ /**
6
+ * 解決ステータス — 相談が解決したかどうか
7
+ *
8
+ * 未解決の場合、後処理は過去データでは未記録の場合がある。
9
+ * FDM原則に従い、Recorded型で明示する。
10
+ */
11
+ type Resolution = {
12
+ readonly type: "resolved";
13
+ } | {
14
+ readonly type: "unresolved"; /** 後処理 */
15
+ readonly followUp: Recorded<FollowUp>;
16
+ };
17
+ /** 解決ステータスの選択肢一覧 */
18
+ declare const RESOLUTION_TYPES: readonly ["resolved", "unresolved"];
19
+ //#endregion
20
+ export { RESOLUTION_TYPES, Resolution };
21
+ //# sourceMappingURL=Resolution.d.mts.map
@@ -0,0 +1,7 @@
1
+ //#region src/domain/aggregates/karte/Resolution.ts
2
+ /** 解決ステータスの選択肢一覧 */
3
+ const RESOLUTION_TYPES = ["resolved", "unresolved"];
4
+ //#endregion
5
+ export { RESOLUTION_TYPES };
6
+
7
+ //# sourceMappingURL=Resolution.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Resolution.mjs","names":[],"sources":["../../../../src/domain/aggregates/karte/Resolution.ts"],"sourcesContent":["import type { Recorded } from \"../../shared\";\nimport type { FollowUp } from \"./FollowUp\";\n\n/**\n * 解決ステータス — 相談が解決したかどうか\n *\n * 未解決の場合、後処理は過去データでは未記録の場合がある。\n * FDM原則に従い、Recorded型で明示する。\n */\nexport type Resolution =\n\t| { readonly type: \"resolved\" }\n\t| {\n\t\t\treadonly type: \"unresolved\";\n\t\t\t/** 後処理 */\n\t\t\treadonly followUp: Recorded<FollowUp>;\n\t };\n\n/** 解決ステータスの選択肢一覧 */\nexport const RESOLUTION_TYPES = [\n\t\"resolved\",\n\t\"unresolved\",\n] as const satisfies readonly Resolution[\"type\"][];\n"],"mappings":";;AAkBA,MAAa,mBAAmB,CAC/B,YACA,aACA"}
@@ -0,0 +1,22 @@
1
+ import { NonEmptyArray } from "../../base/NonEmptyArray.cjs";
2
+ import { Assignee } from "./Assignee.cjs";
3
+ import { Recorded } from "../../shared/Recorded.cjs";
4
+ import { Resolution } from "./Resolution.cjs";
5
+ import { WorkDuration } from "./WorkDuration.cjs";
6
+
7
+ //#region src/domain/aggregates/karte/SupportRecord.d.ts
8
+ /**
9
+ * 対応記録
10
+ *
11
+ * 相談に対して行った対応の記録。
12
+ * 過去データでは各フィールドが未記録の場合がある。
13
+ */
14
+ type SupportRecord = {
15
+ /** 対応者一覧 */readonly assignees: Recorded<NonEmptyArray<Assignee>>; /** 対応内容 */
16
+ readonly content: Recorded<string>; /** 解決ステータス */
17
+ readonly resolution: Recorded<Resolution>; /** 作業時間 */
18
+ readonly workDuration: Recorded<WorkDuration>;
19
+ };
20
+ //#endregion
21
+ export { SupportRecord };
22
+ //# sourceMappingURL=SupportRecord.d.cts.map
@@ -0,0 +1,22 @@
1
+ import { NonEmptyArray } from "../../base/NonEmptyArray.mjs";
2
+ import { Assignee } from "./Assignee.mjs";
3
+ import { Recorded } from "../../shared/Recorded.mjs";
4
+ import { Resolution } from "./Resolution.mjs";
5
+ import { WorkDuration } from "./WorkDuration.mjs";
6
+
7
+ //#region src/domain/aggregates/karte/SupportRecord.d.ts
8
+ /**
9
+ * 対応記録
10
+ *
11
+ * 相談に対して行った対応の記録。
12
+ * 過去データでは各フィールドが未記録の場合がある。
13
+ */
14
+ type SupportRecord = {
15
+ /** 対応者一覧 */readonly assignees: Recorded<NonEmptyArray<Assignee>>; /** 対応内容 */
16
+ readonly content: Recorded<string>; /** 解決ステータス */
17
+ readonly resolution: Recorded<Resolution>; /** 作業時間 */
18
+ readonly workDuration: Recorded<WorkDuration>;
19
+ };
20
+ //#endregion
21
+ export { SupportRecord };
22
+ //# sourceMappingURL=SupportRecord.d.mts.map
@@ -0,0 +1,11 @@
1
+ const require_DomainExceptions = require("../../exceptions/DomainExceptions.cjs");
2
+ //#region src/domain/aggregates/karte/WorkDuration.ts
3
+ /** 作業時間を生成する — 0以上の整数でなければ例外 */
4
+ function workDuration(minutes) {
5
+ if (!Number.isInteger(minutes) || minutes < 0) throw new require_DomainExceptions.InvalidWorkDurationException(minutes);
6
+ return minutes;
7
+ }
8
+ //#endregion
9
+ exports.workDuration = workDuration;
10
+
11
+ //# sourceMappingURL=WorkDuration.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkDuration.cjs","names":["InvalidWorkDurationException"],"sources":["../../../../src/domain/aggregates/karte/WorkDuration.ts"],"sourcesContent":["import { InvalidWorkDurationException } from \"../../exceptions\";\n\n/** 作業時間(分) — 0以上の整数であることを保証する */\nexport type WorkDuration = number & { readonly __brand: unique symbol };\n\n/** 作業時間を生成する — 0以上の整数でなければ例外 */\nexport function workDuration(minutes: number): WorkDuration {\n\tif (!Number.isInteger(minutes) || minutes < 0) {\n\t\tthrow new InvalidWorkDurationException(minutes);\n\t}\n\treturn minutes as WorkDuration;\n}\n"],"mappings":";;;AAMA,SAAgB,aAAa,SAA+B;AAC3D,KAAI,CAAC,OAAO,UAAU,QAAQ,IAAI,UAAU,EAC3C,OAAM,IAAIA,yBAAAA,6BAA6B,QAAQ;AAEhD,QAAO"}
@@ -0,0 +1,10 @@
1
+ //#region src/domain/aggregates/karte/WorkDuration.d.ts
2
+ /** 作業時間(分) — 0以上の整数であることを保証する */
3
+ type WorkDuration = number & {
4
+ readonly __brand: unique symbol;
5
+ };
6
+ /** 作業時間を生成する — 0以上の整数でなければ例外 */
7
+ declare function workDuration(minutes: number): WorkDuration;
8
+ //#endregion
9
+ export { WorkDuration, workDuration };
10
+ //# sourceMappingURL=WorkDuration.d.cts.map
@@ -0,0 +1,10 @@
1
+ //#region src/domain/aggregates/karte/WorkDuration.d.ts
2
+ /** 作業時間(分) — 0以上の整数であることを保証する */
3
+ type WorkDuration = number & {
4
+ readonly __brand: unique symbol;
5
+ };
6
+ /** 作業時間を生成する — 0以上の整数でなければ例外 */
7
+ declare function workDuration(minutes: number): WorkDuration;
8
+ //#endregion
9
+ export { WorkDuration, workDuration };
10
+ //# sourceMappingURL=WorkDuration.d.mts.map
@@ -0,0 +1,11 @@
1
+ import { InvalidWorkDurationException } from "../../exceptions/DomainExceptions.mjs";
2
+ //#region src/domain/aggregates/karte/WorkDuration.ts
3
+ /** 作業時間を生成する — 0以上の整数でなければ例外 */
4
+ function workDuration(minutes) {
5
+ if (!Number.isInteger(minutes) || minutes < 0) throw new InvalidWorkDurationException(minutes);
6
+ return minutes;
7
+ }
8
+ //#endregion
9
+ export { workDuration };
10
+
11
+ //# sourceMappingURL=WorkDuration.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkDuration.mjs","names":[],"sources":["../../../../src/domain/aggregates/karte/WorkDuration.ts"],"sourcesContent":["import { InvalidWorkDurationException } from \"../../exceptions\";\n\n/** 作業時間(分) — 0以上の整数であることを保証する */\nexport type WorkDuration = number & { readonly __brand: unique symbol };\n\n/** 作業時間を生成する — 0以上の整数でなければ例外 */\nexport function workDuration(minutes: number): WorkDuration {\n\tif (!Number.isInteger(minutes) || minutes < 0) {\n\t\tthrow new InvalidWorkDurationException(minutes);\n\t}\n\treturn minutes as WorkDuration;\n}\n"],"mappings":";;;AAMA,SAAgB,aAAa,SAA+B;AAC3D,KAAI,CAAC,OAAO,UAAU,QAAQ,IAAI,UAAU,EAC3C,OAAM,IAAI,6BAA6B,QAAQ;AAEhD,QAAO"}
@@ -0,0 +1,9 @@
1
+ require("./Assignee.cjs");
2
+ require("./ConsultedAt.cjs");
3
+ require("./Karte.cjs");
4
+ require("./KarteId.cjs");
5
+ require("./Client.cjs");
6
+ require("./ConsultationCategory.cjs");
7
+ require("./FollowUp.cjs");
8
+ require("./Resolution.cjs");
9
+ require("./WorkDuration.cjs");
@@ -0,0 +1,10 @@
1
+ import "./Assignee.mjs";
2
+ import "./ConsultedAt.mjs";
3
+ import "./Karte.mjs";
4
+ import "./KarteId.mjs";
5
+ import "./Client.mjs";
6
+ import "./ConsultationCategory.mjs";
7
+ import "./FollowUp.mjs";
8
+ import "./Resolution.mjs";
9
+ import "./WorkDuration.mjs";
10
+ export {};