@dssp/supervision 1.0.0-alpha.97 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/package.json +13 -12
  2. package/dist-client/bootstrap.d.ts +0 -1
  3. package/dist-client/bootstrap.js +0 -2
  4. package/dist-client/bootstrap.js.map +0 -1
  5. package/dist-client/graphql/building-inspection.d.ts +0 -1
  6. package/dist-client/graphql/building-inspection.js +0 -102
  7. package/dist-client/graphql/building-inspection.js.map +0 -1
  8. package/dist-client/index.d.ts +0 -0
  9. package/dist-client/index.js +0 -2
  10. package/dist-client/index.js.map +0 -1
  11. package/dist-client/pages/action-plan/action-plan-importer.d.ts +0 -10
  12. package/dist-client/pages/action-plan/action-plan-importer.js +0 -101
  13. package/dist-client/pages/action-plan/action-plan-importer.js.map +0 -1
  14. package/dist-client/pages/action-plan/action-plan-list-page.d.ts +0 -62
  15. package/dist-client/pages/action-plan/action-plan-list-page.js +0 -322
  16. package/dist-client/pages/action-plan/action-plan-list-page.js.map +0 -1
  17. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +0 -22
  18. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +0 -171
  19. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +0 -1
  20. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +0 -59
  21. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +0 -868
  22. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +0 -1
  23. package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +0 -27
  24. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +0 -342
  25. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +0 -1
  26. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +0 -31
  27. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +0 -332
  28. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +0 -1
  29. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +0 -36
  30. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +0 -369
  31. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +0 -1
  32. package/dist-client/pages/building-inspection/building-inspection-list.d.ts +0 -98
  33. package/dist-client/pages/building-inspection/building-inspection-list.js +0 -914
  34. package/dist-client/pages/building-inspection/building-inspection-list.js.map +0 -1
  35. package/dist-client/pages/building-inspection/building-inspection-management.d.ts +0 -82
  36. package/dist-client/pages/building-inspection/building-inspection-management.js +0 -1527
  37. package/dist-client/pages/building-inspection/building-inspection-management.js.map +0 -1
  38. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +0 -4
  39. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +0 -238
  40. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +0 -1
  41. package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +0 -27
  42. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +0 -542
  43. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +0 -1
  44. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.d.ts +0 -18
  45. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js +0 -630
  46. package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js.map +0 -1
  47. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.d.ts +0 -10
  48. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js +0 -219
  49. package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js.map +0 -1
  50. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.d.ts +0 -25
  51. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js +0 -546
  52. package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js.map +0 -1
  53. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.d.ts +0 -42
  54. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js +0 -738
  55. package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js.map +0 -1
  56. package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +0 -15
  57. package/dist-client/pages/building-inspection/component/image-preview-popup.js +0 -348
  58. package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +0 -1
  59. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +0 -25
  60. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +0 -491
  61. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +0 -1
  62. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +0 -31
  63. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +0 -485
  64. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +0 -1
  65. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +0 -27
  66. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +0 -416
  67. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +0 -1
  68. package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +0 -9
  69. package/dist-client/pages/building-inspection/component/inspection-event-provider.js +0 -190
  70. package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +0 -1
  71. package/dist-client/pages/building-inspection/inspection-create-popup.d.ts +0 -3
  72. package/dist-client/pages/building-inspection/inspection-create-popup.js +0 -841
  73. package/dist-client/pages/building-inspection/inspection-create-popup.js.map +0 -1
  74. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.d.ts +0 -3
  75. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +0 -817
  76. package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js.map +0 -1
  77. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +0 -60
  78. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +0 -1135
  79. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +0 -1
  80. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +0 -2
  81. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +0 -740
  82. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +0 -1
  83. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +0 -19
  84. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +0 -205
  85. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +0 -1
  86. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +0 -1
  87. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +0 -304
  88. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +0 -1
  89. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +0 -15
  90. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +0 -430
  91. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +0 -1
  92. package/dist-client/pages/checklist/attachment-list-popup.d.ts +0 -3
  93. package/dist-client/pages/checklist/attachment-list-popup.js +0 -492
  94. package/dist-client/pages/checklist/attachment-list-popup.js.map +0 -1
  95. package/dist-client/pages/checklist/checklist-view.d.ts +0 -16
  96. package/dist-client/pages/checklist/checklist-view.js +0 -926
  97. package/dist-client/pages/checklist/checklist-view.js.map +0 -1
  98. package/dist-client/pages/checklist/comment-list-popup.d.ts +0 -1
  99. package/dist-client/pages/checklist/comment-list-popup.js +0 -367
  100. package/dist-client/pages/checklist/comment-list-popup.js.map +0 -1
  101. package/dist-client/pages/checklist/file-preview-popup.d.ts +0 -1
  102. package/dist-client/pages/checklist/file-preview-popup.js +0 -77
  103. package/dist-client/pages/checklist/file-preview-popup.js.map +0 -1
  104. package/dist-client/pages/checklist/inspection-info-popup.d.ts +0 -49
  105. package/dist-client/pages/checklist/inspection-info-popup.js +0 -683
  106. package/dist-client/pages/checklist/inspection-info-popup.js.map +0 -1
  107. package/dist-client/pages/checklist/inspection-tab-popup.d.ts +0 -18
  108. package/dist-client/pages/checklist/inspection-tab-popup.js +0 -196
  109. package/dist-client/pages/checklist/inspection-tab-popup.js.map +0 -1
  110. package/dist-client/pages/checklist/kcs-criteria-popup.d.ts +0 -16
  111. package/dist-client/pages/checklist/kcs-criteria-popup.js +0 -179
  112. package/dist-client/pages/checklist/kcs-criteria-popup.js.map +0 -1
  113. package/dist-client/pages/checklist-database/checklist-database.d.ts +0 -35
  114. package/dist-client/pages/checklist-database/checklist-database.js +0 -540
  115. package/dist-client/pages/checklist-database/checklist-database.js.map +0 -1
  116. package/dist-client/pages/checklist-template/checklist-template-item.d.ts +0 -2
  117. package/dist-client/pages/checklist-template/checklist-template-item.js +0 -278
  118. package/dist-client/pages/checklist-template/checklist-template-item.js.map +0 -1
  119. package/dist-client/pages/checklist-template/checklist-template-list.d.ts +0 -53
  120. package/dist-client/pages/checklist-template/checklist-template-list.js +0 -350
  121. package/dist-client/pages/checklist-template/checklist-template-list.js.map +0 -1
  122. package/dist-client/pages/checklist-template/checklist-type-management.d.ts +0 -55
  123. package/dist-client/pages/checklist-template/checklist-type-management.js +0 -250
  124. package/dist-client/pages/checklist-template/checklist-type-management.js.map +0 -1
  125. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.d.ts +0 -2
  126. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js +0 -223
  127. package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js.map +0 -1
  128. package/dist-client/pages/checklist-template/construction-checklist-template-list.d.ts +0 -55
  129. package/dist-client/pages/checklist-template/construction-checklist-template-list.js +0 -404
  130. package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +0 -1
  131. package/dist-client/pages/issue/issue-importer.d.ts +0 -10
  132. package/dist-client/pages/issue/issue-importer.js +0 -101
  133. package/dist-client/pages/issue/issue-importer.js.map +0 -1
  134. package/dist-client/pages/issue/issue-list-page.d.ts +0 -62
  135. package/dist-client/pages/issue/issue-list-page.js +0 -322
  136. package/dist-client/pages/issue/issue-list-page.js.map +0 -1
  137. package/dist-client/pages/project-checklist/project-checklist-management.d.ts +0 -62
  138. package/dist-client/pages/project-checklist/project-checklist-management.js +0 -1145
  139. package/dist-client/pages/project-checklist/project-checklist-management.js.map +0 -1
  140. package/dist-client/pages/project-report/project-report-importer.d.ts +0 -10
  141. package/dist-client/pages/project-report/project-report-importer.js +0 -101
  142. package/dist-client/pages/project-report/project-report-importer.js.map +0 -1
  143. package/dist-client/pages/project-report/project-report-list-page.d.ts +0 -62
  144. package/dist-client/pages/project-report/project-report-list-page.js +0 -322
  145. package/dist-client/pages/project-report/project-report-list-page.js.map +0 -1
  146. package/dist-client/pages/supervisor/supervisor-importer.d.ts +0 -10
  147. package/dist-client/pages/supervisor/supervisor-importer.js +0 -101
  148. package/dist-client/pages/supervisor/supervisor-importer.js.map +0 -1
  149. package/dist-client/pages/supervisor/supervisor-list-page.d.ts +0 -62
  150. package/dist-client/pages/supervisor/supervisor-list-page.js +0 -322
  151. package/dist-client/pages/supervisor/supervisor-list-page.js.map +0 -1
  152. package/dist-client/route.d.ts +0 -1
  153. package/dist-client/route.js +0 -44
  154. package/dist-client/route.js.map +0 -1
  155. package/dist-client/stt/speech-to-text.d.ts +0 -41
  156. package/dist-client/stt/speech-to-text.js +0 -331
  157. package/dist-client/stt/speech-to-text.js.map +0 -1
  158. package/dist-client/stt/stt-utils.d.ts +0 -28
  159. package/dist-client/stt/stt-utils.js +0 -146
  160. package/dist-client/stt/stt-utils.js.map +0 -1
  161. package/dist-client/tsconfig.tsbuildinfo +0 -1
  162. package/dist-server/controllers/index.d.ts +0 -0
  163. package/dist-server/controllers/index.js +0 -1
  164. package/dist-server/controllers/index.js.map +0 -1
  165. package/dist-server/index.d.ts +0 -3
  166. package/dist-server/index.js +0 -7
  167. package/dist-server/index.js.map +0 -1
  168. package/dist-server/middlewares/index.d.ts +0 -1
  169. package/dist-server/middlewares/index.js +0 -7
  170. package/dist-server/middlewares/index.js.map +0 -1
  171. package/dist-server/migrations/index.d.ts +0 -1
  172. package/dist-server/migrations/index.js +0 -12
  173. package/dist-server/migrations/index.js.map +0 -1
  174. package/dist-server/routes.d.ts +0 -0
  175. package/dist-server/routes.js +0 -25
  176. package/dist-server/routes.js.map +0 -1
  177. package/dist-server/service/action-plan/action-plan-mutation.d.ts +0 -10
  178. package/dist-server/service/action-plan/action-plan-mutation.js +0 -167
  179. package/dist-server/service/action-plan/action-plan-mutation.js.map +0 -1
  180. package/dist-server/service/action-plan/action-plan-query.d.ts +0 -12
  181. package/dist-server/service/action-plan/action-plan-query.js +0 -91
  182. package/dist-server/service/action-plan/action-plan-query.js.map +0 -1
  183. package/dist-server/service/action-plan/action-plan-type.d.ts +0 -23
  184. package/dist-server/service/action-plan/action-plan-type.js +0 -86
  185. package/dist-server/service/action-plan/action-plan-type.js.map +0 -1
  186. package/dist-server/service/action-plan/action-plan.d.ts +0 -27
  187. package/dist-server/service/action-plan/action-plan.js +0 -116
  188. package/dist-server/service/action-plan/action-plan.js.map +0 -1
  189. package/dist-server/service/action-plan/index.d.ts +0 -5
  190. package/dist-server/service/action-plan/index.js +0 -9
  191. package/dist-server/service/action-plan/index.js.map +0 -1
  192. package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +0 -9
  193. package/dist-server/service/building-inspection/building-inspection-mutation.js +0 -404
  194. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +0 -1
  195. package/dist-server/service/building-inspection/building-inspection-query.d.ts +0 -24
  196. package/dist-server/service/building-inspection/building-inspection-query.js +0 -406
  197. package/dist-server/service/building-inspection/building-inspection-query.js.map +0 -1
  198. package/dist-server/service/building-inspection/building-inspection-type.d.ts +0 -89
  199. package/dist-server/service/building-inspection/building-inspection-type.js +0 -330
  200. package/dist-server/service/building-inspection/building-inspection-type.js.map +0 -1
  201. package/dist-server/service/building-inspection/building-inspection.d.ts +0 -42
  202. package/dist-server/service/building-inspection/building-inspection.js +0 -186
  203. package/dist-server/service/building-inspection/building-inspection.js.map +0 -1
  204. package/dist-server/service/building-inspection/index.d.ts +0 -7
  205. package/dist-server/service/building-inspection/index.js +0 -19
  206. package/dist-server/service/building-inspection/index.js.map +0 -1
  207. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +0 -6
  208. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +0 -66
  209. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +0 -1
  210. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +0 -16
  211. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +0 -171
  212. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +0 -1
  213. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +0 -23
  214. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +0 -90
  215. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +0 -1
  216. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +0 -33
  217. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +0 -132
  218. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +0 -1
  219. package/dist-server/service/building-inspection-daily-worklog/index.d.ts +0 -5
  220. package/dist-server/service/building-inspection-daily-worklog/index.js +0 -9
  221. package/dist-server/service/building-inspection-daily-worklog/index.js.map +0 -1
  222. package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +0 -16
  223. package/dist-server/service/building-inspection-history/building-inspection-history-query.js +0 -120
  224. package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +0 -1
  225. package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +0 -5
  226. package/dist-server/service/building-inspection-history/building-inspection-history-type.js +0 -21
  227. package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +0 -1
  228. package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +0 -35
  229. package/dist-server/service/building-inspection-history/building-inspection-history.js +0 -162
  230. package/dist-server/service/building-inspection-history/building-inspection-history.js.map +0 -1
  231. package/dist-server/service/building-inspection-history/event-subscriber.d.ts +0 -7
  232. package/dist-server/service/building-inspection-history/event-subscriber.js +0 -21
  233. package/dist-server/service/building-inspection-history/event-subscriber.js.map +0 -1
  234. package/dist-server/service/building-inspection-history/index.d.ts +0 -6
  235. package/dist-server/service/building-inspection-history/index.js +0 -10
  236. package/dist-server/service/building-inspection-history/index.js.map +0 -1
  237. package/dist-server/service/checklist/checklist-mutation.d.ts +0 -3
  238. package/dist-server/service/checklist/checklist-mutation.js +0 -30
  239. package/dist-server/service/checklist/checklist-mutation.js.map +0 -1
  240. package/dist-server/service/checklist/checklist-query.d.ts +0 -21
  241. package/dist-server/service/checklist/checklist-query.js +0 -177
  242. package/dist-server/service/checklist/checklist-query.js.map +0 -1
  243. package/dist-server/service/checklist/checklist-type.d.ts +0 -5
  244. package/dist-server/service/checklist/checklist-type.js +0 -21
  245. package/dist-server/service/checklist/checklist-type.js.map +0 -1
  246. package/dist-server/service/checklist/checklist.d.ts +0 -66
  247. package/dist-server/service/checklist/checklist.js +0 -259
  248. package/dist-server/service/checklist/checklist.js.map +0 -1
  249. package/dist-server/service/checklist/event-subscriber.d.ts +0 -7
  250. package/dist-server/service/checklist/event-subscriber.js +0 -21
  251. package/dist-server/service/checklist/event-subscriber.js.map +0 -1
  252. package/dist-server/service/checklist/index.d.ts +0 -5
  253. package/dist-server/service/checklist/index.js +0 -9
  254. package/dist-server/service/checklist/index.js.map +0 -1
  255. package/dist-server/service/checklist-history/checklist-history-query.d.ts +0 -11
  256. package/dist-server/service/checklist-history/checklist-history-query.js +0 -77
  257. package/dist-server/service/checklist-history/checklist-history-query.js.map +0 -1
  258. package/dist-server/service/checklist-history/checklist-history-type.d.ts +0 -5
  259. package/dist-server/service/checklist-history/checklist-history-type.js +0 -21
  260. package/dist-server/service/checklist-history/checklist-history-type.js.map +0 -1
  261. package/dist-server/service/checklist-history/checklist-history.d.ts +0 -50
  262. package/dist-server/service/checklist-history/checklist-history.js +0 -239
  263. package/dist-server/service/checklist-history/checklist-history.js.map +0 -1
  264. package/dist-server/service/checklist-history/event-subscriber.d.ts +0 -7
  265. package/dist-server/service/checklist-history/event-subscriber.js +0 -21
  266. package/dist-server/service/checklist-history/event-subscriber.js.map +0 -1
  267. package/dist-server/service/checklist-history/index.d.ts +0 -6
  268. package/dist-server/service/checklist-history/index.js +0 -10
  269. package/dist-server/service/checklist-history/index.js.map +0 -1
  270. package/dist-server/service/checklist-item/checklist-item-mutation.d.ts +0 -2
  271. package/dist-server/service/checklist-item/checklist-item-mutation.js +0 -13
  272. package/dist-server/service/checklist-item/checklist-item-mutation.js.map +0 -1
  273. package/dist-server/service/checklist-item/checklist-item-query.d.ts +0 -18
  274. package/dist-server/service/checklist-item/checklist-item-query.js +0 -138
  275. package/dist-server/service/checklist-item/checklist-item-query.js.map +0 -1
  276. package/dist-server/service/checklist-item/checklist-item-type.d.ts +0 -5
  277. package/dist-server/service/checklist-item/checklist-item-type.js +0 -21
  278. package/dist-server/service/checklist-item/checklist-item-type.js.map +0 -1
  279. package/dist-server/service/checklist-item/checklist-item.d.ts +0 -29
  280. package/dist-server/service/checklist-item/checklist-item.js +0 -124
  281. package/dist-server/service/checklist-item/checklist-item.js.map +0 -1
  282. package/dist-server/service/checklist-item/index.d.ts +0 -4
  283. package/dist-server/service/checklist-item/index.js +0 -9
  284. package/dist-server/service/checklist-item/index.js.map +0 -1
  285. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.d.ts +0 -16
  286. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js +0 -83
  287. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js.map +0 -1
  288. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +0 -8
  289. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +0 -114
  290. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +0 -1
  291. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.d.ts +0 -7
  292. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +0 -49
  293. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +0 -1
  294. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.d.ts +0 -14
  295. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +0 -53
  296. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +0 -1
  297. package/dist-server/service/checklist-item-comment/checklist-item-comment.d.ts +0 -12
  298. package/dist-server/service/checklist-item-comment/checklist-item-comment.js +0 -57
  299. package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +0 -1
  300. package/dist-server/service/checklist-item-comment/index.d.ts +0 -5
  301. package/dist-server/service/checklist-item-comment/index.js +0 -10
  302. package/dist-server/service/checklist-item-comment/index.js.map +0 -1
  303. package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +0 -16
  304. package/dist-server/service/checklist-item-history/checklist-item-history-query.js +0 -123
  305. package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +0 -1
  306. package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +0 -5
  307. package/dist-server/service/checklist-item-history/checklist-item-history-type.js +0 -21
  308. package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +0 -1
  309. package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +0 -27
  310. package/dist-server/service/checklist-item-history/checklist-item-history.js +0 -133
  311. package/dist-server/service/checklist-item-history/checklist-item-history.js.map +0 -1
  312. package/dist-server/service/checklist-item-history/event-subscriber.d.ts +0 -7
  313. package/dist-server/service/checklist-item-history/event-subscriber.js +0 -21
  314. package/dist-server/service/checklist-item-history/event-subscriber.js.map +0 -1
  315. package/dist-server/service/checklist-item-history/index.d.ts +0 -6
  316. package/dist-server/service/checklist-item-history/index.js +0 -10
  317. package/dist-server/service/checklist-item-history/index.js.map +0 -1
  318. package/dist-server/service/checklist-template/checklist-template-mutation.d.ts +0 -6
  319. package/dist-server/service/checklist-template/checklist-template-mutation.js +0 -64
  320. package/dist-server/service/checklist-template/checklist-template-mutation.js.map +0 -1
  321. package/dist-server/service/checklist-template/checklist-template-query.d.ts +0 -10
  322. package/dist-server/service/checklist-template/checklist-template-query.js +0 -62
  323. package/dist-server/service/checklist-template/checklist-template-query.js.map +0 -1
  324. package/dist-server/service/checklist-template/checklist-template-type.d.ts +0 -10
  325. package/dist-server/service/checklist-template/checklist-template-type.js +0 -39
  326. package/dist-server/service/checklist-template/checklist-template-type.js.map +0 -1
  327. package/dist-server/service/checklist-template/checklist-template.d.ts +0 -17
  328. package/dist-server/service/checklist-template/checklist-template.js +0 -78
  329. package/dist-server/service/checklist-template/checklist-template.js.map +0 -1
  330. package/dist-server/service/checklist-template/index.d.ts +0 -5
  331. package/dist-server/service/checklist-template/index.js +0 -9
  332. package/dist-server/service/checklist-template/index.js.map +0 -1
  333. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.d.ts +0 -7
  334. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +0 -80
  335. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +0 -1
  336. package/dist-server/service/checklist-template-item/checklist-template-item-query.d.ts +0 -11
  337. package/dist-server/service/checklist-template-item/checklist-template-item-query.js +0 -78
  338. package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +0 -1
  339. package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +0 -19
  340. package/dist-server/service/checklist-template-item/checklist-template-item-type.js +0 -69
  341. package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +0 -1
  342. package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +0 -26
  343. package/dist-server/service/checklist-template-item/checklist-template-item.js +0 -106
  344. package/dist-server/service/checklist-template-item/checklist-template-item.js.map +0 -1
  345. package/dist-server/service/checklist-template-item/index.d.ts +0 -5
  346. package/dist-server/service/checklist-template-item/index.js +0 -9
  347. package/dist-server/service/checklist-template-item/index.js.map +0 -1
  348. package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +0 -2
  349. package/dist-server/service/checklist-template-item/spec-matching-service.js +0 -51
  350. package/dist-server/service/checklist-template-item/spec-matching-service.js.map +0 -1
  351. package/dist-server/service/checklist-type/checklist-type-mutation.d.ts +0 -6
  352. package/dist-server/service/checklist-type/checklist-type-mutation.js +0 -64
  353. package/dist-server/service/checklist-type/checklist-type-mutation.js.map +0 -1
  354. package/dist-server/service/checklist-type/checklist-type-query.d.ts +0 -10
  355. package/dist-server/service/checklist-type/checklist-type-query.js +0 -62
  356. package/dist-server/service/checklist-type/checklist-type-query.js.map +0 -1
  357. package/dist-server/service/checklist-type/checklist-type-type.d.ts +0 -11
  358. package/dist-server/service/checklist-type/checklist-type-type.js +0 -43
  359. package/dist-server/service/checklist-type/checklist-type-type.js.map +0 -1
  360. package/dist-server/service/checklist-type/checklist-type.d.ts +0 -19
  361. package/dist-server/service/checklist-type/checklist-type.js +0 -78
  362. package/dist-server/service/checklist-type/checklist-type.js.map +0 -1
  363. package/dist-server/service/checklist-type/index.d.ts +0 -5
  364. package/dist-server/service/checklist-type/index.js +0 -9
  365. package/dist-server/service/checklist-type/index.js.map +0 -1
  366. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.d.ts +0 -7
  367. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js +0 -107
  368. package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js.map +0 -1
  369. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.d.ts +0 -10
  370. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js +0 -62
  371. package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js.map +0 -1
  372. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.d.ts +0 -11
  373. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js +0 -43
  374. package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js.map +0 -1
  375. package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts +0 -18
  376. package/dist-server/service/construction-checklist-template/construction-checklist-template.js +0 -80
  377. package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map +0 -1
  378. package/dist-server/service/construction-checklist-template/index.d.ts +0 -5
  379. package/dist-server/service/construction-checklist-template/index.js +0 -9
  380. package/dist-server/service/construction-checklist-template/index.js.map +0 -1
  381. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.d.ts +0 -6
  382. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js +0 -56
  383. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js.map +0 -1
  384. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.d.ts +0 -9
  385. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js +0 -53
  386. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js.map +0 -1
  387. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.d.ts +0 -17
  388. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js +0 -67
  389. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js.map +0 -1
  390. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.d.ts +0 -24
  391. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js +0 -113
  392. package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js.map +0 -1
  393. package/dist-server/service/construction-checklist-template-item/index.d.ts +0 -5
  394. package/dist-server/service/construction-checklist-template-item/index.js +0 -9
  395. package/dist-server/service/construction-checklist-template-item/index.js.map +0 -1
  396. package/dist-server/service/field-document/field-document-auto-file.d.ts +0 -21
  397. package/dist-server/service/field-document/field-document-auto-file.js +0 -47
  398. package/dist-server/service/field-document/field-document-auto-file.js.map +0 -1
  399. package/dist-server/service/field-document/field-document-mutation.d.ts +0 -9
  400. package/dist-server/service/field-document/field-document-mutation.js +0 -139
  401. package/dist-server/service/field-document/field-document-mutation.js.map +0 -1
  402. package/dist-server/service/field-document/field-document-query.d.ts +0 -14
  403. package/dist-server/service/field-document/field-document-query.js +0 -120
  404. package/dist-server/service/field-document/field-document-query.js.map +0 -1
  405. package/dist-server/service/field-document/field-document-summary-service.d.ts +0 -10
  406. package/dist-server/service/field-document/field-document-summary-service.js +0 -79
  407. package/dist-server/service/field-document/field-document-summary-service.js.map +0 -1
  408. package/dist-server/service/field-document/field-document-type.d.ts +0 -24
  409. package/dist-server/service/field-document/field-document-type.js +0 -88
  410. package/dist-server/service/field-document/field-document-type.js.map +0 -1
  411. package/dist-server/service/field-document/field-document.d.ts +0 -29
  412. package/dist-server/service/field-document/field-document.js +0 -127
  413. package/dist-server/service/field-document/field-document.js.map +0 -1
  414. package/dist-server/service/field-document/index.d.ts +0 -5
  415. package/dist-server/service/field-document/index.js +0 -9
  416. package/dist-server/service/field-document/index.js.map +0 -1
  417. package/dist-server/service/index.d.ts +0 -23
  418. package/dist-server/service/index.js +0 -98
  419. package/dist-server/service/index.js.map +0 -1
  420. package/dist-server/service/issue/index.d.ts +0 -5
  421. package/dist-server/service/issue/index.js +0 -9
  422. package/dist-server/service/issue/index.js.map +0 -1
  423. package/dist-server/service/issue/issue-mutation.d.ts +0 -10
  424. package/dist-server/service/issue/issue-mutation.js +0 -167
  425. package/dist-server/service/issue/issue-mutation.js.map +0 -1
  426. package/dist-server/service/issue/issue-query.d.ts +0 -12
  427. package/dist-server/service/issue/issue-query.js +0 -91
  428. package/dist-server/service/issue/issue-query.js.map +0 -1
  429. package/dist-server/service/issue/issue-type.d.ts +0 -23
  430. package/dist-server/service/issue/issue-type.js +0 -86
  431. package/dist-server/service/issue/issue-type.js.map +0 -1
  432. package/dist-server/service/issue/issue.d.ts +0 -26
  433. package/dist-server/service/issue/issue.js +0 -111
  434. package/dist-server/service/issue/issue.js.map +0 -1
  435. package/dist-server/service/project-checklist/index.d.ts +0 -5
  436. package/dist-server/service/project-checklist/index.js +0 -9
  437. package/dist-server/service/project-checklist/index.js.map +0 -1
  438. package/dist-server/service/project-checklist/project-checklist-mutation.d.ts +0 -7
  439. package/dist-server/service/project-checklist/project-checklist-mutation.js +0 -118
  440. package/dist-server/service/project-checklist/project-checklist-mutation.js.map +0 -1
  441. package/dist-server/service/project-checklist/project-checklist-query.d.ts +0 -12
  442. package/dist-server/service/project-checklist/project-checklist-query.js +0 -76
  443. package/dist-server/service/project-checklist/project-checklist-query.js.map +0 -1
  444. package/dist-server/service/project-checklist/project-checklist-type.d.ts +0 -18
  445. package/dist-server/service/project-checklist/project-checklist-type.js +0 -69
  446. package/dist-server/service/project-checklist/project-checklist-type.js.map +0 -1
  447. package/dist-server/service/project-checklist/project-checklist.d.ts +0 -20
  448. package/dist-server/service/project-checklist/project-checklist.js +0 -90
  449. package/dist-server/service/project-checklist/project-checklist.js.map +0 -1
  450. package/dist-server/service/project-checklist/spec-matching-service.d.ts +0 -17
  451. package/dist-server/service/project-checklist/spec-matching-service.js +0 -140
  452. package/dist-server/service/project-checklist/spec-matching-service.js.map +0 -1
  453. package/dist-server/service/project-checklist-item/index.d.ts +0 -4
  454. package/dist-server/service/project-checklist-item/index.js +0 -9
  455. package/dist-server/service/project-checklist-item/index.js.map +0 -1
  456. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.d.ts +0 -2
  457. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js +0 -13
  458. package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js.map +0 -1
  459. package/dist-server/service/project-checklist-item/project-checklist-item-query.d.ts +0 -5
  460. package/dist-server/service/project-checklist-item/project-checklist-item-query.js +0 -34
  461. package/dist-server/service/project-checklist-item/project-checklist-item-query.js.map +0 -1
  462. package/dist-server/service/project-checklist-item/project-checklist-item-type.d.ts +0 -5
  463. package/dist-server/service/project-checklist-item/project-checklist-item-type.js +0 -21
  464. package/dist-server/service/project-checklist-item/project-checklist-item-type.js.map +0 -1
  465. package/dist-server/service/project-checklist-item/project-checklist-item.d.ts +0 -19
  466. package/dist-server/service/project-checklist-item/project-checklist-item.js +0 -92
  467. package/dist-server/service/project-checklist-item/project-checklist-item.js.map +0 -1
  468. package/dist-server/service/project-report/index.d.ts +0 -5
  469. package/dist-server/service/project-report/index.js +0 -9
  470. package/dist-server/service/project-report/index.js.map +0 -1
  471. package/dist-server/service/project-report/project-report-mutation.d.ts +0 -10
  472. package/dist-server/service/project-report/project-report-mutation.js +0 -167
  473. package/dist-server/service/project-report/project-report-mutation.js.map +0 -1
  474. package/dist-server/service/project-report/project-report-query.d.ts +0 -12
  475. package/dist-server/service/project-report/project-report-query.js +0 -91
  476. package/dist-server/service/project-report/project-report-query.js.map +0 -1
  477. package/dist-server/service/project-report/project-report-type.d.ts +0 -23
  478. package/dist-server/service/project-report/project-report-type.js +0 -86
  479. package/dist-server/service/project-report/project-report-type.js.map +0 -1
  480. package/dist-server/service/project-report/project-report.d.ts +0 -28
  481. package/dist-server/service/project-report/project-report.js +0 -121
  482. package/dist-server/service/project-report/project-report.js.map +0 -1
  483. package/dist-server/service/supervisor/index.d.ts +0 -5
  484. package/dist-server/service/supervisor/index.js +0 -9
  485. package/dist-server/service/supervisor/index.js.map +0 -1
  486. package/dist-server/service/supervisor/supervisor-mutation.d.ts +0 -10
  487. package/dist-server/service/supervisor/supervisor-mutation.js +0 -167
  488. package/dist-server/service/supervisor/supervisor-mutation.js.map +0 -1
  489. package/dist-server/service/supervisor/supervisor-query.d.ts +0 -12
  490. package/dist-server/service/supervisor/supervisor-query.js +0 -91
  491. package/dist-server/service/supervisor/supervisor-query.js.map +0 -1
  492. package/dist-server/service/supervisor/supervisor-type.d.ts +0 -23
  493. package/dist-server/service/supervisor/supervisor-type.js +0 -86
  494. package/dist-server/service/supervisor/supervisor-type.js.map +0 -1
  495. package/dist-server/service/supervisor/supervisor.d.ts +0 -28
  496. package/dist-server/service/supervisor/supervisor.js +0 -121
  497. package/dist-server/service/supervisor/supervisor.js.map +0 -1
  498. package/dist-server/tsconfig.tsbuildinfo +0 -1
