@dssp/supervision 1.0.0-alpha.0 → 1.0.0-alpha.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/graphql/building-inspection.d.ts +1 -0
- package/dist-client/graphql/building-inspection.js +102 -0
- package/dist-client/graphql/building-inspection.js.map +1 -0
- package/dist-client/pages/action-plan/action-plan-importer.js.map +1 -1
- package/dist-client/pages/action-plan/action-plan-list-page.d.ts +1 -2
- package/dist-client/pages/action-plan/action-plan-list-page.js +1 -2
- package/dist-client/pages/action-plan/action-plan-list-page.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +22 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +171 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +71 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +1407 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement_old_ai.d.ts +59 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement_old_ai.js +868 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement_old_ai.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +8 -6
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +116 -65
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +11 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +148 -73
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +94 -25
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +28 -4
- package/dist-client/pages/building-inspection/building-inspection-list.js +377 -35
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-management.d.ts +82 -0
- package/dist-client/pages/building-inspection/building-inspection-management.js +1527 -0
- package/dist-client/pages/building-inspection/building-inspection-management.js.map +1 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +46 -14
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +542 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-constants.d.ts +18 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js +630 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js.map +1 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.d.ts +10 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js +219 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.d.ts +25 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js +546 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js.map +1 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-popup.d.ts +42 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js +738 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js +348 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +25 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +491 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +31 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +485 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +416 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +4 -2
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +156 -37
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-create-popup.js +27 -13
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.d.ts +4 -0
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +844 -0
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +60 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +1135 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +2 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +740 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +19 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +205 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +1 -0
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +304 -0
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +15 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +430 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.d.ts +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.js +251 -69
- package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/checklist-view.d.ts +8 -0
- package/dist-client/pages/checklist/checklist-view.js +557 -191
- package/dist-client/pages/checklist/checklist-view.js.map +1 -1
- package/dist-client/pages/checklist/comment-list-popup.js +15 -5
- package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/file-preview-popup.js +0 -1
- package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
- package/dist-client/pages/checklist/inspection-info-popup.d.ts +49 -0
- package/dist-client/pages/checklist/inspection-info-popup.js +683 -0
- package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
- package/dist-client/pages/checklist/inspection-tab-popup.d.ts +18 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js +196 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
- package/dist-client/pages/checklist/kcs-criteria-popup.d.ts +16 -0
- package/dist-client/pages/checklist/kcs-criteria-popup.js +179 -0
- package/dist-client/pages/checklist/kcs-criteria-popup.js.map +1 -0
- package/dist-client/pages/checklist-database/checklist-database.d.ts +35 -0
- package/dist-client/pages/checklist-database/checklist-database.js +540 -0
- package/dist-client/pages/checklist-database/checklist-database.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js +44 -3
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js +4 -3
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-type-management.d.ts +2 -2
- package/dist-client/pages/checklist-template/checklist-type-management.js.map +1 -1
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.d.ts +2 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js +223 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js.map +1 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.d.ts +55 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js +404 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +1 -0
- package/dist-client/pages/issue/issue-importer.js.map +1 -1
- package/dist-client/pages/issue/issue-list-page.d.ts +1 -2
- package/dist-client/pages/issue/issue-list-page.js +1 -2
- package/dist-client/pages/issue/issue-list-page.js.map +1 -1
- package/dist-client/pages/project-checklist/project-checklist-management.d.ts +62 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js +1145 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js.map +1 -0
- package/dist-client/pages/project-report/project-report-importer.js.map +1 -1
- package/dist-client/pages/project-report/project-report-list-page.d.ts +1 -2
- package/dist-client/pages/project-report/project-report-list-page.js +1 -2
- package/dist-client/pages/project-report/project-report-list-page.js.map +1 -1
- package/dist-client/pages/supervisor/supervisor-importer.js.map +1 -1
- package/dist-client/pages/supervisor/supervisor-list-page.d.ts +1 -2
- package/dist-client/pages/supervisor/supervisor-list-page.js +1 -2
- package/dist-client/pages/supervisor/supervisor-list-page.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +21 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/stt/speech-to-text.d.ts +41 -0
- package/dist-client/stt/speech-to-text.js +331 -0
- package/dist-client/stt/speech-to-text.js.map +1 -0
- package/dist-client/stt/stt-utils.d.ts +28 -0
- package/dist-client/stt/stt-utils.js +146 -0
- package/dist-client/stt/stt-utils.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/middlewares/index.js +1 -2
- package/dist-server/middlewares/index.js.map +1 -1
- package/dist-server/service/action-plan/action-plan-mutation.js +7 -8
- package/dist-server/service/action-plan/action-plan-mutation.js.map +1 -1
- package/dist-server/service/action-plan/action-plan-query.d.ts +2 -2
- package/dist-server/service/action-plan/action-plan-query.js +7 -13
- package/dist-server/service/action-plan/action-plan-query.js.map +1 -1
- package/dist-server/service/action-plan/action-plan-type.js +6 -6
- package/dist-server/service/action-plan/action-plan-type.js.map +1 -1
- package/dist-server/service/action-plan/action-plan.js +3 -3
- package/dist-server/service/action-plan/action-plan.js.map +1 -1
- package/dist-server/service/action-plan/index.d.ts +0 -1
- package/dist-server/service/action-plan/index.js +1 -2
- package/dist-server/service/action-plan/index.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +3 -3
- package/dist-server/service/building-inspection/building-inspection-mutation.js +185 -40
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +9 -6
- package/dist-server/service/building-inspection/building-inspection-query.js +199 -54
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +38 -10
- package/dist-server/service/building-inspection/building-inspection-type.js +142 -29
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +14 -0
- package/dist-server/service/building-inspection/building-inspection.js +78 -7
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/building-inspection/index.d.ts +4 -7
- package/dist-server/service/building-inspection/index.js +11 -6
- package/dist-server/service/building-inspection/index.js.map +1 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +66 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +35 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js +162 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
- package/dist-server/service/{building-inspection → building-inspection-history}/event-subscriber.d.ts +1 -1
- package/dist-server/service/{building-inspection → building-inspection-history}/event-subscriber.js +3 -3
- package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
- package/dist-server/service/building-inspection-history/index.d.ts +6 -0
- package/dist-server/service/building-inspection-history/index.js +10 -0
- package/dist-server/service/building-inspection-history/index.js.map +1 -0
- package/dist-server/service/checklist/checklist-mutation.d.ts +0 -5
- package/dist-server/service/checklist/checklist-mutation.js +3 -69
- package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
- package/dist-server/service/checklist/checklist-query.d.ts +7 -0
- package/dist-server/service/checklist/checklist-query.js +85 -2
- package/dist-server/service/checklist/checklist-query.js.map +1 -1
- package/dist-server/service/checklist/checklist-type.d.ts +0 -13
- package/dist-server/service/checklist/checklist-type.js +3 -51
- package/dist-server/service/checklist/checklist-type.js.map +1 -1
- package/dist-server/service/checklist/checklist.d.ts +38 -3
- package/dist-server/service/checklist/checklist.js +133 -17
- package/dist-server/service/checklist/checklist.js.map +1 -1
- package/dist-server/service/checklist/event-subscriber.d.ts +2 -2
- package/dist-server/service/checklist/event-subscriber.js +4 -4
- package/dist-server/service/checklist/event-subscriber.js.map +1 -1
- package/dist-server/service/checklist/index.d.ts +1 -4
- package/dist-server/service/checklist/index.js +2 -5
- package/dist-server/service/checklist/index.js.map +1 -1
- package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
- package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
- package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
- package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
- package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
- package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
- package/dist-server/service/checklist-history/checklist-history.d.ts +50 -0
- package/dist-server/service/checklist-history/checklist-history.js +239 -0
- package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
- package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-history/index.d.ts +6 -0
- package/dist-server/service/checklist-history/index.js +10 -0
- package/dist-server/service/checklist-history/index.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-mutation.d.ts +2 -0
- package/dist-server/service/checklist-item/checklist-item-mutation.js +23 -2
- package/dist-server/service/checklist-item/checklist-item-mutation.js.map +1 -1
- package/dist-server/service/checklist-item/checklist-item-query.d.ts +1 -1
- package/dist-server/service/checklist-item/checklist-item-query.js +7 -5
- package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
- package/dist-server/service/checklist-item/checklist-item-type.d.ts +5 -1
- package/dist-server/service/checklist-item/checklist-item-type.js +17 -3
- package/dist-server/service/checklist-item/checklist-item-type.js.map +1 -1
- package/dist-server/service/checklist-item/checklist-item.d.ts +2 -0
- package/dist-server/service/checklist-item/checklist-item.js +14 -4
- package/dist-server/service/checklist-item/checklist-item.js.map +1 -1
- package/dist-server/service/checklist-item/index.d.ts +2 -2
- package/dist-server/service/checklist-item/index.js +1 -2
- package/dist-server/service/checklist-item/index.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js +2 -2
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +35 -8
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +2 -2
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +6 -6
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js +2 -2
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +1 -1
- package/dist-server/service/checklist-item-comment/index.d.ts +0 -2
- package/dist-server/service/checklist-item-comment/index.js +1 -3
- package/dist-server/service/checklist-item-comment/index.js.map +1 -1
- package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +27 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js +133 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
- package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-item-history/index.d.ts +6 -0
- package/dist-server/service/checklist-item-history/index.js +10 -0
- package/dist-server/service/checklist-item-history/index.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template-mutation.js +2 -2
- package/dist-server/service/checklist-template/checklist-template-mutation.js.map +1 -1
- package/dist-server/service/checklist-template/checklist-template-query.d.ts +1 -1
- package/dist-server/service/checklist-template/checklist-template-query.js +4 -7
- package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -1
- package/dist-server/service/checklist-template/checklist-template-type.js +4 -4
- package/dist-server/service/checklist-template/checklist-template-type.js.map +1 -1
- package/dist-server/service/checklist-template/checklist-template.js +2 -2
- package/dist-server/service/checklist-template/checklist-template.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +15 -3
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js +2 -2
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +3 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js +13 -4
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +7 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.js +26 -8
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
- package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +2 -0
- package/dist-server/service/checklist-template-item/spec-matching-service.js +51 -0
- package/dist-server/service/checklist-template-item/spec-matching-service.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type-mutation.js +2 -2
- package/dist-server/service/checklist-type/checklist-type-mutation.js.map +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.d.ts +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.js +4 -7
- package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
- package/dist-server/service/checklist-type/checklist-type-type.js +4 -4
- package/dist-server/service/checklist-type/checklist-type-type.js.map +1 -1
- package/dist-server/service/checklist-type/checklist-type.js +3 -3
- package/dist-server/service/checklist-type/checklist-type.js.map +1 -1
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.d.ts +7 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js +107 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.d.ts +10 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js +62 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.d.ts +11 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js +43 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts +18 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.js +80 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map +1 -0
- package/dist-server/service/construction-checklist-template/index.d.ts +5 -0
- package/dist-server/service/construction-checklist-template/index.js +9 -0
- package/dist-server/service/construction-checklist-template/index.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.d.ts +6 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js +56 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.d.ts +9 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js +53 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.d.ts +17 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js +67 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.d.ts +24 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js +113 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/index.d.ts +5 -0
- package/dist-server/service/construction-checklist-template-item/index.js +9 -0
- package/dist-server/service/construction-checklist-template-item/index.js.map +1 -0
- package/dist-server/service/field-document/field-document-auto-file.d.ts +21 -0
- package/dist-server/service/field-document/field-document-auto-file.js +47 -0
- package/dist-server/service/field-document/field-document-auto-file.js.map +1 -0
- package/dist-server/service/field-document/field-document-mutation.d.ts +9 -0
- package/dist-server/service/field-document/field-document-mutation.js +139 -0
- package/dist-server/service/field-document/field-document-mutation.js.map +1 -0
- package/dist-server/service/field-document/field-document-query.d.ts +14 -0
- package/dist-server/service/field-document/field-document-query.js +120 -0
- package/dist-server/service/field-document/field-document-query.js.map +1 -0
- package/dist-server/service/field-document/field-document-summary-service.d.ts +10 -0
- package/dist-server/service/field-document/field-document-summary-service.js +79 -0
- package/dist-server/service/field-document/field-document-summary-service.js.map +1 -0
- package/dist-server/service/field-document/field-document-type.d.ts +24 -0
- package/dist-server/service/field-document/field-document-type.js +88 -0
- package/dist-server/service/field-document/field-document-type.js.map +1 -0
- package/dist-server/service/field-document/field-document.d.ts +29 -0
- package/dist-server/service/field-document/field-document.js +127 -0
- package/dist-server/service/field-document/field-document.js.map +1 -0
- package/dist-server/service/field-document/index.d.ts +5 -0
- package/dist-server/service/field-document/index.js +9 -0
- package/dist-server/service/field-document/index.js.map +1 -0
- package/dist-server/service/index.d.ts +10 -3
- package/dist-server/service/index.js +42 -13
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/issue/index.d.ts +0 -1
- package/dist-server/service/issue/index.js +1 -2
- package/dist-server/service/issue/index.js.map +1 -1
- package/dist-server/service/issue/issue-mutation.js +7 -8
- package/dist-server/service/issue/issue-mutation.js.map +1 -1
- package/dist-server/service/issue/issue-query.d.ts +2 -2
- package/dist-server/service/issue/issue-query.js +7 -13
- package/dist-server/service/issue/issue-query.js.map +1 -1
- package/dist-server/service/issue/issue-type.js +6 -6
- package/dist-server/service/issue/issue-type.js.map +1 -1
- package/dist-server/service/issue/issue.js +3 -3
- package/dist-server/service/issue/issue.js.map +1 -1
- package/dist-server/service/project-checklist/index.d.ts +5 -0
- package/dist-server/service/project-checklist/index.js +9 -0
- package/dist-server/service/project-checklist/index.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.d.ts +7 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.js +118 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-query.d.ts +12 -0
- package/dist-server/service/project-checklist/project-checklist-query.js +76 -0
- package/dist-server/service/project-checklist/project-checklist-query.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-type.d.ts +18 -0
- package/dist-server/service/project-checklist/project-checklist-type.js +69 -0
- package/dist-server/service/project-checklist/project-checklist-type.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist.d.ts +20 -0
- package/dist-server/service/project-checklist/project-checklist.js +90 -0
- package/dist-server/service/project-checklist/project-checklist.js.map +1 -0
- package/dist-server/service/project-checklist/spec-matching-service.d.ts +17 -0
- package/dist-server/service/project-checklist/spec-matching-service.js +140 -0
- package/dist-server/service/project-checklist/spec-matching-service.js.map +1 -0
- package/dist-server/service/project-checklist-item/index.d.ts +4 -0
- package/dist-server/service/project-checklist-item/index.js +9 -0
- package/dist-server/service/project-checklist-item/index.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.d.ts +2 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js +13 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.d.ts +5 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.js +34 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.d.ts +5 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.js +21 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.d.ts +19 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.js +92 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.js.map +1 -0
- package/dist-server/service/project-report/index.d.ts +0 -1
- package/dist-server/service/project-report/index.js +1 -2
- package/dist-server/service/project-report/index.js.map +1 -1
- package/dist-server/service/project-report/project-report-mutation.js +7 -8
- package/dist-server/service/project-report/project-report-mutation.js.map +1 -1
- package/dist-server/service/project-report/project-report-query.d.ts +2 -2
- package/dist-server/service/project-report/project-report-query.js +7 -13
- package/dist-server/service/project-report/project-report-query.js.map +1 -1
- package/dist-server/service/project-report/project-report-type.js +6 -6
- package/dist-server/service/project-report/project-report-type.js.map +1 -1
- package/dist-server/service/project-report/project-report.d.ts +0 -2
- package/dist-server/service/project-report/project-report.js +3 -9
- package/dist-server/service/project-report/project-report.js.map +1 -1
- package/dist-server/service/supervisor/index.d.ts +0 -1
- package/dist-server/service/supervisor/index.js +1 -2
- package/dist-server/service/supervisor/index.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-mutation.js +7 -8
- package/dist-server/service/supervisor/supervisor-mutation.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-query.d.ts +2 -2
- package/dist-server/service/supervisor/supervisor-query.js +7 -13
- package/dist-server/service/supervisor/supervisor-query.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-type.js +6 -6
- package/dist-server/service/supervisor/supervisor-type.js.map +1 -1
- package/dist-server/service/supervisor/supervisor.js +3 -3
- package/dist-server/service/supervisor/supervisor.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -13
- package/things-factory.config.js +11 -1
- package/client/bootstrap.ts +0 -1
- package/client/index.ts +0 -0
- package/client/pages/action-plan/action-plan-importer.ts +0 -94
- package/client/pages/action-plan/action-plan-list-page.ts +0 -340
- package/client/pages/building-inspection/building-inspection-detail-camera.ts +0 -277
- package/client/pages/building-inspection/building-inspection-detail-checklist.ts +0 -258
- package/client/pages/building-inspection/building-inspection-detail-drawing.ts +0 -288
- package/client/pages/building-inspection/building-inspection-list.ts +0 -565
- package/client/pages/building-inspection/component/building-inspection-detail-header.ts +0 -123
- package/client/pages/building-inspection/component/inspection-event-provider.ts +0 -81
- package/client/pages/building-inspection/inspection-create-popup.ts +0 -785
- package/client/pages/checklist/attachment-list-popup.ts +0 -301
- package/client/pages/checklist/checklist-view.ts +0 -581
- package/client/pages/checklist/comment-list-popup.ts +0 -328
- package/client/pages/checklist/file-preview-popup.ts +0 -70
- package/client/pages/checklist-template/checklist-template-item.ts +0 -240
- package/client/pages/checklist-template/checklist-template-list.ts +0 -368
- package/client/pages/checklist-template/checklist-type-management.ts +0 -262
- package/client/pages/issue/issue-importer.ts +0 -94
- package/client/pages/issue/issue-list-page.ts +0 -340
- package/client/pages/project-report/project-report-importer.ts +0 -94
- package/client/pages/project-report/project-report-list-page.ts +0 -340
- package/client/pages/supervisor/supervisor-importer.ts +0 -94
- package/client/pages/supervisor/supervisor-list-page.ts +0 -340
- package/client/route.ts +0 -27
- package/client/tsconfig.json +0 -11
- package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
- package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
- package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
- package/dist-server/service/building-inspection/event-subscriber.js.map +0 -1
- package/dist-server/service/checklist/checklist-history.d.ts +0 -24
- package/dist-server/service/checklist/checklist-history.js +0 -120
- package/dist-server/service/checklist/checklist-history.js.map +0 -1
- package/dist-server/service/checklist-item-comment/event-subscriber.d.ts +0 -7
- package/dist-server/service/checklist-item-comment/event-subscriber.js +0 -21
- package/dist-server/service/checklist-item-comment/event-subscriber.js.map +0 -1
- package/server/controllers/index.ts +0 -0
- package/server/index.ts +0 -4
- package/server/middlewares/index.ts +0 -3
- package/server/migrations/index.ts +0 -9
- package/server/routes.ts +0 -28
- package/server/service/action-plan/action-plan-mutation.ts +0 -198
- package/server/service/action-plan/action-plan-query.ts +0 -62
- package/server/service/action-plan/action-plan-type.ts +0 -61
- package/server/service/action-plan/action-plan.ts +0 -103
- package/server/service/action-plan/index.ts +0 -7
- package/server/service/building-inspection/building-inspection-history.ts +0 -72
- package/server/service/building-inspection/building-inspection-mutation.ts +0 -276
- package/server/service/building-inspection/building-inspection-query.ts +0 -242
- package/server/service/building-inspection/building-inspection-type.ts +0 -145
- package/server/service/building-inspection/building-inspection.ts +0 -108
- package/server/service/building-inspection/event-subscriber.ts +0 -20
- package/server/service/building-inspection/index.ts +0 -11
- package/server/service/checklist/checklist-history.ts +0 -96
- package/server/service/checklist/checklist-mutation.ts +0 -103
- package/server/service/checklist/checklist-query.ts +0 -58
- package/server/service/checklist/checklist-type.ts +0 -49
- package/server/service/checklist/checklist.ts +0 -127
- package/server/service/checklist/event-subscriber.ts +0 -17
- package/server/service/checklist/index.ts +0 -9
- package/server/service/checklist-item/checklist-item-mutation.ts +0 -5
- package/server/service/checklist-item/checklist-item-query.ts +0 -84
- package/server/service/checklist-item/checklist-item-type.ts +0 -12
- package/server/service/checklist-item/checklist-item.ts +0 -103
- package/server/service/checklist-item/index.ts +0 -7
- package/server/service/checklist-item-comment/checklist-item-comment-history.ts +0 -69
- package/server/service/checklist-item-comment/checklist-item-comment-mutation.ts +0 -80
- package/server/service/checklist-item-comment/checklist-item-comment-query.ts +0 -36
- package/server/service/checklist-item-comment/checklist-item-comment-type.ts +0 -32
- package/server/service/checklist-item-comment/checklist-item-comment.ts +0 -56
- package/server/service/checklist-item-comment/event-subscriber.ts +0 -17
- package/server/service/checklist-item-comment/index.ts +0 -9
- package/server/service/checklist-template/checklist-template-mutation.ts +0 -66
- package/server/service/checklist-template/checklist-template-query.ts +0 -39
- package/server/service/checklist-template/checklist-template-type.ts +0 -23
- package/server/service/checklist-template/checklist-template.ts +0 -71
- package/server/service/checklist-template/index.ts +0 -6
- package/server/service/checklist-template-item/checklist-template-item-mutation.ts +0 -64
- package/server/service/checklist-template-item/checklist-template-item-query.ts +0 -44
- package/server/service/checklist-template-item/checklist-template-item-type.ts +0 -39
- package/server/service/checklist-template-item/checklist-template-item.ts +0 -68
- package/server/service/checklist-template-item/index.ts +0 -6
- package/server/service/checklist-type/checklist-type-mutation.ts +0 -66
- package/server/service/checklist-type/checklist-type-query.ts +0 -39
- package/server/service/checklist-type/checklist-type-type.ts +0 -26
- package/server/service/checklist-type/checklist-type.ts +0 -64
- package/server/service/checklist-type/index.ts +0 -6
- package/server/service/index.ts +0 -88
- package/server/service/issue/index.ts +0 -7
- package/server/service/issue/issue-mutation.ts +0 -198
- package/server/service/issue/issue-query.ts +0 -62
- package/server/service/issue/issue-type.ts +0 -61
- package/server/service/issue/issue.ts +0 -100
- package/server/service/project-report/index.ts +0 -7
- package/server/service/project-report/project-report-mutation.ts +0 -198
- package/server/service/project-report/project-report-query.ts +0 -62
- package/server/service/project-report/project-report-type.ts +0 -61
- package/server/service/project-report/project-report.ts +0 -113
- package/server/service/supervisor/index.ts +0 -7
- package/server/service/supervisor/supervisor-mutation.ts +0 -198
- package/server/service/supervisor/supervisor-query.ts +0 -62
- package/server/service/supervisor/supervisor-type.ts +0 -61
- package/server/service/supervisor/supervisor.ts +0 -108
- package/server/tsconfig.json +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-item.js","sourceRoot":"","sources":["../../../server/service/checklist-item/checklist-item.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAA2E;AAE3E,yDAAgD;AAChD,sDAAkD;AAClD,6FAAuF;AAEvF,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,gDAAQ,CAAA;IACR,sDAAS,CAAA;AACX,CAAC,EAHW,0BAA0B,
|
|
1
|
+
{"version":3,"file":"checklist-item.js","sourceRoot":"","sources":["../../../server/service/checklist-item/checklist-item.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAA2E;AAE3E,yDAAgD;AAChD,sDAAkD;AAClD,6FAAuF;AAEvF,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,gDAAQ,CAAA;IACR,sDAAS,CAAA;AACX,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC;AAED,IAAA,+BAAgB,EAAC,0BAA0B,EAAE;IAC3C,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,OAAO;CACrB,CAAC,CAAA;AAKK,IAAM,aAAa,GAAnB,MAAM,aAAa;CA+EzB,CAAA;AA/EY,sCAAa;AAGf;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;yCACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC1C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kB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U,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC;;gDAClD;AAIlB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;8CAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC;;gDAClD;wBA9EP,aAAa;IAHzB,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IAChC,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC;IAC5H,IAAA,yBAAU,GAAE;GACA,aAAa,CA+EzB","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, Int, registerEnumType } from 'type-graphql'\n\nimport { User } from '@things-factory/auth-base'\nimport { Checklist } from '../checklist/checklist'\nimport { ChecklistItemComment } from '../checklist-item-comment/checklist-item-comment'\n\nexport enum ChecklistItemConfirmStatus {\n T = '적합',\n F = '부적합'\n}\n\nregisterEnumType(ChecklistItemConfirmStatus, {\n name: 'ChecklistItemConfirmStatus',\n description: '적합 상태'\n})\n\n@Entity({ comment: '체크 리스트 항목' })\n@Index('ix_checklist_item_0', (checklistItem: ChecklistItem) => [checklistItem.checklist], { where: '\"deleted_at\" IS NULL' })\n@ObjectType()\nexport class ChecklistItem {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, comment: '시퀀스' })\n @Field(type => Int, { nullable: true })\n sequence?: number\n\n @Column({ nullable: false, comment: '구분 (텍스트)' })\n @Field({ nullable: false })\n mainType?: string\n\n @Column({ nullable: false, comment: '상세 구분 (텍스트)' })\n @Field({ nullable: false })\n detailType?: string\n\n @Column({ nullable: true, comment: '검사 항목' })\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true, comment: '검사 기준 (레거시 단일 필드)' })\n @Field({ nullable: true })\n inspctionCriteria?: string\n\n @Column({ nullable: true, comment: 'KCS 시방서 기준 - kcs_matches[0] 오브젝트 전체를 JSON 문자열로 저장 (file_label 등 포함)' })\n @Field({ nullable: true })\n kcsCriteria?: string\n\n @Column({ nullable: true, comment: '현장 시방서 기준 - site_spec_matches[0].text' })\n @Field({ nullable: true })\n siteSpecCriteria?: string\n\n @Column({ nullable: true, comment: '시공 관리자 적합 여부 (T: 적합, F: 부적합)' })\n @Field({ nullable: true })\n constructionConfirmStatus?: ChecklistItemConfirmStatus\n\n @Column({ nullable: true, comment: '감리 관리자 적합 여부 (T: 적합, F: 부적합)' })\n @Field({ nullable: true })\n supervisoryConfirmStatus?: ChecklistItemConfirmStatus\n\n // 조치 사항 정보 (하위 테이블 참조)\n @OneToMany(() => ChecklistItemComment, checklistItemComment => checklistItemComment.checklistItem)\n @Field(() => [ChecklistItemComment])\n checklistItemComments?: ChecklistItemComment[]\n\n // 체크리스트 정보 (상위 테이블 참조)\n @ManyToOne(type => Checklist)\n @Field(type => Checklist, { nullable: true })\n checklist?: Checklist\n\n @RelationId((checklistItem: ChecklistItem) => checklistItem.checklist)\n checklistId?: 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((checklistItem: ChecklistItem) => checklistItem.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((checklistItem: ChecklistItem) => checklistItem.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChecklistItem } from './checklist-item';
|
|
2
|
+
import { ChecklistItemQuery } from './checklist-item-query';
|
|
2
3
|
import { ChecklistItemMutation } from './checklist-item-mutation';
|
|
3
4
|
export declare const entities: (typeof ChecklistItem)[];
|
|
4
|
-
export declare const resolvers: (typeof ChecklistItemMutation)[];
|
|
5
|
-
export declare const subscribers: any[];
|
|
5
|
+
export declare const resolvers: (typeof ChecklistItemQuery | typeof ChecklistItemMutation)[];
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
4
|
const checklist_item_1 = require("./checklist-item");
|
|
5
5
|
const checklist_item_query_1 = require("./checklist-item-query");
|
|
6
6
|
const checklist_item_mutation_1 = require("./checklist-item-mutation");
|
|
7
7
|
exports.entities = [checklist_item_1.ChecklistItem];
|
|
8
8
|
exports.resolvers = [checklist_item_query_1.ChecklistItemQuery, checklist_item_mutation_1.ChecklistItemMutation];
|
|
9
|
-
exports.subscribers = [];
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-item/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
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-item/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 { ChecklistItem } from './checklist-item'\nimport { ChecklistItemQuery } from './checklist-item-query'\nimport { ChecklistItemMutation } from './checklist-item-mutation'\n\nexport const entities = [ChecklistItem]\nexport const resolvers = [ChecklistItemQuery, ChecklistItemMutation]\n"]}
|
|
@@ -12,6 +12,7 @@ const ORMCONFIG = env_1.config.get('ormconfig', {});
|
|
|
12
12
|
const DATABASE_TYPE = ORMCONFIG.type;
|
|
13
13
|
let ChecklistItemCommentHistory = class ChecklistItemCommentHistory {
|
|
14
14
|
};
|
|
15
|
+
exports.ChecklistItemCommentHistory = ChecklistItemCommentHistory;
|
|
15
16
|
tslib_1.__decorate([
|
|
16
17
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
17
18
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
@@ -69,7 +70,7 @@ tslib_1.__decorate([
|
|
|
69
70
|
}),
|
|
70
71
|
tslib_1.__metadata("design:type", String)
|
|
71
72
|
], ChecklistItemCommentHistory.prototype, "action", void 0);
|
|
72
|
-
ChecklistItemCommentHistory = tslib_1.__decorate([
|
|
73
|
+
exports.ChecklistItemCommentHistory = ChecklistItemCommentHistory = tslib_1.__decorate([
|
|
73
74
|
(0, typeorm_1.Entity)(),
|
|
74
75
|
(0, typeorm_1.Index)('ix_checklist-item-comment_history_0', (checklistItemCommentHistory) => [
|
|
75
76
|
checklistItemCommentHistory.originalId
|
|
@@ -79,5 +80,4 @@ ChecklistItemCommentHistory = tslib_1.__decorate([
|
|
|
79
80
|
]),
|
|
80
81
|
(0, type_graphql_1.ObjectType)({ description: 'History Entity of ChecklistItemComment' })
|
|
81
82
|
], ChecklistItemCommentHistory);
|
|
82
|
-
exports.ChecklistItemCommentHistory = ChecklistItemCommentHistory;
|
|
83
83
|
//# sourceMappingURL=checklist-item-comment-history.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-item-comment-history.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAA8F;AAC9F,8DAAkI;AAClI,yDAAgD;AAChD,6CAA4C;AAE5C,qEAAgE;AAEhE,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAU7B,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;CAiDvC,CAAA;
|
|
1
|
+
{"version":3,"file":"checklist-item-comment-history.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAA8F;AAC9F,8DAAkI;AAClI,yDAAgD;AAChD,6CAA4C;AAE5C,qEAAgE;AAEhE,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAU7B,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;CAiDvC,CAAA;AAjDY,kEAA2B;AAG7B;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;uDACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IAChD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACV;AAKhB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC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QACnB,IAAI,EAAE,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS,CAAC,CAAC,CAAC,mCAAiB,CAAC,CAAC,CAAC,SAAS;QAC3H,MAAM,EAAE,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;KAC/G,CAAC;;2DAC+B;sCAhDtB,2BAA2B;IARvC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,qCAAqC,EAAE,CAAC,2BAAwD,EAAE,EAAE,CAAC;QAC1G,2BAA2B,CAAC,UAAU;KACvC,CAAC;IACD,IAAA,eAAK,EAAC,qCAAqC,EAAE,CAAC,2BAAwD,EAAE,EAAE,CAAC;QAC1G,2BAA2B,CAAC,aAAa;KAC1C,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;GACzD,2BAA2B,CAiDvC","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\nimport { HistoryActionColumn, HistoryActionType, HistoryEntityInterface, HistoryOriginalIdColumn } from '@operato/typeorm-history'\nimport { User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { ChecklistItemComment } from './checklist-item-comment'\nimport { ChecklistItem } from '../checklist-item/checklist-item'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index('ix_checklist-item-comment_history_0', (checklistItemCommentHistory: ChecklistItemCommentHistory) => [\n checklistItemCommentHistory.originalId\n])\n@Index('ix_checklist-item-comment_history_1', (checklistItemCommentHistory: ChecklistItemCommentHistory) => [\n checklistItemCommentHistory.checklistItem\n])\n@ObjectType({ description: 'History Entity of ChecklistItemComment' })\nexport class ChecklistItemCommentHistory implements HistoryEntityInterface<ChecklistItemComment> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, comment: '조치 사항 코멘트' })\n @Field({ nullable: true })\n comment?: string\n\n // 체크리스트 아이템 정보 (상위 테이블 참조)\n @ManyToOne(type => ChecklistItem)\n @Field(type => ChecklistItem, { nullable: true })\n checklistItem?: ChecklistItem\n\n @RelationId((checklistItemComment: ChecklistItemComment) => checklistItemComment.checklistItem)\n checklistItemId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @Column({ nullable: true })\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((checklistItemComment: ChecklistItemComment) => checklistItemComment.creator)\n creatorId?: string\n\n @HistoryOriginalIdColumn()\n public originalId!: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n enum: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? HistoryActionType : undefined,\n length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 32\n })\n public action!: HistoryActionType\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChecklistItemComment } from './checklist-item-comment';
|
|
2
2
|
import { NewChecklistItemComment, ChecklistItemCommentPatch } from './checklist-item-comment-type';
|
|
3
3
|
export declare class ChecklistItemCommentMutation {
|
|
4
|
+
private getStatusByChecklistItemId;
|
|
4
5
|
createChecklistItemComment(checklistItemComment: NewChecklistItemComment, context: ResolverContext): Promise<ChecklistItemComment>;
|
|
5
6
|
updateChecklistItemComment(id: string, patch: ChecklistItemCommentPatch, context: ResolverContext): Promise<ChecklistItemComment>;
|
|
6
7
|
deleteChecklistItemComment(id: string, context: ResolverContext): Promise<boolean>;
|
|
@@ -8,14 +8,39 @@ const checklist_item_comment_1 = require("./checklist-item-comment");
|
|
|
8
8
|
const checklist_item_comment_type_1 = require("./checklist-item-comment-type");
|
|
9
9
|
const building_inspection_1 = require("../building-inspection/building-inspection");
|
|
10
10
|
const checklist_item_query_1 = require("../checklist-item/checklist-item-query");
|
|
11
|
+
const checklist_1 = require("../checklist/checklist");
|
|
12
|
+
const checklist_item_1 = require("../checklist-item/checklist-item");
|
|
11
13
|
let ChecklistItemCommentMutation = class ChecklistItemCommentMutation {
|
|
14
|
+
async getStatusByChecklistItemId(checklistItemId, tx) {
|
|
15
|
+
var _a;
|
|
16
|
+
// 1. ChecklistItem에서 Checklist 정보 조회
|
|
17
|
+
const checklistItem = await (0, shell_1.getRepository)(checklist_item_1.ChecklistItem, tx).findOne({
|
|
18
|
+
where: { id: checklistItemId },
|
|
19
|
+
relations: ['checklist']
|
|
20
|
+
});
|
|
21
|
+
if (!checklistItem || !checklistItem.checklist) {
|
|
22
|
+
throw new Error('체크리스트 아이템을 찾을 수 없습니다.');
|
|
23
|
+
}
|
|
24
|
+
const checklist = checklistItem.checklist;
|
|
25
|
+
// 2. checklistReferenceType에 따라 분기 처리
|
|
26
|
+
if (checklist.checklistReferenceType === checklist_1.ChecklistReferenceType.INSPECTION) {
|
|
27
|
+
// INSPECTION: 기존 방식 - BuildingInspection에서 status 조회
|
|
28
|
+
const checklistItemQuery = new checklist_item_query_1.ChecklistItemQuery();
|
|
29
|
+
const inspection = await checklistItemQuery.inspectionByChecklistItemId(checklistItemId);
|
|
30
|
+
return inspection === null || inspection === void 0 ? void 0 : inspection.status;
|
|
31
|
+
}
|
|
32
|
+
else if (checklist.checklistReferenceType === checklist_1.ChecklistReferenceType.TASK) {
|
|
33
|
+
// TASK: TaskChecklistBinding에서 status 조회
|
|
34
|
+
const result = await tx.query('SELECT status FROM task_checklist_bindings WHERE checklist_id = $1', [checklist.id]);
|
|
35
|
+
return (_a = result === null || result === void 0 ? void 0 : result[0]) === null || _a === void 0 ? void 0 : _a.status;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
12
38
|
async createChecklistItemComment(checklistItemComment, context) {
|
|
13
39
|
const { user, tx } = context.state;
|
|
14
40
|
const { comment, checklistItemId } = checklistItemComment;
|
|
15
41
|
// 합격 상태인지 체크
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
if (inspection.status === building_inspection_1.BuildingInspectionStatus.PASS) {
|
|
42
|
+
const status = await this.getStatusByChecklistItemId(checklistItemId, tx);
|
|
43
|
+
if (status === building_inspection_1.BuildingInspectionStatus.PASS) {
|
|
19
44
|
throw new Error('완료 상태인 검측정보를 변경할 수 없습니다.');
|
|
20
45
|
}
|
|
21
46
|
const result = await (0, shell_1.getRepository)(checklist_item_comment_1.ChecklistItemComment, tx).save({
|
|
@@ -42,16 +67,19 @@ let ChecklistItemCommentMutation = class ChecklistItemCommentMutation {
|
|
|
42
67
|
const checklistItemComment = await repository.findOne({
|
|
43
68
|
where: { id }
|
|
44
69
|
});
|
|
70
|
+
if (!checklistItemComment) {
|
|
71
|
+
throw new Error('체크리스트 아이템 코멘트를 찾을 수 없습니다.');
|
|
72
|
+
}
|
|
45
73
|
// 합격 상태인지 체크
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
if (inspection.status === building_inspection_1.BuildingInspectionStatus.PASS) {
|
|
74
|
+
const status = await this.getStatusByChecklistItemId(checklistItemComment.checklistItemId, tx);
|
|
75
|
+
if (status === building_inspection_1.BuildingInspectionStatus.PASS) {
|
|
49
76
|
throw new Error('완료 상태인 검측정보를 변경할 수 없습니다.');
|
|
50
77
|
}
|
|
51
78
|
await repository.softDelete({ id });
|
|
52
79
|
return true;
|
|
53
80
|
}
|
|
54
81
|
};
|
|
82
|
+
exports.ChecklistItemCommentMutation = ChecklistItemCommentMutation;
|
|
55
83
|
tslib_1.__decorate([
|
|
56
84
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
57
85
|
(0, type_graphql_1.Mutation)(returns => checklist_item_comment_1.ChecklistItemComment, { description: 'To create new ChecklistItemComment' }),
|
|
@@ -80,8 +108,7 @@ tslib_1.__decorate([
|
|
|
80
108
|
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
81
109
|
tslib_1.__metadata("design:returntype", Promise)
|
|
82
110
|
], ChecklistItemCommentMutation.prototype, "deleteChecklistItemComment", null);
|
|
83
|
-
ChecklistItemCommentMutation = tslib_1.__decorate([
|
|
111
|
+
exports.ChecklistItemCommentMutation = ChecklistItemCommentMutation = tslib_1.__decorate([
|
|
84
112
|
(0, type_graphql_1.Resolver)(checklist_item_comment_1.ChecklistItemComment)
|
|
85
113
|
], ChecklistItemCommentMutation);
|
|
86
|
-
exports.ChecklistItemCommentMutation = ChecklistItemCommentMutation;
|
|
87
114
|
//# sourceMappingURL=checklist-item-comment-mutation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-item-comment-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,iDAAqD;AACrD,qEAA+D;AAC/D,+EAAkG;AAClG,oFAAqF;AACrF,iFAA2E;
|
|
1
|
+
{"version":3,"file":"checklist-item-comment-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,iDAAqD;AACrD,qEAA+D;AAC/D,+EAAkG;AAClG,oFAAqF;AACrF,iFAA2E;AAC3E,sDAA+D;AAC/D,qEAAgE;AAGzD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAC/B,KAAK,CAAC,0BAA0B,CAAC,eAAuB,EAAE,EAAO;;QACvE,qCAAqC;QACrC,MAAM,aAAa,GAAG,MAAM,IAAA,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AA,kBAAG,GAAE,CAAA;;;;8EAoB7D;uCAlGU,4BAA4B;IADxC,IAAA,uBAAQ,EAAC,6CAAoB,CAAC;GAClB,4BAA4B,CAmGxC","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { getRepository } from '@things-factory/shell'\nimport { ChecklistItemComment } from './checklist-item-comment'\nimport { NewChecklistItemComment, ChecklistItemCommentPatch } from './checklist-item-comment-type'\nimport { BuildingInspectionStatus } from '../building-inspection/building-inspection'\nimport { ChecklistItemQuery } from '../checklist-item/checklist-item-query'\nimport { ChecklistReferenceType } from '../checklist/checklist'\nimport { ChecklistItem } from '../checklist-item/checklist-item'\n\n@Resolver(ChecklistItemComment)\nexport class ChecklistItemCommentMutation {\n private async getStatusByChecklistItemId(checklistItemId: string, tx: any) {\n // 1. ChecklistItem에서 Checklist 정보 조회\n const checklistItem = await getRepository(ChecklistItem, tx).findOne({\n where: { id: checklistItemId },\n relations: ['checklist']\n })\n\n if (!checklistItem || !checklistItem.checklist) {\n throw new Error('체크리스트 아이템을 찾을 수 없습니다.')\n }\n\n const checklist = checklistItem.checklist\n\n // 2. checklistReferenceType에 따라 분기 처리\n if (checklist.checklistReferenceType === ChecklistReferenceType.INSPECTION) {\n // INSPECTION: 기존 방식 - BuildingInspection에서 status 조회\n const checklistItemQuery = new ChecklistItemQuery()\n const inspection = await checklistItemQuery.inspectionByChecklistItemId(checklistItemId)\n return inspection?.status\n } else if (checklist.checklistReferenceType === ChecklistReferenceType.TASK) {\n // TASK: TaskChecklistBinding에서 status 조회\n const result = await tx.query('SELECT status FROM task_checklist_bindings WHERE checklist_id = $1', [checklist.id])\n return result?.[0]?.status\n }\n }\n\n @Directive('@transaction')\n @Mutation(returns => ChecklistItemComment, { description: 'To create new ChecklistItemComment' })\n async createChecklistItemComment(\n @Arg('checklistItemComment') checklistItemComment: NewChecklistItemComment,\n @Ctx() context: ResolverContext\n ): Promise<ChecklistItemComment> {\n const { user, tx } = context.state\n const { comment, checklistItemId } = checklistItemComment\n\n // 합격 상태인지 체크\n const status = await this.getStatusByChecklistItemId(checklistItemId, tx)\n if (status === BuildingInspectionStatus.PASS) {\n throw new Error('완료 상태인 검측정보를 변경할 수 없습니다.')\n }\n\n const result = await getRepository(ChecklistItemComment, tx).save({\n comment,\n checklistItem: { id: checklistItemId },\n createdAt: new Date(),\n creator: user,\n updater: user\n })\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => ChecklistItemComment, { description: 'To modify ChecklistItemComment information' })\n async updateChecklistItemComment(\n @Arg('id') id: string,\n @Arg('patch') patch: ChecklistItemCommentPatch,\n @Ctx() context: ResolverContext\n ): Promise<ChecklistItemComment> {\n const { user, tx } = context.state\n\n const repository = getRepository(ChecklistItemComment, tx)\n const checklistItemComment = await repository.findOne({\n where: { id }\n })\n\n const result = await repository.save({\n ...checklistItemComment,\n ...patch,\n updater: user\n })\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete ChecklistItemComment' })\n async deleteChecklistItemComment(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<boolean> {\n const { tx } = context.state\n const repository = getRepository(ChecklistItemComment, tx)\n const checklistItemComment = await repository.findOne({\n where: { id }\n })\n\n if (!checklistItemComment) {\n throw new Error('체크리스트 아이템 코멘트를 찾을 수 없습니다.')\n }\n\n // 합격 상태인지 체크\n const status = await this.getStatusByChecklistItemId(checklistItemComment.checklistItemId, tx)\n if (status === BuildingInspectionStatus.PASS) {\n throw new Error('완료 상태인 검측정보를 변경할 수 없습니다.')\n }\n\n await repository.softDelete({ id })\n\n return true\n }\n}\n"]}
|
|
@@ -26,6 +26,7 @@ let ChecklistItemCommentQuery = class ChecklistItemCommentQuery {
|
|
|
26
26
|
return checklistItemComment.creatorId && (await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistItemComment.creatorId }));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
+
exports.ChecklistItemCommentQuery = ChecklistItemCommentQuery;
|
|
29
30
|
tslib_1.__decorate([
|
|
30
31
|
(0, type_graphql_1.Query)(returns => [checklist_item_comment_1.ChecklistItemComment], { description: 'To fetch multiple ChecklistItemComments' }),
|
|
31
32
|
tslib_1.__param(0, (0, type_graphql_1.Arg)('checklistItemId')),
|
|
@@ -42,8 +43,7 @@ tslib_1.__decorate([
|
|
|
42
43
|
tslib_1.__metadata("design:paramtypes", [checklist_item_comment_1.ChecklistItemComment]),
|
|
43
44
|
tslib_1.__metadata("design:returntype", Promise)
|
|
44
45
|
], ChecklistItemCommentQuery.prototype, "creator", null);
|
|
45
|
-
ChecklistItemCommentQuery = tslib_1.__decorate([
|
|
46
|
+
exports.ChecklistItemCommentQuery = ChecklistItemCommentQuery = tslib_1.__decorate([
|
|
46
47
|
(0, type_graphql_1.Resolver)(checklist_item_comment_1.ChecklistItemComment)
|
|
47
48
|
], ChecklistItemCommentQuery);
|
|
48
|
-
exports.ChecklistItemCommentQuery = ChecklistItemCommentQuery;
|
|
49
49
|
//# sourceMappingURL=checklist-item-comment-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-item-comment-query.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA6E;AAC7E,iDAAiE;AACjE,yDAAgD;AAChD,qEAA+D;AAGxD,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAE9B,AAAN,KAAK,CAAC,qBAAqB,CACD,eAAuB,EAC5B,UAAsB,EAClC,OAAwB;QAE/B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAA;QAElC,uBAAuB;QACvB,MAAM,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,KAAK,CAAA;QAEjC,qBAAqB;QACrB,MAAM,KAAK,GAAG,MAAM,IAAA,qBAAa,EAAC,6CAAoB,CAAC;aACpD,kBAAkB,CAAC,KAAK,CAAC;aACzB,SAAS,CAAC,mBAAmB,EAAE,IAAI,CAAC;aACpC,KAAK,CAAC,sCAAsC,EAAE,EAAE,eAAe,EAAE,CAAC;aAClE,IAAI,CAAC,MAAM,CAAC;aACZ,IAAI,CAAC,KAAK,CAAC;aACX,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC;aAChC,OAAO,EAAE,CAAA;QAEZ,OAAO,KAAK,CAAA;IACd,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,oBAA0C;QAC9D,OAAO,oBAAoB,CAAC,SAAS,IAAI,CAAC,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAA;IACxH,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"checklist-item-comment-query.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA6E;AAC7E,iDAAiE;AACjE,yDAAgD;AAChD,qEAA+D;AAGxD,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAE9B,AAAN,KAAK,CAAC,qBAAqB,CACD,eAAuB,EAC5B,UAAsB,EAClC,OAAwB;QAE/B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAA;QAElC,uBAAuB;QACvB,MAAM,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,KAAK,CAAA;QAEjC,qBAAqB;QACrB,MAAM,KAAK,GAAG,MAAM,IAAA,qBAAa,EAAC,6CAAoB,CAAC;aACpD,kBAAkB,CAAC,KAAK,CAAC;aACzB,SAAS,CAAC,mBAAmB,EAAE,IAAI,CAAC;aACpC,KAAK,CAAC,sCAAsC,EAAE,EAAE,eAAe,EAAE,CAAC;aAClE,IAAI,CAAC,MAAM,CAAC;aACZ,IAAI,CAAC,KAAK,CAAC;aACX,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC;aAChC,OAAO,EAAE,CAAA;QAEZ,OAAO,KAAK,CAAA;IACd,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,oBAA0C;QAC9D,OAAO,oBAAoB,CAAC,SAAS,IAAI,CAAC,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAA;IACxH,CAAC;CACF,CAAA;AA7BY,8DAAyB;AAE9B;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC,6CAAoB,CAAC,EAAE,EAAE,WAAW,EAAE,yCAAyC,EAAE,CAAC;IAElG,mBAAA,IAAA,kBAAG,EAAC,iBAAiB,CAAC,CAAA;IACtB,mBAAA,IAAA,kBAAG,EAAC,YAAY,CAAC,CAAA;IACjB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;qDADyB,kBAAU;;sEAmB1C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,6CAAoB;;wDAE/D;oCA5BU,yBAAyB;IADrC,IAAA,uBAAQ,EAAC,6CAAoB,CAAC;GAClB,yBAAyB,CA6BrC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Arg, Ctx } from 'type-graphql'\nimport { getRepository, Pagination } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistItemComment } from './checklist-item-comment'\n\n@Resolver(ChecklistItemComment)\nexport class ChecklistItemCommentQuery {\n @Query(returns => [ChecklistItemComment], { description: 'To fetch multiple ChecklistItemComments' })\n async checklistItemComments(\n @Arg('checklistItemId') checklistItemId: string,\n @Arg('pagination') pagination: Pagination,\n @Ctx() context: ResolverContext\n ): Promise<ChecklistItemComment[]> {\n const { limit, page } = pagination\n\n // 페이지네이션을 위한 offset 계산\n const offset = (page - 1) * limit\n\n // 코멘트와 총 개수를 가져오는 쿼리\n const items = await getRepository(ChecklistItemComment)\n .createQueryBuilder('cic')\n .innerJoin('cic.checklistItem', 'ci')\n .where('cic.checklistItem = :checklistItemId', { checklistItemId })\n .skip(offset)\n .take(limit)\n .orderBy('cic.createdAt', 'DESC')\n .getMany()\n\n return items\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistItemComment: ChecklistItemComment): Promise<User> {\n return checklistItemComment.creatorId && (await getRepository(User).findOneBy({ id: checklistItemComment.creatorId }))\n }\n}\n"]}
|
|
@@ -6,6 +6,7 @@ const type_graphql_1 = require("type-graphql");
|
|
|
6
6
|
const checklist_item_comment_1 = require("./checklist-item-comment");
|
|
7
7
|
let NewChecklistItemComment = class NewChecklistItemComment {
|
|
8
8
|
};
|
|
9
|
+
exports.NewChecklistItemComment = NewChecklistItemComment;
|
|
9
10
|
tslib_1.__decorate([
|
|
10
11
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
11
12
|
tslib_1.__metadata("design:type", String)
|
|
@@ -14,12 +15,12 @@ tslib_1.__decorate([
|
|
|
14
15
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
15
16
|
tslib_1.__metadata("design:type", String)
|
|
16
17
|
], NewChecklistItemComment.prototype, "checklistItemId", void 0);
|
|
17
|
-
NewChecklistItemComment = tslib_1.__decorate([
|
|
18
|
+
exports.NewChecklistItemComment = NewChecklistItemComment = tslib_1.__decorate([
|
|
18
19
|
(0, type_graphql_1.InputType)()
|
|
19
20
|
], NewChecklistItemComment);
|
|
20
|
-
exports.NewChecklistItemComment = NewChecklistItemComment;
|
|
21
21
|
let ChecklistItemCommentPatch = class ChecklistItemCommentPatch {
|
|
22
22
|
};
|
|
23
|
+
exports.ChecklistItemCommentPatch = ChecklistItemCommentPatch;
|
|
23
24
|
tslib_1.__decorate([
|
|
24
25
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
25
26
|
tslib_1.__metadata("design:type", String)
|
|
@@ -32,12 +33,12 @@ tslib_1.__decorate([
|
|
|
32
33
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
33
34
|
tslib_1.__metadata("design:type", String)
|
|
34
35
|
], ChecklistItemCommentPatch.prototype, "checklistItemId", void 0);
|
|
35
|
-
ChecklistItemCommentPatch = tslib_1.__decorate([
|
|
36
|
+
exports.ChecklistItemCommentPatch = ChecklistItemCommentPatch = tslib_1.__decorate([
|
|
36
37
|
(0, type_graphql_1.InputType)()
|
|
37
38
|
], ChecklistItemCommentPatch);
|
|
38
|
-
exports.ChecklistItemCommentPatch = ChecklistItemCommentPatch;
|
|
39
39
|
let ChecklistItemCommentList = class ChecklistItemCommentList {
|
|
40
40
|
};
|
|
41
|
+
exports.ChecklistItemCommentList = ChecklistItemCommentList;
|
|
41
42
|
tslib_1.__decorate([
|
|
42
43
|
(0, type_graphql_1.Field)(type => [checklist_item_comment_1.ChecklistItemComment]),
|
|
43
44
|
tslib_1.__metadata("design:type", Array)
|
|
@@ -46,8 +47,7 @@ tslib_1.__decorate([
|
|
|
46
47
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
47
48
|
tslib_1.__metadata("design:type", Number)
|
|
48
49
|
], ChecklistItemCommentList.prototype, "total", void 0);
|
|
49
|
-
ChecklistItemCommentList = tslib_1.__decorate([
|
|
50
|
+
exports.ChecklistItemCommentList = ChecklistItemCommentList = tslib_1.__decorate([
|
|
50
51
|
(0, type_graphql_1.ObjectType)()
|
|
51
52
|
], ChecklistItemCommentList);
|
|
52
|
-
exports.ChecklistItemCommentList = ChecklistItemCommentList;
|
|
53
53
|
//# sourceMappingURL=checklist-item-comment-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-item-comment-type.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,qEAA+D;AAGxD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAMnC,CAAA;
|
|
1
|
+
{"version":3,"file":"checklist-item-comment-type.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,qEAA+D;AAGxD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAMnC,CAAA;AANY,0DAAuB;AAElC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACF;kCALb,uBAAuB;IADnC,IAAA,wBAAS,GAAE;GACC,uBAAuB,CAMnC;AAGM,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CASrC,CAAA;AATY,8DAAyB;AAEpC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACF;oCARb,yBAAyB;IADrC,IAAA,wBAAS,GAAE;GACC,yBAAyB,CASrC;AAGM,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAMpC,CAAA;AANY,4DAAwB;AAEnC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,6CAAoB,CAAC,CAAC;;uDACT;AAG7B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;uDACN;mCALF,wBAAwB;IADpC,IAAA,yBAAU,GAAE;GACA,wBAAwB,CAMpC","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ChecklistItemComment } from './checklist-item-comment'\n\n@InputType()\nexport class NewChecklistItemComment {\n @Field({ nullable: true })\n comment?: string\n\n @Field({ nullable: true })\n checklistItemId?: string\n}\n\n@InputType()\nexport class ChecklistItemCommentPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n comment?: string\n\n @Field({ nullable: true })\n checklistItemId?: string\n}\n\n@ObjectType()\nexport class ChecklistItemCommentList {\n @Field(type => [ChecklistItemComment])\n items: ChecklistItemComment[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -8,6 +8,7 @@ const auth_base_1 = require("@things-factory/auth-base");
|
|
|
8
8
|
const checklist_item_1 = require("../checklist-item/checklist-item");
|
|
9
9
|
let ChecklistItemComment = class ChecklistItemComment {
|
|
10
10
|
};
|
|
11
|
+
exports.ChecklistItemComment = ChecklistItemComment;
|
|
11
12
|
tslib_1.__decorate([
|
|
12
13
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
13
14
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
@@ -46,12 +47,11 @@ tslib_1.__decorate([
|
|
|
46
47
|
(0, typeorm_1.RelationId)((checklistItemComment) => checklistItemComment.creator),
|
|
47
48
|
tslib_1.__metadata("design:type", String)
|
|
48
49
|
], ChecklistItemComment.prototype, "creatorId", void 0);
|
|
49
|
-
ChecklistItemComment = tslib_1.__decorate([
|
|
50
|
+
exports.ChecklistItemComment = ChecklistItemComment = tslib_1.__decorate([
|
|
50
51
|
(0, typeorm_1.Entity)(),
|
|
51
52
|
(0, typeorm_1.Index)('ix_checklist_item_comment_0', (checklistItemComment) => [checklistItemComment.checklistItem, checklistItemComment.createdAt], {
|
|
52
53
|
where: '"deleted_at" IS NULL'
|
|
53
54
|
}),
|
|
54
55
|
(0, type_graphql_1.ObjectType)({ description: 'Entity for ChecklistItemComment' })
|
|
55
56
|
], ChecklistItemComment);
|
|
56
|
-
exports.ChecklistItemComment = ChecklistItemComment;
|
|
57
57
|
//# sourceMappingURL=checklist-item-comment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-item-comment.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment.ts"],"names":[],"mappings":";;;;AAAA,qCAUgB;AAChB,+CAAoD;AACpD,yDAAgD;AAChD,qEAAgE;AAWzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CA+BhC,CAAA;
|
|
1
|
+
{"version":3,"file":"checklist-item-comment.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment.ts"],"names":[],"mappings":";;;;AAAA,qCAUgB;AAChB,+CAAoD;AACpD,yDAAgD;AAChD,qEAAgE;AAWzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CA+BhC,CAAA;AA/BY,oDAAoB;AAGtB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;gDACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IAChD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACV;AAKhB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,CAAC;IAChC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjC,8BAAa;2DAAA;AAG7B;IADC,IAAA,oBAAU,EAAC,CAAC,oBAA0C,EAAE,EAAE,CAAC,oBAAoB,CAAC,aAAa,CAAC;;6DACvE;AAIxB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;uDAAA;AAIhB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;uDAAA;AAIhB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;qDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,oBAA0C,EAAE,EAAE,CAAC,oBAAoB,CAAC,OAAO,CAAC;;uDACvE;+BA9BP,oBAAoB;IAThC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,6BAA6B,EAC7B,CAAC,oBAA0C,EAAE,EAAE,CAAC,CAAC,oBAAoB,CAAC,aAAa,EAAE,oBAAoB,CAAC,SAAS,CAAC,EACpH;QACE,KAAK,EAAE,sBAAsB;KAC9B,CACF;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;GAClD,oBAAoB,CA+BhC","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 } from 'type-graphql'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistItem } from '../checklist-item/checklist-item'\n\n@Entity()\n@Index(\n 'ix_checklist_item_comment_0',\n (checklistItemComment: ChecklistItemComment) => [checklistItemComment.checklistItem, checklistItemComment.createdAt],\n {\n where: '\"deleted_at\" IS NULL'\n }\n)\n@ObjectType({ description: 'Entity for ChecklistItemComment' })\nexport class ChecklistItemComment {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, comment: '조치 사항 코멘트' })\n @Field({ nullable: true })\n comment?: string\n\n // 체크리스트 아이템 정보 (상위 테이블 참조)\n @ManyToOne(type => ChecklistItem)\n @Field(type => ChecklistItem, { nullable: true })\n checklistItem?: ChecklistItem\n\n @RelationId((checklistItemComment: ChecklistItemComment) => checklistItemComment.checklistItem)\n checklistItemId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: 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((checklistItemComment: ChecklistItemComment) => checklistItemComment.creator)\n creatorId?: string\n}\n"]}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ChecklistItemComment } from './checklist-item-comment';
|
|
2
|
-
import { ChecklistItemCommentHistoryEntitySubscriber } from './event-subscriber';
|
|
3
2
|
import { ChecklistItemCommentQuery } from './checklist-item-comment-query';
|
|
4
3
|
import { ChecklistItemCommentMutation } from './checklist-item-comment-mutation';
|
|
5
4
|
export declare const entities: (typeof ChecklistItemComment)[];
|
|
6
5
|
export declare const resolvers: (typeof ChecklistItemCommentQuery | typeof ChecklistItemCommentMutation)[];
|
|
7
|
-
export declare const subscribers: (typeof ChecklistItemCommentHistoryEntitySubscriber)[];
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
4
|
const checklist_item_comment_1 = require("./checklist-item-comment");
|
|
5
5
|
const checklist_item_comment_history_1 = require("./checklist-item-comment-history");
|
|
6
|
-
const event_subscriber_1 = require("./event-subscriber");
|
|
7
6
|
const checklist_item_comment_query_1 = require("./checklist-item-comment-query");
|
|
8
7
|
const checklist_item_comment_mutation_1 = require("./checklist-item-comment-mutation");
|
|
9
8
|
exports.entities = [checklist_item_comment_1.ChecklistItemComment, checklist_item_comment_history_1.ChecklistItemCommentHistory];
|
|
10
9
|
exports.resolvers = [checklist_item_comment_query_1.ChecklistItemCommentQuery, checklist_item_comment_mutation_1.ChecklistItemCommentMutation];
|
|
11
|
-
exports.subscribers = [event_subscriber_1.ChecklistItemCommentHistoryEntitySubscriber];
|
|
12
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/index.ts"],"names":[],"mappings":";;;AAAA,qEAA+D;AAC/D,qFAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/index.ts"],"names":[],"mappings":";;;AAAA,qEAA+D;AAC/D,qFAA8E;AAC9E,iFAA0E;AAC1E,uFAAgF;AAEnE,QAAA,QAAQ,GAAG,CAAC,6CAAoB,EAAE,4DAA2B,CAAC,CAAA;AAC9D,QAAA,SAAS,GAAG,CAAC,wDAAyB,EAAE,8DAA4B,CAAC,CAAA","sourcesContent":["import { ChecklistItemComment } from './checklist-item-comment'\nimport { ChecklistItemCommentHistory } from './checklist-item-comment-history'\nimport { ChecklistItemCommentQuery } from './checklist-item-comment-query'\nimport { ChecklistItemCommentMutation } from './checklist-item-comment-mutation'\n\nexport const entities = [ChecklistItemComment, ChecklistItemCommentHistory]\nexport const resolvers = [ChecklistItemCommentQuery, ChecklistItemCommentMutation]\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Attachment } from '@things-factory/attachment-base';
|
|
2
|
+
import { ListParam } from '@things-factory/shell';
|
|
3
|
+
import { User } from '@things-factory/auth-base';
|
|
4
|
+
import { ChecklistItemHistory } from './checklist-item-history';
|
|
5
|
+
import { ChecklistItemHistoryList } from './checklist-item-history-type';
|
|
6
|
+
import { ChecklistItemComment } from '../checklist-item-comment/checklist-item-comment';
|
|
7
|
+
export declare class ChecklistItemHistoryQuery {
|
|
8
|
+
checklistItemHistory(id: string, context: ResolverContext): Promise<ChecklistItemHistory>;
|
|
9
|
+
checklistItemHistories(params: ListParam, context: ResolverContext): Promise<ChecklistItemHistoryList>;
|
|
10
|
+
checklistItemComments(checklistItemHistory: ChecklistItemHistory): Promise<ChecklistItemComment[]>;
|
|
11
|
+
checklistItemCommentCount(checklistItemHistory: ChecklistItemHistory): Promise<number>;
|
|
12
|
+
checklistItemAttachments(checklistItemHistory: ChecklistItemHistory, description?: string): Promise<Attachment[]>;
|
|
13
|
+
checklistItemAttachmentCount(checklistItemHistory: ChecklistItemHistory): Promise<number>;
|
|
14
|
+
updater(checklistItemHistory: ChecklistItemHistory): Promise<User>;
|
|
15
|
+
creator(checklistItemHistory: ChecklistItemHistory): Promise<User>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistItemHistoryQuery = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
7
|
+
const shell_1 = require("@things-factory/shell");
|
|
8
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
+
const checklist_item_history_1 = require("./checklist-item-history");
|
|
10
|
+
const checklist_item_history_type_1 = require("./checklist-item-history-type");
|
|
11
|
+
const checklist_item_comment_1 = require("../checklist-item-comment/checklist-item-comment");
|
|
12
|
+
let ChecklistItemHistoryQuery = class ChecklistItemHistoryQuery {
|
|
13
|
+
async checklistItemHistory(id, context) {
|
|
14
|
+
return await (0, shell_1.getRepository)(checklist_item_history_1.ChecklistItemHistory).findOne({
|
|
15
|
+
where: { id }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
async checklistItemHistories(params, context) {
|
|
19
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
20
|
+
params,
|
|
21
|
+
repository: await (0, shell_1.getRepository)(checklist_item_history_1.ChecklistItemHistory),
|
|
22
|
+
searchables: ['name', 'description']
|
|
23
|
+
});
|
|
24
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
25
|
+
return { items, total };
|
|
26
|
+
}
|
|
27
|
+
async checklistItemComments(checklistItemHistory) {
|
|
28
|
+
return await (0, shell_1.getRepository)(checklist_item_comment_1.ChecklistItemComment).findBy({ checklistItem: { id: checklistItemHistory.id } });
|
|
29
|
+
}
|
|
30
|
+
async checklistItemCommentCount(checklistItemHistory) {
|
|
31
|
+
return await (0, shell_1.getRepository)(checklist_item_comment_1.ChecklistItemComment).countBy({ checklistItem: { id: checklistItemHistory.id } });
|
|
32
|
+
}
|
|
33
|
+
async checklistItemAttachments(checklistItemHistory, description) {
|
|
34
|
+
return await (0, shell_1.getRepository)(attachment_base_1.Attachment).find({
|
|
35
|
+
where: {
|
|
36
|
+
refType: checklist_item_history_1.ChecklistItemHistory.name,
|
|
37
|
+
refBy: checklistItemHistory.id,
|
|
38
|
+
description: description // 검측 상태로 받으며 어떤 스탭에 올렸는지로 시공자/감리자 구분
|
|
39
|
+
},
|
|
40
|
+
order: {
|
|
41
|
+
createdAt: 'DESC'
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
async checklistItemAttachmentCount(checklistItemHistory) {
|
|
46
|
+
return await (0, shell_1.getRepository)(attachment_base_1.Attachment).count({
|
|
47
|
+
where: {
|
|
48
|
+
refType: checklist_item_history_1.ChecklistItemHistory.name,
|
|
49
|
+
refBy: checklistItemHistory.id
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
async updater(checklistItemHistory) {
|
|
54
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistItemHistory.updaterId });
|
|
55
|
+
}
|
|
56
|
+
async creator(checklistItemHistory) {
|
|
57
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistItemHistory.creatorId });
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.ChecklistItemHistoryQuery = ChecklistItemHistoryQuery;
|
|
61
|
+
tslib_1.__decorate([
|
|
62
|
+
(0, type_graphql_1.Query)(returns => checklist_item_history_1.ChecklistItemHistory, { nullable: true, description: 'To fetch a ChecklistItemHistory' }),
|
|
63
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
64
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
65
|
+
tslib_1.__metadata("design:type", Function),
|
|
66
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
67
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
68
|
+
], ChecklistItemHistoryQuery.prototype, "checklistItemHistory", null);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, type_graphql_1.Query)(returns => checklist_item_history_type_1.ChecklistItemHistoryList, { description: 'To fetch multiple ChecklistItems' }),
|
|
71
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
72
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
73
|
+
tslib_1.__metadata("design:type", Function),
|
|
74
|
+
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
75
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
76
|
+
], ChecklistItemHistoryQuery.prototype, "checklistItemHistories", null);
|
|
77
|
+
tslib_1.__decorate([
|
|
78
|
+
(0, type_graphql_1.FieldResolver)(type => [checklist_item_comment_1.ChecklistItemComment]),
|
|
79
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
80
|
+
tslib_1.__metadata("design:type", Function),
|
|
81
|
+
tslib_1.__metadata("design:paramtypes", [checklist_item_history_1.ChecklistItemHistory]),
|
|
82
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
83
|
+
], ChecklistItemHistoryQuery.prototype, "checklistItemComments", null);
|
|
84
|
+
tslib_1.__decorate([
|
|
85
|
+
(0, type_graphql_1.FieldResolver)(type => Number),
|
|
86
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
87
|
+
tslib_1.__metadata("design:type", Function),
|
|
88
|
+
tslib_1.__metadata("design:paramtypes", [checklist_item_history_1.ChecklistItemHistory]),
|
|
89
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
90
|
+
], ChecklistItemHistoryQuery.prototype, "checklistItemCommentCount", null);
|
|
91
|
+
tslib_1.__decorate([
|
|
92
|
+
(0, type_graphql_1.FieldResolver)(type => [attachment_base_1.Attachment]),
|
|
93
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
94
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('description', { nullable: true })),
|
|
95
|
+
tslib_1.__metadata("design:type", Function),
|
|
96
|
+
tslib_1.__metadata("design:paramtypes", [checklist_item_history_1.ChecklistItemHistory, String]),
|
|
97
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
98
|
+
], ChecklistItemHistoryQuery.prototype, "checklistItemAttachments", null);
|
|
99
|
+
tslib_1.__decorate([
|
|
100
|
+
(0, type_graphql_1.FieldResolver)(type => Number),
|
|
101
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
102
|
+
tslib_1.__metadata("design:type", Function),
|
|
103
|
+
tslib_1.__metadata("design:paramtypes", [checklist_item_history_1.ChecklistItemHistory]),
|
|
104
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
105
|
+
], ChecklistItemHistoryQuery.prototype, "checklistItemAttachmentCount", null);
|
|
106
|
+
tslib_1.__decorate([
|
|
107
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
108
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
109
|
+
tslib_1.__metadata("design:type", Function),
|
|
110
|
+
tslib_1.__metadata("design:paramtypes", [checklist_item_history_1.ChecklistItemHistory]),
|
|
111
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
112
|
+
], ChecklistItemHistoryQuery.prototype, "updater", null);
|
|
113
|
+
tslib_1.__decorate([
|
|
114
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
115
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
116
|
+
tslib_1.__metadata("design:type", Function),
|
|
117
|
+
tslib_1.__metadata("design:paramtypes", [checklist_item_history_1.ChecklistItemHistory]),
|
|
118
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
119
|
+
], ChecklistItemHistoryQuery.prototype, "creator", null);
|
|
120
|
+
exports.ChecklistItemHistoryQuery = ChecklistItemHistoryQuery = tslib_1.__decorate([
|
|
121
|
+
(0, type_graphql_1.Resolver)(checklist_item_history_1.ChecklistItemHistory)
|
|
122
|
+
], ChecklistItemHistoryQuery);
|
|
123
|
+
//# sourceMappingURL=checklist-item-history-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-item-history-query.js","sourceRoot":"","sources":["../../../server/service/checklist-item-history/checklist-item-history-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,qEAA4D;AAC5D,iDAA+F;AAC/F,yDAAgD;AAChD,qEAA+D;AAC/D,+EAAwE;AACxE,6FAAuF;AAGhF,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAE9B,AAAN,KAAK,CAAC,oBAAoB,CAAY,EAAU,EAAS,OAAwB;QAC/E,OAAO,MAAM,IAAA,qBAAa,EAAC,6CAAoB,CAAC,CAAC,OAAO,CAAC;YACvD,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,sBAAsB,CAAS,MAAiB,EAAS,OAAwB;QACrF,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,6CAAoB,CAAC;YACrD,WAAW,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;SACrC,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,K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ACM,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,6CAAoB;;6EAOpF;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,6CAAoB;;wDAE/D;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,6CAAoB;;wDAE/D;oCAlEU,yBAAyB;IADrC,IAAA,uBAAQ,EAAC,6CAAoB,CAAC;GAClB,yBAAyB,CAmErC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { Attachment } from '@things-factory/attachment-base'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistItemHistory } from './checklist-item-history'\nimport { ChecklistItemHistoryList } from './checklist-item-history-type'\nimport { ChecklistItemComment } from '../checklist-item-comment/checklist-item-comment'\n\n@Resolver(ChecklistItemHistory)\nexport class ChecklistItemHistoryQuery {\n @Query(returns => ChecklistItemHistory!, { nullable: true, description: 'To fetch a ChecklistItemHistory' })\n async checklistItemHistory(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<ChecklistItemHistory> {\n return await getRepository(ChecklistItemHistory).findOne({\n where: { id }\n })\n }\n\n @Query(returns => ChecklistItemHistoryList, { description: 'To fetch multiple ChecklistItems' })\n async checklistItemHistories(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistItemHistoryList> {\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(ChecklistItemHistory),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => [ChecklistItemComment])\n async checklistItemComments(@Root() checklistItemHistory: ChecklistItemHistory): Promise<ChecklistItemComment[]> {\n return await getRepository(ChecklistItemComment).findBy({ checklistItem: { id: checklistItemHistory.id } })\n }\n\n @FieldResolver(type => Number)\n async checklistItemCommentCount(@Root() checklistItemHistory: ChecklistItemHistory): Promise<number> {\n return await getRepository(ChecklistItemComment).countBy({ checklistItem: { id: checklistItemHistory.id } })\n }\n\n @FieldResolver(type => [Attachment])\n async checklistItemAttachments(\n @Root() checklistItemHistory: ChecklistItemHistory,\n @Arg('description', { nullable: true }) description?: string\n ): Promise<Attachment[]> {\n return await getRepository(Attachment).find({\n where: {\n refType: ChecklistItemHistory.name,\n refBy: checklistItemHistory.id,\n description: description // 검측 상태로 받으며 어떤 스탭에 올렸는지로 시공자/감리자 구분\n },\n order: {\n createdAt: 'DESC'\n }\n })\n }\n\n @FieldResolver(type => Number)\n async checklistItemAttachmentCount(@Root() checklistItemHistory: ChecklistItemHistory): Promise<number> {\n return await getRepository(Attachment).count({\n where: {\n refType: ChecklistItemHistory.name,\n refBy: checklistItemHistory.id\n }\n })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklistItemHistory: ChecklistItemHistory): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistItemHistory.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistItemHistory: ChecklistItemHistory): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistItemHistory.creatorId })\n }\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistItemHistoryList = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const checklist_item_history_1 = require("./checklist-item-history");
|
|
7
|
+
let ChecklistItemHistoryList = class ChecklistItemHistoryList {
|
|
8
|
+
};
|
|
9
|
+
exports.ChecklistItemHistoryList = ChecklistItemHistoryList;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, type_graphql_1.Field)(type => [checklist_item_history_1.ChecklistItemHistory]),
|
|
12
|
+
tslib_1.__metadata("design:type", Array)
|
|
13
|
+
], ChecklistItemHistoryList.prototype, "items", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
16
|
+
tslib_1.__metadata("design:type", Number)
|
|
17
|
+
], ChecklistItemHistoryList.prototype, "total", void 0);
|
|
18
|
+
exports.ChecklistItemHistoryList = ChecklistItemHistoryList = tslib_1.__decorate([
|
|
19
|
+
(0, type_graphql_1.ObjectType)()
|
|
20
|
+
], ChecklistItemHistoryList);
|
|
21
|
+
//# sourceMappingURL=checklist-item-history-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-item-history-type.js","sourceRoot":"","sources":["../../../server/service/checklist-item-history/checklist-item-history-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAqD;AACrD,qEAA+D;AAGxD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAMpC,CAAA;AANY,4DAAwB;AAEnC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,6CAAoB,CAAC,CAAC;;uDACT;AAG7B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;uDACN;mCALF,wBAAwB;IADpC,IAAA,yBAAU,GAAE;GACA,wBAAwB,CAMpC","sourcesContent":["import { ObjectType, Field, Int } from 'type-graphql'\nimport { ChecklistItemHistory } from './checklist-item-history'\n\n@ObjectType()\nexport class ChecklistItemHistoryList {\n @Field(type => [ChecklistItemHistory])\n items: ChecklistItemHistory[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|