@dssp/supervision 1.0.0-alpha.0 → 1.0.0-alpha.100

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 (540) 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 +1407 -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 +148 -73
  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 +23 -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/client/bootstrap.ts +0 -1
  438. package/client/index.ts +0 -0
  439. package/client/pages/action-plan/action-plan-importer.ts +0 -94
  440. package/client/pages/action-plan/action-plan-list-page.ts +0 -340
  441. package/client/pages/building-inspection/building-inspection-detail-camera.ts +0 -277
  442. package/client/pages/building-inspection/building-inspection-detail-checklist.ts +0 -258
  443. package/client/pages/building-inspection/building-inspection-detail-drawing.ts +0 -288
  444. package/client/pages/building-inspection/building-inspection-list.ts +0 -565
  445. package/client/pages/building-inspection/component/building-inspection-detail-header.ts +0 -123
  446. package/client/pages/building-inspection/component/inspection-event-provider.ts +0 -81
  447. package/client/pages/building-inspection/inspection-create-popup.ts +0 -785
  448. package/client/pages/checklist/attachment-list-popup.ts +0 -301
  449. package/client/pages/checklist/checklist-view.ts +0 -581
  450. package/client/pages/checklist/comment-list-popup.ts +0 -328
  451. package/client/pages/checklist/file-preview-popup.ts +0 -70
  452. package/client/pages/checklist-template/checklist-template-item.ts +0 -240
  453. package/client/pages/checklist-template/checklist-template-list.ts +0 -368
  454. package/client/pages/checklist-template/checklist-type-management.ts +0 -262
  455. package/client/pages/issue/issue-importer.ts +0 -94
  456. package/client/pages/issue/issue-list-page.ts +0 -340
  457. package/client/pages/project-report/project-report-importer.ts +0 -94
  458. package/client/pages/project-report/project-report-list-page.ts +0 -340
  459. package/client/pages/supervisor/supervisor-importer.ts +0 -94
  460. package/client/pages/supervisor/supervisor-list-page.ts +0 -340
  461. package/client/route.ts +0 -27
  462. package/client/tsconfig.json +0 -11
  463. package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
  464. package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
  465. package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
  466. package/dist-server/service/building-inspection/event-subscriber.js.map +0 -1
  467. package/dist-server/service/checklist/checklist-history.d.ts +0 -24
  468. package/dist-server/service/checklist/checklist-history.js +0 -120
  469. package/dist-server/service/checklist/checklist-history.js.map +0 -1
  470. package/dist-server/service/checklist-item-comment/event-subscriber.d.ts +0 -7
  471. package/dist-server/service/checklist-item-comment/event-subscriber.js +0 -21
  472. package/dist-server/service/checklist-item-comment/event-subscriber.js.map +0 -1
  473. package/server/controllers/index.ts +0 -0
  474. package/server/index.ts +0 -4
  475. package/server/middlewares/index.ts +0 -3
  476. package/server/migrations/index.ts +0 -9
  477. package/server/routes.ts +0 -28
  478. package/server/service/action-plan/action-plan-mutation.ts +0 -198
  479. package/server/service/action-plan/action-plan-query.ts +0 -62
  480. package/server/service/action-plan/action-plan-type.ts +0 -61
  481. package/server/service/action-plan/action-plan.ts +0 -103
  482. package/server/service/action-plan/index.ts +0 -7
  483. package/server/service/building-inspection/building-inspection-history.ts +0 -72
  484. package/server/service/building-inspection/building-inspection-mutation.ts +0 -276
  485. package/server/service/building-inspection/building-inspection-query.ts +0 -242
  486. package/server/service/building-inspection/building-inspection-type.ts +0 -145
  487. package/server/service/building-inspection/building-inspection.ts +0 -108
  488. package/server/service/building-inspection/event-subscriber.ts +0 -20
  489. package/server/service/building-inspection/index.ts +0 -11
  490. package/server/service/checklist/checklist-history.ts +0 -96
  491. package/server/service/checklist/checklist-mutation.ts +0 -103
  492. package/server/service/checklist/checklist-query.ts +0 -58
  493. package/server/service/checklist/checklist-type.ts +0 -49
  494. package/server/service/checklist/checklist.ts +0 -127
  495. package/server/service/checklist/event-subscriber.ts +0 -17
  496. package/server/service/checklist/index.ts +0 -9
  497. package/server/service/checklist-item/checklist-item-mutation.ts +0 -5
  498. package/server/service/checklist-item/checklist-item-query.ts +0 -84
  499. package/server/service/checklist-item/checklist-item-type.ts +0 -12
  500. package/server/service/checklist-item/checklist-item.ts +0 -103
  501. package/server/service/checklist-item/index.ts +0 -7
  502. package/server/service/checklist-item-comment/checklist-item-comment-history.ts +0 -69
  503. package/server/service/checklist-item-comment/checklist-item-comment-mutation.ts +0 -80
  504. package/server/service/checklist-item-comment/checklist-item-comment-query.ts +0 -36
  505. package/server/service/checklist-item-comment/checklist-item-comment-type.ts +0 -32
  506. package/server/service/checklist-item-comment/checklist-item-comment.ts +0 -56
  507. package/server/service/checklist-item-comment/event-subscriber.ts +0 -17
  508. package/server/service/checklist-item-comment/index.ts +0 -9
  509. package/server/service/checklist-template/checklist-template-mutation.ts +0 -66
  510. package/server/service/checklist-template/checklist-template-query.ts +0 -39
  511. package/server/service/checklist-template/checklist-template-type.ts +0 -23
  512. package/server/service/checklist-template/checklist-template.ts +0 -71
  513. package/server/service/checklist-template/index.ts +0 -6
  514. package/server/service/checklist-template-item/checklist-template-item-mutation.ts +0 -64
  515. package/server/service/checklist-template-item/checklist-template-item-query.ts +0 -44
  516. package/server/service/checklist-template-item/checklist-template-item-type.ts +0 -39
  517. package/server/service/checklist-template-item/checklist-template-item.ts +0 -68
  518. package/server/service/checklist-template-item/index.ts +0 -6
  519. package/server/service/checklist-type/checklist-type-mutation.ts +0 -66
  520. package/server/service/checklist-type/checklist-type-query.ts +0 -39
  521. package/server/service/checklist-type/checklist-type-type.ts +0 -26
  522. package/server/service/checklist-type/checklist-type.ts +0 -64
  523. package/server/service/checklist-type/index.ts +0 -6
  524. package/server/service/index.ts +0 -88
  525. package/server/service/issue/index.ts +0 -7
  526. package/server/service/issue/issue-mutation.ts +0 -198
  527. package/server/service/issue/issue-query.ts +0 -62
  528. package/server/service/issue/issue-type.ts +0 -61
  529. package/server/service/issue/issue.ts +0 -100
  530. package/server/service/project-report/index.ts +0 -7
  531. package/server/service/project-report/project-report-mutation.ts +0 -198
  532. package/server/service/project-report/project-report-query.ts +0 -62
  533. package/server/service/project-report/project-report-type.ts +0 -61
  534. package/server/service/project-report/project-report.ts +0 -113
  535. package/server/service/supervisor/index.ts +0 -7
  536. package/server/service/supervisor/supervisor-mutation.ts +0 -198
  537. package/server/service/supervisor/supervisor-query.ts +0 -62
  538. package/server/service/supervisor/supervisor-type.ts +0 -61
  539. package/server/service/supervisor/supervisor.ts +0 -108
  540. package/server/tsconfig.json +0 -10