@@ -1,127 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FieldDocument = exports.FieldDocumentSummaryStatus = void 0;
4
- const tslib_1 = require("tslib");
5
- const typeorm_1 = require("typeorm");
6
- const type_graphql_1 = require("type-graphql");
7
- const shell_1 = require("@things-factory/shell");
8
- const auth_base_1 = require("@things-factory/auth-base");
9
- var FieldDocumentSummaryStatus;
10
- (function (FieldDocumentSummaryStatus) {
11
- FieldDocumentSummaryStatus["REQUEST"] = "10";
12
- FieldDocumentSummaryStatus["SUCCESS"] = "20";
13
- FieldDocumentSummaryStatus["FAIL"] = "30";
14
- })(FieldDocumentSummaryStatus || (exports.FieldDocumentSummaryStatus = FieldDocumentSummaryStatus = {}));
15
- (0, type_graphql_1.registerEnumType)(FieldDocumentSummaryStatus, {
16
- name: 'FieldDocumentSummaryStatus',
17
- description: 'AI 문서 요약 요청 상태'
18
- });
19
- let FieldDocument = class FieldDocument {
20
- };
21
- exports.FieldDocument = FieldDocument;
22
- tslib_1.__decorate([
23
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
24
- (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
25
- tslib_1.__metadata("design:type", String)
26
- ], FieldDocument.prototype, "id", void 0);
27
- tslib_1.__decorate([
28
- (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
29
- (0, type_graphql_1.Field)({ nullable: true }),
30
- tslib_1.__metadata("design:type", shell_1.Domain)
31
- ], FieldDocument.prototype, "domain", void 0);
32
- tslib_1.__decorate([
33
- (0, typeorm_1.RelationId)((fd) => fd.domain),
34
- tslib_1.__metadata("design:type", String)
35
- ], FieldDocument.prototype, "domainId", void 0);
36
- tslib_1.__decorate([
37
- (0, typeorm_1.Column)({ nullable: false, comment: '프로젝트 ID' }),
38
- (0, type_graphql_1.Field)({ nullable: false }),
39
- tslib_1.__metadata("design:type", String)
40
- ], FieldDocument.prototype, "projectId", void 0);
41
- tslib_1.__decorate([
42
- (0, typeorm_1.Column)({ nullable: false, comment: '소분류 코드 (예: 020108)' }),
43
- (0, type_graphql_1.Field)({ nullable: false }),
44
- tslib_1.__metadata("design:type", String)
45
- ], FieldDocument.prototype, "code", void 0);
46
- tslib_1.__decorate([
47
- (0, typeorm_1.Column)({ nullable: false, comment: '파일명' }),
48
- (0, type_graphql_1.Field)({ nullable: false }),
49
- tslib_1.__metadata("design:type", String)
50
- ], FieldDocument.prototype, "name", void 0);
51
- tslib_1.__decorate([
52
- (0, typeorm_1.Column)({ nullable: true, comment: 'AI 생성 요약' }),
53
- (0, type_graphql_1.Field)({ nullable: true }),
54
- tslib_1.__metadata("design:type", String)
55
- ], FieldDocument.prototype, "aiSummary", void 0);
56
- tslib_1.__decorate([
57
- (0, typeorm_1.Column)({ nullable: true, comment: 'AI 요약 요청 상태 (10: 요청, 20: 성공, 30: 실패)' }),
58
- (0, type_graphql_1.Field)(type => FieldDocumentSummaryStatus, { nullable: true }),
59
- tslib_1.__metadata("design:type", String)
60
- ], FieldDocument.prototype, "aiSummaryStatus", void 0);
61
- tslib_1.__decorate([
62
- (0, typeorm_1.Column)({ default: false, comment: '즐겨찾기' }),
63
- (0, type_graphql_1.Field)({ nullable: true }),
64
- tslib_1.__metadata("design:type", Boolean)
65
- ], FieldDocument.prototype, "isFavorite", void 0);
66
- tslib_1.__decorate([
67
- (0, typeorm_1.Column)({ nullable: true, comment: '자동 등록 출처 (DAILY_WORKLOG, INSPECTION_REQUEST 등)' }),
68
- (0, type_graphql_1.Field)({ nullable: true }),
69
- tslib_1.__metadata("design:type", String)
70
- ], FieldDocument.prototype, "sourceType", void 0);
71
- tslib_1.__decorate([
72
- (0, typeorm_1.Column)({ nullable: true, comment: '출처 엔티티 ID' }),
73
- (0, type_graphql_1.Field)({ nullable: true }),
74
- tslib_1.__metadata("design:type", String)
75
- ], FieldDocument.prototype, "sourceRefId", void 0);
76
- tslib_1.__decorate([
77
- (0, typeorm_1.CreateDateColumn)(),
78
- (0, type_graphql_1.Field)({ nullable: true }),
79
- tslib_1.__metadata("design:type", Date)
80
- ], FieldDocument.prototype, "createdAt", void 0);
81
- tslib_1.__decorate([
82
- (0, typeorm_1.UpdateDateColumn)(),
83
- (0, type_graphql_1.Field)({ nullable: true }),
84
- tslib_1.__metadata("design:type", Date)
85
- ], FieldDocument.prototype, "updatedAt", void 0);
86
- tslib_1.__decorate([
87
- (0, typeorm_1.DeleteDateColumn)(),
88
- (0, type_graphql_1.Field)({ nullable: true }),
89
- tslib_1.__metadata("design:type", Date)
90
- ], FieldDocument.prototype, "deletedAt", void 0);
91
- tslib_1.__decorate([
92
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
93
- (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
94
- tslib_1.__metadata("design:type", auth_base_1.User)
95
- ], FieldDocument.prototype, "creator", void 0);
96
- tslib_1.__decorate([
97
- (0, typeorm_1.RelationId)((fd) => fd.creator),
98
- tslib_1.__metadata("design:type", String)
99
- ], FieldDocument.prototype, "creatorId", void 0);
100
- tslib_1.__decorate([
101
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
102
- (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
103
- tslib_1.__metadata("design:type", auth_base_1.User)
104
- ], FieldDocument.prototype, "updater", void 0);
105
- tslib_1.__decorate([
106
- (0, typeorm_1.RelationId)((fd) => fd.updater),
107
- tslib_1.__metadata("design:type", String)
108
- ], FieldDocument.prototype, "updaterId", void 0);
109
- tslib_1.__decorate([
110
- (0, type_graphql_1.Field)({ nullable: true, description: '첨부파일 fullpath' }),
111
- tslib_1.__metadata("design:type", String)
112
- ], FieldDocument.prototype, "fullpath", void 0);
113
- tslib_1.__decorate([
114
- (0, type_graphql_1.Field)({ nullable: true, description: '파일 크기' }),
115
- tslib_1.__metadata("design:type", String)
116
- ], FieldDocument.prototype, "fileSize", void 0);
117
- exports.FieldDocument = FieldDocument = tslib_1.__decorate([
118
- (0, typeorm_1.Entity)({ comment: '현장 문서' }),
119
- (0, typeorm_1.Index)('ix_field_document_0', (fd) => [fd.projectId, fd.code], {
120
- where: '"deleted_at" IS NULL'
121
- }),
122
- (0, typeorm_1.Index)('ix_field_document_1', (fd) => [fd.projectId, fd.isFavorite], {
123
- where: '"deleted_at" IS NULL'
124
- }),
125
- (0, type_graphql_1.ObjectType)({ description: 'Entity for FieldDocument' })
126
- ], FieldDocument);
127
- //# sourceMappingURL=field-document.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-document.js","sourceRoot":"","sources":["../../../server/service/field-document/field-document.ts"],"names":[],"mappings":";;;;AAAA,qCAUgB;AAChB,+CAA2E;AAE3E,iDAA8C;AAC9C,yDAAgD;AAEhD,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,4CAAc,CAAA;IACd,4CAAc,CAAA;IACd,yCAAW,CAAA;AACb,CAAC,EAJW,0BAA0B,0CAA1B,0BAA0B,QAIrC;AAED,IAAA,+BAAgB,EAAC,0BAA0B,EAAE;IAC3C,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAA;AAUK,IAAM,aAAa,GAAnB,MAAM,aAAa;CA4EzB,CAAA;AA5EY,sCAAa;AAGf;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACnB;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;6CAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,EAAiB,EAAE,EAAE,C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EAAE,eAAe,EAAE,CAAC;;+CACvC;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;;+CAC/B;wBA3EN,aAAa;IARzB,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC5B,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,EAAiB,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE;QAC5E,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,EAAiB,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE;QAClF,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;GAC3C,aAAa,CA4EzB","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, Int, registerEnumType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\n\nexport enum FieldDocumentSummaryStatus {\n REQUEST = '10',\n SUCCESS = '20',\n FAIL = '30'\n}\n\nregisterEnumType(FieldDocumentSummaryStatus, {\n name: 'FieldDocumentSummaryStatus',\n description: 'AI 문서 요약 요청 상태'\n})\n\n@Entity({ comment: '현장 문서' })\n@Index('ix_field_document_0', (fd: FieldDocument) => [fd.projectId, fd.code], {\n where: '\"deleted_at\" IS NULL'\n})\n@Index('ix_field_document_1', (fd: FieldDocument) => [fd.projectId, fd.isFavorite], {\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for FieldDocument' })\nexport class FieldDocument {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { nullable: true })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((fd: FieldDocument) => fd.domain)\n domainId?: string\n\n @Column({ nullable: false, comment: '프로젝트 ID' })\n @Field({ nullable: false })\n projectId!: string\n\n @Column({ nullable: false, comment: '소분류 코드 (예: 020108)' })\n @Field({ nullable: false })\n code!: string\n\n @Column({ nullable: false, comment: '파일명' })\n @Field({ nullable: false })\n name!: string\n\n @Column({ nullable: true, comment: 'AI 생성 요약' })\n @Field({ nullable: true })\n aiSummary?: string\n\n @Column({ nullable: true, comment: 'AI 요약 요청 상태 (10: 요청, 20: 성공, 30: 실패)' })\n @Field(type => FieldDocumentSummaryStatus, { nullable: true })\n aiSummaryStatus?: FieldDocumentSummaryStatus\n\n @Column({ default: false, comment: '즐겨찾기' })\n @Field({ nullable: true })\n isFavorite?: boolean\n\n @Column({ nullable: true, comment: '자동 등록 출처 (DAILY_WORKLOG, INSPECTION_REQUEST 등)' })\n @Field({ nullable: true })\n sourceType?: string\n\n @Column({ nullable: true, comment: '출처 엔티티 ID' })\n @Field({ nullable: true })\n sourceRefId?: 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((fd: FieldDocument) => fd.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((fd: FieldDocument) => fd.updater)\n updaterId?: string\n\n /* Attachment 연결: refBy = fieldDocument.id, refType = 'FieldDocument' */\n @Field({ nullable: true, description: '첨부파일 fullpath' })\n fullpath?: string\n\n @Field({ nullable: true, description: '파일 크기' })\n fileSize?: string\n}\n"]}
@@ -1,5 +0,0 @@
1
- import { FieldDocument } from './field-document';
2
- import { FieldDocumentQuery } from './field-document-query';
3
- import { FieldDocumentMutation } from './field-document-mutation';
4
- export declare const entities: (typeof FieldDocument)[];
5
- export declare const resolvers: (typeof FieldDocumentQuery | typeof FieldDocumentMutation)[];
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolvers = exports.entities = void 0;
4
- const field_document_1 = require("./field-document");
5
- const field_document_query_1 = require("./field-document-query");
6
- const field_document_mutation_1 = require("./field-document-mutation");
7
- exports.entities = [field_document_1.FieldDocument];
8
- exports.resolvers = [field_document_query_1.FieldDocumentQuery, field_document_mutation_1.FieldDocumentMutation];
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/field-document/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAChD,iEAA2D;AAC3D,uEAAiE;AAEpD,QAAA,QAAQ,GAAG,CAAC,8BAAa,CAAC,CAAA;AAC1B,QAAA,SAAS,GAAG,CAAC,yCAAkB,EAAE,+CAAqB,CAAC,CAAA","sourcesContent":["import { FieldDocument } from './field-document'\nimport { FieldDocumentQuery } from './field-document-query'\nimport { FieldDocumentMutation } from './field-document-mutation'\n\nexport const entities = [FieldDocument]\nexport const resolvers = [FieldDocumentQuery, FieldDocumentMutation]\n"]}
@@ -1,23 +0,0 @@
1
- export * from './field-document/field-document';
2
- export * from './action-plan/action-plan';
3
- export * from './issue/issue';
4
- export * from './project-report/project-report';
5
- export * from './supervisor/supervisor';
6
- export * from './checklist-type/checklist-type';
7
- export * from './checklist/checklist';
8
- export * from './checklist-item/checklist-item';
9
- export * from './checklist-item-comment/checklist-item-comment';
10
- export * from './checklist-template/checklist-template';
11
- export * from './checklist-template-item/checklist-template-item';
12
- export * from './construction-checklist-template/construction-checklist-template';
13
- export * from './construction-checklist-template-item/construction-checklist-template-item';
14
- export * from './project-checklist/project-checklist';
15
- export * from './project-checklist-item/project-checklist-item';
16
- export * from './building-inspection/building-inspection';
17
- export * from './building-inspection/building-inspection-type';
18
- export * from './building-inspection-daily-worklog/building-inspection-daily-worklog';
19
- export declare const entities: (typeof import("./field-document/field-document").FieldDocument | typeof import("./issue/issue").Issue | typeof import("./action-plan/action-plan").ActionPlan | typeof import("./supervisor/supervisor").Supervisor | typeof import("./project-report/project-report").ProjectReport | typeof import("./checklist-type/checklist-type").ChecklistType | typeof import("./checklist-item-comment/checklist-item-comment").ChecklistItemComment | typeof import("./checklist-item/checklist-item").ChecklistItem | typeof import("./checklist/checklist").Checklist | typeof import("./building-inspection/building-inspection").BuildingInspection | typeof import("./building-inspection-daily-worklog/building-inspection-daily-worklog").BuildingInspectionDailyWorklog | typeof import("./checklist-template-item/checklist-template-item").ChecklistTemplateItem | typeof import("./checklist-template/checklist-template").ChecklistTemplate | typeof import("./construction-checklist-template-item/construction-checklist-template-item").ConstructionChecklistTemplateItem | typeof import("./construction-checklist-template/construction-checklist-template").ConstructionChecklistTemplate | typeof import("./project-checklist-item/project-checklist-item").ProjectChecklistItem | typeof import("./project-checklist/project-checklist").ProjectChecklist | typeof import("./building-inspection-history/building-inspection-history").BuildingInspectionHistory | typeof import("./checklist-history/checklist-history").ChecklistHistory | typeof import("./checklist-item-history/checklist-item-history").ChecklistItemHistory)[];
20
- export declare const schema: {
21
- resolverClasses: typeof import("./checklist-item/checklist-item-mutation").ChecklistItemMutation[];
22
- };
23
- export declare const subscribers: (typeof import("./checklist-history/event-subscriber").ChecklistHistoryEntitySubscriber | typeof import("./checklist-item-history/event-subscriber").ChecklistItemHistoryEntitySubscriber | typeof import("./building-inspection-history/event-subscriber").BuildingInspectionHistoryEntitySubscriber)[];
@@ -1,98 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.subscribers = exports.schema = exports.entities = void 0;
4
- const tslib_1 = require("tslib");
5
- /* EXPORT ENTITY TYPES */
6
- tslib_1.__exportStar(require("./field-document/field-document"), exports);
7
- tslib_1.__exportStar(require("./action-plan/action-plan"), exports);
8
- tslib_1.__exportStar(require("./issue/issue"), exports);
9
- tslib_1.__exportStar(require("./project-report/project-report"), exports);
10
- tslib_1.__exportStar(require("./supervisor/supervisor"), exports);
11
- tslib_1.__exportStar(require("./checklist-type/checklist-type"), exports);
12
- tslib_1.__exportStar(require("./checklist/checklist"), exports);
13
- tslib_1.__exportStar(require("./checklist-item/checklist-item"), exports);
14
- tslib_1.__exportStar(require("./checklist-item-comment/checklist-item-comment"), exports);
15
- tslib_1.__exportStar(require("./checklist-template/checklist-template"), exports);
16
- tslib_1.__exportStar(require("./checklist-template-item/checklist-template-item"), exports);
17
- tslib_1.__exportStar(require("./construction-checklist-template/construction-checklist-template"), exports);
18
- tslib_1.__exportStar(require("./construction-checklist-template-item/construction-checklist-template-item"), exports);
19
- tslib_1.__exportStar(require("./project-checklist/project-checklist"), exports);
20
- tslib_1.__exportStar(require("./project-checklist-item/project-checklist-item"), exports);
21
- tslib_1.__exportStar(require("./building-inspection/building-inspection"), exports);
22
- tslib_1.__exportStar(require("./building-inspection/building-inspection-type"), exports);
23
- tslib_1.__exportStar(require("./building-inspection-daily-worklog/building-inspection-daily-worklog"), exports);
24
- /* IMPORT ENTITIES AND RESOLVERS */
25
- const field_document_1 = require("./field-document");
26
- const action_plan_1 = require("./action-plan");
27
- const issue_1 = require("./issue");
28
- const project_report_1 = require("./project-report");
29
- const supervisor_1 = require("./supervisor");
30
- const checklist_1 = require("./checklist");
31
- const checklist_history_1 = require("./checklist-history");
32
- const checklist_item_1 = require("./checklist-item");
33
- const checklist_item_history_1 = require("./checklist-item-history");
34
- const checklist_item_comment_1 = require("./checklist-item-comment");
35
- const checklist_type_1 = require("./checklist-type");
36
- const checklist_template_1 = require("./checklist-template");
37
- const checklist_template_item_1 = require("./checklist-template-item");
38
- const construction_checklist_template_1 = require("./construction-checklist-template");
39
- const construction_checklist_template_item_1 = require("./construction-checklist-template-item");
40
- const project_checklist_1 = require("./project-checklist");
41
- const project_checklist_item_1 = require("./project-checklist-item");
42
- const building_inspection_1 = require("./building-inspection");
43
- const building_inspection_history_1 = require("./building-inspection-history");
44
- const building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
45
- exports.entities = [
46
- /* ENTITIES */
47
- ...field_document_1.entities,
48
- ...action_plan_1.entities,
49
- ...issue_1.entities,
50
- ...project_report_1.entities,
51
- ...supervisor_1.entities,
52
- ...checklist_1.entities,
53
- ...checklist_history_1.entities,
54
- ...checklist_item_1.entities,
55
- ...checklist_item_history_1.entities,
56
- ...checklist_item_comment_1.entities,
57
- ...checklist_type_1.entities,
58
- ...checklist_template_item_1.entities,
59
- ...checklist_template_1.entities,
60
- ...construction_checklist_template_1.entities,
61
- ...construction_checklist_template_item_1.entities,
62
- ...project_checklist_1.entities,
63
- ...project_checklist_item_1.entities,
64
- ...building_inspection_1.entities,
65
- ...building_inspection_history_1.entities,
66
- ...building_inspection_daily_worklog_1.entities
67
- ];
68
- exports.schema = {
69
- resolverClasses: [
70
- /* RESOLVER CLASSES */
71
- ...field_document_1.resolvers,
72
- ...action_plan_1.resolvers,
73
- ...issue_1.resolvers,
74
- ...project_report_1.resolvers,
75
- ...supervisor_1.resolvers,
76
- ...checklist_1.resolvers,
77
- ...checklist_history_1.resolvers,
78
- ...checklist_item_1.resolvers,
79
- ...checklist_item_history_1.resolvers,
80
- ...checklist_item_comment_1.resolvers,
81
- ...checklist_type_1.resolvers,
82
- ...checklist_template_item_1.resolvers,
83
- ...checklist_template_1.resolvers,
84
- ...construction_checklist_template_1.resolvers,
85
- ...construction_checklist_template_item_1.resolvers,
86
- ...project_checklist_1.resolvers,
87
- ...project_checklist_item_1.resolvers,
88
- ...building_inspection_1.resolvers,
89
- ...building_inspection_history_1.resolvers,
90
- ...building_inspection_daily_worklog_1.resolvers
91
- ]
92
- };
93
- exports.subscribers = [
94
- ...checklist_history_1.subscribers,
95
- ...checklist_item_history_1.subscribers,
96
- ...building_inspection_history_1.subscribers
97
- ];
98
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,0EAA+C;AAC/C,oEAAyC;AACzC,wDAA6B;AAC7B,0EAA+C;AAC/C,kEAAuC;AACvC,0EAA+C;AAC/C,gEAAqC;AACrC,0EAA+C;AAC/C,0FAA+D;AAC/D,kFAAuD;AACvD,4FAAiE;AACjE,4GAAiF;AACjF,sHAA2F;AAC3F,gFAAqD;AACrD,0FAA+D;AAC/D,oFAAyD;AACzD,yFAA8D;AAC9D,gHAAqF;AAErF,mCAAmC;AACnC,qDAAyG;AACzG,+CAAgG;AAChG,mCAAgF;AAChF,qDAAyG;AACzG,6CAA+F;AAC/F,2CAA4F;AAC5F,2DAI4B;AAC5B,qDAAyG;AACzG,qEAIiC;AACjC,qEAA+H;AAC/H,qDAAyG;AACzG,6DAAqH;AACrH,uEAAkI;AAClI,uFAG0C;AAC1C,iGAG+C;AAC/C,2DAAkH;AAClH,qEAGiC;AACjC,+DAAwH;AACxH,+EAIsC;AACtC,2FAG4C;AAE/B,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,yBAAqB;IACxB,GAAG,sBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,yBAAqB;IACxB,GAAG,qBAAkB;IACrB,GAAG,oBAAiB;IACpB,GAAG,4BAAwB;IAC3B,GAAG,yBAAqB;IACxB,GAAG,iCAA4B;IAC/B,GAAG,iCAA4B;IAC/B,GAAG,yBAAqB;IACxB,GAAG,kCAA6B;IAChC,GAAG,6BAAyB;IAC5B,GAAG,0CAAqC;IACxC,GAAG,+CAAyC;IAC5C,GAAG,4BAAwB;IAC3B,GAAG,iCAA4B;IAC/B,GAAG,8BAA0B;IAC7B,GAAG,sCAAiC;IACpC,GAAG,4CAAsC;CAC1C,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACtB,GAAG,0BAAsB;QACzB,GAAG,uBAAmB;QACtB,GAAG,iBAAc;QACjB,GAAG,0BAAsB;QACzB,GAAG,sBAAmB;QACtB,GAAG,qBAAkB;QACrB,GAAG,6BAAyB;QAC5B,GAAG,0BAAsB;QACzB,GAAG,kCAA6B;QAChC,GAAG,kCAA6B;QAChC,GAAG,0BAAsB;QACzB,GAAG,mCAA8B;QACjC,GAAG,8BAA0B;QAC7B,GAAG,2CAAsC;QACzC,GAAG,gDAA0C;QAC7C,GAAG,6BAAyB;QAC5B,GAAG,kCAA6B;QAChC,GAAG,+BAA2B;QAC9B,GAAG,uCAAkC;QACrC,GAAG,6CAAuC;KAC3C;CACF,CAAA;AAEY,QAAA,WAAW,GAAG;IACzB,GAAG,+BAA2B;IAC9B,GAAG,oCAA+B;IAClC,GAAG,yCAAoC;CACxC,CAAA","sourcesContent":["/* EXPORT ENTITY TYPES */\nexport * from './field-document/field-document'\nexport * from './action-plan/action-plan'\nexport * from './issue/issue'\nexport * from './project-report/project-report'\nexport * from './supervisor/supervisor'\nexport * from './checklist-type/checklist-type'\nexport * from './checklist/checklist'\nexport * from './checklist-item/checklist-item'\nexport * from './checklist-item-comment/checklist-item-comment'\nexport * from './checklist-template/checklist-template'\nexport * from './checklist-template-item/checklist-template-item'\nexport * from './construction-checklist-template/construction-checklist-template'\nexport * from './construction-checklist-template-item/construction-checklist-template-item'\nexport * from './project-checklist/project-checklist'\nexport * from './project-checklist-item/project-checklist-item'\nexport * from './building-inspection/building-inspection'\nexport * from './building-inspection/building-inspection-type'\nexport * from './building-inspection-daily-worklog/building-inspection-daily-worklog'\n\n/* IMPORT ENTITIES AND RESOLVERS */\nimport { entities as FieldDocumentEntities, resolvers as FieldDocumentResolvers } from './field-document'\nimport { entities as ActionPlanEntities, resolvers as ActionPlanResolvers } from './action-plan'\nimport { entities as IssueEntities, resolvers as IssueResolvers } from './issue'\nimport { entities as ProjectReportEntities, resolvers as ProjectReportResolvers } from './project-report'\nimport { entities as SupervisorEntities, resolvers as SupervisorResolvers } from './supervisor'\nimport { entities as ChecklistEntities, resolvers as ChecklistResolvers } from './checklist'\nimport {\n entities as ChecklistHistoryEntities,\n resolvers as ChecklistHistoryResolvers,\n subscribers as ChecklistHistorySubscribers\n} from './checklist-history'\nimport { entities as ChecklistItemEntities, resolvers as ChecklistItemResolvers } from './checklist-item'\nimport {\n entities as ChecklistItemHistoryEntities,\n resolvers as ChecklistItemHistoryResolvers,\n subscribers as ChecklistItemHistorySubscribers\n} from './checklist-item-history'\nimport { entities as ChecklistItemCommentEntities, resolvers as ChecklistItemCommentResolvers } from './checklist-item-comment'\nimport { entities as ChecklistTypeEntities, resolvers as ChecklistTypeResolvers } from './checklist-type'\nimport { entities as ChecklistTemplateEntities, resolvers as ChecklistTemplateResolvers } from './checklist-template'\nimport { entities as ChecklistTemplateItemEntities, resolvers as ChecklistTemplateItemResolvers } from './checklist-template-item'\nimport {\n entities as ConstructionChecklistTemplateEntities,\n resolvers as ConstructionChecklistTemplateResolvers\n} from './construction-checklist-template'\nimport {\n entities as ConstructionChecklistTemplateItemEntities,\n resolvers as ConstructionChecklistTemplateItemResolvers\n} from './construction-checklist-template-item'\nimport { entities as ProjectChecklistEntities, resolvers as ProjectChecklistResolvers } from './project-checklist'\nimport {\n entities as ProjectChecklistItemEntities,\n resolvers as ProjectChecklistItemResolvers\n} from './project-checklist-item'\nimport { entities as BuildingInspectionEntities, resolvers as BuildingInspectionResolvers } from './building-inspection'\nimport {\n entities as BuildingInspectionHistoryEntities,\n resolvers as BuildingInspectionHistoryResolvers,\n subscribers as BuildingInspectionHistorySubscribers\n} from './building-inspection-history'\nimport {\n entities as BuildingInspectionDailyWorklogEntities,\n resolvers as BuildingInspectionDailyWorklogResolvers\n} from './building-inspection-daily-worklog'\n\nexport const entities = [\n /* ENTITIES */\n ...FieldDocumentEntities,\n ...ActionPlanEntities,\n ...IssueEntities,\n ...ProjectReportEntities,\n ...SupervisorEntities,\n ...ChecklistEntities,\n ...ChecklistHistoryEntities,\n ...ChecklistItemEntities,\n ...ChecklistItemHistoryEntities,\n ...ChecklistItemCommentEntities,\n ...ChecklistTypeEntities,\n ...ChecklistTemplateItemEntities,\n ...ChecklistTemplateEntities,\n ...ConstructionChecklistTemplateEntities,\n ...ConstructionChecklistTemplateItemEntities,\n ...ProjectChecklistEntities,\n ...ProjectChecklistItemEntities,\n ...BuildingInspectionEntities,\n ...BuildingInspectionHistoryEntities,\n ...BuildingInspectionDailyWorklogEntities\n]\n\nexport const schema = {\n resolverClasses: [\n /* RESOLVER CLASSES */\n ...FieldDocumentResolvers,\n ...ActionPlanResolvers,\n ...IssueResolvers,\n ...ProjectReportResolvers,\n ...SupervisorResolvers,\n ...ChecklistResolvers,\n ...ChecklistHistoryResolvers,\n ...ChecklistItemResolvers,\n ...ChecklistItemHistoryResolvers,\n ...ChecklistItemCommentResolvers,\n ...ChecklistTypeResolvers,\n ...ChecklistTemplateItemResolvers,\n ...ChecklistTemplateResolvers,\n ...ConstructionChecklistTemplateResolvers,\n ...ConstructionChecklistTemplateItemResolvers,\n ...ProjectChecklistResolvers,\n ...ProjectChecklistItemResolvers,\n ...BuildingInspectionResolvers,\n ...BuildingInspectionHistoryResolvers,\n ...BuildingInspectionDailyWorklogResolvers\n ]\n}\n\nexport const subscribers = [\n ...ChecklistHistorySubscribers,\n ...ChecklistItemHistorySubscribers,\n ...BuildingInspectionHistorySubscribers\n]\n"]}
@@ -1,5 +0,0 @@
1
- import { Issue } from './issue';
2
- import { IssueQuery } from './issue-query';
3
- import { IssueMutation } from './issue-mutation';
4
- export declare const entities: (typeof Issue)[];
5
- export declare const resolvers: (typeof IssueQuery | typeof IssueMutation)[];
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolvers = exports.entities = void 0;
4
- const issue_1 = require("./issue");
5
- const issue_query_1 = require("./issue-query");
6
- const issue_mutation_1 = require("./issue-mutation");
7
- exports.entities = [issue_1.Issue];
8
- exports.resolvers = [issue_query_1.IssueQuery, issue_mutation_1.IssueMutation];
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/issue/index.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAC/B,+CAA0C;AAC1C,qDAAgD;AAEnC,QAAA,QAAQ,GAAG,CAAC,aAAK,CAAC,CAAA;AAClB,QAAA,SAAS,GAAG,CAAC,wBAAU,EAAE,8BAAa,CAAC,CAAA","sourcesContent":["import { Issue } from './issue'\nimport { IssueQuery } from './issue-query'\nimport { IssueMutation } from './issue-mutation'\n\nexport const entities = [Issue]\nexport const resolvers = [IssueQuery, IssueMutation]\n"]}
@@ -1,10 +0,0 @@
1
- import { Issue } from './issue';
2
- import { NewIssue, IssuePatch } from './issue-type';
3
- export declare class IssueMutation {
4
- createIssue(issue: NewIssue, context: ResolverContext): Promise<Issue>;
5
- updateIssue(id: string, patch: IssuePatch, context: ResolverContext): Promise<Issue>;
6
- updateMultipleIssue(patches: IssuePatch[], context: ResolverContext): Promise<Issue[]>;
7
- deleteIssue(id: string, context: ResolverContext): Promise<boolean>;
8
- deleteIssues(ids: string[], context: ResolverContext): Promise<boolean>;
9
- importIssues(issues: IssuePatch[], context: ResolverContext): Promise<boolean>;
10
- }
@@ -1,167 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IssueMutation = void 0;
4
- const tslib_1 = require("tslib");
5
- const type_graphql_1 = require("type-graphql");
6
- const typeorm_1 = require("typeorm");
7
- const attachment_base_1 = require("@things-factory/attachment-base");
8
- const issue_1 = require("./issue");
9
- const issue_type_1 = require("./issue-type");
10
- let IssueMutation = class IssueMutation {
11
- async createIssue(issue, context) {
12
- const { domain, user, tx } = context.state;
13
- const result = await tx.getRepository(issue_1.Issue).save(Object.assign(Object.assign({}, issue), { domain, creator: user, updater: user }));
14
- if (issue.thumbnail) {
15
- await (0, attachment_base_1.createAttachment)(null, {
16
- attachment: {
17
- file: issue.thumbnail,
18
- refType: issue_1.Issue.name,
19
- refBy: result.id
20
- }
21
- }, context);
22
- }
23
- return result;
24
- }
25
- async updateIssue(id, patch, context) {
26
- const { user, tx } = context.state;
27
- const repository = tx.getRepository(issue_1.Issue);
28
- const issue = await repository.findOne({
29
- where: { id }
30
- });
31
- const result = await repository.save(Object.assign(Object.assign(Object.assign({}, issue), patch), { updater: user }));
32
- if (patch.thumbnail) {
33
- await (0, attachment_base_1.deleteAttachmentsByRef)(null, { refBys: [result.id] }, context);
34
- await (0, attachment_base_1.createAttachment)(null, {
35
- attachment: {
36
- file: patch.thumbnail,
37
- refType: issue_1.Issue.name,
38
- refBy: result.id
39
- }
40
- }, context);
41
- }
42
- return result;
43
- }
44
- async updateMultipleIssue(patches, context) {
45
- const { domain, user, tx } = context.state;
46
- let results = [];
47
- const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
48
- const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
49
- const issueRepo = tx.getRepository(issue_1.Issue);
50
- if (_createRecords.length > 0) {
51
- for (let i = 0; i < _createRecords.length; i++) {
52
- const newRecord = _createRecords[i];
53
- const result = await issueRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
54
- if (newRecord.thumbnail) {
55
- await (0, attachment_base_1.createAttachment)(null, {
56
- attachment: {
57
- file: newRecord.thumbnail,
58
- refType: issue_1.Issue.name,
59
- refBy: result.id
60
- }
61
- }, context);
62
- }
63
- results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
64
- }
65
- }
66
- if (_updateRecords.length > 0) {
67
- for (let i = 0; i < _updateRecords.length; i++) {
68
- const updateRecord = _updateRecords[i];
69
- const issue = await issueRepo.findOneBy({ id: updateRecord.id });
70
- const result = await issueRepo.save(Object.assign(Object.assign(Object.assign({}, issue), updateRecord), { updater: user }));
71
- if (updateRecord.thumbnail) {
72
- await (0, attachment_base_1.deleteAttachmentsByRef)(null, { refBys: [result.id] }, context);
73
- await (0, attachment_base_1.createAttachment)(null, {
74
- attachment: {
75
- file: updateRecord.thumbnail,
76
- refType: issue_1.Issue.name,
77
- refBy: result.id
78
- }
79
- }, context);
80
- }
81
- results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
82
- }
83
- }
84
- return results;
85
- }
86
- async deleteIssue(id, context) {
87
- const { tx } = context.state;
88
- await tx.getRepository(issue_1.Issue).delete({ id });
89
- await (0, attachment_base_1.deleteAttachmentsByRef)(null, { refBys: [id] }, context);
90
- return true;
91
- }
92
- async deleteIssues(ids, context) {
93
- const { tx } = context.state;
94
- await tx.getRepository(issue_1.Issue).delete({
95
- id: (0, typeorm_1.In)(ids)
96
- });
97
- await (0, attachment_base_1.deleteAttachmentsByRef)(null, { refBys: ids }, context);
98
- return true;
99
- }
100
- async importIssues(issues, context) {
101
- const { domain, tx } = context.state;
102
- await Promise.all(issues.map(async (issue) => {
103
- const createdIssue = await tx.getRepository(issue_1.Issue).save(Object.assign({ domain }, issue));
104
- }));
105
- return true;
106
- }
107
- };
108
- exports.IssueMutation = IssueMutation;
109
- tslib_1.__decorate([
110
- (0, type_graphql_1.Directive)('@transaction'),
111
- (0, type_graphql_1.Mutation)(returns => issue_1.Issue, { description: 'To create new Issue' }),
112
- tslib_1.__param(0, (0, type_graphql_1.Arg)('issue')),
113
- tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
114
- tslib_1.__metadata("design:type", Function),
115
- tslib_1.__metadata("design:paramtypes", [issue_type_1.NewIssue, Object]),
116
- tslib_1.__metadata("design:returntype", Promise)
117
- ], IssueMutation.prototype, "createIssue", null);
118
- tslib_1.__decorate([
119
- (0, type_graphql_1.Directive)('@transaction'),
120
- (0, type_graphql_1.Mutation)(returns => issue_1.Issue, { description: 'To modify Issue information' }),
121
- tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
122
- tslib_1.__param(1, (0, type_graphql_1.Arg)('patch')),
123
- tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
124
- tslib_1.__metadata("design:type", Function),
125
- tslib_1.__metadata("design:paramtypes", [String, issue_type_1.IssuePatch, Object]),
126
- tslib_1.__metadata("design:returntype", Promise)
127
- ], IssueMutation.prototype, "updateIssue", null);
128
- tslib_1.__decorate([
129
- (0, type_graphql_1.Directive)('@transaction'),
130
- (0, type_graphql_1.Mutation)(returns => [issue_1.Issue], { description: "To modify multiple Issues' information" }),
131
- tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [issue_type_1.IssuePatch])),
132
- tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
133
- tslib_1.__metadata("design:type", Function),
134
- tslib_1.__metadata("design:paramtypes", [Array, Object]),
135
- tslib_1.__metadata("design:returntype", Promise)
136
- ], IssueMutation.prototype, "updateMultipleIssue", null);
137
- tslib_1.__decorate([
138
- (0, type_graphql_1.Directive)('@transaction'),
139
- (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete Issue' }),
140
- tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
141
- tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
142
- tslib_1.__metadata("design:type", Function),
143
- tslib_1.__metadata("design:paramtypes", [String, Object]),
144
- tslib_1.__metadata("design:returntype", Promise)
145
- ], IssueMutation.prototype, "deleteIssue", null);
146
- tslib_1.__decorate([
147
- (0, type_graphql_1.Directive)('@transaction'),
148
- (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple Issues' }),
149
- tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
150
- tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
151
- tslib_1.__metadata("design:type", Function),
152
- tslib_1.__metadata("design:paramtypes", [Array, Object]),
153
- tslib_1.__metadata("design:returntype", Promise)
154
- ], IssueMutation.prototype, "deleteIssues", null);
155
- tslib_1.__decorate([
156
- (0, type_graphql_1.Directive)('@transaction'),
157
- (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To import multiple Issues' }),
158
- tslib_1.__param(0, (0, type_graphql_1.Arg)('issues', type => [issue_type_1.IssuePatch])),
159
- tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
160
- tslib_1.__metadata("design:type", Function),
161
- tslib_1.__metadata("design:paramtypes", [Array, Object]),
162
- tslib_1.__metadata("design:returntype", Promise)
163
- ], IssueMutation.prototype, "importIssues", null);
164
- exports.IssueMutation = IssueMutation = tslib_1.__decorate([
165
- (0, type_graphql_1.Resolver)(issue_1.Issue)
166
- ], IssueMutation);
167
- //# sourceMappingURL=issue-mutation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"issue-mutation.js","sourceRoot":"","sources":["../../../server/service/issue/issue-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAE5B,qEAA0F;AAE1F,mCAA+B;AAC/B,6CAAmD;AAG5C,IAAM,aAAa,GAAnB,MAAM,aAAa;IAGlB,AAAN,KAAK,CAAC,WAAW,CAAe,KAAe,EAAS,OAAwB;QAC9E,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,aAAK,CAAC,CAAC,IAAI,iCAC5C,KAAK,KACR,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;QAEF,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;YACpB,MAAM,IAAA,kCAAgB,EACpB,IAAI,EACJ;gBACE,UAAU,EAAE;oBACV,IAAI,EAAE,KAAK,CAAC,SAAS;oBACrB,OAAO,EAAE,aAAK,CAAC,IAAI;oBACnB,KAAK,EAAE,MAAM,CAAC,EAAE;iBACjB;aACF,EACD,OAAO,CACR,CAAA;QACH,CAAC;QAED,OAAO,MAAM,CAAA;IACf,CAAC;IAIK,AAAN,KAAK,CAAC,WAAW,CACJ,E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AAE,IAAI,CAAC,EAAE,CAAC,CAAC,uBAAU,CAAC,CAAC,CAAA;IACpC,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;wDAqEP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IAC9C,mBAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;gDAO9C;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;IAExE,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAC5B,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;iDAWP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;IAExE,mBAAA,IAAA,kBAAG,EAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,uBAAU,CAAC,CAAC,CAAA;IACnC,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;iDAWP;wBA1LU,aAAa;IADzB,IAAA,uBAAQ,EAAC,aAAK,CAAC;GACH,aAAa,CA2LzB","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\n\nimport { createAttachment, deleteAttachmentsByRef } from '@things-factory/attachment-base'\n\nimport { Issue } from './issue'\nimport { NewIssue, IssuePatch } from './issue-type'\n\n@Resolver(Issue)\nexport class IssueMutation {\n @Directive('@transaction')\n @Mutation(returns => Issue, { description: 'To create new Issue' })\n async createIssue(@Arg('issue') issue: NewIssue, @Ctx() context: ResolverContext): Promise<Issue> {\n const { domain, user, tx } = context.state\n\n const result = await tx.getRepository(Issue).save({\n ...issue,\n domain,\n creator: user,\n updater: user\n })\n\n if (issue.thumbnail) {\n await createAttachment(\n null,\n {\n attachment: {\n file: issue.thumbnail,\n refType: Issue.name,\n refBy: result.id\n }\n },\n context\n )\n }\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => Issue, { description: 'To modify Issue information' })\n async updateIssue(\n @Arg('id') id: string,\n @Arg('patch') patch: IssuePatch,\n @Ctx() context: ResolverContext\n ): Promise<Issue> {\n const { user, tx } = context.state\n\n const repository = tx.getRepository(Issue)\n const issue = await repository.findOne({\n where: { id }\n })\n\n const result = await repository.save({\n ...issue,\n ...patch,\n updater: user\n })\n\n if (patch.thumbnail) {\n await deleteAttachmentsByRef(null, { refBys: [result.id] }, context)\n await createAttachment(\n null,\n {\n attachment: {\n file: patch.thumbnail,\n refType: Issue.name,\n refBy: result.id\n }\n },\n context\n )\n }\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => [Issue], { description: \"To modify multiple Issues' information\" })\n async updateMultipleIssue(\n @Arg('patches', type => [IssuePatch]) patches: IssuePatch[],\n @Ctx() context: ResolverContext\n ): Promise<Issue[]> {\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 issueRepo = tx.getRepository(Issue)\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 issueRepo.save({\n ...newRecord,\n domain,\n creator: user,\n updater: user\n })\n\n if (newRecord.thumbnail) {\n await createAttachment(\n null,\n {\n attachment: {\n file: newRecord.thumbnail,\n refType: Issue.name,\n refBy: result.id\n }\n },\n context\n )\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 issue = await issueRepo.findOneBy({ id: updateRecord.id })\n\n const result = await issueRepo.save({\n ...issue,\n ...updateRecord,\n updater: user\n })\n\n if (updateRecord.thumbnail) {\n await deleteAttachmentsByRef(null, { refBys: [result.id] }, context)\n await createAttachment(\n null,\n {\n attachment: {\n file: updateRecord.thumbnail,\n refType: Issue.name,\n refBy: result.id\n }\n },\n context\n )\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 Issue' })\n async deleteIssue(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<boolean> {\n const { tx } = context.state\n\n await tx.getRepository(Issue).delete({ id })\n await deleteAttachmentsByRef(null, { refBys: [id] }, context)\n\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete multiple Issues' })\n async deleteIssues(\n @Arg('ids', type => [String]) ids: string[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { tx } = context.state\n\n await tx.getRepository(Issue).delete({\n id: In(ids)\n })\n\n await deleteAttachmentsByRef(null, { refBys: ids }, context)\n\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To import multiple Issues' })\n async importIssues(\n @Arg('issues', type => [IssuePatch]) issues: IssuePatch[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { domain, tx } = context.state\n\n await Promise.all(\n issues.map(async (issue: IssuePatch) => {\n const createdIssue: Issue = await tx.getRepository(Issue).save({ domain, ...issue })\n })\n )\n\n return true\n }\n}\n"]}
@@ -1,12 +0,0 @@
1
- import { Domain, ListParam } from '@things-factory/shell';
2
- import { User } from '@things-factory/auth-base';
3
- import { Issue } from './issue';
4
- import { IssueList } from './issue-type';
5
- export declare class IssueQuery {
6
- issue(id: string): Promise<Issue>;
7
- issues(params: ListParam): Promise<IssueList>;
8
- thumbnail(issue: Issue): Promise<string | undefined>;
9
- domain(issue: Issue): Promise<Domain>;
10
- updater(issue: Issue): Promise<User>;
11
- creator(issue: Issue): Promise<User>;
12
- }