@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,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionHistoryQuery = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
7
|
+
const shell_1 = require("@things-factory/shell");
|
|
8
|
+
const building_inspection_history_1 = require("./building-inspection-history");
|
|
9
|
+
const building_inspection_1 = require("../building-inspection/building-inspection");
|
|
10
|
+
const building_inspection_history_type_1 = require("./building-inspection-history-type");
|
|
11
|
+
const building_complex_1 = require("@dssp/building-complex");
|
|
12
|
+
const checklist_history_1 = require("../checklist-history/checklist-history");
|
|
13
|
+
const env_1 = require("@things-factory/env");
|
|
14
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
15
|
+
const building_inspection_type_1 = require("../building-inspection/building-inspection-type");
|
|
16
|
+
const projectType = env_1.config.get('projectType', building_inspection_1.ProjectType.DSSP);
|
|
17
|
+
let BuildingInspectionHistoryQuery = class BuildingInspectionHistoryQuery {
|
|
18
|
+
async buildingInspectionHistory(id, context) {
|
|
19
|
+
return await (0, shell_1.getRepository)(building_inspection_history_1.BuildingInspectionHistory).findOne({
|
|
20
|
+
where: { id, projectType }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
async buildingInspectionHistories(params, context) {
|
|
24
|
+
const { domain } = context.state;
|
|
25
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
26
|
+
params,
|
|
27
|
+
repository: await (0, shell_1.getRepository)(building_inspection_history_1.BuildingInspectionHistory),
|
|
28
|
+
searchables: ['name']
|
|
29
|
+
}).andWhere('project_type = :projectType', { projectType });
|
|
30
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
31
|
+
return { items, total };
|
|
32
|
+
}
|
|
33
|
+
async checklistHistory(buildingInspectionHistory) {
|
|
34
|
+
return await (0, shell_1.getRepository)(checklist_history_1.ChecklistHistory).findOneBy({ id: buildingInspectionHistory.checklistHistoryId });
|
|
35
|
+
}
|
|
36
|
+
async buildingLevel(buildingInspectionHistory) {
|
|
37
|
+
return await (0, shell_1.getRepository)(building_complex_1.BuildingLevel).findOneBy({ id: buildingInspectionHistory.buildingLevelId });
|
|
38
|
+
}
|
|
39
|
+
async attachments(buildingInspectionHistory) {
|
|
40
|
+
const attachment = await (0, shell_1.getRepository)(attachment_base_1.Attachment).find({
|
|
41
|
+
where: {
|
|
42
|
+
refType: building_inspection_history_1.BuildingInspectionHistory.name,
|
|
43
|
+
refBy: buildingInspectionHistory.id
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
return attachment;
|
|
47
|
+
}
|
|
48
|
+
async manager(buildingInspectionHistory) {
|
|
49
|
+
const queryBuilder = (0, shell_1.getRepository)(auth_base_1.User)
|
|
50
|
+
.createQueryBuilder('u')
|
|
51
|
+
.select('m.id', 'id')
|
|
52
|
+
.addSelect('m.phone', 'phone')
|
|
53
|
+
.addSelect('m.position', 'position')
|
|
54
|
+
.addSelect('u.id', 'userId')
|
|
55
|
+
.addSelect('u.name', 'name')
|
|
56
|
+
.addSelect('u.updated_at', 'updatedAt')
|
|
57
|
+
.leftJoin('managers', 'm', 'u.id = m.user_id')
|
|
58
|
+
.where('u.id = :userId', { userId: buildingInspectionHistory.managerId });
|
|
59
|
+
return await queryBuilder.getRawOne();
|
|
60
|
+
}
|
|
61
|
+
async timestamp(buildingInspectionHistory) {
|
|
62
|
+
return buildingInspectionHistory.loggedAt;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
exports.BuildingInspectionHistoryQuery = BuildingInspectionHistoryQuery;
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
(0, type_graphql_1.Query)(returns => building_inspection_history_1.BuildingInspectionHistory, { nullable: true, description: 'To fetch a BuildingInspectionHistory' }),
|
|
68
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
69
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
70
|
+
tslib_1.__metadata("design:type", Function),
|
|
71
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
72
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
73
|
+
], BuildingInspectionHistoryQuery.prototype, "buildingInspectionHistory", null);
|
|
74
|
+
tslib_1.__decorate([
|
|
75
|
+
(0, type_graphql_1.Query)(returns => building_inspection_history_type_1.BuildingInspectionHistoryList, { description: 'To fetch multiple BuildingInspections' }),
|
|
76
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
77
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
78
|
+
tslib_1.__metadata("design:type", Function),
|
|
79
|
+
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
80
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
81
|
+
], BuildingInspectionHistoryQuery.prototype, "buildingInspectionHistories", null);
|
|
82
|
+
tslib_1.__decorate([
|
|
83
|
+
(0, type_graphql_1.FieldResolver)(type => checklist_history_1.ChecklistHistory),
|
|
84
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
85
|
+
tslib_1.__metadata("design:type", Function),
|
|
86
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_history_1.BuildingInspectionHistory]),
|
|
87
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
88
|
+
], BuildingInspectionHistoryQuery.prototype, "checklistHistory", null);
|
|
89
|
+
tslib_1.__decorate([
|
|
90
|
+
(0, type_graphql_1.FieldResolver)(type => building_complex_1.BuildingLevel),
|
|
91
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
92
|
+
tslib_1.__metadata("design:type", Function),
|
|
93
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_history_1.BuildingInspectionHistory]),
|
|
94
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
95
|
+
], BuildingInspectionHistoryQuery.prototype, "buildingLevel", null);
|
|
96
|
+
tslib_1.__decorate([
|
|
97
|
+
(0, type_graphql_1.FieldResolver)(type => [attachment_base_1.Attachment]),
|
|
98
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
99
|
+
tslib_1.__metadata("design:type", Function),
|
|
100
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_history_1.BuildingInspectionHistory]),
|
|
101
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
102
|
+
], BuildingInspectionHistoryQuery.prototype, "attachments", null);
|
|
103
|
+
tslib_1.__decorate([
|
|
104
|
+
(0, type_graphql_1.FieldResolver)(type => building_inspection_type_1.ProjectManagerOutput),
|
|
105
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
106
|
+
tslib_1.__metadata("design:type", Function),
|
|
107
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_history_1.BuildingInspectionHistory]),
|
|
108
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
109
|
+
], BuildingInspectionHistoryQuery.prototype, "manager", null);
|
|
110
|
+
tslib_1.__decorate([
|
|
111
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
112
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
113
|
+
tslib_1.__metadata("design:type", Function),
|
|
114
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_history_1.BuildingInspectionHistory]),
|
|
115
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
116
|
+
], BuildingInspectionHistoryQuery.prototype, "timestamp", null);
|
|
117
|
+
exports.BuildingInspectionHistoryQuery = BuildingInspectionHistoryQuery = tslib_1.__decorate([
|
|
118
|
+
(0, type_graphql_1.Resolver)(building_inspection_history_1.BuildingInspectionHistory)
|
|
119
|
+
], BuildingInspectionHistoryQuery);
|
|
120
|
+
//# sourceMappingURL=building-inspection-history-query.js.map
|
package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection-history-query.js","sourceRoot":"","sources":["../../../server/service/building-inspection-history/building-inspection-history-query.ts"],"names":[],"mappings":";;;;AAA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AE,IAAI,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;IACrF,mBAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;+EAI5D;AAGK;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,gEAA6B,EAAE,EAAE,WAAW,EAAE,uCAAuC,EAAE,CAAC;IAEvG,mBAAA,IAAA,mBAAI,GAAE,CAAA;IACN,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CADU,iBAAS;;iFAc1B;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,oCAAgB,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAA4B,uDAAyB;;sEAElF;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gCAAa,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAA4B,uDAAyB;;mEAE/E;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAU,CAAC,CAAC;IACjB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAA4B,uDAAyB;;iEAS7E;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,+CAAoB,CAAC;IAC7B,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAA4B,uDAAyB;;6DAazE;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACX,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAA4B,uDAAyB;;+DAE3E;yCAnEU,8BAA8B;IAD1C,IAAA,uBAAQ,EAAC,uDAAyB,CAAC;GACvB,8BAA8B,CAoE1C","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Arg, Args, Ctx } from 'type-graphql'\nimport { Attachment } from '@things-factory/attachment-base'\nimport { getRepository, getQueryBuilderFromListParams, ListParam } from '@things-factory/shell'\nimport { BuildingInspectionHistory } from './building-inspection-history'\nimport { ProjectType } from '../building-inspection/building-inspection'\nimport { BuildingInspectionHistoryList } from './building-inspection-history-type'\nimport { BuildingLevel } from '@dssp/building-complex'\nimport { Checklist } from '../checklist/checklist'\nimport { ChecklistHistory } from '../checklist-history/checklist-history'\nimport { config } from '@things-factory/env'\nimport { User } from '@things-factory/auth-base'\nimport { ProjectManagerOutput } from '../building-inspection/building-inspection-type'\n\nconst projectType = config.get('projectType', ProjectType.DSSP)\n\n@Resolver(BuildingInspectionHistory)\nexport class BuildingInspectionHistoryQuery {\n @Query(returns => BuildingInspectionHistory!, { nullable: true, description: 'To fetch a BuildingInspectionHistory' })\n async buildingInspectionHistory(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<BuildingInspectionHistory> {\n return await getRepository(BuildingInspectionHistory).findOne({\n where: { id, projectType }\n })\n }\n\n @Query(returns => BuildingInspectionHistoryList, { description: 'To fetch multiple BuildingInspections' })\n async buildingInspectionHistories(\n @Args() params: ListParam,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionHistoryList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(BuildingInspectionHistory),\n searchables: ['name']\n }).andWhere('project_type = :projectType', { projectType })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => ChecklistHistory)\n async checklistHistory(@Root() buildingInspectionHistory: BuildingInspectionHistory): Promise<ChecklistHistory> {\n return await getRepository(ChecklistHistory).findOneBy({ id: buildingInspectionHistory.checklistHistoryId })\n }\n\n @FieldResolver(type => BuildingLevel)\n async buildingLevel(@Root() buildingInspectionHistory: BuildingInspectionHistory): Promise<BuildingLevel> {\n return await getRepository(BuildingLevel).findOneBy({ id: buildingInspectionHistory.buildingLevelId })\n }\n\n @FieldResolver(type => [Attachment])\n async attachments(@Root() buildingInspectionHistory: BuildingInspectionHistory): Promise<Attachment[] | undefined> {\n const attachment: Attachment[] = await getRepository(Attachment).find({\n where: {\n refType: BuildingInspectionHistory.name,\n refBy: buildingInspectionHistory.id\n }\n })\n\n return attachment\n }\n\n @FieldResolver(type => ProjectManagerOutput)\n async manager(@Root() buildingInspectionHistory: BuildingInspectionHistory): Promise<ProjectManagerOutput> {\n const queryBuilder = getRepository(User)\n .createQueryBuilder('u')\n .select('m.id', 'id')\n .addSelect('m.phone', 'phone')\n .addSelect('m.position', 'position')\n .addSelect('u.id', 'userId')\n .addSelect('u.name', 'name')\n .addSelect('u.updated_at', 'updatedAt')\n .leftJoin('managers', 'm', 'u.id = m.user_id')\n .where('u.id = :userId', { userId: buildingInspectionHistory.managerId })\n\n return await queryBuilder.getRawOne()\n }\n\n @FieldResolver(type => User)\n async timestamp(@Root() buildingInspectionHistory: BuildingInspectionHistory): Promise<Date> {\n return buildingInspectionHistory.loggedAt\n }\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionHistoryList = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const building_inspection_history_1 = require("./building-inspection-history");
|
|
7
|
+
let BuildingInspectionHistoryList = class BuildingInspectionHistoryList {
|
|
8
|
+
};
|
|
9
|
+
exports.BuildingInspectionHistoryList = BuildingInspectionHistoryList;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, type_graphql_1.Field)(type => [building_inspection_history_1.BuildingInspectionHistory]),
|
|
12
|
+
tslib_1.__metadata("design:type", Array)
|
|
13
|
+
], BuildingInspectionHistoryList.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
|
+
], BuildingInspectionHistoryList.prototype, "total", void 0);
|
|
18
|
+
exports.BuildingInspectionHistoryList = BuildingInspectionHistoryList = tslib_1.__decorate([
|
|
19
|
+
(0, type_graphql_1.ObjectType)()
|
|
20
|
+
], BuildingInspectionHistoryList);
|
|
21
|
+
//# sourceMappingURL=building-inspection-history-type.js.map
|
package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection-history-type.js","sourceRoot":"","sources":["../../../server/service/building-inspection-history/building-inspection-history-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAqD;AACrD,+EAAyE;AAGlE,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;CAMzC,CAAA;AANY,sEAA6B;AAExC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,uDAAyB,CAAC,CAAC;;4DACT;AAGlC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;4DACN;wCALF,6BAA6B;IADzC,IAAA,yBAAU,GAAE;GACA,6BAA6B,CAMzC","sourcesContent":["import { ObjectType, Field, Int } from 'type-graphql'\nimport { BuildingInspectionHistory } from './building-inspection-history'\n\n@ObjectType()\nexport class BuildingInspectionHistoryList {\n @Field(type => [BuildingInspectionHistory])\n items: BuildingInspectionHistory[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { BuildingInspection, BuildingInspectionStatus } from '../building-inspection/building-inspection';
|
|
4
|
+
import { BuildingLevel } from '@dssp/building-complex';
|
|
5
|
+
import { ProjectType } from '../building-inspection/building-inspection';
|
|
6
|
+
import { ChecklistHistory } from '../checklist-history/checklist-history';
|
|
7
|
+
import { BuildingInspectionDailyWorklog } from '../building-inspection-daily-worklog/building-inspection-daily-worklog';
|
|
8
|
+
export declare class BuildingInspectionHistory implements HistoryEntityInterface<BuildingInspection> {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
originalId: string;
|
|
11
|
+
projectType?: ProjectType;
|
|
12
|
+
status?: BuildingInspectionStatus;
|
|
13
|
+
failCount?: number;
|
|
14
|
+
requestDate?: string;
|
|
15
|
+
drawingMarker?: string;
|
|
16
|
+
cellX?: number;
|
|
17
|
+
cellY?: number;
|
|
18
|
+
memo?: string;
|
|
19
|
+
buildingLevel?: BuildingLevel;
|
|
20
|
+
buildingLevelId?: string;
|
|
21
|
+
checklistId?: string;
|
|
22
|
+
checklistHistory?: ChecklistHistory;
|
|
23
|
+
checklistHistoryId?: string;
|
|
24
|
+
manager?: User;
|
|
25
|
+
managerId?: string;
|
|
26
|
+
worklog?: BuildingInspectionDailyWorklog;
|
|
27
|
+
worklogId?: string;
|
|
28
|
+
createdAt?: Date;
|
|
29
|
+
loggedAt?: Date;
|
|
30
|
+
creator?: User;
|
|
31
|
+
creatorId?: string;
|
|
32
|
+
updater?: User;
|
|
33
|
+
updaterId?: string;
|
|
34
|
+
action: HistoryActionType;
|
|
35
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionHistory = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const typeorm_1 = require("typeorm");
|
|
7
|
+
const typeorm_history_1 = require("@operato/typeorm-history");
|
|
8
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
+
const env_1 = require("@things-factory/env");
|
|
10
|
+
const building_inspection_1 = require("../building-inspection/building-inspection");
|
|
11
|
+
const building_complex_1 = require("@dssp/building-complex");
|
|
12
|
+
const building_inspection_2 = require("../building-inspection/building-inspection");
|
|
13
|
+
const checklist_history_1 = require("../checklist-history/checklist-history");
|
|
14
|
+
const building_inspection_type_1 = require("../building-inspection/building-inspection-type");
|
|
15
|
+
const building_inspection_daily_worklog_1 = require("../building-inspection-daily-worklog/building-inspection-daily-worklog");
|
|
16
|
+
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
|
17
|
+
const DATABASE_TYPE = ORMCONFIG.type;
|
|
18
|
+
let BuildingInspectionHistory = class BuildingInspectionHistory {
|
|
19
|
+
};
|
|
20
|
+
exports.BuildingInspectionHistory = BuildingInspectionHistory;
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
23
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], BuildingInspectionHistory.prototype, "id", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_history_1.HistoryOriginalIdColumn)(),
|
|
28
|
+
tslib_1.__metadata("design:type", String)
|
|
29
|
+
], BuildingInspectionHistory.prototype, "originalId", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '프로젝트 타입', default: building_inspection_2.ProjectType.DSSP }),
|
|
32
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
33
|
+
tslib_1.__metadata("design:type", String)
|
|
34
|
+
], BuildingInspectionHistory.prototype, "projectType", void 0);
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({
|
|
37
|
+
nullable: false,
|
|
38
|
+
comment: '상태(WAIT: 작업 완료, OVERALL_WAIT: 총괄자 작업 완료, REQUEST: 검측 요청, OVERALL_REQUEST: 총괄자 검측 요청, PASS: 합격(검측 완료), FAIL: 불합격(조치 필요))',
|
|
39
|
+
default: building_inspection_1.BuildingInspectionStatus.WAIT
|
|
40
|
+
}),
|
|
41
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
42
|
+
tslib_1.__metadata("design:type", String)
|
|
43
|
+
], BuildingInspectionHistory.prototype, "status", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0, nullable: false, comment: '불합격 횟수' }),
|
|
46
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
47
|
+
tslib_1.__metadata("design:type", Number)
|
|
48
|
+
], BuildingInspectionHistory.prototype, "failCount", void 0);
|
|
49
|
+
tslib_1.__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'date', default: () => 'CURRENT_DATE', nullable: true, comment: '검측 요청일' }),
|
|
51
|
+
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
52
|
+
tslib_1.__metadata("design:type", String)
|
|
53
|
+
], BuildingInspectionHistory.prototype, "requestDate", void 0);
|
|
54
|
+
tslib_1.__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'simple-json', nullable: true, comment: '도면 마커' }),
|
|
56
|
+
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
57
|
+
tslib_1.__metadata("design:type", String)
|
|
58
|
+
], BuildingInspectionHistory.prototype, "drawingMarker", void 0);
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ nullable: true, comment: 'X좌표' }),
|
|
61
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
62
|
+
tslib_1.__metadata("design:type", Number)
|
|
63
|
+
], BuildingInspectionHistory.prototype, "cellX", void 0);
|
|
64
|
+
tslib_1.__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ nullable: true, comment: 'Y좌표' }),
|
|
66
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
67
|
+
tslib_1.__metadata("design:type", Number)
|
|
68
|
+
], BuildingInspectionHistory.prototype, "cellY", void 0);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '메모 - DSSP: 검측 메모, DCSP: 검측 요청서 메모' }),
|
|
71
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
72
|
+
tslib_1.__metadata("design:type", String)
|
|
73
|
+
], BuildingInspectionHistory.prototype, "memo", void 0);
|
|
74
|
+
tslib_1.__decorate([
|
|
75
|
+
(0, typeorm_1.ManyToOne)(type => building_complex_1.BuildingLevel),
|
|
76
|
+
(0, type_graphql_1.Field)(() => building_complex_1.BuildingLevel, { nullable: true }),
|
|
77
|
+
tslib_1.__metadata("design:type", building_complex_1.BuildingLevel)
|
|
78
|
+
], BuildingInspectionHistory.prototype, "buildingLevel", void 0);
|
|
79
|
+
tslib_1.__decorate([
|
|
80
|
+
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.buildingLevel),
|
|
81
|
+
tslib_1.__metadata("design:type", String)
|
|
82
|
+
], BuildingInspectionHistory.prototype, "buildingLevelId", void 0);
|
|
83
|
+
tslib_1.__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '체크리스트 ID' }),
|
|
85
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
86
|
+
tslib_1.__metadata("design:type", String)
|
|
87
|
+
], BuildingInspectionHistory.prototype, "checklistId", void 0);
|
|
88
|
+
tslib_1.__decorate([
|
|
89
|
+
(0, typeorm_1.ManyToOne)(type => checklist_history_1.ChecklistHistory, { nullable: true }),
|
|
90
|
+
(0, type_graphql_1.Field)(type => checklist_history_1.ChecklistHistory, { nullable: true }),
|
|
91
|
+
tslib_1.__metadata("design:type", checklist_history_1.ChecklistHistory)
|
|
92
|
+
], BuildingInspectionHistory.prototype, "checklistHistory", void 0);
|
|
93
|
+
tslib_1.__decorate([
|
|
94
|
+
(0, typeorm_1.RelationId)((buildingInspectionHistory) => buildingInspectionHistory.checklistHistory),
|
|
95
|
+
tslib_1.__metadata("design:type", String)
|
|
96
|
+
], BuildingInspectionHistory.prototype, "checklistHistoryId", void 0);
|
|
97
|
+
tslib_1.__decorate([
|
|
98
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
99
|
+
(0, type_graphql_1.Field)(type => building_inspection_type_1.ProjectManagerOutput, { nullable: true }),
|
|
100
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
101
|
+
], BuildingInspectionHistory.prototype, "manager", void 0);
|
|
102
|
+
tslib_1.__decorate([
|
|
103
|
+
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.manager),
|
|
104
|
+
tslib_1.__metadata("design:type", String)
|
|
105
|
+
], BuildingInspectionHistory.prototype, "managerId", void 0);
|
|
106
|
+
tslib_1.__decorate([
|
|
107
|
+
(0, typeorm_1.ManyToOne)(type => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { nullable: true }),
|
|
108
|
+
(0, type_graphql_1.Field)(type => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { nullable: true }),
|
|
109
|
+
tslib_1.__metadata("design:type", building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
|
|
110
|
+
], BuildingInspectionHistory.prototype, "worklog", void 0);
|
|
111
|
+
tslib_1.__decorate([
|
|
112
|
+
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.worklog),
|
|
113
|
+
tslib_1.__metadata("design:type", String)
|
|
114
|
+
], BuildingInspectionHistory.prototype, "worklogId", void 0);
|
|
115
|
+
tslib_1.__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
117
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
118
|
+
tslib_1.__metadata("design:type", Date)
|
|
119
|
+
], BuildingInspectionHistory.prototype, "createdAt", void 0);
|
|
120
|
+
tslib_1.__decorate([
|
|
121
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
122
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
123
|
+
tslib_1.__metadata("design:type", Date)
|
|
124
|
+
], BuildingInspectionHistory.prototype, "loggedAt", void 0);
|
|
125
|
+
tslib_1.__decorate([
|
|
126
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
127
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
128
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
129
|
+
], BuildingInspectionHistory.prototype, "creator", void 0);
|
|
130
|
+
tslib_1.__decorate([
|
|
131
|
+
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.creator),
|
|
132
|
+
tslib_1.__metadata("design:type", String)
|
|
133
|
+
], BuildingInspectionHistory.prototype, "creatorId", void 0);
|
|
134
|
+
tslib_1.__decorate([
|
|
135
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
136
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
137
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
138
|
+
], BuildingInspectionHistory.prototype, "updater", void 0);
|
|
139
|
+
tslib_1.__decorate([
|
|
140
|
+
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.updater),
|
|
141
|
+
tslib_1.__metadata("design:type", String)
|
|
142
|
+
], BuildingInspectionHistory.prototype, "updaterId", void 0);
|
|
143
|
+
tslib_1.__decorate([
|
|
144
|
+
(0, typeorm_history_1.HistoryActionColumn)({
|
|
145
|
+
nullable: false,
|
|
146
|
+
type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
|
147
|
+
? 'enum'
|
|
148
|
+
: DATABASE_TYPE == 'oracle'
|
|
149
|
+
? 'varchar2'
|
|
150
|
+
: 'smallint',
|
|
151
|
+
enum: typeorm_history_1.HistoryActionType
|
|
152
|
+
}),
|
|
153
|
+
tslib_1.__metadata("design:type", String)
|
|
154
|
+
], BuildingInspectionHistory.prototype, "action", void 0);
|
|
155
|
+
exports.BuildingInspectionHistory = BuildingInspectionHistory = tslib_1.__decorate([
|
|
156
|
+
(0, typeorm_1.Entity)(),
|
|
157
|
+
(0, typeorm_1.Index)('ix_buildingInspection_history_0', (buildingInspectionHistory) => [
|
|
158
|
+
buildingInspectionHistory.originalId
|
|
159
|
+
]),
|
|
160
|
+
(0, type_graphql_1.ObjectType)({ description: 'History Entity of BuildingInspection' })
|
|
161
|
+
], BuildingInspectionHistory);
|
|
162
|
+
//# sourceMappingURL=building-inspection-history.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection-history.js","sourceRoot":"","sources":["../../../server/service/building-inspection-history/building-inspection-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAAgH;AAChH,8DAAkI;AAClI,yDAAgD;AAChD,6CAA4C;AAC5C,oFAAyG;AACzG,6DAAsD;AACtD,oFAAwE;AACxE,8EAAyE;AACzE,8FAAsF;AACtF,8HAAuH;AAEvH,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAO7B,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CAkHrC,CAAA;AAlHY,8DAAyB;AAG3B;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;qDACC;AAGZ;IADN,IAAA,yCAAuB,GAAE;;6DACA;AAI1B;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;;8DACD;AASzB;IAPC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,KAAK;QACf,OAAO,EACL,yHAAyH;QAC3H,OAAO,EAAE,8CAAwB,CAAC,IAAI;KACvC,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACO;AAIjC;IAFC,I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,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,aAAa,IAAI,QAAQ;gBACzB,CAAC,CAAC,UAAU;gBACZ,CAAC,CAAC,UAAU;QAClB,IAAI,EAAE,mCAAiB;KACxB,CAAC;;yDAC+B;oCAjHtB,yBAAyB;IALrC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,iCAAiC,EAAE,CAAC,yBAAoD,EAAE,EAAE,CAAC;QAClG,yBAAyB,CAAC,UAAU;KACrC,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;GACvD,yBAAyB,CAkHrC","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\nimport { HistoryActionColumn, HistoryActionType, HistoryEntityInterface, HistoryOriginalIdColumn } from '@operato/typeorm-history'\nimport { User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { BuildingInspection, BuildingInspectionStatus } from '../building-inspection/building-inspection'\nimport { BuildingLevel } from '@dssp/building-complex'\nimport { ProjectType } from '../building-inspection/building-inspection'\nimport { ChecklistHistory } from '../checklist-history/checklist-history'\nimport { ProjectManagerOutput } from '../building-inspection/building-inspection-type'\nimport { BuildingInspectionDailyWorklog } from '../building-inspection-daily-worklog/building-inspection-daily-worklog'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index('ix_buildingInspection_history_0', (buildingInspectionHistory: BuildingInspectionHistory) => [\n buildingInspectionHistory.originalId\n])\n@ObjectType({ description: 'History Entity of BuildingInspection' })\nexport class BuildingInspectionHistory implements HistoryEntityInterface<BuildingInspection> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @HistoryOriginalIdColumn()\n public originalId!: string\n\n @Column({ nullable: false, comment: '프로젝트 타입', default: ProjectType.DSSP })\n @Field({ nullable: true })\n projectType?: ProjectType\n\n @Column({\n nullable: false,\n comment:\n '상태(WAIT: 작업 완료, OVERALL_WAIT: 총괄자 작업 완료, REQUEST: 검측 요청, OVERALL_REQUEST: 총괄자 검측 요청, PASS: 합격(검측 완료), FAIL: 불합격(조치 필요))',\n default: BuildingInspectionStatus.WAIT\n })\n @Field({ nullable: true })\n status?: BuildingInspectionStatus\n\n @Column({ type: 'int', default: 0, nullable: false, comment: '불합격 횟수' })\n @Field({ nullable: true })\n failCount?: number\n\n @Column({ type: 'date', default: () => 'CURRENT_DATE', nullable: true, comment: '검측 요청일' })\n @Field(type => String, { nullable: true })\n requestDate?: string\n\n @Column({ type: 'simple-json', nullable: true, comment: '도면 마커' })\n @Field(type => String, { nullable: true })\n drawingMarker?: string\n\n @Column({ nullable: true, comment: 'X좌표' })\n @Field({ nullable: true })\n cellX?: number\n\n @Column({ nullable: true, comment: 'Y좌표' })\n @Field({ nullable: true })\n cellY?: number\n\n @Column({ nullable: true, comment: '메모 - DSSP: 검측 메모, DCSP: 검측 요청서 메모' })\n @Field({ nullable: true })\n memo?: string\n\n // 층 정보 (N:1 상위 테이블 참조)\n @ManyToOne(type => BuildingLevel)\n @Field(() => BuildingLevel, { nullable: true })\n buildingLevel?: BuildingLevel\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.buildingLevel)\n buildingLevelId?: string\n\n // 체크리스트 ID (원본 엔티티 ID 저장)\n @Column({ nullable: true, comment: '체크리스트 ID' })\n @Field({ nullable: true })\n checklistId?: string\n\n // 체크리스트 히스토리 스냅샷 FK (동일 트랜잭션에서 묶기 위함)\n @ManyToOne(type => ChecklistHistory, { nullable: true })\n @Field(type => ChecklistHistory, { nullable: true })\n checklistHistory?: ChecklistHistory\n\n @RelationId((buildingInspectionHistory: BuildingInspectionHistory) => buildingInspectionHistory.checklistHistory)\n checklistHistoryId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => ProjectManagerOutput, { nullable: true })\n manager?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.manager)\n managerId?: string\n\n // 일일 업무 일지가 생성되면 ID를 넣어줌 (상위 테이블 참조)\n @ManyToOne(type => BuildingInspectionDailyWorklog, { nullable: true })\n @Field(type => BuildingInspectionDailyWorklog, { nullable: true })\n worklog?: BuildingInspectionDailyWorklog\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.worklog)\n worklogId?: string\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((buildingInspection: BuildingInspection) => buildingInspection.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.updater)\n updaterId?: 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 : 'smallint',\n enum: HistoryActionType\n })\n public action!: HistoryActionType\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HistoryEntitySubscriber } from '@operato/typeorm-history';
|
|
2
|
+
import { BuildingInspection } from '../building-inspection/building-inspection';
|
|
3
|
+
import { BuildingInspectionHistory } from './building-inspection-history';
|
|
4
|
+
export declare class BuildingInspectionHistoryEntitySubscriber extends HistoryEntitySubscriber<BuildingInspection, BuildingInspectionHistory> {
|
|
5
|
+
get entity(): typeof BuildingInspection;
|
|
6
|
+
get historyEntity(): typeof BuildingInspectionHistory;
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionHistoryEntitySubscriber = 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 building_inspection_1 = require("../building-inspection/building-inspection");
|
|
8
|
+
const building_inspection_history_1 = require("./building-inspection-history");
|
|
9
|
+
let BuildingInspectionHistoryEntitySubscriber = class BuildingInspectionHistoryEntitySubscriber extends typeorm_history_1.HistoryEntitySubscriber {
|
|
10
|
+
get entity() {
|
|
11
|
+
return building_inspection_1.BuildingInspection;
|
|
12
|
+
}
|
|
13
|
+
get historyEntity() {
|
|
14
|
+
return building_inspection_history_1.BuildingInspectionHistory;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
exports.BuildingInspectionHistoryEntitySubscriber = BuildingInspectionHistoryEntitySubscriber;
|
|
18
|
+
exports.BuildingInspectionHistoryEntitySubscriber = BuildingInspectionHistoryEntitySubscriber = tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.EventSubscriber)()
|
|
20
|
+
], BuildingInspectionHistoryEntitySubscriber);
|
|
21
|
+
//# sourceMappingURL=event-subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/building-inspection-history/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,8DAAkE;AAElE,oFAA+E;AAC/E,+EAAyE;AAGlE,IAAM,yCAAyC,GAA/C,MAAM,yCAA0C,SAAQ,yCAG9D;IACC,IAAW,MAAM;QACf,OAAO,wCAAkB,CAAA;IAC3B,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,uDAAyB,CAAA;IAClC,CAAC;CACF,CAAA;AAXY,8FAAyC;oDAAzC,yCAAyC;IADrD,IAAA,yBAAe,GAAE;GACL,yCAAyC,CAWrD","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@operato/typeorm-history'\n\nimport { BuildingInspection } from '../building-inspection/building-inspection'\nimport { BuildingInspectionHistory } from './building-inspection-history'\n\n@EventSubscriber()\nexport class BuildingInspectionHistoryEntitySubscriber extends HistoryEntitySubscriber<\n BuildingInspection,\n BuildingInspectionHistory\n> {\n public get entity() {\n return BuildingInspection\n }\n\n public get historyEntity() {\n return BuildingInspectionHistory\n }\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BuildingInspectionHistory } from './building-inspection-history';
|
|
2
|
+
import { BuildingInspectionHistoryQuery } from './building-inspection-history-query';
|
|
3
|
+
import { BuildingInspectionHistoryEntitySubscriber } from './event-subscriber';
|
|
4
|
+
export declare const entities: (typeof BuildingInspectionHistory)[];
|
|
5
|
+
export declare const resolvers: (typeof BuildingInspectionHistoryQuery)[];
|
|
6
|
+
export declare const subscribers: (typeof BuildingInspectionHistoryEntitySubscriber)[];
|
|
@@ -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 building_inspection_history_1 = require("./building-inspection-history");
|
|
5
|
+
const building_inspection_history_query_1 = require("./building-inspection-history-query");
|
|
6
|
+
const event_subscriber_1 = require("./event-subscriber");
|
|
7
|
+
exports.entities = [building_inspection_history_1.BuildingInspectionHistory];
|
|
8
|
+
exports.resolvers = [building_inspection_history_query_1.BuildingInspectionHistoryQuery];
|
|
9
|
+
exports.subscribers = [event_subscriber_1.BuildingInspectionHistoryEntitySubscriber];
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection-history/index.ts"],"names":[],"mappings":";;;AAAA,+EAAyE;AACzE,2FAAoF;AACpF,yDAA8E;AAEjE,QAAA,QAAQ,GAAG,CAAC,uDAAyB,CAAC,CAAA;AACtC,QAAA,SAAS,GAAG,CAAC,kEAA8B,CAAC,CAAA;AAC5C,QAAA,WAAW,GAAG,CAAC,4DAAyC,CAAC,CAAA","sourcesContent":["import { BuildingInspectionHistory } from './building-inspection-history'\nimport { BuildingInspectionHistoryQuery } from './building-inspection-history-query'\nimport { BuildingInspectionHistoryEntitySubscriber } from './event-subscriber'\n\nexport const entities = [BuildingInspectionHistory]\nexport const resolvers = [BuildingInspectionHistoryQuery]\nexport const subscribers = [BuildingInspectionHistoryEntitySubscriber]\n"]}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { Checklist } from './checklist';
|
|
2
|
-
import { NewChecklist, ChecklistPatch } from './checklist-type';
|
|
3
1
|
export declare class ChecklistMutation {
|
|
4
|
-
createChecklist(checklist: NewChecklist, context: ResolverContext): Promise<Checklist>;
|
|
5
|
-
updateChecklist(id: string, patch: ChecklistPatch, context: ResolverContext): Promise<Checklist>;
|
|
6
|
-
updateMultipleChecklist(patches: ChecklistPatch[], context: ResolverContext): Promise<Checklist[]>;
|
|
7
2
|
deleteChecklists(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
8
3
|
}
|
|
@@ -5,45 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const type_graphql_1 = require("type-graphql");
|
|
6
6
|
const typeorm_1 = require("typeorm");
|
|
7
7
|
const checklist_1 = require("./checklist");
|
|
8
|
-
const checklist_type_1 = require("./checklist-type");
|
|
9
8
|
let ChecklistMutation = class ChecklistMutation {
|
|
10
|
-
async createChecklist(checklist, context) {
|
|
11
|
-
const { domain, user, tx } = context.state;
|
|
12
|
-
const result = await tx.getRepository(checklist_1.Checklist).save(Object.assign(Object.assign({}, checklist), { domain, creator: user, updater: user }));
|
|
13
|
-
return result;
|
|
14
|
-
}
|
|
15
|
-
async updateChecklist(id, patch, context) {
|
|
16
|
-
const { domain, user, tx } = context.state;
|
|
17
|
-
const repository = tx.getRepository(checklist_1.Checklist);
|
|
18
|
-
const checklist = await repository.findOne({
|
|
19
|
-
where: { id }
|
|
20
|
-
});
|
|
21
|
-
const result = await repository.save(Object.assign(Object.assign(Object.assign({}, checklist), patch), { updater: user }));
|
|
22
|
-
return result;
|
|
23
|
-
}
|
|
24
|
-
async updateMultipleChecklist(patches, context) {
|
|
25
|
-
const { domain, user, tx } = context.state;
|
|
26
|
-
let results = [];
|
|
27
|
-
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
28
|
-
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
29
|
-
const checklistRepo = tx.getRepository(checklist_1.Checklist);
|
|
30
|
-
if (_createRecords.length > 0) {
|
|
31
|
-
for (let i = 0; i < _createRecords.length; i++) {
|
|
32
|
-
const newRecord = _createRecords[i];
|
|
33
|
-
const result = await checklistRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
|
|
34
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
if (_updateRecords.length > 0) {
|
|
38
|
-
for (let i = 0; i < _updateRecords.length; i++) {
|
|
39
|
-
const updateRecord = _updateRecords[i];
|
|
40
|
-
const checklist = await checklistRepo.findOneBy({ id: updateRecord.id });
|
|
41
|
-
const result = await checklistRepo.save(Object.assign(Object.assign(Object.assign({}, checklist), updateRecord), { updater: user }));
|
|
42
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return results;
|
|
46
|
-
}
|
|
47
9
|
async deleteChecklists(ids, context) {
|
|
48
10
|
const { domain, tx } = context.state;
|
|
49
11
|
await tx.getRepository(checklist_1.Checklist).softDelete({
|
|
@@ -55,35 +17,7 @@ let ChecklistMutation = class ChecklistMutation {
|
|
|
55
17
|
exports.ChecklistMutation = ChecklistMutation;
|
|
56
18
|
tslib_1.__decorate([
|
|
57
19
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
58
|
-
(0, type_graphql_1.Mutation)(returns =>
|
|
59
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('checklist')),
|
|
60
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
61
|
-
tslib_1.__metadata("design:type", Function),
|
|
62
|
-
tslib_1.__metadata("design:paramtypes", [checklist_type_1.NewChecklist, Object]),
|
|
63
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
64
|
-
], ChecklistMutation.prototype, "createChecklist", null);
|
|
65
|
-
tslib_1.__decorate([
|
|
66
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
67
|
-
(0, type_graphql_1.Mutation)(returns => checklist_1.Checklist, { description: 'To modify Checklist information' }),
|
|
68
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
69
|
-
tslib_1.__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
70
|
-
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
71
|
-
tslib_1.__metadata("design:type", Function),
|
|
72
|
-
tslib_1.__metadata("design:paramtypes", [String, checklist_type_1.ChecklistPatch, Object]),
|
|
73
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
74
|
-
], ChecklistMutation.prototype, "updateChecklist", null);
|
|
75
|
-
tslib_1.__decorate([
|
|
76
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
77
|
-
(0, type_graphql_1.Mutation)(returns => [checklist_1.Checklist], { description: "To modify multiple Checklists' information" }),
|
|
78
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [checklist_type_1.ChecklistPatch])),
|
|
79
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
80
|
-
tslib_1.__metadata("design:type", Function),
|
|
81
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
82
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
83
|
-
], ChecklistMutation.prototype, "updateMultipleChecklist", null);
|
|
84
|
-
tslib_1.__decorate([
|
|
85
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
86
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple Checklists' }),
|
|
20
|
+
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To create Building Inspection And Checklist information' }),
|
|
87
21
|
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
88
22
|
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
89
23
|
tslib_1.__metadata("design:type", Function),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,2CAAuC;
|
|
1
|
+
{"version":3,"file":"checklist-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,2CAAuC;AAGhC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAGtB,AAAN,KAAK,CAAC,gBAAgB,CAA+B,GAAa,EAAS,OAAwB;QACjG,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEpC,MAAM,EAAE,CAAC,aAAa,CAAC,qBAAS,CAAC,CAAC,UAAU,CAAC;YAC3C,EAAE,EAAE,IAAA,YAAE,EAAC,GAAG,CAAC;SACZ,CAAC,CAAA;QAEF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA;AAZY,8CAAiB;AAGtB;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,yDAAyD,EAAE,CAAC;IACjF,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAiB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;yDAQzE;4BAXU,iBAAiB;IAD7B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,iBAAiB,CAY7B","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\nimport { Checklist } from './checklist'\n\n@Resolver(Checklist)\nexport class ChecklistMutation {\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To create Building Inspection And Checklist information' })\n async deleteChecklists(@Arg('ids', type => [String]) ids: string[], @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(Checklist).softDelete({\n id: In(ids)\n })\n\n return true\n }\n}\n"]}
|
|
@@ -4,11 +4,18 @@ import { Checklist } from './checklist';
|
|
|
4
4
|
import { ChecklistList } from './checklist-type';
|
|
5
5
|
import { ChecklistItem } from '../checklist-item/checklist-item';
|
|
6
6
|
import { BuildingInspection } from '../building-inspection/building-inspection';
|
|
7
|
+
import { Attachment } from '@things-factory/attachment-base';
|
|
7
8
|
export declare class ChecklistQuery {
|
|
8
9
|
checklist(id: string, context: ResolverContext): Promise<Checklist>;
|
|
9
10
|
checklists(params: ListParam, context: ResolverContext): Promise<ChecklistList>;
|
|
10
11
|
checklistItems(checklist: Checklist): Promise<ChecklistItem[]>;
|
|
12
|
+
checklistAttachments(checklist: Checklist, description?: string): Promise<Attachment[]>;
|
|
11
13
|
buildingInspection(checklist: Checklist): Promise<BuildingInspection>;
|
|
14
|
+
nameListAttachment(checklist: Checklist): Promise<Attachment | null>;
|
|
15
|
+
taskConstructor(checklist: Checklist): Promise<User>;
|
|
16
|
+
overallConstructor(checklist: Checklist): Promise<User>;
|
|
17
|
+
taskSupervisory(checklist: Checklist): Promise<User>;
|
|
18
|
+
overallSupervisory(checklist: Checklist): Promise<User>;
|
|
12
19
|
updater(checklist: Checklist): Promise<User>;
|
|
13
20
|
creator(checklist: Checklist): Promise<User>;
|
|
14
21
|
}
|