@@ -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 building_inspection_history_1 = require("./building-inspection-history");
5
+ const building_inspection_history_query_1 = require("./building-inspection-history-query");
6
+ const event_subscriber_1 = require("./event-subscriber");
7
+ exports.entities = [building_inspection_history_1.BuildingInspectionHistory];
8
+ exports.resolvers = [building_inspection_history_query_1.BuildingInspectionHistoryQuery];
9
+ exports.subscribers = [event_subscriber_1.BuildingInspectionHistoryEntitySubscriber];
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection-history/index.ts"],"names":[],"mappings":";;;AAAA,+EAAyE;AACzE,2FAAoF;AACpF,yDAA8E;AAEjE,QAAA,QAAQ,GAAG,CAAC,uDAAyB,CAAC,CAAA;AACtC,QAAA,SAAS,GAAG,CAAC,kEAA8B,CAAC,CAAA;AAC5C,QAAA,WAAW,GAAG,CAAC,4DAAyC,CAAC,CAAA","sourcesContent":["import { BuildingInspectionHistory } from './building-inspection-history'\nimport { BuildingInspectionHistoryQuery } from './building-inspection-history-query'\nimport { BuildingInspectionHistoryEntitySubscriber } from './event-subscriber'\n\nexport const entities = [BuildingInspectionHistory]\nexport const resolvers = [BuildingInspectionHistoryQuery]\nexport const subscribers = [BuildingInspectionHistoryEntitySubscriber]\n"]}
@@ -1,8 +1,3 @@
1
- import { Checklist } from './checklist';
2
- import { NewChecklist, ChecklistPatch } from './checklist-type';
3
1
  export declare class ChecklistMutation {
4
- createChecklist(checklist: NewChecklist, context: ResolverContext): Promise<Checklist>;
5
- updateChecklist(id: string, patch: ChecklistPatch, context: ResolverContext): Promise<Checklist>;
6
- updateMultipleChecklist(patches: ChecklistPatch[], context: ResolverContext): Promise<Checklist[]>;
7
2
  deleteChecklists(ids: string[], context: ResolverContext): Promise<boolean>;
8
3
  }
@@ -5,45 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const type_graphql_1 = require("type-graphql");
6
6
  const typeorm_1 = require("typeorm");
7
7
  const checklist_1 = require("./checklist");
