@dssp/supervision 1.0.0-alpha.0 → 1.0.0-alpha.100
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 +102 -0
- package/dist-client/graphql/building-inspection.js.map +1 -0
- package/dist-client/pages/action-plan/action-plan-importer.js.map +1 -1
- 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 +71 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +1407 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement_old_ai.d.ts +59 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement_old_ai.js +868 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement_old_ai.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +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 +148 -73
- 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 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +94 -25
- 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 +28 -4
- package/dist-client/pages/building-inspection/building-inspection-list.js +377 -35
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-management.d.ts +82 -0
- package/dist-client/pages/building-inspection/building-inspection-management.js +1527 -0
- package/dist-client/pages/building-inspection/building-inspection-management.js.map +1 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +46 -14
- 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 +546 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-list-panel.js.map +1 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-popup.d.ts +42 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js +738 -0
- package/dist-client/pages/building-inspection/component/field-document/field-document-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js +348 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +25 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +491 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +31 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +485 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +416 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +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 +27 -13
- 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 +4 -0
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +844 -0
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +60 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +1135 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +2 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +740 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +19 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +205 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +1 -0
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +304 -0
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +15 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +430 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.d.ts +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 +8 -0
- package/dist-client/pages/checklist/checklist-view.js +557 -191
- 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/kcs-criteria-popup.d.ts +16 -0
- package/dist-client/pages/checklist/kcs-criteria-popup.js +179 -0
- package/dist-client/pages/checklist/kcs-criteria-popup.js.map +1 -0
- package/dist-client/pages/checklist-database/checklist-database.d.ts +35 -0
- package/dist-client/pages/checklist-database/checklist-database.js +540 -0
- package/dist-client/pages/checklist-database/checklist-database.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js +44 -3
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js +4 -3
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-type-management.d.ts +2 -2
- package/dist-client/pages/checklist-template/checklist-type-management.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 +223 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js.map +1 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.d.ts +55 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js +404 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +1 -0
- package/dist-client/pages/issue/issue-importer.js.map +1 -1
- 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 +62 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js +1145 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js.map +1 -0
- package/dist-client/pages/project-report/project-report-importer.js.map +1 -1
- 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-importer.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 +21 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/stt/speech-to-text.d.ts +41 -0
- package/dist-client/stt/speech-to-text.js +331 -0
- package/dist-client/stt/speech-to-text.js.map +1 -0
- package/dist-client/stt/stt-utils.d.ts +28 -0
- package/dist-client/stt/stt-utils.js +146 -0
- package/dist-client/stt/stt-utils.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/middlewares/index.js +1 -2
- package/dist-server/middlewares/index.js.map +1 -1
- package/dist-server/service/action-plan/action-plan-mutation.js +7 -8
- 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 +7 -13
- package/dist-server/service/action-plan/action-plan-query.js.map +1 -1
- package/dist-server/service/action-plan/action-plan-type.js +6 -6
- package/dist-server/service/action-plan/action-plan-type.js.map +1 -1
- package/dist-server/service/action-plan/action-plan.js +3 -3
- package/dist-server/service/action-plan/action-plan.js.map +1 -1
- package/dist-server/service/action-plan/index.d.ts +0 -1
- package/dist-server/service/action-plan/index.js +1 -2
- package/dist-server/service/action-plan/index.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +3 -3
- package/dist-server/service/building-inspection/building-inspection-mutation.js +185 -40
- 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 -6
- package/dist-server/service/building-inspection/building-inspection-query.js +199 -54
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +38 -10
- package/dist-server/service/building-inspection/building-inspection-type.js +142 -29
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +14 -0
- package/dist-server/service/building-inspection/building-inspection.js +78 -7
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/building-inspection/index.d.ts +4 -7
- package/dist-server/service/building-inspection/index.js +11 -6
- 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 → building-inspection-history}/event-subscriber.d.ts +1 -1
- package/dist-server/service/{building-inspection → building-inspection-history}/event-subscriber.js +3 -3
- 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 +3 -69
- 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 +85 -2
- 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 +3 -51
- package/dist-server/service/checklist/checklist-type.js.map +1 -1
- package/dist-server/service/checklist/checklist.d.ts +38 -3
- package/dist-server/service/checklist/checklist.js +133 -17
- package/dist-server/service/checklist/checklist.js.map +1 -1
- package/dist-server/service/checklist/event-subscriber.d.ts +2 -2
- package/dist-server/service/checklist/event-subscriber.js +4 -4
- package/dist-server/service/checklist/event-subscriber.js.map +1 -1
- package/dist-server/service/checklist/index.d.ts +1 -4
- package/dist-server/service/checklist/index.js +2 -5
- 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-history/checklist-history.d.ts +50 -0
- package/dist-server/service/checklist-history/checklist-history.js +239 -0
- package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
- package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-history/index.d.ts +6 -0
- package/dist-server/service/checklist-history/index.js +10 -0
- package/dist-server/service/checklist-history/index.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-mutation.d.ts +2 -0
- package/dist-server/service/checklist-item/checklist-item-mutation.js +23 -2
- package/dist-server/service/checklist-item/checklist-item-mutation.js.map +1 -1
- package/dist-server/service/checklist-item/checklist-item-query.d.ts +1 -1
- package/dist-server/service/checklist-item/checklist-item-query.js +7 -5
- package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
- package/dist-server/service/checklist-item/checklist-item-type.d.ts +5 -1
- package/dist-server/service/checklist-item/checklist-item-type.js +17 -3
- package/dist-server/service/checklist-item/checklist-item-type.js.map +1 -1
- package/dist-server/service/checklist-item/checklist-item.d.ts +2 -0
- package/dist-server/service/checklist-item/checklist-item.js +14 -4
- package/dist-server/service/checklist-item/checklist-item.js.map +1 -1
- package/dist-server/service/checklist-item/index.d.ts +2 -2
- 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-history.js +2 -2
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.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 +35 -8
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +2 -2
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +6 -6
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js +2 -2
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +1 -1
- package/dist-server/service/checklist-item-comment/index.d.ts +0 -2
- package/dist-server/service/checklist-item-comment/index.js +1 -3
- package/dist-server/service/checklist-item-comment/index.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 +27 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js +133 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
- package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-item-history/index.d.ts +6 -0
- package/dist-server/service/checklist-item-history/index.js +10 -0
- package/dist-server/service/checklist-item-history/index.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template-mutation.js +2 -2
- package/dist-server/service/checklist-template/checklist-template-mutation.js.map +1 -1
- package/dist-server/service/checklist-template/checklist-template-query.d.ts +1 -1
- package/dist-server/service/checklist-template/checklist-template-query.js +4 -7
- package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -1
- package/dist-server/service/checklist-template/checklist-template-type.js +4 -4
- package/dist-server/service/checklist-template/checklist-template-type.js.map +1 -1
- package/dist-server/service/checklist-template/checklist-template.js +2 -2
- package/dist-server/service/checklist-template/checklist-template.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +15 -3
- 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-query.js +2 -2
- package/dist-server/service/checklist-template-item/checklist-template-item-query.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 +13 -4
- 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 +26 -8
- 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-mutation.js +2 -2
- package/dist-server/service/checklist-type/checklist-type-mutation.js.map +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.d.ts +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.js +4 -7
- package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
- package/dist-server/service/checklist-type/checklist-type-type.js +4 -4
- package/dist-server/service/checklist-type/checklist-type-type.js.map +1 -1
- package/dist-server/service/checklist-type/checklist-type.js +3 -3
- package/dist-server/service/checklist-type/checklist-type.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 +56 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.d.ts +9 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js +53 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.d.ts +17 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js +67 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.d.ts +24 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js +113 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/index.d.ts +5 -0
- package/dist-server/service/construction-checklist-template-item/index.js +9 -0
- package/dist-server/service/construction-checklist-template-item/index.js.map +1 -0
- package/dist-server/service/field-document/field-document-auto-file.d.ts +21 -0
- package/dist-server/service/field-document/field-document-auto-file.js +47 -0
- package/dist-server/service/field-document/field-document-auto-file.js.map +1 -0
- package/dist-server/service/field-document/field-document-mutation.d.ts +9 -0
- package/dist-server/service/field-document/field-document-mutation.js +139 -0
- package/dist-server/service/field-document/field-document-mutation.js.map +1 -0
- package/dist-server/service/field-document/field-document-query.d.ts +14 -0
- package/dist-server/service/field-document/field-document-query.js +120 -0
- package/dist-server/service/field-document/field-document-query.js.map +1 -0
- package/dist-server/service/field-document/field-document-summary-service.d.ts +10 -0
- package/dist-server/service/field-document/field-document-summary-service.js +79 -0
- package/dist-server/service/field-document/field-document-summary-service.js.map +1 -0
- package/dist-server/service/field-document/field-document-type.d.ts +24 -0
- package/dist-server/service/field-document/field-document-type.js +88 -0
- package/dist-server/service/field-document/field-document-type.js.map +1 -0
- package/dist-server/service/field-document/field-document.d.ts +29 -0
- package/dist-server/service/field-document/field-document.js +127 -0
- package/dist-server/service/field-document/field-document.js.map +1 -0
- package/dist-server/service/field-document/index.d.ts +5 -0
- package/dist-server/service/field-document/index.js +9 -0
- package/dist-server/service/field-document/index.js.map +1 -0
- package/dist-server/service/index.d.ts +10 -3
- package/dist-server/service/index.js +42 -13
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/issue/index.d.ts +0 -1
- package/dist-server/service/issue/index.js +1 -2
- package/dist-server/service/issue/index.js.map +1 -1
- package/dist-server/service/issue/issue-mutation.js +7 -8
- 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 +7 -13
- package/dist-server/service/issue/issue-query.js.map +1 -1
- package/dist-server/service/issue/issue-type.js +6 -6
- package/dist-server/service/issue/issue-type.js.map +1 -1
- package/dist-server/service/issue/issue.js +3 -3
- package/dist-server/service/issue/issue.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 +118 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-query.d.ts +12 -0
- package/dist-server/service/project-checklist/project-checklist-query.js +76 -0
- package/dist-server/service/project-checklist/project-checklist-query.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-type.d.ts +18 -0
- package/dist-server/service/project-checklist/project-checklist-type.js +69 -0
- package/dist-server/service/project-checklist/project-checklist-type.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist.d.ts +20 -0
- package/dist-server/service/project-checklist/project-checklist.js +90 -0
- package/dist-server/service/project-checklist/project-checklist.js.map +1 -0
- package/dist-server/service/project-checklist/spec-matching-service.d.ts +17 -0
- package/dist-server/service/project-checklist/spec-matching-service.js +140 -0
- package/dist-server/service/project-checklist/spec-matching-service.js.map +1 -0
- package/dist-server/service/project-checklist-item/index.d.ts +4 -0
- package/dist-server/service/project-checklist-item/index.js +9 -0
- package/dist-server/service/project-checklist-item/index.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.d.ts +2 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js +13 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.d.ts +5 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.js +34 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.d.ts +5 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.js +21 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.d.ts +19 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.js +92 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.js.map +1 -0
- package/dist-server/service/project-report/index.d.ts +0 -1
- package/dist-server/service/project-report/index.js +1 -2
- package/dist-server/service/project-report/index.js.map +1 -1
- package/dist-server/service/project-report/project-report-mutation.js +7 -8
- 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 +7 -13
- package/dist-server/service/project-report/project-report-query.js.map +1 -1
- package/dist-server/service/project-report/project-report-type.js +6 -6
- package/dist-server/service/project-report/project-report-type.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 +3 -9
- package/dist-server/service/project-report/project-report.js.map +1 -1
- package/dist-server/service/supervisor/index.d.ts +0 -1
- package/dist-server/service/supervisor/index.js +1 -2
- package/dist-server/service/supervisor/index.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-mutation.js +7 -8
- 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 +7 -13
- package/dist-server/service/supervisor/supervisor-query.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-type.js +6 -6
- package/dist-server/service/supervisor/supervisor-type.js.map +1 -1
- package/dist-server/service/supervisor/supervisor.js +3 -3
- package/dist-server/service/supervisor/supervisor.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -13
- package/things-factory.config.js +11 -1
- package/client/bootstrap.ts +0 -1
- package/client/index.ts +0 -0
- package/client/pages/action-plan/action-plan-importer.ts +0 -94
- package/client/pages/action-plan/action-plan-list-page.ts +0 -340
- package/client/pages/building-inspection/building-inspection-detail-camera.ts +0 -277
- package/client/pages/building-inspection/building-inspection-detail-checklist.ts +0 -258
- package/client/pages/building-inspection/building-inspection-detail-drawing.ts +0 -288
- package/client/pages/building-inspection/building-inspection-list.ts +0 -565
- package/client/pages/building-inspection/component/building-inspection-detail-header.ts +0 -123
- package/client/pages/building-inspection/component/inspection-event-provider.ts +0 -81
- package/client/pages/building-inspection/inspection-create-popup.ts +0 -785
- package/client/pages/checklist/attachment-list-popup.ts +0 -301
- package/client/pages/checklist/checklist-view.ts +0 -581
- package/client/pages/checklist/comment-list-popup.ts +0 -328
- package/client/pages/checklist/file-preview-popup.ts +0 -70
- package/client/pages/checklist-template/checklist-template-item.ts +0 -240
- package/client/pages/checklist-template/checklist-template-list.ts +0 -368
- package/client/pages/checklist-template/checklist-type-management.ts +0 -262
- package/client/pages/issue/issue-importer.ts +0 -94
- package/client/pages/issue/issue-list-page.ts +0 -340
- package/client/pages/project-report/project-report-importer.ts +0 -94
- package/client/pages/project-report/project-report-list-page.ts +0 -340
- package/client/pages/supervisor/supervisor-importer.ts +0 -94
- package/client/pages/supervisor/supervisor-list-page.ts +0 -340
- package/client/route.ts +0 -27
- package/client/tsconfig.json +0 -11
- 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/building-inspection/event-subscriber.js.map +0 -1
- package/dist-server/service/checklist/checklist-history.d.ts +0 -24
- package/dist-server/service/checklist/checklist-history.js +0 -120
- package/dist-server/service/checklist/checklist-history.js.map +0 -1
- package/dist-server/service/checklist-item-comment/event-subscriber.d.ts +0 -7
- package/dist-server/service/checklist-item-comment/event-subscriber.js +0 -21
- package/dist-server/service/checklist-item-comment/event-subscriber.js.map +0 -1
- package/server/controllers/index.ts +0 -0
- package/server/index.ts +0 -4
- package/server/middlewares/index.ts +0 -3
- package/server/migrations/index.ts +0 -9
- package/server/routes.ts +0 -28
- package/server/service/action-plan/action-plan-mutation.ts +0 -198
- package/server/service/action-plan/action-plan-query.ts +0 -62
- package/server/service/action-plan/action-plan-type.ts +0 -61
- package/server/service/action-plan/action-plan.ts +0 -103
- package/server/service/action-plan/index.ts +0 -7
- package/server/service/building-inspection/building-inspection-history.ts +0 -72
- package/server/service/building-inspection/building-inspection-mutation.ts +0 -276
- package/server/service/building-inspection/building-inspection-query.ts +0 -242
- package/server/service/building-inspection/building-inspection-type.ts +0 -145
- package/server/service/building-inspection/building-inspection.ts +0 -108
- package/server/service/building-inspection/event-subscriber.ts +0 -20
- package/server/service/building-inspection/index.ts +0 -11
- package/server/service/checklist/checklist-history.ts +0 -96
- package/server/service/checklist/checklist-mutation.ts +0 -103
- package/server/service/checklist/checklist-query.ts +0 -58
- package/server/service/checklist/checklist-type.ts +0 -49
- package/server/service/checklist/checklist.ts +0 -127
- package/server/service/checklist/event-subscriber.ts +0 -17
- package/server/service/checklist/index.ts +0 -9
- package/server/service/checklist-item/checklist-item-mutation.ts +0 -5
- package/server/service/checklist-item/checklist-item-query.ts +0 -84
- package/server/service/checklist-item/checklist-item-type.ts +0 -12
- package/server/service/checklist-item/checklist-item.ts +0 -103
- package/server/service/checklist-item/index.ts +0 -7
- package/server/service/checklist-item-comment/checklist-item-comment-history.ts +0 -69
- package/server/service/checklist-item-comment/checklist-item-comment-mutation.ts +0 -80
- package/server/service/checklist-item-comment/checklist-item-comment-query.ts +0 -36
- package/server/service/checklist-item-comment/checklist-item-comment-type.ts +0 -32
- package/server/service/checklist-item-comment/checklist-item-comment.ts +0 -56
- package/server/service/checklist-item-comment/event-subscriber.ts +0 -17
- package/server/service/checklist-item-comment/index.ts +0 -9
- package/server/service/checklist-template/checklist-template-mutation.ts +0 -66
- package/server/service/checklist-template/checklist-template-query.ts +0 -39
- package/server/service/checklist-template/checklist-template-type.ts +0 -23
- package/server/service/checklist-template/checklist-template.ts +0 -71
- package/server/service/checklist-template/index.ts +0 -6
- package/server/service/checklist-template-item/checklist-template-item-mutation.ts +0 -64
- package/server/service/checklist-template-item/checklist-template-item-query.ts +0 -44
- package/server/service/checklist-template-item/checklist-template-item-type.ts +0 -39
- package/server/service/checklist-template-item/checklist-template-item.ts +0 -68
- package/server/service/checklist-template-item/index.ts +0 -6
- package/server/service/checklist-type/checklist-type-mutation.ts +0 -66
- package/server/service/checklist-type/checklist-type-query.ts +0 -39
- package/server/service/checklist-type/checklist-type-type.ts +0 -26
- package/server/service/checklist-type/checklist-type.ts +0 -64
- package/server/service/checklist-type/index.ts +0 -6
- package/server/service/index.ts +0 -88
- package/server/service/issue/index.ts +0 -7
- package/server/service/issue/issue-mutation.ts +0 -198
- package/server/service/issue/issue-query.ts +0 -62
- package/server/service/issue/issue-type.ts +0 -61
- package/server/service/issue/issue.ts +0 -100
- package/server/service/project-report/index.ts +0 -7
- package/server/service/project-report/project-report-mutation.ts +0 -198
- package/server/service/project-report/project-report-query.ts +0 -62
- package/server/service/project-report/project-report-type.ts +0 -61
- package/server/service/project-report/project-report.ts +0 -113
- package/server/service/supervisor/index.ts +0 -7
- package/server/service/supervisor/supervisor-mutation.ts +0 -198
- package/server/service/supervisor/supervisor-query.ts +0 -62
- package/server/service/supervisor/supervisor-type.ts +0 -61
- package/server/service/supervisor/supervisor.ts +0 -108
- package/server/tsconfig.json +0 -10
package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplateQuery = 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 construction_checklist_template_1 = require("./construction-checklist-template");
|
|
9
|
+
const construction_checklist_template_type_1 = require("./construction-checklist-template-type");
|
|
10
|
+
let ConstructionChecklistTemplateQuery = class ConstructionChecklistTemplateQuery {
|
|
11
|
+
async constructionChecklistTemplates(params) {
|
|
12
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
13
|
+
params,
|
|
14
|
+
repository: await (0, shell_1.getRepository)(construction_checklist_template_1.ConstructionChecklistTemplate),
|
|
15
|
+
searchables: []
|
|
16
|
+
});
|
|
17
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
18
|
+
return { items, total };
|
|
19
|
+
}
|
|
20
|
+
async domain(t) {
|
|
21
|
+
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: t.domainId });
|
|
22
|
+
}
|
|
23
|
+
async updater(t) {
|
|
24
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: t.updaterId });
|
|
25
|
+
}
|
|
26
|
+
async creator(t) {
|
|
27
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: t.creatorId });
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.ConstructionChecklistTemplateQuery = ConstructionChecklistTemplateQuery;
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, type_graphql_1.Query)(returns => construction_checklist_template_type_1.ConstructionChecklistTemplateList, { description: '공종 기반 체크리스트 템플릿 목록' }),
|
|
33
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
34
|
+
tslib_1.__metadata("design:type", Function),
|
|
35
|
+
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam]),
|
|
36
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
37
|
+
], ConstructionChecklistTemplateQuery.prototype, "constructionChecklistTemplates", null);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
40
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
41
|
+
tslib_1.__metadata("design:type", Function),
|
|
42
|
+
tslib_1.__metadata("design:paramtypes", [construction_checklist_template_1.ConstructionChecklistTemplate]),
|
|
43
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
44
|
+
], ConstructionChecklistTemplateQuery.prototype, "domain", null);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
47
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
48
|
+
tslib_1.__metadata("design:type", Function),
|
|
49
|
+
tslib_1.__metadata("design:paramtypes", [construction_checklist_template_1.ConstructionChecklistTemplate]),
|
|
50
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
51
|
+
], ConstructionChecklistTemplateQuery.prototype, "updater", 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", [construction_checklist_template_1.ConstructionChecklistTemplate]),
|
|
57
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
58
|
+
], ConstructionChecklistTemplateQuery.prototype, "creator", null);
|
|
59
|
+
exports.ConstructionChecklistTemplateQuery = ConstructionChecklistTemplateQuery = tslib_1.__decorate([
|
|
60
|
+
(0, type_graphql_1.Resolver)(construction_checklist_template_1.ConstructionChecklistTemplate)
|
|
61
|
+
], ConstructionChecklistTemplateQuery);
|
|
62
|
+
//# sourceMappingURL=construction-checklist-template-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template-query.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template/construction-checklist-template-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8E;AAC9E,iDAAuG;AACvG,yDAAgD;AAChD,uFAAiF;AACjF,iGAA0F;AAGnF,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;IAEvC,AAAN,KAAK,CAAC,8BAA8B,CAAS,MAAiB;QAC5D,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,+DAA6B,CAAC;YAC9D,WAAW,EAAE,EAAE;SAChB,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CAAS,CAAgC;QACnD,OAAO,MAAM,IAAA,qBAAa,EAAC,cAAM,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;IAClE,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,CAAgC;QACpD,OAAO,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,CAAA;IACjE,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,CAAgC;QACpD,OAAO,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,CAAA;IACjE,CAAC;CACF,CAAA;AA5BY,gFAAkC;AAEvC;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,wEAAiC,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IACrD,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAS,iBAAS;;wFAU7D;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAI,+DAA6B;;gEAEpD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAI,+DAA6B;;iEAErD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAI,+DAA6B;;iEAErD;6CA3BU,kCAAkC;IAD9C,IAAA,uBAAQ,EAAC,+DAA6B,CAAC;GAC3B,kCAAkC,CA4B9C","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 { ConstructionChecklistTemplate } from './construction-checklist-template'\nimport { ConstructionChecklistTemplateList } from './construction-checklist-template-type'\n\n@Resolver(ConstructionChecklistTemplate)\nexport class ConstructionChecklistTemplateQuery {\n @Query(returns => ConstructionChecklistTemplateList, { description: '공종 기반 체크리스트 템플릿 목록' })\n async constructionChecklistTemplates(@Args() params: ListParam): Promise<ConstructionChecklistTemplateList> {\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(ConstructionChecklistTemplate),\n searchables: []\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: ConstructionChecklistTemplate): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: t.domainId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() t: ConstructionChecklistTemplate): Promise<User> {\n return await getRepository(User).findOneBy({ id: t.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() t: ConstructionChecklistTemplate): Promise<User> {\n return await getRepository(User).findOneBy({ id: t.creatorId })\n }\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ConstructionChecklistTemplate } from './construction-checklist-template';
|
|
2
|
+
export declare class ConstructionChecklistTemplatePatch {
|
|
3
|
+
id?: string;
|
|
4
|
+
constructionTypeId?: string;
|
|
5
|
+
constructionDetailTypeId?: string;
|
|
6
|
+
cuFlag?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class ConstructionChecklistTemplateList {
|
|
9
|
+
items: ConstructionChecklistTemplate[];
|
|
10
|
+
total: number;
|
|
11
|
+
}
|
package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplateList = exports.ConstructionChecklistTemplatePatch = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const construction_checklist_template_1 = require("./construction-checklist-template");
|
|
7
|
+
let ConstructionChecklistTemplatePatch = class ConstructionChecklistTemplatePatch {
|
|
8
|
+
};
|
|
9
|
+
exports.ConstructionChecklistTemplatePatch = ConstructionChecklistTemplatePatch;
|
|
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
|
+
], ConstructionChecklistTemplatePatch.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], ConstructionChecklistTemplatePatch.prototype, "constructionTypeId", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], ConstructionChecklistTemplatePatch.prototype, "constructionDetailTypeId", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], ConstructionChecklistTemplatePatch.prototype, "cuFlag", void 0);
|
|
26
|
+
exports.ConstructionChecklistTemplatePatch = ConstructionChecklistTemplatePatch = tslib_1.__decorate([
|
|
27
|
+
(0, type_graphql_1.InputType)()
|
|
28
|
+
], ConstructionChecklistTemplatePatch);
|
|
29
|
+
let ConstructionChecklistTemplateList = class ConstructionChecklistTemplateList {
|
|
30
|
+
};
|
|
31
|
+
exports.ConstructionChecklistTemplateList = ConstructionChecklistTemplateList;
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, type_graphql_1.Field)(type => [construction_checklist_template_1.ConstructionChecklistTemplate]),
|
|
34
|
+
tslib_1.__metadata("design:type", Array)
|
|
35
|
+
], ConstructionChecklistTemplateList.prototype, "items", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
38
|
+
tslib_1.__metadata("design:type", Number)
|
|
39
|
+
], ConstructionChecklistTemplateList.prototype, "total", void 0);
|
|
40
|
+
exports.ConstructionChecklistTemplateList = ConstructionChecklistTemplateList = tslib_1.__decorate([
|
|
41
|
+
(0, type_graphql_1.ObjectType)()
|
|
42
|
+
], ConstructionChecklistTemplateList);
|
|
43
|
+
//# sourceMappingURL=construction-checklist-template-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template-type.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template/construction-checklist-template-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,uFAAiF;AAG1E,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;CAY9C,CAAA;AAZY,gFAAkC;AAE7C;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8EACC;AAG3B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oFACO;AAGjC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACX;6CAXJ,kCAAkC;IAD9C,IAAA,wBAAS,GAAE;GACC,kCAAkC,CAY9C;AAGM,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;CAM7C,CAAA;AANY,8EAAiC;AAE5C;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,+DAA6B,CAAC,CAAC;;gEACT;AAGtC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;gEACN;4CALF,iCAAiC;IAD7C,IAAA,yBAAU,GAAE;GACA,iCAAiC,CAM7C","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ConstructionChecklistTemplate } from './construction-checklist-template'\n\n@InputType()\nexport class ConstructionChecklistTemplatePatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n constructionTypeId?: string\n\n @Field({ nullable: true })\n constructionDetailTypeId?: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class ConstructionChecklistTemplateList {\n @Field(type => [ConstructionChecklistTemplate])\n items: ConstructionChecklistTemplate[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { ConstructionChecklistTemplateItem } from '../construction-checklist-template-item/construction-checklist-template-item';
|
|
4
|
+
export declare class ConstructionChecklistTemplate {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
domain?: Domain;
|
|
7
|
+
domainId?: string;
|
|
8
|
+
constructionTypeId: string;
|
|
9
|
+
constructionDetailTypeId: string;
|
|
10
|
+
constructionChecklistTemplateItems?: ConstructionChecklistTemplateItem[];
|
|
11
|
+
createdAt?: Date;
|
|
12
|
+
updatedAt?: Date;
|
|
13
|
+
deletedAt?: Date;
|
|
14
|
+
creator?: User;
|
|
15
|
+
creatorId?: string;
|
|
16
|
+
updater?: User;
|
|
17
|
+
updaterId?: string;
|
|
18
|
+
}
|
package/dist-server/service/construction-checklist-template/construction-checklist-template.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplate = 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 construction_checklist_template_item_1 = require("../construction-checklist-template-item/construction-checklist-template-item");
|
|
10
|
+
let ConstructionChecklistTemplate = class ConstructionChecklistTemplate {
|
|
11
|
+
};
|
|
12
|
+
exports.ConstructionChecklistTemplate = ConstructionChecklistTemplate;
|
|
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
|
+
], ConstructionChecklistTemplate.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
|
+
], ConstructionChecklistTemplate.prototype, "domain", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.RelationId)((t) => t.domain),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], ConstructionChecklistTemplate.prototype, "domainId", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '공종 ID (construction_types FK)' }),
|
|
29
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
|
+
], ConstructionChecklistTemplate.prototype, "constructionTypeId", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '세부공종 ID (construction_detail_types FK)' }),
|
|
34
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
|
+
], ConstructionChecklistTemplate.prototype, "constructionDetailTypeId", void 0);
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, type_graphql_1.Field)(() => [construction_checklist_template_item_1.ConstructionChecklistTemplateItem], { nullable: true }),
|
|
39
|
+
(0, typeorm_1.OneToMany)(() => construction_checklist_template_item_1.ConstructionChecklistTemplateItem, item => item.constructionChecklistTemplate),
|
|
40
|
+
tslib_1.__metadata("design:type", Array)
|
|
41
|
+
], ConstructionChecklistTemplate.prototype, "constructionChecklistTemplateItems", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
44
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
+
tslib_1.__metadata("design:type", Date)
|
|
46
|
+
], ConstructionChecklistTemplate.prototype, "createdAt", void 0);
|
|
47
|
+
tslib_1.__decorate([
|
|
48
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
49
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
50
|
+
tslib_1.__metadata("design:type", Date)
|
|
51
|
+
], ConstructionChecklistTemplate.prototype, "updatedAt", void 0);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
54
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
|
+
tslib_1.__metadata("design:type", Date)
|
|
56
|
+
], ConstructionChecklistTemplate.prototype, "deletedAt", void 0);
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
59
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
60
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
61
|
+
], ConstructionChecklistTemplate.prototype, "creator", void 0);
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
(0, typeorm_1.RelationId)((t) => t.creator),
|
|
64
|
+
tslib_1.__metadata("design:type", String)
|
|
65
|
+
], ConstructionChecklistTemplate.prototype, "creatorId", void 0);
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
68
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
69
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
70
|
+
], ConstructionChecklistTemplate.prototype, "updater", void 0);
|
|
71
|
+
tslib_1.__decorate([
|
|
72
|
+
(0, typeorm_1.RelationId)((t) => t.updater),
|
|
73
|
+
tslib_1.__metadata("design:type", String)
|
|
74
|
+
], ConstructionChecklistTemplate.prototype, "updaterId", void 0);
|
|
75
|
+
exports.ConstructionChecklistTemplate = ConstructionChecklistTemplate = tslib_1.__decorate([
|
|
76
|
+
(0, typeorm_1.Entity)({ comment: '공종 기반 체크리스트 템플릿' }),
|
|
77
|
+
(0, typeorm_1.Index)('ix_construction_checklist_template_0', (t) => [t.domain, t.constructionTypeId, t.constructionDetailTypeId], { unique: true, where: '"deleted_at" IS NULL' }),
|
|
78
|
+
(0, type_graphql_1.ObjectType)()
|
|
79
|
+
], ConstructionChecklistTemplate);
|
|
80
|
+
//# sourceMappingURL=construction-checklist-template.js.map
|
package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template/construction-checklist-template.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAoD;AAEpD,iDAA8C;AAC9C,yDAAgD;AAChD,uIAAgI;AASzH,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;CAoDzC,CAAA;AApDY,sEAA6B;AAG/B;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;yDACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;6DAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,CAAgC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;;+DAC1C;AAIjB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,+BAA+B,EAAE,CAAC;IACrE,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;yEACD;AAI1B;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IAC9E,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+EACK;AAOhC;IALC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,CAAC,wEAAiC,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACpE,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,wEAAiC,EACvC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,6BAA6B,CAC3C;;yFACuE;AAIxE;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;gEAAA;AAIhB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;gEAAA;AAIhB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;gEAAA;AAIhB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;8DAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,CAAgC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;;gEAC1C;AAIlB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;8DAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,CAAgC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;;gEAC1C;wCAnDP,6BAA6B;IAPzC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;IACtC,IAAA,eAAK,EACJ,sCAAsC,EACtC,CAAC,CAAgC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,kBAAkB,EAAE,CAAC,CAAC,wBAAwB,CAAC,EAClG,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAChD;IACA,IAAA,yBAAU,GAAE;GACA,6BAA6B,CAoDzC","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\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 { ConstructionChecklistTemplateItem } from '../construction-checklist-template-item/construction-checklist-template-item'\n\n@Entity({ comment: '공종 기반 체크리스트 템플릿' })\n@Index(\n 'ix_construction_checklist_template_0',\n (t: ConstructionChecklistTemplate) => [t.domain, t.constructionTypeId, t.constructionDetailTypeId],\n { unique: true, where: '\"deleted_at\" IS NULL' }\n)\n@ObjectType()\nexport class ConstructionChecklistTemplate {\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: ConstructionChecklistTemplate) => t.domain)\n domainId?: 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 @Field(() => [ConstructionChecklistTemplateItem], { nullable: true })\n @OneToMany(\n () => ConstructionChecklistTemplateItem,\n item => item.constructionChecklistTemplate\n )\n constructionChecklistTemplateItems?: ConstructionChecklistTemplateItem[]\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: ConstructionChecklistTemplate) => 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: ConstructionChecklistTemplate) => t.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ConstructionChecklistTemplate } from './construction-checklist-template';
|
|
2
|
+
import { ConstructionChecklistTemplateQuery } from './construction-checklist-template-query';
|
|
3
|
+
import { ConstructionChecklistTemplateMutation } from './construction-checklist-template-mutation';
|
|
4
|
+
export declare const entities: (typeof ConstructionChecklistTemplate)[];
|
|
5
|
+
export declare const resolvers: (typeof ConstructionChecklistTemplateQuery | typeof ConstructionChecklistTemplateMutation)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const construction_checklist_template_1 = require("./construction-checklist-template");
|
|
5
|
+
const construction_checklist_template_query_1 = require("./construction-checklist-template-query");
|
|
6
|
+
const construction_checklist_template_mutation_1 = require("./construction-checklist-template-mutation");
|
|
7
|
+
exports.entities = [construction_checklist_template_1.ConstructionChecklistTemplate];
|
|
8
|
+
exports.resolvers = [construction_checklist_template_query_1.ConstructionChecklistTemplateQuery, construction_checklist_template_mutation_1.ConstructionChecklistTemplateMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template/index.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AACjF,mGAA4F;AAC5F,yGAAkG;AAErF,QAAA,QAAQ,GAAG,CAAC,+DAA6B,CAAC,CAAA;AAC1C,QAAA,SAAS,GAAG,CAAC,0EAAkC,EAAE,gFAAqC,CAAC,CAAA","sourcesContent":["import { ConstructionChecklistTemplate } from './construction-checklist-template'\nimport { ConstructionChecklistTemplateQuery } from './construction-checklist-template-query'\nimport { ConstructionChecklistTemplateMutation } from './construction-checklist-template-mutation'\n\nexport const entities = [ConstructionChecklistTemplate]\nexport const resolvers = [ConstructionChecklistTemplateQuery, ConstructionChecklistTemplateMutation]\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConstructionChecklistTemplateItem } from './construction-checklist-template-item';
|
|
2
|
+
import { ConstructionChecklistTemplateItemPatch } from './construction-checklist-template-item-type';
|
|
3
|
+
export declare class ConstructionChecklistTemplateItemMutation {
|
|
4
|
+
updateMultipleConstructionChecklistTemplateItems(constructionChecklistTemplateId: string, patches: ConstructionChecklistTemplateItemPatch[], context: ResolverContext): Promise<ConstructionChecklistTemplateItem[]>;
|
|
5
|
+
deleteConstructionChecklistTemplateItems(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplateItemMutation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const typeorm_1 = require("typeorm");
|
|
7
|
+
const construction_checklist_template_item_1 = require("./construction-checklist-template-item");
|
|
8
|
+
const construction_checklist_template_item_type_1 = require("./construction-checklist-template-item-type");
|
|
9
|
+
const construction_checklist_template_1 = require("../construction-checklist-template/construction-checklist-template");
|
|
10
|
+
let ConstructionChecklistTemplateItemMutation = class ConstructionChecklistTemplateItemMutation {
|
|
11
|
+
async updateMultipleConstructionChecklistTemplateItems(constructionChecklistTemplateId, patches, context) {
|
|
12
|
+
var _a, _b, _c, _d, _e;
|
|
13
|
+
const { user, tx } = context.state;
|
|
14
|
+
const itemRepo = tx.getRepository(construction_checklist_template_item_1.ConstructionChecklistTemplateItem);
|
|
15
|
+
const template = await tx.getRepository(construction_checklist_template_1.ConstructionChecklistTemplate).findOneBy({ id: constructionChecklistTemplateId });
|
|
16
|
+
// 기존 아이템 삭제
|
|
17
|
+
await itemRepo.delete({ constructionChecklistTemplate: { id: constructionChecklistTemplateId } });
|
|
18
|
+
// 새로 저장
|
|
19
|
+
let results = [];
|
|
20
|
+
for (let i = 0; i < patches.length; i++) {
|
|
21
|
+
const patch = patches[i];
|
|
22
|
+
const result = await itemRepo.save(Object.assign(Object.assign({}, patch), { recommendation1: ((_a = patch.recommendation1) === null || _a === void 0 ? void 0 : _a.trim()) || null, recommendation2: ((_b = patch.recommendation2) === null || _b === void 0 ? void 0 : _b.trim()) || null, recommendation3: ((_c = patch.recommendation3) === null || _c === void 0 ? void 0 : _c.trim()) || null, recommendation4: ((_d = patch.recommendation4) === null || _d === void 0 ? void 0 : _d.trim()) || null, recommendation5: ((_e = patch.recommendation5) === null || _e === void 0 ? void 0 : _e.trim()) || null, sequence: i, constructionChecklistTemplate: template, creator: user, updater: user }));
|
|
23
|
+
results.push(result);
|
|
24
|
+
}
|
|
25
|
+
return results;
|
|
26
|
+
}
|
|
27
|
+
async deleteConstructionChecklistTemplateItems(ids, context) {
|
|
28
|
+
const { tx } = context.state;
|
|
29
|
+
await tx.getRepository(construction_checklist_template_item_1.ConstructionChecklistTemplateItem).delete({ id: (0, typeorm_1.In)(ids) });
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.ConstructionChecklistTemplateItemMutation = ConstructionChecklistTemplateItemMutation;
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
36
|
+
(0, type_graphql_1.Mutation)(returns => [construction_checklist_template_item_1.ConstructionChecklistTemplateItem], { description: '공종 체크리스트 템플릿 아이템 일괄 저장' }),
|
|
37
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('constructionChecklistTemplateId')),
|
|
38
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('patches', type => [construction_checklist_template_item_type_1.ConstructionChecklistTemplateItemPatch])),
|
|
39
|
+
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
40
|
+
tslib_1.__metadata("design:type", Function),
|
|
41
|
+
tslib_1.__metadata("design:paramtypes", [String, Array, Object]),
|
|
42
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
43
|
+
], ConstructionChecklistTemplateItemMutation.prototype, "updateMultipleConstructionChecklistTemplateItems", null);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
46
|
+
(0, type_graphql_1.Mutation)(returns => Boolean, { description: '공종 체크리스트 템플릿 아이템 삭제' }),
|
|
47
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
48
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
49
|
+
tslib_1.__metadata("design:type", Function),
|
|
50
|
+
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
51
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
52
|
+
], ConstructionChecklistTemplateItemMutation.prototype, "deleteConstructionChecklistTemplateItems", null);
|
|
53
|
+
exports.ConstructionChecklistTemplateItemMutation = ConstructionChecklistTemplateItemMutation = tslib_1.__decorate([
|
|
54
|
+
(0, type_graphql_1.Resolver)(construction_checklist_template_item_1.ConstructionChecklistTemplateItem)
|
|
55
|
+
], ConstructionChecklistTemplateItemMutation);
|
|
56
|
+
//# sourceMappingURL=construction-checklist-template-item-mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template-item-mutation.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.ts"],"names":[],"mappings":"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","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\nimport { ConstructionChecklistTemplateItem } from './construction-checklist-template-item'\nimport { ConstructionChecklistTemplateItemPatch } from './construction-checklist-template-item-type'\nimport { ConstructionChecklistTemplate } from '../construction-checklist-template/construction-checklist-template'\n\n@Resolver(ConstructionChecklistTemplateItem)\nexport class ConstructionChecklistTemplateItemMutation {\n @Directive('@transaction')\n @Mutation(returns => [ConstructionChecklistTemplateItem], { description: '공종 체크리스트 템플릿 아이템 일괄 저장' })\n async updateMultipleConstructionChecklistTemplateItems(\n @Arg('constructionChecklistTemplateId') constructionChecklistTemplateId: string,\n @Arg('patches', type => [ConstructionChecklistTemplateItemPatch]) patches: ConstructionChecklistTemplateItemPatch[],\n @Ctx() context: ResolverContext\n ): Promise<ConstructionChecklistTemplateItem[]> {\n const { user, tx } = context.state\n\n const itemRepo = tx.getRepository(ConstructionChecklistTemplateItem)\n const template = await tx.getRepository(ConstructionChecklistTemplate).findOneBy({ id: constructionChecklistTemplateId })\n\n // 기존 아이템 삭제\n await itemRepo.delete({ constructionChecklistTemplate: { id: constructionChecklistTemplateId } })\n\n // 새로 저장\n let results = []\n for (let i = 0; i < patches.length; i++) {\n const patch = patches[i]\n const result = await itemRepo.save({\n ...patch,\n recommendation1: patch.recommendation1?.trim() || null,\n recommendation2: patch.recommendation2?.trim() || null,\n recommendation3: patch.recommendation3?.trim() || null,\n recommendation4: patch.recommendation4?.trim() || null,\n recommendation5: patch.recommendation5?.trim() || null,\n sequence: i,\n constructionChecklistTemplate: template,\n creator: user,\n updater: user\n })\n results.push(result)\n }\n\n return results\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: '공종 체크리스트 템플릿 아이템 삭제' })\n async deleteConstructionChecklistTemplateItems(\n @Arg('ids', type => [String]) ids: string[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { tx } = context.state\n\n await tx.getRepository(ConstructionChecklistTemplateItem).delete({ id: In(ids) })\n\n return true\n }\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { ConstructionChecklistTemplateItem } from './construction-checklist-template-item';
|
|
4
|
+
import { ConstructionChecklistTemplateItemList } from './construction-checklist-template-item-type';
|
|
5
|
+
export declare class ConstructionChecklistTemplateItemQuery {
|
|
6
|
+
constructionChecklistTemplateItems(params: ListParam, context: ResolverContext): Promise<ConstructionChecklistTemplateItemList>;
|
|
7
|
+
updater(item: ConstructionChecklistTemplateItem): Promise<User>;
|
|
8
|
+
creator(item: ConstructionChecklistTemplateItem): Promise<User>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplateItemQuery = 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 construction_checklist_template_item_1 = require("./construction-checklist-template-item");
|
|
9
|
+
const construction_checklist_template_item_type_1 = require("./construction-checklist-template-item-type");
|
|
10
|
+
let ConstructionChecklistTemplateItemQuery = class ConstructionChecklistTemplateItemQuery {
|
|
11
|
+
async constructionChecklistTemplateItems(params, context) {
|
|
12
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
13
|
+
params,
|
|
14
|
+
repository: await (0, shell_1.getRepository)(construction_checklist_template_item_1.ConstructionChecklistTemplateItem),
|
|
15
|
+
searchables: ['name', 'mainType']
|
|
16
|
+
});
|
|
17
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
18
|
+
return { items, total };
|
|
19
|
+
}
|
|
20
|
+
async updater(item) {
|
|
21
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: item.updaterId });
|
|
22
|
+
}
|
|
23
|
+
async creator(item) {
|
|
24
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: item.creatorId });
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.ConstructionChecklistTemplateItemQuery = ConstructionChecklistTemplateItemQuery;
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, type_graphql_1.Query)(returns => construction_checklist_template_item_type_1.ConstructionChecklistTemplateItemList, { description: '공종 체크리스트 템플릿 아이템 목록' }),
|
|
30
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
31
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
32
|
+
tslib_1.__metadata("design:type", Function),
|
|
33
|
+
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
34
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
35
|
+
], ConstructionChecklistTemplateItemQuery.prototype, "constructionChecklistTemplateItems", null);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
38
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
39
|
+
tslib_1.__metadata("design:type", Function),
|
|
40
|
+
tslib_1.__metadata("design:paramtypes", [construction_checklist_template_item_1.ConstructionChecklistTemplateItem]),
|
|
41
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
42
|
+
], ConstructionChecklistTemplateItemQuery.prototype, "updater", null);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
45
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
46
|
+
tslib_1.__metadata("design:type", Function),
|
|
47
|
+
tslib_1.__metadata("design:paramtypes", [construction_checklist_template_item_1.ConstructionChecklistTemplateItem]),
|
|
48
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
49
|
+
], ConstructionChecklistTemplateItemQuery.prototype, "creator", null);
|
|
50
|
+
exports.ConstructionChecklistTemplateItemQuery = ConstructionChecklistTemplateItemQuery = tslib_1.__decorate([
|
|
51
|
+
(0, type_graphql_1.Resolver)(construction_checklist_template_item_1.ConstructionChecklistTemplateItem)
|
|
52
|
+
], ConstructionChecklistTemplateItemQuery);
|
|
53
|
+
//# sourceMappingURL=construction-checklist-template-item-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template-item-query.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template-item/construction-checklist-template-item-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8E;AAC9E,iDAA+F;AAC/F,yDAAgD;AAChD,iGAA0F;AAC1F,2GAAmG;AAG5F,IAAM,sCAAsC,GAA5C,MAAM,sCAAsC;IAE3C,AAAN,KAAK,CAAC,kCAAkC,CAC9B,MAAiB,EAClB,OAAwB;QAE/B,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,wEAAiC,CAAC;YAClE,WAAW,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;SAClC,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,IAAuC;QAC3D,OAAO,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAA;IACpE,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,IAAuC;QAC3D,OAAO,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAA;IACpE,CAAC;CACF,CAAA;AA1BY,wFAAsC;AAE3C;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,iFAAqC,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;IAE7F,mBAAA,IAAA,mBAAI,GAAE,CAAA;IACN,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CADU,iBAAS;;gGAY1B;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAO,wEAAiC;;qEAE5D;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAO,wEAAiC;;qEAE5D;iDAzBU,sCAAsC;IADlD,IAAA,uBAAQ,EAAC,wEAAiC,CAAC;GAC/B,sCAAsC,CA0BlD","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Ctx } from 'type-graphql'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ConstructionChecklistTemplateItem } from './construction-checklist-template-item'\nimport { ConstructionChecklistTemplateItemList } from './construction-checklist-template-item-type'\n\n@Resolver(ConstructionChecklistTemplateItem)\nexport class ConstructionChecklistTemplateItemQuery {\n @Query(returns => ConstructionChecklistTemplateItemList, { description: '공종 체크리스트 템플릿 아이템 목록' })\n async constructionChecklistTemplateItems(\n @Args() params: ListParam,\n @Ctx() context: ResolverContext\n ): Promise<ConstructionChecklistTemplateItemList> {\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(ConstructionChecklistTemplateItem),\n searchables: ['name', 'mainType']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => User)\n async updater(@Root() item: ConstructionChecklistTemplateItem): Promise<User> {\n return await getRepository(User).findOneBy({ id: item.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() item: ConstructionChecklistTemplateItem): Promise<User> {\n return await getRepository(User).findOneBy({ id: item.creatorId })\n }\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConstructionChecklistTemplateItem } from './construction-checklist-template-item';
|
|
2
|
+
export declare class ConstructionChecklistTemplateItemPatch {
|
|
3
|
+
id?: string;
|
|
4
|
+
mainType?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
recommendation1?: string;
|
|
7
|
+
recommendation2?: string;
|
|
8
|
+
recommendation3?: string;
|
|
9
|
+
recommendation4?: string;
|
|
10
|
+
recommendation5?: string;
|
|
11
|
+
inspctionCriteria?: string;
|
|
12
|
+
sequence?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare class ConstructionChecklistTemplateItemList {
|
|
15
|
+
items: ConstructionChecklistTemplateItem[];
|
|
16
|
+
total: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplateItemList = exports.ConstructionChecklistTemplateItemPatch = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const construction_checklist_template_item_1 = require("./construction-checklist-template-item");
|
|
7
|
+
let ConstructionChecklistTemplateItemPatch = class ConstructionChecklistTemplateItemPatch {
|
|
8
|
+
};
|
|
9
|
+
exports.ConstructionChecklistTemplateItemPatch = ConstructionChecklistTemplateItemPatch;
|
|
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
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "mainType", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "name", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "recommendation1", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
28
|
+
tslib_1.__metadata("design:type", String)
|
|
29
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "recommendation2", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
32
|
+
tslib_1.__metadata("design:type", String)
|
|
33
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "recommendation3", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "recommendation4", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
40
|
+
tslib_1.__metadata("design:type", String)
|
|
41
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "recommendation5", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
45
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "inspctionCriteria", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
48
|
+
tslib_1.__metadata("design:type", Number)
|
|
49
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "sequence", void 0);
|
|
50
|
+
exports.ConstructionChecklistTemplateItemPatch = ConstructionChecklistTemplateItemPatch = tslib_1.__decorate([
|
|
51
|
+
(0, type_graphql_1.InputType)()
|
|
52
|
+
], ConstructionChecklistTemplateItemPatch);
|
|
53
|
+
let ConstructionChecklistTemplateItemList = class ConstructionChecklistTemplateItemList {
|
|
54
|
+
};
|
|
55
|
+
exports.ConstructionChecklistTemplateItemList = ConstructionChecklistTemplateItemList;
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
(0, type_graphql_1.Field)(type => [construction_checklist_template_item_1.ConstructionChecklistTemplateItem]),
|
|
58
|
+
tslib_1.__metadata("design:type", Array)
|
|
59
|
+
], ConstructionChecklistTemplateItemList.prototype, "items", void 0);
|
|
60
|
+
tslib_1.__decorate([
|
|
61
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
62
|
+
tslib_1.__metadata("design:type", Number)
|
|
63
|
+
], ConstructionChecklistTemplateItemList.prototype, "total", void 0);
|
|
64
|
+
exports.ConstructionChecklistTemplateItemList = ConstructionChecklistTemplateItemList = tslib_1.__decorate([
|
|
65
|
+
(0, type_graphql_1.ObjectType)()
|
|
66
|
+
], ConstructionChecklistTemplateItemList);
|
|
67
|
+
//# sourceMappingURL=construction-checklist-template-item-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template-item-type.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template-item/construction-checklist-template-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,iGAA0F;AAGnF,IAAM,sCAAsC,GAA5C,MAAM,sCAAsC;CA8BlD,CAAA;AA9BY,wFAAsC;AAEjD;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wEACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iFACA;AAG1B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wEACtB;iDA7BN,sCAAsC;IADlD,IAAA,wBAAS,GAAE;GACC,sCAAsC,CA8BlD;AAGM,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;CAMjD,CAAA;AANY,sFAAqC;AAEhD;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,wEAAiC,CAAC,CAAC;;oEACT;AAG1C;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;oEACN;gDALF,qCAAqC;IADjD,IAAA,yBAAU,GAAE;GACA,qCAAqC,CAMjD","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ConstructionChecklistTemplateItem } from './construction-checklist-template-item'\n\n@InputType()\nexport class ConstructionChecklistTemplateItemPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n mainType?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n recommendation1?: string\n\n @Field({ nullable: true })\n recommendation2?: string\n\n @Field({ nullable: true })\n recommendation3?: string\n\n @Field({ nullable: true })\n recommendation4?: string\n\n @Field({ nullable: true })\n recommendation5?: 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 ConstructionChecklistTemplateItemList {\n @Field(type => [ConstructionChecklistTemplateItem])\n items: ConstructionChecklistTemplateItem[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { User } from '@things-factory/auth-base';
|
|
2
|
+
import { ConstructionChecklistTemplate } from '../construction-checklist-template/construction-checklist-template';
|
|
3
|
+
import { CriteriaRequestStatus } from '../checklist-template-item/checklist-template-item';
|
|
4
|
+
export declare class ConstructionChecklistTemplateItem {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
mainType?: string;
|
|
7
|
+
name: string;
|
|
8
|
+
recommendation1?: string;
|
|
9
|
+
recommendation2?: string;
|
|
10
|
+
recommendation3?: string;
|
|
11
|
+
recommendation4?: string;
|
|
12
|
+
recommendation5?: string;
|
|
13
|
+
inspctionCriteria?: string;
|
|
14
|
+
criteriaRequestStatus?: CriteriaRequestStatus;
|
|
15
|
+
sequence?: number;
|
|
16
|
+
constructionChecklistTemplate?: ConstructionChecklistTemplate;
|
|
17
|
+
constructionChecklistTemplateId?: string;
|
|
18
|
+
createdAt?: Date;
|
|
19
|
+
updatedAt?: Date;
|
|
20
|
+
creator?: User;
|
|
21
|
+
creatorId?: string;
|
|
22
|
+
updater?: User;
|
|
23
|
+
updaterId?: string;
|
|
24
|
+
}
|