@dssp/supervision 1.0.0 → 1.0.5
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/bootstrap.d.ts +1 -0
- package/dist-client/bootstrap.js +2 -0
- package/dist-client/bootstrap.js.map +1 -0
- 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/index.d.ts +0 -0
- package/dist-client/index.js +2 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/pages/action-plan/action-plan-importer.d.ts +10 -0
- package/dist-client/pages/action-plan/action-plan-importer.js +101 -0
- package/dist-client/pages/action-plan/action-plan-importer.js.map +1 -0
- package/dist-client/pages/action-plan/action-plan-list-page.d.ts +62 -0
- package/dist-client/pages/action-plan/action-plan-list-page.js +322 -0
- package/dist-client/pages/action-plan/action-plan-list-page.js.map +1 -0
- 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 +27 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +342 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +31 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +332 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +36 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +369 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +98 -0
- package/dist-client/pages/building-inspection/building-inspection-list.js +914 -0
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -0
- 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.d.ts +1 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +178 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -0
- 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 +9 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +190 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -0
- package/dist-client/pages/building-inspection/inspection-create-popup.d.ts +3 -0
- package/dist-client/pages/building-inspection/inspection-create-popup.js +841 -0
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -0
- 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 +3 -0
- package/dist-client/pages/checklist/attachment-list-popup.js +492 -0
- package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -0
- package/dist-client/pages/checklist/checklist-view.d.ts +16 -0
- package/dist-client/pages/checklist/checklist-view.js +926 -0
- package/dist-client/pages/checklist/checklist-view.js.map +1 -0
- package/dist-client/pages/checklist/comment-list-popup.d.ts +1 -0
- package/dist-client/pages/checklist/comment-list-popup.js +367 -0
- package/dist-client/pages/checklist/comment-list-popup.js.map +1 -0
- package/dist-client/pages/checklist/file-preview-popup.d.ts +1 -0
- package/dist-client/pages/checklist/file-preview-popup.js +77 -0
- package/dist-client/pages/checklist/file-preview-popup.js.map +1 -0
- 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.d.ts +2 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js +278 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-template-list.d.ts +53 -0
- package/dist-client/pages/checklist-template/checklist-template-list.js +350 -0
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-type-management.d.ts +55 -0
- package/dist-client/pages/checklist-template/checklist-type-management.js +250 -0
- package/dist-client/pages/checklist-template/checklist-type-management.js.map +1 -0
- 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.d.ts +10 -0
- package/dist-client/pages/issue/issue-importer.js +101 -0
- package/dist-client/pages/issue/issue-importer.js.map +1 -0
- package/dist-client/pages/issue/issue-list-page.d.ts +62 -0
- package/dist-client/pages/issue/issue-list-page.js +322 -0
- package/dist-client/pages/issue/issue-list-page.js.map +1 -0
- 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.d.ts +10 -0
- package/dist-client/pages/project-report/project-report-importer.js +101 -0
- package/dist-client/pages/project-report/project-report-importer.js.map +1 -0
- package/dist-client/pages/project-report/project-report-list-page.d.ts +62 -0
- package/dist-client/pages/project-report/project-report-list-page.js +322 -0
- package/dist-client/pages/project-report/project-report-list-page.js.map +1 -0
- package/dist-client/pages/supervisor/supervisor-importer.d.ts +10 -0
- package/dist-client/pages/supervisor/supervisor-importer.js +101 -0
- package/dist-client/pages/supervisor/supervisor-importer.js.map +1 -0
- package/dist-client/pages/supervisor/supervisor-list-page.d.ts +62 -0
- package/dist-client/pages/supervisor/supervisor-list-page.js +322 -0
- package/dist-client/pages/supervisor/supervisor-list-page.js.map +1 -0
- package/dist-client/route.d.ts +1 -0
- package/dist-client/route.js +44 -0
- package/dist-client/route.js.map +1 -0
- 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 -0
- package/dist-server/controllers/index.d.ts +0 -0
- package/dist-server/controllers/index.js +1 -0
- package/dist-server/controllers/index.js.map +1 -0
- package/dist-server/index.d.ts +3 -0
- package/dist-server/index.js +7 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/middlewares/index.d.ts +1 -0
- package/dist-server/middlewares/index.js +7 -0
- package/dist-server/middlewares/index.js.map +1 -0
- package/dist-server/migrations/index.d.ts +1 -0
- package/dist-server/migrations/index.js +12 -0
- package/dist-server/migrations/index.js.map +1 -0
- package/dist-server/routes.d.ts +0 -0
- package/dist-server/routes.js +25 -0
- package/dist-server/routes.js.map +1 -0
- package/dist-server/service/action-plan/action-plan-mutation.d.ts +10 -0
- package/dist-server/service/action-plan/action-plan-mutation.js +167 -0
- package/dist-server/service/action-plan/action-plan-mutation.js.map +1 -0
- package/dist-server/service/action-plan/action-plan-query.d.ts +12 -0
- package/dist-server/service/action-plan/action-plan-query.js +91 -0
- package/dist-server/service/action-plan/action-plan-query.js.map +1 -0
- package/dist-server/service/action-plan/action-plan-type.d.ts +23 -0
- package/dist-server/service/action-plan/action-plan-type.js +86 -0
- package/dist-server/service/action-plan/action-plan-type.js.map +1 -0
- package/dist-server/service/action-plan/action-plan.d.ts +27 -0
- package/dist-server/service/action-plan/action-plan.js +116 -0
- package/dist-server/service/action-plan/action-plan.js.map +1 -0
- package/dist-server/service/action-plan/index.d.ts +5 -0
- package/dist-server/service/action-plan/index.js +9 -0
- package/dist-server/service/action-plan/index.js.map +1 -0
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +9 -0
- package/dist-server/service/building-inspection/building-inspection-mutation.js +404 -0
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -0
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +24 -0
- package/dist-server/service/building-inspection/building-inspection-query.js +406 -0
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -0
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +89 -0
- package/dist-server/service/building-inspection/building-inspection-type.js +330 -0
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -0
- package/dist-server/service/building-inspection/building-inspection.d.ts +42 -0
- package/dist-server/service/building-inspection/building-inspection.js +186 -0
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -0
- package/dist-server/service/building-inspection/index.d.ts +7 -0
- package/dist-server/service/building-inspection/index.js +19 -0
- package/dist-server/service/building-inspection/index.js.map +1 -0
- 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-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js +21 -0
- 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 +3 -0
- package/dist-server/service/checklist/checklist-mutation.js +30 -0
- package/dist-server/service/checklist/checklist-mutation.js.map +1 -0
- package/dist-server/service/checklist/checklist-query.d.ts +21 -0
- package/dist-server/service/checklist/checklist-query.js +177 -0
- package/dist-server/service/checklist/checklist-query.js.map +1 -0
- package/dist-server/service/checklist/checklist-type.d.ts +5 -0
- package/dist-server/service/checklist/checklist-type.js +21 -0
- package/dist-server/service/checklist/checklist-type.js.map +1 -0
- package/dist-server/service/checklist/checklist.d.ts +66 -0
- package/dist-server/service/checklist/checklist.js +259 -0
- package/dist-server/service/checklist/checklist.js.map +1 -0
- package/dist-server/service/checklist/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist/event-subscriber.js +21 -0
- package/dist-server/service/checklist/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist/index.d.ts +5 -0
- package/dist-server/service/checklist/index.js +9 -0
- package/dist-server/service/checklist/index.js.map +1 -0
- 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 +4 -0
- package/dist-server/service/checklist-item/checklist-item-mutation.js +39 -0
- package/dist-server/service/checklist-item/checklist-item-mutation.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-query.d.ts +18 -0
- package/dist-server/service/checklist-item/checklist-item-query.js +138 -0
- package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-type.d.ts +9 -0
- package/dist-server/service/checklist-item/checklist-item-type.js +35 -0
- package/dist-server/service/checklist-item/checklist-item-type.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item.d.ts +29 -0
- package/dist-server/service/checklist-item/checklist-item.js +124 -0
- package/dist-server/service/checklist-item/checklist-item.js.map +1 -0
- package/dist-server/service/checklist-item/index.d.ts +5 -0
- package/dist-server/service/checklist-item/index.js +9 -0
- package/dist-server/service/checklist-item/index.js.map +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.d.ts +16 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js +83 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js.map +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +8 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +114 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.d.ts +7 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +49 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.d.ts +14 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +53 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment.d.ts +12 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js +57 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +1 -0
- package/dist-server/service/checklist-item-comment/index.d.ts +5 -0
- package/dist-server/service/checklist-item-comment/index.js +10 -0
- package/dist-server/service/checklist-item-comment/index.js.map +1 -0
- 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.d.ts +6 -0
- package/dist-server/service/checklist-template/checklist-template-mutation.js +64 -0
- package/dist-server/service/checklist-template/checklist-template-mutation.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template-query.d.ts +10 -0
- package/dist-server/service/checklist-template/checklist-template-query.js +62 -0
- package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template-type.d.ts +10 -0
- package/dist-server/service/checklist-template/checklist-template-type.js +39 -0
- package/dist-server/service/checklist-template/checklist-template-type.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template.d.ts +17 -0
- package/dist-server/service/checklist-template/checklist-template.js +78 -0
- package/dist-server/service/checklist-template/checklist-template.js.map +1 -0
- package/dist-server/service/checklist-template/index.d.ts +5 -0
- package/dist-server/service/checklist-template/index.js +9 -0
- package/dist-server/service/checklist-template/index.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.d.ts +7 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +80 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-query.d.ts +11 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js +78 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +19 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js +69 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +26 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.js +106 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -0
- package/dist-server/service/checklist-template-item/index.d.ts +5 -0
- package/dist-server/service/checklist-template-item/index.js +9 -0
- package/dist-server/service/checklist-template-item/index.js.map +1 -0
- 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.d.ts +6 -0
- package/dist-server/service/checklist-type/checklist-type-mutation.js +64 -0
- package/dist-server/service/checklist-type/checklist-type-mutation.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type-query.d.ts +10 -0
- package/dist-server/service/checklist-type/checklist-type-query.js +62 -0
- package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type-type.d.ts +11 -0
- package/dist-server/service/checklist-type/checklist-type-type.js +43 -0
- package/dist-server/service/checklist-type/checklist-type-type.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type.d.ts +19 -0
- package/dist-server/service/checklist-type/checklist-type.js +78 -0
- package/dist-server/service/checklist-type/checklist-type.js.map +1 -0
- package/dist-server/service/checklist-type/index.d.ts +5 -0
- package/dist-server/service/checklist-type/index.js +9 -0
- package/dist-server/service/checklist-type/index.js.map +1 -0
- 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 +23 -0
- package/dist-server/service/index.js +98 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/service/issue/index.d.ts +5 -0
- package/dist-server/service/issue/index.js +9 -0
- package/dist-server/service/issue/index.js.map +1 -0
- package/dist-server/service/issue/issue-mutation.d.ts +10 -0
- package/dist-server/service/issue/issue-mutation.js +167 -0
- package/dist-server/service/issue/issue-mutation.js.map +1 -0
- package/dist-server/service/issue/issue-query.d.ts +12 -0
- package/dist-server/service/issue/issue-query.js +91 -0
- package/dist-server/service/issue/issue-query.js.map +1 -0
- package/dist-server/service/issue/issue-type.d.ts +23 -0
- package/dist-server/service/issue/issue-type.js +86 -0
- package/dist-server/service/issue/issue-type.js.map +1 -0
- package/dist-server/service/issue/issue.d.ts +26 -0
- package/dist-server/service/issue/issue.js +111 -0
- package/dist-server/service/issue/issue.js.map +1 -0
- 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 +5 -0
- package/dist-server/service/project-report/index.js +9 -0
- package/dist-server/service/project-report/index.js.map +1 -0
- package/dist-server/service/project-report/project-report-mutation.d.ts +10 -0
- package/dist-server/service/project-report/project-report-mutation.js +167 -0
- package/dist-server/service/project-report/project-report-mutation.js.map +1 -0
- package/dist-server/service/project-report/project-report-query.d.ts +12 -0
- package/dist-server/service/project-report/project-report-query.js +91 -0
- package/dist-server/service/project-report/project-report-query.js.map +1 -0
- package/dist-server/service/project-report/project-report-type.d.ts +23 -0
- package/dist-server/service/project-report/project-report-type.js +86 -0
- package/dist-server/service/project-report/project-report-type.js.map +1 -0
- package/dist-server/service/project-report/project-report.d.ts +28 -0
- package/dist-server/service/project-report/project-report.js +121 -0
- package/dist-server/service/project-report/project-report.js.map +1 -0
- package/dist-server/service/supervisor/index.d.ts +5 -0
- package/dist-server/service/supervisor/index.js +9 -0
- package/dist-server/service/supervisor/index.js.map +1 -0
- package/dist-server/service/supervisor/supervisor-mutation.d.ts +10 -0
- package/dist-server/service/supervisor/supervisor-mutation.js +167 -0
- package/dist-server/service/supervisor/supervisor-mutation.js.map +1 -0
- package/dist-server/service/supervisor/supervisor-query.d.ts +12 -0
- package/dist-server/service/supervisor/supervisor-query.js +91 -0
- package/dist-server/service/supervisor/supervisor-query.js.map +1 -0
- package/dist-server/service/supervisor/supervisor-type.d.ts +23 -0
- package/dist-server/service/supervisor/supervisor-type.js +86 -0
- package/dist-server/service/supervisor/supervisor-type.js.map +1 -0
- package/dist-server/service/supervisor/supervisor.d.ts +28 -0
- package/dist-server/service/supervisor/supervisor.js +121 -0
- package/dist-server/service/supervisor/supervisor.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistItemMutation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const checklist_item_1 = require("./checklist-item");
|
|
7
|
+
const checklist_item_type_1 = require("./checklist-item-type");
|
|
8
|
+
let ChecklistItemMutation = class ChecklistItemMutation {
|
|
9
|
+
// AI 자동 검측 결과로 체크리스트 항목의 감리자 적합/부적합 값을 일괄 반영 (미판정 항목은 건너뜀)
|
|
10
|
+
async updateChecklistItemsAiJudgment(items, context) {
|
|
11
|
+
const { user, tx } = context.state;
|
|
12
|
+
const checklistItemRepository = tx.getRepository(checklist_item_1.ChecklistItem);
|
|
13
|
+
for (const item of items) {
|
|
14
|
+
if (!item.id || !item.supervisoryConfirmStatus)
|
|
15
|
+
continue;
|
|
16
|
+
// repository.update(부분필드)는 벌크 업데이트라 history 서브스크라이버 event.entity에 id가 없어
|
|
17
|
+
// checklist_item_histories.original_id가 null이 됨 → 전체 엔티티 로드 후 save로 갱신
|
|
18
|
+
const existingItem = await checklistItemRepository.findOneBy({ id: item.id });
|
|
19
|
+
if (!existingItem)
|
|
20
|
+
continue;
|
|
21
|
+
await checklistItemRepository.save(Object.assign(Object.assign({}, existingItem), { supervisoryConfirmStatus: item.supervisoryConfirmStatus, updater: user }));
|
|
22
|
+
}
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.ChecklistItemMutation = ChecklistItemMutation;
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
29
|
+
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To update checklist items with AI inspection judgments' }),
|
|
30
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('items', type => [checklist_item_type_1.ChecklistItemAiJudgment])),
|
|
31
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
32
|
+
tslib_1.__metadata("design:type", Function),
|
|
33
|
+
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
34
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
35
|
+
], ChecklistItemMutation.prototype, "updateChecklistItemsAiJudgment", null);
|
|
36
|
+
exports.ChecklistItemMutation = ChecklistItemMutation = tslib_1.__decorate([
|
|
37
|
+
(0, type_graphql_1.Resolver)(checklist_item_1.ChecklistItem)
|
|
38
|
+
], ChecklistItemMutation);
|
|
39
|
+
//# sourceMappingURL=checklist-item-mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-item-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist-item/checklist-item-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qDAAgD;AAChD,+DAA+D;AAGxD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,2DAA2D;IAGrD,AAAN,KAAK,CAAC,8BAA8B,CACe,KAAgC,EAC1E,OAAwB;QAE/B,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAClC,MAAM,uBAAuB,GAAG,EAAE,CAAC,aAAa,CAAC,8BAAa,CAAC,CAAA;QAE/D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,wBAAwB;gBAAE,SAAQ;YACxD,yEAAyE;YACzE,uEAAuE;YACvE,MAAM,YAAY,GAAG,MAAM,uBAAuB,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;YAC7E,IAAI,CAAC,YAAY;gBAAE,SAAQ;YAC3B,MAAM,uBAAuB,CAAC,IAAI,iCAC7B,YAAY,KACf,wBAAwB,EAAE,IAAI,CAAC,wBAAwB,EACvD,OAAO,EAAE,IAAI,IACb,CAAA;QACJ,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA;AA1BY,sDAAqB;AAI1B;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,wDAAwD,EAAE,CAAC;IAErG,mBAAA,IAAA,kBAAG,EAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,6CAAuB,CAAC,CAAC,CAAA;IAC/C,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;2EAmBP;gCAzBU,qBAAqB;IADjC,IAAA,uBAAQ,EAAC,8BAAa,CAAC;GACX,qBAAqB,CA0BjC","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { ChecklistItem } from './checklist-item'\nimport { ChecklistItemAiJudgment } from './checklist-item-type'\n\n@Resolver(ChecklistItem)\nexport class ChecklistItemMutation {\n // AI 자동 검측 결과로 체크리스트 항목의 감리자 적합/부적합 값을 일괄 반영 (미판정 항목은 건너뜀)\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To update checklist items with AI inspection judgments' })\n async updateChecklistItemsAiJudgment(\n @Arg('items', type => [ChecklistItemAiJudgment]) items: ChecklistItemAiJudgment[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { user, tx } = context.state\n const checklistItemRepository = tx.getRepository(ChecklistItem)\n\n for (const item of items) {\n if (!item.id || !item.supervisoryConfirmStatus) continue\n // repository.update(부분필드)는 벌크 업데이트라 history 서브스크라이버 event.entity에 id가 없어\n // checklist_item_histories.original_id가 null이 됨 → 전체 엔티티 로드 후 save로 갱신\n const existingItem = await checklistItemRepository.findOneBy({ id: item.id })\n if (!existingItem) continue\n await checklistItemRepository.save({\n ...existingItem,\n supervisoryConfirmStatus: item.supervisoryConfirmStatus,\n updater: user\n })\n }\n\n return true\n }\n}\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { ChecklistItem } from './checklist-item';
|
|
5
|
+
import { ChecklistItemList } from './checklist-item-type';
|
|
6
|
+
import { ChecklistItemComment } from '../checklist-item-comment/checklist-item-comment';
|
|
7
|
+
import { BuildingInspection } from '../building-inspection/building-inspection';
|
|
8
|
+
export declare class ChecklistItemQuery {
|
|
9
|
+
checklistItem(id: string, context: ResolverContext): Promise<ChecklistItem>;
|
|
10
|
+
checklistItems(params: ListParam, context: ResolverContext): Promise<ChecklistItemList>;
|
|
11
|
+
inspectionByChecklistItemId(checklistItemId: string): Promise<BuildingInspection>;
|
|
12
|
+
checklistItemComments(checklistItem: ChecklistItem): Promise<ChecklistItemComment[]>;
|
|
13
|
+
checklistItemCommentCount(checklistItem: ChecklistItem): Promise<number>;
|
|
14
|
+
checklistItemAttachments(checklistItem: ChecklistItem, description?: string): Promise<Attachment[]>;
|
|
15
|
+
checklistItemAttachmentCount(checklistItem: ChecklistItem): Promise<number>;
|
|
16
|
+
updater(checklistItem: ChecklistItem): Promise<User>;
|
|
17
|
+
creator(checklistItem: ChecklistItem): Promise<User>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistItemQuery = 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_1 = require("./checklist-item");
|
|
10
|
+
const checklist_item_type_1 = require("./checklist-item-type");
|
|
11
|
+
const checklist_item_comment_1 = require("../checklist-item-comment/checklist-item-comment");
|
|
12
|
+
const building_inspection_1 = require("../building-inspection/building-inspection");
|
|
13
|
+
let ChecklistItemQuery = class ChecklistItemQuery {
|
|
14
|
+
async checklistItem(id, context) {
|
|
15
|
+
return await (0, shell_1.getRepository)(checklist_item_1.ChecklistItem).findOne({
|
|
16
|
+
where: { id }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
async checklistItems(params, context) {
|
|
20
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
21
|
+
params,
|
|
22
|
+
repository: await (0, shell_1.getRepository)(checklist_item_1.ChecklistItem),
|
|
23
|
+
searchables: ['name', 'description']
|
|
24
|
+
});
|
|
25
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
26
|
+
return { items, total };
|
|
27
|
+
}
|
|
28
|
+
async inspectionByChecklistItemId(checklistItemId) {
|
|
29
|
+
return (0, shell_1.getRepository)(building_inspection_1.BuildingInspection)
|
|
30
|
+
.createQueryBuilder('bi')
|
|
31
|
+
.innerJoin('checklists', 'c', 'bi.checklist_id = c.id')
|
|
32
|
+
.innerJoin('checklist_items', 'ci', 'c.id = ci.checklist_id')
|
|
33
|
+
.where('ci.id = :checklistItemId', { checklistItemId })
|
|
34
|
+
.getOne();
|
|
35
|
+
}
|
|
36
|
+
async checklistItemComments(checklistItem) {
|
|
37
|
+
return await (0, shell_1.getRepository)(checklist_item_comment_1.ChecklistItemComment).findBy({ checklistItem: { id: checklistItem.id } });
|
|
38
|
+
}
|
|
39
|
+
async checklistItemCommentCount(checklistItem) {
|
|
40
|
+
return await (0, shell_1.getRepository)(checklist_item_comment_1.ChecklistItemComment).countBy({ checklistItem: { id: checklistItem.id } });
|
|
41
|
+
}
|
|
42
|
+
async checklistItemAttachments(checklistItem, description) {
|
|
43
|
+
return await (0, shell_1.getRepository)(attachment_base_1.Attachment).find({
|
|
44
|
+
where: {
|
|
45
|
+
refType: checklist_item_1.ChecklistItem.name,
|
|
46
|
+
refBy: checklistItem.id,
|
|
47
|
+
description: description // 검측 상태로 받으며 어떤 스탭에 올렸는지로 시공자/감리자 구분
|
|
48
|
+
},
|
|
49
|
+
order: {
|
|
50
|
+
createdAt: 'DESC'
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
async checklistItemAttachmentCount(checklistItem) {
|
|
55
|
+
return await (0, shell_1.getRepository)(attachment_base_1.Attachment).count({
|
|
56
|
+
where: {
|
|
57
|
+
refType: checklist_item_1.ChecklistItem.name,
|
|
58
|
+
refBy: checklistItem.id
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
async updater(checklistItem) {
|
|
63
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistItem.updaterId });
|
|
64
|
+
}
|
|
65
|
+
async creator(checklistItem) {
|
|
66
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistItem.creatorId });
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
exports.ChecklistItemQuery = ChecklistItemQuery;
|
|
70
|
+
tslib_1.__decorate([
|
|
71
|
+
(0, type_graphql_1.Query)(returns => checklist_item_1.ChecklistItem, { nullable: true, description: 'To fetch a ChecklistItem' }),
|
|
72
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
73
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
74
|
+
tslib_1.__metadata("design:type", Function),
|
|
75
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
76
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
77
|
+
], ChecklistItemQuery.prototype, "checklistItem", null);
|
|
78
|
+
tslib_1.__decorate([
|
|
79
|
+
(0, type_graphql_1.Query)(returns => checklist_item_type_1.ChecklistItemList, { description: 'To fetch multiple ChecklistItems' }),
|
|
80
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
81
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
82
|
+
tslib_1.__metadata("design:type", Function),
|
|
83
|
+
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
84
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
85
|
+
], ChecklistItemQuery.prototype, "checklistItems", null);
|
|
86
|
+
tslib_1.__decorate([
|
|
87
|
+
(0, type_graphql_1.Query)(returns => building_inspection_1.BuildingInspection, { description: 'BuildingInspection By ChecklistItemId' }),
|
|
88
|
+
tslib_1.__metadata("design:type", Function),
|
|
89
|
+
tslib_1.__metadata("design:paramtypes", [String]),
|
|
90
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
91
|
+
], ChecklistItemQuery.prototype, "inspectionByChecklistItemId", null);
|
|
92
|
+
tslib_1.__decorate([
|
|
93
|
+
(0, type_graphql_1.FieldResolver)(type => [checklist_item_comment_1.ChecklistItemComment]),
|
|
94
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
95
|
+
tslib_1.__metadata("design:type", Function),
|
|
96
|
+
tslib_1.__metadata("design:paramtypes", [checklist_item_1.ChecklistItem]),
|
|
97
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
98
|
+
], ChecklistItemQuery.prototype, "checklistItemComments", 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_1.ChecklistItem]),
|
|
104
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
105
|
+
], ChecklistItemQuery.prototype, "checklistItemCommentCount", null);
|
|
106
|
+
tslib_1.__decorate([
|
|
107
|
+
(0, type_graphql_1.FieldResolver)(type => [attachment_base_1.Attachment]),
|
|
108
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
109
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('description', { nullable: true })),
|
|
110
|
+
tslib_1.__metadata("design:type", Function),
|
|
111
|
+
tslib_1.__metadata("design:paramtypes", [checklist_item_1.ChecklistItem, String]),
|
|
112
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
113
|
+
], ChecklistItemQuery.prototype, "checklistItemAttachments", null);
|
|
114
|
+
tslib_1.__decorate([
|
|
115
|
+
(0, type_graphql_1.FieldResolver)(type => Number),
|
|
116
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
117
|
+
tslib_1.__metadata("design:type", Function),
|
|
118
|
+
tslib_1.__metadata("design:paramtypes", [checklist_item_1.ChecklistItem]),
|
|
119
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
120
|
+
], ChecklistItemQuery.prototype, "checklistItemAttachmentCount", null);
|
|
121
|
+
tslib_1.__decorate([
|
|
122
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
123
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
124
|
+
tslib_1.__metadata("design:type", Function),
|
|
125
|
+
tslib_1.__metadata("design:paramtypes", [checklist_item_1.ChecklistItem]),
|
|
126
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
127
|
+
], ChecklistItemQuery.prototype, "updater", null);
|
|
128
|
+
tslib_1.__decorate([
|
|
129
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
130
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
131
|
+
tslib_1.__metadata("design:type", Function),
|
|
132
|
+
tslib_1.__metadata("design:paramtypes", [checklist_item_1.ChecklistItem]),
|
|
133
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
134
|
+
], ChecklistItemQuery.prototype, "creator", null);
|
|
135
|
+
exports.ChecklistItemQuery = ChecklistItemQuery = tslib_1.__decorate([
|
|
136
|
+
(0, type_graphql_1.Resolver)(checklist_item_1.ChecklistItem)
|
|
137
|
+
], ChecklistItemQuery);
|
|
138
|
+
//# sourceMappingURL=checklist-item-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-item-query.js","sourceRoot":"","sources":["../../../server/service/checklist-item/checklist-item-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,qEAA4D;AAC5D,iDAA+F;AAC/F,yDAAgD;AAChD,qDAAgD;AAChD,+DAAyD;AACzD,6FAAuF;AACvF,oFAA+E;AAGxE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAEvB,AAAN,KAAK,CAAC,aAAa,CAAY,EAAU,EAAS,OAAwB;QACxE,OAAO,MAAM,IAAA,qBAAa,EAAC,8BAAa,CAAC,CAAC,OAAO,CAAC;YAChD,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,cAAc,CAAS,MAAiB,EAAS,OAAwB;QAC7E,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,8BAAa,CAAC;YAC9C,WAAW,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;SACrC,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,2BAA2B,CAAC,eAAuB;QACvD,OAAO,IAAA,qBAA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;;6CAAgB,8BAAa;;mEAEnE;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAU,CAAC,CAAC;IAEjC,mBAAA,IAAA,mBAAI,GAAE,CAAA;IACN,mBAAA,IAAA,kBAAG,EAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAA;;6CADhB,8BAAa;;kEAarC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;IACM,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;sEAOtE;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;iDAEjD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAgB,8BAAa;;iDAEjD;6BA5EU,kBAAkB;IAD9B,IAAA,uBAAQ,EAAC,8BAAa,CAAC;GACX,kBAAkB,CA6E9B","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 { ChecklistItem } from './checklist-item'\nimport { ChecklistItemList } from './checklist-item-type'\nimport { ChecklistItemComment } from '../checklist-item-comment/checklist-item-comment'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\n\n@Resolver(ChecklistItem)\nexport class ChecklistItemQuery {\n @Query(returns => ChecklistItem!, { nullable: true, description: 'To fetch a ChecklistItem' })\n async checklistItem(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<ChecklistItem> {\n return await getRepository(ChecklistItem).findOne({\n where: { id }\n })\n }\n\n @Query(returns => ChecklistItemList, { description: 'To fetch multiple ChecklistItems' })\n async checklistItems(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistItemList> {\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(ChecklistItem),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @Query(returns => BuildingInspection, { description: 'BuildingInspection By ChecklistItemId' })\n async inspectionByChecklistItemId(checklistItemId: string): Promise<BuildingInspection> {\n return getRepository(BuildingInspection)\n .createQueryBuilder('bi')\n .innerJoin('checklists', 'c', 'bi.checklist_id = c.id')\n .innerJoin('checklist_items', 'ci', 'c.id = ci.checklist_id')\n .where('ci.id = :checklistItemId', { checklistItemId })\n .getOne()\n }\n\n @FieldResolver(type => [ChecklistItemComment])\n async checklistItemComments(@Root() checklistItem: ChecklistItem): Promise<ChecklistItemComment[]> {\n return await getRepository(ChecklistItemComment).findBy({ checklistItem: { id: checklistItem.id } })\n }\n\n @FieldResolver(type => Number)\n async checklistItemCommentCount(@Root() checklistItem: ChecklistItem): Promise<number> {\n return await getRepository(ChecklistItemComment).countBy({ checklistItem: { id: checklistItem.id } })\n }\n\n @FieldResolver(type => [Attachment])\n async checklistItemAttachments(\n @Root() checklistItem: ChecklistItem,\n @Arg('description', { nullable: true }) description?: string\n ): Promise<Attachment[]> {\n return await getRepository(Attachment).find({\n where: {\n refType: ChecklistItem.name,\n refBy: checklistItem.id,\n description: description // 검측 상태로 받으며 어떤 스탭에 올렸는지로 시공자/감리자 구분\n },\n order: {\n createdAt: 'DESC'\n }\n })\n }\n\n @FieldResolver(type => Number)\n async checklistItemAttachmentCount(@Root() checklistItem: ChecklistItem): Promise<number> {\n return await getRepository(Attachment).count({\n where: {\n refType: ChecklistItem.name,\n refBy: checklistItem.id\n }\n })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklistItem: ChecklistItem): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistItem.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistItem: ChecklistItem): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistItem.creatorId })\n }\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChecklistItem, ChecklistItemConfirmStatus } from './checklist-item';
|
|
2
|
+
export declare class ChecklistItemList {
|
|
3
|
+
items: ChecklistItem[];
|
|
4
|
+
total: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class ChecklistItemAiJudgment {
|
|
7
|
+
id: string;
|
|
8
|
+
supervisoryConfirmStatus?: ChecklistItemConfirmStatus;
|
|
9
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistItemAiJudgment = exports.ChecklistItemList = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const checklist_item_1 = require("./checklist-item");
|
|
7
|
+
let ChecklistItemList = class ChecklistItemList {
|
|
8
|
+
};
|
|
9
|
+
exports.ChecklistItemList = ChecklistItemList;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, type_graphql_1.Field)(type => [checklist_item_1.ChecklistItem]),
|
|
12
|
+
tslib_1.__metadata("design:type", Array)
|
|
13
|
+
], ChecklistItemList.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
|
+
], ChecklistItemList.prototype, "total", void 0);
|
|
18
|
+
exports.ChecklistItemList = ChecklistItemList = tslib_1.__decorate([
|
|
19
|
+
(0, type_graphql_1.ObjectType)()
|
|
20
|
+
], ChecklistItemList);
|
|
21
|
+
let ChecklistItemAiJudgment = class ChecklistItemAiJudgment {
|
|
22
|
+
};
|
|
23
|
+
exports.ChecklistItemAiJudgment = ChecklistItemAiJudgment;
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
27
|
+
], ChecklistItemAiJudgment.prototype, "id", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, type_graphql_1.Field)(type => checklist_item_1.ChecklistItemConfirmStatus, { nullable: true, description: 'AI 판정 결과 (T: 적합, F: 부적합, null: 미판정)' }),
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
|
+
], ChecklistItemAiJudgment.prototype, "supervisoryConfirmStatus", void 0);
|
|
32
|
+
exports.ChecklistItemAiJudgment = ChecklistItemAiJudgment = tslib_1.__decorate([
|
|
33
|
+
(0, type_graphql_1.InputType)()
|
|
34
|
+
], ChecklistItemAiJudgment);
|
|
35
|
+
//# sourceMappingURL=checklist-item-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-item-type.js","sourceRoot":"","sources":["../../../server/service/checklist-item/checklist-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAsF;AAEtF,qDAA4E;AAGrE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAM7B,CAAA;AANY,8CAAiB;AAE5B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,8BAAa,CAAC,CAAC;;gDACT;AAGtB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;gDACN;4BALF,iBAAiB;IAD7B,IAAA,yBAAU,GAAE;GACA,iBAAiB,CAM7B;AAGM,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAMnC,CAAA;AANY,0DAAuB;AAElC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;mDACR;AAGV;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,2CAA0B,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;;yEAC7D;kCAL1C,uBAAuB;IADnC,IAAA,wBAAS,GAAE;GACC,uBAAuB,CAMnC","sourcesContent":["import { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { ChecklistItem, ChecklistItemConfirmStatus } from './checklist-item'\n\n@ObjectType()\nexport class ChecklistItemList {\n @Field(type => [ChecklistItem])\n items: ChecklistItem[]\n\n @Field(type => Int)\n total: number\n}\n\n@InputType()\nexport class ChecklistItemAiJudgment {\n @Field(type => ID)\n id: string\n\n @Field(type => ChecklistItemConfirmStatus, { nullable: true, description: 'AI 판정 결과 (T: 적합, F: 부적합, null: 미판정)' })\n supervisoryConfirmStatus?: ChecklistItemConfirmStatus\n}\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { User } from '@things-factory/auth-base';
|
|
2
|
+
import { Checklist } from '../checklist/checklist';
|
|
3
|
+
import { ChecklistItemComment } from '../checklist-item-comment/checklist-item-comment';
|
|
4
|
+
export declare enum ChecklistItemConfirmStatus {
|
|
5
|
+
T = "\uC801\uD569",
|
|
6
|
+
F = "\uBD80\uC801\uD569"
|
|
7
|
+
}
|
|
8
|
+
export declare class ChecklistItem {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
sequence?: number;
|
|
11
|
+
mainType?: string;
|
|
12
|
+
detailType?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
inspctionCriteria?: string;
|
|
15
|
+
kcsCriteria?: string;
|
|
16
|
+
siteSpecCriteria?: string;
|
|
17
|
+
constructionConfirmStatus?: ChecklistItemConfirmStatus;
|
|
18
|
+
supervisoryConfirmStatus?: ChecklistItemConfirmStatus;
|
|
19
|
+
checklistItemComments?: ChecklistItemComment[];
|
|
20
|
+
checklist?: Checklist;
|
|
21
|
+
checklistId?: string;
|
|
22
|
+
createdAt?: Date;
|
|
23
|
+
updatedAt?: Date;
|
|
24
|
+
deletedAt?: Date;
|
|
25
|
+
creator?: User;
|
|
26
|
+
creatorId?: string;
|
|
27
|
+
updater?: User;
|
|
28
|
+
updaterId?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistItem = exports.ChecklistItemConfirmStatus = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const type_graphql_1 = require("type-graphql");
|
|
7
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
|
+
const checklist_1 = require("../checklist/checklist");
|
|
9
|
+
const checklist_item_comment_1 = require("../checklist-item-comment/checklist-item-comment");
|
|
10
|
+
var ChecklistItemConfirmStatus;
|
|
11
|
+
(function (ChecklistItemConfirmStatus) {
|
|
12
|
+
ChecklistItemConfirmStatus["T"] = "\uC801\uD569";
|
|
13
|
+
ChecklistItemConfirmStatus["F"] = "\uBD80\uC801\uD569";
|
|
14
|
+
})(ChecklistItemConfirmStatus || (exports.ChecklistItemConfirmStatus = ChecklistItemConfirmStatus = {}));
|
|
15
|
+
(0, type_graphql_1.registerEnumType)(ChecklistItemConfirmStatus, {
|
|
16
|
+
name: 'ChecklistItemConfirmStatus',
|
|
17
|
+
description: '적합 상태'
|
|
18
|
+
});
|
|
19
|
+
let ChecklistItem = class ChecklistItem {
|
|
20
|
+
};
|
|
21
|
+
exports.ChecklistItem = ChecklistItem;
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
24
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], ChecklistItem.prototype, "id", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '시퀀스' }),
|
|
29
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
30
|
+
tslib_1.__metadata("design:type", Number)
|
|
31
|
+
], ChecklistItem.prototype, "sequence", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '구분 (텍스트)' }),
|
|
34
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
|
+
], ChecklistItem.prototype, "mainType", void 0);
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '상세 구분 (텍스트)' }),
|
|
39
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
40
|
+
tslib_1.__metadata("design:type", String)
|
|
41
|
+
], ChecklistItem.prototype, "detailType", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검사 항목' }),
|
|
44
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
+
tslib_1.__metadata("design:type", String)
|
|
46
|
+
], ChecklistItem.prototype, "name", void 0);
|
|
47
|
+
tslib_1.__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검사 기준 (레거시 단일 필드)' }),
|
|
49
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
50
|
+
tslib_1.__metadata("design:type", String)
|
|
51
|
+
], ChecklistItem.prototype, "inspctionCriteria", void 0);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ nullable: true, comment: 'KCS 시방서 기준 - kcs_matches[0] 오브젝트 전체를 JSON 문자열로 저장 (file_label 등 포함)' }),
|
|
54
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
|
+
tslib_1.__metadata("design:type", String)
|
|
56
|
+
], ChecklistItem.prototype, "kcsCriteria", void 0);
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '현장 시방서 기준 - site_spec_matches[0].text' }),
|
|
59
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
60
|
+
tslib_1.__metadata("design:type", String)
|
|
61
|
+
], ChecklistItem.prototype, "siteSpecCriteria", void 0);
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '시공 관리자 적합 여부 (T: 적합, F: 부적합)' }),
|
|
64
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
65
|
+
tslib_1.__metadata("design:type", String)
|
|
66
|
+
], ChecklistItem.prototype, "constructionConfirmStatus", void 0);
|
|
67
|
+
tslib_1.__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '감리 관리자 적합 여부 (T: 적합, F: 부적합)' }),
|
|
69
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
70
|
+
tslib_1.__metadata("design:type", String)
|
|
71
|
+
], ChecklistItem.prototype, "supervisoryConfirmStatus", void 0);
|
|
72
|
+
tslib_1.__decorate([
|
|
73
|
+
(0, typeorm_1.OneToMany)(() => checklist_item_comment_1.ChecklistItemComment, checklistItemComment => checklistItemComment.checklistItem),
|
|
74
|
+
(0, type_graphql_1.Field)(() => [checklist_item_comment_1.ChecklistItemComment]),
|
|
75
|
+
tslib_1.__metadata("design:type", Array)
|
|
76
|
+
], ChecklistItem.prototype, "checklistItemComments", void 0);
|
|
77
|
+
tslib_1.__decorate([
|
|
78
|
+
(0, typeorm_1.ManyToOne)(type => checklist_1.Checklist),
|
|
79
|
+
(0, type_graphql_1.Field)(type => checklist_1.Checklist, { nullable: true }),
|
|
80
|
+
tslib_1.__metadata("design:type", checklist_1.Checklist)
|
|
81
|
+
], ChecklistItem.prototype, "checklist", void 0);
|
|
82
|
+
tslib_1.__decorate([
|
|
83
|
+
(0, typeorm_1.RelationId)((checklistItem) => checklistItem.checklist),
|
|
84
|
+
tslib_1.__metadata("design:type", String)
|
|
85
|
+
], ChecklistItem.prototype, "checklistId", void 0);
|
|
86
|
+
tslib_1.__decorate([
|
|
87
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
88
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
89
|
+
tslib_1.__metadata("design:type", Date)
|
|
90
|
+
], ChecklistItem.prototype, "createdAt", void 0);
|
|
91
|
+
tslib_1.__decorate([
|
|
92
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
93
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
94
|
+
tslib_1.__metadata("design:type", Date)
|
|
95
|
+
], ChecklistItem.prototype, "updatedAt", void 0);
|
|
96
|
+
tslib_1.__decorate([
|
|
97
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
98
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
99
|
+
tslib_1.__metadata("design:type", Date)
|
|
100
|
+
], ChecklistItem.prototype, "deletedAt", void 0);
|
|
101
|
+
tslib_1.__decorate([
|
|
102
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
103
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
104
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
105
|
+
], ChecklistItem.prototype, "creator", void 0);
|
|
106
|
+
tslib_1.__decorate([
|
|
107
|
+
(0, typeorm_1.RelationId)((checklistItem) => checklistItem.creator),
|
|
108
|
+
tslib_1.__metadata("design:type", String)
|
|
109
|
+
], ChecklistItem.prototype, "creatorId", void 0);
|
|
110
|
+
tslib_1.__decorate([
|
|
111
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
112
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
113
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
114
|
+
], ChecklistItem.prototype, "updater", void 0);
|
|
115
|
+
tslib_1.__decorate([
|
|
116
|
+
(0, typeorm_1.RelationId)((checklistItem) => checklistItem.updater),
|
|
117
|
+
tslib_1.__metadata("design:type", String)
|
|
118
|
+
], ChecklistItem.prototype, "updaterId", void 0);
|
|
119
|
+
exports.ChecklistItem = ChecklistItem = tslib_1.__decorate([
|
|
120
|
+
(0, typeorm_1.Entity)({ comment: '체크 리스트 항목' }),
|
|
121
|
+
(0, typeorm_1.Index)('ix_checklist_item_0', (checklistItem) => [checklistItem.checklist], { where: '"deleted_at" IS NULL' }),
|
|
122
|
+
(0, type_graphql_1.ObjectType)()
|
|
123
|
+
], ChecklistItem);
|
|
124
|
+
//# sourceMappingURL=checklist-item.js.map
|
|
@@ -0,0 +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,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,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACtB;AAIjB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,E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,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"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ChecklistItem } from './checklist-item';
|
|
2
|
+
import { ChecklistItemQuery } from './checklist-item-query';
|
|
3
|
+
import { ChecklistItemMutation } from './checklist-item-mutation';
|
|
4
|
+
export declare const entities: (typeof ChecklistItem)[];
|
|
5
|
+
export declare const resolvers: (typeof ChecklistItemQuery | typeof ChecklistItemMutation)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const checklist_item_1 = require("./checklist-item");
|
|
5
|
+
const checklist_item_query_1 = require("./checklist-item-query");
|
|
6
|
+
const checklist_item_mutation_1 = require("./checklist-item-mutation");
|
|
7
|
+
exports.entities = [checklist_item_1.ChecklistItem];
|
|
8
|
+
exports.resolvers = [checklist_item_query_1.ChecklistItemQuery, checklist_item_mutation_1.ChecklistItemMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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","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"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { ChecklistItemComment } from './checklist-item-comment';
|
|
4
|
+
import { ChecklistItem } from '../checklist-item/checklist-item';
|
|
5
|
+
export declare class ChecklistItemCommentHistory implements HistoryEntityInterface<ChecklistItemComment> {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
comment?: string;
|
|
8
|
+
checklistItem?: ChecklistItem;
|
|
9
|
+
checklistItemId?: string;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
deletedAt?: Date;
|
|
12
|
+
creator?: User;
|
|
13
|
+
creatorId?: string;
|
|
14
|
+
originalId: string;
|
|
15
|
+
action: HistoryActionType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistItemCommentHistory = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const typeorm_1 = require("typeorm");
|
|
7
|
+
const typeorm_history_1 = require("@operato/typeorm-history");
|
|
8
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
+
const env_1 = require("@things-factory/env");
|
|
10
|
+
const checklist_item_1 = require("../checklist-item/checklist-item");
|
|
11
|
+
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
|
12
|
+
const DATABASE_TYPE = ORMCONFIG.type;
|
|
13
|
+
let ChecklistItemCommentHistory = class ChecklistItemCommentHistory {
|
|
14
|
+
};
|
|
15
|
+
exports.ChecklistItemCommentHistory = ChecklistItemCommentHistory;
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
18
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
20
|
+
], ChecklistItemCommentHistory.prototype, "id", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '조치 사항 코멘트' }),
|
|
23
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], ChecklistItemCommentHistory.prototype, "comment", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.ManyToOne)(type => checklist_item_1.ChecklistItem),
|
|
28
|
+
(0, type_graphql_1.Field)(type => checklist_item_1.ChecklistItem, { nullable: true }),
|
|
29
|
+
tslib_1.__metadata("design:type", checklist_item_1.ChecklistItem)
|
|
30
|
+
], ChecklistItemCommentHistory.prototype, "checklistItem", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, typeorm_1.RelationId)((checklistItemComment) => checklistItemComment.checklistItem),
|
|
33
|
+
tslib_1.__metadata("design:type", String)
|
|
34
|
+
], ChecklistItemCommentHistory.prototype, "checklistItemId", void 0);
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
37
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
38
|
+
tslib_1.__metadata("design:type", Date)
|
|
39
|
+
], ChecklistItemCommentHistory.prototype, "createdAt", void 0);
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
42
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
43
|
+
tslib_1.__metadata("design:type", Date)
|
|
44
|
+
], ChecklistItemCommentHistory.prototype, "deletedAt", void 0);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
47
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
48
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
49
|
+
], ChecklistItemCommentHistory.prototype, "creator", void 0);
|
|
50
|
+
tslib_1.__decorate([
|
|
51
|
+
(0, typeorm_1.RelationId)((checklistItemComment) => checklistItemComment.creator),
|
|
52
|
+
tslib_1.__metadata("design:type", String)
|
|
53
|
+
], ChecklistItemCommentHistory.prototype, "creatorId", void 0);
|
|
54
|
+
tslib_1.__decorate([
|
|
55
|
+
(0, typeorm_history_1.HistoryOriginalIdColumn)(),
|
|
56
|
+
tslib_1.__metadata("design:type", String)
|
|
57
|
+
], ChecklistItemCommentHistory.prototype, "originalId", void 0);
|
|
58
|
+
tslib_1.__decorate([
|
|
59
|
+
(0, typeorm_history_1.HistoryActionColumn)({
|
|
60
|
+
nullable: false,
|
|
61
|
+
type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
|
62
|
+
? 'enum'
|
|
63
|
+
: DATABASE_TYPE == 'oracle'
|
|
64
|
+
? 'varchar2'
|
|
65
|
+
: DATABASE_TYPE == 'mssql'
|
|
66
|
+
? 'nvarchar'
|
|
67
|
+
: 'varchar',
|
|
68
|
+
enum: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? typeorm_history_1.HistoryActionType : undefined,
|
|
69
|
+
length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 32
|
|
70
|
+
}),
|
|
71
|
+
tslib_1.__metadata("design:type", String)
|
|
72
|
+
], ChecklistItemCommentHistory.prototype, "action", void 0);
|
|
73
|
+
exports.ChecklistItemCommentHistory = ChecklistItemCommentHistory = tslib_1.__decorate([
|
|
74
|
+
(0, typeorm_1.Entity)(),
|
|
75
|
+
(0, typeorm_1.Index)('ix_checklist-item-comment_history_0', (checklistItemCommentHistory) => [
|
|
76
|
+
checklistItemCommentHistory.originalId
|
|
77
|
+
]),
|
|
78
|
+
(0, typeorm_1.Index)('ix_checklist-item-comment_history_1', (checklistItemCommentHistory) => [
|
|
79
|
+
checklistItemCommentHistory.checklistItem
|
|
80
|
+
]),
|
|
81
|
+
(0, type_graphql_1.ObjectType)({ description: 'History Entity of ChecklistItemComment' })
|
|
82
|
+
], ChecklistItemCommentHistory);
|
|
83
|
+
//# sourceMappingURL=checklist-item-comment-history.js.map
|
|
@@ -0,0 +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;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,EAAE,CAAC,8BAAa,CAAC;IAChC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjC,8BAAa;kEAAA;AAG7B;IADC,IAAA,oBAAU,EAAC,CAAC,oBAA0C,EAAE,EAAE,CAAC,oBAAoB,CAAC,aAAa,CAAC;;oEACvE;AAIxB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IA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,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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChecklistItemComment } from './checklist-item-comment';
|
|
2
|
+
import { NewChecklistItemComment, ChecklistItemCommentPatch } from './checklist-item-comment-type';
|
|
3
|
+
export declare class ChecklistItemCommentMutation {
|
|
4
|
+
private getStatusByChecklistItemId;
|
|
5
|
+
createChecklistItemComment(checklistItemComment: NewChecklistItemComment, context: ResolverContext): Promise<ChecklistItemComment>;
|
|
6
|
+
updateChecklistItemComment(id: string, patch: ChecklistItemCommentPatch, context: ResolverContext): Promise<ChecklistItemComment>;
|
|
7
|
+
deleteChecklistItemComment(id: string, context: ResolverContext): Promise<boolean>;
|
|
8
|
+
}
|