@dssp/supervision 1.0.0-alpha.7 → 1.0.0-alpha.74

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 (324) hide show
  1. package/dist-client/graphql/building-inspection.d.ts +1 -0
  2. package/dist-client/graphql/building-inspection.js +101 -0
  3. package/dist-client/graphql/building-inspection.js.map +1 -0
  4. package/dist-client/pages/action-plan/action-plan-list-page.d.ts +1 -2
  5. package/dist-client/pages/action-plan/action-plan-list-page.js +1 -2
  6. package/dist-client/pages/action-plan/action-plan-list-page.js.map +1 -1
  7. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +22 -0
  8. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +171 -0
  9. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +1 -0
  10. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +59 -0
  11. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +868 -0
  12. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +1 -0
  13. package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +8 -6
  14. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +116 -65
  15. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -1
  16. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +11 -0
  17. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +147 -72
  18. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
  19. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -0
  20. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +78 -14
  21. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
  22. package/dist-client/pages/building-inspection/building-inspection-list.d.ts +26 -2
  23. package/dist-client/pages/building-inspection/building-inspection-list.js +375 -34
  24. package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
  25. package/dist-client/pages/building-inspection/building-inspection-management.d.ts +72 -0
  26. package/dist-client/pages/building-inspection/building-inspection-management.js +1256 -0
  27. package/dist-client/pages/building-inspection/building-inspection-management.js.map +1 -0
  28. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +3 -0
  29. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +112 -20
  30. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
  31. package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +27 -0
  32. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +542 -0
  33. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
  34. package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
  35. package/dist-client/pages/building-inspection/component/image-preview-popup.js +348 -0
  36. package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
  37. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +25 -0
  38. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +491 -0
  39. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
  40. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +31 -0
  41. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +485 -0
  42. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
  43. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
  44. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +416 -0
  45. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
  46. package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +2 -1
  47. package/dist-client/pages/building-inspection/component/inspection-event-provider.js +42 -18
  48. package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
  49. package/dist-client/pages/building-inspection/inspection-create-popup.js +17 -5
  50. package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
  51. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.d.ts +3 -0
  52. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +791 -0
  53. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js.map +1 -0
  54. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +16 -2
  55. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +249 -45
  56. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -1
  57. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +9 -3
  58. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -1
  59. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +19 -0
  60. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +205 -0
  61. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +1 -0
  62. package/dist-client/pages/checklist/attachment-list-popup.d.ts +1 -0
  63. package/dist-client/pages/checklist/attachment-list-popup.js +251 -69
  64. package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
  65. package/dist-client/pages/checklist/checklist-view.d.ts +5 -0
  66. package/dist-client/pages/checklist/checklist-view.js +191 -30
  67. package/dist-client/pages/checklist/checklist-view.js.map +1 -1
  68. package/dist-client/pages/checklist/comment-list-popup.js +15 -5
  69. package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
  70. package/dist-client/pages/checklist/file-preview-popup.js +0 -1
  71. package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
  72. package/dist-client/pages/checklist/inspection-info-popup.d.ts +49 -0
  73. package/dist-client/pages/checklist/inspection-info-popup.js +683 -0
  74. package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
  75. package/dist-client/pages/checklist/inspection-tab-popup.d.ts +18 -0
  76. package/dist-client/pages/checklist/inspection-tab-popup.js +196 -0
  77. package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
  78. package/dist-client/pages/checklist-database/checklist-database.d.ts +35 -0
  79. package/dist-client/pages/checklist-database/checklist-database.js +539 -0
  80. package/dist-client/pages/checklist-database/checklist-database.js.map +1 -0
  81. package/dist-client/pages/checklist-template/checklist-template-item.js +39 -3
  82. package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
  83. package/dist-client/pages/checklist-template/checklist-template-list.js +1 -1
  84. package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
  85. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.d.ts +2 -0
  86. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js +242 -0
  87. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js.map +1 -0
  88. package/dist-client/pages/checklist-template/construction-checklist-template-list.d.ts +55 -0
  89. package/dist-client/pages/checklist-template/construction-checklist-template-list.js +409 -0
  90. package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +1 -0
  91. package/dist-client/pages/issue/issue-list-page.d.ts +1 -2
  92. package/dist-client/pages/issue/issue-list-page.js +1 -2
  93. package/dist-client/pages/issue/issue-list-page.js.map +1 -1
  94. package/dist-client/pages/project-checklist/project-checklist-management.d.ts +50 -0
  95. package/dist-client/pages/project-checklist/project-checklist-management.js +910 -0
  96. package/dist-client/pages/project-checklist/project-checklist-management.js.map +1 -0
  97. package/dist-client/pages/project-report/project-report-list-page.d.ts +1 -2
  98. package/dist-client/pages/project-report/project-report-list-page.js +1 -2
  99. package/dist-client/pages/project-report/project-report-list-page.js.map +1 -1
  100. package/dist-client/pages/supervisor/supervisor-list-page.d.ts +1 -2
  101. package/dist-client/pages/supervisor/supervisor-list-page.js +1 -2
  102. package/dist-client/pages/supervisor/supervisor-list-page.js.map +1 -1
  103. package/dist-client/route.d.ts +1 -1
  104. package/dist-client/route.js +18 -0
  105. package/dist-client/route.js.map +1 -1
  106. package/dist-client/stt/speech-to-text.d.ts +13 -8
  107. package/dist-client/stt/speech-to-text.js +282 -40
  108. package/dist-client/stt/speech-to-text.js.map +1 -1
  109. package/dist-client/tsconfig.tsbuildinfo +1 -1
  110. package/dist-server/service/action-plan/action-plan-mutation.js +5 -6
  111. package/dist-server/service/action-plan/action-plan-mutation.js.map +1 -1
  112. package/dist-server/service/action-plan/action-plan-query.d.ts +2 -2
  113. package/dist-server/service/action-plan/action-plan-query.js +5 -11
  114. package/dist-server/service/action-plan/action-plan-query.js.map +1 -1
  115. package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +2 -3
  116. package/dist-server/service/building-inspection/building-inspection-mutation.js +77 -39
  117. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
  118. package/dist-server/service/building-inspection/building-inspection-query.d.ts +5 -7
  119. package/dist-server/service/building-inspection/building-inspection-query.js +54 -52
  120. package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
  121. package/dist-server/service/building-inspection/building-inspection-type.d.ts +26 -7
  122. package/dist-server/service/building-inspection/building-inspection-type.js +92 -13
  123. package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
  124. package/dist-server/service/building-inspection/building-inspection.d.ts +5 -0
  125. package/dist-server/service/building-inspection/building-inspection.js +37 -4
  126. package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
  127. package/dist-server/service/building-inspection/index.d.ts +3 -4
  128. package/dist-server/service/building-inspection/index.js +10 -3
  129. package/dist-server/service/building-inspection/index.js.map +1 -1
  130. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
  131. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +56 -0
  132. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
  133. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
  134. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
  135. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
  136. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
  137. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
  138. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
  139. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
  140. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
  141. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
  142. package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
  143. package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
  144. package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
  145. package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
  146. package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
  147. package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
  148. package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
  149. package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
  150. package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
  151. package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +35 -0
  152. package/dist-server/service/building-inspection-history/building-inspection-history.js +162 -0
  153. package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
  154. package/dist-server/service/building-inspection-history/event-subscriber.d.ts +7 -0
  155. package/dist-server/service/building-inspection-history/event-subscriber.js +21 -0
  156. package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
  157. package/dist-server/service/building-inspection-history/index.d.ts +6 -0
  158. package/dist-server/service/building-inspection-history/index.js +10 -0
  159. package/dist-server/service/building-inspection-history/index.js.map +1 -0
  160. package/dist-server/service/checklist/checklist-mutation.d.ts +0 -5
  161. package/dist-server/service/checklist/checklist-mutation.js +1 -67
  162. package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
  163. package/dist-server/service/checklist/checklist-query.d.ts +7 -0
  164. package/dist-server/service/checklist/checklist-query.js +83 -0
  165. package/dist-server/service/checklist/checklist-query.js.map +1 -1
  166. package/dist-server/service/checklist/checklist-type.d.ts +0 -13
  167. package/dist-server/service/checklist/checklist-type.js +1 -49
  168. package/dist-server/service/checklist/checklist-type.js.map +1 -1
  169. package/dist-server/service/checklist/checklist.d.ts +28 -3
  170. package/dist-server/service/checklist/checklist.js +89 -15
  171. package/dist-server/service/checklist/checklist.js.map +1 -1
  172. package/dist-server/service/checklist/event-subscriber.d.ts +7 -0
  173. package/dist-server/service/checklist/event-subscriber.js +21 -0
  174. package/dist-server/service/checklist/event-subscriber.js.map +1 -0
  175. package/dist-server/service/checklist/index.d.ts +1 -2
  176. package/dist-server/service/checklist/index.js +1 -2
  177. package/dist-server/service/checklist/index.js.map +1 -1
  178. package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
  179. package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
  180. package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
  181. package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
  182. package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
  183. package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
  184. package/dist-server/service/{checklist → checklist-history}/checklist-history.d.ts +19 -1
  185. package/dist-server/service/{checklist → checklist-history}/checklist-history.js +97 -14
  186. package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
  187. package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
  188. package/dist-server/service/checklist-history/event-subscriber.js +21 -0
  189. package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
  190. package/dist-server/service/checklist-history/index.d.ts +6 -0
  191. package/dist-server/service/checklist-history/index.js +10 -0
  192. package/dist-server/service/checklist-history/index.js.map +1 -0
  193. package/dist-server/service/checklist-item/checklist-item-query.d.ts +1 -1
  194. package/dist-server/service/checklist-item/checklist-item-query.js +5 -3
  195. package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
  196. package/dist-server/service/checklist-item/index.d.ts +0 -1
  197. package/dist-server/service/checklist-item/index.js +1 -2
  198. package/dist-server/service/checklist-item/index.js.map +1 -1
  199. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +1 -0
  200. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +33 -6
  201. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
  202. package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
  203. package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
  204. package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
  205. package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
  206. package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
  207. package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
  208. package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +25 -0
  209. package/dist-server/service/checklist-item-history/checklist-item-history.js +123 -0
  210. package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
  211. package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
  212. package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
  213. package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
  214. package/dist-server/service/checklist-item-history/index.d.ts +6 -0
  215. package/dist-server/service/checklist-item-history/index.js +10 -0
  216. package/dist-server/service/checklist-item-history/index.js.map +1 -0
  217. package/dist-server/service/checklist-template/checklist-template-query.d.ts +1 -1
  218. package/dist-server/service/checklist-template/checklist-template-query.js +2 -5
  219. package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -1
  220. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +13 -1
  221. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -1
  222. package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +3 -0
  223. package/dist-server/service/checklist-template-item/checklist-template-item-type.js +9 -0
  224. package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -1
  225. package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +7 -0
  226. package/dist-server/service/checklist-template-item/checklist-template-item.js +22 -2
  227. package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
  228. package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +2 -0
  229. package/dist-server/service/checklist-template-item/spec-matching-service.js +51 -0
  230. package/dist-server/service/checklist-template-item/spec-matching-service.js.map +1 -0
  231. package/dist-server/service/checklist-type/checklist-type-query.d.ts +1 -1
  232. package/dist-server/service/checklist-type/checklist-type-query.js +2 -5
  233. package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
  234. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.d.ts +7 -0
  235. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js +107 -0
  236. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js.map +1 -0
  237. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.d.ts +10 -0
  238. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js +62 -0
  239. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js.map +1 -0
  240. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.d.ts +11 -0
  241. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js +43 -0
  242. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js.map +1 -0
  243. package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts +18 -0
  244. package/dist-server/service/construction-checklist-template/construction-checklist-template.js +80 -0
  245. package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map +1 -0
  246. package/dist-server/service/construction-checklist-template/index.d.ts +5 -0
  247. package/dist-server/service/construction-checklist-template/index.js +9 -0
  248. package/dist-server/service/construction-checklist-template/index.js.map +1 -0
  249. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.d.ts +6 -0
  250. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js +60 -0
  251. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js.map +1 -0
  252. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.d.ts +9 -0
  253. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js +53 -0
  254. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js.map +1 -0
  255. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.d.ts +17 -0
  256. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js +67 -0
  257. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js.map +1 -0
  258. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.d.ts +24 -0
  259. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js +113 -0
  260. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js.map +1 -0
  261. package/dist-server/service/construction-checklist-template-item/index.d.ts +5 -0
  262. package/dist-server/service/construction-checklist-template-item/index.js +9 -0
  263. package/dist-server/service/construction-checklist-template-item/index.js.map +1 -0
  264. package/dist-server/service/construction-checklist-template-item/spec-matching-service.d.ts +2 -0
  265. package/dist-server/service/construction-checklist-template-item/spec-matching-service.js +50 -0
  266. package/dist-server/service/construction-checklist-template-item/spec-matching-service.js.map +1 -0
  267. package/dist-server/service/index.d.ts +8 -1
  268. package/dist-server/service/index.js +38 -3
  269. package/dist-server/service/index.js.map +1 -1
  270. package/dist-server/service/issue/issue-mutation.js +5 -6
  271. package/dist-server/service/issue/issue-mutation.js.map +1 -1
  272. package/dist-server/service/issue/issue-query.d.ts +2 -2
  273. package/dist-server/service/issue/issue-query.js +5 -11
  274. package/dist-server/service/issue/issue-query.js.map +1 -1
  275. package/dist-server/service/project-checklist/index.d.ts +5 -0
  276. package/dist-server/service/project-checklist/index.js +9 -0
  277. package/dist-server/service/project-checklist/index.js.map +1 -0
  278. package/dist-server/service/project-checklist/project-checklist-mutation.d.ts +7 -0
  279. package/dist-server/service/project-checklist/project-checklist-mutation.js +109 -0
  280. package/dist-server/service/project-checklist/project-checklist-mutation.js.map +1 -0
  281. package/dist-server/service/project-checklist/project-checklist-query.d.ts +12 -0
  282. package/dist-server/service/project-checklist/project-checklist-query.js +76 -0
  283. package/dist-server/service/project-checklist/project-checklist-query.js.map +1 -0
  284. package/dist-server/service/project-checklist/project-checklist-type.d.ts +18 -0
  285. package/dist-server/service/project-checklist/project-checklist-type.js +69 -0
  286. package/dist-server/service/project-checklist/project-checklist-type.js.map +1 -0
  287. package/dist-server/service/project-checklist/project-checklist.d.ts +20 -0
  288. package/dist-server/service/project-checklist/project-checklist.js +90 -0
  289. package/dist-server/service/project-checklist/project-checklist.js.map +1 -0
  290. package/dist-server/service/project-checklist-item/index.d.ts +4 -0
  291. package/dist-server/service/project-checklist-item/index.js +9 -0
  292. package/dist-server/service/project-checklist-item/index.js.map +1 -0
  293. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.d.ts +2 -0
  294. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js +13 -0
  295. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js.map +1 -0
  296. package/dist-server/service/project-checklist-item/project-checklist-item-query.d.ts +5 -0
  297. package/dist-server/service/project-checklist-item/project-checklist-item-query.js +34 -0
  298. package/dist-server/service/project-checklist-item/project-checklist-item-query.js.map +1 -0
  299. package/dist-server/service/project-checklist-item/project-checklist-item-type.d.ts +5 -0
  300. package/dist-server/service/project-checklist-item/project-checklist-item-type.js +21 -0
  301. package/dist-server/service/project-checklist-item/project-checklist-item-type.js.map +1 -0
  302. package/dist-server/service/project-checklist-item/project-checklist-item.d.ts +17 -0
  303. package/dist-server/service/project-checklist-item/project-checklist-item.js +82 -0
  304. package/dist-server/service/project-checklist-item/project-checklist-item.js.map +1 -0
  305. package/dist-server/service/project-report/project-report-mutation.js +5 -6
  306. package/dist-server/service/project-report/project-report-mutation.js.map +1 -1
  307. package/dist-server/service/project-report/project-report-query.d.ts +2 -2
  308. package/dist-server/service/project-report/project-report-query.js +5 -11
  309. package/dist-server/service/project-report/project-report-query.js.map +1 -1
  310. package/dist-server/service/project-report/project-report.d.ts +0 -2
  311. package/dist-server/service/project-report/project-report.js +0 -6
  312. package/dist-server/service/project-report/project-report.js.map +1 -1
  313. package/dist-server/service/supervisor/supervisor-mutation.js +5 -6
  314. package/dist-server/service/supervisor/supervisor-mutation.js.map +1 -1
  315. package/dist-server/service/supervisor/supervisor-query.d.ts +2 -2
  316. package/dist-server/service/supervisor/supervisor-query.js +5 -11
  317. package/dist-server/service/supervisor/supervisor-query.js.map +1 -1
  318. package/dist-server/tsconfig.tsbuildinfo +1 -1
  319. package/package.json +14 -13
  320. package/things-factory.config.js +9 -1
  321. package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
  322. package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
  323. package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
  324. package/dist-server/service/checklist/checklist-history.js.map +0 -1
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BuildingInspectionList = exports.BuildingInspectionSummary = exports.BuildingInspectionsOfBuildingLevel = exports.BuildingInspectionsOfProject = exports.UpdateBuildingInspectionDrawingMarker = exports.UpdateBuildingInspectionSubmitType = exports.NewBuildingInspection = void 0;
3
+ exports.ProjectManagerOutput = exports.BuildingInspectionList = exports.BuildingInspectionSummary = exports.BuildingInspectionsOfBuildingLevel = exports.BuildingInspectionsOfProject = exports.UpdateBuildingInspection = exports.UpdateBuildingInspectionSubmitType = exports.ChecklistItemSubmitInputType = exports.ChecklistSubmitInputType = exports.NewBuildingInspection = exports.ChecklistItemInputType = exports.ChecklistInputType = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const type_graphql_1 = require("type-graphql");
6
6
  const building_inspection_1 = require("./building-inspection");
