@dssp/supervision 1.0.0-alpha.8 → 1.0.0-alpha.84
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 +81 -0
- package/dist-client/pages/building-inspection/building-inspection-management.js +1512 -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/field-document/field-document-constants.d.ts +18 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js +630 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-constants.js.map +1 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.d.ts +10 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js +219 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-detail-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.d.ts +25 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js +545 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js.map +1 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-popup.d.ts +39 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js +675 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js +348 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +25 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +491 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +31 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +485 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +416 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +4 -2
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +156 -37
- 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 +404 -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 +52 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js +932 -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 +107 -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 +9 -7
- package/dist-server/service/building-inspection/building-inspection-query.js +168 -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 +30 -7
- package/dist-server/service/building-inspection/building-inspection-type.js +106 -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 +66 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +35 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js +162 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
- package/dist-server/service/building-inspection-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js +21 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
- package/dist-server/service/building-inspection-history/index.d.ts +6 -0
- package/dist-server/service/building-inspection-history/index.js +10 -0
- package/dist-server/service/building-inspection-history/index.js.map +1 -0
- package/dist-server/service/checklist/checklist-mutation.d.ts +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/field-document/field-document-auto-file.d.ts +21 -0
- package/dist-server/service/field-document/field-document-auto-file.js +47 -0
- package/dist-server/service/field-document/field-document-auto-file.js.map +1 -0
- package/dist-server/service/field-document/field-document-mutation.d.ts +9 -0
- package/dist-server/service/field-document/field-document-mutation.js +136 -0
- package/dist-server/service/field-document/field-document-mutation.js.map +1 -0
- package/dist-server/service/field-document/field-document-query.d.ts +14 -0
- package/dist-server/service/field-document/field-document-query.js +120 -0
- package/dist-server/service/field-document/field-document-query.js.map +1 -0
- package/dist-server/service/field-document/field-document-summary-service.d.ts +2 -0
- package/dist-server/service/field-document/field-document-summary-service.js +55 -0
- package/dist-server/service/field-document/field-document-summary-service.js.map +1 -0
- package/dist-server/service/field-document/field-document-type.d.ts +23 -0
- package/dist-server/service/field-document/field-document-type.js +84 -0
- package/dist-server/service/field-document/field-document-type.js.map +1 -0
- package/dist-server/service/field-document/field-document.d.ts +29 -0
- package/dist-server/service/field-document/field-document.js +127 -0
- package/dist-server/service/field-document/field-document.js.map +1 -0
- package/dist-server/service/field-document/index.d.ts +5 -0
- package/dist-server/service/field-document/index.js +9 -0
- package/dist-server/service/field-document/index.js.map +1 -0
- package/dist-server/service/index.d.ts +9 -1
- package/dist-server/service/index.js +42 -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,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectChecklistMutation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const typeorm_1 = require("typeorm");
|
|
7
|
+
const project_checklist_1 = require("./project-checklist");
|
|
8
|
+
const project_checklist_type_1 = require("./project-checklist-type");
|
|
9
|
+
const project_checklist_item_1 = require("../project-checklist-item/project-checklist-item");
|
|
10
|
+
let ProjectChecklistMutation = class ProjectChecklistMutation {
|
|
11
|
+
async createProjectChecklist(projectId, constructionTypeId, constructionDetailTypeId, name, items, context) {
|
|
12
|
+
const { domain, user, tx } = context.state;
|
|
13
|
+
const checklistRepo = tx.getRepository(project_checklist_1.ProjectChecklist);
|
|
14
|
+
const itemRepo = tx.getRepository(project_checklist_item_1.ProjectChecklistItem);
|
|
15
|
+
const checklist = await checklistRepo.save({
|
|
16
|
+
domain,
|
|
17
|
+
projectId,
|
|
18
|
+
constructionTypeId,
|
|
19
|
+
constructionDetailTypeId,
|
|
20
|
+
name,
|
|
21
|
+
creator: user,
|
|
22
|
+
updater: user
|
|
23
|
+
});
|
|
24
|
+
for (let i = 0; i < items.length; i++) {
|
|
25
|
+
const item = items[i];
|
|
26
|
+
await itemRepo.save({
|
|
27
|
+
projectChecklist: checklist,
|
|
28
|
+
mainType: item.mainType || null,
|
|
29
|
+
name: item.name,
|
|
30
|
+
inspctionCriteria: item.inspctionCriteria || null,
|
|
31
|
+
sequence: i,
|
|
32
|
+
creator: user,
|
|
33
|
+
updater: user
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return checklist;
|
|
37
|
+
}
|
|
38
|
+
async updateProjectChecklist(id, name, items, context) {
|
|
39
|
+
const { user, tx } = context.state;
|
|
40
|
+
const checklistRepo = tx.getRepository(project_checklist_1.ProjectChecklist);
|
|
41
|
+
const itemRepo = tx.getRepository(project_checklist_item_1.ProjectChecklistItem);
|
|
42
|
+
const checklist = await checklistRepo.findOneBy({ id });
|
|
43
|
+
// 이름 수정
|
|
44
|
+
checklist.name = name;
|
|
45
|
+
checklist.updater = user;
|
|
46
|
+
await checklistRepo.save(checklist);
|
|
47
|
+
// 기존 아이템 삭제 후 재삽입
|
|
48
|
+
await itemRepo.delete({ projectChecklist: { id } });
|
|
49
|
+
for (let i = 0; i < items.length; i++) {
|
|
50
|
+
const item = items[i];
|
|
51
|
+
await itemRepo.save({
|
|
52
|
+
projectChecklist: checklist,
|
|
53
|
+
mainType: item.mainType || null,
|
|
54
|
+
name: item.name,
|
|
55
|
+
inspctionCriteria: item.inspctionCriteria || null,
|
|
56
|
+
sequence: i,
|
|
57
|
+
creator: user,
|
|
58
|
+
updater: user
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return checklist;
|
|
62
|
+
}
|
|
63
|
+
async deleteProjectChecklists(ids, context) {
|
|
64
|
+
const { domain, tx } = context.state;
|
|
65
|
+
await tx.getRepository(project_checklist_1.ProjectChecklist).softDelete({
|
|
66
|
+
domain: { id: domain.id },
|
|
67
|
+
id: (0, typeorm_1.In)(ids)
|
|
68
|
+
});
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
exports.ProjectChecklistMutation = ProjectChecklistMutation;
|
|
73
|
+
tslib_1.__decorate([
|
|
74
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
75
|
+
(0, type_graphql_1.Mutation)(returns => project_checklist_1.ProjectChecklist, { description: '프로젝트 체크리스트 생성' }),
|
|
76
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('projectId')),
|
|
77
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('constructionTypeId')),
|
|
78
|
+
tslib_1.__param(2, (0, type_graphql_1.Arg)('constructionDetailTypeId')),
|
|
79
|
+
tslib_1.__param(3, (0, type_graphql_1.Arg)('name')),
|
|
80
|
+
tslib_1.__param(4, (0, type_graphql_1.Arg)('items', type => [project_checklist_type_1.ProjectChecklistItemInput])),
|
|
81
|
+
tslib_1.__param(5, (0, type_graphql_1.Ctx)()),
|
|
82
|
+
tslib_1.__metadata("design:type", Function),
|
|
83
|
+
tslib_1.__metadata("design:paramtypes", [String, String, String, String, Array, Object]),
|
|
84
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
85
|
+
], ProjectChecklistMutation.prototype, "createProjectChecklist", null);
|
|
86
|
+
tslib_1.__decorate([
|
|
87
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
88
|
+
(0, type_graphql_1.Mutation)(returns => project_checklist_1.ProjectChecklist, { description: '프로젝트 체크리스트 수정' }),
|
|
89
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
90
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('name')),
|
|
91
|
+
tslib_1.__param(2, (0, type_graphql_1.Arg)('items', type => [project_checklist_type_1.ProjectChecklistItemInput])),
|
|
92
|
+
tslib_1.__param(3, (0, type_graphql_1.Ctx)()),
|
|
93
|
+
tslib_1.__metadata("design:type", Function),
|
|
94
|
+
tslib_1.__metadata("design:paramtypes", [String, String, Array, Object]),
|
|
95
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
96
|
+
], ProjectChecklistMutation.prototype, "updateProjectChecklist", null);
|
|
97
|
+
tslib_1.__decorate([
|
|
98
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
99
|
+
(0, type_graphql_1.Mutation)(returns => Boolean, { description: '프로젝트 체크리스트 삭제' }),
|
|
100
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
101
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
102
|
+
tslib_1.__metadata("design:type", Function),
|
|
103
|
+
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
104
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
105
|
+
], ProjectChecklistMutation.prototype, "deleteProjectChecklists", null);
|
|
106
|
+
exports.ProjectChecklistMutation = ProjectChecklistMutation = tslib_1.__decorate([
|
|
107
|
+
(0, type_graphql_1.Resolver)(project_checklist_1.ProjectChecklist)
|
|
108
|
+
], ProjectChecklistMutation);
|
|
109
|
+
//# sourceMappingURL=project-checklist-mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-checklist-mutation.js","sourceRoot":"","sources":["../../../server/service/project-checklist/project-checklist-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,2DAAsD;AACtD,qEAAoE;AACpE,6FAAuF;AAGhF,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAG7B,AAAN,KAAK,CAAC,sBAAsB,CACR,SAAiB,EACR,kBAA0B,EACpB,wBAAgC,EACpD,IAAY,EAC0B,KAAkC,EAC9E,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,aAAa,GAAG,EAAE,CAAC,aAAa,CAAC,oCAAgB,CAAC,CAAA;QACxD,MAAM,QAAQ,GAAG,EAAE,CAAC,aAAa,CAAC,6CAAoB,CAAC,CAAA;QAEvD,MAAM,SAAS,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC;YACzC,MAAM;YACN,SAAS;YACT,kBAAkB;YAClB,wBAAwB;YACxB,IAAI;YACJ,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,IAAI;SACd,CAAC,CAAA;QAEF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;YACrB,MAAM,QAAQ,CAAC,IAAI,CAAC;gBAClB,gBAAgB,EAAE,SAAS;gBAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI;gBAC/B,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf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AAA;IACX,mBAAA,IAAA,kBAAG,EAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,kDAAyB,CAAC,CAAC,CAAA;IACjD,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;sEA+BP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IAE5D,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAC5B,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;uEAUP;mCA/FU,wBAAwB;IADpC,IAAA,uBAAQ,EAAC,oCAAgB,CAAC;GACd,wBAAwB,CAgGpC","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\nimport { ProjectChecklist } from './project-checklist'\nimport { ProjectChecklistItemInput } from './project-checklist-type'\nimport { ProjectChecklistItem } from '../project-checklist-item/project-checklist-item'\n\n@Resolver(ProjectChecklist)\nexport class ProjectChecklistMutation {\n @Directive('@transaction')\n @Mutation(returns => ProjectChecklist, { description: '프로젝트 체크리스트 생성' })\n async createProjectChecklist(\n @Arg('projectId') projectId: string,\n @Arg('constructionTypeId') constructionTypeId: string,\n @Arg('constructionDetailTypeId') constructionDetailTypeId: string,\n @Arg('name') name: string,\n @Arg('items', type => [ProjectChecklistItemInput]) items: ProjectChecklistItemInput[],\n @Ctx() context: ResolverContext\n ): Promise<ProjectChecklist> {\n const { domain, user, tx } = context.state\n\n const checklistRepo = tx.getRepository(ProjectChecklist)\n const itemRepo = tx.getRepository(ProjectChecklistItem)\n\n const checklist = await checklistRepo.save({\n domain,\n projectId,\n constructionTypeId,\n constructionDetailTypeId,\n name,\n creator: user,\n updater: user\n })\n\n for (let i = 0; i < items.length; i++) {\n const item = items[i]\n await itemRepo.save({\n projectChecklist: checklist,\n mainType: item.mainType || null,\n name: item.name,\n inspctionCriteria: item.inspctionCriteria || null,\n sequence: i,\n creator: user,\n updater: user\n })\n }\n\n return checklist\n }\n\n @Directive('@transaction')\n @Mutation(returns => ProjectChecklist, { description: '프로젝트 체크리스트 수정' })\n async updateProjectChecklist(\n @Arg('id') id: string,\n @Arg('name') name: string,\n @Arg('items', type => [ProjectChecklistItemInput]) items: ProjectChecklistItemInput[],\n @Ctx() context: ResolverContext\n ): Promise<ProjectChecklist> {\n const { user, tx } = context.state\n\n const checklistRepo = tx.getRepository(ProjectChecklist)\n const itemRepo = tx.getRepository(ProjectChecklistItem)\n\n const checklist = await checklistRepo.findOneBy({ id })\n\n // 이름 수정\n checklist.name = name\n checklist.updater = user\n await checklistRepo.save(checklist)\n\n // 기존 아이템 삭제 후 재삽입\n await itemRepo.delete({ projectChecklist: { id } })\n\n for (let i = 0; i < items.length; i++) {\n const item = items[i]\n await itemRepo.save({\n projectChecklist: checklist,\n mainType: item.mainType || null,\n name: item.name,\n inspctionCriteria: item.inspctionCriteria || null,\n sequence: i,\n creator: user,\n updater: user\n })\n }\n\n return checklist\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: '프로젝트 체크리스트 삭제' })\n async deleteProjectChecklists(\n @Arg('ids', type => [String]) ids: string[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(ProjectChecklist).softDelete({\n domain: { id: domain.id },\n id: In(ids)\n })\n\n return true\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { ProjectChecklist } from './project-checklist';
|
|
4
|
+
import { ProjectChecklistList } from './project-checklist-type';
|
|
5
|
+
import { ProjectChecklistItem } from '../project-checklist-item/project-checklist-item';
|
|
6
|
+
export declare class ProjectChecklistQuery {
|
|
7
|
+
projectChecklists(params: ListParam): Promise<ProjectChecklistList>;
|
|
8
|
+
domain(t: ProjectChecklist): Promise<Domain>;
|
|
9
|
+
updater(t: ProjectChecklist): Promise<User>;
|
|
10
|
+
creator(t: ProjectChecklist): Promise<User>;
|
|
11
|
+
projectChecklistItems(t: ProjectChecklist): Promise<ProjectChecklistItem[]>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectChecklistQuery = 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 auth_base_1 = require("@things-factory/auth-base");
|
|
8
|
+
const project_checklist_1 = require("./project-checklist");
|
|
9
|
+
const project_checklist_type_1 = require("./project-checklist-type");
|
|
10
|
+
const project_checklist_item_1 = require("../project-checklist-item/project-checklist-item");
|
|
11
|
+
let ProjectChecklistQuery = class ProjectChecklistQuery {
|
|
12
|
+
async projectChecklists(params) {
|
|
13
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
14
|
+
params,
|
|
15
|
+
repository: await (0, shell_1.getRepository)(project_checklist_1.ProjectChecklist),
|
|
16
|
+
searchables: ['name']
|
|
17
|
+
});
|
|
18
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
19
|
+
return { items, total };
|
|
20
|
+
}
|
|
21
|
+
async domain(t) {
|
|
22
|
+
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: t.domainId });
|
|
23
|
+
}
|
|
24
|
+
async updater(t) {
|
|
25
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: t.updaterId });
|
|
26
|
+
}
|
|
27
|
+
async creator(t) {
|
|
28
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: t.creatorId });
|
|
29
|
+
}
|
|
30
|
+
async projectChecklistItems(t) {
|
|
31
|
+
return await (0, shell_1.getRepository)(project_checklist_item_1.ProjectChecklistItem).find({
|
|
32
|
+
where: { projectChecklist: { id: t.id } },
|
|
33
|
+
order: { sequence: 'ASC' }
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.ProjectChecklistQuery = ProjectChecklistQuery;
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, type_graphql_1.Query)(returns => project_checklist_type_1.ProjectChecklistList, { description: '프로젝트 체크리스트 목록' }),
|
|
40
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
41
|
+
tslib_1.__metadata("design:type", Function),
|
|
42
|
+
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam]),
|
|
43
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
44
|
+
], ProjectChecklistQuery.prototype, "projectChecklists", null);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
47
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
48
|
+
tslib_1.__metadata("design:type", Function),
|
|
49
|
+
tslib_1.__metadata("design:paramtypes", [project_checklist_1.ProjectChecklist]),
|
|
50
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
51
|
+
], ProjectChecklistQuery.prototype, "domain", null);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
54
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
55
|
+
tslib_1.__metadata("design:type", Function),
|
|
56
|
+
tslib_1.__metadata("design:paramtypes", [project_checklist_1.ProjectChecklist]),
|
|
57
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
58
|
+
], ProjectChecklistQuery.prototype, "updater", null);
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
61
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
62
|
+
tslib_1.__metadata("design:type", Function),
|
|
63
|
+
tslib_1.__metadata("design:paramtypes", [project_checklist_1.ProjectChecklist]),
|
|
64
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
65
|
+
], ProjectChecklistQuery.prototype, "creator", null);
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
(0, type_graphql_1.FieldResolver)(type => [project_checklist_item_1.ProjectChecklistItem]),
|
|
68
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
69
|
+
tslib_1.__metadata("design:type", Function),
|
|
70
|
+
tslib_1.__metadata("design:paramtypes", [project_checklist_1.ProjectChecklist]),
|
|
71
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
72
|
+
], ProjectChecklistQuery.prototype, "projectChecklistItems", null);
|
|
73
|
+
exports.ProjectChecklistQuery = ProjectChecklistQuery = tslib_1.__decorate([
|
|
74
|
+
(0, type_graphql_1.Resolver)(project_checklist_1.ProjectChecklist)
|
|
75
|
+
], ProjectChecklistQuery);
|
|
76
|
+
//# sourceMappingURL=project-checklist-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-checklist-query.js","sourceRoot":"","sources":["../../../server/service/project-checklist/project-checklist-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8E;AAC9E,iDAAuG;AACvG,yDAAgD;AAChD,2DAAsD;AACtD,qEAA+D;AAC/D,6FAAuF;AAGhF,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAE1B,AAAN,KAAK,CAAC,iBAAiB,CAAS,MAAiB;QAC/C,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,oCAAgB,CAAC;YACjD,WAAW,EAAE,CAAC,MAAM,CAAC;SACtB,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAA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EvC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAI,oCAAgB;;oDAExC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAI,oCAAgB;;oDAExC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,6CAAoB,CAAC,CAAC;IACjB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAI,oCAAgB;;kEAKtD;gCAnCU,qBAAqB;IADjC,IAAA,uBAAQ,EAAC,oCAAgB,CAAC;GACd,qBAAqB,CAoCjC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Ctx } from 'type-graphql'\nimport { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ProjectChecklist } from './project-checklist'\nimport { ProjectChecklistList } from './project-checklist-type'\nimport { ProjectChecklistItem } from '../project-checklist-item/project-checklist-item'\n\n@Resolver(ProjectChecklist)\nexport class ProjectChecklistQuery {\n @Query(returns => ProjectChecklistList, { description: '프로젝트 체크리스트 목록' })\n async projectChecklists(@Args() params: ListParam): Promise<ProjectChecklistList> {\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(ProjectChecklist),\n searchables: ['name']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() t: ProjectChecklist): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: t.domainId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() t: ProjectChecklist): Promise<User> {\n return await getRepository(User).findOneBy({ id: t.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() t: ProjectChecklist): Promise<User> {\n return await getRepository(User).findOneBy({ id: t.creatorId })\n }\n\n @FieldResolver(type => [ProjectChecklistItem])\n async projectChecklistItems(@Root() t: ProjectChecklist): Promise<ProjectChecklistItem[]> {\n return await getRepository(ProjectChecklistItem).find({\n where: { projectChecklist: { id: t.id } },\n order: { sequence: 'ASC' }\n })\n }\n}\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ProjectChecklist } from './project-checklist';
|
|
2
|
+
export declare class ProjectChecklistPatch {
|
|
3
|
+
id?: string;
|
|
4
|
+
projectId?: string;
|
|
5
|
+
constructionTypeId?: string;
|
|
6
|
+
constructionDetailTypeId?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class ProjectChecklistItemInput {
|
|
10
|
+
mainType?: string;
|
|
11
|
+
name: string;
|
|
12
|
+
inspctionCriteria?: string;
|
|
13
|
+
sequence?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class ProjectChecklistList {
|
|
16
|
+
items: ProjectChecklist[];
|
|
17
|
+
total: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectChecklistList = exports.ProjectChecklistItemInput = exports.ProjectChecklistPatch = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const project_checklist_1 = require("./project-checklist");
|
|
7
|
+
let ProjectChecklistPatch = class ProjectChecklistPatch {
|
|
8
|
+
};
|
|
9
|
+
exports.ProjectChecklistPatch = ProjectChecklistPatch;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
12
|
+
tslib_1.__metadata("design:type", String)
|
|
13
|
+
], ProjectChecklistPatch.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], ProjectChecklistPatch.prototype, "projectId", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], ProjectChecklistPatch.prototype, "constructionTypeId", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], ProjectChecklistPatch.prototype, "constructionDetailTypeId", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
28
|
+
tslib_1.__metadata("design:type", String)
|
|
29
|
+
], ProjectChecklistPatch.prototype, "name", void 0);
|
|
30
|
+
exports.ProjectChecklistPatch = ProjectChecklistPatch = tslib_1.__decorate([
|
|
31
|
+
(0, type_graphql_1.InputType)()
|
|
32
|
+
], ProjectChecklistPatch);
|
|
33
|
+
let ProjectChecklistItemInput = class ProjectChecklistItemInput {
|
|
34
|
+
};
|
|
35
|
+
exports.ProjectChecklistItemInput = ProjectChecklistItemInput;
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
38
|
+
tslib_1.__metadata("design:type", String)
|
|
39
|
+
], ProjectChecklistItemInput.prototype, "mainType", void 0);
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, type_graphql_1.Field)(),
|
|
42
|
+
tslib_1.__metadata("design:type", String)
|
|
43
|
+
], ProjectChecklistItemInput.prototype, "name", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
46
|
+
tslib_1.__metadata("design:type", String)
|
|
47
|
+
], ProjectChecklistItemInput.prototype, "inspctionCriteria", void 0);
|
|
48
|
+
tslib_1.__decorate([
|
|
49
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
50
|
+
tslib_1.__metadata("design:type", Number)
|
|
51
|
+
], ProjectChecklistItemInput.prototype, "sequence", void 0);
|
|
52
|
+
exports.ProjectChecklistItemInput = ProjectChecklistItemInput = tslib_1.__decorate([
|
|
53
|
+
(0, type_graphql_1.InputType)()
|
|
54
|
+
], ProjectChecklistItemInput);
|
|
55
|
+
let ProjectChecklistList = class ProjectChecklistList {
|
|
56
|
+
};
|
|
57
|
+
exports.ProjectChecklistList = ProjectChecklistList;
|
|
58
|
+
tslib_1.__decorate([
|
|
59
|
+
(0, type_graphql_1.Field)(type => [project_checklist_1.ProjectChecklist]),
|
|
60
|
+
tslib_1.__metadata("design:type", Array)
|
|
61
|
+
], ProjectChecklistList.prototype, "items", void 0);
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
64
|
+
tslib_1.__metadata("design:type", Number)
|
|
65
|
+
], ProjectChecklistList.prototype, "total", void 0);
|
|
66
|
+
exports.ProjectChecklistList = ProjectChecklistList = tslib_1.__decorate([
|
|
67
|
+
(0, type_graphql_1.ObjectType)()
|
|
68
|
+
], ProjectChecklistList);
|
|
69
|
+
//# sourceMappingURL=project-checklist-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-checklist-type.js","sourceRoot":"","sources":["../../../server/service/project-checklist/project-checklist-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,2DAAsD;AAG/C,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAejC,CAAA;AAfY,sDAAqB;AAEhC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACR;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACC;AAG3B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACO;AAGjC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACb;gCAdF,qBAAqB;IADjC,IAAA,wBAAS,GAAE;GACC,qBAAqB,CAejC;AAGM,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CAYrC,CAAA;AAZY,8DAAyB;AAEpC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACT;AAGjB;IADC,IAAA,oBAAK,GAAE;;uDACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACA;AAG1B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACtB;oCAXN,yBAAyB;IADrC,IAAA,wBAAS,GAAE;GACC,yBAAyB,CAYrC;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAMhC,CAAA;AANY,oDAAoB;AAE/B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,oCAAgB,CAAC,CAAC;;mDACT;AAGzB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;mDACN;+BALF,oBAAoB;IADhC,IAAA,yBAAU,GAAE;GACA,oBAAoB,CAMhC","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ProjectChecklist } from './project-checklist'\n\n@InputType()\nexport class ProjectChecklistPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n projectId?: string\n\n @Field({ nullable: true })\n constructionTypeId?: string\n\n @Field({ nullable: true })\n constructionDetailTypeId?: string\n\n @Field({ nullable: true })\n name?: string\n}\n\n@InputType()\nexport class ProjectChecklistItemInput {\n @Field({ nullable: true })\n mainType?: string\n\n @Field()\n name: string\n\n @Field({ nullable: true })\n inspctionCriteria?: string\n\n @Field(type => Int, { nullable: true })\n sequence?: number\n}\n\n@ObjectType()\nexport class ProjectChecklistList {\n @Field(type => [ProjectChecklist])\n items: ProjectChecklist[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { ProjectChecklistItem } from '../project-checklist-item/project-checklist-item';
|
|
4
|
+
export declare class ProjectChecklist {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
domain?: Domain;
|
|
7
|
+
domainId?: string;
|
|
8
|
+
projectId: string;
|
|
9
|
+
constructionTypeId: string;
|
|
10
|
+
constructionDetailTypeId: string;
|
|
11
|
+
name: string;
|
|
12
|
+
projectChecklistItems?: ProjectChecklistItem[];
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
deletedAt?: Date;
|
|
16
|
+
creator?: User;
|
|
17
|
+
creatorId?: string;
|
|
18
|
+
updater?: User;
|
|
19
|
+
updaterId?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectChecklist = 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 project_checklist_item_1 = require("../project-checklist-item/project-checklist-item");
|
|
10
|
+
let ProjectChecklist = class ProjectChecklist {
|
|
11
|
+
};
|
|
12
|
+
exports.ProjectChecklist = ProjectChecklist;
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
15
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], ProjectChecklist.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
|
+
], ProjectChecklist.prototype, "domain", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.RelationId)((t) => t.domain),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], ProjectChecklist.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
|
+
], ProjectChecklist.prototype, "projectId", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '공종 ID (construction_types FK)' }),
|
|
34
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
|
+
], ProjectChecklist.prototype, "constructionTypeId", void 0);
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '세부공종 ID (construction_detail_types FK)' }),
|
|
39
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
40
|
+
tslib_1.__metadata("design:type", String)
|
|
41
|
+
], ProjectChecklist.prototype, "constructionDetailTypeId", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '체크리스트 이름' }),
|
|
44
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
45
|
+
tslib_1.__metadata("design:type", String)
|
|
46
|
+
], ProjectChecklist.prototype, "name", void 0);
|
|
47
|
+
tslib_1.__decorate([
|
|
48
|
+
(0, type_graphql_1.Field)(() => [project_checklist_item_1.ProjectChecklistItem], { nullable: true }),
|
|
49
|
+
(0, typeorm_1.OneToMany)(() => project_checklist_item_1.ProjectChecklistItem, item => item.projectChecklist),
|
|
50
|
+
tslib_1.__metadata("design:type", Array)
|
|
51
|
+
], ProjectChecklist.prototype, "projectChecklistItems", void 0);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
54
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
|
+
tslib_1.__metadata("design:type", Date)
|
|
56
|
+
], ProjectChecklist.prototype, "createdAt", void 0);
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
59
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
60
|
+
tslib_1.__metadata("design:type", Date)
|
|
61
|
+
], ProjectChecklist.prototype, "updatedAt", void 0);
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
64
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
65
|
+
tslib_1.__metadata("design:type", Date)
|
|
66
|
+
], ProjectChecklist.prototype, "deletedAt", 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 }),
|
|
70
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
71
|
+
], ProjectChecklist.prototype, "creator", void 0);
|
|
72
|
+
tslib_1.__decorate([
|
|
73
|
+
(0, typeorm_1.RelationId)((t) => t.creator),
|
|
74
|
+
tslib_1.__metadata("design:type", String)
|
|
75
|
+
], ProjectChecklist.prototype, "creatorId", void 0);
|
|
76
|
+
tslib_1.__decorate([
|
|
77
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
78
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
79
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
80
|
+
], ProjectChecklist.prototype, "updater", void 0);
|
|
81
|
+
tslib_1.__decorate([
|
|
82
|
+
(0, typeorm_1.RelationId)((t) => t.updater),
|
|
83
|
+
tslib_1.__metadata("design:type", String)
|
|
84
|
+
], ProjectChecklist.prototype, "updaterId", void 0);
|
|
85
|
+
exports.ProjectChecklist = ProjectChecklist = tslib_1.__decorate([
|
|
86
|
+
(0, typeorm_1.Entity)({ comment: '프로젝트 체크리스트' }),
|
|
87
|
+
(0, typeorm_1.Index)('ix_project_checklist_0', (t) => [t.domain, t.projectId, t.name], { unique: true, where: '"deleted_at" IS NULL' }),
|
|
88
|
+
(0, type_graphql_1.ObjectType)()
|
|
89
|
+
], ProjectChecklist);
|
|
90
|
+
//# sourceMappingURL=project-checklist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-checklist.js","sourceRoot":"","sources":["../../../server/service/project-checklist/project-checklist.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAoD;AAEpD,iDAA8C;AAC9C,yDAAgD;AAChD,6FAAuF;AAShF,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAyD5B,CAAA;AAzDY,4CAAgB;AAGlB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;4CACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAA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ToOne,\n OneToMany,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ProjectChecklistItem } from '../project-checklist-item/project-checklist-item'\n\n@Entity({ comment: '프로젝트 체크리스트' })\n@Index(\n 'ix_project_checklist_0',\n (t: ProjectChecklist) => [t.domain, t.projectId, t.name],\n { unique: true, where: '\"deleted_at\" IS NULL' }\n)\n@ObjectType()\nexport class ProjectChecklist {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((t: ProjectChecklist) => t.domain)\n domainId?: string\n\n @Column({ nullable: false, comment: '프로젝트 ID' })\n @Field({ nullable: false })\n projectId: string\n\n @Column({ nullable: false, comment: '공종 ID (construction_types FK)' })\n @Field({ nullable: false })\n constructionTypeId: string\n\n @Column({ nullable: false, comment: '세부공종 ID (construction_detail_types FK)' })\n @Field({ nullable: false })\n constructionDetailTypeId: string\n\n @Column({ nullable: false, comment: '체크리스트 이름' })\n @Field({ nullable: false })\n name: string\n\n @Field(() => [ProjectChecklistItem], { nullable: true })\n @OneToMany(() => ProjectChecklistItem, item => item.projectChecklist)\n projectChecklistItems?: ProjectChecklistItem[]\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((t: ProjectChecklist) => t.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((t: ProjectChecklist) => t.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ProjectChecklistItem } from './project-checklist-item';
|
|
2
|
+
import { ProjectChecklistItemMutation } from './project-checklist-item-mutation';
|
|
3
|
+
export declare const entities: (typeof ProjectChecklistItem)[];
|
|
4
|
+
export declare const resolvers: (typeof ProjectChecklistItemMutation)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const project_checklist_item_1 = require("./project-checklist-item");
|
|
5
|
+
const project_checklist_item_query_1 = require("./project-checklist-item-query");
|
|
6
|
+
const project_checklist_item_mutation_1 = require("./project-checklist-item-mutation");
|
|
7
|
+
exports.entities = [project_checklist_item_1.ProjectChecklistItem];
|
|
8
|
+
exports.resolvers = [project_checklist_item_query_1.ProjectChecklistItemQuery, project_checklist_item_mutation_1.ProjectChecklistItemMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/project-checklist-item/index.ts"],"names":[],"mappings":";;;AAAA,qEAA+D;AAC/D,iFAA0E;AAC1E,uFAAgF;AAEnE,QAAA,QAAQ,GAAG,CAAC,6CAAoB,CAAC,CAAA;AACjC,QAAA,SAAS,GAAG,CAAC,wDAAyB,EAAE,8DAA4B,CAAC,CAAA","sourcesContent":["import { ProjectChecklistItem } from './project-checklist-item'\nimport { ProjectChecklistItemQuery } from './project-checklist-item-query'\nimport { ProjectChecklistItemMutation } from './project-checklist-item-mutation'\n\nexport const entities = [ProjectChecklistItem]\nexport const resolvers = [ProjectChecklistItemQuery, ProjectChecklistItemMutation]\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectChecklistItemMutation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const project_checklist_item_1 = require("./project-checklist-item");
|
|
7
|
+
let ProjectChecklistItemMutation = class ProjectChecklistItemMutation {
|
|
8
|
+
};
|
|
9
|
+
exports.ProjectChecklistItemMutation = ProjectChecklistItemMutation;
|
|
10
|
+
exports.ProjectChecklistItemMutation = ProjectChecklistItemMutation = tslib_1.__decorate([
|
|
11
|
+
(0, type_graphql_1.Resolver)(project_checklist_item_1.ProjectChecklistItem)
|
|
12
|
+
], ProjectChecklistItemMutation);
|
|
13
|
+
//# sourceMappingURL=project-checklist-item-mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-checklist-item-mutation.js","sourceRoot":"","sources":["../../../server/service/project-checklist-item/project-checklist-item-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAuC;AACvC,qEAA+D;AAGxD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CAAG,CAAA;AAA/B,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,uBAAQ,EAAC,6CAAoB,CAAC;GAClB,4BAA4B,CAAG","sourcesContent":["import { Resolver } from 'type-graphql'\nimport { ProjectChecklistItem } from './project-checklist-item'\n\n@Resolver(ProjectChecklistItem)\nexport class ProjectChecklistItemMutation {}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ListParam } from '@things-factory/shell';
|
|
2
|
+
import { ProjectChecklistItemList } from './project-checklist-item-type';
|
|
3
|
+
export declare class ProjectChecklistItemQuery {
|
|
4
|
+
projectChecklistItems(params: ListParam, context: ResolverContext): Promise<ProjectChecklistItemList>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectChecklistItemQuery = 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 project_checklist_item_1 = require("./project-checklist-item");
|
|
8
|
+
const project_checklist_item_type_1 = require("./project-checklist-item-type");
|
|
9
|
+
let ProjectChecklistItemQuery = class ProjectChecklistItemQuery {
|
|
10
|
+
async projectChecklistItems(params, context) {
|
|
11
|
+
const { domain } = context.state;
|
|
12
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
13
|
+
domain,
|
|
14
|
+
params,
|
|
15
|
+
repository: await (0, shell_1.getRepository)(project_checklist_item_1.ProjectChecklistItem),
|
|
16
|
+
searchables: ['name']
|
|
17
|
+
});
|
|
18
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
19
|
+
return { items, total };
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ProjectChecklistItemQuery = ProjectChecklistItemQuery;
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, type_graphql_1.Query)(returns => project_checklist_item_type_1.ProjectChecklistItemList, { description: '프로젝트 체크리스트 아이템 목록' }),
|
|
25
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
26
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
27
|
+
tslib_1.__metadata("design:type", Function),
|
|
28
|
+
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
29
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
30
|
+
], ProjectChecklistItemQuery.prototype, "projectChecklistItems", null);
|
|
31
|
+
exports.ProjectChecklistItemQuery = ProjectChecklistItemQuery = tslib_1.__decorate([
|
|
32
|
+
(0, type_graphql_1.Resolver)(project_checklist_item_1.ProjectChecklistItem)
|
|
33
|
+
], ProjectChecklistItemQuery);
|
|
34
|
+
//# sourceMappingURL=project-checklist-item-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-checklist-item-query.js","sourceRoot":"","sources":["../../../server/service/project-checklist-item/project-checklist-item-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAyD;AACzD,iDAA+F;AAC/F,qEAA+D;AAC/D,+EAAwE;AAGjE,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAE9B,AAAN,KAAK,CAAC,qBAAqB,CACjB,MAAiB,EAClB,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,6CAAoB,CAAC;YACrD,WAAW,EAAE,CAAC,MAAM,CAAC;SACtB,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;CACF,CAAA;AAnBY,8DAAyB;AAE9B;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,sDAAwB,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IAE9E,mBAAA,IAAA,mBAAI,GAAE,CAAA;IACN,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CADU,iBAAS;;sEAe1B;oCAlBU,yBAAyB;IADrC,IAAA,uBAAQ,EAAC,6CAAoB,CAAC;GAClB,yBAAyB,CAmBrC","sourcesContent":["import { Resolver, Query, Args, Ctx } from 'type-graphql'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { ProjectChecklistItem } from './project-checklist-item'\nimport { ProjectChecklistItemList } from './project-checklist-item-type'\n\n@Resolver(ProjectChecklistItem)\nexport class ProjectChecklistItemQuery {\n @Query(returns => ProjectChecklistItemList, { description: '프로젝트 체크리스트 아이템 목록' })\n async projectChecklistItems(\n @Args() params: ListParam,\n @Ctx() context: ResolverContext\n ): Promise<ProjectChecklistItemList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: await getRepository(ProjectChecklistItem),\n searchables: ['name']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectChecklistItemList = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const project_checklist_item_1 = require("./project-checklist-item");
|
|
7
|
+
let ProjectChecklistItemList = class ProjectChecklistItemList {
|
|
8
|
+
};
|
|
9
|
+
exports.ProjectChecklistItemList = ProjectChecklistItemList;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, type_graphql_1.Field)(type => [project_checklist_item_1.ProjectChecklistItem]),
|
|
12
|
+
tslib_1.__metadata("design:type", Array)
|
|
13
|
+
], ProjectChecklistItemList.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
|
+
], ProjectChecklistItemList.prototype, "total", void 0);
|
|
18
|
+
exports.ProjectChecklistItemList = ProjectChecklistItemList = tslib_1.__decorate([
|
|
19
|
+
(0, type_graphql_1.ObjectType)()
|
|
20
|
+
], ProjectChecklistItemList);
|
|
21
|
+
//# sourceMappingURL=project-checklist-item-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-checklist-item-type.js","sourceRoot":"","sources":["../../../server/service/project-checklist-item/project-checklist-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAqD;AACrD,qEAA+D;AAGxD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAMpC,CAAA;AANY,4DAAwB;AAEnC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,6CAAoB,CAAC,CAAC;;uDACT;AAG7B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;uDACN;mCALF,wBAAwB;IADpC,IAAA,yBAAU,GAAE;GACA,wBAAwB,CAMpC","sourcesContent":["import { ObjectType, Field, Int } from 'type-graphql'\nimport { ProjectChecklistItem } from './project-checklist-item'\n\n@ObjectType()\nexport class ProjectChecklistItemList {\n @Field(type => [ProjectChecklistItem])\n items: ProjectChecklistItem[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { User } from '@things-factory/auth-base';
|
|
2
|
+
import { ProjectChecklist } from '../project-checklist/project-checklist';
|
|
3
|
+
export declare class ProjectChecklistItem {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
mainType?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
inspctionCriteria?: string;
|
|
8
|
+
sequence?: number;
|
|
9
|
+
projectChecklist?: ProjectChecklist;
|
|
10
|
+
projectChecklistId?: string;
|
|
11
|
+
createdAt?: Date;
|
|
12
|
+
updatedAt?: Date;
|
|
13
|
+
creator?: User;
|
|
14
|
+
creatorId?: string;
|
|
15
|
+
updater?: User;
|
|
16
|
+
updaterId?: string;
|
|
17
|
+
}
|