@dssp/supervision 1.0.0-alpha.1 → 1.0.0-alpha.101

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 (446) hide show
  1. package/dist-client/graphql/building-inspection.d.ts +1 -0
  2. package/dist-client/graphql/building-inspection.js +102 -0
  3. package/dist-client/graphql/building-inspection.js.map +1 -0
  4. package/dist-client/pages/action-plan/action-plan-importer.js.map +1 -1
  5. package/dist-client/pages/action-plan/action-plan-list-page.d.ts +1 -2
  6. package/dist-client/pages/action-plan/action-plan-list-page.js +1 -2
  7. package/dist-client/pages/action-plan/action-plan-list-page.js.map +1 -1
  8. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +22 -0
  9. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +171 -0
  10. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +1 -0
  11. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +71 -0
  12. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +1406 -0
  13. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +1 -0
  14. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement_old_ai.d.ts +59 -0
  15. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement_old_ai.js +868 -0
  16. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement_old_ai.js.map +1 -0
  17. package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +8 -6
  18. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +116 -65
  19. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -1
  20. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +11 -0
  21. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +147 -72
  22. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
  23. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -1
  24. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +94 -25
  25. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
  26. package/dist-client/pages/building-inspection/building-inspection-list.d.ts +28 -4
  27. package/dist-client/pages/building-inspection/building-inspection-list.js +377 -35
  28. package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
  29. package/dist-client/pages/building-inspection/building-inspection-management.d.ts +82 -0
  30. package/dist-client/pages/building-inspection/building-inspection-management.js +1527 -0
  31. package/dist-client/pages/building-inspection/building-inspection-management.js.map +1 -0
  32. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +46 -14
  33. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
  34. package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +27 -0
  35. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +542 -0
  36. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
  37. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.d.ts +18 -0
  38. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js +630 -0
  39. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js.map +1 -0
  40. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.d.ts +10 -0
  41. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js +219 -0
  42. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js.map +1 -0
  43. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.d.ts +25 -0
  44. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js +546 -0
  45. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js.map +1 -0
  46. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.d.ts +42 -0
  47. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js +738 -0
  48. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js.map +1 -0
  49. package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
  50. package/dist-client/pages/building-inspection/component/image-preview-popup.js +348 -0
  51. package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
  52. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +25 -0
  53. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +491 -0
  54. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
  55. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +31 -0
  56. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +485 -0
  57. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
  58. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
  59. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +416 -0
  60. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
  61. package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +4 -2
  62. package/dist-client/pages/building-inspection/component/inspection-event-provider.js +156 -37
  63. package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
  64. package/dist-client/pages/building-inspection/inspection-create-popup.js +27 -13
  65. package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
  66. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.d.ts +4 -0
  67. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +844 -0
  68. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js.map +1 -0
  69. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +60 -0
  70. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +1135 -0
  71. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -0
  72. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +2 -0
  73. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +740 -0
  74. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -0
  75. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +19 -0
  76. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +205 -0
  77. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +1 -0
  78. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +1 -0
  79. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +304 -0
  80. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +1 -0
  81. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +15 -0
  82. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +430 -0
  83. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +1 -0
  84. package/dist-client/pages/checklist/attachment-list-popup.d.ts +1 -0
  85. package/dist-client/pages/checklist/attachment-list-popup.js +251 -69
  86. package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
  87. package/dist-client/pages/checklist/checklist-view.d.ts +8 -0
  88. package/dist-client/pages/checklist/checklist-view.js +557 -191
  89. package/dist-client/pages/checklist/checklist-view.js.map +1 -1
  90. package/dist-client/pages/checklist/comment-list-popup.js +15 -5
  91. package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
  92. package/dist-client/pages/checklist/file-preview-popup.js +0 -1
  93. package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
  94. package/dist-client/pages/checklist/inspection-info-popup.d.ts +49 -0
  95. package/dist-client/pages/checklist/inspection-info-popup.js +683 -0
  96. package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
  97. package/dist-client/pages/checklist/inspection-tab-popup.d.ts +18 -0
  98. package/dist-client/pages/checklist/inspection-tab-popup.js +196 -0
  99. package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
  100. package/dist-client/pages/checklist/kcs-criteria-popup.d.ts +16 -0
  101. package/dist-client/pages/checklist/kcs-criteria-popup.js +179 -0
  102. package/dist-client/pages/checklist/kcs-criteria-popup.js.map +1 -0
  103. package/dist-client/pages/checklist-database/checklist-database.d.ts +35 -0
  104. package/dist-client/pages/checklist-database/checklist-database.js +540 -0
  105. package/dist-client/pages/checklist-database/checklist-database.js.map +1 -0
  106. package/dist-client/pages/checklist-template/checklist-template-item.js +44 -3
  107. package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
  108. package/dist-client/pages/checklist-template/checklist-template-list.js +4 -3
  109. package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
  110. package/dist-client/pages/checklist-template/checklist-type-management.d.ts +2 -2
  111. package/dist-client/pages/checklist-template/checklist-type-management.js.map +1 -1
  112. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.d.ts +2 -0
  113. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js +223 -0
  114. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js.map +1 -0
  115. package/dist-client/pages/checklist-template/construction-checklist-template-list.d.ts +55 -0
  116. package/dist-client/pages/checklist-template/construction-checklist-template-list.js +404 -0
  117. package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +1 -0
  118. package/dist-client/pages/issue/issue-importer.js.map +1 -1
  119. package/dist-client/pages/issue/issue-list-page.d.ts +1 -2
  120. package/dist-client/pages/issue/issue-list-page.js +1 -2
  121. package/dist-client/pages/issue/issue-list-page.js.map +1 -1
  122. package/dist-client/pages/project-checklist/project-checklist-management.d.ts +62 -0
  123. package/dist-client/pages/project-checklist/project-checklist-management.js +1145 -0
  124. package/dist-client/pages/project-checklist/project-checklist-management.js.map +1 -0
  125. package/dist-client/pages/project-report/project-report-importer.js.map +1 -1
  126. package/dist-client/pages/project-report/project-report-list-page.d.ts +1 -2
  127. package/dist-client/pages/project-report/project-report-list-page.js +1 -2
  128. package/dist-client/pages/project-report/project-report-list-page.js.map +1 -1
  129. package/dist-client/pages/supervisor/supervisor-importer.js.map +1 -1
  130. package/dist-client/pages/supervisor/supervisor-list-page.d.ts +1 -2
  131. package/dist-client/pages/supervisor/supervisor-list-page.js +1 -2
  132. package/dist-client/pages/supervisor/supervisor-list-page.js.map +1 -1
  133. package/dist-client/route.d.ts +1 -1
  134. package/dist-client/route.js +21 -0
  135. package/dist-client/route.js.map +1 -1
  136. package/dist-client/stt/speech-to-text.d.ts +41 -0
  137. package/dist-client/stt/speech-to-text.js +331 -0
  138. package/dist-client/stt/speech-to-text.js.map +1 -0
  139. package/dist-client/stt/stt-utils.d.ts +28 -0
  140. package/dist-client/stt/stt-utils.js +146 -0
  141. package/dist-client/stt/stt-utils.js.map +1 -0
  142. package/dist-client/tsconfig.tsbuildinfo +1 -1
  143. package/dist-server/middlewares/index.js +1 -2
  144. package/dist-server/middlewares/index.js.map +1 -1
  145. package/dist-server/service/action-plan/action-plan-mutation.js +7 -8
  146. package/dist-server/service/action-plan/action-plan-mutation.js.map +1 -1
  147. package/dist-server/service/action-plan/action-plan-query.d.ts +2 -2
  148. package/dist-server/service/action-plan/action-plan-query.js +7 -13
  149. package/dist-server/service/action-plan/action-plan-query.js.map +1 -1
  150. package/dist-server/service/action-plan/action-plan-type.js +6 -6
  151. package/dist-server/service/action-plan/action-plan-type.js.map +1 -1
  152. package/dist-server/service/action-plan/action-plan.js +3 -3
  153. package/dist-server/service/action-plan/action-plan.js.map +1 -1
  154. package/dist-server/service/action-plan/index.d.ts +0 -1
  155. package/dist-server/service/action-plan/index.js +1 -2
  156. package/dist-server/service/action-plan/index.js.map +1 -1
  157. package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +3 -3
  158. package/dist-server/service/building-inspection/building-inspection-mutation.js +185 -40
  159. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
  160. package/dist-server/service/building-inspection/building-inspection-query.d.ts +9 -6
  161. package/dist-server/service/building-inspection/building-inspection-query.js +199 -54
  162. package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
  163. package/dist-server/service/building-inspection/building-inspection-type.d.ts +38 -10
  164. package/dist-server/service/building-inspection/building-inspection-type.js +142 -29
  165. package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
  166. package/dist-server/service/building-inspection/building-inspection.d.ts +14 -0
  167. package/dist-server/service/building-inspection/building-inspection.js +78 -7
  168. package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
  169. package/dist-server/service/building-inspection/index.d.ts +4 -7
  170. package/dist-server/service/building-inspection/index.js +11 -6
  171. package/dist-server/service/building-inspection/index.js.map +1 -1
  172. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
  173. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +66 -0
  174. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
  175. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
  176. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
  177. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
  178. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
  179. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
  180. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
  181. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
  182. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
  183. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
  184. package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
  185. package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
  186. package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
  187. package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
  188. package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
  189. package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
  190. package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
  191. package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
  192. package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
  193. package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +35 -0
  194. package/dist-server/service/building-inspection-history/building-inspection-history.js +162 -0
  195. package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
  196. package/dist-server/service/{building-inspection → building-inspection-history}/event-subscriber.d.ts +1 -1
  197. package/dist-server/service/{building-inspection → building-inspection-history}/event-subscriber.js +3 -3
  198. package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
  199. package/dist-server/service/building-inspection-history/index.d.ts +6 -0
  200. package/dist-server/service/building-inspection-history/index.js +10 -0
  201. package/dist-server/service/building-inspection-history/index.js.map +1 -0
  202. package/dist-server/service/checklist/checklist-mutation.d.ts +0 -5
  203. package/dist-server/service/checklist/checklist-mutation.js +3 -69
  204. package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
  205. package/dist-server/service/checklist/checklist-query.d.ts +7 -0
  206. package/dist-server/service/checklist/checklist-query.js +85 -2
  207. package/dist-server/service/checklist/checklist-query.js.map +1 -1
  208. package/dist-server/service/checklist/checklist-type.d.ts +0 -13
  209. package/dist-server/service/checklist/checklist-type.js +3 -51
  210. package/dist-server/service/checklist/checklist-type.js.map +1 -1
  211. package/dist-server/service/checklist/checklist.d.ts +38 -3
  212. package/dist-server/service/checklist/checklist.js +133 -17
  213. package/dist-server/service/checklist/checklist.js.map +1 -1
  214. package/dist-server/service/checklist/event-subscriber.d.ts +2 -2
  215. package/dist-server/service/checklist/event-subscriber.js +4 -4
  216. package/dist-server/service/checklist/event-subscriber.js.map +1 -1
  217. package/dist-server/service/checklist/index.d.ts +1 -4
  218. package/dist-server/service/checklist/index.js +2 -5
  219. package/dist-server/service/checklist/index.js.map +1 -1
  220. package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
  221. package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
  222. package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
  223. package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
  224. package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
  225. package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
  226. package/dist-server/service/checklist-history/checklist-history.d.ts +50 -0
  227. package/dist-server/service/checklist-history/checklist-history.js +239 -0
  228. package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
  229. package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
  230. package/dist-server/service/checklist-history/event-subscriber.js +21 -0
  231. package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
  232. package/dist-server/service/checklist-history/index.d.ts +6 -0
  233. package/dist-server/service/checklist-history/index.js +10 -0
  234. package/dist-server/service/checklist-history/index.js.map +1 -0
  235. package/dist-server/service/checklist-item/checklist-item-mutation.d.ts +2 -0
  236. package/dist-server/service/checklist-item/checklist-item-mutation.js +28 -2
  237. package/dist-server/service/checklist-item/checklist-item-mutation.js.map +1 -1
  238. package/dist-server/service/checklist-item/checklist-item-query.d.ts +1 -1
  239. package/dist-server/service/checklist-item/checklist-item-query.js +7 -5
  240. package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
  241. package/dist-server/service/checklist-item/checklist-item-type.d.ts +5 -1
  242. package/dist-server/service/checklist-item/checklist-item-type.js +17 -3
  243. package/dist-server/service/checklist-item/checklist-item-type.js.map +1 -1
  244. package/dist-server/service/checklist-item/checklist-item.d.ts +2 -0
  245. package/dist-server/service/checklist-item/checklist-item.js +14 -4
  246. package/dist-server/service/checklist-item/checklist-item.js.map +1 -1
  247. package/dist-server/service/checklist-item/index.d.ts +2 -2
  248. package/dist-server/service/checklist-item/index.js +1 -2
  249. package/dist-server/service/checklist-item/index.js.map +1 -1
  250. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js +2 -2
  251. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js.map +1 -1
  252. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +1 -0
  253. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +35 -8
  254. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
  255. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +2 -2
  256. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +1 -1
  257. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +6 -6
  258. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +1 -1
  259. package/dist-server/service/checklist-item-comment/checklist-item-comment.js +2 -2
  260. package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +1 -1
  261. package/dist-server/service/checklist-item-comment/index.d.ts +0 -2
  262. package/dist-server/service/checklist-item-comment/index.js +1 -3
  263. package/dist-server/service/checklist-item-comment/index.js.map +1 -1
  264. package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
  265. package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
  266. package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
  267. package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
  268. package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
  269. package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
  270. package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +27 -0
  271. package/dist-server/service/checklist-item-history/checklist-item-history.js +133 -0
  272. package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
  273. package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
  274. package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
  275. package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
  276. package/dist-server/service/checklist-item-history/index.d.ts +6 -0
  277. package/dist-server/service/checklist-item-history/index.js +10 -0
  278. package/dist-server/service/checklist-item-history/index.js.map +1 -0
  279. package/dist-server/service/checklist-template/checklist-template-mutation.js +2 -2
  280. package/dist-server/service/checklist-template/checklist-template-mutation.js.map +1 -1
  281. package/dist-server/service/checklist-template/checklist-template-query.d.ts +1 -1
  282. package/dist-server/service/checklist-template/checklist-template-query.js +4 -7
  283. package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -1
  284. package/dist-server/service/checklist-template/checklist-template-type.js +4 -4
  285. package/dist-server/service/checklist-template/checklist-template-type.js.map +1 -1
  286. package/dist-server/service/checklist-template/checklist-template.js +2 -2
  287. package/dist-server/service/checklist-template/checklist-template.js.map +1 -1
  288. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +15 -3
  289. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -1
  290. package/dist-server/service/checklist-template-item/checklist-template-item-query.js +2 -2
  291. package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +1 -1
  292. package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +3 -0
  293. package/dist-server/service/checklist-template-item/checklist-template-item-type.js +13 -4
  294. package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -1
  295. package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +7 -0
  296. package/dist-server/service/checklist-template-item/checklist-template-item.js +26 -8
  297. package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
  298. package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +2 -0
  299. package/dist-server/service/checklist-template-item/spec-matching-service.js +51 -0
  300. package/dist-server/service/checklist-template-item/spec-matching-service.js.map +1 -0
  301. package/dist-server/service/checklist-type/checklist-type-mutation.js +2 -2
  302. package/dist-server/service/checklist-type/checklist-type-mutation.js.map +1 -1
  303. package/dist-server/service/checklist-type/checklist-type-query.d.ts +1 -1
  304. package/dist-server/service/checklist-type/checklist-type-query.js +4 -7
  305. package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
  306. package/dist-server/service/checklist-type/checklist-type-type.js +4 -4
  307. package/dist-server/service/checklist-type/checklist-type-type.js.map +1 -1
  308. package/dist-server/service/checklist-type/checklist-type.js +3 -3
  309. package/dist-server/service/checklist-type/checklist-type.js.map +1 -1
  310. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.d.ts +7 -0
  311. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js +107 -0
  312. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js.map +1 -0
  313. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.d.ts +10 -0
  314. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js +62 -0
  315. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js.map +1 -0
  316. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.d.ts +11 -0
  317. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js +43 -0
  318. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js.map +1 -0
  319. package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts +18 -0
  320. package/dist-server/service/construction-checklist-template/construction-checklist-template.js +80 -0
  321. package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map +1 -0
  322. package/dist-server/service/construction-checklist-template/index.d.ts +5 -0
  323. package/dist-server/service/construction-checklist-template/index.js +9 -0
  324. package/dist-server/service/construction-checklist-template/index.js.map +1 -0
  325. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.d.ts +6 -0
  326. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js +56 -0
  327. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js.map +1 -0
  328. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.d.ts +9 -0
  329. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js +53 -0
  330. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js.map +1 -0
  331. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.d.ts +17 -0
  332. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js +67 -0
  333. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js.map +1 -0
  334. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.d.ts +24 -0
  335. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js +113 -0
  336. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js.map +1 -0
  337. package/dist-server/service/construction-checklist-template-item/index.d.ts +5 -0
  338. package/dist-server/service/construction-checklist-template-item/index.js +9 -0
  339. package/dist-server/service/construction-checklist-template-item/index.js.map +1 -0
  340. package/dist-server/service/field-document/field-document-auto-file.d.ts +21 -0
  341. package/dist-server/service/field-document/field-document-auto-file.js +47 -0
  342. package/dist-server/service/field-document/field-document-auto-file.js.map +1 -0
  343. package/dist-server/service/field-document/field-document-mutation.d.ts +9 -0
  344. package/dist-server/service/field-document/field-document-mutation.js +139 -0
  345. package/dist-server/service/field-document/field-document-mutation.js.map +1 -0
  346. package/dist-server/service/field-document/field-document-query.d.ts +14 -0
  347. package/dist-server/service/field-document/field-document-query.js +120 -0
  348. package/dist-server/service/field-document/field-document-query.js.map +1 -0
  349. package/dist-server/service/field-document/field-document-summary-service.d.ts +10 -0
  350. package/dist-server/service/field-document/field-document-summary-service.js +79 -0
  351. package/dist-server/service/field-document/field-document-summary-service.js.map +1 -0
  352. package/dist-server/service/field-document/field-document-type.d.ts +24 -0
  353. package/dist-server/service/field-document/field-document-type.js +88 -0
  354. package/dist-server/service/field-document/field-document-type.js.map +1 -0
  355. package/dist-server/service/field-document/field-document.d.ts +29 -0
  356. package/dist-server/service/field-document/field-document.js +127 -0
  357. package/dist-server/service/field-document/field-document.js.map +1 -0
  358. package/dist-server/service/field-document/index.d.ts +5 -0
  359. package/dist-server/service/field-document/index.js +9 -0
  360. package/dist-server/service/field-document/index.js.map +1 -0
  361. package/dist-server/service/index.d.ts +10 -3
  362. package/dist-server/service/index.js +42 -13
  363. package/dist-server/service/index.js.map +1 -1
  364. package/dist-server/service/issue/index.d.ts +0 -1
  365. package/dist-server/service/issue/index.js +1 -2
  366. package/dist-server/service/issue/index.js.map +1 -1
  367. package/dist-server/service/issue/issue-mutation.js +7 -8
  368. package/dist-server/service/issue/issue-mutation.js.map +1 -1
  369. package/dist-server/service/issue/issue-query.d.ts +2 -2
  370. package/dist-server/service/issue/issue-query.js +7 -13
  371. package/dist-server/service/issue/issue-query.js.map +1 -1
  372. package/dist-server/service/issue/issue-type.js +6 -6
  373. package/dist-server/service/issue/issue-type.js.map +1 -1
  374. package/dist-server/service/issue/issue.js +3 -3
  375. package/dist-server/service/issue/issue.js.map +1 -1
  376. package/dist-server/service/project-checklist/index.d.ts +5 -0
  377. package/dist-server/service/project-checklist/index.js +9 -0
  378. package/dist-server/service/project-checklist/index.js.map +1 -0
  379. package/dist-server/service/project-checklist/project-checklist-mutation.d.ts +7 -0
  380. package/dist-server/service/project-checklist/project-checklist-mutation.js +118 -0
  381. package/dist-server/service/project-checklist/project-checklist-mutation.js.map +1 -0
  382. package/dist-server/service/project-checklist/project-checklist-query.d.ts +12 -0
  383. package/dist-server/service/project-checklist/project-checklist-query.js +76 -0
  384. package/dist-server/service/project-checklist/project-checklist-query.js.map +1 -0
  385. package/dist-server/service/project-checklist/project-checklist-type.d.ts +18 -0
  386. package/dist-server/service/project-checklist/project-checklist-type.js +69 -0
  387. package/dist-server/service/project-checklist/project-checklist-type.js.map +1 -0
  388. package/dist-server/service/project-checklist/project-checklist.d.ts +20 -0
  389. package/dist-server/service/project-checklist/project-checklist.js +90 -0
  390. package/dist-server/service/project-checklist/project-checklist.js.map +1 -0
  391. package/dist-server/service/project-checklist/spec-matching-service.d.ts +17 -0
  392. package/dist-server/service/project-checklist/spec-matching-service.js +140 -0
  393. package/dist-server/service/project-checklist/spec-matching-service.js.map +1 -0
  394. package/dist-server/service/project-checklist-item/index.d.ts +4 -0
  395. package/dist-server/service/project-checklist-item/index.js +9 -0
  396. package/dist-server/service/project-checklist-item/index.js.map +1 -0
  397. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.d.ts +2 -0
  398. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js +13 -0
  399. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js.map +1 -0
  400. package/dist-server/service/project-checklist-item/project-checklist-item-query.d.ts +5 -0
  401. package/dist-server/service/project-checklist-item/project-checklist-item-query.js +34 -0
  402. package/dist-server/service/project-checklist-item/project-checklist-item-query.js.map +1 -0
  403. package/dist-server/service/project-checklist-item/project-checklist-item-type.d.ts +5 -0
  404. package/dist-server/service/project-checklist-item/project-checklist-item-type.js +21 -0
  405. package/dist-server/service/project-checklist-item/project-checklist-item-type.js.map +1 -0
  406. package/dist-server/service/project-checklist-item/project-checklist-item.d.ts +19 -0
  407. package/dist-server/service/project-checklist-item/project-checklist-item.js +92 -0
  408. package/dist-server/service/project-checklist-item/project-checklist-item.js.map +1 -0
  409. package/dist-server/service/project-report/index.d.ts +0 -1
  410. package/dist-server/service/project-report/index.js +1 -2
  411. package/dist-server/service/project-report/index.js.map +1 -1
  412. package/dist-server/service/project-report/project-report-mutation.js +7 -8
  413. package/dist-server/service/project-report/project-report-mutation.js.map +1 -1
  414. package/dist-server/service/project-report/project-report-query.d.ts +2 -2
  415. package/dist-server/service/project-report/project-report-query.js +7 -13
  416. package/dist-server/service/project-report/project-report-query.js.map +1 -1
  417. package/dist-server/service/project-report/project-report-type.js +6 -6
  418. package/dist-server/service/project-report/project-report-type.js.map +1 -1
  419. package/dist-server/service/project-report/project-report.d.ts +0 -2
  420. package/dist-server/service/project-report/project-report.js +3 -9
  421. package/dist-server/service/project-report/project-report.js.map +1 -1
  422. package/dist-server/service/supervisor/index.d.ts +0 -1
  423. package/dist-server/service/supervisor/index.js +1 -2
  424. package/dist-server/service/supervisor/index.js.map +1 -1
  425. package/dist-server/service/supervisor/supervisor-mutation.js +7 -8
  426. package/dist-server/service/supervisor/supervisor-mutation.js.map +1 -1
  427. package/dist-server/service/supervisor/supervisor-query.d.ts +2 -2
  428. package/dist-server/service/supervisor/supervisor-query.js +7 -13
  429. package/dist-server/service/supervisor/supervisor-query.js.map +1 -1
  430. package/dist-server/service/supervisor/supervisor-type.js +6 -6
  431. package/dist-server/service/supervisor/supervisor-type.js.map +1 -1
  432. package/dist-server/service/supervisor/supervisor.js +3 -3
  433. package/dist-server/service/supervisor/supervisor.js.map +1 -1
  434. package/dist-server/tsconfig.tsbuildinfo +1 -1
  435. package/package.json +16 -13
  436. package/things-factory.config.js +11 -1
  437. package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
  438. package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
  439. package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
  440. package/dist-server/service/building-inspection/event-subscriber.js.map +0 -1
  441. package/dist-server/service/checklist/checklist-history.d.ts +0 -24
  442. package/dist-server/service/checklist/checklist-history.js +0 -120
  443. package/dist-server/service/checklist/checklist-history.js.map +0 -1
  444. package/dist-server/service/checklist-item-comment/event-subscriber.d.ts +0 -7
  445. package/dist-server/service/checklist-item-comment/event-subscriber.js +0 -21
  446. package/dist-server/service/checklist-item-comment/event-subscriber.js.map +0 -1