8
- const checklist_type_1 = require("./checklist-type");
9
8
  let ChecklistMutation = class ChecklistMutation {
10
- async createChecklist(checklist, context) {
11
- const { domain, user, tx } = context.state;
12
- const result = await tx.getRepository(checklist_1.Checklist).save(Object.assign(Object.assign({}, checklist), { domain, creator: user, updater: user }));
13
- return result;
14
- }
15
- async updateChecklist(id, patch, context) {
16
- const { domain, user, tx } = context.state;
17
- const repository = tx.getRepository(checklist_1.Checklist);
18
- const checklist = await repository.findOne({
19
- where: { id }
20
- });
21
- const result = await repository.save(Object.assign(Object.assign(Object.assign({}, checklist), patch), { updater: user }));
22
- return result;
23
- }
24
- async updateMultipleChecklist(patches, context) {
25
- const { domain, user, tx } = context.state;
26
- let results = [];
27
- const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
28
- const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
29
- const checklistRepo = tx.getRepository(checklist_1.Checklist);
30
- if (_createRecords.length > 0) {
31
- for (let i = 0; i < _createRecords.length; i++) {
32
- const newRecord = _createRecords[i];
33
- const result = await checklistRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
34
- results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
35
- }
36
- }
37
- if (_updateRecords.length > 0) {
38
- for (let i = 0; i < _updateRecords.length; i++) {
39
- const updateRecord = _updateRecords[i];
40
- const checklist = await checklistRepo.findOneBy({ id: updateRecord.id });
41
- const result = await checklistRepo.save(Object.assign(Object.assign(Object.assign({}, checklist), updateRecord), { updater: user }));
42
- results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
43
- }
44
- }
45
- return results;
46
- }
47
9
  async deleteChecklists(ids, context) {
48
10
  const { domain, tx } = context.state;
49
11
  await tx.getRepository(checklist_1.Checklist).softDelete({
@@ -52,45 +14,17 @@ let ChecklistMutation = class ChecklistMutation {
52
14
  return true;
53
15
  }
54
16
  };
17
+ exports.ChecklistMutation = ChecklistMutation;
55
18
  tslib_1.__decorate([
56
19
  (0, type_graphql_1.Directive)('@transaction'),
57
- (0, type_graphql_1.Mutation)(returns => checklist_1.Checklist, { description: 'To create new Checklist' }),
58
- tslib_1.__param(0, (0, type_graphql_1.Arg)('checklist')),
59
- tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
60
- tslib_1.__metadata("design:type", Function),
61
- tslib_1.__metadata("design:paramtypes", [checklist_type_1.NewChecklist, Object]),
62
- tslib_1.__metadata("design:returntype", Promise)
63
- ], ChecklistMutation.prototype, "createChecklist", null);
64
- tslib_1.__decorate([
65
- (0, type_graphql_1.Directive)('@transaction'),
66
- (0, type_graphql_1.Mutation)(returns => checklist_1.Checklist, { description: 'To modify Checklist information' }),
67
- tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
68
- tslib_1.__param(1, (0, type_graphql_1.Arg)('patch')),
69
- tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
70
- tslib_1.__metadata("design:type", Function),
71
- tslib_1.__metadata("design:paramtypes", [String, checklist_type_1.ChecklistPatch, Object]),
72
- tslib_1.__metadata("design:returntype", Promise)
73
- ], ChecklistMutation.prototype, "updateChecklist", null);
74
- tslib_1.__decorate([
75
- (0, type_graphql_1.Directive)('@transaction'),
76
- (0, type_graphql_1.Mutation)(returns => [checklist_1.Checklist], { description: "To modify multiple Checklists' information" }),
77
- tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [checklist_type_1.ChecklistPatch])),
78
- tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
79
- tslib_1.__metadata("design:type", Function),
80
- tslib_1.__metadata("design:paramtypes", [Array, Object]),
81
- tslib_1.__metadata("design:returntype", Promise)
82
- ], ChecklistMutation.prototype, "updateMultipleChecklist", null);
83
- tslib_1.__decorate([
84
- (0, type_graphql_1.Directive)('@transaction'),
85
- (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple Checklists' }),
20
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To create Building Inspection And Checklist information' }),
86
21
  tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
87
22
  tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
88
23
  tslib_1.__metadata("design:type", Function),
89
24
  tslib_1.__metadata("design:paramtypes", [Array, Object]),
90
25
  tslib_1.__metadata("design:returntype", Promise)
91
26
  ], ChecklistMutation.prototype, "deleteChecklists", null);
92
- ChecklistMutation = tslib_1.__decorate([
27
+ exports.ChecklistMutation = ChecklistMutation = tslib_1.__decorate([
93
28
  (0, type_graphql_1.Resolver)(checklist_1.Checklist)
94
29
  ], ChecklistMutation);
95
- exports.ChecklistMutation = ChecklistMutation;
96
30
  //# sourceMappingURL=checklist-mutation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checklist-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,2CAAuC;AACvC,qDAA+D;AAGxD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAGtB,AAAN,KAAK,CAAC,eAAe,CAAmB,SAAuB,EAAS,OAAwB;QAC9F,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,qBAAS,CAAC,CAAC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x, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\nimport { Checklist } from './checklist'\nimport { NewChecklist, ChecklistPatch } from './checklist-type'\n\n@Resolver(Checklist)\nexport class ChecklistMutation {\n @Directive('@transaction')\n @Mutation(returns => Checklist, { description: 'To create new Checklist' })\n async createChecklist(@Arg('checklist') checklist: NewChecklist, @Ctx() context: ResolverContext): Promise<Checklist> {\n const { domain, user, tx } = context.state\n\n const result = await tx.getRepository(Checklist).save({\n ...checklist,\n domain,\n creator: user,\n updater: user\n })\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => Checklist, { description: 'To modify Checklist information' })\n async updateChecklist(\n @Arg('id') id: string,\n @Arg('patch') patch: ChecklistPatch,\n @Ctx() context: ResolverContext\n ): Promise<Checklist> {\n const { domain, user, tx } = context.state\n\n const repository = tx.getRepository(Checklist)\n const checklist = await repository.findOne({\n where: { id }\n })\n\n const result = await repository.save({\n ...checklist,\n ...patch,\n updater: user\n })\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => [Checklist], { description: \"To modify multiple Checklists' information\" })\n async updateMultipleChecklist(\n @Arg('patches', type => [ChecklistPatch]) patches: ChecklistPatch[],\n @Ctx() context: ResolverContext\n ): Promise<Checklist[]> {\n const { domain, user, tx } = context.state\n\n let results = []\n const _createRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === '+')\n const _updateRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === 'M')\n const checklistRepo = tx.getRepository(Checklist)\n\n if (_createRecords.length > 0) {\n for (let i = 0; i < _createRecords.length; i++) {\n const newRecord = _createRecords[i]\n\n const result = await checklistRepo.save({\n ...newRecord,\n domain,\n creator: user,\n updater: user\n })\n\n results.push({ ...result, cuFlag: '+' })\n }\n }\n\n if (_updateRecords.length > 0) {\n for (let i = 0; i < _updateRecords.length; i++) {\n const updateRecord = _updateRecords[i]\n const checklist = await checklistRepo.findOneBy({ id: updateRecord.id })\n\n const result = await checklistRepo.save({\n ...checklist,\n ...updateRecord,\n updater: user\n })\n\n results.push({ ...result, cuFlag: 'M' })\n }\n }\n\n return results\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete multiple Checklists' })\n async deleteChecklists(@Arg('ids', type => [String]) ids: string[], @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(Checklist).softDelete({\n id: In(ids)\n })\n\n return true\n }\n}\n"]}
1
+ {"version":3,"file":"checklist-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,2CAAuC;AAGhC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAGtB,AAAN,KAAK,CAAC,gBAAgB,CAA+B,GAAa,EAAS,OAAwB;QACjG,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEpC,MAAM,EAAE,CAAC,aAAa,CAAC,qBAAS,CAAC,CAAC,UAAU,CAAC;YAC3C,EAAE,EAAE,IAAA,YAAE,EAAC,GAAG,CAAC;SACZ,CAAC,CAAA;QAEF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA;AAZY,8CAAiB;AAGtB;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,yDAAyD,EAAE,CAAC;IACjF,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAiB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;yDAQzE;4BAXU,iBAAiB;IAD7B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,iBAAiB,CAY7B","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\nimport { Checklist } from './checklist'\n\n@Resolver(Checklist)\nexport class ChecklistMutation {\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To create Building Inspection And Checklist information' })\n async deleteChecklists(@Arg('ids', type => [String]) ids: string[], @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(Checklist).softDelete({\n id: In(ids)\n })\n\n return true\n }\n}\n"]}
@@ -4,11 +4,18 @@ import { Checklist } from './checklist';
4
4
  import { ChecklistList } from './checklist-type';
5
5
  import { ChecklistItem } from '../checklist-item/checklist-item';
6
6
  import { BuildingInspection } from '../building-inspection/building-inspection';
7
+ import { Attachment } from '@things-factory/attachment-base';
7
8
  export declare class ChecklistQuery {
8
9
  checklist(id: string, context: ResolverContext): Promise<Checklist>;
9
10
  checklists(params: ListParam, context: ResolverContext): Promise<ChecklistList>;
10
11
  checklistItems(checklist: Checklist): Promise<ChecklistItem[]>;
12
+ checklistAttachments(checklist: Checklist, description?: string): Promise<Attachment[]>;
11
13
  buildingInspection(checklist: Checklist): Promise<BuildingInspection>;
14
+ nameListAttachment(checklist: Checklist): Promise<Attachment | null>;
15
+ taskConstructor(checklist: Checklist): Promise<User>;
16
+ overallConstructor(checklist: Checklist): Promise<User>;
17
+ taskSupervisory(checklist: Checklist): Promise<User>;
18
+ overallSupervisory(checklist: Checklist): Promise<User>;
12
19
  updater(checklist: Checklist): Promise<User>;
13
20
  creator(checklist: Checklist): Promise<User>;
14
21
  }
@@ -9,6 +9,7 @@ const checklist_1 = require("./checklist");
9
9
  const checklist_type_1 = require("./checklist-type");
10
10
  const checklist_item_1 = require("../checklist-item/checklist-item");
11
11
  const building_inspection_1 = require("../building-inspection/building-inspection");
12
+ const attachment_base_1 = require("@things-factory/attachment-base");
12
13
  let ChecklistQuery = class ChecklistQuery {
13
14
  async checklist(id, context) {
14
15
  const { domain } = context.state;
@@ -33,16 +34,56 @@ let ChecklistQuery = class ChecklistQuery {
33
34
  .orderBy('ci.sequence', 'ASC')
34
35
  .getMany();
35
36
  }
37
+ async checklistAttachments(checklist, description) {
38
+ return await (0, shell_1.getRepository)(attachment_base_1.Attachment).find({
39
+ where: {
40
+ refType: checklist_1.Checklist.name,
41
+ refBy: checklist.id,
42
+ description: description // 검측 상태로 받으며 어떤 스탭에 올렸는지로 시공자/감리자 구분
43
+ },
44
+ order: {
45
+ createdAt: 'DESC'
46
+ }
47
+ });
48
+ }
36
49
  async buildingInspection(checklist) {
37
50
  return await (0, shell_1.getRepository)(building_inspection_1.BuildingInspection).findOneBy({ checklist: { id: checklist.id } });
38
51
  }
52
+ async nameListAttachment(checklist) {
53
+ return await (0, shell_1.getRepository)(attachment_base_1.Attachment).findOneBy({ refBy: checklist.id, refType: 'Checklist_NameList' });
54
+ }
55
+ async taskConstructor(checklist) {
56
+ if (!checklist.taskConstructorId)
57
+ return null;
58
+ return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.taskConstructorId });
59
+ }
60
+ async overallConstructor(checklist) {
61
+ if (!checklist.overallConstructorId)
62
+ return null;
63
+ return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.overallConstructorId });
64
+ }
65
+ async taskSupervisory(checklist) {
66
+ if (!checklist.taskSupervisoryId)
67
+ return null;
68
+ return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.taskSupervisoryId });
69
+ }
70
+ async overallSupervisory(checklist) {
71
+ if (!checklist.overallSupervisoryId)
72
+ return null;
73
+ return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.overallSupervisoryId });
74
+ }
39
75
  async updater(checklist) {
76
+ if (!checklist.updaterId)
77
+ return null;
40
78
  return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.updaterId });
