@dssp/supervision 1.0.0-y.0 → 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 (382) hide show
  1. package/package.json +14 -12
  2. package/things-factory.config.js +7 -1
  3. package/dist-client/bootstrap.d.ts +0 -1
  4. package/dist-client/bootstrap.js +0 -2
  5. package/dist-client/bootstrap.js.map +0 -1
  6. package/dist-client/graphql/building-inspection.d.ts +0 -1
  7. package/dist-client/graphql/building-inspection.js +0 -100
  8. package/dist-client/graphql/building-inspection.js.map +0 -1
  9. package/dist-client/index.d.ts +0 -0
  10. package/dist-client/index.js +0 -2
  11. package/dist-client/index.js.map +0 -1
  12. package/dist-client/pages/action-plan/action-plan-importer.d.ts +0 -10
  13. package/dist-client/pages/action-plan/action-plan-importer.js +0 -101
  14. package/dist-client/pages/action-plan/action-plan-importer.js.map +0 -1
  15. package/dist-client/pages/action-plan/action-plan-list-page.d.ts +0 -63
  16. package/dist-client/pages/action-plan/action-plan-list-page.js +0 -323
  17. package/dist-client/pages/action-plan/action-plan-list-page.js.map +0 -1
  18. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +0 -22
  19. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +0 -169
  20. package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +0 -1
  21. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +0 -57
  22. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +0 -825
  23. package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +0 -1
  24. package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +0 -27
  25. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +0 -341
  26. package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +0 -1
  27. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +0 -29
  28. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +0 -315
  29. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +0 -1
  30. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +0 -36
  31. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +0 -368
  32. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +0 -1
  33. package/dist-client/pages/building-inspection/building-inspection-list.d.ts +0 -90
  34. package/dist-client/pages/building-inspection/building-inspection-list.js +0 -904
  35. package/dist-client/pages/building-inspection/building-inspection-list.js.map +0 -1
  36. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +0 -4
  37. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +0 -233
  38. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +0 -1
  39. package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +0 -27
  40. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +0 -542
  41. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +0 -1
  42. package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +0 -15
  43. package/dist-client/pages/building-inspection/component/image-preview-popup.js +0 -351
  44. package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +0 -1
  45. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +0 -20
  46. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +0 -432
  47. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +0 -1
  48. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +0 -30
  49. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +0 -479
  50. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +0 -1
  51. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +0 -27
  52. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +0 -416
  53. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +0 -1
  54. package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +0 -8
  55. package/dist-client/pages/building-inspection/component/inspection-event-provider.js +0 -93
  56. package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +0 -1
  57. package/dist-client/pages/building-inspection/inspection-create-popup.d.ts +0 -3
  58. package/dist-client/pages/building-inspection/inspection-create-popup.js +0 -840
  59. package/dist-client/pages/building-inspection/inspection-create-popup.js.map +0 -1
  60. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +0 -60
  61. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +0 -1132
  62. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +0 -1
  63. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +0 -2
  64. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +0 -740
  65. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +0 -1
  66. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +0 -19
  67. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +0 -205
  68. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +0 -1
  69. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +0 -1
  70. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +0 -304
  71. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +0 -1
  72. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +0 -15
  73. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +0 -430
  74. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +0 -1
  75. package/dist-client/pages/checklist/attachment-list-popup.d.ts +0 -3
  76. package/dist-client/pages/checklist/attachment-list-popup.js +0 -493
  77. package/dist-client/pages/checklist/attachment-list-popup.js.map +0 -1
  78. package/dist-client/pages/checklist/checklist-view.d.ts +0 -15
  79. package/dist-client/pages/checklist/checklist-view.js +0 -738
  80. package/dist-client/pages/checklist/checklist-view.js.map +0 -1
  81. package/dist-client/pages/checklist/comment-list-popup.d.ts +0 -1
  82. package/dist-client/pages/checklist/comment-list-popup.js +0 -368
  83. package/dist-client/pages/checklist/comment-list-popup.js.map +0 -1
  84. package/dist-client/pages/checklist/file-preview-popup.d.ts +0 -1
  85. package/dist-client/pages/checklist/file-preview-popup.js +0 -77
  86. package/dist-client/pages/checklist/file-preview-popup.js.map +0 -1
  87. package/dist-client/pages/checklist/inspection-info-popup.d.ts +0 -50
  88. package/dist-client/pages/checklist/inspection-info-popup.js +0 -684
  89. package/dist-client/pages/checklist/inspection-info-popup.js.map +0 -1
  90. package/dist-client/pages/checklist/inspection-tab-popup.d.ts +0 -18
  91. package/dist-client/pages/checklist/inspection-tab-popup.js +0 -196
  92. package/dist-client/pages/checklist/inspection-tab-popup.js.map +0 -1
  93. package/dist-client/pages/checklist-template/checklist-template-item.d.ts +0 -2
  94. package/dist-client/pages/checklist-template/checklist-template-item.js +0 -253
  95. package/dist-client/pages/checklist-template/checklist-template-item.js.map +0 -1
  96. package/dist-client/pages/checklist-template/checklist-template-list.d.ts +0 -53
  97. package/dist-client/pages/checklist-template/checklist-template-list.js +0 -349
  98. package/dist-client/pages/checklist-template/checklist-template-list.js.map +0 -1
  99. package/dist-client/pages/checklist-template/checklist-type-management.d.ts +0 -55
  100. package/dist-client/pages/checklist-template/checklist-type-management.js +0 -250
  101. package/dist-client/pages/checklist-template/checklist-type-management.js.map +0 -1
  102. package/dist-client/pages/issue/issue-importer.d.ts +0 -10
  103. package/dist-client/pages/issue/issue-importer.js +0 -101
  104. package/dist-client/pages/issue/issue-importer.js.map +0 -1
  105. package/dist-client/pages/issue/issue-list-page.d.ts +0 -63
  106. package/dist-client/pages/issue/issue-list-page.js +0 -323
  107. package/dist-client/pages/issue/issue-list-page.js.map +0 -1
  108. package/dist-client/pages/project-report/project-report-importer.d.ts +0 -10
  109. package/dist-client/pages/project-report/project-report-importer.js +0 -101
  110. package/dist-client/pages/project-report/project-report-importer.js.map +0 -1
  111. package/dist-client/pages/project-report/project-report-list-page.d.ts +0 -63
  112. package/dist-client/pages/project-report/project-report-list-page.js +0 -323
  113. package/dist-client/pages/project-report/project-report-list-page.js.map +0 -1
  114. package/dist-client/pages/supervisor/supervisor-importer.d.ts +0 -10
  115. package/dist-client/pages/supervisor/supervisor-importer.js +0 -101
  116. package/dist-client/pages/supervisor/supervisor-importer.js.map +0 -1
  117. package/dist-client/pages/supervisor/supervisor-list-page.d.ts +0 -63
  118. package/dist-client/pages/supervisor/supervisor-list-page.js +0 -323
  119. package/dist-client/pages/supervisor/supervisor-list-page.js.map +0 -1
  120. package/dist-client/route.d.ts +0 -1
  121. package/dist-client/route.js +0 -32
  122. package/dist-client/route.js.map +0 -1
  123. package/dist-client/stt/speech-to-text.d.ts +0 -36
  124. package/dist-client/stt/speech-to-text.js +0 -89
  125. package/dist-client/stt/speech-to-text.js.map +0 -1
  126. package/dist-client/stt/stt-utils.d.ts +0 -28
  127. package/dist-client/stt/stt-utils.js +0 -146
  128. package/dist-client/stt/stt-utils.js.map +0 -1
  129. package/dist-client/tsconfig.tsbuildinfo +0 -1
  130. package/dist-server/controllers/index.d.ts +0 -0
  131. package/dist-server/controllers/index.js +0 -1
  132. package/dist-server/controllers/index.js.map +0 -1
  133. package/dist-server/index.d.ts +0 -3
  134. package/dist-server/index.js +0 -7
  135. package/dist-server/index.js.map +0 -1
  136. package/dist-server/middlewares/index.d.ts +0 -1
  137. package/dist-server/middlewares/index.js +0 -7
  138. package/dist-server/middlewares/index.js.map +0 -1
  139. package/dist-server/migrations/index.d.ts +0 -1
  140. package/dist-server/migrations/index.js +0 -12
  141. package/dist-server/migrations/index.js.map +0 -1
  142. package/dist-server/routes.d.ts +0 -0
  143. package/dist-server/routes.js +0 -25
  144. package/dist-server/routes.js.map +0 -1
  145. package/dist-server/service/action-plan/action-plan-mutation.d.ts +0 -10
  146. package/dist-server/service/action-plan/action-plan-mutation.js +0 -168
  147. package/dist-server/service/action-plan/action-plan-mutation.js.map +0 -1
  148. package/dist-server/service/action-plan/action-plan-query.d.ts +0 -12
  149. package/dist-server/service/action-plan/action-plan-query.js +0 -97
  150. package/dist-server/service/action-plan/action-plan-query.js.map +0 -1
  151. package/dist-server/service/action-plan/action-plan-type.d.ts +0 -23
  152. package/dist-server/service/action-plan/action-plan-type.js +0 -86
  153. package/dist-server/service/action-plan/action-plan-type.js.map +0 -1
  154. package/dist-server/service/action-plan/action-plan.d.ts +0 -27
  155. package/dist-server/service/action-plan/action-plan.js +0 -116
  156. package/dist-server/service/action-plan/action-plan.js.map +0 -1
  157. package/dist-server/service/action-plan/index.d.ts +0 -5
  158. package/dist-server/service/action-plan/index.js +0 -9
  159. package/dist-server/service/action-plan/index.js.map +0 -1
  160. package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +0 -9
  161. package/dist-server/service/building-inspection/building-inspection-mutation.js +0 -370
  162. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +0 -1
  163. package/dist-server/service/building-inspection/building-inspection-query.d.ts +0 -20
  164. package/dist-server/service/building-inspection/building-inspection-query.js +0 -277
  165. package/dist-server/service/building-inspection/building-inspection-query.js.map +0 -1
  166. package/dist-server/service/building-inspection/building-inspection-type.d.ts +0 -80
  167. package/dist-server/service/building-inspection/building-inspection-type.js +0 -296
  168. package/dist-server/service/building-inspection/building-inspection-type.js.map +0 -1
  169. package/dist-server/service/building-inspection/building-inspection.d.ts +0 -41
  170. package/dist-server/service/building-inspection/building-inspection.js +0 -168
  171. package/dist-server/service/building-inspection/building-inspection.js.map +0 -1
  172. package/dist-server/service/building-inspection/index.d.ts +0 -7
  173. package/dist-server/service/building-inspection/index.js +0 -19
  174. package/dist-server/service/building-inspection/index.js.map +0 -1
  175. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +0 -6
  176. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +0 -56
  177. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +0 -1
  178. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +0 -16
  179. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +0 -171
  180. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +0 -1
  181. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +0 -23
  182. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +0 -90
  183. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +0 -1
  184. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +0 -33
  185. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +0 -132
  186. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +0 -1
  187. package/dist-server/service/building-inspection-daily-worklog/index.d.ts +0 -5
  188. package/dist-server/service/building-inspection-daily-worklog/index.js +0 -9
  189. package/dist-server/service/building-inspection-daily-worklog/index.js.map +0 -1
  190. package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +0 -16
  191. package/dist-server/service/building-inspection-history/building-inspection-history-query.js +0 -120
  192. package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +0 -1
  193. package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +0 -5
  194. package/dist-server/service/building-inspection-history/building-inspection-history-type.js +0 -21
  195. package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +0 -1
  196. package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +0 -34
  197. package/dist-server/service/building-inspection-history/building-inspection-history.js +0 -157
  198. package/dist-server/service/building-inspection-history/building-inspection-history.js.map +0 -1
  199. package/dist-server/service/building-inspection-history/event-subscriber.d.ts +0 -7
  200. package/dist-server/service/building-inspection-history/event-subscriber.js +0 -21
  201. package/dist-server/service/building-inspection-history/event-subscriber.js.map +0 -1
  202. package/dist-server/service/building-inspection-history/index.d.ts +0 -6
  203. package/dist-server/service/building-inspection-history/index.js +0 -10
  204. package/dist-server/service/building-inspection-history/index.js.map +0 -1
  205. package/dist-server/service/checklist/checklist-mutation.d.ts +0 -3
  206. package/dist-server/service/checklist/checklist-mutation.js +0 -30
  207. package/dist-server/service/checklist/checklist-mutation.js.map +0 -1
  208. package/dist-server/service/checklist/checklist-query.d.ts +0 -21
  209. package/dist-server/service/checklist/checklist-query.js +0 -177
  210. package/dist-server/service/checklist/checklist-query.js.map +0 -1
  211. package/dist-server/service/checklist/checklist-type.d.ts +0 -5
  212. package/dist-server/service/checklist/checklist-type.js +0 -21
  213. package/dist-server/service/checklist/checklist-type.js.map +0 -1
  214. package/dist-server/service/checklist/checklist.d.ts +0 -66
  215. package/dist-server/service/checklist/checklist.js +0 -259
  216. package/dist-server/service/checklist/checklist.js.map +0 -1
  217. package/dist-server/service/checklist/event-subscriber.d.ts +0 -7
  218. package/dist-server/service/checklist/event-subscriber.js +0 -21
  219. package/dist-server/service/checklist/event-subscriber.js.map +0 -1
  220. package/dist-server/service/checklist/index.d.ts +0 -5
  221. package/dist-server/service/checklist/index.js +0 -9
  222. package/dist-server/service/checklist/index.js.map +0 -1
  223. package/dist-server/service/checklist-history/checklist-history-query.d.ts +0 -11
  224. package/dist-server/service/checklist-history/checklist-history-query.js +0 -77
  225. package/dist-server/service/checklist-history/checklist-history-query.js.map +0 -1
  226. package/dist-server/service/checklist-history/checklist-history-type.d.ts +0 -5
  227. package/dist-server/service/checklist-history/checklist-history-type.js +0 -21
  228. package/dist-server/service/checklist-history/checklist-history-type.js.map +0 -1
  229. package/dist-server/service/checklist-history/checklist-history.d.ts +0 -50
  230. package/dist-server/service/checklist-history/checklist-history.js +0 -239
  231. package/dist-server/service/checklist-history/checklist-history.js.map +0 -1
  232. package/dist-server/service/checklist-history/event-subscriber.d.ts +0 -7
  233. package/dist-server/service/checklist-history/event-subscriber.js +0 -21
  234. package/dist-server/service/checklist-history/event-subscriber.js.map +0 -1
  235. package/dist-server/service/checklist-history/index.d.ts +0 -6
  236. package/dist-server/service/checklist-history/index.js +0 -10
  237. package/dist-server/service/checklist-history/index.js.map +0 -1
  238. package/dist-server/service/checklist-item/checklist-item-mutation.d.ts +0 -2
  239. package/dist-server/service/checklist-item/checklist-item-mutation.js +0 -13
  240. package/dist-server/service/checklist-item/checklist-item-mutation.js.map +0 -1
  241. package/dist-server/service/checklist-item/checklist-item-query.d.ts +0 -18
  242. package/dist-server/service/checklist-item/checklist-item-query.js +0 -138
  243. package/dist-server/service/checklist-item/checklist-item-query.js.map +0 -1
  244. package/dist-server/service/checklist-item/checklist-item-type.d.ts +0 -5
  245. package/dist-server/service/checklist-item/checklist-item-type.js +0 -21
  246. package/dist-server/service/checklist-item/checklist-item-type.js.map +0 -1
  247. package/dist-server/service/checklist-item/checklist-item.d.ts +0 -27
  248. package/dist-server/service/checklist-item/checklist-item.js +0 -114
  249. package/dist-server/service/checklist-item/checklist-item.js.map +0 -1
  250. package/dist-server/service/checklist-item/index.d.ts +0 -4
  251. package/dist-server/service/checklist-item/index.js +0 -9
  252. package/dist-server/service/checklist-item/index.js.map +0 -1
  253. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.d.ts +0 -16
  254. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js +0 -83
  255. package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js.map +0 -1
  256. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +0 -8
  257. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +0 -114
  258. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +0 -1
  259. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.d.ts +0 -7
  260. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +0 -49
  261. package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +0 -1
  262. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.d.ts +0 -14
  263. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +0 -53
  264. package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +0 -1
  265. package/dist-server/service/checklist-item-comment/checklist-item-comment.d.ts +0 -12
  266. package/dist-server/service/checklist-item-comment/checklist-item-comment.js +0 -57
  267. package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +0 -1
  268. package/dist-server/service/checklist-item-comment/index.d.ts +0 -5
  269. package/dist-server/service/checklist-item-comment/index.js +0 -10
  270. package/dist-server/service/checklist-item-comment/index.js.map +0 -1
  271. package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +0 -16
  272. package/dist-server/service/checklist-item-history/checklist-item-history-query.js +0 -123
  273. package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +0 -1
  274. package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +0 -5
  275. package/dist-server/service/checklist-item-history/checklist-item-history-type.js +0 -21
  276. package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +0 -1
  277. package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +0 -25
  278. package/dist-server/service/checklist-item-history/checklist-item-history.js +0 -123
  279. package/dist-server/service/checklist-item-history/checklist-item-history.js.map +0 -1
  280. package/dist-server/service/checklist-item-history/event-subscriber.d.ts +0 -7
  281. package/dist-server/service/checklist-item-history/event-subscriber.js +0 -21
  282. package/dist-server/service/checklist-item-history/event-subscriber.js.map +0 -1
  283. package/dist-server/service/checklist-item-history/index.d.ts +0 -6
  284. package/dist-server/service/checklist-item-history/index.js +0 -10
  285. package/dist-server/service/checklist-item-history/index.js.map +0 -1
  286. package/dist-server/service/checklist-template/checklist-template-mutation.d.ts +0 -6
  287. package/dist-server/service/checklist-template/checklist-template-mutation.js +0 -64
  288. package/dist-server/service/checklist-template/checklist-template-mutation.js.map +0 -1
  289. package/dist-server/service/checklist-template/checklist-template-query.d.ts +0 -10
  290. package/dist-server/service/checklist-template/checklist-template-query.js +0 -65
  291. package/dist-server/service/checklist-template/checklist-template-query.js.map +0 -1
  292. package/dist-server/service/checklist-template/checklist-template-type.d.ts +0 -10
  293. package/dist-server/service/checklist-template/checklist-template-type.js +0 -39
  294. package/dist-server/service/checklist-template/checklist-template-type.js.map +0 -1
  295. package/dist-server/service/checklist-template/checklist-template.d.ts +0 -17
  296. package/dist-server/service/checklist-template/checklist-template.js +0 -78
  297. package/dist-server/service/checklist-template/checklist-template.js.map +0 -1
  298. package/dist-server/service/checklist-template/index.d.ts +0 -5
  299. package/dist-server/service/checklist-template/index.js +0 -9
  300. package/dist-server/service/checklist-template/index.js.map +0 -1
  301. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.d.ts +0 -7
  302. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +0 -71
  303. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +0 -1
  304. package/dist-server/service/checklist-template-item/checklist-template-item-query.d.ts +0 -11
  305. package/dist-server/service/checklist-template-item/checklist-template-item-query.js +0 -78
  306. package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +0 -1
  307. package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +0 -18
  308. package/dist-server/service/checklist-template-item/checklist-template-item-type.js +0 -65
  309. package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +0 -1
  310. package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +0 -25
  311. package/dist-server/service/checklist-template-item/checklist-template-item.js +0 -101
  312. package/dist-server/service/checklist-template-item/checklist-template-item.js.map +0 -1
  313. package/dist-server/service/checklist-template-item/index.d.ts +0 -5
  314. package/dist-server/service/checklist-template-item/index.js +0 -9
  315. package/dist-server/service/checklist-template-item/index.js.map +0 -1
  316. package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +0 -2
  317. package/dist-server/service/checklist-template-item/spec-matching-service.js +0 -50
  318. package/dist-server/service/checklist-template-item/spec-matching-service.js.map +0 -1
  319. package/dist-server/service/checklist-type/checklist-type-mutation.d.ts +0 -6
  320. package/dist-server/service/checklist-type/checklist-type-mutation.js +0 -64
  321. package/dist-server/service/checklist-type/checklist-type-mutation.js.map +0 -1
  322. package/dist-server/service/checklist-type/checklist-type-query.d.ts +0 -10
  323. package/dist-server/service/checklist-type/checklist-type-query.js +0 -65
  324. package/dist-server/service/checklist-type/checklist-type-query.js.map +0 -1
  325. package/dist-server/service/checklist-type/checklist-type-type.d.ts +0 -11
  326. package/dist-server/service/checklist-type/checklist-type-type.js +0 -43
  327. package/dist-server/service/checklist-type/checklist-type-type.js.map +0 -1
  328. package/dist-server/service/checklist-type/checklist-type.d.ts +0 -19
  329. package/dist-server/service/checklist-type/checklist-type.js +0 -78
  330. package/dist-server/service/checklist-type/checklist-type.js.map +0 -1
  331. package/dist-server/service/checklist-type/index.d.ts +0 -5
  332. package/dist-server/service/checklist-type/index.js +0 -9
  333. package/dist-server/service/checklist-type/index.js.map +0 -1
  334. package/dist-server/service/index.d.ts +0 -18
  335. package/dist-server/service/index.js +0 -78
  336. package/dist-server/service/index.js.map +0 -1
  337. package/dist-server/service/issue/index.d.ts +0 -5
  338. package/dist-server/service/issue/index.js +0 -9
  339. package/dist-server/service/issue/index.js.map +0 -1
  340. package/dist-server/service/issue/issue-mutation.d.ts +0 -10
  341. package/dist-server/service/issue/issue-mutation.js +0 -168
  342. package/dist-server/service/issue/issue-mutation.js.map +0 -1
  343. package/dist-server/service/issue/issue-query.d.ts +0 -12
  344. package/dist-server/service/issue/issue-query.js +0 -97
  345. package/dist-server/service/issue/issue-query.js.map +0 -1
  346. package/dist-server/service/issue/issue-type.d.ts +0 -23
  347. package/dist-server/service/issue/issue-type.js +0 -86
  348. package/dist-server/service/issue/issue-type.js.map +0 -1
  349. package/dist-server/service/issue/issue.d.ts +0 -26
  350. package/dist-server/service/issue/issue.js +0 -111
  351. package/dist-server/service/issue/issue.js.map +0 -1
  352. package/dist-server/service/project-report/index.d.ts +0 -5
  353. package/dist-server/service/project-report/index.js +0 -9
  354. package/dist-server/service/project-report/index.js.map +0 -1
  355. package/dist-server/service/project-report/project-report-mutation.d.ts +0 -10
  356. package/dist-server/service/project-report/project-report-mutation.js +0 -168
  357. package/dist-server/service/project-report/project-report-mutation.js.map +0 -1
  358. package/dist-server/service/project-report/project-report-query.d.ts +0 -12
  359. package/dist-server/service/project-report/project-report-query.js +0 -97
  360. package/dist-server/service/project-report/project-report-query.js.map +0 -1
  361. package/dist-server/service/project-report/project-report-type.d.ts +0 -23
  362. package/dist-server/service/project-report/project-report-type.js +0 -86
  363. package/dist-server/service/project-report/project-report-type.js.map +0 -1
  364. package/dist-server/service/project-report/project-report.d.ts +0 -28
  365. package/dist-server/service/project-report/project-report.js +0 -121
  366. package/dist-server/service/project-report/project-report.js.map +0 -1
  367. package/dist-server/service/supervisor/index.d.ts +0 -5
  368. package/dist-server/service/supervisor/index.js +0 -9
  369. package/dist-server/service/supervisor/index.js.map +0 -1
  370. package/dist-server/service/supervisor/supervisor-mutation.d.ts +0 -10
  371. package/dist-server/service/supervisor/supervisor-mutation.js +0 -168
  372. package/dist-server/service/supervisor/supervisor-mutation.js.map +0 -1
  373. package/dist-server/service/supervisor/supervisor-query.d.ts +0 -12
  374. package/dist-server/service/supervisor/supervisor-query.js +0 -97
  375. package/dist-server/service/supervisor/supervisor-query.js.map +0 -1
  376. package/dist-server/service/supervisor/supervisor-type.d.ts +0 -23
  377. package/dist-server/service/supervisor/supervisor-type.js +0 -86
  378. package/dist-server/service/supervisor/supervisor-type.js.map +0 -1
  379. package/dist-server/service/supervisor/supervisor.d.ts +0 -28
  380. package/dist-server/service/supervisor/supervisor.js +0 -121
  381. package/dist-server/service/supervisor/supervisor.js.map +0 -1
  382. package/dist-server/tsconfig.tsbuildinfo +0 -1
