@dssp/supervision 1.0.0 → 1.0.1
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,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActionPlan = exports.ActionPlanStatus = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const type_graphql_1 = require("type-graphql");
|
|
7
|
+
const shell_1 = require("@things-factory/shell");
|
|
8
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
+
const issue_1 = require("../issue/issue");
|
|
10
|
+
var ActionPlanStatus;
|
|
11
|
+
(function (ActionPlanStatus) {
|
|
12
|
+
ActionPlanStatus["STATUS_A"] = "STATUS_A";
|
|
13
|
+
ActionPlanStatus["STATUS_B"] = "STATUS_B";
|
|
14
|
+
})(ActionPlanStatus || (exports.ActionPlanStatus = ActionPlanStatus = {}));
|
|
15
|
+
(0, type_graphql_1.registerEnumType)(ActionPlanStatus, {
|
|
16
|
+
name: 'ActionPlanStatus',
|
|
17
|
+
description: 'state enumeration of a actionPlan'
|
|
18
|
+
});
|
|
19
|
+
let ActionPlan = class ActionPlan {
|
|
20
|
+
};
|
|
21
|
+
exports.ActionPlan = ActionPlan;
|
|
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
|
+
], ActionPlan.prototype, "id", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
29
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
30
|
+
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
31
|
+
], ActionPlan.prototype, "domain", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.RelationId)((actionPlan) => actionPlan.domain),
|
|
34
|
+
tslib_1.__metadata("design:type", String)
|
|
35
|
+
], ActionPlan.prototype, "domainId", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, typeorm_1.Column)(),
|
|
38
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
39
|
+
tslib_1.__metadata("design:type", String)
|
|
40
|
+
], ActionPlan.prototype, "name", void 0);
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
43
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
45
|
+
], ActionPlan.prototype, "description", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
48
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
49
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
50
|
+
], ActionPlan.prototype, "active", void 0);
|
|
51
|
+
tslib_1.__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
53
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
54
|
+
tslib_1.__metadata("design:type", String)
|
|
55
|
+
], ActionPlan.prototype, "state", void 0);
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
58
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
59
|
+
tslib_1.__metadata("design:type", String)
|
|
60
|
+
], ActionPlan.prototype, "params", void 0);
|
|
61
|
+
tslib_1.__decorate([
|
|
62
|
+
(0, type_graphql_1.Field)(() => issue_1.Issue),
|
|
63
|
+
(0, typeorm_1.ManyToOne)(() => issue_1.Issue, issue => issue.actionPlans),
|
|
64
|
+
tslib_1.__metadata("design:type", issue_1.Issue)
|
|
65
|
+
], ActionPlan.prototype, "issue", void 0);
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
68
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
69
|
+
tslib_1.__metadata("design:type", String)
|
|
70
|
+
], ActionPlan.prototype, "content", void 0);
|
|
71
|
+
tslib_1.__decorate([
|
|
72
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
73
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
74
|
+
tslib_1.__metadata("design:type", Date)
|
|
75
|
+
], ActionPlan.prototype, "createdAt", void 0);
|
|
76
|
+
tslib_1.__decorate([
|
|
77
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
78
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
79
|
+
tslib_1.__metadata("design:type", Date)
|
|
80
|
+
], ActionPlan.prototype, "updatedAt", void 0);
|
|
81
|
+
tslib_1.__decorate([
|
|
82
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
83
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
84
|
+
tslib_1.__metadata("design:type", Date)
|
|
85
|
+
], ActionPlan.prototype, "deletedAt", void 0);
|
|
86
|
+
tslib_1.__decorate([
|
|
87
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
88
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
89
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
90
|
+
], ActionPlan.prototype, "creator", void 0);
|
|
91
|
+
tslib_1.__decorate([
|
|
92
|
+
(0, typeorm_1.RelationId)((actionPlan) => actionPlan.creator),
|
|
93
|
+
tslib_1.__metadata("design:type", String)
|
|
94
|
+
], ActionPlan.prototype, "creatorId", void 0);
|
|
95
|
+
tslib_1.__decorate([
|
|
96
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
97
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
98
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
99
|
+
], ActionPlan.prototype, "updater", void 0);
|
|
100
|
+
tslib_1.__decorate([
|
|
101
|
+
(0, typeorm_1.RelationId)((actionPlan) => actionPlan.updater),
|
|
102
|
+
tslib_1.__metadata("design:type", String)
|
|
103
|
+
], ActionPlan.prototype, "updaterId", void 0);
|
|
104
|
+
tslib_1.__decorate([
|
|
105
|
+
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
106
|
+
tslib_1.__metadata("design:type", String)
|
|
107
|
+
], ActionPlan.prototype, "thumbnail", void 0);
|
|
108
|
+
exports.ActionPlan = ActionPlan = tslib_1.__decorate([
|
|
109
|
+
(0, typeorm_1.Entity)(),
|
|
110
|
+
(0, typeorm_1.Index)('ix_action_plan_0', (actionPlan) => [actionPlan.domain, actionPlan.name], {
|
|
111
|
+
unique: true,
|
|
112
|
+
where: '"deleted_at" IS NULL'
|
|
113
|
+
}),
|
|
114
|
+
(0, type_graphql_1.ObjectType)({ description: 'Entity for ActionPlan' })
|
|
115
|
+
], ActionPlan);
|
|
116
|
+
//# sourceMappingURL=action-plan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-plan.js","sourceRoot":"","sources":["../../../server/service/action-plan/action-plan.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAA2E;AAE3E,iDAA8C;AAC9C,yDAAgD;AAChD,0CAAsC;AAEtC,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,yCAAqB,CAAA;IACrB,yCAAqB,CAAA;AACvB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAA,+BAAgB,EAAC,gBAAgB,EAAE;IACjC,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,mCAAmC;CACjD,CAAC,CAAA;AAQK,IAAM,UAAU,GAAhB,MAAM,UAAU;CAoEtB,CAAA;AApEY,gCAAU;AAGZ;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;sCACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;0CAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;;4CACzC;AAIjB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACb;AAIb;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACN;AAIpB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACV;AAIhB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACF;AAIxB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACX;AAIf;IAFC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,aAAK,CAAC;IAClB,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,aAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC;sCAC5C,aAAK;yCAAA;AAIZ;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACX;AAIf;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;6CAAA;AAIhB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;6CAAA;AAIhB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;6CAAA;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;2CAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;;6CACzC;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;2CAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;;6CACzC;AAGlB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACxB;qBAnEP,UAAU;IANtB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,kBAAkB,EAAE,CAAC,UAAsB,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,CAAC,EAAE;QAC3F,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;GACxC,UAAU,CAoEtB","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn,\n VersionColumn\n} from 'typeorm'\nimport { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Issue } from '../issue/issue'\n\nexport enum ActionPlanStatus {\n STATUS_A = 'STATUS_A',\n STATUS_B = 'STATUS_B'\n}\n\nregisterEnumType(ActionPlanStatus, {\n name: 'ActionPlanStatus',\n description: 'state enumeration of a actionPlan'\n})\n\n@Entity()\n@Index('ix_action_plan_0', (actionPlan: ActionPlan) => [actionPlan.domain, actionPlan.name], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for ActionPlan' })\nexport class ActionPlan {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((actionPlan: ActionPlan) => actionPlan.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n active?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n state?: ActionPlanStatus\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n params?: string\n\n @Field(() => Issue)\n @ManyToOne(() => Issue, issue => issue.actionPlans)\n issue: Issue\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n content: 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((actionPlan: ActionPlan) => actionPlan.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((actionPlan: ActionPlan) => actionPlan.updater)\n updaterId?: string\n\n @Field(type => String, { nullable: true })\n thumbnail?: string\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ActionPlan } from './action-plan';
|
|
2
|
+
import { ActionPlanQuery } from './action-plan-query';
|
|
3
|
+
import { ActionPlanMutation } from './action-plan-mutation';
|
|
4
|
+
export declare const entities: (typeof ActionPlan)[];
|
|
5
|
+
export declare const resolvers: (typeof ActionPlanQuery | typeof ActionPlanMutation)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const action_plan_1 = require("./action-plan");
|
|
5
|
+
const action_plan_query_1 = require("./action-plan-query");
|
|
6
|
+
const action_plan_mutation_1 = require("./action-plan-mutation");
|
|
7
|
+
exports.entities = [action_plan_1.ActionPlan];
|
|
8
|
+
exports.resolvers = [action_plan_query_1.ActionPlanQuery, action_plan_mutation_1.ActionPlanMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/action-plan/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAC1C,2DAAqD;AACrD,iEAA2D;AAE9C,QAAA,QAAQ,GAAG,CAAC,wBAAU,CAAC,CAAA;AACvB,QAAA,SAAS,GAAG,CAAC,mCAAe,EAAE,yCAAkB,CAAC,CAAA","sourcesContent":["import { ActionPlan } from './action-plan'\nimport { ActionPlanQuery } from './action-plan-query'\nimport { ActionPlanMutation } from './action-plan-mutation'\n\nexport const entities = [ActionPlan]\nexport const resolvers = [ActionPlanQuery, ActionPlanMutation]\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BuildingInspection } from './building-inspection';
|
|
2
|
+
import { NewBuildingInspection, UpdateBuildingInspection, UpdateBuildingInspectionSubmitType } from './building-inspection-type';
|
|
3
|
+
export declare class BuildingInspectionMutation {
|
|
4
|
+
createBuildingInspection(patch: NewBuildingInspection, context: ResolverContext): Promise<BuildingInspection>;
|
|
5
|
+
updateBuildingInspectionChecklist(buildingInspection: UpdateBuildingInspectionSubmitType, context: ResolverContext): Promise<boolean>;
|
|
6
|
+
updateBuildingInspection(patch: UpdateBuildingInspection, context: ResolverContext): Promise<BuildingInspection>;
|
|
7
|
+
deleteBuildingInspections(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
8
|
+
applyToAllBuildingInspection(buildingInspectionId: string, context: ResolverContext): Promise<boolean>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionMutation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const typeorm_1 = require("typeorm");
|
|
7
|
+
const building_inspection_1 = require("./building-inspection");
|
|
8
|
+
const building_inspection_type_1 = require("./building-inspection-type");
|
|
9
|
+
const building_inspection_2 = require("./building-inspection");
|
|
10
|
+
const checklist_1 = require("../checklist/checklist");
|
|
11
|
+
const checklist_item_1 = require("../checklist-item/checklist-item");
|
|
12
|
+
const shell_1 = require("@things-factory/shell");
|
|
13
|
+
const building_complex_1 = require("@dssp/building-complex");
|
|
14
|
+
const env_1 = require("@things-factory/env");
|
|
15
|
+
const checklist_2 = require("../checklist/checklist");
|
|
16
|
+
const field_document_auto_file_1 = require("../field-document/field-document-auto-file");
|
|
17
|
+
const projectType = env_1.config.get('projectType', building_inspection_1.ProjectType.DSSP);
|
|
18
|
+
let BuildingInspectionMutation = class BuildingInspectionMutation {
|
|
19
|
+
async createBuildingInspection(patch, context) {
|
|
20
|
+
const { user, tx } = context.state;
|
|
21
|
+
const { buildingLevelId, checklist, checklistItem, cellX, cellY, managerId } = patch;
|
|
22
|
+
const buildingInspectionRepository = tx.getRepository(building_inspection_1.BuildingInspection);
|
|
23
|
+
const checklistRepository = tx.getRepository(checklist_1.Checklist);
|
|
24
|
+
const checklistItemRepository = tx.getRepository(checklist_item_1.ChecklistItem);
|
|
25
|
+
// 1. 벨리데이션
|
|
26
|
+
if (!checklist.constructionType)
|
|
27
|
+
throw new Error('공종 타입이 없습니다.');
|
|
28
|
+
if (!checklist.constructionDetailType)
|
|
29
|
+
throw new Error('상세 공종 타입이 없습니다.');
|
|
30
|
+
if (!checklist.name)
|
|
31
|
+
throw new Error('체크리스트 이름이 없습니다.');
|
|
32
|
+
if (checklistItem.length === 0)
|
|
33
|
+
throw new Error('체크리스트 아이템이 없습니다.');
|
|
34
|
+
if (projectType === building_inspection_1.ProjectType.DSSP) {
|
|
35
|
+
if (!cellX || !cellY)
|
|
36
|
+
throw new Error('셀 좌표가 없습니다.');
|
|
37
|
+
if (!managerId)
|
|
38
|
+
throw new Error('담당자가 없습니다.');
|
|
39
|
+
if (!buildingLevelId)
|
|
40
|
+
throw new Error('층 아이디가 없습니다.');
|
|
41
|
+
if (!checklist.location)
|
|
42
|
+
throw new Error('위치가 없습니다.');
|
|
43
|
+
}
|
|
44
|
+
else if (projectType === building_inspection_1.ProjectType.DCSP) {
|
|
45
|
+
if (!checklist.inspectionDrawingType)
|
|
46
|
+
throw new Error('검측 도면 타입이 없습니다.');
|
|
47
|
+
if (checklist.inspectionParts.length === 0)
|
|
48
|
+
throw new Error('검측 부위가 없습니다.');
|
|
49
|
+
if (!buildingLevelId)
|
|
50
|
+
throw new Error('층 아이디가 없습니다.');
|
|
51
|
+
if (!checklist.location)
|
|
52
|
+
throw new Error('위치가 없습니다.');
|
|
53
|
+
}
|
|
54
|
+
// 2. checklist 저장
|
|
55
|
+
const checklistDocumentNo = await getRecentDocumentNoByBuildingLevelId(buildingLevelId, checklist_1.DocumentNoType.CHECKLIST, tx);
|
|
56
|
+
const inspectionRequestDocumentNo = checklistDocumentNo.replace(`검측 제${checklist_1.DocumentNoType.CHECKLIST}-`, `검측 제${checklist_1.DocumentNoType.INSPECTION_REQUEST}-`);
|
|
57
|
+
const inspectionResultDocumentNo = checklistDocumentNo.replace(`검측 제${checklist_1.DocumentNoType.CHECKLIST}-`, `검측 제${checklist_1.DocumentNoType.INSPECTION_RESULT}-`);
|
|
58
|
+
const savedChecklist = await checklistRepository.save(Object.assign(Object.assign({}, checklist), { projectType, checklistReferenceType: checklist_2.ChecklistReferenceType.INSPECTION, documentNo: checklistDocumentNo, inspectionRequestDocumentNo,
|
|
59
|
+
inspectionResultDocumentNo, creator: user, updater: user }));
|
|
60
|
+
// 3. checklistItem 저장
|
|
61
|
+
const checklistItems = checklistItem.map((item, idx) => ({
|
|
62
|
+
name: item.name,
|
|
63
|
+
mainType: item.mainType,
|
|
64
|
+
detailType: item.detailType,
|
|
65
|
+
inspctionCriteria: item.inspctionCriteria,
|
|
66
|
+
kcsCriteria: item.kcsCriteria,
|
|
67
|
+
siteSpecCriteria: item.siteSpecCriteria,
|
|
68
|
+
sequence: idx,
|
|
69
|
+
checklist: savedChecklist,
|
|
70
|
+
creator: user,
|
|
71
|
+
updater: user
|
|
72
|
+
}));
|
|
73
|
+
await checklistItemRepository.save(checklistItems);
|
|
74
|
+
// 4. buildingInspection 저장
|
|
75
|
+
const result = await buildingInspectionRepository.save({
|
|
76
|
+
status: building_inspection_2.BuildingInspectionStatus.WAIT,
|
|
77
|
+
buildingLevel: { id: buildingLevelId },
|
|
78
|
+
checklist: savedChecklist,
|
|
79
|
+
projectType,
|
|
80
|
+
manager: managerId ? { id: managerId } : null,
|
|
81
|
+
cellX,
|
|
82
|
+
cellY,
|
|
83
|
+
creator: user,
|
|
84
|
+
updater: user
|
|
85
|
+
});
|
|
86
|
+
// 5. 현장 문서 자동 등록 (040202 검측체크리스트관리)
|
|
87
|
+
const projectId = await (0, field_document_auto_file_1.getProjectIdByBuildingLevelId)(buildingLevelId, tx.getRepository('projects'));
|
|
88
|
+
if (projectId) {
|
|
89
|
+
await (0, field_document_auto_file_1.autoFileDocument)({
|
|
90
|
+
projectId,
|
|
91
|
+
code: '040202',
|
|
92
|
+
name: `체크리스트 - ${savedChecklist.name || ''}`,
|
|
93
|
+
sourceType: 'CHECKLIST',
|
|
94
|
+
sourceRefId: result.id,
|
|
95
|
+
context
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return result;
|
|
99
|
+
}
|
|
100
|
+
// 검측 상태 변경 & 체크리스트 갱신
|
|
101
|
+
async updateBuildingInspectionChecklist(buildingInspection, context) {
|
|
102
|
+
const { user, tx } = context.state;
|
|
103
|
+
const { id: buildingInspectionId, memo, requestDate, checklist, checklistItem } = buildingInspection;
|
|
104
|
+
const buildingInspectionRepo = tx.getRepository(building_inspection_1.BuildingInspection);
|
|
105
|
+
const checklistRepo = tx.getRepository(checklist_1.Checklist);
|
|
106
|
+
const checklistItemRepo = tx.getRepository(checklist_item_1.ChecklistItem);
|
|
107
|
+
const oldBuildingInspection = await buildingInspectionRepo.findOneBy({ id: buildingInspectionId });
|
|
108
|
+
const status = oldBuildingInspection.status;
|
|
109
|
+
const isConstructor = status == building_inspection_2.BuildingInspectionStatus.WAIT ||
|
|
110
|
+
status == building_inspection_2.BuildingInspectionStatus.OVERALL_WAIT ||
|
|
111
|
+
status == building_inspection_2.BuildingInspectionStatus.FAIL;
|
|
112
|
+
let inspectionStatus = null;
|
|
113
|
+
let signedUserType = null; // 싸인을 한 유저 타입
|
|
114
|
+
let inspectionRequestData = {};
|
|
115
|
+
let inspectionResultData = {};
|
|
116
|
+
// 1. 벨리데이션
|
|
117
|
+
if (!buildingInspectionId)
|
|
118
|
+
throw new Error('검측 아이디가 없습니다.');
|
|
119
|
+
if (!status)
|
|
120
|
+
throw new Error('검측 상태가 없습니다.');
|
|
121
|
+
if (status == building_inspection_2.BuildingInspectionStatus.PASS)
|
|
122
|
+
throw new Error('검측 상태가 수정할 수 있는 상태가 아닙니다.');
|
|
123
|
+
if (isConstructor) {
|
|
124
|
+
// 시공자 타입별 밸리데이션
|
|
125
|
+
if (checklistItem.length !== checklistItem.filter(v => v.constructionConfirmStatus).length) {
|
|
126
|
+
throw new Error('아이템을 모두 체크해야 합니다.');
|
|
127
|
+
}
|
|
128
|
+
if (status == building_inspection_2.BuildingInspectionStatus.OVERALL_WAIT && !checklist.overallConstructorSignature) {
|
|
129
|
+
throw new Error('총괄 시공책임자 사인이 없습니다.');
|
|
130
|
+
}
|
|
131
|
+
if (status == building_inspection_2.BuildingInspectionStatus.WAIT && !checklist.taskConstructorSignature) {
|
|
132
|
+
throw new Error('공종별 시공관리자 사인이 없습니다.');
|
|
133
|
+
}
|
|
134
|
+
// 시공자 상태 데이터
|
|
135
|
+
const isPassed = checklistItem.length === checklistItem.filter(v => v.constructionConfirmStatus === 'T').length;
|
|
136
|
+
if (!isPassed) {
|
|
137
|
+
// 1. 검측이 불햡격 = 상태는 불합격으로, 시공자 싸인은 모두 초기화
|
|
138
|
+
inspectionStatus = building_inspection_2.BuildingInspectionStatus.FAIL;
|
|
139
|
+
checklist.overallConstructorSignature = null;
|
|
140
|
+
checklist.taskConstructorSignature = null;
|
|
141
|
+
}
|
|
142
|
+
else if (isPassed && (status === building_inspection_2.BuildingInspectionStatus.WAIT || status === building_inspection_2.BuildingInspectionStatus.FAIL)) {
|
|
143
|
+
// 2. 검측이 합격이면서 공종 시공자 스탭 = 상태는 총괄 시공자 스탭으로
|
|
144
|
+
inspectionStatus = building_inspection_2.BuildingInspectionStatus.OVERALL_WAIT;
|
|
145
|
+
signedUserType = 'taskConstructor';
|
|
146
|
+
}
|
|
147
|
+
else if (isPassed && status === building_inspection_2.BuildingInspectionStatus.OVERALL_WAIT) {
|
|
148
|
+
// 3. 검측이 합격이면서 총괄 시공자 스탭 = 상태는 공종 감리자 스탭으로, 감리자 싸인은 모두 초기화
|
|
149
|
+
inspectionStatus = building_inspection_2.BuildingInspectionStatus.REQUEST;
|
|
150
|
+
checklist.overallSupervisorySignature = null;
|
|
151
|
+
checklist.taskSupervisorySignature = null;
|
|
152
|
+
signedUserType = 'overallConstructor';
|
|
153
|
+
inspectionRequestData = {
|
|
154
|
+
inspectionRequestMemo: checklist.inspectionRequestMemo,
|
|
155
|
+
inspectionRequestUpdatedAt: new Date()
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
// 감리자 타입별 밸리데이션
|
|
161
|
+
if (checklistItem.length !== checklistItem.filter(v => v.supervisoryConfirmStatus).length) {
|
|
162
|
+
throw new Error('아이템을 모두 체크해야 합니다.');
|
|
163
|
+
}
|
|
164
|
+
if (status == building_inspection_2.BuildingInspectionStatus.OVERALL_REQUEST && !checklist.overallSupervisorySignature) {
|
|
165
|
+
throw new Error('총괄 감리책임자 사인이 없습니다.');
|
|
166
|
+
}
|
|
167
|
+
if (status == building_inspection_2.BuildingInspectionStatus.REQUEST && !checklist.taskSupervisorySignature) {
|
|
168
|
+
throw new Error('공종별 감리 책임자 사인이 없습니다.');
|
|
169
|
+
}
|
|
170
|
+
// 감리자 상태 데이터
|
|
171
|
+
const isPassed = checklistItem.length === checklistItem.filter(v => v.supervisoryConfirmStatus === 'T').length;
|
|
172
|
+
if (!isPassed) {
|
|
173
|
+
// 1. 검측이 불햡격 = 상태는 불합격으로, 시공자 싸인은 모두 초기화
|
|
174
|
+
inspectionStatus = building_inspection_2.BuildingInspectionStatus.FAIL;
|
|
175
|
+
checklist.overallConstructorSignature = null;
|
|
176
|
+
checklist.taskConstructorSignature = null;
|
|
177
|
+
}
|
|
178
|
+
else if (isPassed && status === building_inspection_2.BuildingInspectionStatus.REQUEST) {
|
|
179
|
+
// 2. 검측이 합격이면서 공종 감리자 스탭 = 상태는 총괄 감리자 스탭으로
|
|
180
|
+
inspectionStatus = building_inspection_2.BuildingInspectionStatus.OVERALL_REQUEST;
|
|
181
|
+
signedUserType = 'taskSupervisory';
|
|
182
|
+
}
|
|
183
|
+
else if (isPassed && status === building_inspection_2.BuildingInspectionStatus.OVERALL_REQUEST) {
|
|
184
|
+
// 3. 검측이 합격이면서 총괄 감리자 스탭 = 상태는 합격으로
|
|
185
|
+
inspectionStatus = building_inspection_2.BuildingInspectionStatus.PASS;
|
|
186
|
+
signedUserType = 'overallSupervisory';
|
|
187
|
+
inspectionResultData = {
|
|
188
|
+
inspectionResultStatus: checklist.inspectionResultStatus,
|
|
189
|
+
inspectionResultMemo: checklist.inspectionResultMemo,
|
|
190
|
+
inspectionResultType: checklist.inspectionResultType,
|
|
191
|
+
inspectionResultUpdatedAt: new Date()
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
// 2. buildingInspection 저장
|
|
196
|
+
await buildingInspectionRepo.save(Object.assign(Object.assign(Object.assign(Object.assign({}, oldBuildingInspection), { status: inspectionStatus, failCount: inspectionStatus === building_inspection_2.BuildingInspectionStatus.FAIL
|
|
197
|
+
? (oldBuildingInspection.failCount || 0) + 1
|
|
198
|
+
: oldBuildingInspection.failCount || 0 }), (requestDate !== undefined && { requestDate })), { memo: memo, updater: user }));
|
|
199
|
+
// 현장 문서 자동 등록 (040201 검측요청/결과통보서) - REQUEST 상태 전환 시
|
|
200
|
+
if (inspectionStatus === building_inspection_2.BuildingInspectionStatus.REQUEST) {
|
|
201
|
+
const buildingLevelId = oldBuildingInspection.buildingLevelId;
|
|
202
|
+
if (buildingLevelId) {
|
|
203
|
+
const projectId = await (0, field_document_auto_file_1.getProjectIdByBuildingLevelId)(buildingLevelId, tx.getRepository('projects'));
|
|
204
|
+
if (projectId) {
|
|
205
|
+
await (0, field_document_auto_file_1.autoFileDocument)({
|
|
206
|
+
projectId,
|
|
207
|
+
code: '040201',
|
|
208
|
+
name: `검측요청서 - ${buildingInspectionId}`,
|
|
209
|
+
sourceType: 'INSPECTION_REQUEST',
|
|
210
|
+
sourceRefId: buildingInspectionId,
|
|
211
|
+
context
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
// 3. checklist 저장
|
|
217
|
+
const oldChecklist = await checklistRepo.findOneBy({ id: checklist.id });
|
|
218
|
+
const inspectionDateField = isConstructor ? 'constructionInspectionDate' : 'supervisorInspectionDate';
|
|
219
|
+
const signedUser = signedUserType ? { [signedUserType]: user } : {};
|
|
220
|
+
await checklistRepo.save(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, oldChecklist), { [inspectionDateField]: new Date(), overallConstructorSignature: checklist.overallConstructorSignature, taskConstructorSignature: checklist.taskConstructorSignature, overallSupervisorySignature: checklist.overallSupervisorySignature, taskSupervisorySignature: checklist.taskSupervisorySignature }), signedUser), inspectionRequestData), inspectionResultData), { updater: user }));
|
|
221
|
+
// 4. checklistItem 저장
|
|
222
|
+
for (let item of checklistItem) {
|
|
223
|
+
const confirmStatusField = isConstructor ? 'constructionConfirmStatus' : 'supervisoryConfirmStatus';
|
|
224
|
+
const existingItem = await checklistItemRepo.findOneBy({ id: item.id });
|
|
225
|
+
await checklistItemRepo.save(Object.assign(Object.assign({}, existingItem), { [confirmStatusField]: item[confirmStatusField], updater: user }));
|
|
226
|
+
}
|
|
227
|
+
return true;
|
|
228
|
+
}
|
|
229
|
+
async updateBuildingInspection(patch, context) {
|
|
230
|
+
const { user, tx } = context.state;
|
|
231
|
+
const buildingInspectionRepo = tx.getRepository(building_inspection_1.BuildingInspection);
|
|
232
|
+
// 벨리데이션
|
|
233
|
+
if (!patch.id)
|
|
234
|
+
throw new Error('검측 아이디가 없습니다.');
|
|
235
|
+
const buildingInspection = await buildingInspectionRepo.findOneBy({ id: patch.id });
|
|
236
|
+
// 완료 상태인 검측데이터면 삭제 못함
|
|
237
|
+
if (buildingInspection.status === building_inspection_2.BuildingInspectionStatus.PASS) {
|
|
238
|
+
throw new Error('완료 상태인 검측정보를 변경할 수 없습니다.');
|
|
239
|
+
}
|
|
240
|
+
const result = await buildingInspectionRepo.save(Object.assign(Object.assign(Object.assign({}, buildingInspection), patch), { updater: user }));
|
|
241
|
+
return result;
|
|
242
|
+
}
|
|
243
|
+
async deleteBuildingInspections(ids, context) {
|
|
244
|
+
const { tx } = context.state;
|
|
245
|
+
const buildingInspectionRepository = tx.getRepository(building_inspection_1.BuildingInspection);
|
|
246
|
+
const checklistRepository = tx.getRepository(checklist_1.Checklist);
|
|
247
|
+
const checklistItemRepository = tx.getRepository(checklist_item_1.ChecklistItem);
|
|
248
|
+
const buildingInspections = await buildingInspectionRepository.createQueryBuilder('bi').whereInIds(ids).getMany();
|
|
249
|
+
// 완료 상태인 검측데이터가 한개라도 있으면 삭제 못함
|
|
250
|
+
if (buildingInspections.filter(bi => bi.status === building_inspection_2.BuildingInspectionStatus.PASS).length > 0) {
|
|
251
|
+
throw new Error('완료 상태인 검측정보를 변경할 수 없습니다.');
|
|
252
|
+
}
|
|
253
|
+
// 검측 데이터 제거
|
|
254
|
+
await buildingInspectionRepository.softDelete({
|
|
255
|
+
id: (0, typeorm_1.In)(ids)
|
|
256
|
+
});
|
|
257
|
+
// 검측 데이터의 체크 리스트 제거
|
|
258
|
+
const checklistIds = buildingInspections.map(bi => bi.checklistId);
|
|
259
|
+
await checklistRepository.softDelete({
|
|
260
|
+
id: (0, typeorm_1.In)(checklistIds)
|
|
261
|
+
});
|
|
262
|
+
// 검측 데이터의 체크 리스트 아이템 제거
|
|
263
|
+
await checklistItemRepository
|
|
264
|
+
.createQueryBuilder()
|
|
265
|
+
.softDelete()
|
|
266
|
+
.where('checklist_id IN (:...checklistIds)', { checklistIds })
|
|
267
|
+
.execute();
|
|
268
|
+
return true;
|
|
269
|
+
}
|
|
270
|
+
async applyToAllBuildingInspection(buildingInspectionId, context) {
|
|
271
|
+
const { user, tx } = context.state;
|
|
272
|
+
const buildingInspectionRepository = tx.getRepository(building_inspection_1.BuildingInspection);
|
|
273
|
+
const buildingInspection = await buildingInspectionRepository.findOne({
|
|
274
|
+
where: { id: buildingInspectionId },
|
|
275
|
+
relations: ['buildingLevel', 'buildingLevel.building', 'checklist', 'checklist.checklistItems']
|
|
276
|
+
});
|
|
277
|
+
const checklist = buildingInspection.checklist;
|
|
278
|
+
const checklistItems = checklist.checklistItems;
|
|
279
|
+
const buildingLevels = await (0, shell_1.getRepository)(building_complex_1.BuildingLevel).find({
|
|
280
|
+
where: { building: { id: buildingInspection.buildingLevel.building.id } }
|
|
281
|
+
});
|
|
282
|
+
// 해당 검측 정보가 속한 동의 모든 층에 같은 검측 데이터 등록
|
|
283
|
+
for (let buildingLevel of buildingLevels) {
|
|
284
|
+
// 같은 셀에 이미 검측 정보가 있으면 패스
|
|
285
|
+
const existInspection = await buildingInspectionRepository.findOneBy({
|
|
286
|
+
buildingLevel: { id: buildingLevel.id },
|
|
287
|
+
cellX: buildingInspection.cellX,
|
|
288
|
+
cellY: buildingInspection.cellY
|
|
289
|
+
});
|
|
290
|
+
if (existInspection)
|
|
291
|
+
continue;
|
|
292
|
+
// 새로운 체크리스트 데이터
|
|
293
|
+
const newChecklist = {
|
|
294
|
+
name: checklist.name,
|
|
295
|
+
location: `${buildingInspection.buildingLevel.building.name} ${buildingLevel.floor}층`,
|
|
296
|
+
constructionType: checklist.constructionType,
|
|
297
|
+
constructionDetailType: checklist.constructionDetailType,
|
|
298
|
+
inspectionDrawingType: checklist.inspectionDrawingType,
|
|
299
|
+
inspectionParts: checklist.inspectionParts
|
|
300
|
+
};
|
|
301
|
+
// 새로운 체크리스트 아이템 데이터
|
|
302
|
+
const newChecklistItems = checklistItems.map(item => ({
|
|
303
|
+
name: item.name,
|
|
304
|
+
mainType: item.mainType,
|
|
305
|
+
detailType: item.detailType,
|
|
306
|
+
inspctionCriteria: item.inspctionCriteria,
|
|
307
|
+
kcsCriteria: item.kcsCriteria,
|
|
308
|
+
siteSpecCriteria: item.siteSpecCriteria
|
|
309
|
+
}));
|
|
310
|
+
await this.createBuildingInspection({
|
|
311
|
+
buildingLevelId: buildingLevel.id,
|
|
312
|
+
checklist: newChecklist,
|
|
313
|
+
checklistItem: newChecklistItems,
|
|
314
|
+
cellX: buildingInspection.cellX,
|
|
315
|
+
cellY: buildingInspection.cellY,
|
|
316
|
+
managerId: buildingInspection.managerId
|
|
317
|
+
}, context);
|
|
318
|
+
}
|
|
319
|
+
return true;
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
exports.BuildingInspectionMutation = BuildingInspectionMutation;
|
|
323
|
+
tslib_1.__decorate([
|
|
324
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
325
|
+
(0, type_graphql_1.Mutation)(returns => building_inspection_1.BuildingInspection, { description: 'To create Building Inspection information' }),
|
|
326
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('patch')),
|
|
327
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
328
|
+
tslib_1.__metadata("design:type", Function),
|
|
329
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_type_1.NewBuildingInspection, Object]),
|
|
330
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
331
|
+
], BuildingInspectionMutation.prototype, "createBuildingInspection", null);
|
|
332
|
+
tslib_1.__decorate([
|
|
333
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
334
|
+
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To create Building Inspection And Checklist information' }),
|
|
335
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('buildingInspection')),
|
|
336
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
337
|
+
tslib_1.__metadata("design:type", Function),
|
|
338
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_type_1.UpdateBuildingInspectionSubmitType, Object]),
|
|
339
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
340
|
+
], BuildingInspectionMutation.prototype, "updateBuildingInspectionChecklist", null);
|
|
341
|
+
tslib_1.__decorate([
|
|
342
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
343
|
+
(0, type_graphql_1.Mutation)(returns => building_inspection_1.BuildingInspection, { description: 'To update Building Inspection information' }),
|
|
344
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('patch')),
|
|
345
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
346
|
+
tslib_1.__metadata("design:type", Function),
|
|
347
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_type_1.UpdateBuildingInspection, Object]),
|
|
348
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
349
|
+
], BuildingInspectionMutation.prototype, "updateBuildingInspection", null);
|
|
350
|
+
tslib_1.__decorate([
|
|
351
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
352
|
+
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple Checklists' }),
|
|
353
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
354
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
355
|
+
tslib_1.__metadata("design:type", Function),
|
|
356
|
+
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
357
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
358
|
+
], BuildingInspectionMutation.prototype, "deleteBuildingInspections", null);
|
|
359
|
+
tslib_1.__decorate([
|
|
360
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
361
|
+
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To apply to all building inspection' }),
|
|
362
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('buildingInspectionId')),
|
|
363
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
364
|
+
tslib_1.__metadata("design:type", Function),
|
|
365
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
366
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
367
|
+
], BuildingInspectionMutation.prototype, "applyToAllBuildingInspection", null);
|
|
368
|
+
exports.BuildingInspectionMutation = BuildingInspectionMutation = tslib_1.__decorate([
|
|
369
|
+
(0, type_graphql_1.Resolver)(building_inspection_1.BuildingInspection)
|
|
370
|
+
], BuildingInspectionMutation);
|
|
371
|
+
async function getRecentDocumentNoByBuildingLevelId(buildingLevelId, type, tx) {
|
|
372
|
+
const project = await tx
|
|
373
|
+
.createQueryBuilder()
|
|
374
|
+
.select('p.documentNaming', 'documentNaming')
|
|
375
|
+
.addSelect('bc.id', 'buildingComplexId')
|
|
376
|
+
.from('projects', 'p')
|
|
377
|
+
.innerJoin('building_complexes', 'bc', 'bc.id = p.building_complex_id')
|
|
378
|
+
.innerJoin('buildings', 'b', 'b.building_complex_id = bc.id')
|
|
379
|
+
.innerJoin('building_levels', 'bl', 'bl.building_id = b.id')
|
|
380
|
+
.where('bl.id = :buildingLevelId', { buildingLevelId })
|
|
381
|
+
.getRawOne();
|
|
382
|
+
const latestChecklist = await tx
|
|
383
|
+
.getRepository(checklist_1.Checklist)
|
|
384
|
+
.createQueryBuilder('c')
|
|
385
|
+
.innerJoin('c.buildingInspection', 'bi')
|
|
386
|
+
.innerJoin('bi.buildingLevel', 'bl')
|
|
387
|
+
.innerJoin('bl.building', 'b')
|
|
388
|
+
.where('b.building_complex_id = :buildingComplexId', { buildingComplexId: project.buildingComplexId })
|
|
389
|
+
.andWhere('c.document_no LIKE :pattern', { pattern: `${project.documentNaming} 검측 제${type}-%` })
|
|
390
|
+
.orderBy('c.created_at', 'DESC')
|
|
391
|
+
.getOne();
|
|
392
|
+
// 4. 시퀀스 번호 생성 (5자리)
|
|
393
|
+
let sequence = '00001';
|
|
394
|
+
if (latestChecklist) {
|
|
395
|
+
const documentNoPattern = new RegExp(`${project.documentNaming} 검측 제${type}-(\\d{5})호`);
|
|
396
|
+
const match = latestChecklist.documentNo.match(documentNoPattern);
|
|
397
|
+
if (match) {
|
|
398
|
+
sequence = (Number(match[1]) + 1).toString().padStart(5, '0');
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
// 5. 최종 문서 번호 생성
|
|
402
|
+
return `${project.documentNaming} 검측 제${type}-${sequence}호`;
|
|
403
|
+
}
|
|
404
|
+
//# sourceMappingURL=building-inspection-mutation.js.map
|