41
79
  }
42
80
  async creator(checklist) {
81
+ if (!checklist.creatorId)
82
+ return null;
43
83
  return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.creatorId });
44
84
  }
45
85
  };
86
+ exports.ChecklistQuery = ChecklistQuery;
46
87
  tslib_1.__decorate([
47
88
  (0, type_graphql_1.Query)(returns => checklist_1.Checklist, { nullable: true, description: 'To fetch a Checklist' }),
48
89
  tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
@@ -66,6 +107,14 @@ tslib_1.__decorate([
66
107
  tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
67
108
  tslib_1.__metadata("design:returntype", Promise)
68
109
  ], ChecklistQuery.prototype, "checklistItems", null);
110
+ tslib_1.__decorate([
111
+ (0, type_graphql_1.FieldResolver)(type => [attachment_base_1.Attachment]),
112
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
113
+ tslib_1.__param(1, (0, type_graphql_1.Arg)('description', { nullable: true })),
114
+ tslib_1.__metadata("design:type", Function),
115
+ tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist, String]),
116
+ tslib_1.__metadata("design:returntype", Promise)
117
+ ], ChecklistQuery.prototype, "checklistAttachments", null);
69
118
  tslib_1.__decorate([
70
119
  (0, type_graphql_1.FieldResolver)(type => building_inspection_1.BuildingInspection),
71
120
  tslib_1.__param(0, (0, type_graphql_1.Root)()),
@@ -73,6 +122,41 @@ tslib_1.__decorate([
73
122
  tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
74
123
  tslib_1.__metadata("design:returntype", Promise)
75
124
  ], ChecklistQuery.prototype, "buildingInspection", null);
125
+ tslib_1.__decorate([
126
+ (0, type_graphql_1.FieldResolver)(type => attachment_base_1.Attachment, { nullable: true }),
127
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
128
+ tslib_1.__metadata("design:type", Function),
129
+ tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
130
+ tslib_1.__metadata("design:returntype", Promise)
131
+ ], ChecklistQuery.prototype, "nameListAttachment", null);
132
+ tslib_1.__decorate([
133
+ (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
134
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
135
+ tslib_1.__metadata("design:type", Function),
136
+ tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
137
+ tslib_1.__metadata("design:returntype", Promise)
138
+ ], ChecklistQuery.prototype, "taskConstructor", null);
139
+ tslib_1.__decorate([
140
+ (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
141
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
142
+ tslib_1.__metadata("design:type", Function),
143
+ tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
144
+ tslib_1.__metadata("design:returntype", Promise)
145
+ ], ChecklistQuery.prototype, "overallConstructor", null);
146
+ tslib_1.__decorate([
147
+ (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
148
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
149
+ tslib_1.__metadata("design:type", Function),
150
+ tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
151
+ tslib_1.__metadata("design:returntype", Promise)
152
+ ], ChecklistQuery.prototype, "taskSupervisory", null);
153
+ tslib_1.__decorate([
154
+ (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
155
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
156
+ tslib_1.__metadata("design:type", Function),
157
+ tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
158
+ tslib_1.__metadata("design:returntype", Promise)
159
+ ], ChecklistQuery.prototype, "overallSupervisory", null);
76
160
  tslib_1.__decorate([
77
161
  (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
78
162
  tslib_1.__param(0, (0, type_graphql_1.Root)()),
@@ -87,8 +171,7 @@ tslib_1.__decorate([
87
171
  tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
88
172
  tslib_1.__metadata("design:returntype", Promise)
89
173
  ], ChecklistQuery.prototype, "creator", null);
90
- ChecklistQuery = tslib_1.__decorate([
174
+ exports.ChecklistQuery = ChecklistQuery = tslib_1.__decorate([
91
175
  (0, type_graphql_1.Resolver)(checklist_1.Checklist)
92
176
  ], ChecklistQuery);
93
- exports.ChecklistQuery = ChecklistQuery;
94
177
  //# sourceMappingURL=checklist-query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checklist-query.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,iDAA+F;AAC/F,yDAAgD;AAChD,2CAAuC;AACvC,qDAAgD;AAChD,qEAAgE;AAChE,oFAA+E;AAGxE,IAAM,cAAc,GAApB,MAAM,cAAc;IAEnB,AAAN,KAAK,CAAC,SAAS,CAAY,EAAU,EAAS,OAAwB;QACpE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,qBAAa,EAAC,qBAAS,CAAC,CAAC,OAAO,CAAC;YAC5C,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CAAS,MAAiB,EAAS,OAAwB;QACzE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,qBAAS,CAAC;YAC1C,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,cAAc,CAAS,SAAoB;QAC/C,OAAO,MAAM,IAAA,qBAAa,EAAC,8BAAa,CAAC;aACtC,kBAAkB,CAAC,IAAI,CAAC;aACxB,KAAK,CAAC,gCAAgC,EAAE,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC;aACtE,OAAO,CAAC,aAAa,EAAE,KAAK,CAAC;aA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CAAC,EAAE,CAAC,wCAAkB,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;wDAEpD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;6CAEzC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;6CAEzC;AA/CU,cAAc;IAD1B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,cAAc,CAgD1B;AAhDY,wCAAc","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Checklist } from './checklist'\nimport { ChecklistList } from './checklist-type'\nimport { ChecklistItem } from '../checklist-item/checklist-item'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\n\n@Resolver(Checklist)\nexport class ChecklistQuery {\n @Query(returns => Checklist!, { nullable: true, description: 'To fetch a Checklist' })\n async checklist(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<Checklist> {\n const { domain } = context.state\n\n return await getRepository(Checklist).findOne({\n where: { id }\n })\n }\n\n @Query(returns => ChecklistList, { description: 'To fetch multiple Checklists' })\n async checklists(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(Checklist),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => [ChecklistItem])\n async checklistItems(@Root() checklist: Checklist): Promise<ChecklistItem[]> {\n return await getRepository(ChecklistItem)\n .createQueryBuilder('ci')\n .where('ci.checklist_id = :checklistId', { checklistId: checklist.id })\n .orderBy('ci.sequence', 'ASC')\n .getMany()\n }\n\n @FieldResolver(type => BuildingInspection)\n async buildingInspection(@Root() checklist: Checklist): Promise<BuildingInspection> {\n return await getRepository(BuildingInspection).findOneBy({ checklist: { id: checklist.id } })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklist: Checklist): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklist.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklist: Checklist): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklist.creatorId })\n }\n}\n"]}
1
+ {"version":3,"file":"checklist-query.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,iDAA+F;AAC/F,yDAAgD;AAChD,2CAAuC;AACvC,qDAAgD;AAChD,qEAAgE;AAChE,oFAA+E;AAC/E,qEAA4D;AAGrD,IAAM,cAAc,GAApB,MAAM,cAAc;IAEnB,AAAN,KAAK,CAAC,SAAS,CAAY,EAAU,EAAS,OAAwB;QACpE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,qBAAa,EAAC,qBAAS,CAAC,CAAC,OAAO,CAAC;YAC5C,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CAAS,MAAiB,EAAS,OAAwB;QACzE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,qBAAS,CAAC;YAC1C,WAAW,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;SACrC,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAA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AAY,qBAAS;;wDAEpD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACL,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;qDAGjD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACF,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;wDAGpD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACL,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;qDAGjD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACF,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;wDAGpD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;6CAGzC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;6CAGzC;yBA/FU,cAAc;IAD1B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,cAAc,CAgG1B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Checklist } from './checklist'\nimport { ChecklistList } from './checklist-type'\nimport { ChecklistItem } from '../checklist-item/checklist-item'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\nimport { Attachment } from '@things-factory/attachment-base'\n\n@Resolver(Checklist)\nexport class ChecklistQuery {\n @Query(returns => Checklist!, { nullable: true, description: 'To fetch a Checklist' })\n async checklist(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<Checklist> {\n const { domain } = context.state\n\n return await getRepository(Checklist).findOne({\n where: { id }\n })\n }\n\n @Query(returns => ChecklistList, { description: 'To fetch multiple Checklists' })\n async checklists(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(Checklist),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => [ChecklistItem])\n async checklistItems(@Root() checklist: Checklist): Promise<ChecklistItem[]> {\n return await getRepository(ChecklistItem)\n .createQueryBuilder('ci')\n .where('ci.checklist_id = :checklistId', { checklistId: checklist.id })\n .orderBy('ci.sequence', 'ASC')\n .getMany()\n }\n\n @FieldResolver(type => [Attachment])\n async checklistAttachments(\n @Root() checklist: Checklist,\n @Arg('description', { nullable: true }) description?: string\n ): Promise<Attachment[]> {\n return await getRepository(Attachment).find({\n where: {\n refType: Checklist.name,\n refBy: checklist.id,\n description: description // 검측 상태로 받으며 어떤 스탭에 올렸는지로 시공자/감리자 구분\n },\n order: {\n createdAt: 'DESC'\n }\n })\n }\n\n @FieldResolver(type => BuildingInspection)\n async buildingInspection(@Root() checklist: Checklist): Promise<BuildingInspection> {\n return await getRepository(BuildingInspection).findOneBy({ checklist: { id: checklist.id } })\n }\n\n @FieldResolver(type => Attachment, { nullable: true })\n async nameListAttachment(@Root() checklist: Checklist): Promise<Attachment | null> {\n return await getRepository(Attachment).findOneBy({ refBy: checklist.id, refType: 'Checklist_NameList' })\n }\n\n @FieldResolver(type => User)\n async taskConstructor(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.taskConstructorId) return null\n return await getRepository(User).findOneBy({ id: checklist.taskConstructorId })\n }\n\n @FieldResolver(type => User)\n async overallConstructor(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.overallConstructorId) return null\n return await getRepository(User).findOneBy({ id: checklist.overallConstructorId })\n }\n\n @FieldResolver(type => User)\n async taskSupervisory(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.taskSupervisoryId) return null\n return await getRepository(User).findOneBy({ id: checklist.taskSupervisoryId })\n }\n\n @FieldResolver(type => User)\n async overallSupervisory(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.overallSupervisoryId) return null\n return await getRepository(User).findOneBy({ id: checklist.overallSupervisoryId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.updaterId) return null\n return await getRepository(User).findOneBy({ id: checklist.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.creatorId) return null\n return await getRepository(User).findOneBy({ id: checklist.creatorId })\n }\n}\n"]}
@@ -1,17 +1,4 @@
1
1
  import { Checklist } from './checklist';
2
- export declare class NewChecklist {
3
- name: string;
4
- description?: string;
5
- active?: boolean;
6
- params?: string;
7
- }
8
- export declare class ChecklistPatch {
9
- id?: string;
10
- name?: string;
11
- description?: string;
12
- active?: boolean;
13
- cuFlag?: string;
14
- }
15
2
  export declare class ChecklistList {
16
3
  items: Checklist[];
17
4
  total: number;
@@ -1,59 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChecklistList = exports.ChecklistPatch = exports.NewChecklist = void 0;
3
+ exports.ChecklistList = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const type_graphql_1 = require("type-graphql");
6
6
  const checklist_1 = require("./checklist");
7
- let NewChecklist = class NewChecklist {
8
- };
9
- tslib_1.__decorate([
10
- (0, type_graphql_1.Field)(),
11
- tslib_1.__metadata("design:type", String)
12
- ], NewChecklist.prototype, "name", void 0);
13
- tslib_1.__decorate([
14
- (0, type_graphql_1.Field)({ nullable: true }),
15
- tslib_1.__metadata("design:type", String)
16
- ], NewChecklist.prototype, "description", void 0);
17
- tslib_1.__decorate([
18
- (0, type_graphql_1.Field)({ nullable: true }),
19
- tslib_1.__metadata("design:type", Boolean)
20
- ], NewChecklist.prototype, "active", void 0);
21
- tslib_1.__decorate([
22
- (0, type_graphql_1.Field)({ nullable: true }),
23
- tslib_1.__metadata("design:type", String)
24
- ], NewChecklist.prototype, "params", void 0);
25
- NewChecklist = tslib_1.__decorate([
26
- (0, type_graphql_1.InputType)()
27
- ], NewChecklist);
28
- exports.NewChecklist = NewChecklist;
29
- let ChecklistPatch = class ChecklistPatch {
30
- };
31
- tslib_1.__decorate([
32
- (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
33
- tslib_1.__metadata("design:type", String)
34
- ], ChecklistPatch.prototype, "id", void 0);
35
- tslib_1.__decorate([
36
- (0, type_graphql_1.Field)({ nullable: true }),
37
- tslib_1.__metadata("design:type", String)
38
- ], ChecklistPatch.prototype, "name", void 0);
39
- tslib_1.__decorate([
40
- (0, type_graphql_1.Field)({ nullable: true }),
41
- tslib_1.__metadata("design:type", String)
42
- ], ChecklistPatch.prototype, "description", void 0);
43
- tslib_1.__decorate([
44
- (0, type_graphql_1.Field)({ nullable: true }),
45
- tslib_1.__metadata("design:type", Boolean)
46
- ], ChecklistPatch.prototype, "active", void 0);
47
- tslib_1.__decorate([
48
- (0, type_graphql_1.Field)({ nullable: true }),
49
- tslib_1.__metadata("design:type", String)
50
- ], ChecklistPatch.prototype, "cuFlag", void 0);
51
- ChecklistPatch = tslib_1.__decorate([
52
- (0, type_graphql_1.InputType)()
53
- ], ChecklistPatch);
54
- exports.ChecklistPatch = ChecklistPatch;
55
7
  let ChecklistList = class ChecklistList {
56
8
  };
9
+ exports.ChecklistList = ChecklistList;
57
10
  tslib_1.__decorate([
58
11
  (0, type_graphql_1.Field)(type => [checklist_1.Checklist]),
59
12
  tslib_1.__metadata("design:type", Array)
@@ -62,8 +15,7 @@ tslib_1.__decorate([
62
15
  (0, type_graphql_1.Field)(type => type_graphql_1.Int),
63
16
  tslib_1.__metadata("design:type", Number)
64
17
  ], ChecklistList.prototype, "total", void 0);
65
- ChecklistList = tslib_1.__decorate([
18
+ exports.ChecklistList = ChecklistList = tslib_1.__decorate([
66
19
  (0, type_graphql_1.ObjectType)()
67
20
  ], ChecklistList);
68
- exports.ChecklistList = ChecklistList;
69
21
  //# sourceMappingURL=checklist-type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checklist-type.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-type.ts"],"names":[],"mappings":";;;;AAEA,+CAAsF;AAItF,2CAAuC;AAGhC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAYxB,CAAA;AAXC;IAAC,IAAA,oBAAK,GAAE;;0CACI;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACN;AAEpB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACV;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACX;AAXJ,YAAY;IADxB,IAAA,wBAAS,GAAE;GACC,YAAY,CAYxB;AAZY,oCAAY;AAelB,IAAM,cAAc,GAApB,MAAM,cAAc;CAe1B,CAAA;AAdC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC3B;AAEX;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACb;AAEb;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACN;AAEpB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACX;AAdJ,cAAc;IAD1B,IAAA,wBAAS,GAAE;GACC,cAAc,CAe1B;AAfY,wCAAc;AAkBpB,IAAM,aAAa,GAAnB,MAAM,aAAa;CAMzB,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,qBAAS,CAAC,CAAC;;4CACT;AAElB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;4CACN;AALF,aAAa;IADzB,IAAA,yBAAU,GAAE;GACA,aAAa,CAMzB;AANY,sCAAa","sourcesContent":["import type { FileUpload } from 'graphql-upload/GraphQLUpload.js'\nimport GraphQLUpload from 'graphql-upload/GraphQLUpload.js'\nimport { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { ObjectRef, ScalarObject } from '@things-factory/shell'\n\nimport { Checklist } from './checklist'\n\n@InputType()\nexport class NewChecklist {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n params?: string\n}\n\n@InputType()\nexport class ChecklistPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class ChecklistList {\n @Field(type => [Checklist])\n items: Checklist[]\n\n @Field(type => Int)\n total: number\n}\n"]}
1
+ {"version":3,"file":"checklist-type.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAqD;AACrD,2CAAuC;AAEhC,IAAM,aAAa,GAAnB,MAAM,aAAa;CAMzB,CAAA;AANY,sCAAa;AAExB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,qBAAS,CAAC,CAAC;;4CACT;AAGlB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;4CACN;wBALF,aAAa;IADzB,IAAA,yBAAU,GAAE;GACA,aAAa,CAMzB","sourcesContent":["import { ObjectType, Field, Int } from 'type-graphql'\nimport { Checklist } from './checklist'\n@ObjectType()\nexport class ChecklistList {\n @Field(type => [Checklist])\n items: Checklist[]\n\n @Field(type => Int)\n total: number\n}\n"]}
@@ -1,11 +1,32 @@
1
1
  import { User } from '@things-factory/auth-base';
2
- import { Task } from '@dssp/project';
3
2
  import { ChecklistItem } from '../checklist-item/checklist-item';
4
3
  import { BuildingInspection } from '../building-inspection/building-inspection';
4
+ import { ProjectType } from '../building-inspection/building-inspection';
5
+ export declare enum ChecklistReferenceType {
6
+ INSPECTION = "INSPECTION",// 검측
7
+ TASK = "TASK"
8
+ }
9
+ export declare enum DocumentNoType {
10
+ CHECKLIST = "01",// 체크리스트
11
+ INSPECTION_REQUEST = "02",// 검측 요청서
12
+ INSPECTION_RESULT = "03",// 검측 결과 통보서
13
+ DAILY_WORKLOG = "04"
14
+ }
15
+ export declare enum InspectionResultStatus {
16
+ PASS = "PASS",// 합격
17
+ FAIL = "FAIL"
18
+ }
19
+ export declare enum InspectionResultType {
20
+ GENERAL = "GENERAL",// 일반
21
+ FOCUS = "FOCUS",// 중점
22
+ CONCEALED_WORK = "CONCEALED_WORK"
23
+ }
5
24
  export declare class Checklist {
6
25
  readonly id: string;
7
26
  name?: string;
8
27
  documentNo?: string;
28
+ projectType?: ProjectType;
29
+ checklistReferenceType?: ChecklistReferenceType;
9
30
  constructionType?: string;
10
31
  constructionDetailType?: string;
11
32
  location?: string;
@@ -17,10 +38,24 @@ export declare class Checklist {
17
38
  taskConstructorSignature?: string;
18
39
  overallSupervisorySignature?: string;
19
40
  taskSupervisorySignature?: string;
20
- task?: Task;
21
- taskId?: string;
41
+ overallConstructor?: User;
42
+ overallConstructorId?: string;
43
+ taskConstructor?: User;
44
+ taskConstructorId?: string;
45
+ overallSupervisory?: User;
46
+ overallSupervisoryId?: string;
47
+ taskSupervisory?: User;
48
+ taskSupervisoryId?: string;
22
49
  checklistItems?: ChecklistItem[];
23
50
  buildingInspection?: BuildingInspection;
51
+ inspectionRequestDocumentNo?: string;
52
+ inspectionRequestMemo?: string;
53
+ inspectionRequestUpdatedAt?: Date;
54
+ inspectionResultDocumentNo?: string;
55
+ inspectionResultMemo?: string;
56
+ inspectionResultStatus?: InspectionResultStatus;
57
+ inspectionResultType?: InspectionResultType;
58
+ inspectionResultUpdatedAt?: Date;
24
59
  createdAt?: Date;
25
60
  updatedAt?: Date;
26
61
  deletedAt?: Date;