@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,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionDailyWorklogQuery = void 0;
|
|
4
|
+
exports.generateDailyWorklogDocumentNo = generateDailyWorklogDocumentNo;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
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 building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
|
|
10
|
+
const checklist_1 = require("../checklist/checklist");
|
|
11
|
+
const building_inspection_1 = require("../building-inspection/building-inspection");
|
|
12
|
+
const env_1 = require("@things-factory/env");
|
|
13
|
+
const moment_timezone_1 = tslib_1.__importDefault(require("moment-timezone"));
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const projectType = env_1.config.get('projectType', building_inspection_1.ProjectType.DSSP);
|
|
16
|
+
let BuildingInspectionDailyWorklogQuery = class BuildingInspectionDailyWorklogQuery {
|
|
17
|
+
/**
|
|
18
|
+
* 프로젝트와 날짜로 일일업무일지 조회. 없으면 새 문서번호를 생성해 빈 데이터를 반환
|
|
19
|
+
*/
|
|
20
|
+
async buildingInspectionDailyWorklogByProjectIdAndDate(projectId, date, context) {
|
|
21
|
+
const repository = (0, shell_1.getRepository)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog);
|
|
22
|
+
const worklogs = await repository.findOne({ where: { projectId, date } });
|
|
23
|
+
// 워크로그가 존재하면 해당 데이터를 반환
|
|
24
|
+
if (worklogs)
|
|
25
|
+
return worklogs;
|
|
26
|
+
// 존재하지 않으면 새 문서번호와 검측되지 않은 검측 데이터를 반환
|
|
27
|
+
const requestDate = (0, moment_timezone_1.default)(date).format('YYYY-MM-DD');
|
|
28
|
+
const documentNo = await generateDailyWorklogDocumentNo(projectId);
|
|
29
|
+
const buildingInspections = await (0, shell_1.getRepository)('projects')
|
|
30
|
+
.createQueryBuilder('p')
|
|
31
|
+
.select('bi.id', 'buildingInspectionId')
|
|
32
|
+
.addSelect('c.location', 'location')
|
|
33
|
+
.addSelect('c.construction_type', 'constructionType')
|
|
34
|
+
.addSelect('c.id', 'checklistId')
|
|
35
|
+
.addSelect('c.task_supervisory_signature', 'taskSupervisorySignature')
|
|
36
|
+
.addSelect('c.overall_supervisory_signature', 'overallSupervisorySignature')
|
|
37
|
+
.addSelect('c.task_supervisory_id', 'taskSupervisoryId')
|
|
38
|
+
.addSelect('c.overall_supervisory_id', 'overallSupervisoryId')
|
|
39
|
+
.addSelect('u.name', 'taskSupervisoryName')
|
|
40
|
+
.addSelect('u2.name', 'overallSupervisoryName')
|
|
41
|
+
.leftJoin('building_complexes', 'bc', 'p.building_complex_id = bc.id')
|
|
42
|
+
.leftJoin('buildings', 'b', 'b.building_complex_id = bc.id')
|
|
43
|
+
.leftJoin('building_levels', 'bl', 'bl.building_id = b.id')
|
|
44
|
+
.leftJoin('building_inspections', 'bi', 'bi.building_level_id = bl.id')
|
|
45
|
+
.leftJoin('checklists', 'c', 'bi.checklist_id = c.id')
|
|
46
|
+
.leftJoin('users', 'u', 'u.id = c.task_supervisory_id')
|
|
47
|
+
.leftJoin('users', 'u2', 'u2.id = c.overall_supervisory_id')
|
|
48
|
+
.where('p.id = :projectId', { projectId })
|
|
49
|
+
.andWhere('bi.project_type = :projectType', { projectType })
|
|
50
|
+
.andWhere('bi.worklog_id IS NULL')
|
|
51
|
+
.andWhere('c.inspection_result_updated_at IS NOT NULL') // 검측 결과 요청서가 생성된 경우
|
|
52
|
+
.andWhere('bi.request_date <= :requestDate', { requestDate })
|
|
53
|
+
.getRawMany();
|
|
54
|
+
// 선택된 검측 정보들의 정보 셋팅하여 신규 일일 업무일지에 기본 셋팅
|
|
55
|
+
const worklogsData = buildingInspections.map(inspection => ({
|
|
56
|
+
constructionType: inspection.constructionType,
|
|
57
|
+
supervisoryTitle: inspection.constructionType,
|
|
58
|
+
supervisorContent: `${inspection.location} - ${inspection.constructionType} 검측 완료`
|
|
59
|
+
}));
|
|
60
|
+
const buildingInspectionsData = buildingInspections.map(inspection => ({
|
|
61
|
+
id: inspection.buildingInspectionId,
|
|
62
|
+
checklistId: inspection.checklistId
|
|
63
|
+
}));
|
|
64
|
+
return {
|
|
65
|
+
documentNo,
|
|
66
|
+
worklogs: worklogsData,
|
|
67
|
+
buildingInspections: buildingInspectionsData
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
async dailyWorklogDatesOfProject(projectId, startDate, endDate, context) {
|
|
71
|
+
const result = await (0, shell_1.getRepository)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog).find({
|
|
72
|
+
where: { projectId, date: (0, typeorm_1.Between)(startDate, endDate) },
|
|
73
|
+
order: { date: 'ASC' }
|
|
74
|
+
});
|
|
75
|
+
return result;
|
|
76
|
+
}
|
|
77
|
+
async domain(worklog) {
|
|
78
|
+
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: worklog.domainId });
|
|
79
|
+
}
|
|
80
|
+
async updater(worklog) {
|
|
81
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: worklog.updaterId });
|
|
82
|
+
}
|
|
83
|
+
async creator(worklog) {
|
|
84
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: worklog.creatorId });
|
|
85
|
+
}
|
|
86
|
+
async overallSupervisory(worklog) {
|
|
87
|
+
return worklog.overallSupervisoryId
|
|
88
|
+
? await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: worklog.overallSupervisoryId })
|
|
89
|
+
: undefined;
|
|
90
|
+
}
|
|
91
|
+
async taskSupervisory(worklog) {
|
|
92
|
+
return worklog.taskSupervisoryId ? await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: worklog.taskSupervisoryId }) : undefined;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
exports.BuildingInspectionDailyWorklogQuery = BuildingInspectionDailyWorklogQuery;
|
|
96
|
+
tslib_1.__decorate([
|
|
97
|
+
(0, type_graphql_1.Query)(returns => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { nullable: true }),
|
|
98
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('projectId')),
|
|
99
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('date')),
|
|
100
|
+
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
101
|
+
tslib_1.__metadata("design:type", Function),
|
|
102
|
+
tslib_1.__metadata("design:paramtypes", [String, String, Object]),
|
|
103
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
104
|
+
], BuildingInspectionDailyWorklogQuery.prototype, "buildingInspectionDailyWorklogByProjectIdAndDate", null);
|
|
105
|
+
tslib_1.__decorate([
|
|
106
|
+
(0, type_graphql_1.Query)(returns => [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
|
|
107
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('projectId')),
|
|
108
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('startDate')),
|
|
109
|
+
tslib_1.__param(2, (0, type_graphql_1.Arg)('endDate')),
|
|
110
|
+
tslib_1.__param(3, (0, type_graphql_1.Ctx)()),
|
|
111
|
+
tslib_1.__metadata("design:type", Function),
|
|
112
|
+
tslib_1.__metadata("design:paramtypes", [String, String, String, Object]),
|
|
113
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
114
|
+
], BuildingInspectionDailyWorklogQuery.prototype, "dailyWorklogDatesOfProject", null);
|
|
115
|
+
tslib_1.__decorate([
|
|
116
|
+
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
117
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
118
|
+
tslib_1.__metadata("design:type", Function),
|
|
119
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
|
|
120
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
121
|
+
], BuildingInspectionDailyWorklogQuery.prototype, "domain", null);
|
|
122
|
+
tslib_1.__decorate([
|
|
123
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
124
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
125
|
+
tslib_1.__metadata("design:type", Function),
|
|
126
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
|
|
127
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
128
|
+
], BuildingInspectionDailyWorklogQuery.prototype, "updater", null);
|
|
129
|
+
tslib_1.__decorate([
|
|
130
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
131
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
132
|
+
tslib_1.__metadata("design:type", Function),
|
|
133
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
|
|
134
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
135
|
+
], BuildingInspectionDailyWorklogQuery.prototype, "creator", null);
|
|
136
|
+
tslib_1.__decorate([
|
|
137
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
138
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
139
|
+
tslib_1.__metadata("design:type", Function),
|
|
140
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
|
|
141
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
142
|
+
], BuildingInspectionDailyWorklogQuery.prototype, "overallSupervisory", null);
|
|
143
|
+
tslib_1.__decorate([
|
|
144
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
145
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
146
|
+
tslib_1.__metadata("design:type", Function),
|
|
147
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
|
|
148
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
149
|
+
], BuildingInspectionDailyWorklogQuery.prototype, "taskSupervisory", null);
|
|
150
|
+
exports.BuildingInspectionDailyWorklogQuery = BuildingInspectionDailyWorklogQuery = tslib_1.__decorate([
|
|
151
|
+
(0, type_graphql_1.Resolver)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
|
|
152
|
+
], BuildingInspectionDailyWorklogQuery);
|
|
153
|
+
async function generateDailyWorklogDocumentNo(projectId) {
|
|
154
|
+
// 프로젝트의 documentNaming을 가져오고, 일일업무일지(04) 최신 번호를 찾아 +1
|
|
155
|
+
const project = await (0, shell_1.getRepository)('projects').findOne({ where: { id: projectId } });
|
|
156
|
+
const naming = (project === null || project === void 0 ? void 0 : project.documentNaming) || '';
|
|
157
|
+
const latest = await (0, shell_1.getRepository)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
|
|
158
|
+
.createQueryBuilder('d')
|
|
159
|
+
.where('d.project_id = :projectId', { projectId })
|
|
160
|
+
.andWhere('d.document_no LIKE :pattern', { pattern: `${naming} 검측 제${checklist_1.DocumentNoType.DAILY_WORKLOG}-%` })
|
|
161
|
+
.orderBy('d.created_at', 'DESC')
|
|
162
|
+
.getOne();
|
|
163
|
+
let sequence = '00001';
|
|
164
|
+
if (latest === null || latest === void 0 ? void 0 : latest.documentNo) {
|
|
165
|
+
const match = latest.documentNo.match(/\-(\d{5})호$/);
|
|
166
|
+
if (match)
|
|
167
|
+
sequence = (Number(match[1]) + 1).toString().padStart(5, '0');
|
|
168
|
+
}
|
|
169
|
+
return `${naming} 검측 제04-${sequence}호`;
|
|
170
|
+
}
|
|
171
|
+
//# sourceMappingURL=building-inspection-daily-worklog-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection-daily-worklog-query.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.ts"],"names":[],"mappings":";;;AAuHA,wEAmBC;;AA1ID,+CAA6E;AAC7E,iDAA6D;AAC7D,yDAAgD;AAChD,2FAAoF;AACpF,sDAAuD;A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CAAC,EAAE,GAAG,CAAC,CAAA;IAC1E,CAAC;IAED,OAAO,GAAG,MAAM,WAAW,QAAQ,GAAG,CAAA;AACxC,CAAC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Arg, Ctx } from 'type-graphql'\nimport { Domain, getRepository } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog'\nimport { DocumentNoType } from '../checklist/checklist'\nimport { BuildingInspection, ProjectType } from '../building-inspection/building-inspection'\nimport { config } from '@things-factory/env'\nimport moment from 'moment-timezone'\nimport { Between } from 'typeorm'\n\nconst projectType = config.get('projectType', ProjectType.DSSP)\n\n@Resolver(BuildingInspectionDailyWorklog)\nexport class BuildingInspectionDailyWorklogQuery {\n /**\n * 프로젝트와 날짜로 일일업무일지 조회. 없으면 새 문서번호를 생성해 빈 데이터를 반환\n */\n @Query(returns => BuildingInspectionDailyWorklog, { nullable: true })\n async buildingInspectionDailyWorklogByProjectIdAndDate(\n @Arg('projectId') projectId: string,\n @Arg('date') date: string,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionDailyWorklog> {\n const repository = getRepository(BuildingInspectionDailyWorklog)\n const worklogs = await repository.findOne({ where: { projectId, date } })\n\n // 워크로그가 존재하면 해당 데이터를 반환\n if (worklogs) return worklogs\n\n // 존재하지 않으면 새 문서번호와 검측되지 않은 검측 데이터를 반환\n const requestDate = moment(date).format('YYYY-MM-DD')\n const documentNo = await generateDailyWorklogDocumentNo(projectId)\n const buildingInspections = await getRepository('projects')\n .createQueryBuilder('p')\n .select('bi.id', 'buildingInspectionId')\n .addSelect('c.location', 'location')\n .addSelect('c.construction_type', 'constructionType')\n .addSelect('c.id', 'checklistId')\n .addSelect('c.task_supervisory_signature', 'taskSupervisorySignature')\n .addSelect('c.overall_supervisory_signature', 'overallSupervisorySignature')\n .addSelect('c.task_supervisory_id', 'taskSupervisoryId')\n .addSelect('c.overall_supervisory_id', 'overallSupervisoryId')\n .addSelect('u.name', 'taskSupervisoryName')\n .addSelect('u2.name', 'overallSupervisoryName')\n .leftJoin('building_complexes', 'bc', 'p.building_complex_id = bc.id')\n .leftJoin('buildings', 'b', 'b.building_complex_id = bc.id')\n .leftJoin('building_levels', 'bl', 'bl.building_id = b.id')\n .leftJoin('building_inspections', 'bi', 'bi.building_level_id = bl.id')\n .leftJoin('checklists', 'c', 'bi.checklist_id = c.id')\n .leftJoin('users', 'u', 'u.id = c.task_supervisory_id')\n .leftJoin('users', 'u2', 'u2.id = c.overall_supervisory_id')\n .where('p.id = :projectId', { projectId })\n .andWhere('bi.project_type = :projectType', { projectType })\n .andWhere('bi.worklog_id IS NULL')\n .andWhere('c.inspection_result_updated_at IS NOT NULL') // 검측 결과 요청서가 생성된 경우\n .andWhere('bi.request_date <= :requestDate', { requestDate })\n .getRawMany()\n\n // 선택된 검측 정보들의 정보 셋팅하여 신규 일일 업무일지에 기본 셋팅\n const worklogsData = buildingInspections.map(inspection => ({\n constructionType: inspection.constructionType,\n supervisoryTitle: inspection.constructionType,\n supervisorContent: `${inspection.location} - ${inspection.constructionType} 검측 완료`\n }))\n const buildingInspectionsData = buildingInspections.map(inspection => ({\n id: inspection.buildingInspectionId,\n checklistId: inspection.checklistId\n }))\n\n return {\n documentNo,\n worklogs: worklogsData,\n buildingInspections: buildingInspectionsData as BuildingInspection[]\n } as BuildingInspectionDailyWorklog\n }\n\n @Query(returns => [BuildingInspectionDailyWorklog])\n async dailyWorklogDatesOfProject(\n @Arg('projectId') projectId: string,\n @Arg('startDate') startDate: string,\n @Arg('endDate') endDate: string,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionDailyWorklog[]> {\n const result = await getRepository(BuildingInspectionDailyWorklog).find({\n where: { projectId, date: Between(startDate, endDate) },\n order: { date: 'ASC' }\n })\n\n return result\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() worklog: BuildingInspectionDailyWorklog): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: worklog.domainId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() worklog: BuildingInspectionDailyWorklog): Promise<User> {\n return await getRepository(User).findOneBy({ id: worklog.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() worklog: BuildingInspectionDailyWorklog): Promise<User> {\n return await getRepository(User).findOneBy({ id: worklog.creatorId })\n }\n\n @FieldResolver(type => User)\n async overallSupervisory(@Root() worklog: BuildingInspectionDailyWorklog): Promise<User> {\n return worklog.overallSupervisoryId\n ? await getRepository(User).findOneBy({ id: worklog.overallSupervisoryId })\n : (undefined as any)\n }\n\n @FieldResolver(type => User)\n async taskSupervisory(@Root() worklog: BuildingInspectionDailyWorklog): Promise<User> {\n return worklog.taskSupervisoryId ? await getRepository(User).findOneBy({ id: worklog.taskSupervisoryId }) : (undefined as any)\n }\n}\n\nexport async function generateDailyWorklogDocumentNo(projectId: string): Promise<string> {\n // 프로젝트의 documentNaming을 가져오고, 일일업무일지(04) 최신 번호를 찾아 +1\n const project = await getRepository<any>('projects').findOne({ where: { id: projectId } })\n const naming: string = project?.documentNaming || ''\n\n const latest = await getRepository(BuildingInspectionDailyWorklog)\n .createQueryBuilder('d')\n .where('d.project_id = :projectId', { projectId })\n .andWhere('d.document_no LIKE :pattern', { pattern: `${naming} 검측 제${DocumentNoType.DAILY_WORKLOG}-%` })\n .orderBy('d.created_at', 'DESC')\n .getOne()\n\n let sequence = '00001'\n if (latest?.documentNo) {\n const match = latest.documentNo.match(/\\-(\\d{5})호$/)\n if (match) sequence = (Number(match[1]) + 1).toString().padStart(5, '0')\n }\n\n return `${naming} 검측 제04-${sequence}호`\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
|
|
2
|
+
export declare class BuildingInspectionDailyWorklogNew {
|
|
3
|
+
projectId: string;
|
|
4
|
+
date?: string;
|
|
5
|
+
worklogs?: any;
|
|
6
|
+
memo?: string;
|
|
7
|
+
directiveMemo?: string;
|
|
8
|
+
overallSupervisoryId?: string;
|
|
9
|
+
taskSupervisoryId?: string;
|
|
10
|
+
overallSupervisorySignature?: string;
|
|
11
|
+
taskSupervisorySignature?: string;
|
|
12
|
+
buildingInspectionIds?: string[];
|
|
13
|
+
}
|
|
14
|
+
export declare class BuildingInspectionDailyWorklogPatch {
|
|
15
|
+
id?: string;
|
|
16
|
+
worklogs?: any;
|
|
17
|
+
memo?: string;
|
|
18
|
+
directiveMemo?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class BuildingInspectionDailyWorklogList {
|
|
21
|
+
items: BuildingInspectionDailyWorklog[];
|
|
22
|
+
total: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionDailyWorklogList = exports.BuildingInspectionDailyWorklogPatch = exports.BuildingInspectionDailyWorklogNew = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const shell_1 = require("@things-factory/shell");
|
|
7
|
+
const building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
|
|
8
|
+
let BuildingInspectionDailyWorklogNew = class BuildingInspectionDailyWorklogNew {
|
|
9
|
+
};
|
|
10
|
+
exports.BuildingInspectionDailyWorklogNew = BuildingInspectionDailyWorklogNew;
|
|
11
|
+
tslib_1.__decorate([
|
|
12
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
13
|
+
tslib_1.__metadata("design:type", String)
|
|
14
|
+
], BuildingInspectionDailyWorklogNew.prototype, "projectId", void 0);
|
|
15
|
+
tslib_1.__decorate([
|
|
16
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
17
|
+
tslib_1.__metadata("design:type", String)
|
|
18
|
+
], BuildingInspectionDailyWorklogNew.prototype, "date", void 0);
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
|
21
|
+
tslib_1.__metadata("design:type", Object)
|
|
22
|
+
], BuildingInspectionDailyWorklogNew.prototype, "worklogs", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], BuildingInspectionDailyWorklogNew.prototype, "memo", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
30
|
+
], BuildingInspectionDailyWorklogNew.prototype, "directiveMemo", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
33
|
+
tslib_1.__metadata("design:type", String)
|
|
34
|
+
], BuildingInspectionDailyWorklogNew.prototype, "overallSupervisoryId", void 0);
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
37
|
+
tslib_1.__metadata("design:type", String)
|
|
38
|
+
], BuildingInspectionDailyWorklogNew.prototype, "taskSupervisoryId", void 0);
|
|
39
|
+
tslib_1.__decorate([
|
|
40
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
41
|
+
tslib_1.__metadata("design:type", String)
|
|
42
|
+
], BuildingInspectionDailyWorklogNew.prototype, "overallSupervisorySignature", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
+
tslib_1.__metadata("design:type", String)
|
|
46
|
+
], BuildingInspectionDailyWorklogNew.prototype, "taskSupervisorySignature", void 0);
|
|
47
|
+
tslib_1.__decorate([
|
|
48
|
+
(0, type_graphql_1.Field)(type => [String], { nullable: true }),
|
|
49
|
+
tslib_1.__metadata("design:type", Array)
|
|
50
|
+
], BuildingInspectionDailyWorklogNew.prototype, "buildingInspectionIds", void 0);
|
|
51
|
+
exports.BuildingInspectionDailyWorklogNew = BuildingInspectionDailyWorklogNew = tslib_1.__decorate([
|
|
52
|
+
(0, type_graphql_1.InputType)()
|
|
53
|
+
], BuildingInspectionDailyWorklogNew);
|
|
54
|
+
let BuildingInspectionDailyWorklogPatch = class BuildingInspectionDailyWorklogPatch {
|
|
55
|
+
};
|
|
56
|
+
exports.BuildingInspectionDailyWorklogPatch = BuildingInspectionDailyWorklogPatch;
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: false }),
|
|
59
|
+
tslib_1.__metadata("design:type", String)
|
|
60
|
+
], BuildingInspectionDailyWorklogPatch.prototype, "id", void 0);
|
|
61
|
+
tslib_1.__decorate([
|
|
62
|
+
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
|
63
|
+
tslib_1.__metadata("design:type", Object)
|
|
64
|
+
], BuildingInspectionDailyWorklogPatch.prototype, "worklogs", void 0);
|
|
65
|
+
tslib_1.__decorate([
|
|
66
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
67
|
+
tslib_1.__metadata("design:type", String)
|
|
68
|
+
], BuildingInspectionDailyWorklogPatch.prototype, "memo", void 0);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
71
|
+
tslib_1.__metadata("design:type", String)
|
|
72
|
+
], BuildingInspectionDailyWorklogPatch.prototype, "directiveMemo", void 0);
|
|
73
|
+
exports.BuildingInspectionDailyWorklogPatch = BuildingInspectionDailyWorklogPatch = tslib_1.__decorate([
|
|
74
|
+
(0, type_graphql_1.InputType)()
|
|
75
|
+
], BuildingInspectionDailyWorklogPatch);
|
|
76
|
+
let BuildingInspectionDailyWorklogList = class BuildingInspectionDailyWorklogList {
|
|
77
|
+
};
|
|
78
|
+
exports.BuildingInspectionDailyWorklogList = BuildingInspectionDailyWorklogList;
|
|
79
|
+
tslib_1.__decorate([
|
|
80
|
+
(0, type_graphql_1.Field)(type => [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
|
|
81
|
+
tslib_1.__metadata("design:type", Array)
|
|
82
|
+
], BuildingInspectionDailyWorklogList.prototype, "items", void 0);
|
|
83
|
+
tslib_1.__decorate([
|
|
84
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
85
|
+
tslib_1.__metadata("design:type", Number)
|
|
86
|
+
], BuildingInspectionDailyWorklogList.prototype, "total", void 0);
|
|
87
|
+
exports.BuildingInspectionDailyWorklogList = BuildingInspectionDailyWorklogList = tslib_1.__decorate([
|
|
88
|
+
(0, type_graphql_1.ObjectType)()
|
|
89
|
+
], BuildingInspectionDailyWorklogList);
|
|
90
|
+
//# sourceMappingURL=building-inspection-daily-worklog-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection-daily-worklog-type.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,iDAAoD;AACpD,2FAAoF;AAG7E,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;CA8B7C,CAAA;AA9BY,8EAAiC;AAE5C;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oEACT;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+DACd;AAGb;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mEAClC;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wEACJ;AAGtB;IADC,IAAA,oBAAK,EAAC,EAAE,QAA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,GAAE;GACA,kCAAkC,CAM9C","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ScalarObject } from '@things-factory/shell'\nimport { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog'\n\n@InputType()\nexport class BuildingInspectionDailyWorklogNew {\n @Field({ nullable: false })\n projectId!: string\n\n @Field({ nullable: false })\n date?: string\n\n @Field(type => ScalarObject, { nullable: true })\n worklogs?: any\n\n @Field({ nullable: true })\n memo?: string\n\n @Field({ nullable: true })\n directiveMemo?: string\n\n @Field({ nullable: true })\n overallSupervisoryId?: string\n\n @Field({ nullable: true })\n taskSupervisoryId?: string\n\n @Field({ nullable: true })\n overallSupervisorySignature?: string\n\n @Field({ nullable: true })\n taskSupervisorySignature?: string\n\n @Field(type => [String], { nullable: true })\n buildingInspectionIds?: string[]\n}\n\n@InputType()\nexport class BuildingInspectionDailyWorklogPatch {\n @Field(type => ID, { nullable: false })\n id?: string\n\n @Field(type => ScalarObject, { nullable: true })\n worklogs?: any\n\n @Field({ nullable: true })\n memo?: string\n\n @Field({ nullable: true })\n directiveMemo?: string\n}\n\n@ObjectType()\nexport class BuildingInspectionDailyWorklogList {\n @Field(type => [BuildingInspectionDailyWorklog])\n items: BuildingInspectionDailyWorklog[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { BuildingInspection } from '../building-inspection/building-inspection';
|
|
4
|
+
export interface Worklog {
|
|
5
|
+
constructionType: string;
|
|
6
|
+
supervisoryTitle: string;
|
|
7
|
+
supervisorContent: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class BuildingInspectionDailyWorklog {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
domain?: Domain;
|
|
12
|
+
domainId?: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
documentNo?: string;
|
|
15
|
+
date?: string;
|
|
16
|
+
worklogs?: Worklog[];
|
|
17
|
+
memo?: string;
|
|
18
|
+
directiveMemo?: string;
|
|
19
|
+
overallSupervisory?: User;
|
|
20
|
+
overallSupervisoryId?: string;
|
|
21
|
+
taskSupervisory?: User;
|
|
22
|
+
taskSupervisoryId?: string;
|
|
23
|
+
overallSupervisorySignature?: string;
|
|
24
|
+
taskSupervisorySignature?: string;
|
|
25
|
+
buildingInspections?: BuildingInspection[];
|
|
26
|
+
createdAt?: Date;
|
|
27
|
+
updatedAt?: Date;
|
|
28
|
+
deletedAt?: Date;
|
|
29
|
+
creator?: User;
|
|
30
|
+
creatorId?: string;
|
|
31
|
+
updater?: User;
|
|
32
|
+
updaterId?: string;
|
|
33
|
+
}
|
package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionDailyWorklog = 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 building_inspection_1 = require("../building-inspection/building-inspection");
|
|
10
|
+
let BuildingInspectionDailyWorklog = class BuildingInspectionDailyWorklog {
|
|
11
|
+
};
|
|
12
|
+
exports.BuildingInspectionDailyWorklog = BuildingInspectionDailyWorklog;
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
15
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], BuildingInspectionDailyWorklog.prototype, "id", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
20
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
21
|
+
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
22
|
+
], BuildingInspectionDailyWorklog.prototype, "domain", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.RelationId)((worklog) => worklog.domain),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], BuildingInspectionDailyWorklog.prototype, "domainId", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '프로젝트 ID' }),
|
|
29
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
|
+
], BuildingInspectionDailyWorklog.prototype, "projectId", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '문서번호 - {네이밍} 검측 제04-00001호)' }) // DocumentNoType 참조
|
|
34
|
+
,
|
|
35
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
|
+
], BuildingInspectionDailyWorklog.prototype, "documentNo", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, comment: '작성 날짜' }),
|
|
40
|
+
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
41
|
+
tslib_1.__metadata("design:type", String)
|
|
42
|
+
], BuildingInspectionDailyWorklog.prototype, "date", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'simple-json', nullable: true, comment: '작업사항' }),
|
|
45
|
+
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
|
46
|
+
tslib_1.__metadata("design:type", Array)
|
|
47
|
+
], BuildingInspectionDailyWorklog.prototype, "worklogs", void 0);
|
|
48
|
+
tslib_1.__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '특기사항' }),
|
|
50
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
51
|
+
tslib_1.__metadata("design:type", String)
|
|
52
|
+
], BuildingInspectionDailyWorklog.prototype, "memo", void 0);
|
|
53
|
+
tslib_1.__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '지적 사항 및 처리결과' }),
|
|
55
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
56
|
+
tslib_1.__metadata("design:type", String)
|
|
57
|
+
], BuildingInspectionDailyWorklog.prototype, "directiveMemo", void 0);
|
|
58
|
+
tslib_1.__decorate([
|
|
59
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
60
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '총괄 감리 책임자' }),
|
|
61
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
62
|
+
], BuildingInspectionDailyWorklog.prototype, "overallSupervisory", void 0);
|
|
63
|
+
tslib_1.__decorate([
|
|
64
|
+
(0, typeorm_1.RelationId)((worklog) => worklog.overallSupervisory),
|
|
65
|
+
tslib_1.__metadata("design:type", String)
|
|
66
|
+
], BuildingInspectionDailyWorklog.prototype, "overallSupervisoryId", void 0);
|
|
67
|
+
tslib_1.__decorate([
|
|
68
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
69
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' }),
|
|
70
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
71
|
+
], BuildingInspectionDailyWorklog.prototype, "taskSupervisory", void 0);
|
|
72
|
+
tslib_1.__decorate([
|
|
73
|
+
(0, typeorm_1.RelationId)((worklog) => worklog.taskSupervisory),
|
|
74
|
+
tslib_1.__metadata("design:type", String)
|
|
75
|
+
], BuildingInspectionDailyWorklog.prototype, "taskSupervisoryId", void 0);
|
|
76
|
+
tslib_1.__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '총괄 감리 책임자 사인' }),
|
|
78
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
79
|
+
tslib_1.__metadata("design:type", String)
|
|
80
|
+
], BuildingInspectionDailyWorklog.prototype, "overallSupervisorySignature", void 0);
|
|
81
|
+
tslib_1.__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '건축사보 (공종별 감리 관리자) 사인' }),
|
|
83
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
84
|
+
tslib_1.__metadata("design:type", String)
|
|
85
|
+
], BuildingInspectionDailyWorklog.prototype, "taskSupervisorySignature", void 0);
|
|
86
|
+
tslib_1.__decorate([
|
|
87
|
+
(0, typeorm_1.OneToMany)(type => building_inspection_1.BuildingInspection, buildingInspection => buildingInspection.worklog),
|
|
88
|
+
(0, type_graphql_1.Field)(type => [building_inspection_1.BuildingInspection], { nullable: true }),
|
|
89
|
+
tslib_1.__metadata("design:type", Array)
|
|
90
|
+
], BuildingInspectionDailyWorklog.prototype, "buildingInspections", void 0);
|
|
91
|
+
tslib_1.__decorate([
|
|
92
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
93
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
94
|
+
tslib_1.__metadata("design:type", Date)
|
|
95
|
+
], BuildingInspectionDailyWorklog.prototype, "createdAt", void 0);
|
|
96
|
+
tslib_1.__decorate([
|
|
97
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
98
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
99
|
+
tslib_1.__metadata("design:type", Date)
|
|
100
|
+
], BuildingInspectionDailyWorklog.prototype, "updatedAt", void 0);
|
|
101
|
+
tslib_1.__decorate([
|
|
102
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
103
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
104
|
+
tslib_1.__metadata("design:type", Date)
|
|
105
|
+
], BuildingInspectionDailyWorklog.prototype, "deletedAt", void 0);
|
|
106
|
+
tslib_1.__decorate([
|
|
107
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
108
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
109
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
110
|
+
], BuildingInspectionDailyWorklog.prototype, "creator", void 0);
|
|
111
|
+
tslib_1.__decorate([
|
|
112
|
+
(0, typeorm_1.RelationId)((worklog) => worklog.creator),
|
|
113
|
+
tslib_1.__metadata("design:type", String)
|
|
114
|
+
], BuildingInspectionDailyWorklog.prototype, "creatorId", void 0);
|
|
115
|
+
tslib_1.__decorate([
|
|
116
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
117
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
118
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
119
|
+
], BuildingInspectionDailyWorklog.prototype, "updater", void 0);
|
|
120
|
+
tslib_1.__decorate([
|
|
121
|
+
(0, typeorm_1.RelationId)((worklog) => worklog.updater),
|
|
122
|
+
tslib_1.__metadata("design:type", String)
|
|
123
|
+
], BuildingInspectionDailyWorklog.prototype, "updaterId", void 0);
|
|
124
|
+
exports.BuildingInspectionDailyWorklog = BuildingInspectionDailyWorklog = tslib_1.__decorate([
|
|
125
|
+
(0, typeorm_1.Entity)({ comment: '일일 업무일지' }),
|
|
126
|
+
(0, typeorm_1.Index)('ix_building_inspection_daily_worklog_0', (worklog) => [worklog.projectId, worklog.date], {
|
|
127
|
+
unique: true,
|
|
128
|
+
where: '"deleted_at" IS NULL'
|
|
129
|
+
}),
|
|
130
|
+
(0, type_graphql_1.ObjectType)({ description: 'Entity for BuildingInspectionDailyWorklog' })
|
|
131
|
+
], BuildingInspectionDailyWorklog);
|
|
132
|
+
//# sourceMappingURL=building-inspection-daily-worklog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection-daily-worklog.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAoD;AAEpD,iDAA4D;AAC5D,yDAAgD;AAChD,oFAA+E;AAcxE,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;CAuF1C,CAAA;AAvFY,wEAA8B;AAGhC;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACnB;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;8DAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,OAAuC,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;;gEACvD;AAIjB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAC/C,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iEACT;AAIlB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC,CAAC,oBAAoB;;IACvF,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACP;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC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E,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;+DAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,OAAuC,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;iEACvD;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;+DAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,OAAuC,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;iEACvD;yCAtFP,8BAA8B;IAN1C,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAC9B,IAAA,eAAK,EAAC,wCAAwC,EAAE,CAAC,OAAuC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE;QAC/H,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,2CAA2C,EAAE,CAAC;GAC5D,8BAA8B,CAuF1C","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn,\n OneToMany\n} from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\n\nimport { Domain, ScalarObject } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\n\nexport interface Worklog {\n constructionType: string\n supervisoryTitle: string\n supervisorContent: string\n}\n\n@Entity({ comment: '일일 업무일지' })\n@Index('ix_building_inspection_daily_worklog_0', (worklog: BuildingInspectionDailyWorklog) => [worklog.projectId, worklog.date], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for BuildingInspectionDailyWorklog' })\nexport class BuildingInspectionDailyWorklog {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { nullable: true })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((worklog: BuildingInspectionDailyWorklog) => worklog.domain)\n domainId?: string\n\n @Column({ nullable: false, comment: '프로젝트 ID' })\n @Field({ nullable: false })\n projectId!: string\n\n @Column({ nullable: true, comment: '문서번호 - {네이밍} 검측 제04-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n documentNo?: string\n\n @Column({ type: 'date', nullable: true, comment: '작성 날짜' })\n @Field(type => String, { nullable: true })\n date?: string\n\n @Column({ type: 'simple-json', nullable: true, comment: '작업사항' })\n @Field(type => ScalarObject, { nullable: true })\n worklogs?: Worklog[]\n\n @Column({ nullable: true, comment: '특기사항' })\n @Field({ nullable: true })\n memo?: string\n\n @Column({ nullable: true, comment: '지적 사항 및 처리결과' })\n @Field({ nullable: true })\n directiveMemo?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 감리 책임자' })\n overallSupervisory?: User\n\n @RelationId((worklog: BuildingInspectionDailyWorklog) => worklog.overallSupervisory)\n overallSupervisoryId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' })\n taskSupervisory?: User\n\n @RelationId((worklog: BuildingInspectionDailyWorklog) => worklog.taskSupervisory)\n taskSupervisoryId?: 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 @OneToMany(type => BuildingInspection, buildingInspection => buildingInspection.worklog)\n @Field(type => [BuildingInspection], { nullable: true })\n buildingInspections?: BuildingInspection[]\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((worklog: BuildingInspectionDailyWorklog) => worklog.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((worklog: BuildingInspectionDailyWorklog) => worklog.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
|
|
2
|
+
import { BuildingInspectionDailyWorklogQuery } from './building-inspection-daily-worklog-query';
|
|
3
|
+
import { BuildingInspectionDailyWorklogMutation } from './building-inspection-daily-worklog-mutation';
|
|
4
|
+
export declare const entities: (typeof BuildingInspectionDailyWorklog)[];
|
|
5
|
+
export declare const resolvers: (typeof BuildingInspectionDailyWorklogQuery | typeof BuildingInspectionDailyWorklogMutation)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
|
|
5
|
+
const building_inspection_daily_worklog_query_1 = require("./building-inspection-daily-worklog-query");
|
|
6
|
+
const building_inspection_daily_worklog_mutation_1 = require("./building-inspection-daily-worklog-mutation");
|
|
7
|
+
exports.entities = [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog];
|
|
8
|
+
exports.resolvers = [building_inspection_daily_worklog_query_1.BuildingInspectionDailyWorklogQuery, building_inspection_daily_worklog_mutation_1.BuildingInspectionDailyWorklogMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/index.ts"],"names":[],"mappings":";;;AAAA,2FAAoF;AACpF,uGAA+F;AAC/F,6GAAqG;AAExF,QAAA,QAAQ,GAAG,CAAC,kEAA8B,CAAC,CAAA;AAC3C,QAAA,SAAS,GAAG,CAAC,6EAAmC,EAAE,mFAAsC,CAAC,CAAA","sourcesContent":["import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog'\nimport { BuildingInspectionDailyWorklogQuery } from './building-inspection-daily-worklog-query'\nimport { BuildingInspectionDailyWorklogMutation } from './building-inspection-daily-worklog-mutation'\n\nexport const entities = [BuildingInspectionDailyWorklog]\nexport const resolvers = [BuildingInspectionDailyWorklogQuery, BuildingInspectionDailyWorklogMutation]\n\n\n"]}
|
package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Attachment } from '@things-factory/attachment-base';
|
|
2
|
+
import { ListParam } from '@things-factory/shell';
|
|
3
|
+
import { BuildingInspectionHistory } from './building-inspection-history';
|
|
4
|
+
import { BuildingInspectionHistoryList } from './building-inspection-history-type';
|
|
5
|
+
import { BuildingLevel } from '@dssp/building-complex';
|
|
6
|
+
import { ChecklistHistory } from '../checklist-history/checklist-history';
|
|
7
|
+
import { ProjectManagerOutput } from '../building-inspection/building-inspection-type';
|
|
8
|
+
export declare class BuildingInspectionHistoryQuery {
|
|
9
|
+
buildingInspectionHistory(id: string, context: ResolverContext): Promise<BuildingInspectionHistory>;
|
|
10
|
+
buildingInspectionHistories(params: ListParam, context: ResolverContext): Promise<BuildingInspectionHistoryList>;
|
|
11
|
+
checklistHistory(buildingInspectionHistory: BuildingInspectionHistory): Promise<ChecklistHistory>;
|
|
12
|
+
buildingLevel(buildingInspectionHistory: BuildingInspectionHistory): Promise<BuildingLevel>;
|
|
13
|
+
attachments(buildingInspectionHistory: BuildingInspectionHistory): Promise<Attachment[] | undefined>;
|
|
14
|
+
manager(buildingInspectionHistory: BuildingInspectionHistory): Promise<ProjectManagerOutput>;
|
|
15
|
+
timestamp(buildingInspectionHistory: BuildingInspectionHistory): Promise<Date>;
|
|
16
|
+
}
|