@@ -0,0 +1,239 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChecklistHistory = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const type_graphql_1 = require("type-graphql");
6
+ const typeorm_1 = require("typeorm");
7
+ const typeorm_history_1 = require("@operato/typeorm-history");
8
+ const auth_base_1 = require("@things-factory/auth-base");
9
+ const env_1 = require("@things-factory/env");
10
+ const checklist_1 = require("../checklist/checklist");
11
+ const building_inspection_1 = require("../building-inspection/building-inspection");
12
+ const building_inspection_history_1 = require("../building-inspection-history/building-inspection-history");
13
+ const checklist_item_history_1 = require("../checklist-item-history/checklist-item-history");
14
+ const ORMCONFIG = env_1.config.get('ormconfig', {});
15
+ const DATABASE_TYPE = ORMCONFIG.type;
16
+ let ChecklistHistory = class ChecklistHistory {
17
+ };
18
+ exports.ChecklistHistory = ChecklistHistory;
19
+ tslib_1.__decorate([
20
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
21
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
22
+ tslib_1.__metadata("design:type", String)
23
+ ], ChecklistHistory.prototype, "id", void 0);
24
+ tslib_1.__decorate([
25
+ (0, typeorm_1.Column)({ nullable: true, comment: '이름' }),
26
+ (0, type_graphql_1.Field)({ nullable: true }),
27
+ tslib_1.__metadata("design:type", String)
28
+ ], ChecklistHistory.prototype, "name", void 0);
29
+ tslib_1.__decorate([
30
+ (0, typeorm_1.Column)({ nullable: true, comment: '문서 번호 - 검측: 동(4자리)-층(3자리)-시퀀스(6자리), 공정표: 날짜(6자리)-시퀀스(6자리)' }),
31
+ (0, type_graphql_1.Field)({ nullable: true }),
32
+ tslib_1.__metadata("design:type", String)
33
+ ], ChecklistHistory.prototype, "documentNo", void 0);
34
+ tslib_1.__decorate([
35
+ (0, typeorm_1.Column)({ nullable: false, comment: '프로젝트 타입', default: building_inspection_1.ProjectType.DSSP }),
36
+ (0, type_graphql_1.Field)({ nullable: true }),
37
+ tslib_1.__metadata("design:type", String)
38
+ ], ChecklistHistory.prototype, "projectType", void 0);
39
+ tslib_1.__decorate([
40
+ (0, typeorm_1.Column)({ nullable: false, comment: '체크리스트 참조 타입 (구분 용)', default: checklist_1.ChecklistReferenceType.INSPECTION }),
41
+ (0, type_graphql_1.Field)({ nullable: true }),
42
+ tslib_1.__metadata("design:type", String)
43
+ ], ChecklistHistory.prototype, "checklistReferenceType", void 0);
44
+ tslib_1.__decorate([
45
+ (0, typeorm_1.Column)({ nullable: true, comment: '공종' }),
46
+ (0, type_graphql_1.Field)({ nullable: true }),
47
+ tslib_1.__metadata("design:type", String)
48
+ ], ChecklistHistory.prototype, "constructionType", void 0);
49
+ tslib_1.__decorate([
50
+ (0, typeorm_1.Column)({ nullable: true, comment: '세부 공종' }),
51
+ (0, type_graphql_1.Field)({ nullable: true }),
52
+ tslib_1.__metadata("design:type", String)
53
+ ], ChecklistHistory.prototype, "constructionDetailType", void 0);
54
+ tslib_1.__decorate([
55
+ (0, typeorm_1.Column)({ nullable: true, comment: '위치 (x동 x층)' }),
56
+ (0, type_graphql_1.Field)({ nullable: true }),
57
+ tslib_1.__metadata("design:type", String)
58
+ ], ChecklistHistory.prototype, "location", void 0);
59
+ tslib_1.__decorate([
60
+ (0, typeorm_1.Column)({ nullable: true, comment: '검측 도면 타입', default: '' }),
61
+ (0, type_graphql_1.Field)({ nullable: true }),
62
+ tslib_1.__metadata("design:type", String)
63
+ ], ChecklistHistory.prototype, "inspectionDrawingType", void 0);
64
+ tslib_1.__decorate([
65
+ (0, typeorm_1.Column)('simple-array', { nullable: true, comment: '검측 부위' }),
66
+ (0, type_graphql_1.Field)(() => [String], { nullable: true }),
67
+ tslib_1.__metadata("design:type", Array)
68
+ ], ChecklistHistory.prototype, "inspectionParts", void 0);
69
+ tslib_1.__decorate([
70
+ (0, typeorm_1.Column)({ nullable: true, comment: '시공자 점검일' }),
71
+ (0, type_graphql_1.Field)({ nullable: true }),
72
+ tslib_1.__metadata("design:type", Date)
73
+ ], ChecklistHistory.prototype, "constructionInspectionDate", void 0);
74
+ tslib_1.__decorate([
75
+ (0, typeorm_1.Column)({ nullable: true, comment: '감리자 점검일' }),
76
+ (0, type_graphql_1.Field)({ nullable: true }),
77
+ tslib_1.__metadata("design:type", Date)
78
+ ], ChecklistHistory.prototype, "supervisorInspectionDate", void 0);
79
+ tslib_1.__decorate([
80
+ (0, typeorm_1.Column)({ nullable: true, comment: '총괄 시공 책임자 사인' }),
81
+ (0, type_graphql_1.Field)({ nullable: true }),
82
+ tslib_1.__metadata("design:type", String)
83
+ ], ChecklistHistory.prototype, "overallConstructorSignature", void 0);
84
+ tslib_1.__decorate([
85
+ (0, typeorm_1.Column)({ nullable: true, comment: '공종별 시공 관리자 사인' }),
86
+ (0, type_graphql_1.Field)({ nullable: true }),
87
+ tslib_1.__metadata("design:type", String)
88
+ ], ChecklistHistory.prototype, "taskConstructorSignature", void 0);
89
+ tslib_1.__decorate([
90
+ (0, typeorm_1.Column)({ nullable: true, comment: '총괄 감리 책임자 사인' }),
91
+ (0, type_graphql_1.Field)({ nullable: true }),
92
+ tslib_1.__metadata("design:type", String)
93
+ ], ChecklistHistory.prototype, "overallSupervisorySignature", void 0);
94
+ tslib_1.__decorate([
95
+ (0, typeorm_1.Column)({ nullable: true, comment: '건축사보 (공종별 감리 관리자) 사인' }),
96
+ (0, type_graphql_1.Field)({ nullable: true }),
97
+ tslib_1.__metadata("design:type", String)
98
+ ], ChecklistHistory.prototype, "taskSupervisorySignature", void 0);
99
+ tslib_1.__decorate([
100
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
101
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '총괄 시공 책임자' }),
102
+ tslib_1.__metadata("design:type", auth_base_1.User)
103
+ ], ChecklistHistory.prototype, "overallConstructor", void 0);
104
+ tslib_1.__decorate([
105
+ (0, typeorm_1.RelationId)((checklist) => checklist.overallConstructor),
106
+ tslib_1.__metadata("design:type", String)
107
+ ], ChecklistHistory.prototype, "overallConstructorId", void 0);
108
+ tslib_1.__decorate([
109
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
110
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '공종별 시공 관리자' }),
111
+ tslib_1.__metadata("design:type", auth_base_1.User)
112
+ ], ChecklistHistory.prototype, "taskConstructor", void 0);
113
+ tslib_1.__decorate([
114
+ (0, typeorm_1.RelationId)((checklist) => checklist.taskConstructor),
115
+ tslib_1.__metadata("design:type", String)
116
+ ], ChecklistHistory.prototype, "taskConstructorId", void 0);
117
+ tslib_1.__decorate([
118
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
119
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '총괄 감리 책임자' }),
120
+ tslib_1.__metadata("design:type", auth_base_1.User)
121
+ ], ChecklistHistory.prototype, "overallSupervisory", void 0);
122
+ tslib_1.__decorate([
123
+ (0, typeorm_1.RelationId)((checklist) => checklist.overallSupervisory),
124
+ tslib_1.__metadata("design:type", String)
125
+ ], ChecklistHistory.prototype, "overallSupervisoryId", void 0);
126
+ tslib_1.__decorate([
127
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
128
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' }),
129
+ tslib_1.__metadata("design:type", auth_base_1.User)
130
+ ], ChecklistHistory.prototype, "taskSupervisory", void 0);
131
+ tslib_1.__decorate([
132
+ (0, typeorm_1.RelationId)((checklist) => checklist.taskSupervisory),
133
+ tslib_1.__metadata("design:type", String)
134
+ ], ChecklistHistory.prototype, "taskSupervisoryId", void 0);
135
+ tslib_1.__decorate([
136
+ (0, typeorm_1.OneToMany)(() => checklist_item_history_1.ChecklistItemHistory, checklistItem => checklistItem.checklistHistory),
137
+ (0, type_graphql_1.Field)(() => [checklist_item_history_1.ChecklistItemHistory]),
138
+ tslib_1.__metadata("design:type", Array)
139
+ ], ChecklistHistory.prototype, "checklistItemHistories", void 0);
140
+ tslib_1.__decorate([
141
+ (0, typeorm_1.OneToOne)(() => building_inspection_history_1.BuildingInspectionHistory, buildingInspectionHistory => buildingInspectionHistory.checklistHistory),
142
+ (0, type_graphql_1.Field)(() => building_inspection_history_1.BuildingInspectionHistory),
143
+ tslib_1.__metadata("design:type", building_inspection_history_1.BuildingInspectionHistory)
144
+ ], ChecklistHistory.prototype, "buildingInspectionHistory", void 0);
145
+ tslib_1.__decorate([
146
+ (0, typeorm_1.Column)({ nullable: true, comment: '검측 요청서 문서번호 - {네이밍} 검측 제02-00001호)' }) // DocumentNoType 참조
147
+ ,
148
+ (0, type_graphql_1.Field)({ nullable: true }),
149
+ tslib_1.__metadata("design:type", String)
150
+ ], ChecklistHistory.prototype, "inspectionRequestDocumentNo", void 0);
151
+ tslib_1.__decorate([
152
+ (0, typeorm_1.Column)({ nullable: true, comment: '검측 요청서 - 검측 사항' }),
153
+ (0, type_graphql_1.Field)({ nullable: true }),
154
+ tslib_1.__metadata("design:type", String)
155
+ ], ChecklistHistory.prototype, "inspectionRequestMemo", void 0);
156
+ tslib_1.__decorate([
157
+ (0, typeorm_1.Column)({ nullable: true, comment: '검측 요청서 - 요청 시간' }),
158
+ (0, type_graphql_1.Field)({ nullable: true }),
159
+ tslib_1.__metadata("design:type", Date)
160
+ ], ChecklistHistory.prototype, "inspectionRequestUpdatedAt", void 0);
161
+ tslib_1.__decorate([
162
+ (0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 문서번호 - {네이밍} 검측 제03-00001호)' }) // DocumentNoType 참조
163
+ ,
164
+ (0, type_graphql_1.Field)({ nullable: true }),
165
+ tslib_1.__metadata("design:type", String)
166
+ ], ChecklistHistory.prototype, "inspectionResultDocumentNo", void 0);
167
+ tslib_1.__decorate([
168
+ (0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 지시 사항' }),
169
+ (0, type_graphql_1.Field)({ nullable: true }),
170
+ tslib_1.__metadata("design:type", String)
171
+ ], ChecklistHistory.prototype, "inspectionResultMemo", void 0);
172
+ tslib_1.__decorate([
173
+ (0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 여부' }),
174
+ (0, type_graphql_1.Field)({ nullable: true }),
175
+ tslib_1.__metadata("design:type", String)
176
+ ], ChecklistHistory.prototype, "inspectionResultStatus", void 0);
177
+ tslib_1.__decorate([
178
+ (0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 타입' }),
179
+ (0, type_graphql_1.Field)({ nullable: true }),
180
+ tslib_1.__metadata("design:type", String)
181
+ ], ChecklistHistory.prototype, "inspectionResultType", void 0);
182
+ tslib_1.__decorate([
183
+ (0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 통보 시간' }),
184
+ (0, type_graphql_1.Field)({ nullable: true }),
185
+ tslib_1.__metadata("design:type", Date)
186
+ ], ChecklistHistory.prototype, "inspectionResultUpdatedAt", void 0);
187
+ tslib_1.__decorate([
188
+ (0, typeorm_1.Column)({ nullable: true }),
189
+ (0, type_graphql_1.Field)({ nullable: true }),
190
+ tslib_1.__metadata("design:type", Date)
191
+ ], ChecklistHistory.prototype, "createdAt", void 0);
192
+ tslib_1.__decorate([
193
+ (0, typeorm_1.CreateDateColumn)(),
194
+ (0, type_graphql_1.Field)({ nullable: true }),
195
+ tslib_1.__metadata("design:type", Date)
196
+ ], ChecklistHistory.prototype, "loggedAt", void 0);
197
+ tslib_1.__decorate([
198
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
199
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
200
+ tslib_1.__metadata("design:type", auth_base_1.User)
201
+ ], ChecklistHistory.prototype, "creator", void 0);
202
+ tslib_1.__decorate([
203
+ (0, typeorm_1.RelationId)((checklist) => checklist.creator),
204
+ tslib_1.__metadata("design:type", String)
205
+ ], ChecklistHistory.prototype, "creatorId", void 0);
206
+ tslib_1.__decorate([
207
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
208
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
209
+ tslib_1.__metadata("design:type", auth_base_1.User)
210
+ ], ChecklistHistory.prototype, "updater", void 0);
211
+ tslib_1.__decorate([
212
+ (0, typeorm_1.RelationId)((checklist) => checklist.updater),
213
+ tslib_1.__metadata("design:type", String)
214
+ ], ChecklistHistory.prototype, "updaterId", void 0);
215
+ tslib_1.__decorate([
216
+ (0, typeorm_history_1.HistoryOriginalIdColumn)({ nullable: true }),
217
+ tslib_1.__metadata("design:type", String)
218
+ ], ChecklistHistory.prototype, "originalId", void 0);
219
+ tslib_1.__decorate([
220
+ (0, typeorm_history_1.HistoryActionColumn)({
221
+ nullable: false,
222
+ type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
223
+ ? 'enum'
224
+ : DATABASE_TYPE == 'oracle'
225
+ ? 'varchar2'
226
+ : DATABASE_TYPE == 'mssql'
227
+ ? 'nvarchar'
228
+ : 'varchar',
229
+ enum: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? typeorm_history_1.HistoryActionType : undefined,
230
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
231
+ }),
232
+ tslib_1.__metadata("design:type", String)
233
+ ], ChecklistHistory.prototype, "action", void 0);
234
+ exports.ChecklistHistory = ChecklistHistory = tslib_1.__decorate([
235
+ (0, typeorm_1.Entity)(),
236
+ (0, typeorm_1.Index)('ix_checklist_history_0', (checklistHistory) => [checklistHistory.originalId]),
237
+ (0, type_graphql_1.ObjectType)({ description: 'Entity for ChecklistHistory' })
238
+ ], ChecklistHistory);
239
+ //# sourceMappingURL=checklist-history.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checklist-history.js","sourceRoot":"","sources":["../../../server/service/checklist-history/checklist-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAUgB;AAChB,8DAAkI;AAClI,yDAAgD;AAChD,6CAA4C;AAC5C,sDAAwH;AACxH,oFAAwE;AACxE,4GAAsG;AACtG,6FAAuF;AAEvF,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAK7B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CA8K5B,CAAA;AA9KY,4CAAgB;AAGlB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC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S,CAAC,CAAC,CAAC,EAAE;KAC/G,CAAC;;gDAC+B;2BA7KtB,gBAAgB;IAH5B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,gBAAkC,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACtG,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;GAC9C,gBAAgB,CA8K5B","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n OneToMany,\n OneToOne,\n PrimaryGeneratedColumn,\n RelationId\n} from 'typeorm'\nimport { HistoryActionColumn, HistoryActionType, HistoryEntityInterface, HistoryOriginalIdColumn } from '@operato/typeorm-history'\nimport { User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { Checklist, ChecklistReferenceType, InspectionResultStatus, InspectionResultType } from '../checklist/checklist'\nimport { ProjectType } from '../building-inspection/building-inspection'\nimport { BuildingInspectionHistory } from '../building-inspection-history/building-inspection-history'\nimport { ChecklistItemHistory } from '../checklist-item-history/checklist-item-history'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index('ix_checklist_history_0', (checklistHistory: ChecklistHistory) => [checklistHistory.originalId])\n@ObjectType({ description: 'Entity for ChecklistHistory' })\nexport class ChecklistHistory implements HistoryEntityInterface<Checklist> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, comment: '이름' })\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true, comment: '문서 번호 - 검측: 동(4자리)-층(3자리)-시퀀스(6자리), 공정표: 날짜(6자리)-시퀀스(6자리)' })\n @Field({ nullable: true })\n documentNo?: string\n\n @Column({ nullable: false, comment: '프로젝트 타입', default: ProjectType.DSSP })\n @Field({ nullable: true })\n projectType?: ProjectType\n\n @Column({ nullable: false, comment: '체크리스트 참조 타입 (구분 용)', default: ChecklistReferenceType.INSPECTION })\n @Field({ nullable: true })\n checklistReferenceType?: ChecklistReferenceType\n\n @Column({ nullable: true, comment: '공종' })\n @Field({ nullable: true })\n constructionType?: string\n\n @Column({ nullable: true, comment: '세부 공종' })\n @Field({ nullable: true })\n constructionDetailType?: string\n\n @Column({ nullable: true, comment: '위치 (x동 x층)' })\n @Field({ nullable: true })\n location?: string\n\n @Column({ nullable: true, comment: '검측 도면 타입', default: '' })\n @Field({ nullable: true })\n inspectionDrawingType?: string\n\n @Column('simple-array', { nullable: true, comment: '검측 부위' })\n @Field(() => [String], { nullable: true })\n inspectionParts?: string[]\n\n @Column({ nullable: true, comment: '시공자 점검일' })\n @Field({ nullable: true })\n constructionInspectionDate?: Date\n\n @Column({ nullable: true, comment: '감리자 점검일' })\n @Field({ nullable: true })\n supervisorInspectionDate?: Date\n\n @Column({ nullable: true, comment: '총괄 시공 책임자 사인' })\n @Field({ nullable: true })\n overallConstructorSignature?: string\n\n @Column({ nullable: true, comment: '공종별 시공 관리자 사인' })\n @Field({ nullable: true })\n taskConstructorSignature?: string\n\n @Column({ nullable: true, comment: '총괄 감리 책임자 사인' })\n @Field({ nullable: true })\n overallSupervisorySignature?: string\n\n @Column({ nullable: true, comment: '건축사보 (공종별 감리 관리자) 사인' })\n @Field({ nullable: true })\n taskSupervisorySignature?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 시공 책임자' })\n overallConstructor?: User\n\n @RelationId((checklist: Checklist) => checklist.overallConstructor)\n overallConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '공종별 시공 관리자' })\n taskConstructor?: User\n\n @RelationId((checklist: Checklist) => checklist.taskConstructor)\n taskConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 감리 책임자' })\n overallSupervisory?: User\n\n @RelationId((checklist: Checklist) => checklist.overallSupervisory)\n overallSupervisoryId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' })\n taskSupervisory?: User\n\n @RelationId((checklist: Checklist) => checklist.taskSupervisory)\n taskSupervisoryId?: string\n\n // 체크리스트 아이템 정보 (하위 테이블 참조)\n @OneToMany(() => ChecklistItemHistory, checklistItem => checklistItem.checklistHistory)\n @Field(() => [ChecklistItemHistory])\n checklistItemHistories?: ChecklistItemHistory[]\n\n // 검측 정보 (1:1 하위 테이블 참조)\n @OneToOne(() => BuildingInspectionHistory, buildingInspectionHistory => buildingInspectionHistory.checklistHistory)\n @Field(() => BuildingInspectionHistory)\n buildingInspectionHistory?: BuildingInspectionHistory\n\n @Column({ nullable: true, comment: '검측 요청서 문서번호 - {네이밍} 검측 제02-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n inspectionRequestDocumentNo?: string\n\n @Column({ nullable: true, comment: '검측 요청서 - 검측 사항' })\n @Field({ nullable: true })\n inspectionRequestMemo?: string\n\n @Column({ nullable: true, comment: '검측 요청서 - 요청 시간' })\n @Field({ nullable: true })\n inspectionRequestUpdatedAt?: Date\n\n @Column({ nullable: true, comment: '검측 결과 통보서 문서번호 - {네이밍} 검측 제03-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n inspectionResultDocumentNo?: string\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 지시 사항' })\n @Field({ nullable: true })\n inspectionResultMemo?: string\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 여부' })\n @Field({ nullable: true })\n inspectionResultStatus?: InspectionResultStatus\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 타입' })\n @Field({ nullable: true })\n inspectionResultType?: InspectionResultType\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 통보 시간' })\n @Field({ nullable: true })\n inspectionResultUpdatedAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @CreateDateColumn()\n @Field({ nullable: true })\n loggedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((checklist: Checklist) => checklist.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((checklist: Checklist) => checklist.updater)\n updaterId?: string\n\n @HistoryOriginalIdColumn({ nullable: true })\n public originalId!: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n enum: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? HistoryActionType : undefined,\n length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10\n })\n public action!: HistoryActionType\n}\n"]}
@@ -0,0 +1,7 @@
1
+ import { HistoryEntitySubscriber } from '@operato/typeorm-history';
2
+ import { Checklist } from '../checklist/checklist';
3
+ import { ChecklistHistory } from './checklist-history';
4
+ export declare class ChecklistHistoryEntitySubscriber extends HistoryEntitySubscriber<Checklist, ChecklistHistory> {
5
+ get entity(): typeof Checklist;
6
+ get historyEntity(): typeof ChecklistHistory;
7
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChecklistHistoryEntitySubscriber = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ const typeorm_history_1 = require("@operato/typeorm-history");
7
+ const checklist_1 = require("../checklist/checklist");
8
+ const checklist_history_1 = require("./checklist-history");
9
+ let ChecklistHistoryEntitySubscriber = class ChecklistHistoryEntitySubscriber extends typeorm_history_1.HistoryEntitySubscriber {
10
+ get entity() {
11
+ return checklist_1.Checklist;
12
+ }
13
+ get historyEntity() {
14
+ return checklist_history_1.ChecklistHistory;
15
+ }
16
+ };
17
+ exports.ChecklistHistoryEntitySubscriber = ChecklistHistoryEntitySubscriber;
18
+ exports.ChecklistHistoryEntitySubscriber = ChecklistHistoryEntitySubscriber = tslib_1.__decorate([
19
+ (0, typeorm_1.EventSubscriber)()
20
+ ], ChecklistHistoryEntitySubscriber);
21
+ //# sourceMappingURL=event-subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/checklist-history/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,8DAAkE;AAElE,sDAAkD;AAClD,2DAAsD;AAG/C,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,yCAAoD;IACxG,IAAW,MAAM;QACf,OAAO,qBAAS,CAAA;IAClB,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,oCAAgB,CAAA;IACzB,CAAC;CACF,CAAA;AARY,4EAAgC;2CAAhC,gCAAgC;IAD5C,IAAA,yBAAe,GAAE;GACL,gCAAgC,CAQ5C","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@operato/typeorm-history'\n\nimport { Checklist } from '../checklist/checklist'\nimport { ChecklistHistory } from './checklist-history'\n\n@EventSubscriber()\nexport class ChecklistHistoryEntitySubscriber extends HistoryEntitySubscriber<Checklist, ChecklistHistory> {\n public get entity() {\n return Checklist\n }\n\n public get historyEntity() {\n return ChecklistHistory\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { ChecklistHistory } from './checklist-history';
2
+ import { ChecklistHistoryQuery } from './checklist-history-query';
3
+ import { ChecklistHistoryEntitySubscriber } from './event-subscriber';
4
+ export declare const entities: (typeof ChecklistHistory)[];
5
+ export declare const resolvers: (typeof ChecklistHistoryQuery)[];
6
+ export declare const subscribers: (typeof ChecklistHistoryEntitySubscriber)[];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.subscribers = exports.resolvers = exports.entities = void 0;
4
+ const checklist_history_1 = require("./checklist-history");
5
+ const checklist_history_query_1 = require("./checklist-history-query");
6
+ const event_subscriber_1 = require("./event-subscriber");
7
+ exports.entities = [checklist_history_1.ChecklistHistory];
8
+ exports.resolvers = [checklist_history_query_1.ChecklistHistoryQuery];
9
+ exports.subscribers = [event_subscriber_1.ChecklistHistoryEntitySubscriber];
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-history/index.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,uEAAiE;AACjE,yDAAqE;AAExD,QAAA,QAAQ,GAAG,CAAC,oCAAgB,CAAC,CAAA;AAC7B,QAAA,SAAS,GAAG,CAAC,+CAAqB,CAAC,CAAA;AACnC,QAAA,WAAW,GAAG,CAAC,mDAAgC,CAAC,CAAA","sourcesContent":["import { ChecklistHistory } from './checklist-history'\nimport { ChecklistHistoryQuery } from './checklist-history-query'\nimport { ChecklistHistoryEntitySubscriber } from './event-subscriber'\n\nexport const entities = [ChecklistHistory]\nexport const resolvers = [ChecklistHistoryQuery]\nexport const subscribers = [ChecklistHistoryEntitySubscriber]\n"]}
@@ -1,2 +1,4 @@
1
+ import { ChecklistItemAiJudgment } from './checklist-item-type';
1
2
  export declare class ChecklistItemMutation {
3
+ updateChecklistItemsAiJudgment(items: ChecklistItemAiJudgment[], context: ResolverContext): Promise<boolean>;
2
4
  }
@@ -4,10 +4,36 @@ exports.ChecklistItemMutation = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const type_graphql_1 = require("type-graphql");
6
6
  const checklist_item_1 = require("./checklist-item");
7
+ const checklist_item_type_1 = require("./checklist-item-type");
7
8
  let ChecklistItemMutation = class ChecklistItemMutation {
9
+ // AI 자동 검측 결과로 체크리스트 항목의 감리자 적합/부적합 값을 일괄 반영 (미판정 항목은 건너뜀)
10
+ async updateChecklistItemsAiJudgment(items, context) {
11
+ const { user, tx } = context.state;
12
+ const checklistItemRepository = tx.getRepository(checklist_item_1.ChecklistItem);
13
+ for (const item of items) {
14
+ if (!item.id || !item.supervisoryConfirmStatus)
15
+ continue;
16
+ // repository.update(부분필드)는 벌크 업데이트라 history 서브스크라이버 event.entity에 id가 없어
17
+ // checklist_item_histories.original_id가 null이 됨 → 전체 엔티티 로드 후 save로 갱신
18
+ const existingItem = await checklistItemRepository.findOneBy({ id: item.id });
19
+ if (!existingItem)
20
+ continue;
21
+ await checklistItemRepository.save(Object.assign(Object.assign({}, existingItem), { supervisoryConfirmStatus: item.supervisoryConfirmStatus, updater: user }));
22
+ }
23
+ return true;
24
+ }
8
25
  };
9
- ChecklistItemMutation = tslib_1.__decorate([
26
+ exports.ChecklistItemMutation = ChecklistItemMutation;
27
+ tslib_1.__decorate([
28
+ (0, type_graphql_1.Directive)('@transaction'),
29
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To update checklist items with AI inspection judgments' }),
30
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('items', type => [checklist_item_type_1.ChecklistItemAiJudgment])),
31
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
32
+ tslib_1.__metadata("design:type", Function),
33
+ tslib_1.__metadata("design:paramtypes", [Array, Object]),
34
+ tslib_1.__metadata("design:returntype", Promise)
35
+ ], ChecklistItemMutation.prototype, "updateChecklistItemsAiJudgment", null);
36
+ exports.ChecklistItemMutation = ChecklistItemMutation = tslib_1.__decorate([
10
37
  (0, type_graphql_1.Resolver)(checklist_item_1.ChecklistItem)
11
38
  ], ChecklistItemMutation);
12
- exports.ChecklistItemMutation = ChecklistItemMutation;
13
39
  //# sourceMappingURL=checklist-item-mutation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checklist-item-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist-item/checklist-item-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qDAAgD;AAGzC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,qBAAqB;IADjC,IAAA,uBAAQ,EAAC,8BAAa,CAAC;GACX,qBAAqB,CAAG;AAAxB,sDAAqB","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { ChecklistItem } from './checklist-item'\n\n@Resolver(ChecklistItem)\nexport class ChecklistItemMutation {}\n"]}
1
+ {"version":3,"file":"checklist-item-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist-item/checklist-item-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qDAAgD;AAChD,+DAA+D;AAGxD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,2DAA2D;IAGrD,AAAN,KAAK,CAAC,8BAA8B,CACe,KAAgC,EAC1E,OAAwB;QAE/B,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAClC,MAAM,uBAAuB,GAAG,EAAE,CAAC,aAAa,CAAC,8BAAa,CAAC,CAAA;QAE/D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,wBAAwB;gBAAE,SAAQ;YACxD,yEAAyE;YACzE,uEAAuE;YACvE,MAAM,YAAY,GAAG,MAAM,uBAAuB,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;YAC7E,IAAI,CAAC,YAAY;gBAAE,SAAQ;YAC3B,MAAM,uBAAuB,CAAC,IAAI,iCAC7B,YAAY,KACf,wBAAwB,EAAE,IAAI,CAAC,wBAAwB,EACvD,OAAO,EAAE,IAAI,IACb,CAAA;QACJ,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA;AA1BY,sDAAqB;AAI1B;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,wDAAwD,EAAE,CAAC;IAErG,mBAAA,IAAA,kBAAG,EAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,6CAAuB,CAAC,CAAC,CAAA;IAC/C,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;2EAmBP;gCAzBU,qBAAqB;IADjC,IAAA,uBAAQ,EAAC,8BAAa,CAAC;GACX,qBAAqB,CA0BjC","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { ChecklistItem } from './checklist-item'\nimport { ChecklistItemAiJudgment } from './checklist-item-type'\n\n@Resolver(ChecklistItem)\nexport class ChecklistItemMutation {\n // AI 자동 검측 결과로 체크리스트 항목의 감리자 적합/부적합 값을 일괄 반영 (미판정 항목은 건너뜀)\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To update checklist items with AI inspection judgments' })\n async updateChecklistItemsAiJudgment(\n @Arg('items', type => [ChecklistItemAiJudgment]) items: ChecklistItemAiJudgment[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { user, tx } = context.state\n const checklistItemRepository = tx.getRepository(ChecklistItem)\n\n for (const item of items) {\n if (!item.id || !item.supervisoryConfirmStatus) continue\n // repository.update(부분필드)는 벌크 업데이트라 history 서브스크라이버 event.entity에 id가 없어\n // checklist_item_histories.original_id가 null이 됨 → 전체 엔티티 로드 후 save로 갱신\n const existingItem = await checklistItemRepository.findOneBy({ id: item.id })\n if (!existingItem) continue\n await checklistItemRepository.save({\n ...existingItem,\n supervisoryConfirmStatus: item.supervisoryConfirmStatus,\n updater: user\n })\n }\n\n return true\n }\n}\n"]}
@@ -11,7 +11,7 @@ export declare class ChecklistItemQuery {
11
11
  inspectionByChecklistItemId(checklistItemId: string): Promise<BuildingInspection>;
12
12
  checklistItemComments(checklistItem: ChecklistItem): Promise<ChecklistItemComment[]>;
13
13
  checklistItemCommentCount(checklistItem: ChecklistItem): Promise<number>;
14
- checklistItemAttachments(checklistItem: ChecklistItem): Promise<Attachment[]>;
14
+ checklistItemAttachments(checklistItem: ChecklistItem, description?: string): Promise<Attachment[]>;
15
15
  checklistItemAttachmentCount(checklistItem: ChecklistItem): Promise<number>;
16
16
  updater(checklistItem: ChecklistItem): Promise<User>;
17
17
  creator(checklistItem: ChecklistItem): Promise<User>;
@@ -39,11 +39,12 @@ let ChecklistItemQuery = class ChecklistItemQuery {
39
39
  async checklistItemCommentCount(checklistItem) {
40
40
  return await (0, shell_1.getRepository)(checklist_item_comment_1.ChecklistItemComment).countBy({ checklistItem: { id: checklistItem.id } });
41
41
  }
42
- async checklistItemAttachments(checklistItem) {
42
+ async checklistItemAttachments(checklistItem, description) {
43
43
  return await (0, shell_1.getRepository)(attachment_base_1.Attachment).find({
44
44
  where: {
45
45
  refType: checklist_item_1.ChecklistItem.name,
46
- refBy: checklistItem.id
46
+ refBy: checklistItem.id,
47
+ description: description // 검측 상태로 받으며 어떤 스탭에 올렸는지로 시공자/감리자 구분
47
48
  },
48
49
  order: {
49
50
  createdAt: 'DESC'
@@ -65,6 +66,7 @@ let ChecklistItemQuery = class ChecklistItemQuery {
65
66
  return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistItem.creatorId });
66
67
  }
67
68
  };
69
+ exports.ChecklistItemQuery = ChecklistItemQuery;
68
70
  tslib_1.__decorate([
69
71
  (0, type_graphql_1.Query)(returns => checklist_item_1.ChecklistItem, { nullable: true, description: 'To fetch a ChecklistItem' }),
70
72
  tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
@@ -104,8 +106,9 @@ tslib_1.__decorate([
104
106
  tslib_1.__decorate([
105
107
  (0, type_graphql_1.FieldResolver)(type => [attachment_base_1.Attachment]),
106
108
  tslib_1.__param(0, (0, type_graphql_1.Root)()),
109
+ tslib_1.__param(1, (0, type_graphql_1.Arg)('description', { nullable: true })),
107
110
  tslib_1.__metadata("design:type", Function),
108
- tslib_1.__metadata("design:paramtypes", [checklist_item_1.ChecklistItem]),
111
+ tslib_1.__metadata("design:paramtypes", [checklist_item_1.ChecklistItem, String]),
109
112
  tslib_1.__metadata("design:returntype", Promise)
110
113
  ], ChecklistItemQuery.prototype, "checklistItemAttachments", null);
111
114
  tslib_1.__decorate([
@@ -129,8 +132,7 @@ tslib_1.__decorate([
129
132
  tslib_1.__metadata("design:paramtypes", [checklist_item_1.ChecklistItem]),
130
133
  tslib_1.__metadata("design:returntype", Promise)
131
134
  ], ChecklistItemQuery.prototype, "creator", null);
132
- ChecklistItemQuery = tslib_1.__decorate([
135
+ exports.ChecklistItemQuery = ChecklistItemQuery = tslib_1.__decorate([
133
136
  (0, type_graphql_1.Resolver)(checklist_item_1.ChecklistItem)
134
137
  ], ChecklistItemQuery);
135
- exports.ChecklistItemQuery = ChecklistItemQuery;
136
138
  //# sourceMappingURL=checklist-item-query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checklist-item-query.js","sourceRoot":"","sources":["../../../server/service/checklist-item/checklist-item-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,qEAA4D;AAC5D,iDAA+F;AAC/F,yDAAgD;AAChD,qDAAgD;AAChD,+DAAyD;AACzD,6FAAuF;AACvF,oFAA+E;AAGxE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAEvB,AAAN,KAAK,CAAC,aAAa,CAAY,EAAU,EAAS,OAAwB;QACxE,OAAO,MAAM,IAAA,qBAAa,EAAC,8BAAa,CAAC,CAAC,OAAO,CAAC;YAChD,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,cAAc,CAAS,MAAiB,EAAS,OAAwB;QAC7E,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UA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;;qEAQ9F;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,6CAAoB,CAAC,CAAC;IACjB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;+DAE/D;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;IACG,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;mEAEnE;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAU,CAAC,CAAC;IACJ,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;kEAUlE;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;IACM,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;sEAOtE;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;iDAEjD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;iDAEjD;AAxEU,kBAAkB;IAD9B,IAAA,uBAAQ,EAAC,8BAAa,CAAC;GACX,kBAAkB,CAyE9B;AAzEY,gDAAkB","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { Attachment } from '@things-factory/attachment-base'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistItem } from './checklist-item'\nimport { ChecklistItemList } from './checklist-item-type'\nimport { ChecklistItemComment } from '../checklist-item-comment/checklist-item-comment'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\n\n@Resolver(ChecklistItem)\nexport class ChecklistItemQuery {\n @Query(returns => ChecklistItem!, { nullable: true, description: 'To fetch a ChecklistItem' })\n async checklistItem(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<ChecklistItem> {\n return await getRepository(ChecklistItem).findOne({\n where: { id }\n })\n }\n\n @Query(returns => ChecklistItemList, { description: 'To fetch multiple ChecklistItems' })\n async checklistItems(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistItemList> {\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(ChecklistItem),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @Query(returns => BuildingInspection, { description: 'BuildingInspection By ChecklistItemId' })\n async inspectionByChecklistItemId(checklistItemId: string): Promise<BuildingInspection> {\n return getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .innerJoin('checklists', 'c', 'bi.checklist_id = c.id')\n .innerJoin('checklist_items', 'ci', 'c.id = ci.checklist_id')\n .where('ci.id = :checklistItemId', { checklistItemId })\n .getOne()\n }\n\n @FieldResolver(type => [ChecklistItemComment])\n async checklistItemComments(@Root() checklistItem: ChecklistItem): Promise<ChecklistItemComment[]> {\n return await getRepository(ChecklistItemComment).findBy({ checklistItem: { id: checklistItem.id } })\n }\n\n @FieldResolver(type => Number)\n async checklistItemCommentCount(@Root() checklistItem: ChecklistItem): Promise<number> {\n return await getRepository(ChecklistItemComment).countBy({ checklistItem: { id: checklistItem.id } })\n }\n\n @FieldResolver(type => [Attachment])\n async checklistItemAttachments(@Root() checklistItem: ChecklistItem): Promise<Attachment[]> {\n return await getRepository(Attachment).find({\n where: {\n refType: ChecklistItem.name,\n refBy: checklistItem.id\n },\n order: {\n createdAt: 'DESC'\n }\n })\n }\n\n @FieldResolver(type => Number)\n async checklistItemAttachmentCount(@Root() checklistItem: ChecklistItem): Promise<number> {\n return await getRepository(Attachment).count({\n where: {\n refType: ChecklistItem.name,\n refBy: checklistItem.id\n }\n })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklistItem: ChecklistItem): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistItem.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistItem: ChecklistItem): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistItem.creatorId })\n }\n}\n"]}
1
+ {"version":3,"file":"checklist-item-query.js","sourceRoot":"","sources":["../../../server/service/checklist-item/checklist-item-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,qEAA4D;AAC5D,iDAA+F;AAC/F,yDAAgD;AAChD,qDAAgD;AAChD,+DAAyD;AACzD,6FAAuF;AACvF,oFAA+E;AAGxE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAEvB,AAAN,KAAK,CAAC,aAAa,CAAY,EAAU,EAAS,OAAwB;QACxE,OAAO,MAAM,IAAA,qBAAa,EAAC,8BAAa,CAAC,CAAC,OAAO,CAAC;YAChD,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,cAAc,CAAS,MAAiB,EAAS,OAAwB;QAC7E,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,8BAAa,CAAC;YAC9C,WAAW,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;SACrC,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,2BAA2B,CAAC,eAAuB;QACvD,OAAO,IAAA,qBAAa,EAAC,wCAAkB,CAAC;aACrC,kBAAkB,CAAC,IAAI,CAAC;aACxB,SAAS,CAAC,YAAY,EAAE,GAAG,EAAE,wBAAwB,CAAC;aACtD,SAAS,CAAC,iBA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,GAAE,CAAA;IACN,mBAAA,IAAA,kBAAG,EAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAA;;6CADhB,8BAAa;;kEAarC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;IACM,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;sEAOtE;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;iDAEjD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;iDAEjD;6BA5EU,kBAAkB;IAD9B,IAAA,uBAAQ,EAAC,8BAAa,CAAC;GACX,kBAAkB,CA6E9B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { Attachment } from '@things-factory/attachment-base'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistItem } from './checklist-item'\nimport { ChecklistItemList } from './checklist-item-type'\nimport { ChecklistItemComment } from '../checklist-item-comment/checklist-item-comment'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\n\n@Resolver(ChecklistItem)\nexport class ChecklistItemQuery {\n @Query(returns => ChecklistItem!, { nullable: true, description: 'To fetch a ChecklistItem' })\n async checklistItem(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<ChecklistItem> {\n return await getRepository(ChecklistItem).findOne({\n where: { id }\n })\n }\n\n @Query(returns => ChecklistItemList, { description: 'To fetch multiple ChecklistItems' })\n async checklistItems(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistItemList> {\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(ChecklistItem),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @Query(returns => BuildingInspection, { description: 'BuildingInspection By ChecklistItemId' })\n async inspectionByChecklistItemId(checklistItemId: string): Promise<BuildingInspection> {\n return getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .innerJoin('checklists', 'c', 'bi.checklist_id = c.id')\n .innerJoin('checklist_items', 'ci', 'c.id = ci.checklist_id')\n .where('ci.id = :checklistItemId', { checklistItemId })\n .getOne()\n }\n\n @FieldResolver(type => [ChecklistItemComment])\n async checklistItemComments(@Root() checklistItem: ChecklistItem): Promise<ChecklistItemComment[]> {\n return await getRepository(ChecklistItemComment).findBy({ checklistItem: { id: checklistItem.id } })\n }\n\n @FieldResolver(type => Number)\n async checklistItemCommentCount(@Root() checklistItem: ChecklistItem): Promise<number> {\n return await getRepository(ChecklistItemComment).countBy({ checklistItem: { id: checklistItem.id } })\n }\n\n @FieldResolver(type => [Attachment])\n async checklistItemAttachments(\n @Root() checklistItem: ChecklistItem,\n @Arg('description', { nullable: true }) description?: string\n ): Promise<Attachment[]> {\n return await getRepository(Attachment).find({\n where: {\n refType: ChecklistItem.name,\n refBy: checklistItem.id,\n description: description // 검측 상태로 받으며 어떤 스탭에 올렸는지로 시공자/감리자 구분\n },\n order: {\n createdAt: 'DESC'\n }\n })\n }\n\n @FieldResolver(type => Number)\n async checklistItemAttachmentCount(@Root() checklistItem: ChecklistItem): Promise<number> {\n return await getRepository(Attachment).count({\n where: {\n refType: ChecklistItem.name,\n refBy: checklistItem.id\n }\n })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklistItem: ChecklistItem): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistItem.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistItem: ChecklistItem): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistItem.creatorId })\n }\n}\n"]}
@@ -1,5 +1,9 @@
1
- import { ChecklistItem } from './checklist-item';
1
+ import { ChecklistItem, ChecklistItemConfirmStatus } from './checklist-item';
2
2
  export declare class ChecklistItemList {
3
3
  items: ChecklistItem[];
4
4
  total: number;
5
5
  }
6
+ export declare class ChecklistItemAiJudgment {
7
+ id: string;
8
+ supervisoryConfirmStatus?: ChecklistItemConfirmStatus;
9
+ }
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChecklistItemList = void 0;
3
+ exports.ChecklistItemAiJudgment = exports.ChecklistItemList = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const type_graphql_1 = require("type-graphql");
6
6
  const checklist_item_1 = require("./checklist-item");
7
7
  let ChecklistItemList = class ChecklistItemList {
8
8
  };
9
+ exports.ChecklistItemList = ChecklistItemList;
9
10
  tslib_1.__decorate([
10
11
  (0, type_graphql_1.Field)(type => [checklist_item_1.ChecklistItem]),
11
12
  tslib_1.__metadata("design:type", Array)
@@ -14,8 +15,21 @@ tslib_1.__decorate([
14
15
  (0, type_graphql_1.Field)(type => type_graphql_1.Int),
15
16
  tslib_1.__metadata("design:type", Number)
16
17
  ], ChecklistItemList.prototype, "total", void 0);
17
- ChecklistItemList = tslib_1.__decorate([
18
+ exports.ChecklistItemList = ChecklistItemList = tslib_1.__decorate([
18
19
  (0, type_graphql_1.ObjectType)()
19
20
  ], ChecklistItemList);
20
- exports.ChecklistItemList = ChecklistItemList;
21
+ let ChecklistItemAiJudgment = class ChecklistItemAiJudgment {
22
+ };
23
+ exports.ChecklistItemAiJudgment = ChecklistItemAiJudgment;
24
+ tslib_1.__decorate([
25
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
26
+ tslib_1.__metadata("design:type", String)
27
+ ], ChecklistItemAiJudgment.prototype, "id", void 0);
28
+ tslib_1.__decorate([
29
+ (0, type_graphql_1.Field)(type => checklist_item_1.ChecklistItemConfirmStatus, { nullable: true, description: 'AI 판정 결과 (T: 적합, F: 부적합, null: 미판정)' }),
30
+ tslib_1.__metadata("design:type", String)
31
+ ], ChecklistItemAiJudgment.prototype, "supervisoryConfirmStatus", void 0);
32
+ exports.ChecklistItemAiJudgment = ChecklistItemAiJudgment = tslib_1.__decorate([
33
+ (0, type_graphql_1.InputType)()
34
+ ], ChecklistItemAiJudgment);
21
35
  //# sourceMappingURL=checklist-item-type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checklist-item-type.js","sourceRoot":"","sources":["../../../server/service/checklist-item/checklist-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAsF;AAEtF,qDAAgD;AAGzC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAM7B,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,8BAAa,CAAC,CAAC;;gDACT;AAEtB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;gDACN;AALF,iBAAiB;IAD7B,IAAA,yBAAU,GAAE;GACA,iBAAiB,CAM7B;AANY,8CAAiB","sourcesContent":["import { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { ChecklistItem } from './checklist-item'\n\n@ObjectType()\nexport class ChecklistItemList {\n @Field(type => [ChecklistItem])\n items: ChecklistItem[]\n\n @Field(type => Int)\n total: number\n}\n"]}
1
+ {"version":3,"file":"checklist-item-type.js","sourceRoot":"","sources":["../../../server/service/checklist-item/checklist-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAsF;AAEtF,qDAA4E;AAGrE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAM7B,CAAA;AANY,8CAAiB;AAE5B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,8BAAa,CAAC,CAAC;;gDACT;AAGtB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;gDACN;4BALF,iBAAiB;IAD7B,IAAA,yBAAU,GAAE;GACA,iBAAiB,CAM7B;AAGM,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAMnC,CAAA;AANY,0DAAuB;AAElC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;mDACR;AAGV;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,2CAA0B,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;;yEAC7D;kCAL1C,uBAAuB;IADnC,IAAA,wBAAS,GAAE;GACC,uBAAuB,CAMnC","sourcesContent":["import { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { ChecklistItem, ChecklistItemConfirmStatus } from './checklist-item'\n\n@ObjectType()\nexport class ChecklistItemList {\n @Field(type => [ChecklistItem])\n items: ChecklistItem[]\n\n @Field(type => Int)\n total: number\n}\n\n@InputType()\nexport class ChecklistItemAiJudgment {\n @Field(type => ID)\n id: string\n\n @Field(type => ChecklistItemConfirmStatus, { nullable: true, description: 'AI 판정 결과 (T: 적합, F: 부적합, null: 미판정)' })\n supervisoryConfirmStatus?: ChecklistItemConfirmStatus\n}\n"]}
@@ -12,6 +12,8 @@ export declare class ChecklistItem {
12
12
  detailType?: string;
13
13
  name?: string;
14
14
  inspctionCriteria?: string;
15
+ kcsCriteria?: string;
16
+ siteSpecCriteria?: string;
15
17
  constructionConfirmStatus?: ChecklistItemConfirmStatus;
16
18
  supervisoryConfirmStatus?: ChecklistItemConfirmStatus;
17
19
  checklistItemComments?: ChecklistItemComment[];
@@ -11,13 +11,14 @@ var ChecklistItemConfirmStatus;
11
11
  (function (ChecklistItemConfirmStatus) {
12
12
  ChecklistItemConfirmStatus["T"] = "\uC801\uD569";
13
13
  ChecklistItemConfirmStatus["F"] = "\uBD80\uC801\uD569";
14
- })(ChecklistItemConfirmStatus = exports.ChecklistItemConfirmStatus || (exports.ChecklistItemConfirmStatus = {}));
14
+ })(ChecklistItemConfirmStatus || (exports.ChecklistItemConfirmStatus = ChecklistItemConfirmStatus = {}));
15
15
  (0, type_graphql_1.registerEnumType)(ChecklistItemConfirmStatus, {
16
16
  name: 'ChecklistItemConfirmStatus',
17
17
  description: '적합 상태'
18
18
  });
19
19
  let ChecklistItem = class ChecklistItem {
20
20
  };
21
+ exports.ChecklistItem = ChecklistItem;
21
22
  tslib_1.__decorate([
22
23
  (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
23
24
  (0, type_graphql_1.Field)(type => type_graphql_1.ID),
@@ -44,10 +45,20 @@ tslib_1.__decorate([
44
45
  tslib_1.__metadata("design:type", String)
45
46
  ], ChecklistItem.prototype, "name", void 0);
46
47
  tslib_1.__decorate([
47
- (0, typeorm_1.Column)({ nullable: true, comment: '검사 기준' }),
48
+ (0, typeorm_1.Column)({ nullable: true, comment: '검사 기준 (레거시 단일 필드)' }),
48
49
  (0, type_graphql_1.Field)({ nullable: true }),
49
50
  tslib_1.__metadata("design:type", String)
50
51
  ], ChecklistItem.prototype, "inspctionCriteria", void 0);
52
+ tslib_1.__decorate([
53
+ (0, typeorm_1.Column)({ nullable: true, comment: 'KCS 시방서 기준 - kcs_matches[0] 오브젝트 전체를 JSON 문자열로 저장 (file_label 등 포함)' }),
54
+ (0, type_graphql_1.Field)({ nullable: true }),
55
+ tslib_1.__metadata("design:type", String)
56
+ ], ChecklistItem.prototype, "kcsCriteria", void 0);
57
+ tslib_1.__decorate([
58
+ (0, typeorm_1.Column)({ nullable: true, comment: '현장 시방서 기준 - site_spec_matches[0].text' }),
59
+ (0, type_graphql_1.Field)({ nullable: true }),
60
+ tslib_1.__metadata("design:type", String)
61
+ ], ChecklistItem.prototype, "siteSpecCriteria", void 0);
51
62
  tslib_1.__decorate([
52
63
  (0, typeorm_1.Column)({ nullable: true, comment: '시공 관리자 적합 여부 (T: 적합, F: 부적합)' }),
53
64
  (0, type_graphql_1.Field)({ nullable: true }),
@@ -105,10 +116,9 @@ tslib_1.__decorate([
105
116
  (0, typeorm_1.RelationId)((checklistItem) => checklistItem.updater),
106
117
  tslib_1.__metadata("design:type", String)
107
118
  ], ChecklistItem.prototype, "updaterId", void 0);
108
- ChecklistItem = tslib_1.__decorate([
119
+ exports.ChecklistItem = ChecklistItem = tslib_1.__decorate([
109
120
  (0, typeorm_1.Entity)({ comment: '체크 리스트 항목' }),
110
121
  (0, typeorm_1.Index)('ix_checklist_item_0', (checklistItem) => [checklistItem.checklist], { where: '"deleted_at" IS NULL' }),
111
122
  (0, type_graphql_1.ObjectType)()
112
123
  ], ChecklistItem);
113
- exports.ChecklistItem = ChecklistItem;
114
124
  //# sourceMappingURL=checklist-item.js.map