@@ -1,18 +0,0 @@
1
- import { ChecklistTemplateItem } from './checklist-template-item';
2
- import { ChecklistTypeMainType } from '../checklist-type/checklist-type';
3
- import { CriteriaRequestStatus } from './checklist-template-item';
4
- export declare class ChecklistTemplateItemPatch {
5
- id?: string;
6
- name?: string;
7
- inspctionCriteria?: string;
8
- criteriaRequestStatus?: CriteriaRequestStatus;
9
- sequence?: number;
10
- mainType?: ChecklistTypeMainType;
11
- detailType?: string;
12
- checklistTemplateId?: string;
13
- cuFlag?: string;
14
- }
15
- export declare class ChecklistTemplateItemList {
16
- items: ChecklistTemplateItem[];
17
- total: number;
18
- }
@@ -1,65 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChecklistTemplateItemList = exports.ChecklistTemplateItemPatch = void 0;
4
- const tslib_1 = require("tslib");
5
- const type_graphql_1 = require("type-graphql");
6
- const checklist_template_item_1 = require("./checklist-template-item");
7
- const checklist_type_1 = require("../checklist-type/checklist-type");
8
- const checklist_template_item_2 = require("./checklist-template-item");
9
- let ChecklistTemplateItemPatch = class ChecklistTemplateItemPatch {
10
- };
11
- exports.ChecklistTemplateItemPatch = ChecklistTemplateItemPatch;
12
- tslib_1.__decorate([
13
- (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
14
- tslib_1.__metadata("design:type", String)
15
- ], ChecklistTemplateItemPatch.prototype, "id", void 0);
16
- tslib_1.__decorate([
17
- (0, type_graphql_1.Field)({ nullable: true }),
18
- tslib_1.__metadata("design:type", String)
19
- ], ChecklistTemplateItemPatch.prototype, "name", void 0);
20
- tslib_1.__decorate([
21
- (0, type_graphql_1.Field)({ nullable: true }),
22
- tslib_1.__metadata("design:type", String)
23
- ], ChecklistTemplateItemPatch.prototype, "inspctionCriteria", void 0);
24
- tslib_1.__decorate([
25
- (0, type_graphql_1.Field)(type => checklist_template_item_2.CriteriaRequestStatus, { nullable: true }),
26
- tslib_1.__metadata("design:type", String)
27
- ], ChecklistTemplateItemPatch.prototype, "criteriaRequestStatus", void 0);
28
- tslib_1.__decorate([
29
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
30
- tslib_1.__metadata("design:type", Number)
31
- ], ChecklistTemplateItemPatch.prototype, "sequence", void 0);
32
- tslib_1.__decorate([
33
- (0, type_graphql_1.Field)({ nullable: true }),
34
- tslib_1.__metadata("design:type", String)
35
- ], ChecklistTemplateItemPatch.prototype, "mainType", void 0);
36
- tslib_1.__decorate([
37
- (0, type_graphql_1.Field)({ nullable: true }),
38
- tslib_1.__metadata("design:type", String)
39
- ], ChecklistTemplateItemPatch.prototype, "detailType", void 0);
40
- tslib_1.__decorate([
41
- (0, type_graphql_1.Field)({ nullable: true }),
42
- tslib_1.__metadata("design:type", String)
43
- ], ChecklistTemplateItemPatch.prototype, "checklistTemplateId", void 0);
44
- tslib_1.__decorate([
45
- (0, type_graphql_1.Field)({ nullable: true }),
46
- tslib_1.__metadata("design:type", String)
47
- ], ChecklistTemplateItemPatch.prototype, "cuFlag", void 0);
48
- exports.ChecklistTemplateItemPatch = ChecklistTemplateItemPatch = tslib_1.__decorate([
49
- (0, type_graphql_1.InputType)()
50
- ], ChecklistTemplateItemPatch);
51
- let ChecklistTemplateItemList = class ChecklistTemplateItemList {
52
- };
53
- exports.ChecklistTemplateItemList = ChecklistTemplateItemList;
54
- tslib_1.__decorate([
55
- (0, type_graphql_1.Field)(type => [checklist_template_item_1.ChecklistTemplateItem]),
56
- tslib_1.__metadata("design:type", Array)
57
- ], ChecklistTemplateItemList.prototype, "items", void 0);
58
- tslib_1.__decorate([
59
- (0, type_graphql_1.Field)(type => type_graphql_1.Int),
60
- tslib_1.__metadata("design:type", Number)
61
- ], ChecklistTemplateItemList.prototype, "total", void 0);
62
- exports.ChecklistTemplateItemList = ChecklistTemplateItemList = tslib_1.__decorate([
63
- (0, type_graphql_1.ObjectType)()
64
- ], ChecklistTemplateItemList);
65
- //# sourceMappingURL=checklist-template-item-type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checklist-template-item-type.js","sourceRoot":"","sources":["../../../server/service/checklist-template-item/checklist-template-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,uEAAiE;AACjE,qEAAwE;AACxE,uEAAiE;AAG1D,I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ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ChecklistTemplateItem } from './checklist-template-item'\nimport { ChecklistTypeMainType } from '../checklist-type/checklist-type'\nimport { CriteriaRequestStatus } from './checklist-template-item'\n\n@InputType()\nexport class ChecklistTemplateItemPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n inspctionCriteria?: string\n\n @Field(type => CriteriaRequestStatus, { nullable: true })\n criteriaRequestStatus?: CriteriaRequestStatus\n\n @Field(type => Int, { nullable: true })\n sequence?: number\n\n @Field({ nullable: true })\n mainType?: ChecklistTypeMainType\n\n @Field({ nullable: true })\n detailType?: string\n\n @Field({ nullable: true })\n checklistTemplateId?: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class ChecklistTemplateItemList {\n @Field(type => [ChecklistTemplateItem])\n items: ChecklistTemplateItem[]\n\n @Field(type => Int)\n total: number\n}\n"]}
@@ -1,25 +0,0 @@
1
- import { User } from '@things-factory/auth-base';
2
- import { ChecklistTemplate } from '../checklist-template/checklist-template';
3
- import { ChecklistTypeMainType } from '../checklist-type/checklist-type';
4
- export declare enum CriteriaRequestStatus {
5
- REQUEST = "10",
6
- SUCCESS = "20",
7
- FAIL = "30"
8
- }
9
- export declare class ChecklistTemplateItem {
10
- readonly id: string;
11
- name: string;
12
- inspctionCriteria?: string;
13
- criteriaRequestStatus?: CriteriaRequestStatus;
14
- sequence?: number;
15
- mainType: ChecklistTypeMainType;
16
- detailType: string;
17
- checklistTemplate?: ChecklistTemplate;
18
- checklistTemplateId?: string;
19
- createdAt?: Date;
20
- updatedAt?: Date;
21
- creator?: User;
22
- creatorId?: string;
23
- updater?: User;
24
- updaterId?: string;
25
- }
@@ -1,101 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChecklistTemplateItem = exports.CriteriaRequestStatus = void 0;
4
- const tslib_1 = require("tslib");
5
- const typeorm_1 = require("typeorm");
6
- const type_graphql_1 = require("type-graphql");
7
- const auth_base_1 = require("@things-factory/auth-base");
8
- const checklist_template_1 = require("../checklist-template/checklist-template");
9
- const checklist_type_1 = require("../checklist-type/checklist-type");
10
- var CriteriaRequestStatus;
11
- (function (CriteriaRequestStatus) {
12
- CriteriaRequestStatus["REQUEST"] = "10";
13
- CriteriaRequestStatus["SUCCESS"] = "20";
14
- CriteriaRequestStatus["FAIL"] = "30";
15
- })(CriteriaRequestStatus || (exports.CriteriaRequestStatus = CriteriaRequestStatus = {}));
16
- (0, type_graphql_1.registerEnumType)(CriteriaRequestStatus, {
17
- name: 'CriteriaRequestStatus',
18
- description: '검사 기준 API 요청 상태'
19
- });
20
- let ChecklistTemplateItem = class ChecklistTemplateItem {
21
- };
22
- exports.ChecklistTemplateItem = ChecklistTemplateItem;
23
- tslib_1.__decorate([
24
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
25
- (0, type_graphql_1.Field)(type => type_graphql_1.ID),
26
- tslib_1.__metadata("design:type", String)
27
- ], ChecklistTemplateItem.prototype, "id", void 0);
28
- tslib_1.__decorate([
29
- (0, typeorm_1.Column)({ nullable: false, comment: '검사 항목' }),
30
- (0, type_graphql_1.Field)({ nullable: false }),
31
- tslib_1.__metadata("design:type", String)
32
- ], ChecklistTemplateItem.prototype, "name", void 0);
33
- tslib_1.__decorate([
34
- (0, typeorm_1.Column)({ nullable: true, comment: '검사 기준' }),
35
- (0, type_graphql_1.Field)({ nullable: true }),
36
- tslib_1.__metadata("design:type", String)
37
- ], ChecklistTemplateItem.prototype, "inspctionCriteria", void 0);
38
- tslib_1.__decorate([
39
- (0, typeorm_1.Column)({ nullable: true, comment: '검사 기준 API 요청 상태 (10: API 요청, 20: 성공, 30: 실패)' }),
40
- (0, type_graphql_1.Field)(type => CriteriaRequestStatus, { nullable: true }),
41
- tslib_1.__metadata("design:type", String)
42
- ], ChecklistTemplateItem.prototype, "criteriaRequestStatus", void 0);
43
- tslib_1.__decorate([
44
- (0, typeorm_1.Column)({ nullable: true, comment: '시퀀스' }),
45
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
46
- tslib_1.__metadata("design:type", Number)
47
- ], ChecklistTemplateItem.prototype, "sequence", void 0);
48
- tslib_1.__decorate([
49
- (0, typeorm_1.Column)({ nullable: false, comment: '메인 구분 (10: 기본 업무, 20: 기본 외 업무)' }),
50
- (0, type_graphql_1.Field)({ nullable: false }),
51
- tslib_1.__metadata("design:type", String)
52
- ], ChecklistTemplateItem.prototype, "mainType", void 0);
53
- tslib_1.__decorate([
54
- (0, typeorm_1.Column)({ nullable: false, comment: '상세 구분 ID (F.K)' }),
55
- (0, type_graphql_1.Field)({ nullable: false }),
56
- tslib_1.__metadata("design:type", String)
57
- ], ChecklistTemplateItem.prototype, "detailType", void 0);
58
- tslib_1.__decorate([
59
- (0, typeorm_1.ManyToOne)(type => checklist_template_1.ChecklistTemplate),
60
- (0, type_graphql_1.Field)(type => checklist_template_1.ChecklistTemplate, { nullable: true }),
61
- tslib_1.__metadata("design:type", checklist_template_1.ChecklistTemplate)
62
- ], ChecklistTemplateItem.prototype, "checklistTemplate", void 0);
63
- tslib_1.__decorate([
64
- (0, typeorm_1.RelationId)((checklistTemplateItem) => checklistTemplateItem.checklistTemplate),
65
- tslib_1.__metadata("design:type", String)
66
- ], ChecklistTemplateItem.prototype, "checklistTemplateId", void 0);
67
- tslib_1.__decorate([
68
- (0, typeorm_1.CreateDateColumn)(),
69
- (0, type_graphql_1.Field)({ nullable: true }),
70
- tslib_1.__metadata("design:type", Date)
71
- ], ChecklistTemplateItem.prototype, "createdAt", void 0);
72
- tslib_1.__decorate([
73
- (0, typeorm_1.UpdateDateColumn)(),
74
- (0, type_graphql_1.Field)({ nullable: true }),
75
- tslib_1.__metadata("design:type", Date)
76
- ], ChecklistTemplateItem.prototype, "updatedAt", void 0);
77
- tslib_1.__decorate([
78
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
79
- (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
80
- tslib_1.__metadata("design:type", auth_base_1.User)
81
- ], ChecklistTemplateItem.prototype, "creator", void 0);
82
- tslib_1.__decorate([
83
- (0, typeorm_1.RelationId)((checklistTemplateItem) => checklistTemplateItem.creator),
84
- tslib_1.__metadata("design:type", String)
85
- ], ChecklistTemplateItem.prototype, "creatorId", void 0);
86
- tslib_1.__decorate([
87
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
88
- (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
89
- tslib_1.__metadata("design:type", auth_base_1.User)
90
- ], ChecklistTemplateItem.prototype, "updater", void 0);
91
- tslib_1.__decorate([
92
- (0, typeorm_1.RelationId)((checklistTemplateItem) => checklistTemplateItem.updater),
93
- tslib_1.__metadata("design:type", String)
94
- ], ChecklistTemplateItem.prototype, "updaterId", void 0);
95
- exports.ChecklistTemplateItem = ChecklistTemplateItem = tslib_1.__decorate([
96
- (0, typeorm_1.Entity)({ comment: '체크리스트 템플릿 아이템' }),
97
- (0, typeorm_1.Index)('ix_checklist_template_item_0', (cti) => [cti.checklistTemplate, cti.mainType, cti.detailType, cti.name], { unique: true }),
98
- (0, typeorm_1.Index)('ix_checklist_template_item_1', (cti) => [cti.detailType]),
99
- (0, type_graphql_1.ObjectType)()
100
- ], ChecklistTemplateItem);
101
- //# sourceMappingURL=checklist-template-item.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checklist-template-item.js","sourceRoot":"","sources":["../../../server/service/checklist-template-item/checklist-template-item.ts"],"names":[],"mappings":";;;;AAAA,qCAAkI;AAClI,+CAA2E;AAE3E,yDAAgD;AAChD,iFAA4E;AAC5E,qEAAwE;AAExE,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,uCAAc,CAAA;IACd,uCAAc,CAAA;IACd,oCAAW,CAAA;AACb,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAED,IAAA,+B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oBAAU,EAAC,CAAC,qBAA4C,EAAE,EAAE,CAAC,qBAAqB,CAAC,OAAO,CAAC;;wDAC1E;gCAzDP,qBAAqB;IARjC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;IACpC,IAAA,eAAK,EACJ,8BAA8B,EAC9B,CAAC,GAA0B,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,IAAI,CAAC,EAC/F,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,eAAK,EAAC,8BAA8B,EAAE,CAAC,GAA0B,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACvF,IAAA,yBAAU,GAAE;GACA,qBAAqB,CA0DjC","sourcesContent":["import { CreateDateColumn, UpdateDateColumn, Entity, Index, Column, RelationId, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'\nimport { ObjectType, Field, ID, Int, registerEnumType } from 'type-graphql'\n\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistTemplate } from '../checklist-template/checklist-template'\nimport { ChecklistTypeMainType } from '../checklist-type/checklist-type'\n\nexport enum CriteriaRequestStatus {\n REQUEST = '10',\n SUCCESS = '20',\n FAIL = '30'\n}\n\nregisterEnumType(CriteriaRequestStatus, {\n name: 'CriteriaRequestStatus',\n description: '검사 기준 API 요청 상태'\n})\n\n@Entity({ comment: '체크리스트 템플릿 아이템' })\n@Index(\n 'ix_checklist_template_item_0',\n (cti: ChecklistTemplateItem) => [cti.checklistTemplate, cti.mainType, cti.detailType, cti.name],\n { unique: true }\n)\n@Index('ix_checklist_template_item_1', (cti: ChecklistTemplateItem) => [cti.detailType])\n@ObjectType()\nexport class ChecklistTemplateItem {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: false, comment: '검사 항목' })\n @Field({ nullable: false })\n name: string\n\n @Column({ nullable: true, comment: '검사 기준' })\n @Field({ nullable: true })\n inspctionCriteria?: string\n\n @Column({ nullable: true, comment: '검사 기준 API 요청 상태 (10: API 요청, 20: 성공, 30: 실패)' })\n @Field(type => CriteriaRequestStatus, { nullable: true })\n criteriaRequestStatus?: CriteriaRequestStatus\n\n @Column({ nullable: true, comment: '시퀀스' })\n @Field(type => Int, { nullable: true })\n sequence?: number\n\n @Column({ nullable: false, comment: '메인 구분 (10: 기본 업무, 20: 기본 외 업무)' })\n @Field({ nullable: false })\n mainType: ChecklistTypeMainType\n\n @Column({ nullable: false, comment: '상세 구분 ID (F.K)' })\n @Field({ nullable: false })\n detailType: string\n\n // 체크리스트 템플릿 정보 (상위 테이블 참조)\n @ManyToOne(type => ChecklistTemplate)\n @Field(type => ChecklistTemplate, { nullable: true })\n checklistTemplate?: ChecklistTemplate\n\n @RelationId((checklistTemplateItem: ChecklistTemplateItem) => checklistTemplateItem.checklistTemplate)\n checklistTemplateId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((checklistTemplateItem: ChecklistTemplateItem) => checklistTemplateItem.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((checklistTemplateItem: ChecklistTemplateItem) => checklistTemplateItem.updater)\n updaterId?: string\n}\n"]}
@@ -1,5 +0,0 @@
1
- import { ChecklistTemplateItem } from './checklist-template-item';
2
- import { ChecklistTemplateItemQuery } from './checklist-template-item-query';
3
- import { ChecklistTemplateItemMutation } from './checklist-template-item-mutation';
4
- export declare const entities: (typeof ChecklistTemplateItem)[];
5
- export declare const resolvers: (typeof ChecklistTemplateItemQuery | typeof ChecklistTemplateItemMutation)[];
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolvers = exports.entities = void 0;
4
- const checklist_template_item_1 = require("./checklist-template-item");
5
- const checklist_template_item_query_1 = require("./checklist-template-item-query");
6
- const checklist_template_item_mutation_1 = require("./checklist-template-item-mutation");
7
- exports.entities = [checklist_template_item_1.ChecklistTemplateItem];
8
- exports.resolvers = [checklist_template_item_query_1.ChecklistTemplateItemQuery, checklist_template_item_mutation_1.ChecklistTemplateItemMutation];
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-template-item/index.ts"],"names":[],"mappings":";;;AAAA,uEAAiE;AACjE,mFAA4E;AAC5E,yFAAkF;AAErE,QAAA,QAAQ,GAAG,CAAC,+CAAqB,CAAC,CAAA;AAClC,QAAA,SAAS,GAAG,CAAC,0DAA0B,EAAE,gEAA6B,CAAC,CAAA","sourcesContent":["import { ChecklistTemplateItem } from './checklist-template-item'\nimport { ChecklistTemplateItemQuery } from './checklist-template-item-query'\nimport { ChecklistTemplateItemMutation } from './checklist-template-item-mutation'\n\nexport const entities = [ChecklistTemplateItem]\nexport const resolvers = [ChecklistTemplateItemQuery, ChecklistTemplateItemMutation]\n"]}
@@ -1,2 +0,0 @@
1
- export declare function updateInspctionCriteriaForChecklistTemplateItems(ids: string[]): Promise<void>;
2
- export declare function queueUpdateInspctionCriteria(ids: string[]): void;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateInspctionCriteriaForChecklistTemplateItems = updateInspctionCriteriaForChecklistTemplateItems;
4
- exports.queueUpdateInspctionCriteria = queueUpdateInspctionCriteria;
5
- const shell_1 = require("@things-factory/shell");
6
- const checklist_template_item_1 = require("./checklist-template-item");
7
- const SPEC_MATCHING_API_BASE_URL = 'https://hatiolab-korea-uni.ettisoft.com';
8
- const API_USERNAME = 'admin';
9
- const API_PASSWORD = 'admin1234';
10
- async function updateInspctionCriteriaForChecklistTemplateItems(ids) {
11
- var _a, _b;
12
- const repository = (0, shell_1.getRepository)(checklist_template_item_1.ChecklistTemplateItem);
13
- const url = `${SPEC_MATCHING_API_BASE_URL}/api/run/spec-matching`;
14
- const headers = {};
15
- headers['Authorization'] = `Basic ${Buffer.from(`${API_USERNAME}:${API_PASSWORD}`).toString('base64')}`;
16
- for (const id of ids) {
17
- try {
18
- const item = await repository.findOneBy({ id });
19
- const form = new FormData();
20
- form.append('input', JSON.stringify({ item: item.name }));
21
- const response = await fetch(url, {
22
- method: 'POST',
23
- headers,
24
- body: form
25
- });
26
- const data = ((_a = (await (response === null || response === void 0 ? void 0 : response.json()))) === null || _a === void 0 ? void 0 : _a.result) || {};
27
- console.log('data :', data);
28
- if ((data === null || data === void 0 ? void 0 : data.status) === 'success') {
29
- const criteria = ((_b = data.result) === null || _b === void 0 ? void 0 : _b['검사기준']) || '';
30
- await repository.update({ id }, { inspctionCriteria: criteria, criteriaRequestStatus: checklist_template_item_1.CriteriaRequestStatus.SUCCESS });
31
- }
32
- else {
33
- await repository.update({ id }, { criteriaRequestStatus: checklist_template_item_1.CriteriaRequestStatus.FAIL });
34
- }
35
- }
36
- catch (error) {
37
- await repository.update({ id }, { criteriaRequestStatus: checklist_template_item_1.CriteriaRequestStatus.FAIL });
38
- }
39
- }
40
- }
41
- function queueUpdateInspctionCriteria(ids) {
42
- if (!ids || ids.length === 0)
43
- return;
44
- setTimeout(() => {
45
- updateInspctionCriteriaForChecklistTemplateItems(ids).catch(err => {
46
- console.error('Background spec-matching update failed:', err);
47
- });
48
- }, 0);
49
- }
50
- //# sourceMappingURL=spec-matching-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec-matching-service.js","sourceRoot":"","sources":["../../../server/service/checklist-template-item/spec-matching-service.ts"],"names":[],"mappings":";;AAOA,4GAgCC;AAED,oEAQC;AAjDD,iDAAqD;AACrD,uEAAwF;AAExF,MAAM,0BAA0B,GAAW,yCAAyC,CAAA;AACpF,MAAM,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MAAM,CAAC,KAAI,EAAE,CAAA;gBAC5C,MAAM,UAAU,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,QAAQ,EAAE,qBAAqB,EAAE,+CAAqB,CAAC,OAAO,EAAE,CAAC,CAAA;YACxH,CAAC;iBAAM,CAAC;gBACN,MAAM,UAAU,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,qBAAqB,EAAE,+CAAqB,CAAC,IAAI,EAAE,CAAC,CAAA;YACxF,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,UAAU,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,qBAAqB,EAAE,+CAAqB,CAAC,IAAI,EAAE,CAAC,CAAA;QACxF,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAgB,4BAA4B,CAAC,GAAa;IACxD,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC;QAAE,OAAM;IAEpC,UAAU,CAAC,GAAG,EAAE;QACd,gDAAgD,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YAChE,OAAO,CAAC,KAAK,CAAC,yCAAyC,EAAE,GAAG,CAAC,CAAA;QAC/D,CAAC,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,CAAC,CAAA;AACP,CAAC","sourcesContent":["import { getRepository } from '@things-factory/shell'\nimport { ChecklistTemplateItem, CriteriaRequestStatus } from './checklist-template-item'\n\nconst SPEC_MATCHING_API_BASE_URL: string = 'https://hatiolab-korea-uni.ettisoft.com'\nconst API_USERNAME: string = 'admin'\nconst API_PASSWORD: string = 'admin1234'\n\nexport async function updateInspctionCriteriaForChecklistTemplateItems(ids: string[]): Promise<void> {\n const repository = getRepository(ChecklistTemplateItem)\n\n const url = `${SPEC_MATCHING_API_BASE_URL}/api/run/spec-matching`\n const headers: any = {}\n headers['Authorization'] = `Basic ${Buffer.from(`${API_USERNAME}:${API_PASSWORD}`).toString('base64')}`\n\n for (const id of ids) {\n try {\n const item = await repository.findOneBy({ id })\n const form = new FormData()\n form.append('input', JSON.stringify({ item: item.name }))\n const response = await fetch(url, {\n method: 'POST',\n headers,\n body: form\n })\n\n const data = (await response?.json())?.result || {}\n\n console.log('data :', data)\n\n if (data?.status === 'success') {\n const criteria = data.result?.['검사기준'] || ''\n await repository.update({ id }, { inspctionCriteria: criteria, criteriaRequestStatus: CriteriaRequestStatus.SUCCESS })\n } else {\n await repository.update({ id }, { criteriaRequestStatus: CriteriaRequestStatus.FAIL })\n }\n } catch (error) {\n await repository.update({ id }, { criteriaRequestStatus: CriteriaRequestStatus.FAIL })\n }\n }\n}\n\nexport function queueUpdateInspctionCriteria(ids: string[]): void {\n if (!ids || ids.length === 0) return\n\n setTimeout(() => {\n updateInspctionCriteriaForChecklistTemplateItems(ids).catch(err => {\n console.error('Background spec-matching update failed:', err)\n })\n }, 0)\n}\n"]}
@@ -1,6 +0,0 @@
1
- import { ChecklistType } from './checklist-type';
2
- import { ChecklistTypePatch } from './checklist-type-type';
3
- export declare class ChecklistTypeMutation {
4
- updateMultipleChecklistType(patches: ChecklistTypePatch[], context: ResolverContext): Promise<ChecklistType[]>;
5
- deleteChecklistTypes(ids: string[], context: ResolverContext): Promise<boolean>;
6
- }
@@ -1,64 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChecklistTypeMutation = void 0;
4
- const tslib_1 = require("tslib");
5
- const type_graphql_1 = require("type-graphql");
6
- const typeorm_1 = require("typeorm");
7
- const checklist_type_1 = require("./checklist-type");
8
- const checklist_type_type_1 = require("./checklist-type-type");
9
- let ChecklistTypeMutation = class ChecklistTypeMutation {
10
- async updateMultipleChecklistType(patches, context) {
11
- const { domain, user, tx } = context.state;
12
- let results = [];
13
- const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
14
- const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
15
- const checklistTypeRepo = tx.getRepository(checklist_type_1.ChecklistType);
16
- if (_createRecords.length > 0) {
17
- for (let i = 0; i < _createRecords.length; i++) {
18
- const newRecord = _createRecords[i];
19
- const result = await checklistTypeRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
20
- results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
21
- }
22
- }
23
- if (_updateRecords.length > 0) {
24
- for (let i = 0; i < _updateRecords.length; i++) {
25
- const updateRecord = _updateRecords[i];
26
- const checklistType = await checklistTypeRepo.findOneBy({ id: updateRecord.id });
27
- const result = await checklistTypeRepo.save(Object.assign(Object.assign(Object.assign({}, checklistType), updateRecord), { updater: user }));
28
- results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
29
- }
30
- }
31
- return results;
32
- }
33
- async deleteChecklistTypes(ids, context) {
34
- const { domain, tx } = context.state;
35
- await tx.getRepository(checklist_type_1.ChecklistType).delete({
36
- domain: { id: domain.id },
37
- id: (0, typeorm_1.In)(ids)
38
- });
39
- return true;
40
- }
41
- };
42
- exports.ChecklistTypeMutation = ChecklistTypeMutation;
43
- tslib_1.__decorate([
44
- (0, type_graphql_1.Directive)('@transaction'),
45
- (0, type_graphql_1.Mutation)(returns => [checklist_type_1.ChecklistType], { description: "To modify multiple ChecklistTypes' information" }),
46
- tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [checklist_type_type_1.ChecklistTypePatch])),
47
- tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
48
- tslib_1.__metadata("design:type", Function),
49
- tslib_1.__metadata("design:paramtypes", [Array, Object]),
50
- tslib_1.__metadata("design:returntype", Promise)
51
- ], ChecklistTypeMutation.prototype, "updateMultipleChecklistType", null);
52
- tslib_1.__decorate([
53
- (0, type_graphql_1.Directive)('@transaction'),
54
- (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple ChecklistTypes' }),
55
- tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
56
- tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
57
- tslib_1.__metadata("design:type", Function),
58
- tslib_1.__metadata("design:paramtypes", [Array, Object]),
59
- tslib_1.__metadata("design:returntype", Promise)
60
- ], ChecklistTypeMutation.prototype, "deleteChecklistTypes", null);
61
- exports.ChecklistTypeMutation = ChecklistTypeMutation = tslib_1.__decorate([
62
- (0, type_graphql_1.Resolver)(checklist_type_1.ChecklistType)
63
- ], ChecklistTypeMutation);
64
- //# sourceMappingURL=checklist-type-mutation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checklist-type-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist-type/checklist-type-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,qDAAgD;AAChD,+DAA0D;AAGnD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAG1B,AAAN,KAAK,CAAC,2BAA2B,CACe,OAA6B,EACpE,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;QACzF,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;QACzF,MAAM,iBAAiB,GAAG,EAAE,CAAC,aAAa,CAAC,8BAAa,CAAC,CAAA;QAEzD,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,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CAAA;AA3DY,sDAAqB;AAG1B;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC,8BAAa,CAAC,EAAE,EAAE,WAAW,EAAE,gDAAgD,EAAE,CAAC;IAErG,mBAAA,IAAA,kBAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,wCAAkB,CAAC,CAAC,CAAA;IAC5C,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;wEAwCP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;IACvD,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAiB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;iEAS7E;gCA1DU,qBAAqB;IADjC,IAAA,uBAAQ,EAAC,8BAAa,CAAC;GACX,qBAAqB,CA2DjC","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\nimport { ChecklistType } from './checklist-type'\nimport { ChecklistTypePatch } from './checklist-type-type'\n\n@Resolver(ChecklistType)\nexport class ChecklistTypeMutation {\n @Directive('@transaction')\n @Mutation(returns => [ChecklistType], { description: \"To modify multiple ChecklistTypes' information\" })\n async updateMultipleChecklistType(\n @Arg('patches', type => [ChecklistTypePatch]) patches: ChecklistTypePatch[],\n @Ctx() context: ResolverContext\n ): Promise<ChecklistType[]> {\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 checklistTypeRepo = tx.getRepository(ChecklistType)\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 checklistTypeRepo.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 checklistType = await checklistTypeRepo.findOneBy({ id: updateRecord.id })\n\n const result = await checklistTypeRepo.save({\n ...checklistType,\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 ChecklistTypes' })\n async deleteChecklistTypes(@Arg('ids', type => [String]) ids: string[], @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(ChecklistType).delete({\n domain: { id: domain.id },\n id: In(ids)\n })\n\n return true\n }\n}\n"]}
@@ -1,10 +0,0 @@
1
- import { Domain, ListParam } from '@things-factory/shell';
2
- import { User } from '@things-factory/auth-base';
3
- import { ChecklistType } from './checklist-type';
4
- import { ChecklistTypeList } from './checklist-type-type';
5
- export declare class ChecklistTypeQuery {
6
- checklistTypes(params: ListParam, context: ResolverContext): Promise<ChecklistTypeList>;
7
- domain(checklistType: ChecklistType): Promise<Domain>;
8
- updater(checklistType: ChecklistType): Promise<User>;
9
- creator(checklistType: ChecklistType): Promise<User>;
10
- }
@@ -1,65 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChecklistTypeQuery = void 0;
4
- const tslib_1 = require("tslib");
5
- const type_graphql_1 = require("type-graphql");
6
- const shell_1 = require("@things-factory/shell");
7
- const auth_base_1 = require("@things-factory/auth-base");
8
- const checklist_type_1 = require("./checklist-type");
9
- const checklist_type_type_1 = require("./checklist-type-type");
10
- let ChecklistTypeQuery = class ChecklistTypeQuery {
11
- async checklistTypes(params, context) {
12
- const { domain } = context.state;
13
- const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
14
- domain,
15
- params,
16
- repository: await (0, shell_1.getRepository)(checklist_type_1.ChecklistType),
17
- searchables: ['mainType', 'detailType']
18
- });
19
- const [items, total] = await queryBuilder.getManyAndCount();
20
- return { items, total };
21
- }
22
- async domain(checklistType) {
23
- return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: checklistType.domainId });
24
- }
25
- async updater(checklistType) {
26
- return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistType.updaterId });
27
- }
28
- async creator(checklistType) {
29
- return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistType.creatorId });
30
- }
31
- };
32
- exports.ChecklistTypeQuery = ChecklistTypeQuery;
33
- tslib_1.__decorate([
34
- (0, type_graphql_1.Query)(returns => checklist_type_type_1.ChecklistTypeList, { description: 'To fetch multiple ChecklistTypes' }),
35
- tslib_1.__param(0, (0, type_graphql_1.Args)()),
36
- tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
37
- tslib_1.__metadata("design:type", Function),
38
- tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
39
- tslib_1.__metadata("design:returntype", Promise)
40
- ], ChecklistTypeQuery.prototype, "checklistTypes", null);
41
- tslib_1.__decorate([
42
- (0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
43
- tslib_1.__param(0, (0, type_graphql_1.Root)()),
44
- tslib_1.__metadata("design:type", Function),
45
- tslib_1.__metadata("design:paramtypes", [checklist_type_1.ChecklistType]),
46
- tslib_1.__metadata("design:returntype", Promise)
47
- ], ChecklistTypeQuery.prototype, "domain", null);
48
- tslib_1.__decorate([
49
- (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
50
- tslib_1.__param(0, (0, type_graphql_1.Root)()),
51
- tslib_1.__metadata("design:type", Function),
52
- tslib_1.__metadata("design:paramtypes", [checklist_type_1.ChecklistType]),
53
- tslib_1.__metadata("design:returntype", Promise)
54
- ], ChecklistTypeQuery.prototype, "updater", null);
55
- tslib_1.__decorate([
56
- (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
57
- tslib_1.__param(0, (0, type_graphql_1.Root)()),
58
- tslib_1.__metadata("design:type", Function),
59
- tslib_1.__metadata("design:paramtypes", [checklist_type_1.ChecklistType]),
60
- tslib_1.__metadata("design:returntype", Promise)
61
- ], ChecklistTypeQuery.prototype, "creator", null);
62
- exports.ChecklistTypeQuery = ChecklistTypeQuery = tslib_1.__decorate([
63
- (0, type_graphql_1.Resolver)(checklist_type_1.ChecklistType)
64
- ], ChecklistTypeQuery);
65
- //# sourceMappingURL=checklist-type-query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checklist-type-query.js","sourceRoot":"","sources":["../../../server/service/checklist-type/checklist-type-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8E;AAC9E,iDAAuG;AACvG,yDAAgD;AAChD,qDAAgD;AAChD,+DAAyD;AAGlD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAEvB,AAAN,KAAK,CAAC,cAAc,CAAS,MAAiB,EAAS,OAAwB;QAC7E,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,8BAAa,CAAC;YAC9C,WAAW,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;SACxC,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,MAAM,CAAS,aAA4B;QAC/C,OAAO,MAAM,IAAA,qBAAa,EAAC,cAAM,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC9E,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,aAA4B;QAChD,OAAO,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,SAAS,EAAE,CAAC,CAAA;IAC7E,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,aAA4B;QAChD,OAAO,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,SAAS,EAAE,CAAC,CAAA;IAC7E,CAAC;CACF,CAAA;AA/BY,gDAAkB;AAEvB;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,uCAAiB,EAAE,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IACnE,mBAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CAAjB,iBAAS;;wDAa7C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;gDAEhD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;iDAEjD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;iDAEjD;6BA9BU,kBAAkB;IAD9B,IAAA,uBAAQ,EAAC,8BAAa,CAAC;GACX,kBAAkB,CA+B9B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Ctx } from 'type-graphql'\nimport { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistType } from './checklist-type'\nimport { ChecklistTypeList } from './checklist-type-type'\n\n@Resolver(ChecklistType)\nexport class ChecklistTypeQuery {\n @Query(returns => ChecklistTypeList, { description: 'To fetch multiple ChecklistTypes' })\n async checklistTypes(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistTypeList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: await getRepository(ChecklistType),\n searchables: ['mainType', 'detailType']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() checklistType: ChecklistType): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: checklistType.domainId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklistType: ChecklistType): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistType.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistType: ChecklistType): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistType.creatorId })\n }\n}\n"]}
@@ -1,11 +0,0 @@
1
- import { ChecklistType, ChecklistTypeMainType } from './checklist-type';
2
- export declare class ChecklistTypePatch {
3
- id?: string;
4
- mainType: ChecklistTypeMainType;
5
- detailType: string;
6
- cuFlag?: string;
7
- }
8
- export declare class ChecklistTypeList {
9
- items: ChecklistType[];
10
- total: number;
11
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChecklistTypeList = exports.ChecklistTypePatch = void 0;
4
- const tslib_1 = require("tslib");
5
- const type_graphql_1 = require("type-graphql");
6
- const checklist_type_1 = require("./checklist-type");
7
- let ChecklistTypePatch = class ChecklistTypePatch {
8
- };
9
- exports.ChecklistTypePatch = ChecklistTypePatch;
10
- tslib_1.__decorate([
11
- (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
12
- tslib_1.__metadata("design:type", String)
13
- ], ChecklistTypePatch.prototype, "id", void 0);
14
- tslib_1.__decorate([
15
- (0, type_graphql_1.Field)({ nullable: true }),
16
- tslib_1.__metadata("design:type", String)
17
- ], ChecklistTypePatch.prototype, "mainType", void 0);
18
- tslib_1.__decorate([
19
- (0, type_graphql_1.Field)({ nullable: true }),
20
- tslib_1.__metadata("design:type", String)
21
- ], ChecklistTypePatch.prototype, "detailType", void 0);
22
- tslib_1.__decorate([
23
- (0, type_graphql_1.Field)({ nullable: true }),
24
- tslib_1.__metadata("design:type", String)
25
- ], ChecklistTypePatch.prototype, "cuFlag", void 0);
26
- exports.ChecklistTypePatch = ChecklistTypePatch = tslib_1.__decorate([
27
- (0, type_graphql_1.InputType)()
28
- ], ChecklistTypePatch);
29
- let ChecklistTypeList = class ChecklistTypeList {
30
- };
31
- exports.ChecklistTypeList = ChecklistTypeList;
32
- tslib_1.__decorate([
33
- (0, type_graphql_1.Field)(type => [checklist_type_1.ChecklistType]),
34
- tslib_1.__metadata("design:type", Array)
35
- ], ChecklistTypeList.prototype, "items", void 0);
36
- tslib_1.__decorate([
37
- (0, type_graphql_1.Field)(type => type_graphql_1.Int),
38
- tslib_1.__metadata("design:type", Number)
39
- ], ChecklistTypeList.prototype, "total", void 0);
40
- exports.ChecklistTypeList = ChecklistTypeList = tslib_1.__decorate([
41
- (0, type_graphql_1.ObjectType)()
42
- ], ChecklistTypeList);
43
- //# sourceMappingURL=checklist-type-type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checklist-type-type.js","sourceRoot":"","sources":["../../../server/service/checklist-type/checklist-type-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,qDAAuE;AAGhE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAY9B,CAAA;AAZY,gDAAkB;AAE7B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACK;AAG/B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACR;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACX;6BAXJ,kBAAkB;IAD9B,IAAA,wBAAS,GAAE;GACC,kBAAkB,CAY9B;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAM7B,CAAA;AANY,8CAAiB;AAE5B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,8BAAa,CAAC,CAAC;;gDACT;AAGtB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;gDACN;4BALF,iBAAiB;IAD7B,IAAA,yBAAU,GAAE;GACA,iBAAiB,CAM7B","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ChecklistType, ChecklistTypeMainType } from './checklist-type'\n\n@InputType()\nexport class ChecklistTypePatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n mainType: ChecklistTypeMainType\n\n @Field({ nullable: true })\n detailType: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class ChecklistTypeList {\n @Field(type => [ChecklistType])\n items: ChecklistType[]\n\n @Field(type => Int)\n total: number\n}\n"]}
@@ -1,19 +0,0 @@
1
- import { Domain } from '@things-factory/shell';
2
- import { User } from '@things-factory/auth-base';
3
- export declare enum ChecklistTypeMainType {
4
- BASIC = "10",
5
- NON_BASIC = "20"
6
- }
7
- export declare class ChecklistType {
8
- readonly id: string;
9
- domain?: Domain;
10
- domainId?: string;
11
- mainType: ChecklistTypeMainType;
12
- detailType: string;
13
- createdAt?: Date;
14
- updatedAt?: Date;
15
- creator?: User;
16
- creatorId?: string;
17
- updater?: User;
18
- updaterId?: string;
19
- }