@dssp/supervision 1.0.0-alpha.7 → 1.0.0-alpha.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/graphql/building-inspection.d.ts +1 -0
- package/dist-client/graphql/building-inspection.js +101 -0
- package/dist-client/graphql/building-inspection.js.map +1 -0
- package/dist-client/pages/action-plan/action-plan-list-page.d.ts +1 -2
- package/dist-client/pages/action-plan/action-plan-list-page.js +1 -2
- package/dist-client/pages/action-plan/action-plan-list-page.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +22 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +171 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +59 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +868 -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-camera.d.ts +8 -6
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +116 -65
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +11 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +147 -72
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +78 -14
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +26 -2
- package/dist-client/pages/building-inspection/building-inspection-list.js +375 -34
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-management.d.ts +72 -0
- package/dist-client/pages/building-inspection/building-inspection-management.js +1256 -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 +3 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +112 -20
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +542 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/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 +2 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +42 -18
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-create-popup.js +17 -5
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.d.ts +3 -0
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +791 -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 +16 -2
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +249 -45
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +9 -3
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -1
- 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/checklist/attachment-list-popup.d.ts +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.js +251 -69
- package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/checklist-view.d.ts +5 -0
- package/dist-client/pages/checklist/checklist-view.js +191 -30
- package/dist-client/pages/checklist/checklist-view.js.map +1 -1
- package/dist-client/pages/checklist/comment-list-popup.js +15 -5
- package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/file-preview-popup.js +0 -1
- package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
- package/dist-client/pages/checklist/inspection-info-popup.d.ts +49 -0
- package/dist-client/pages/checklist/inspection-info-popup.js +683 -0
- package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
- package/dist-client/pages/checklist/inspection-tab-popup.d.ts +18 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js +196 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
- package/dist-client/pages/checklist-database/checklist-database.d.ts +35 -0
- package/dist-client/pages/checklist-database/checklist-database.js +539 -0
- package/dist-client/pages/checklist-database/checklist-database.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js +39 -3
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.d.ts +2 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js +242 -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 +409 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +1 -0
- package/dist-client/pages/issue/issue-list-page.d.ts +1 -2
- package/dist-client/pages/issue/issue-list-page.js +1 -2
- package/dist-client/pages/issue/issue-list-page.js.map +1 -1
- package/dist-client/pages/project-checklist/project-checklist-management.d.ts +50 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js +910 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js.map +1 -0
- package/dist-client/pages/project-report/project-report-list-page.d.ts +1 -2
- package/dist-client/pages/project-report/project-report-list-page.js +1 -2
- package/dist-client/pages/project-report/project-report-list-page.js.map +1 -1
- package/dist-client/pages/supervisor/supervisor-list-page.d.ts +1 -2
- package/dist-client/pages/supervisor/supervisor-list-page.js +1 -2
- package/dist-client/pages/supervisor/supervisor-list-page.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +18 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/stt/speech-to-text.d.ts +13 -8
- package/dist-client/stt/speech-to-text.js +282 -40
- package/dist-client/stt/speech-to-text.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/action-plan/action-plan-mutation.js +5 -6
- package/dist-server/service/action-plan/action-plan-mutation.js.map +1 -1
- package/dist-server/service/action-plan/action-plan-query.d.ts +2 -2
- package/dist-server/service/action-plan/action-plan-query.js +5 -11
- package/dist-server/service/action-plan/action-plan-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +2 -3
- package/dist-server/service/building-inspection/building-inspection-mutation.js +77 -39
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +5 -7
- package/dist-server/service/building-inspection/building-inspection-query.js +54 -52
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +26 -7
- package/dist-server/service/building-inspection/building-inspection-type.js +92 -13
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +5 -0
- package/dist-server/service/building-inspection/building-inspection.js +37 -4
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/building-inspection/index.d.ts +3 -4
- package/dist-server/service/building-inspection/index.js +10 -3
- package/dist-server/service/building-inspection/index.js.map +1 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +56 -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 +0 -5
- package/dist-server/service/checklist/checklist-mutation.js +1 -67
- package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
- package/dist-server/service/checklist/checklist-query.d.ts +7 -0
- package/dist-server/service/checklist/checklist-query.js +83 -0
- package/dist-server/service/checklist/checklist-query.js.map +1 -1
- package/dist-server/service/checklist/checklist-type.d.ts +0 -13
- package/dist-server/service/checklist/checklist-type.js +1 -49
- package/dist-server/service/checklist/checklist-type.js.map +1 -1
- package/dist-server/service/checklist/checklist.d.ts +28 -3
- package/dist-server/service/checklist/checklist.js +89 -15
- package/dist-server/service/checklist/checklist.js.map +1 -1
- 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 +1 -2
- package/dist-server/service/checklist/index.js +1 -2
- package/dist-server/service/checklist/index.js.map +1 -1
- package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
- package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
- package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
- package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
- package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
- package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
- package/dist-server/service/{checklist → checklist-history}/checklist-history.d.ts +19 -1
- package/dist-server/service/{checklist → checklist-history}/checklist-history.js +97 -14
- 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-query.d.ts +1 -1
- package/dist-server/service/checklist-item/checklist-item-query.js +5 -3
- package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
- package/dist-server/service/checklist-item/index.d.ts +0 -1
- package/dist-server/service/checklist-item/index.js +1 -2
- package/dist-server/service/checklist-item/index.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +33 -6
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
- package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +25 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js +123 -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-query.d.ts +1 -1
- package/dist-server/service/checklist-template/checklist-template-query.js +2 -5
- package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +13 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +3 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js +9 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +7 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.js +22 -2
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
- package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +2 -0
- package/dist-server/service/checklist-template-item/spec-matching-service.js +51 -0
- package/dist-server/service/checklist-template-item/spec-matching-service.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type-query.d.ts +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.js +2 -5
- package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.d.ts +7 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js +107 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.d.ts +10 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js +62 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.d.ts +11 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js +43 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts +18 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.js +80 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map +1 -0
- package/dist-server/service/construction-checklist-template/index.d.ts +5 -0
- package/dist-server/service/construction-checklist-template/index.js +9 -0
- package/dist-server/service/construction-checklist-template/index.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.d.ts +6 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js +60 -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/construction-checklist-template-item/spec-matching-service.d.ts +2 -0
- package/dist-server/service/construction-checklist-template-item/spec-matching-service.js +50 -0
- package/dist-server/service/construction-checklist-template-item/spec-matching-service.js.map +1 -0
- package/dist-server/service/index.d.ts +8 -1
- package/dist-server/service/index.js +38 -3
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/issue/issue-mutation.js +5 -6
- package/dist-server/service/issue/issue-mutation.js.map +1 -1
- package/dist-server/service/issue/issue-query.d.ts +2 -2
- package/dist-server/service/issue/issue-query.js +5 -11
- package/dist-server/service/issue/issue-query.js.map +1 -1
- package/dist-server/service/project-checklist/index.d.ts +5 -0
- package/dist-server/service/project-checklist/index.js +9 -0
- package/dist-server/service/project-checklist/index.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.d.ts +7 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.js +109 -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-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 +17 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.js +82 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.js.map +1 -0
- package/dist-server/service/project-report/project-report-mutation.js +5 -6
- package/dist-server/service/project-report/project-report-mutation.js.map +1 -1
- package/dist-server/service/project-report/project-report-query.d.ts +2 -2
- package/dist-server/service/project-report/project-report-query.js +5 -11
- package/dist-server/service/project-report/project-report-query.js.map +1 -1
- package/dist-server/service/project-report/project-report.d.ts +0 -2
- package/dist-server/service/project-report/project-report.js +0 -6
- package/dist-server/service/project-report/project-report.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-mutation.js +5 -6
- package/dist-server/service/supervisor/supervisor-mutation.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-query.d.ts +2 -2
- package/dist-server/service/supervisor/supervisor-query.js +5 -11
- package/dist-server/service/supervisor/supervisor-query.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -13
- package/things-factory.config.js +9 -1
- package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
- package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
- package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
- package/dist-server/service/checklist/checklist-history.js.map +0 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistHistoryQuery = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
7
|
+
const shell_1 = require("@things-factory/shell");
|
|
8
|
+
const checklist_history_1 = require("./checklist-history");
|
|
9
|
+
const checklist_history_type_1 = require("./checklist-history-type");
|
|
10
|
+
let ChecklistHistoryQuery = class ChecklistHistoryQuery {
|
|
11
|
+
async checklistHistory(id, context) {
|
|
12
|
+
return await (0, shell_1.getRepository)(checklist_history_1.ChecklistHistory).findOne({
|
|
13
|
+
where: { originalId: id }
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
async checklistHistories(params, context) {
|
|
17
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
18
|
+
repository: (0, shell_1.getRepository)(checklist_history_1.ChecklistHistory),
|
|
19
|
+
params,
|
|
20
|
+
searchables: ['name']
|
|
21
|
+
});
|
|
22
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
23
|
+
return { items, total };
|
|
24
|
+
}
|
|
25
|
+
async timestamp(checklistHistory) {
|
|
26
|
+
return checklistHistory.loggedAt;
|
|
27
|
+
}
|
|
28
|
+
async updater(checklistHistory) {
|
|
29
|
+
return checklistHistory.updaterId && (await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistHistory.updaterId }));
|
|
30
|
+
}
|
|
31
|
+
async creator(checklistHistory) {
|
|
32
|
+
return checklistHistory.creatorId && (await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistHistory.creatorId }));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.ChecklistHistoryQuery = ChecklistHistoryQuery;
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, type_graphql_1.Directive)('@privilege(category: "checklist-history", privilege: "query", domainOwnerGranted: true)'),
|
|
38
|
+
(0, type_graphql_1.Query)(returns => checklist_history_1.ChecklistHistory, { description: 'To fetch a ChecklistHistory' }),
|
|
39
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
40
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
41
|
+
tslib_1.__metadata("design:type", Function),
|
|
42
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
43
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
44
|
+
], ChecklistHistoryQuery.prototype, "checklistHistory", null);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
(0, type_graphql_1.Query)(returns => checklist_history_type_1.ChecklistHistoryList, { description: 'To fetch multiple ChecklistHistories' }),
|
|
47
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)(type => shell_1.ListParam)),
|
|
48
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
49
|
+
tslib_1.__metadata("design:type", Function),
|
|
50
|
+
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
51
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
52
|
+
], ChecklistHistoryQuery.prototype, "checklistHistories", null);
|
|
53
|
+
tslib_1.__decorate([
|
|
54
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
55
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
56
|
+
tslib_1.__metadata("design:type", Function),
|
|
57
|
+
tslib_1.__metadata("design:paramtypes", [checklist_history_1.ChecklistHistory]),
|
|
58
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
59
|
+
], ChecklistHistoryQuery.prototype, "timestamp", null);
|
|
60
|
+
tslib_1.__decorate([
|
|
61
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
62
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
63
|
+
tslib_1.__metadata("design:type", Function),
|
|
64
|
+
tslib_1.__metadata("design:paramtypes", [checklist_history_1.ChecklistHistory]),
|
|
65
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
66
|
+
], ChecklistHistoryQuery.prototype, "updater", null);
|
|
67
|
+
tslib_1.__decorate([
|
|
68
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
69
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
70
|
+
tslib_1.__metadata("design:type", Function),
|
|
71
|
+
tslib_1.__metadata("design:paramtypes", [checklist_history_1.ChecklistHistory]),
|
|
72
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
73
|
+
], ChecklistHistoryQuery.prototype, "creator", null);
|
|
74
|
+
exports.ChecklistHistoryQuery = ChecklistHistoryQuery = tslib_1.__decorate([
|
|
75
|
+
(0, type_graphql_1.Resolver)(checklist_history_1.ChecklistHistory)
|
|
76
|
+
], ChecklistHistoryQuery);
|
|
77
|
+
//# sourceMappingURL=checklist-history-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-history-query.js","sourceRoot":"","sources":["../../../server/service/checklist-history/checklist-history-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8F;AAE9F,yDAAgD;AAChD,iDAA2G;AAE3G,2DAAsD;AACtD,qEAA+D;AAGxD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAG1B,AAAN,KAAK,CAAC,gBAAgB,CAAY,EAAU,EAAS,OAAwB;QAC3E,OAAO,MAAM,IAAA,qBAAa,EAAC,oCAAgB,CAAC,CAAC,OAAO,CAAC;YACnD,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;SAC1B,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,kBAAkB,CACG,MAAiB,EACnC,OAAwB;QAE/B,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,UAAU,EAAE,IAAA,qBAAa,EAAC,oCAAgB,CAAC;YAC3C,MAAM;YACN,WAAW,EAAE,CAAC,MAAM,CAAC;SACtB,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAA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AA,IAAA,mBAAI,GAAE,CAAA;;6CAAmB,oCAAgB;;sDAEzD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAmB,oCAAgB;;oDAEvD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAmB,oCAAgB;;oDAEvD;gCAtCU,qBAAqB;IADjC,IAAA,uBAAQ,EAAC,oCAAgB,CAAC;GACd,qBAAqB,CAuCjC","sourcesContent":["import { Arg, Args, Ctx, Directive, FieldResolver, Query, Resolver, Root } from 'type-graphql'\n\nimport { User } from '@things-factory/auth-base'\nimport { getQueryBuilderFromListParams, getRepository, ListParam, ScalarDate } from '@things-factory/shell'\n\nimport { ChecklistHistory } from './checklist-history'\nimport { ChecklistHistoryList } from './checklist-history-type'\n\n@Resolver(ChecklistHistory)\nexport class ChecklistHistoryQuery {\n @Directive('@privilege(category: \"checklist-history\", privilege: \"query\", domainOwnerGranted: true)')\n @Query(returns => ChecklistHistory, { description: 'To fetch a ChecklistHistory' })\n async checklistHistory(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<ChecklistHistory> {\n return await getRepository(ChecklistHistory).findOne({\n where: { originalId: id }\n })\n }\n\n @Query(returns => ChecklistHistoryList, { description: 'To fetch multiple ChecklistHistories' })\n async checklistHistories(\n @Args(type => ListParam) params: ListParam,\n @Ctx() context: ResolverContext\n ): Promise<ChecklistHistoryList> {\n const queryBuilder = getQueryBuilderFromListParams({\n repository: getRepository(ChecklistHistory),\n params,\n searchables: ['name']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => User)\n async timestamp(@Root() checklistHistory: ChecklistHistory): Promise<Date> {\n return checklistHistory.loggedAt\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklistHistory: ChecklistHistory): Promise<User> {\n return checklistHistory.updaterId && (await getRepository(User).findOneBy({ id: checklistHistory.updaterId }))\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistHistory: ChecklistHistory): Promise<User> {\n return checklistHistory.creatorId && (await getRepository(User).findOneBy({ id: checklistHistory.creatorId }))\n }\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistHistoryList = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const checklist_history_1 = require("./checklist-history");
|
|
7
|
+
let ChecklistHistoryList = class ChecklistHistoryList {
|
|
8
|
+
};
|
|
9
|
+
exports.ChecklistHistoryList = ChecklistHistoryList;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, type_graphql_1.Field)(type => [checklist_history_1.ChecklistHistory]),
|
|
12
|
+
tslib_1.__metadata("design:type", Array)
|
|
13
|
+
], ChecklistHistoryList.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
|
+
], ChecklistHistoryList.prototype, "total", void 0);
|
|
18
|
+
exports.ChecklistHistoryList = ChecklistHistoryList = tslib_1.__decorate([
|
|
19
|
+
(0, type_graphql_1.ObjectType)()
|
|
20
|
+
], ChecklistHistoryList);
|
|
21
|
+
//# sourceMappingURL=checklist-history-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-history-type.js","sourceRoot":"","sources":["../../../server/service/checklist-history/checklist-history-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAqD;AAErD,2DAAsD;AAG/C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAMhC,CAAA;AANY,oDAAoB;AAE/B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,oCAAgB,CAAC,CAAC;;mDACT;AAGzB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;mDACN;+BALF,oBAAoB;IADhC,IAAA,yBAAU,GAAE;GACA,oBAAoB,CAMhC","sourcesContent":["import { Field, Int, ObjectType } from 'type-graphql'\n\nimport { ChecklistHistory } from './checklist-history'\n\n@ObjectType()\nexport class ChecklistHistoryList {\n @Field(type => [ChecklistHistory])\n items: ChecklistHistory[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
|
|
2
2
|
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { Checklist } from '
|
|
3
|
+
import { Checklist, ChecklistReferenceType, InspectionResultStatus, InspectionResultType } from '../checklist/checklist';
|
|
4
|
+
import { ProjectType } from '../building-inspection/building-inspection';
|
|
5
|
+
import { BuildingInspectionHistory } from '../building-inspection-history/building-inspection-history';
|
|
6
|
+
import { ChecklistItemHistory } from '../checklist-item-history/checklist-item-history';
|
|
4
7
|
export declare class ChecklistHistory implements HistoryEntityInterface<Checklist> {
|
|
5
8
|
readonly id: string;
|
|
6
9
|
name?: string;
|
|
7
10
|
documentNo?: string;
|
|
11
|
+
projectType?: ProjectType;
|
|
12
|
+
checklistReferenceType?: ChecklistReferenceType;
|
|
8
13
|
constructionType?: string;
|
|
9
14
|
constructionDetailType?: string;
|
|
10
15
|
location?: string;
|
|
@@ -24,9 +29,22 @@ export declare class ChecklistHistory implements HistoryEntityInterface<Checklis
|
|
|
24
29
|
overallSupervisoryId?: string;
|
|
25
30
|
taskSupervisory?: User;
|
|
26
31
|
taskSupervisoryId?: string;
|
|
32
|
+
checklistItemHistories?: ChecklistItemHistory[];
|
|
33
|
+
buildingInspectionHistory?: BuildingInspectionHistory;
|
|
34
|
+
inspectionRequestDocumentNo?: string;
|
|
35
|
+
inspectionRequestMemo?: string;
|
|
36
|
+
inspectionRequestUpdatedAt?: Date;
|
|
37
|
+
inspectionResultDocumentNo?: string;
|
|
38
|
+
inspectionResultMemo?: string;
|
|
39
|
+
inspectionResultStatus?: InspectionResultStatus;
|
|
40
|
+
inspectionResultType?: InspectionResultType;
|
|
41
|
+
inspectionResultUpdatedAt?: Date;
|
|
27
42
|
createdAt?: Date;
|
|
43
|
+
loggedAt?: Date;
|
|
28
44
|
creator?: User;
|
|
29
45
|
creatorId?: string;
|
|
46
|
+
updater?: User;
|
|
47
|
+
updaterId?: string;
|
|
30
48
|
originalId: string;
|
|
31
49
|
action: HistoryActionType;
|
|
32
50
|
}
|
|
@@ -7,6 +7,10 @@ const typeorm_1 = require("typeorm");
|
|
|
7
7
|
const typeorm_history_1 = require("@operato/typeorm-history");
|
|
8
8
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
9
|
const env_1 = require("@things-factory/env");
|
|
10
|
+
const checklist_1 = require("../checklist/checklist");
|
|
11
|
+
const building_inspection_1 = require("../building-inspection/building-inspection");
|
|
12
|
+
const building_inspection_history_1 = require("../building-inspection-history/building-inspection-history");
|
|
13
|
+
const checklist_item_history_1 = require("../checklist-item-history/checklist-item-history");
|
|
10
14
|
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
|
11
15
|
const DATABASE_TYPE = ORMCONFIG.type;
|
|
12
16
|
let ChecklistHistory = class ChecklistHistory {
|
|
@@ -23,27 +27,37 @@ tslib_1.__decorate([
|
|
|
23
27
|
tslib_1.__metadata("design:type", String)
|
|
24
28
|
], ChecklistHistory.prototype, "name", void 0);
|
|
25
29
|
tslib_1.__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '문서 번호 동(4자리)-층(3자리)-시퀀스(6자리)' }),
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '문서 번호 - 검측: 동(4자리)-층(3자리)-시퀀스(6자리), 공정표: 날짜(6자리)-시퀀스(6자리)' }),
|
|
27
31
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
28
32
|
tslib_1.__metadata("design:type", String)
|
|
29
33
|
], ChecklistHistory.prototype, "documentNo", void 0);
|
|
30
34
|
tslib_1.__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ nullable: false, comment: '
|
|
35
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '프로젝트 타입', default: building_inspection_1.ProjectType.DSSP }),
|
|
36
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
37
|
+
tslib_1.__metadata("design:type", String)
|
|
38
|
+
], ChecklistHistory.prototype, "projectType", void 0);
|
|
39
|
+
tslib_1.__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '체크리스트 참조 타입 (구분 용)', default: checklist_1.ChecklistReferenceType.INSPECTION }),
|
|
41
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
42
|
+
tslib_1.__metadata("design:type", String)
|
|
43
|
+
], ChecklistHistory.prototype, "checklistReferenceType", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '공종' }),
|
|
32
46
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
33
47
|
tslib_1.__metadata("design:type", String)
|
|
34
48
|
], ChecklistHistory.prototype, "constructionType", void 0);
|
|
35
49
|
tslib_1.__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ nullable:
|
|
50
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '세부 공종' }),
|
|
37
51
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
38
52
|
tslib_1.__metadata("design:type", String)
|
|
39
53
|
], ChecklistHistory.prototype, "constructionDetailType", void 0);
|
|
40
54
|
tslib_1.__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ nullable:
|
|
55
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '위치 (x동 x층)' }),
|
|
42
56
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
43
57
|
tslib_1.__metadata("design:type", String)
|
|
44
58
|
], ChecklistHistory.prototype, "location", void 0);
|
|
45
59
|
tslib_1.__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ nullable:
|
|
60
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 도면 타입', default: '' }),
|
|
47
61
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
48
62
|
tslib_1.__metadata("design:type", String)
|
|
49
63
|
], ChecklistHistory.prototype, "inspectionDrawingType", void 0);
|
|
@@ -88,7 +102,7 @@ tslib_1.__decorate([
|
|
|
88
102
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
89
103
|
], ChecklistHistory.prototype, "overallConstructor", void 0);
|
|
90
104
|
tslib_1.__decorate([
|
|
91
|
-
(0, typeorm_1.RelationId)((
|
|
105
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.overallConstructor),
|
|
92
106
|
tslib_1.__metadata("design:type", String)
|
|
93
107
|
], ChecklistHistory.prototype, "overallConstructorId", void 0);
|
|
94
108
|
tslib_1.__decorate([
|
|
@@ -97,7 +111,7 @@ tslib_1.__decorate([
|
|
|
97
111
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
98
112
|
], ChecklistHistory.prototype, "taskConstructor", void 0);
|
|
99
113
|
tslib_1.__decorate([
|
|
100
|
-
(0, typeorm_1.RelationId)((
|
|
114
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.taskConstructor),
|
|
101
115
|
tslib_1.__metadata("design:type", String)
|
|
102
116
|
], ChecklistHistory.prototype, "taskConstructorId", void 0);
|
|
103
117
|
tslib_1.__decorate([
|
|
@@ -106,7 +120,7 @@ tslib_1.__decorate([
|
|
|
106
120
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
107
121
|
], ChecklistHistory.prototype, "overallSupervisory", void 0);
|
|
108
122
|
tslib_1.__decorate([
|
|
109
|
-
(0, typeorm_1.RelationId)((
|
|
123
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.overallSupervisory),
|
|
110
124
|
tslib_1.__metadata("design:type", String)
|
|
111
125
|
], ChecklistHistory.prototype, "overallSupervisoryId", void 0);
|
|
112
126
|
tslib_1.__decorate([
|
|
@@ -115,25 +129,91 @@ tslib_1.__decorate([
|
|
|
115
129
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
116
130
|
], ChecklistHistory.prototype, "taskSupervisory", void 0);
|
|
117
131
|
tslib_1.__decorate([
|
|
118
|
-
(0, typeorm_1.RelationId)((
|
|
132
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.taskSupervisory),
|
|
119
133
|
tslib_1.__metadata("design:type", String)
|
|
120
134
|
], ChecklistHistory.prototype, "taskSupervisoryId", void 0);
|
|
135
|
+
tslib_1.__decorate([
|
|
136
|
+
(0, typeorm_1.OneToMany)(() => checklist_item_history_1.ChecklistItemHistory, checklistItem => checklistItem.checklistHistory),
|
|
137
|
+
(0, type_graphql_1.Field)(() => [checklist_item_history_1.ChecklistItemHistory]),
|
|
138
|
+
tslib_1.__metadata("design:type", Array)
|
|
139
|
+
], ChecklistHistory.prototype, "checklistItemHistories", void 0);
|
|
140
|
+
tslib_1.__decorate([
|
|
141
|
+
(0, typeorm_1.OneToOne)(() => building_inspection_history_1.BuildingInspectionHistory, buildingInspectionHistory => buildingInspectionHistory.checklistHistory),
|
|
142
|
+
(0, type_graphql_1.Field)(() => building_inspection_history_1.BuildingInspectionHistory),
|
|
143
|
+
tslib_1.__metadata("design:type", building_inspection_history_1.BuildingInspectionHistory)
|
|
144
|
+
], ChecklistHistory.prototype, "buildingInspectionHistory", void 0);
|
|
145
|
+
tslib_1.__decorate([
|
|
146
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 요청서 문서번호 - {네이밍} 검측 제02-00001호)' }) // DocumentNoType 참조
|
|
147
|
+
,
|
|
148
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
149
|
+
tslib_1.__metadata("design:type", String)
|
|
150
|
+
], ChecklistHistory.prototype, "inspectionRequestDocumentNo", void 0);
|
|
151
|
+
tslib_1.__decorate([
|
|
152
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 요청서 - 검측 사항' }),
|
|
153
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
154
|
+
tslib_1.__metadata("design:type", String)
|
|
155
|
+
], ChecklistHistory.prototype, "inspectionRequestMemo", void 0);
|
|
156
|
+
tslib_1.__decorate([
|
|
157
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 요청서 - 요청 시간' }),
|
|
158
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
159
|
+
tslib_1.__metadata("design:type", Date)
|
|
160
|
+
], ChecklistHistory.prototype, "inspectionRequestUpdatedAt", void 0);
|
|
161
|
+
tslib_1.__decorate([
|
|
162
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 문서번호 - {네이밍} 검측 제03-00001호)' }) // DocumentNoType 참조
|
|
163
|
+
,
|
|
164
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
165
|
+
tslib_1.__metadata("design:type", String)
|
|
166
|
+
], ChecklistHistory.prototype, "inspectionResultDocumentNo", void 0);
|
|
167
|
+
tslib_1.__decorate([
|
|
168
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 지시 사항' }),
|
|
169
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
170
|
+
tslib_1.__metadata("design:type", String)
|
|
171
|
+
], ChecklistHistory.prototype, "inspectionResultMemo", void 0);
|
|
172
|
+
tslib_1.__decorate([
|
|
173
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 여부' }),
|
|
174
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
175
|
+
tslib_1.__metadata("design:type", String)
|
|
176
|
+
], ChecklistHistory.prototype, "inspectionResultStatus", void 0);
|
|
177
|
+
tslib_1.__decorate([
|
|
178
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 타입' }),
|
|
179
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
180
|
+
tslib_1.__metadata("design:type", String)
|
|
181
|
+
], ChecklistHistory.prototype, "inspectionResultType", void 0);
|
|
182
|
+
tslib_1.__decorate([
|
|
183
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 통보 시간' }),
|
|
184
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
185
|
+
tslib_1.__metadata("design:type", Date)
|
|
186
|
+
], ChecklistHistory.prototype, "inspectionResultUpdatedAt", void 0);
|
|
121
187
|
tslib_1.__decorate([
|
|
122
188
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
123
189
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
124
190
|
tslib_1.__metadata("design:type", Date)
|
|
125
191
|
], ChecklistHistory.prototype, "createdAt", void 0);
|
|
192
|
+
tslib_1.__decorate([
|
|
193
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
194
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
195
|
+
tslib_1.__metadata("design:type", Date)
|
|
196
|
+
], ChecklistHistory.prototype, "loggedAt", void 0);
|
|
126
197
|
tslib_1.__decorate([
|
|
127
198
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
128
199
|
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
129
200
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
130
201
|
], ChecklistHistory.prototype, "creator", void 0);
|
|
131
202
|
tslib_1.__decorate([
|
|
132
|
-
(0, typeorm_1.RelationId)((
|
|
203
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.creator),
|
|
133
204
|
tslib_1.__metadata("design:type", String)
|
|
134
205
|
], ChecklistHistory.prototype, "creatorId", void 0);
|
|
135
206
|
tslib_1.__decorate([
|
|
136
|
-
(0,
|
|
207
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
208
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
209
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
210
|
+
], ChecklistHistory.prototype, "updater", void 0);
|
|
211
|
+
tslib_1.__decorate([
|
|
212
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.updater),
|
|
213
|
+
tslib_1.__metadata("design:type", String)
|
|
214
|
+
], ChecklistHistory.prototype, "updaterId", void 0);
|
|
215
|
+
tslib_1.__decorate([
|
|
216
|
+
(0, typeorm_history_1.HistoryOriginalIdColumn)({ nullable: true }),
|
|
137
217
|
tslib_1.__metadata("design:type", String)
|
|
138
218
|
], ChecklistHistory.prototype, "originalId", void 0);
|
|
139
219
|
tslib_1.__decorate([
|
|
@@ -143,14 +223,17 @@ tslib_1.__decorate([
|
|
|
143
223
|
? 'enum'
|
|
144
224
|
: DATABASE_TYPE == 'oracle'
|
|
145
225
|
? 'varchar2'
|
|
146
|
-
: '
|
|
147
|
-
|
|
226
|
+
: DATABASE_TYPE == 'mssql'
|
|
227
|
+
? 'nvarchar'
|
|
228
|
+
: 'varchar',
|
|
229
|
+
enum: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? typeorm_history_1.HistoryActionType : undefined,
|
|
230
|
+
length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
|
|
148
231
|
}),
|
|
149
232
|
tslib_1.__metadata("design:type", String)
|
|
150
233
|
], ChecklistHistory.prototype, "action", void 0);
|
|
151
234
|
exports.ChecklistHistory = ChecklistHistory = tslib_1.__decorate([
|
|
152
235
|
(0, typeorm_1.Entity)(),
|
|
153
236
|
(0, typeorm_1.Index)('ix_checklist_history_0', (checklistHistory) => [checklistHistory.originalId]),
|
|
154
|
-
(0, type_graphql_1.ObjectType)({ description: '
|
|
237
|
+
(0, type_graphql_1.ObjectType)({ description: 'Entity for ChecklistHistory' })
|
|
155
238
|
], ChecklistHistory);
|
|
156
239
|
//# sourceMappingURL=checklist-history.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-history.js","sourceRoot":"","sources":["../../../server/service/checklist-history/checklist-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAUgB;AAChB,8DAAkI;AAClI,yDAAgD;AAChD,6CAA4C;AAC5C,sDAAwH;AACxH,oFAAwE;AACxE,4GAAsG;AACtG,6FAAuF;AAEvF,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAK7B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CA8K5B,CAAA;AA9KY,4CAAgB;AAGlB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;4CACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACb;AAIb;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,2DAA2D,EAAE,CAAC;IAChG,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACP;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,iCAAW,CAAC,IAAI,EAAE,CAAC;IAC1E,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACD;AAIzB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ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AAO,CAAC;;mDACtC;AAGX;IADN,IAAA,yCAAuB,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAClB;AAenB;IAbN,IAAA,qCAAmB,EAAC;QACnB,QAAQ,EAAE,KAAK;QACf,IAAI,EACF,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS;YACnF,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,aAAa,IAAI,QAAQ;gBACzB,CAAC,CAAC,UAAU;gBACZ,CAAC,CAAC,aAAa,IAAI,OAAO;oBACxB,CAAC,CAAC,UAAU;oBACZ,CAAC,CAAC,SAAS;QACnB,IAAI,EAAE,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS,CAAC,CAAC,CAAC,mCAAiB,CAAC,CAAC,CAAC,SAAS;QAC3H,MAAM,EAAE,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;KAC/G,CAAC;;gDAC+B;2BA7KtB,gBAAgB;IAH5B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,gBAAkC,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACtG,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;GAC9C,gBAAgB,CA8K5B","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n OneToMany,\n OneToOne,\n PrimaryGeneratedColumn,\n RelationId\n} 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 { Checklist, ChecklistReferenceType, InspectionResultStatus, InspectionResultType } from '../checklist/checklist'\nimport { ProjectType } from '../building-inspection/building-inspection'\nimport { BuildingInspectionHistory } from '../building-inspection-history/building-inspection-history'\nimport { ChecklistItemHistory } from '../checklist-item-history/checklist-item-history'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index('ix_checklist_history_0', (checklistHistory: ChecklistHistory) => [checklistHistory.originalId])\n@ObjectType({ description: 'Entity for ChecklistHistory' })\nexport class ChecklistHistory implements HistoryEntityInterface<Checklist> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, comment: '이름' })\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true, comment: '문서 번호 - 검측: 동(4자리)-층(3자리)-시퀀스(6자리), 공정표: 날짜(6자리)-시퀀스(6자리)' })\n @Field({ nullable: true })\n documentNo?: string\n\n @Column({ nullable: false, comment: '프로젝트 타입', default: ProjectType.DSSP })\n @Field({ nullable: true })\n projectType?: ProjectType\n\n @Column({ nullable: false, comment: '체크리스트 참조 타입 (구분 용)', default: ChecklistReferenceType.INSPECTION })\n @Field({ nullable: true })\n checklistReferenceType?: ChecklistReferenceType\n\n @Column({ nullable: true, comment: '공종' })\n @Field({ nullable: true })\n constructionType?: string\n\n @Column({ nullable: true, comment: '세부 공종' })\n @Field({ nullable: true })\n constructionDetailType?: string\n\n @Column({ nullable: true, comment: '위치 (x동 x층)' })\n @Field({ nullable: true })\n location?: string\n\n @Column({ nullable: true, comment: '검측 도면 타입', default: '' })\n @Field({ nullable: true })\n inspectionDrawingType?: string\n\n @Column('simple-array', { nullable: true, comment: '검측 부위' })\n @Field(() => [String], { nullable: true })\n inspectionParts?: string[]\n\n @Column({ nullable: true, comment: '시공자 점검일' })\n @Field({ nullable: true })\n constructionInspectionDate?: Date\n\n @Column({ nullable: true, comment: '감리자 점검일' })\n @Field({ nullable: true })\n supervisorInspectionDate?: Date\n\n @Column({ nullable: true, comment: '총괄 시공 책임자 사인' })\n @Field({ nullable: true })\n overallConstructorSignature?: string\n\n @Column({ nullable: true, comment: '공종별 시공 관리자 사인' })\n @Field({ nullable: true })\n taskConstructorSignature?: string\n\n @Column({ nullable: true, comment: '총괄 감리 책임자 사인' })\n @Field({ nullable: true })\n overallSupervisorySignature?: string\n\n @Column({ nullable: true, comment: '건축사보 (공종별 감리 관리자) 사인' })\n @Field({ nullable: true })\n taskSupervisorySignature?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 시공 책임자' })\n overallConstructor?: User\n\n @RelationId((checklist: Checklist) => checklist.overallConstructor)\n overallConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '공종별 시공 관리자' })\n taskConstructor?: User\n\n @RelationId((checklist: Checklist) => checklist.taskConstructor)\n taskConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 감리 책임자' })\n overallSupervisory?: User\n\n @RelationId((checklist: Checklist) => checklist.overallSupervisory)\n overallSupervisoryId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' })\n taskSupervisory?: User\n\n @RelationId((checklist: Checklist) => checklist.taskSupervisory)\n taskSupervisoryId?: string\n\n // 체크리스트 아이템 정보 (하위 테이블 참조)\n @OneToMany(() => ChecklistItemHistory, checklistItem => checklistItem.checklistHistory)\n @Field(() => [ChecklistItemHistory])\n checklistItemHistories?: ChecklistItemHistory[]\n\n // 검측 정보 (1:1 하위 테이블 참조)\n @OneToOne(() => BuildingInspectionHistory, buildingInspectionHistory => buildingInspectionHistory.checklistHistory)\n @Field(() => BuildingInspectionHistory)\n buildingInspectionHistory?: BuildingInspectionHistory\n\n @Column({ nullable: true, comment: '검측 요청서 문서번호 - {네이밍} 검측 제02-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n inspectionRequestDocumentNo?: string\n\n @Column({ nullable: true, comment: '검측 요청서 - 검측 사항' })\n @Field({ nullable: true })\n inspectionRequestMemo?: string\n\n @Column({ nullable: true, comment: '검측 요청서 - 요청 시간' })\n @Field({ nullable: true })\n inspectionRequestUpdatedAt?: Date\n\n @Column({ nullable: true, comment: '검측 결과 통보서 문서번호 - {네이밍} 검측 제03-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n inspectionResultDocumentNo?: string\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 지시 사항' })\n @Field({ nullable: true })\n inspectionResultMemo?: string\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 여부' })\n @Field({ nullable: true })\n inspectionResultStatus?: InspectionResultStatus\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 타입' })\n @Field({ nullable: true })\n inspectionResultType?: InspectionResultType\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 통보 시간' })\n @Field({ nullable: true })\n inspectionResultUpdatedAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @CreateDateColumn()\n @Field({ nullable: true })\n loggedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((checklist: Checklist) => checklist.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((checklist: Checklist) => checklist.updater)\n updaterId?: string\n\n @HistoryOriginalIdColumn({ nullable: true })\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 : 10\n })\n public action!: HistoryActionType\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HistoryEntitySubscriber } from '@operato/typeorm-history';
|
|
2
|
+
import { Checklist } from '../checklist/checklist';
|
|
3
|
+
import { ChecklistHistory } from './checklist-history';
|
|
4
|
+
export declare class ChecklistHistoryEntitySubscriber extends HistoryEntitySubscriber<Checklist, ChecklistHistory> {
|
|
5
|
+
get entity(): typeof Checklist;
|
|
6
|
+
get historyEntity(): typeof ChecklistHistory;
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistHistoryEntitySubscriber = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const typeorm_history_1 = require("@operato/typeorm-history");
|
|
7
|
+
const checklist_1 = require("../checklist/checklist");
|
|
8
|
+
const checklist_history_1 = require("./checklist-history");
|
|
9
|
+
let ChecklistHistoryEntitySubscriber = class ChecklistHistoryEntitySubscriber extends typeorm_history_1.HistoryEntitySubscriber {
|
|
10
|
+
get entity() {
|
|
11
|
+
return checklist_1.Checklist;
|
|
12
|
+
}
|
|
13
|
+
get historyEntity() {
|
|
14
|
+
return checklist_history_1.ChecklistHistory;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
exports.ChecklistHistoryEntitySubscriber = ChecklistHistoryEntitySubscriber;
|
|
18
|
+
exports.ChecklistHistoryEntitySubscriber = ChecklistHistoryEntitySubscriber = tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.EventSubscriber)()
|
|
20
|
+
], ChecklistHistoryEntitySubscriber);
|
|
21
|
+
//# sourceMappingURL=event-subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/checklist-history/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,8DAAkE;AAElE,sDAAkD;AAClD,2DAAsD;AAG/C,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,yCAAoD;IACxG,IAAW,MAAM;QACf,OAAO,qBAAS,CAAA;IAClB,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,oCAAgB,CAAA;IACzB,CAAC;CACF,CAAA;AARY,4EAAgC;2CAAhC,gCAAgC;IAD5C,IAAA,yBAAe,GAAE;GACL,gCAAgC,CAQ5C","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@operato/typeorm-history'\n\nimport { Checklist } from '../checklist/checklist'\nimport { ChecklistHistory } from './checklist-history'\n\n@EventSubscriber()\nexport class ChecklistHistoryEntitySubscriber extends HistoryEntitySubscriber<Checklist, ChecklistHistory> {\n public get entity() {\n return Checklist\n }\n\n public get historyEntity() {\n return ChecklistHistory\n }\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ChecklistHistory } from './checklist-history';
|
|
2
|
+
import { ChecklistHistoryQuery } from './checklist-history-query';
|
|
3
|
+
import { ChecklistHistoryEntitySubscriber } from './event-subscriber';
|
|
4
|
+
export declare const entities: (typeof ChecklistHistory)[];
|
|
5
|
+
export declare const resolvers: (typeof ChecklistHistoryQuery)[];
|
|
6
|
+
export declare const subscribers: (typeof ChecklistHistoryEntitySubscriber)[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subscribers = exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const checklist_history_1 = require("./checklist-history");
|
|
5
|
+
const checklist_history_query_1 = require("./checklist-history-query");
|
|
6
|
+
const event_subscriber_1 = require("./event-subscriber");
|
|
7
|
+
exports.entities = [checklist_history_1.ChecklistHistory];
|
|
8
|
+
exports.resolvers = [checklist_history_query_1.ChecklistHistoryQuery];
|
|
9
|
+
exports.subscribers = [event_subscriber_1.ChecklistHistoryEntitySubscriber];
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-history/index.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,uEAAiE;AACjE,yDAAqE;AAExD,QAAA,QAAQ,GAAG,CAAC,oCAAgB,CAAC,CAAA;AAC7B,QAAA,SAAS,GAAG,CAAC,+CAAqB,CAAC,CAAA;AACnC,QAAA,WAAW,GAAG,CAAC,mDAAgC,CAAC,CAAA","sourcesContent":["import { ChecklistHistory } from './checklist-history'\nimport { ChecklistHistoryQuery } from './checklist-history-query'\nimport { ChecklistHistoryEntitySubscriber } from './event-subscriber'\n\nexport const entities = [ChecklistHistory]\nexport const resolvers = [ChecklistHistoryQuery]\nexport const subscribers = [ChecklistHistoryEntitySubscriber]\n"]}
|
|
@@ -11,7 +11,7 @@ export declare class ChecklistItemQuery {
|
|
|
11
11
|
inspectionByChecklistItemId(checklistItemId: string): Promise<BuildingInspection>;
|
|
12
12
|
checklistItemComments(checklistItem: ChecklistItem): Promise<ChecklistItemComment[]>;
|
|
13
13
|
checklistItemCommentCount(checklistItem: ChecklistItem): Promise<number>;
|
|
14
|
-
checklistItemAttachments(checklistItem: ChecklistItem): Promise<Attachment[]>;
|
|
14
|
+
checklistItemAttachments(checklistItem: ChecklistItem, description?: string): Promise<Attachment[]>;
|
|
15
15
|
checklistItemAttachmentCount(checklistItem: ChecklistItem): Promise<number>;
|
|
16
16
|
updater(checklistItem: ChecklistItem): Promise<User>;
|
|
17
17
|
creator(checklistItem: ChecklistItem): Promise<User>;
|
|
@@ -39,11 +39,12 @@ let ChecklistItemQuery = class ChecklistItemQuery {
|
|
|
39
39
|
async checklistItemCommentCount(checklistItem) {
|
|
40
40
|
return await (0, shell_1.getRepository)(checklist_item_comment_1.ChecklistItemComment).countBy({ checklistItem: { id: checklistItem.id } });
|
|
41
41
|
}
|
|
42
|
-
async checklistItemAttachments(checklistItem) {
|
|
42
|
+
async checklistItemAttachments(checklistItem, description) {
|
|
43
43
|
return await (0, shell_1.getRepository)(attachment_base_1.Attachment).find({
|
|
44
44
|
where: {
|
|
45
45
|
refType: checklist_item_1.ChecklistItem.name,
|
|
46
|
-
refBy: checklistItem.id
|
|
46
|
+
refBy: checklistItem.id,
|
|
47
|
+
description: description // 검측 상태로 받으며 어떤 스탭에 올렸는지로 시공자/감리자 구분
|
|
47
48
|
},
|
|
48
49
|
order: {
|
|
49
50
|
createdAt: 'DESC'
|
|
@@ -105,8 +106,9 @@ tslib_1.__decorate([
|
|
|
105
106
|
tslib_1.__decorate([
|
|
106
107
|
(0, type_graphql_1.FieldResolver)(type => [attachment_base_1.Attachment]),
|
|
107
108
|
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
109
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('description', { nullable: true })),
|
|
108
110
|
tslib_1.__metadata("design:type", Function),
|
|
109
|
-
tslib_1.__metadata("design:paramtypes", [checklist_item_1.ChecklistItem]),
|
|
111
|
+
tslib_1.__metadata("design:paramtypes", [checklist_item_1.ChecklistItem, String]),
|
|
110
112
|
tslib_1.__metadata("design:returntype", Promise)
|
|
111
113
|
], ChecklistItemQuery.prototype, "checklistItemAttachments", null);
|
|
112
114
|
tslib_1.__decorate([
|
|
@@ -1 +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,kB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,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,aAAa,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;IACvG,CAAC;IAGK,AAAN,KAAK,CAAC,wBAAwB,
|
|
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,qBAAa,EAAC,wCAAkB,CAAC;aACrC,kBAAkB,CAAC,IAAI,CAAC;aACxB,SAAS,CAAC,YAAY,EAAE,GAAG,EAAE,wBAAwB,CAAC;aACtD,SAAS,CAAC,iBAAiB,EAAE,IAAI,EAAE,wBAAwB,CAAC;aAC5D,KAAK,CAAC,0BAA0B,EAAE,E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AE,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"]}
|
|
@@ -2,4 +2,3 @@ import { ChecklistItem } from './checklist-item';
|
|
|
2
2
|
import { ChecklistItemMutation } from './checklist-item-mutation';
|
|
3
3
|
export declare const entities: (typeof ChecklistItem)[];
|
|
4
4
|
export declare const resolvers: (typeof ChecklistItemMutation)[];
|
|
5
|
-
export declare const subscribers: any[];
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
4
|
const checklist_item_1 = require("./checklist-item");
|
|
5
5
|
const checklist_item_query_1 = require("./checklist-item-query");
|
|
6
6
|
const checklist_item_mutation_1 = require("./checklist-item-mutation");
|
|
7
7
|
exports.entities = [checklist_item_1.ChecklistItem];
|
|
8
8
|
exports.resolvers = [checklist_item_query_1.ChecklistItemQuery, checklist_item_mutation_1.ChecklistItemMutation];
|
|
9
|
-
exports.subscribers = [];
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-item/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAChD,iEAA2D;AAC3D,uEAAiE;AAEpD,QAAA,QAAQ,GAAG,CAAC,8BAAa,CAAC,CAAA;AAC1B,QAAA,SAAS,GAAG,CAAC,yCAAkB,EAAE,+CAAqB,CAAC,CAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-item/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAChD,iEAA2D;AAC3D,uEAAiE;AAEpD,QAAA,QAAQ,GAAG,CAAC,8BAAa,CAAC,CAAA;AAC1B,QAAA,SAAS,GAAG,CAAC,yCAAkB,EAAE,+CAAqB,CAAC,CAAA","sourcesContent":["import { ChecklistItem } from './checklist-item'\nimport { ChecklistItemQuery } from './checklist-item-query'\nimport { ChecklistItemMutation } from './checklist-item-mutation'\n\nexport const entities = [ChecklistItem]\nexport const resolvers = [ChecklistItemQuery, ChecklistItemMutation]\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChecklistItemComment } from './checklist-item-comment';
|
|
2
2
|
import { NewChecklistItemComment, ChecklistItemCommentPatch } from './checklist-item-comment-type';
|
|
3
3
|
export declare class ChecklistItemCommentMutation {
|
|
4
|
+
private getStatusByChecklistItemId;
|
|
4
5
|
createChecklistItemComment(checklistItemComment: NewChecklistItemComment, context: ResolverContext): Promise<ChecklistItemComment>;
|
|
5
6
|
updateChecklistItemComment(id: string, patch: ChecklistItemCommentPatch, context: ResolverContext): Promise<ChecklistItemComment>;
|
|
6
7
|
deleteChecklistItemComment(id: string, context: ResolverContext): Promise<boolean>;
|