7
+ const checklist_1 = require("../checklist/checklist");
7
8
  let ChecklistInputType = class ChecklistInputType {
8
9
  };
10
+ exports.ChecklistInputType = ChecklistInputType;
9
11
  tslib_1.__decorate([
10
12
  (0, type_graphql_1.Field)({ nullable: false }),
11
13
  tslib_1.__metadata("design:type", String)
@@ -19,7 +21,7 @@ tslib_1.__decorate([
19
21
  tslib_1.__metadata("design:type", String)
20
22
  ], ChecklistInputType.prototype, "constructionDetailType", void 0);
21
23
  tslib_1.__decorate([
22
- (0, type_graphql_1.Field)({ nullable: false }),
24
+ (0, type_graphql_1.Field)({ nullable: true }),
23
25
  tslib_1.__metadata("design:type", String)
24
26
  ], ChecklistInputType.prototype, "location", void 0);
25
27
  tslib_1.__decorate([
@@ -30,11 +32,12 @@ tslib_1.__decorate([
30
32
  (0, type_graphql_1.Field)(type => [String], { nullable: true }),
31
33
  tslib_1.__metadata("design:type", Array)
32
34
  ], ChecklistInputType.prototype, "inspectionParts", void 0);
33
- ChecklistInputType = tslib_1.__decorate([
35
+ exports.ChecklistInputType = ChecklistInputType = tslib_1.__decorate([
34
36
  (0, type_graphql_1.InputType)()
35
37
  ], ChecklistInputType);
36
38
  let ChecklistItemInputType = class ChecklistItemInputType {
37
39
  };
40
+ exports.ChecklistItemInputType = ChecklistItemInputType;
38
41
  tslib_1.__decorate([
39
42
  (0, type_graphql_1.Field)({ nullable: false }),
40
43
  tslib_1.__metadata("design:type", String)
@@ -51,14 +54,14 @@ tslib_1.__decorate([
51
54
  (0, type_graphql_1.Field)({ nullable: true }),
52
55
  tslib_1.__metadata("design:type", String)
53
56
  ], ChecklistItemInputType.prototype, "inspctionCriteria", void 0);
54
- ChecklistItemInputType = tslib_1.__decorate([
57
+ exports.ChecklistItemInputType = ChecklistItemInputType = tslib_1.__decorate([
55
58
  (0, type_graphql_1.InputType)()
56
59
  ], ChecklistItemInputType);
57
60
  let NewBuildingInspection = class NewBuildingInspection {
58
61
  };
59
62
  exports.NewBuildingInspection = NewBuildingInspection;
60
63
  tslib_1.__decorate([
61
- (0, type_graphql_1.Field)({ nullable: false }),
64
+ (0, type_graphql_1.Field)({ nullable: true }),
62
65
  tslib_1.__metadata("design:type", String)
63
66
  ], NewBuildingInspection.prototype, "buildingLevelId", void 0);
64
67
  tslib_1.__decorate([
@@ -86,6 +89,7 @@ exports.NewBuildingInspection = NewBuildingInspection = tslib_1.__decorate([
86
89
  ], NewBuildingInspection);
87
90
  let ChecklistSubmitInputType = class ChecklistSubmitInputType {
88
91
  };
92
+ exports.ChecklistSubmitInputType = ChecklistSubmitInputType;
89
93
  tslib_1.__decorate([
90
94
  (0, type_graphql_1.Field)({ nullable: false }),
91
95
  tslib_1.__metadata("design:type", String)
@@ -106,11 +110,28 @@ tslib_1.__decorate([
106
110
  (0, type_graphql_1.Field)({ nullable: true }),
107
111
  tslib_1.__metadata("design:type", String)
108
112
  ], ChecklistSubmitInputType.prototype, "taskSupervisorySignature", void 0);
109
- ChecklistSubmitInputType = tslib_1.__decorate([
113
+ tslib_1.__decorate([
114
+ (0, type_graphql_1.Field)({ nullable: true }),
115
+ tslib_1.__metadata("design:type", String)
116
+ ], ChecklistSubmitInputType.prototype, "inspectionRequestMemo", void 0);
117
+ tslib_1.__decorate([
118
+ (0, type_graphql_1.Field)({ nullable: true }),
119
+ tslib_1.__metadata("design:type", String)
120
+ ], ChecklistSubmitInputType.prototype, "inspectionResultMemo", void 0);
121
+ tslib_1.__decorate([
122
+ (0, type_graphql_1.Field)({ nullable: true }),
123
+ tslib_1.__metadata("design:type", String)
124
+ ], ChecklistSubmitInputType.prototype, "inspectionResultStatus", void 0);
125
+ tslib_1.__decorate([
126
+ (0, type_graphql_1.Field)({ nullable: true }),
127
+ tslib_1.__metadata("design:type", String)
128
+ ], ChecklistSubmitInputType.prototype, "inspectionResultType", void 0);
129
+ exports.ChecklistSubmitInputType = ChecklistSubmitInputType = tslib_1.__decorate([
110
130
  (0, type_graphql_1.InputType)()
111
131
  ], ChecklistSubmitInputType);
112
132
  let ChecklistItemSubmitInputType = class ChecklistItemSubmitInputType {
113
133
  };
134
+ exports.ChecklistItemSubmitInputType = ChecklistItemSubmitInputType;
114
135
  tslib_1.__decorate([
115
136
  (0, type_graphql_1.Field)({ nullable: false }),
116
137
  tslib_1.__metadata("design:type", String)
@@ -123,7 +144,7 @@ tslib_1.__decorate([
123
144
  (0, type_graphql_1.Field)({ nullable: true }),
124
145
  tslib_1.__metadata("design:type", String)
125
146
  ], ChecklistItemSubmitInputType.prototype, "supervisoryConfirmStatus", void 0);
126
- ChecklistItemSubmitInputType = tslib_1.__decorate([
147
+ exports.ChecklistItemSubmitInputType = ChecklistItemSubmitInputType = tslib_1.__decorate([
127
148
  (0, type_graphql_1.InputType)()
128
149
  ], ChecklistItemSubmitInputType);
129
150
  let UpdateBuildingInspectionSubmitType = class UpdateBuildingInspectionSubmitType {
@@ -133,6 +154,14 @@ tslib_1.__decorate([
133
154
  (0, type_graphql_1.Field)({ nullable: false }),
134
155
  tslib_1.__metadata("design:type", String)
135
156
  ], UpdateBuildingInspectionSubmitType.prototype, "id", void 0);
157
+ tslib_1.__decorate([
158
+ (0, type_graphql_1.Field)({ nullable: true }),
159
+ tslib_1.__metadata("design:type", String)
160
+ ], UpdateBuildingInspectionSubmitType.prototype, "memo", void 0);
161
+ tslib_1.__decorate([
162
+ (0, type_graphql_1.Field)({ nullable: true }),
163
+ tslib_1.__metadata("design:type", String)
164
+ ], UpdateBuildingInspectionSubmitType.prototype, "requestDate", void 0);
136
165
  tslib_1.__decorate([
137
166
  (0, type_graphql_1.Field)(type => ChecklistSubmitInputType, { nullable: false }),
138
167
  tslib_1.__metadata("design:type", ChecklistSubmitInputType)
@@ -144,20 +173,24 @@ tslib_1.__decorate([
144
173
  exports.UpdateBuildingInspectionSubmitType = UpdateBuildingInspectionSubmitType = tslib_1.__decorate([
145
174
  (0, type_graphql_1.InputType)()
146
175
  ], UpdateBuildingInspectionSubmitType);
147
- let UpdateBuildingInspectionDrawingMarker = class UpdateBuildingInspectionDrawingMarker {
176
+ let UpdateBuildingInspection = class UpdateBuildingInspection {
148
177
  };
149
- exports.UpdateBuildingInspectionDrawingMarker = UpdateBuildingInspectionDrawingMarker;
178
+ exports.UpdateBuildingInspection = UpdateBuildingInspection;
150
179
  tslib_1.__decorate([
151
180
  (0, type_graphql_1.Field)({ nullable: false }),
152
181
  tslib_1.__metadata("design:type", String)
153
- ], UpdateBuildingInspectionDrawingMarker.prototype, "id", void 0);
182
+ ], UpdateBuildingInspection.prototype, "id", void 0);
183
+ tslib_1.__decorate([
184
+ (0, type_graphql_1.Field)(type => String, { nullable: true }),
185
+ tslib_1.__metadata("design:type", String)
186
+ ], UpdateBuildingInspection.prototype, "drawingMarker", void 0);
154
187
  tslib_1.__decorate([
155
188
  (0, type_graphql_1.Field)(type => String, { nullable: true }),
156
189
  tslib_1.__metadata("design:type", String)
157
- ], UpdateBuildingInspectionDrawingMarker.prototype, "drawingMarker", void 0);
158
- exports.UpdateBuildingInspectionDrawingMarker = UpdateBuildingInspectionDrawingMarker = tslib_1.__decorate([
190
+ ], UpdateBuildingInspection.prototype, "memo", void 0);
191
+ exports.UpdateBuildingInspection = UpdateBuildingInspection = tslib_1.__decorate([
159
192
  (0, type_graphql_1.InputType)()
160
- ], UpdateBuildingInspectionDrawingMarker);
193
+ ], UpdateBuildingInspection);
161
194
  let BuildingInspectionsOfProject = class BuildingInspectionsOfProject {
162
195
  };
163
196
  exports.BuildingInspectionsOfProject = BuildingInspectionsOfProject;
@@ -169,6 +202,10 @@ tslib_1.__decorate([
169
202
  (0, type_graphql_1.Field)({ nullable: true }),
170
203
  tslib_1.__metadata("design:type", Number)
171
204
  ], BuildingInspectionsOfProject.prototype, "limit", void 0);
205
+ tslib_1.__decorate([
206
+ (0, type_graphql_1.Field)({ nullable: true, description: '상태 필터 (WAIT, REQUEST, FAIL, RE_WAIT, PASS)' }),
207
+ tslib_1.__metadata("design:type", String)
208
+ ], BuildingInspectionsOfProject.prototype, "statusFilter", void 0);
172
209
  exports.BuildingInspectionsOfProject = BuildingInspectionsOfProject = tslib_1.__decorate([
173
210
  (0, type_graphql_1.InputType)()
174
211
  ], BuildingInspectionsOfProject);
@@ -183,6 +220,14 @@ tslib_1.__decorate([
183
220
  (0, type_graphql_1.Field)({ nullable: true }),
184
221
  tslib_1.__metadata("design:type", Number)
185
222
  ], BuildingInspectionsOfBuildingLevel.prototype, "limit", void 0);
223
+ tslib_1.__decorate([
224
+ (0, type_graphql_1.Field)({ nullable: true }),
225
+ tslib_1.__metadata("design:type", String)
226
+ ], BuildingInspectionsOfBuildingLevel.prototype, "startDate", void 0);
227
+ tslib_1.__decorate([
228
+ (0, type_graphql_1.Field)({ nullable: true }),
229
+ tslib_1.__metadata("design:type", String)
230
+ ], BuildingInspectionsOfBuildingLevel.prototype, "endDate", void 0);
186
231
  exports.BuildingInspectionsOfBuildingLevel = BuildingInspectionsOfBuildingLevel = tslib_1.__decorate([
187
232
  (0, type_graphql_1.InputType)()
188
233
  ], BuildingInspectionsOfBuildingLevel);
@@ -209,6 +254,10 @@ tslib_1.__decorate([
209
254
  (0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: '검측 실패 수' }),
210
255
  tslib_1.__metadata("design:type", Number)
211
256
  ], BuildingInspectionSummary.prototype, "fail", void 0);
257
+ tslib_1.__decorate([
258
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true, description: '재검측 대기 수 (failCount > 0 인 WAIT/OVERALL_WAIT)' }),
259
+ tslib_1.__metadata("design:type", Number)
260
+ ], BuildingInspectionSummary.prototype, "reWait", void 0);
212
261
  exports.BuildingInspectionSummary = BuildingInspectionSummary = tslib_1.__decorate([
213
262
  (0, type_graphql_1.ObjectType)()
214
263
  ], BuildingInspectionSummary);
@@ -226,4 +275,34 @@ tslib_1.__decorate([
226
275
  exports.BuildingInspectionList = BuildingInspectionList = tslib_1.__decorate([
227
276
  (0, type_graphql_1.ObjectType)()
228
277
  ], BuildingInspectionList);
278
+ let ProjectManagerOutput = class ProjectManagerOutput {
279
+ };
280
+ exports.ProjectManagerOutput = ProjectManagerOutput;
281
+ tslib_1.__decorate([
282
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
283
+ tslib_1.__metadata("design:type", String)
284
+ ], ProjectManagerOutput.prototype, "id", void 0);
285
+ tslib_1.__decorate([
286
+ (0, type_graphql_1.Field)({ nullable: true }),
287
+ tslib_1.__metadata("design:type", String)
288
+ ], ProjectManagerOutput.prototype, "phone", void 0);
289
+ tslib_1.__decorate([
290
+ (0, type_graphql_1.Field)({ nullable: true }),
291
+ tslib_1.__metadata("design:type", String)
292
+ ], ProjectManagerOutput.prototype, "position", void 0);
293
+ tslib_1.__decorate([
294
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
295
+ tslib_1.__metadata("design:type", String)
296
+ ], ProjectManagerOutput.prototype, "userId", void 0);
297
+ tslib_1.__decorate([
298
+ (0, type_graphql_1.Field)({ nullable: true }),
299
+ tslib_1.__metadata("design:type", String)
300
+ ], ProjectManagerOutput.prototype, "name", void 0);
301
+ tslib_1.__decorate([
302
+ (0, type_graphql_1.Field)({ nullable: true }),
303
+ tslib_1.__metadata("design:type", String)
304
+ ], ProjectManagerOutput.prototype, "updatedAt", void 0);
305
+ exports.ProjectManagerOutput = ProjectManagerOutput = tslib_1.__decorate([
306
+ (0, type_graphql_1.ObjectType)()
307
+ ], ProjectManagerOutput);
229
308
  //# sourceMappingURL=building-inspection-type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"building-inspection-type.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAgE;AAChE,+DAA0D;AAG1D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAkBvB,CAAA;AAhBC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDACf;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACD;A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GACC,kCAAkC,CAM9C;AAGM,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CAerC,CAAA;AAfY,8DAAyB;AAEpC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;;8DAC3C;AAGpB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;;uDACnC;AAGZ;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;;0DAChC;AAGf;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;;uDACnC;AAGZ;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;;uDACnC;oCAdD,yBAAyB;IADrC,IAAA,yBAAU,GAAE;GACA,yBAAyB,CAerC;AAGM,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAMlC,CAAA;AANY,wDAAsB;AAEjC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,wCAAkB,CAAC,CAAC;;qDACT;AAG3B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;qDACN;iCALF,sBAAsB;IADlC,IAAA,yBAAU,GAAE;GACA,sBAAsB,CAMlC","sourcesContent":["import { ObjectType, Field, InputType, Int } from 'type-graphql'\nimport { BuildingInspection } from './building-inspection'\n\n@InputType()\nclass ChecklistInputType {\n @Field({ nullable: false })\n name: string\n\n @Field({ nullable: true })\n constructionType?: string\n\n @Field({ nullable: true })\n constructionDetailType?: string\n\n @Field({ nullable: false })\n location?: string\n\n @Field({ nullable: true })\n inspectionDrawingType?: string\n\n @Field(type => [String], { nullable: true })\n inspectionParts?: string[]\n}\n\n@InputType()\nclass ChecklistItemInputType {\n @Field({ nullable: false })\n name: string\n\n @Field({ nullable: false })\n mainType: string\n\n @Field({ nullable: false })\n detailType: string\n\n @Field({ nullable: true })\n inspctionCriteria: string\n}\n\n@InputType()\nexport class NewBuildingInspection {\n @Field({ nullable: false })\n buildingLevelId: string\n\n @Field(type => ChecklistInputType, { nullable: false })\n checklist: ChecklistInputType\n\n @Field(type => [ChecklistItemInputType], { nullable: false })\n checklistItem: ChecklistItemInputType[]\n\n @Field({ nullable: true })\n cellX?: number\n\n @Field({ nullable: true })\n cellY?: number\n\n @Field({ nullable: true })\n managerId?: string\n}\n\n@InputType()\nclass ChecklistSubmitInputType {\n @Field({ nullable: false })\n id: string\n\n @Field({ nullable: true })\n overallConstructorSignature?: string\n\n @Field({ nullable: true })\n taskConstructorSignature?: string\n\n @Field({ nullable: true })\n overallSupervisorySignature?: string\n\n @Field({ nullable: true })\n taskSupervisorySignature?: string\n}\n\n@InputType()\nclass ChecklistItemSubmitInputType {\n @Field({ nullable: false })\n id: string\n\n @Field({ nullable: true })\n constructionConfirmStatus?: string\n\n @Field({ nullable: true })\n supervisoryConfirmStatus?: string\n}\n\n@InputType()\nexport class UpdateBuildingInspectionSubmitType {\n @Field({ nullable: false })\n id: string\n\n @Field(type => ChecklistSubmitInputType, { nullable: false })\n checklist: ChecklistSubmitInputType\n\n @Field(type => [ChecklistItemSubmitInputType], { nullable: false })\n checklistItem: ChecklistItemSubmitInputType[]\n}\n@InputType()\nexport class UpdateBuildingInspectionDrawingMarker {\n @Field({ nullable: false })\n id: string\n\n @Field(type => String, { nullable: true })\n drawingMarker?: string\n}\n\n@InputType()\nexport class BuildingInspectionsOfProject {\n @Field({ nullable: false })\n projectId: string\n\n @Field({ nullable: true })\n limit: number\n}\n\n@InputType()\nexport class BuildingInspectionsOfBuildingLevel {\n @Field({ nullable: false })\n buildingLevelId: string\n\n @Field({ nullable: true })\n limit: number\n}\n\n@ObjectType()\nexport class BuildingInspectionSummary {\n @Field(type => String, { nullable: true, description: '요청일자' })\n requestDate?: string\n\n @Field(type => Int, { description: '검측 대기 수' })\n wait: number\n\n @Field(type => Int, { description: '검측 요청 수' })\n request: number\n\n @Field(type => Int, { description: '검측 통과 수' })\n pass: number\n\n @Field(type => Int, { description: '검측 실패 수' })\n fail: number\n}\n\n@ObjectType()\nexport class BuildingInspectionList {\n @Field(type => [BuildingInspection])\n items: BuildingInspection[]\n\n @Field(type => Int)\n total: number\n}\n"]}
1
+ {"version":3,"file":"building-inspection-type.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,+DAA0D;AAC1D,sDAAqF;AAG9E,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAkB9B,CAAA;AAlBY,gDAAkB;AAE7B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDACf;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACD;AAGzB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACK;AAG/B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACI;AAG9B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DAClB;6BAjBf,kBAAkB;IAD9B,IAAA,wBAAS,GAAE;GACC,kBAAkB,CAkB9B;AAGM,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAYlC,CAAA;AAZY,wDAAsB;AAEjC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,yBAAU,GAAE;GACA,yBAAyB,CAkBrC;AAGM,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAMlC,CAAA;AANY,wDAAsB;AAEjC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,wCAAkB,CAAC,CAAC;;qDACT;AAG3B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;qDACN;iCALF,sBAAsB;IADlC,IAAA,yBAAU,GAAE;GACA,sBAAsB,CAMlC;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAkBhC,CAAA;AAlBY,oDAAoB;AAE/B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACZ;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACT;AAGjB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;oDACH;AAGf;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;+BAjBP,oBAAoB;IADhC,IAAA,yBAAU,GAAE;GACA,oBAAoB,CAkBhC","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { BuildingInspection } from './building-inspection'\nimport { InspectionResultStatus, InspectionResultType } from '../checklist/checklist'\n\n@InputType()\nexport class ChecklistInputType {\n @Field({ nullable: false })\n name: string\n\n @Field({ nullable: true })\n constructionType?: string\n\n @Field({ nullable: true })\n constructionDetailType?: string\n\n @Field({ nullable: true })\n location?: string\n\n @Field({ nullable: true })\n inspectionDrawingType?: string\n\n @Field(type => [String], { nullable: true })\n inspectionParts?: string[]\n}\n\n@InputType()\nexport class ChecklistItemInputType {\n @Field({ nullable: false })\n name: string\n\n @Field({ nullable: false })\n mainType: string\n\n @Field({ nullable: false })\n detailType: string\n\n @Field({ nullable: true })\n inspctionCriteria: string\n}\n\n@InputType()\nexport class NewBuildingInspection {\n @Field({ nullable: true })\n buildingLevelId?: string\n\n @Field(type => ChecklistInputType, { nullable: false })\n checklist: ChecklistInputType\n\n @Field(type => [ChecklistItemInputType], { nullable: false })\n checklistItem: ChecklistItemInputType[]\n\n @Field({ nullable: true })\n cellX?: number\n\n @Field({ nullable: true })\n cellY?: number\n\n @Field({ nullable: true })\n managerId?: string\n}\n\n@InputType()\nexport class ChecklistSubmitInputType {\n @Field({ nullable: false })\n id: string\n\n @Field({ nullable: true })\n overallConstructorSignature?: string\n\n @Field({ nullable: true })\n taskConstructorSignature?: string\n\n @Field({ nullable: true })\n overallSupervisorySignature?: string\n\n @Field({ nullable: true })\n taskSupervisorySignature?: string\n\n @Field({ nullable: true })\n inspectionRequestMemo?: string\n\n @Field({ nullable: true })\n inspectionResultMemo?: string\n\n @Field({ nullable: true })\n inspectionResultStatus?: InspectionResultStatus\n\n @Field({ nullable: true })\n inspectionResultType?: InspectionResultType\n}\n\n@InputType()\nexport class ChecklistItemSubmitInputType {\n @Field({ nullable: false })\n id: string\n\n @Field({ nullable: true })\n constructionConfirmStatus?: string\n\n @Field({ nullable: true })\n supervisoryConfirmStatus?: string\n}\n\n@InputType()\nexport class UpdateBuildingInspectionSubmitType {\n @Field({ nullable: false })\n id: string\n\n @Field({ nullable: true })\n memo?: string\n\n @Field({ nullable: true })\n requestDate?: string\n\n @Field(type => ChecklistSubmitInputType, { nullable: false })\n checklist: ChecklistSubmitInputType\n\n @Field(type => [ChecklistItemSubmitInputType], { nullable: false })\n checklistItem: ChecklistItemSubmitInputType[]\n}\n@InputType()\nexport class UpdateBuildingInspection {\n @Field({ nullable: false })\n id: string\n\n @Field(type => String, { nullable: true })\n drawingMarker?: string\n\n @Field(type => String, { nullable: true })\n memo?: string\n}\n\n@InputType()\nexport class BuildingInspectionsOfProject {\n @Field({ nullable: false })\n projectId: string\n\n @Field({ nullable: true })\n limit: number\n\n @Field({ nullable: true, description: '상태 필터 (WAIT, REQUEST, FAIL, RE_WAIT, PASS)' })\n statusFilter?: string\n}\n\n@InputType()\nexport class BuildingInspectionsOfBuildingLevel {\n @Field({ nullable: false })\n buildingLevelId: string\n\n @Field({ nullable: true })\n limit: number\n\n @Field({ nullable: true })\n startDate?: string\n\n @Field({ nullable: true })\n endDate?: string\n}\n\n@ObjectType()\nexport class BuildingInspectionSummary {\n @Field(type => String, { nullable: true, description: '요청일자' })\n requestDate?: string\n\n @Field(type => Int, { description: '검측 대기 수' })\n wait: number\n\n @Field(type => Int, { description: '검측 요청 수' })\n request: number\n\n @Field(type => Int, { description: '검측 통과 수' })\n pass: number\n\n @Field(type => Int, { description: '검측 실패 수' })\n fail: number\n\n @Field(type => Int, { nullable: true, description: '재검측 대기 수 (failCount > 0 인 WAIT/OVERALL_WAIT)' })\n reWait?: number\n}\n\n@ObjectType()\nexport class BuildingInspectionList {\n @Field(type => [BuildingInspection])\n items: BuildingInspection[]\n\n @Field(type => Int)\n total: number\n}\n\n@ObjectType()\nexport class ProjectManagerOutput {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n phone?: string\n\n @Field({ nullable: true })\n position?: string\n\n @Field(type => ID)\n userId?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n updatedAt?: string\n}\n"]}
@@ -1,6 +1,7 @@
1
1
  import { User } from '@things-factory/auth-base';
2
2
  import { BuildingLevel } from '@dssp/building-complex';
3
3
  import { Checklist } from '../checklist/checklist';
4
+ import { BuildingInspectionDailyWorklog } from '../building-inspection-daily-worklog/building-inspection-daily-worklog';
4
5
  export declare enum BuildingInspectionStatus {
5
6
  WAIT = "WAIT",
6
7
  OVERALL_WAIT = "OVERALL_WAIT",
@@ -17,16 +18,20 @@ export declare class BuildingInspection {
17
18
  readonly id: string;
18
19
  projectType?: ProjectType;
19
20
  status?: BuildingInspectionStatus;
21
+ failCount?: number;
20
22
  requestDate?: string;
21
23
  drawingMarker?: string;
22
24
  cellX?: number;
23
25
  cellY?: number;
26
+ memo?: string;
24
27
  buildingLevel?: BuildingLevel;
25
28
  buildingLevelId?: string;
26
29
  checklist?: Checklist;
27
30
  checklistId?: string;
28
31
  manager?: User;
29
32
  managerId?: string;
33
+ worklog?: BuildingInspectionDailyWorklog;
34
+ worklogId?: string;
30
35
  createdAt?: Date;
31
36
  updatedAt?: Date;
32
37
  deletedAt?: Date;
@@ -7,7 +7,8 @@ const type_graphql_1 = require("type-graphql");
7
7
  const auth_base_1 = require("@things-factory/auth-base");
8
8
  const building_complex_1 = require("@dssp/building-complex");
9
9
  const checklist_1 = require("../checklist/checklist");
10
- const project_1 = require("@dssp/project");
10
+ const building_inspection_type_1 = require("./building-inspection-type");
11
+ const building_inspection_daily_worklog_1 = require("../building-inspection-daily-worklog/building-inspection-daily-worklog");
11
12
  var BuildingInspectionStatus;
12
13
  (function (BuildingInspectionStatus) {
13
14
  BuildingInspectionStatus["WAIT"] = "WAIT";
@@ -46,14 +47,19 @@ tslib_1.__decorate([
46
47
  tslib_1.__decorate([
47
48
  (0, typeorm_1.Column)({
48
49
  nullable: false,
49
- comment: '상태(WAIT: 검측 대기, OVERALL_WAIT: 총괄자 검측 대기, REQUEST: 검측 요청, OVERALL_REQUEST: 총괄자 검측 요청, PASS: 합격, FAIL: 불합격)',
50
+ comment: '상태(WAIT: 작업 완료, OVERALL_WAIT: 총괄자 작업 완료, REQUEST: 검측 요청, OVERALL_REQUEST: 총괄자 검측 요청, PASS: 합격(검측 완료), FAIL: 불합격(조치 필요))',
50
51
  default: BuildingInspectionStatus.WAIT
51
52
  }),
52
53
  (0, type_graphql_1.Field)({ nullable: true }),
53
54
  tslib_1.__metadata("design:type", String)
54
55
  ], BuildingInspection.prototype, "status", void 0);
55
56
  tslib_1.__decorate([
56
- (0, typeorm_1.Column)({ type: 'date', default: () => 'CURRENT_DATE', nullable: true, comment: '검측 요청일' }),
57
+ (0, typeorm_1.Column)({ type: 'int', default: 0, nullable: false, comment: '불합격 횟수 (재검측 여부 판단용)' }),
58
+ (0, type_graphql_1.Field)({ nullable: true }),
59
+ tslib_1.__metadata("design:type", Number)
60
+ ], BuildingInspection.prototype, "failCount", void 0);
61
+ tslib_1.__decorate([
62
+ (0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP', nullable: true, comment: '검측 요청일시' }),
57
63
  (0, type_graphql_1.Field)(type => String, { nullable: true }),
58
64
  tslib_1.__metadata("design:type", String)
59
65
  ], BuildingInspection.prototype, "requestDate", void 0);
@@ -72,6 +78,11 @@ tslib_1.__decorate([
72
78
  (0, type_graphql_1.Field)({ nullable: true }),
73
79
  tslib_1.__metadata("design:type", Number)
74
80
  ], BuildingInspection.prototype, "cellY", void 0);
81
+ tslib_1.__decorate([
82
+ (0, typeorm_1.Column)({ nullable: true, comment: '메모 - DSSP: 검측 메모, DCSP: 검측 요청서 메모' }),
83
+ (0, type_graphql_1.Field)({ nullable: true }),
84
+ tslib_1.__metadata("design:type", String)
85
+ ], BuildingInspection.prototype, "memo", void 0);
75
86
  tslib_1.__decorate([
76
87
  (0, typeorm_1.ManyToOne)(type => building_complex_1.BuildingLevel),
77
88
  (0, type_graphql_1.Field)(() => building_complex_1.BuildingLevel, { nullable: true }),
@@ -93,13 +104,22 @@ tslib_1.__decorate([
93
104
  ], BuildingInspection.prototype, "checklistId", void 0);
94
105
  tslib_1.__decorate([
95
106
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
96
- (0, type_graphql_1.Field)(type => project_1.ManagerOutput, { nullable: true }),
107
+ (0, type_graphql_1.Field)(type => building_inspection_type_1.ProjectManagerOutput, { nullable: true }),
97
108
  tslib_1.__metadata("design:type", auth_base_1.User)
98
109
  ], BuildingInspection.prototype, "manager", void 0);
99
110
  tslib_1.__decorate([
100
111
  (0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.manager),
101
112
  tslib_1.__metadata("design:type", String)
102
113
  ], BuildingInspection.prototype, "managerId", void 0);
114
+ tslib_1.__decorate([
115
+ (0, typeorm_1.ManyToOne)(type => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { nullable: true }),
116
+ (0, type_graphql_1.Field)(type => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { nullable: true }),
117
+ tslib_1.__metadata("design:type", building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
118
+ ], BuildingInspection.prototype, "worklog", void 0);
119
+ tslib_1.__decorate([
120
+ (0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.worklog),
121
+ tslib_1.__metadata("design:type", String)
122
+ ], BuildingInspection.prototype, "worklogId", void 0);
103
123
  tslib_1.__decorate([
104
124
  (0, typeorm_1.CreateDateColumn)(),
105
125
  (0, type_graphql_1.Field)({ nullable: true }),
@@ -148,6 +168,19 @@ exports.BuildingInspection = BuildingInspection = tslib_1.__decorate([
148
168
  (0, typeorm_1.Index)('ix_building_inspection_2', (buildingInspection) => [buildingInspection.requestDate], {
149
169
  where: '"deleted_at" IS NULL'
150
170
  }),
171
+ (0, typeorm_1.Index)('ix_building_inspection_3', (buildingInspection) => [
172
+ buildingInspection.buildingLevel,
173
+ buildingInspection.projectType,
174
+ buildingInspection.requestDate
175
+ ], { where: '"deleted_at" IS NULL' }),
176
+ (0, typeorm_1.Index)('ix_building_inspection_4', (buildingInspection) => [
177
+ buildingInspection.buildingLevel,
178
+ buildingInspection.projectType,
179
+ buildingInspection.status
180
+ ], { where: '"deleted_at" IS NULL' }),
181
+ (0, typeorm_1.Index)('ix_building_inspection_5', (buildingInspection) => [buildingInspection.worklog], {
182
+ where: '"deleted_at" IS NULL'
183
+ }),
151
184
  (0, type_graphql_1.ObjectType)()
152
185
  ], BuildingInspection);
153
186
  //# sourceMappingURL=building-inspection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"building-inspection.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAAsE;AACtE,yDAAgD;AAChD,6DAAsD;AACtD,sDAAkD;AAClD,2CAA6C;AAE7C,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;IACb,yDAA6B,CAAA;IAC7B,+CAAmB,CAAA;IACnB,+DAAmC,CAAA;IACnC,yCAAa,CAAA;IACb,yCAAa,CAAA;AACf,CAAC,EAPW,wBAAwB,wCAAxB,wBAAwB,QAOnC;AACD,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,4BAAa,CAAA;AACf,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,IAAA,+BAAgB,EAAC,wBAAwB,EAAE;IACzC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,OAAO;CACrB,CAAC,CAAA;AACF,IAAA,+BAAgB,EAAC,WAAW,EAAE;IAC5B,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,SAAS;CACvB,CAAC,CAAA;AAqBK,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAmF9B,CAAA;AAnFY,gDAAkB;AAGpB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;8CACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC;IAC1E,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACD;AASzB;IAPC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,KAAK;QACf,OAAO,EACL,2GAA2G;QAC7G,OAAO,E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C,kBAAsC,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC;;qDACjE;AAIlB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;mDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,kBAAsC,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC;;qDACjE;6BAlFP,kBAAkB;IAnB9B,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;IAC5C,IAAA,eAAK,EACJ,0BAA0B,EAC1B,CAAC,kBAAsC,EAAE,EAAE,CAAC;QAC1C,kBAAkB,CAAC,aAAa;QAChC,kBAAkB,CAAC,KAAK;QACxB,kBAAkB,CAAC,KAAK;KACzB,EACD;QACE,KAAK,EAAE,sBAAsB;KAC9B,CACF;IACA,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,kBAAsC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE;QAC7G,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,kBAAsC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE;QAC/G,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,yBAAU,GAAE;GACA,kBAAkB,CAmF9B","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToOne,\n PrimaryGeneratedColumn,\n JoinColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, registerEnumType } from 'type-graphql'\nimport { User } from '@things-factory/auth-base'\nimport { BuildingLevel } from '@dssp/building-complex'\nimport { Checklist } from '../checklist/checklist'\nimport { ManagerOutput } from '@dssp/project'\n\nexport enum BuildingInspectionStatus {\n WAIT = 'WAIT',\n OVERALL_WAIT = 'OVERALL_WAIT',\n REQUEST = 'REQUEST',\n OVERALL_REQUEST = 'OVERALL_REQUEST',\n PASS = 'PASS',\n FAIL = 'FAIL'\n}\nexport enum ProjectType {\n DSSP = 'DSSP',\n DCSP = 'DCSP'\n}\n\nregisterEnumType(BuildingInspectionStatus, {\n name: 'BuildingInspectionStatus',\n description: '검측 상태'\n})\nregisterEnumType(ProjectType, {\n name: 'ProjectType',\n description: '프로젝트 타입'\n})\n\n@Entity({ comment: '시공 검측 (층별 도면의 검측 리스트)' })\n@Index(\n 'ix_building_inspection_0',\n (buildingInspection: BuildingInspection) => [\n buildingInspection.buildingLevel,\n buildingInspection.cellX,\n buildingInspection.cellY\n ],\n {\n where: '\"deleted_at\" IS NULL'\n }\n)\n@Index('ix_building_inspection_1', (buildingInspection: BuildingInspection) => [buildingInspection.checklist], {\n where: '\"deleted_at\" IS NULL'\n})\n@Index('ix_building_inspection_2', (buildingInspection: BuildingInspection) => [buildingInspection.requestDate], {\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType()\nexport class BuildingInspection {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: false, comment: '프로젝트 타입', default: ProjectType.DSSP })\n @Field({ nullable: true })\n projectType?: ProjectType\n\n @Column({\n nullable: false,\n comment:\n '상태(WAIT: 검측 대기, OVERALL_WAIT: 총괄자 검측 대기, REQUEST: 검측 요청, OVERALL_REQUEST: 총괄자 검측 요청, PASS: 합격, FAIL: 불합격)',\n default: BuildingInspectionStatus.WAIT\n })\n @Field({ nullable: true })\n status?: BuildingInspectionStatus\n\n @Column({ type: 'date', default: () => 'CURRENT_DATE', nullable: true, comment: '검측 요청일' })\n @Field(type => String, { nullable: true })\n requestDate?: string\n\n @Column({ type: 'simple-json', nullable: true, comment: '도면 마커' })\n @Field(type => String, { nullable: true })\n drawingMarker?: string\n\n @Column({ nullable: true, comment: 'X좌표' })\n @Field({ nullable: true })\n cellX?: number\n\n @Column({ nullable: true, comment: 'Y좌표' })\n @Field({ nullable: true })\n cellY?: number\n\n // 층 정보 (N:1 상위 테이블 참조)\n @ManyToOne(type => BuildingLevel)\n @Field(() => BuildingLevel, { nullable: true })\n buildingLevel?: BuildingLevel\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.buildingLevel)\n buildingLevelId?: string\n\n // 체크리스트 (1:1 상위 테이블 참조)\n @OneToOne(type => Checklist)\n @JoinColumn()\n @Field(() => Checklist, { nullable: true })\n checklist?: Checklist\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.checklist)\n checklistId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => ManagerOutput, { nullable: true })\n manager?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.manager)\n managerId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.updater)\n updaterId?: string\n}\n"]}
1
+ {"version":3,"file":"building-inspection.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAAsE;AACtE,yDAAgD;AAChD,6DAAsD;AACtD,sDAAkD;AAClD,yEAAiE;AACjE,8HAAuH;AAEvH,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;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KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,kBAAsC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE;QAC/G,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,eAAK,EACJ,0BAA0B,EAC1B,CAAC,kBAAsC,EAAE,EAAE,CAAC;QAC1C,kBAAkB,CAAC,aAAa;QAChC,kBAAkB,CAAC,WAAW;QAC9B,kBAAkB,CAAC,WAAW;KAC/B,EACD,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAClC;IACA,IAAA,eAAK,EACJ,0BAA0B,EAC1B,CAAC,kBAAsC,EAAE,EAAE,CAAC;QAC1C,kBAAkB,CAAC,aAAa;QAChC,kBAAkB,CAAC,WAAW;QAC9B,kBAAkB,CAAC,MAAM;KAC1B,EACD,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAClC;IACA,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,kBAAsC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE;QAC3G,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,yBAAU,GAAE;GACA,kBAAkB,CAmG9B","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToOne,\n PrimaryGeneratedColumn,\n JoinColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, registerEnumType } from 'type-graphql'\nimport { User } from '@things-factory/auth-base'\nimport { BuildingLevel } from '@dssp/building-complex'\nimport { Checklist } from '../checklist/checklist'\nimport { ProjectManagerOutput } from './building-inspection-type'\nimport { BuildingInspectionDailyWorklog } from '../building-inspection-daily-worklog/building-inspection-daily-worklog'\n\nexport enum BuildingInspectionStatus {\n WAIT = 'WAIT',\n OVERALL_WAIT = 'OVERALL_WAIT',\n REQUEST = 'REQUEST',\n OVERALL_REQUEST = 'OVERALL_REQUEST',\n PASS = 'PASS',\n FAIL = 'FAIL'\n}\nexport enum ProjectType {\n DSSP = 'DSSP',\n DCSP = 'DCSP'\n}\n\nregisterEnumType(BuildingInspectionStatus, {\n name: 'BuildingInspectionStatus',\n description: '검측 상태'\n})\nregisterEnumType(ProjectType, {\n name: 'ProjectType',\n description: '프로젝트 타입'\n})\n\n@Entity({ comment: '시공 검측 (층별 도면의 검측 리스트)' })\n@Index(\n 'ix_building_inspection_0',\n (buildingInspection: BuildingInspection) => [\n buildingInspection.buildingLevel,\n buildingInspection.cellX,\n buildingInspection.cellY\n ],\n {\n where: '\"deleted_at\" IS NULL'\n }\n)\n@Index('ix_building_inspection_1', (buildingInspection: BuildingInspection) => [buildingInspection.checklist], {\n where: '\"deleted_at\" IS NULL'\n})\n@Index('ix_building_inspection_2', (buildingInspection: BuildingInspection) => [buildingInspection.requestDate], {\n where: '\"deleted_at\" IS NULL'\n})\n@Index(\n 'ix_building_inspection_3',\n (buildingInspection: BuildingInspection) => [\n buildingInspection.buildingLevel,\n buildingInspection.projectType,\n buildingInspection.requestDate\n ],\n { where: '\"deleted_at\" IS NULL' }\n)\n@Index(\n 'ix_building_inspection_4',\n (buildingInspection: BuildingInspection) => [\n buildingInspection.buildingLevel,\n buildingInspection.projectType,\n buildingInspection.status\n ],\n { where: '\"deleted_at\" IS NULL' }\n)\n@Index('ix_building_inspection_5', (buildingInspection: BuildingInspection) => [buildingInspection.worklog], {\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType()\nexport class BuildingInspection {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: false, comment: '프로젝트 타입', default: ProjectType.DSSP })\n @Field({ nullable: true })\n projectType?: ProjectType\n\n @Column({\n nullable: false,\n comment:\n '상태(WAIT: 작업 완료, OVERALL_WAIT: 총괄자 작업 완료, REQUEST: 검측 요청, OVERALL_REQUEST: 총괄자 검측 요청, PASS: 합격(검측 완료), FAIL: 불합격(조치 필요))',\n default: BuildingInspectionStatus.WAIT\n })\n @Field({ nullable: true })\n status?: BuildingInspectionStatus\n\n @Column({ type: 'int', default: 0, nullable: false, comment: '불합격 횟수 (재검측 여부 판단용)' })\n @Field({ nullable: true })\n failCount?: number\n\n @Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP', nullable: true, comment: '검측 요청일시' })\n @Field(type => String, { nullable: true })\n requestDate?: string\n\n @Column({ type: 'simple-json', nullable: true, comment: '도면 마커' })\n @Field(type => String, { nullable: true })\n drawingMarker?: string\n\n @Column({ nullable: true, comment: 'X좌표' })\n @Field({ nullable: true })\n cellX?: number\n\n @Column({ nullable: true, comment: 'Y좌표' })\n @Field({ nullable: true })\n cellY?: number\n\n @Column({ nullable: true, comment: '메모 - DSSP: 검측 메모, DCSP: 검측 요청서 메모' })\n @Field({ nullable: true })\n memo?: string\n\n // 층 정보 (N:1 상위 테이블 참조)\n @ManyToOne(type => BuildingLevel)\n @Field(() => BuildingLevel, { nullable: true })\n buildingLevel?: BuildingLevel\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.buildingLevel)\n buildingLevelId?: string\n\n // 체크리스트 (1:1 상위 테이블 참조)\n @OneToOne(type => Checklist)\n @JoinColumn()\n @Field(() => Checklist, { nullable: true })\n checklist?: Checklist\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.checklist)\n checklistId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => ProjectManagerOutput, { nullable: true })\n manager?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.manager)\n managerId?: string\n\n // 일일 업무 일지가 생성되면 ID를 넣어줌 (상위 테이블 참조)\n @ManyToOne(type => BuildingInspectionDailyWorklog, { nullable: true })\n @Field(type => BuildingInspectionDailyWorklog, { nullable: true })\n worklog?: BuildingInspectionDailyWorklog\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.worklog)\n worklogId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.updater)\n updaterId?: string\n}\n"]}
@@ -1,8 +1,7 @@
1
1
  import { BuildingInspection, BuildingInspectionStatus, ProjectType } from './building-inspection';
2
2
  import { BuildingInspectionQuery } from './building-inspection-query';
3
3
  import { BuildingInspectionMutation } from './building-inspection-mutation';
4
- import { BuildingInspectionSummary } from './building-inspection-type';
5
- import { BuildingInspectionHistory } from './building-inspection-history';
6
- export declare const entities: (typeof BuildingInspection | typeof BuildingInspectionHistory)[];
4
+ import { BuildingInspectionSummary, ChecklistInputType, ChecklistItemInputType, ChecklistSubmitInputType, ChecklistItemSubmitInputType } from './building-inspection-type';
5
+ export declare const entities: (typeof BuildingInspection)[];
7
6
  export declare const resolvers: (typeof BuildingInspectionQuery | typeof BuildingInspectionMutation)[];
8
- export declare const types: (typeof BuildingInspectionStatus | typeof ProjectType | typeof BuildingInspectionSummary)[];
7
+ export declare const types: (typeof ChecklistInputType | typeof ChecklistItemInputType | typeof ChecklistSubmitInputType | typeof ChecklistItemSubmitInputType | typeof BuildingInspectionSummary | typeof BuildingInspectionStatus | typeof ProjectType)[];
@@ -5,8 +5,15 @@ const building_inspection_1 = require("./building-inspection");
5
5
  const building_inspection_query_1 = require("./building-inspection-query");
6
6
  const building_inspection_mutation_1 = require("./building-inspection-mutation");
7
7
  const building_inspection_type_1 = require("./building-inspection-type");
8
- const building_inspection_history_1 = require("./building-inspection-history");
9
- exports.entities = [building_inspection_1.BuildingInspection, building_inspection_history_1.BuildingInspectionHistory];
8
+ exports.entities = [building_inspection_1.BuildingInspection];
10
9
  exports.resolvers = [building_inspection_query_1.BuildingInspectionQuery, building_inspection_mutation_1.BuildingInspectionMutation];
11
- exports.types = [building_inspection_1.BuildingInspectionStatus, building_inspection_type_1.BuildingInspectionSummary, building_inspection_1.ProjectType];
10
+ exports.types = [
11
+ building_inspection_1.BuildingInspectionStatus,
12
+ building_inspection_type_1.BuildingInspectionSummary,
13
+ building_inspection_1.ProjectType,
14
+ building_inspection_type_1.ChecklistInputType,
15
+ building_inspection_type_1.ChecklistItemInputType,
16
+ building_inspection_type_1.ChecklistSubmitInputType,
17
+ building_inspection_type_1.ChecklistItemSubmitInputType
18
+ ];
12
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection/index.ts"],"names":[],"mappings":";;;AAAA,+DAAiG;AACjG,2EAAqE;AACrE,iFAA2E;AAC3E,yEAAsE;AACtE,+EAAyE;AAE5D,QAAA,QAAQ,GAAG,CAAC,wCAAkB,EAAE,uDAAyB,CAAC,CAAA;AAC1D,QAAA,SAAS,GAAG,CAAC,mDAAuB,EAAE,yDAA0B,CAAC,CAAA;AACjE,QAAA,KAAK,GAAG,CAAC,8CAAwB,EAAE,oDAAyB,EAAE,iCAAW,CAAC,CAAA","sourcesContent":["import { BuildingInspection, BuildingInspectionStatus, ProjectType } from './building-inspection'\nimport { BuildingInspectionQuery } from './building-inspection-query'\nimport { BuildingInspectionMutation } from './building-inspection-mutation'\nimport { BuildingInspectionSummary } from './building-inspection-type'\nimport { BuildingInspectionHistory } from './building-inspection-history'\n\nexport const entities = [BuildingInspection, BuildingInspectionHistory]\nexport const resolvers = [BuildingInspectionQuery, BuildingInspectionMutation]\nexport const types = [BuildingInspectionStatus, BuildingInspectionSummary, ProjectType]\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection/index.ts"],"names":[],"mappings":";;;AAAA,+DAAiG;AACjG,2EAAqE;AACrE,iFAA2E;AAC3E,yEAMmC;AAEtB,QAAA,QAAQ,GAAG,CAAC,wCAAkB,CAAC,CAAA;AAC/B,QAAA,SAAS,GAAG,CAAC,mDAAuB,EAAE,yDAA0B,CAAC,CAAA;AACjE,QAAA,KAAK,GAAG;IACnB,8CAAwB;IACxB,oDAAyB;IACzB,iCAAW;IACX,6CAAkB;IAClB,iDAAsB;IACtB,mDAAwB;IACxB,uDAA4B;CAC7B,CAAA","sourcesContent":["import { BuildingInspection, BuildingInspectionStatus, ProjectType } from './building-inspection'\nimport { BuildingInspectionQuery } from './building-inspection-query'\nimport { BuildingInspectionMutation } from './building-inspection-mutation'\nimport {\n BuildingInspectionSummary,\n ChecklistInputType,\n ChecklistItemInputType,\n ChecklistSubmitInputType,\n ChecklistItemSubmitInputType\n} from './building-inspection-type'\n\nexport const entities = [BuildingInspection]\nexport const resolvers = [BuildingInspectionQuery, BuildingInspectionMutation]\nexport const types = [\n BuildingInspectionStatus,\n BuildingInspectionSummary,\n ProjectType,\n ChecklistInputType,\n ChecklistItemInputType,\n ChecklistSubmitInputType,\n ChecklistItemSubmitInputType\n]\n"]}
@@ -0,0 +1,6 @@
1
+ import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
2
+ import { BuildingInspectionDailyWorklogPatch, BuildingInspectionDailyWorklogNew } from './building-inspection-daily-worklog-type';
3
+ export declare class BuildingInspectionDailyWorklogMutation {
4
+ createBuildingInspectionDailyWorklog(patch: BuildingInspectionDailyWorklogNew, context: ResolverContext): Promise<BuildingInspectionDailyWorklog>;
5
+ updateBuildingInspectionDailyWorklog(patch: BuildingInspectionDailyWorklogPatch, context: ResolverContext): Promise<BuildingInspectionDailyWorklog>;
6
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BuildingInspectionDailyWorklogMutation = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const type_graphql_1 = require("type-graphql");
6
+ const building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
7
+ const building_inspection_daily_worklog_type_1 = require("./building-inspection-daily-worklog-type");
8
+ const building_inspection_1 = require("../building-inspection/building-inspection");
9
+ const building_inspection_daily_worklog_query_1 = require("./building-inspection-daily-worklog-query");
10
+ let BuildingInspectionDailyWorklogMutation = class BuildingInspectionDailyWorklogMutation {
11
+ async createBuildingInspectionDailyWorklog(patch, context) {
12
+ const { user, domain, tx } = context.state;
13
+ const worklogRepo = tx.getRepository(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog);
14
+ const buildingInspectionRepo = tx.getRepository(building_inspection_1.BuildingInspection);
15
+ if (!patch.projectId)
16
+ throw new Error('projectId 가 없습니다.');
17
+ if (!patch.date)
18
+ throw new Error('date 가 없습니다.');
19
+ const result = await worklogRepo.save(Object.assign(Object.assign({}, patch), { overallSupervisory: patch.overallSupervisoryId ? { id: patch.overallSupervisoryId } : undefined, taskSupervisory: patch.taskSupervisoryId ? { id: patch.taskSupervisoryId } : undefined, documentNo: await (0, building_inspection_daily_worklog_query_1.generateDailyWorklogDocumentNo)(patch.projectId), domain: domain, creator: user, updater: user }));
20
+ for (const buildingInspectionId of patch.buildingInspectionIds) {
21
+ const buildingInspection = await buildingInspectionRepo.findOne({ where: { id: buildingInspectionId } });
22
+ await buildingInspectionRepo.save(Object.assign(Object.assign({}, buildingInspection), { worklog: result }));
23
+ }
24
+ return result;
25
+ }
26
+ async updateBuildingInspectionDailyWorklog(patch, context) {
27
+ const { user, tx } = context.state;
28
+ const worklogRepo = tx.getRepository(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog);
29
+ const origin = await worklogRepo.findOne({ where: { id: patch.id } });
30
+ const result = await worklogRepo.save(Object.assign(Object.assign(Object.assign({}, origin), patch), { updater: user }));
31
+ return result;
32
+ }
33
+ };
34
+ exports.BuildingInspectionDailyWorklogMutation = BuildingInspectionDailyWorklogMutation;
35
+ tslib_1.__decorate([
36
+ (0, type_graphql_1.Directive)('@transaction'),
37
+ (0, type_graphql_1.Mutation)(returns => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { description: 'Create Daily Worklog by projectId+date' }),
38
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('patch')),
39
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
40
+ tslib_1.__metadata("design:type", Function),
41
+ tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_type_1.BuildingInspectionDailyWorklogNew, Object]),
42
+ tslib_1.__metadata("design:returntype", Promise)
43
+ ], BuildingInspectionDailyWorklogMutation.prototype, "createBuildingInspectionDailyWorklog", null);
44
+ tslib_1.__decorate([
45
+ (0, type_graphql_1.Directive)('@transaction'),
46
+ (0, type_graphql_1.Mutation)(returns => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { description: 'Update Daily Worklog' }),
47
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('patch')),
48
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
49
+ tslib_1.__metadata("design:type", Function),
50
+ tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_type_1.BuildingInspectionDailyWorklogPatch, Object]),
51
+ tslib_1.__metadata("design:returntype", Promise)
52
+ ], BuildingInspectionDailyWorklogMutation.prototype, "updateBuildingInspectionDailyWorklog", null);
53
+ exports.BuildingInspectionDailyWorklogMutation = BuildingInspectionDailyWorklogMutation = tslib_1.__decorate([
54
+ (0, type_graphql_1.Resolver)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
55
+ ], BuildingInspectionDailyWorklogMutation);
56
+ //# sourceMappingURL=building-inspection-daily-worklog-mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"building-inspection-daily-worklog-mutation.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,2FAAoF;AACpF,qGAAiI;AACjI,oFAA+E;AAC/E,uGAA0F;AAGnF,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DailyWorklog } from './building-inspection-daily-worklog'\nimport { BuildingInspectionDailyWorklogPatch, BuildingInspectionDailyWorklogNew } from './building-inspection-daily-worklog-type'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\nimport { generateDailyWorklogDocumentNo } from './building-inspection-daily-worklog-query'\n\n@Resolver(BuildingInspectionDailyWorklog)\nexport class BuildingInspectionDailyWorklogMutation {\n @Directive('@transaction')\n @Mutation(returns => BuildingInspectionDailyWorklog, { description: 'Create Daily Worklog by projectId+date' })\n async createBuildingInspectionDailyWorklog(\n @Arg('patch') patch: BuildingInspectionDailyWorklogNew,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionDailyWorklog> {\n const { user, domain, tx } = context.state\n const worklogRepo = tx.getRepository(BuildingInspectionDailyWorklog)\n const buildingInspectionRepo = tx.getRepository(BuildingInspection)\n\n if (!patch.projectId) throw new Error('projectId 가 없습니다.')\n if (!patch.date) throw new Error('date 가 없습니다.')\n\n const result = await worklogRepo.save({\n ...patch,\n overallSupervisory: patch.overallSupervisoryId ? ({ id: patch.overallSupervisoryId } as any) : undefined,\n taskSupervisory: patch.taskSupervisoryId ? ({ id: patch.taskSupervisoryId } as any) : undefined,\n documentNo: await generateDailyWorklogDocumentNo(patch.projectId),\n domain: domain,\n creator: user,\n updater: user\n })\n\n for (const buildingInspectionId of patch.buildingInspectionIds) {\n const buildingInspection = await buildingInspectionRepo.findOne({ where: { id: buildingInspectionId } })\n await buildingInspectionRepo.save({ ...buildingInspection, worklog: result })\n }\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => BuildingInspectionDailyWorklog, { description: 'Update Daily Worklog' })\n async updateBuildingInspectionDailyWorklog(\n @Arg('patch') patch: BuildingInspectionDailyWorklogPatch,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionDailyWorklog> {\n const { user, tx } = context.state\n const worklogRepo = tx.getRepository(BuildingInspectionDailyWorklog)\n\n const origin = await worklogRepo.findOne({ where: { id: patch.id } })\n const result = await worklogRepo.save({\n ...origin,\n ...patch,\n updater: user\n })\n\n return result\n }\n}\n"]}
@@ -0,0 +1,16 @@
1
+ import { Domain } from '@things-factory/shell';
2
+ import { User } from '@things-factory/auth-base';
3
+ import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
4
+ export declare class BuildingInspectionDailyWorklogQuery {
5
+ /**
6
+ * 프로젝트와 날짜로 일일업무일지 조회. 없으면 새 문서번호를 생성해 빈 데이터를 반환
7
+ */
8
+ buildingInspectionDailyWorklogByProjectIdAndDate(projectId: string, date: string, context: ResolverContext): Promise<BuildingInspectionDailyWorklog>;
9
+ dailyWorklogDatesOfProject(projectId: string, startDate: string, endDate: string, context: ResolverContext): Promise<BuildingInspectionDailyWorklog[]>;
10
+ domain(worklog: BuildingInspectionDailyWorklog): Promise<Domain>;
11
+ updater(worklog: BuildingInspectionDailyWorklog): Promise<User>;
12
+ creator(worklog: BuildingInspectionDailyWorklog): Promise<User>;
13
+ overallSupervisory(worklog: BuildingInspectionDailyWorklog): Promise<User>;
14
+ taskSupervisory(worklog: BuildingInspectionDailyWorklog): Promise<User>;
15
+ }
16
+ export declare function generateDailyWorklogDocumentNo(projectId: string): Promise<string>;