@dssp/supervision 1.0.0 → 1.0.5
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/bootstrap.d.ts +1 -0
- package/dist-client/bootstrap.js +2 -0
- package/dist-client/bootstrap.js.map +1 -0
- 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/index.d.ts +0 -0
- package/dist-client/index.js +2 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/pages/action-plan/action-plan-importer.d.ts +10 -0
- package/dist-client/pages/action-plan/action-plan-importer.js +101 -0
- package/dist-client/pages/action-plan/action-plan-importer.js.map +1 -0
- package/dist-client/pages/action-plan/action-plan-list-page.d.ts +62 -0
- package/dist-client/pages/action-plan/action-plan-list-page.js +322 -0
- package/dist-client/pages/action-plan/action-plan-list-page.js.map +1 -0
- 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 +27 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +342 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +31 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +332 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +36 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +369 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +98 -0
- package/dist-client/pages/building-inspection/building-inspection-list.js +914 -0
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -0
- 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.d.ts +1 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +178 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -0
- 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 +9 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +190 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -0
- package/dist-client/pages/building-inspection/inspection-create-popup.d.ts +3 -0
- package/dist-client/pages/building-inspection/inspection-create-popup.js +841 -0
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -0
- 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 +3 -0
- package/dist-client/pages/checklist/attachment-list-popup.js +492 -0
- package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -0
- package/dist-client/pages/checklist/checklist-view.d.ts +16 -0
- package/dist-client/pages/checklist/checklist-view.js +926 -0
- package/dist-client/pages/checklist/checklist-view.js.map +1 -0
- package/dist-client/pages/checklist/comment-list-popup.d.ts +1 -0
- package/dist-client/pages/checklist/comment-list-popup.js +367 -0
- package/dist-client/pages/checklist/comment-list-popup.js.map +1 -0
- package/dist-client/pages/checklist/file-preview-popup.d.ts +1 -0
- package/dist-client/pages/checklist/file-preview-popup.js +77 -0
- package/dist-client/pages/checklist/file-preview-popup.js.map +1 -0
- 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.d.ts +2 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js +278 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-template-list.d.ts +53 -0
- package/dist-client/pages/checklist-template/checklist-template-list.js +350 -0
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-type-management.d.ts +55 -0
- package/dist-client/pages/checklist-template/checklist-type-management.js +250 -0
- package/dist-client/pages/checklist-template/checklist-type-management.js.map +1 -0
- 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.d.ts +10 -0
- package/dist-client/pages/issue/issue-importer.js +101 -0
- package/dist-client/pages/issue/issue-importer.js.map +1 -0
- package/dist-client/pages/issue/issue-list-page.d.ts +62 -0
- package/dist-client/pages/issue/issue-list-page.js +322 -0
- package/dist-client/pages/issue/issue-list-page.js.map +1 -0
- 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.d.ts +10 -0
- package/dist-client/pages/project-report/project-report-importer.js +101 -0
- package/dist-client/pages/project-report/project-report-importer.js.map +1 -0
- package/dist-client/pages/project-report/project-report-list-page.d.ts +62 -0
- package/dist-client/pages/project-report/project-report-list-page.js +322 -0
- package/dist-client/pages/project-report/project-report-list-page.js.map +1 -0
- package/dist-client/pages/supervisor/supervisor-importer.d.ts +10 -0
- package/dist-client/pages/supervisor/supervisor-importer.js +101 -0
- package/dist-client/pages/supervisor/supervisor-importer.js.map +1 -0
- package/dist-client/pages/supervisor/supervisor-list-page.d.ts +62 -0
- package/dist-client/pages/supervisor/supervisor-list-page.js +322 -0
- package/dist-client/pages/supervisor/supervisor-list-page.js.map +1 -0
- package/dist-client/route.d.ts +1 -0
- package/dist-client/route.js +44 -0
- package/dist-client/route.js.map +1 -0
- 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 -0
- package/dist-server/controllers/index.d.ts +0 -0
- package/dist-server/controllers/index.js +1 -0
- package/dist-server/controllers/index.js.map +1 -0
- package/dist-server/index.d.ts +3 -0
- package/dist-server/index.js +7 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/middlewares/index.d.ts +1 -0
- package/dist-server/middlewares/index.js +7 -0
- package/dist-server/middlewares/index.js.map +1 -0
- package/dist-server/migrations/index.d.ts +1 -0
- package/dist-server/migrations/index.js +12 -0
- package/dist-server/migrations/index.js.map +1 -0
- package/dist-server/routes.d.ts +0 -0
- package/dist-server/routes.js +25 -0
- package/dist-server/routes.js.map +1 -0
- package/dist-server/service/action-plan/action-plan-mutation.d.ts +10 -0
- package/dist-server/service/action-plan/action-plan-mutation.js +167 -0
- package/dist-server/service/action-plan/action-plan-mutation.js.map +1 -0
- package/dist-server/service/action-plan/action-plan-query.d.ts +12 -0
- package/dist-server/service/action-plan/action-plan-query.js +91 -0
- package/dist-server/service/action-plan/action-plan-query.js.map +1 -0
- package/dist-server/service/action-plan/action-plan-type.d.ts +23 -0
- package/dist-server/service/action-plan/action-plan-type.js +86 -0
- package/dist-server/service/action-plan/action-plan-type.js.map +1 -0
- package/dist-server/service/action-plan/action-plan.d.ts +27 -0
- package/dist-server/service/action-plan/action-plan.js +116 -0
- package/dist-server/service/action-plan/action-plan.js.map +1 -0
- package/dist-server/service/action-plan/index.d.ts +5 -0
- package/dist-server/service/action-plan/index.js +9 -0
- package/dist-server/service/action-plan/index.js.map +1 -0
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +9 -0
- package/dist-server/service/building-inspection/building-inspection-mutation.js +404 -0
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -0
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +24 -0
- package/dist-server/service/building-inspection/building-inspection-query.js +406 -0
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -0
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +89 -0
- package/dist-server/service/building-inspection/building-inspection-type.js +330 -0
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -0
- package/dist-server/service/building-inspection/building-inspection.d.ts +42 -0
- package/dist-server/service/building-inspection/building-inspection.js +186 -0
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -0
- package/dist-server/service/building-inspection/index.d.ts +7 -0
- package/dist-server/service/building-inspection/index.js +19 -0
- package/dist-server/service/building-inspection/index.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +66 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +35 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js +162 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
- package/dist-server/service/building-inspection-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js +21 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
- package/dist-server/service/building-inspection-history/index.d.ts +6 -0
- package/dist-server/service/building-inspection-history/index.js +10 -0
- package/dist-server/service/building-inspection-history/index.js.map +1 -0
- package/dist-server/service/checklist/checklist-mutation.d.ts +3 -0
- package/dist-server/service/checklist/checklist-mutation.js +30 -0
- package/dist-server/service/checklist/checklist-mutation.js.map +1 -0
- package/dist-server/service/checklist/checklist-query.d.ts +21 -0
- package/dist-server/service/checklist/checklist-query.js +177 -0
- package/dist-server/service/checklist/checklist-query.js.map +1 -0
- package/dist-server/service/checklist/checklist-type.d.ts +5 -0
- package/dist-server/service/checklist/checklist-type.js +21 -0
- package/dist-server/service/checklist/checklist-type.js.map +1 -0
- package/dist-server/service/checklist/checklist.d.ts +66 -0
- package/dist-server/service/checklist/checklist.js +259 -0
- package/dist-server/service/checklist/checklist.js.map +1 -0
- package/dist-server/service/checklist/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist/event-subscriber.js +21 -0
- package/dist-server/service/checklist/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist/index.d.ts +5 -0
- package/dist-server/service/checklist/index.js +9 -0
- package/dist-server/service/checklist/index.js.map +1 -0
- 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 +4 -0
- package/dist-server/service/checklist-item/checklist-item-mutation.js +39 -0
- package/dist-server/service/checklist-item/checklist-item-mutation.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-query.d.ts +18 -0
- package/dist-server/service/checklist-item/checklist-item-query.js +138 -0
- package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-type.d.ts +9 -0
- package/dist-server/service/checklist-item/checklist-item-type.js +35 -0
- package/dist-server/service/checklist-item/checklist-item-type.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item.d.ts +29 -0
- package/dist-server/service/checklist-item/checklist-item.js +124 -0
- package/dist-server/service/checklist-item/checklist-item.js.map +1 -0
- package/dist-server/service/checklist-item/index.d.ts +5 -0
- package/dist-server/service/checklist-item/index.js +9 -0
- package/dist-server/service/checklist-item/index.js.map +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.d.ts +16 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js +83 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js.map +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +8 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +114 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.d.ts +7 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +49 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.d.ts +14 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +53 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment.d.ts +12 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js +57 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +1 -0
- package/dist-server/service/checklist-item-comment/index.d.ts +5 -0
- package/dist-server/service/checklist-item-comment/index.js +10 -0
- package/dist-server/service/checklist-item-comment/index.js.map +1 -0
- 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.d.ts +6 -0
- package/dist-server/service/checklist-template/checklist-template-mutation.js +64 -0
- package/dist-server/service/checklist-template/checklist-template-mutation.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template-query.d.ts +10 -0
- package/dist-server/service/checklist-template/checklist-template-query.js +62 -0
- package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template-type.d.ts +10 -0
- package/dist-server/service/checklist-template/checklist-template-type.js +39 -0
- package/dist-server/service/checklist-template/checklist-template-type.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template.d.ts +17 -0
- package/dist-server/service/checklist-template/checklist-template.js +78 -0
- package/dist-server/service/checklist-template/checklist-template.js.map +1 -0
- package/dist-server/service/checklist-template/index.d.ts +5 -0
- package/dist-server/service/checklist-template/index.js +9 -0
- package/dist-server/service/checklist-template/index.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.d.ts +7 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +80 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-query.d.ts +11 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js +78 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +19 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js +69 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +26 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.js +106 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -0
- package/dist-server/service/checklist-template-item/index.d.ts +5 -0
- package/dist-server/service/checklist-template-item/index.js +9 -0
- package/dist-server/service/checklist-template-item/index.js.map +1 -0
- 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.d.ts +6 -0
- package/dist-server/service/checklist-type/checklist-type-mutation.js +64 -0
- package/dist-server/service/checklist-type/checklist-type-mutation.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type-query.d.ts +10 -0
- package/dist-server/service/checklist-type/checklist-type-query.js +62 -0
- package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type-type.d.ts +11 -0
- package/dist-server/service/checklist-type/checklist-type-type.js +43 -0
- package/dist-server/service/checklist-type/checklist-type-type.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type.d.ts +19 -0
- package/dist-server/service/checklist-type/checklist-type.js +78 -0
- package/dist-server/service/checklist-type/checklist-type.js.map +1 -0
- package/dist-server/service/checklist-type/index.d.ts +5 -0
- package/dist-server/service/checklist-type/index.js +9 -0
- package/dist-server/service/checklist-type/index.js.map +1 -0
- 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 +23 -0
- package/dist-server/service/index.js +98 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/service/issue/index.d.ts +5 -0
- package/dist-server/service/issue/index.js +9 -0
- package/dist-server/service/issue/index.js.map +1 -0
- package/dist-server/service/issue/issue-mutation.d.ts +10 -0
- package/dist-server/service/issue/issue-mutation.js +167 -0
- package/dist-server/service/issue/issue-mutation.js.map +1 -0
- package/dist-server/service/issue/issue-query.d.ts +12 -0
- package/dist-server/service/issue/issue-query.js +91 -0
- package/dist-server/service/issue/issue-query.js.map +1 -0
- package/dist-server/service/issue/issue-type.d.ts +23 -0
- package/dist-server/service/issue/issue-type.js +86 -0
- package/dist-server/service/issue/issue-type.js.map +1 -0
- package/dist-server/service/issue/issue.d.ts +26 -0
- package/dist-server/service/issue/issue.js +111 -0
- package/dist-server/service/issue/issue.js.map +1 -0
- 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 +5 -0
- package/dist-server/service/project-report/index.js +9 -0
- package/dist-server/service/project-report/index.js.map +1 -0
- package/dist-server/service/project-report/project-report-mutation.d.ts +10 -0
- package/dist-server/service/project-report/project-report-mutation.js +167 -0
- package/dist-server/service/project-report/project-report-mutation.js.map +1 -0
- package/dist-server/service/project-report/project-report-query.d.ts +12 -0
- package/dist-server/service/project-report/project-report-query.js +91 -0
- package/dist-server/service/project-report/project-report-query.js.map +1 -0
- package/dist-server/service/project-report/project-report-type.d.ts +23 -0
- package/dist-server/service/project-report/project-report-type.js +86 -0
- package/dist-server/service/project-report/project-report-type.js.map +1 -0
- package/dist-server/service/project-report/project-report.d.ts +28 -0
- package/dist-server/service/project-report/project-report.js +121 -0
- package/dist-server/service/project-report/project-report.js.map +1 -0
- package/dist-server/service/supervisor/index.d.ts +5 -0
- package/dist-server/service/supervisor/index.js +9 -0
- package/dist-server/service/supervisor/index.js.map +1 -0
- package/dist-server/service/supervisor/supervisor-mutation.d.ts +10 -0
- package/dist-server/service/supervisor/supervisor-mutation.js +167 -0
- package/dist-server/service/supervisor/supervisor-mutation.js.map +1 -0
- package/dist-server/service/supervisor/supervisor-query.d.ts +12 -0
- package/dist-server/service/supervisor/supervisor-query.js +91 -0
- package/dist-server/service/supervisor/supervisor-query.js.map +1 -0
- package/dist-server/service/supervisor/supervisor-type.d.ts +23 -0
- package/dist-server/service/supervisor/supervisor-type.js +86 -0
- package/dist-server/service/supervisor/supervisor-type.js.map +1 -0
- package/dist-server/service/supervisor/supervisor.d.ts +28 -0
- package/dist-server/service/supervisor/supervisor.js +121 -0
- package/dist-server/service/supervisor/supervisor.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { ChecklistType } from './checklist-type';
|
|
4
|
+
import { ChecklistTypeList } from './checklist-type-type';
|
|
5
|
+
export declare class ChecklistTypeQuery {
|
|
6
|
+
checklistTypes(params: ListParam): Promise<ChecklistTypeList>;
|
|
7
|
+
domain(checklistType: ChecklistType): Promise<Domain>;
|
|
8
|
+
updater(checklistType: ChecklistType): Promise<User>;
|
|
9
|
+
creator(checklistType: ChecklistType): Promise<User>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistTypeQuery = 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 checklist_type_1 = require("./checklist-type");
|
|
9
|
+
const checklist_type_type_1 = require("./checklist-type-type");
|
|
10
|
+
let ChecklistTypeQuery = class ChecklistTypeQuery {
|
|
11
|
+
async checklistTypes(params) {
|
|
12
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
13
|
+
params,
|
|
14
|
+
repository: await (0, shell_1.getRepository)(checklist_type_1.ChecklistType),
|
|
15
|
+
searchables: ['mainType', 'detailType']
|
|
16
|
+
});
|
|
17
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
18
|
+
return { items, total };
|
|
19
|
+
}
|
|
20
|
+
async domain(checklistType) {
|
|
21
|
+
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: checklistType.domainId });
|
|
22
|
+
}
|
|
23
|
+
async updater(checklistType) {
|
|
24
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistType.updaterId });
|
|
25
|
+
}
|
|
26
|
+
async creator(checklistType) {
|
|
27
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistType.creatorId });
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.ChecklistTypeQuery = ChecklistTypeQuery;
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, type_graphql_1.Query)(returns => checklist_type_type_1.ChecklistTypeList, { description: 'To fetch multiple ChecklistTypes' }),
|
|
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
|
+
], ChecklistTypeQuery.prototype, "checklistTypes", 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", [checklist_type_1.ChecklistType]),
|
|
43
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
44
|
+
], ChecklistTypeQuery.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", [checklist_type_1.ChecklistType]),
|
|
50
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
51
|
+
], ChecklistTypeQuery.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", [checklist_type_1.ChecklistType]),
|
|
57
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
58
|
+
], ChecklistTypeQuery.prototype, "creator", null);
|
|
59
|
+
exports.ChecklistTypeQuery = ChecklistTypeQuery = tslib_1.__decorate([
|
|
60
|
+
(0, type_graphql_1.Resolver)(checklist_type_1.ChecklistType)
|
|
61
|
+
], ChecklistTypeQuery);
|
|
62
|
+
//# sourceMappingURL=checklist-type-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-type-query.js","sourceRoot":"","sources":["../../../server/service/checklist-type/checklist-type-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8E;AAC9E,iDAAuG;AACvG,yDAAgD;AAChD,qDAAgD;AAChD,+DAAyD;AAGlD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAEvB,AAAN,KAAK,CAAC,cAAc,CAAS,MAAiB;QAC5C,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,8BAAa,CAAC;YAC9C,WAAW,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;SACxC,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,A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, Root, Args, Ctx } from 'type-graphql'\nimport { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistType } from './checklist-type'\nimport { ChecklistTypeList } from './checklist-type-type'\n\n@Resolver(ChecklistType)\nexport class ChecklistTypeQuery {\n @Query(returns => ChecklistTypeList, { description: 'To fetch multiple ChecklistTypes' })\n async checklistTypes(@Args() params: ListParam): Promise<ChecklistTypeList> {\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(ChecklistType),\n searchables: ['mainType', 'detailType']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() checklistType: ChecklistType): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: checklistType.domainId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklistType: ChecklistType): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistType.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistType: ChecklistType): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistType.creatorId })\n }\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChecklistType, ChecklistTypeMainType } from './checklist-type';
|
|
2
|
+
export declare class ChecklistTypePatch {
|
|
3
|
+
id?: string;
|
|
4
|
+
mainType: ChecklistTypeMainType;
|
|
5
|
+
detailType: string;
|
|
6
|
+
cuFlag?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class ChecklistTypeList {
|
|
9
|
+
items: ChecklistType[];
|
|
10
|
+
total: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistTypeList = exports.ChecklistTypePatch = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const checklist_type_1 = require("./checklist-type");
|
|
7
|
+
let ChecklistTypePatch = class ChecklistTypePatch {
|
|
8
|
+
};
|
|
9
|
+
exports.ChecklistTypePatch = ChecklistTypePatch;
|
|
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
|
+
], ChecklistTypePatch.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], ChecklistTypePatch.prototype, "mainType", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], ChecklistTypePatch.prototype, "detailType", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], ChecklistTypePatch.prototype, "cuFlag", void 0);
|
|
26
|
+
exports.ChecklistTypePatch = ChecklistTypePatch = tslib_1.__decorate([
|
|
27
|
+
(0, type_graphql_1.InputType)()
|
|
28
|
+
], ChecklistTypePatch);
|
|
29
|
+
let ChecklistTypeList = class ChecklistTypeList {
|
|
30
|
+
};
|
|
31
|
+
exports.ChecklistTypeList = ChecklistTypeList;
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, type_graphql_1.Field)(type => [checklist_type_1.ChecklistType]),
|
|
34
|
+
tslib_1.__metadata("design:type", Array)
|
|
35
|
+
], ChecklistTypeList.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
|
+
], ChecklistTypeList.prototype, "total", void 0);
|
|
40
|
+
exports.ChecklistTypeList = ChecklistTypeList = tslib_1.__decorate([
|
|
41
|
+
(0, type_graphql_1.ObjectType)()
|
|
42
|
+
], ChecklistTypeList);
|
|
43
|
+
//# sourceMappingURL=checklist-type-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-type-type.js","sourceRoot":"","sources":["../../../server/service/checklist-type/checklist-type-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,qDAAuE;AAGhE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAY9B,CAAA;AAZY,gDAAkB;AAE7B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACK;AAG/B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACR;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACX;6BAXJ,kBAAkB;IAD9B,IAAA,wBAAS,GAAE;GACC,kBAAkB,CAY9B;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAM7B,CAAA;AANY,8CAAiB;AAE5B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,8BAAa,CAAC,CAAC;;gDACT;AAGtB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;gDACN;4BALF,iBAAiB;IAD7B,IAAA,yBAAU,GAAE;GACA,iBAAiB,CAM7B","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ChecklistType, ChecklistTypeMainType } from './checklist-type'\n\n@InputType()\nexport class ChecklistTypePatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n mainType: ChecklistTypeMainType\n\n @Field({ nullable: true })\n detailType: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class ChecklistTypeList {\n @Field(type => [ChecklistType])\n items: ChecklistType[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
export declare enum ChecklistTypeMainType {
|
|
4
|
+
BASIC = "10",
|
|
5
|
+
NON_BASIC = "20"
|
|
6
|
+
}
|
|
7
|
+
export declare class ChecklistType {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
domain?: Domain;
|
|
10
|
+
domainId?: string;
|
|
11
|
+
mainType: ChecklistTypeMainType;
|
|
12
|
+
detailType: string;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
creator?: User;
|
|
16
|
+
creatorId?: string;
|
|
17
|
+
updater?: User;
|
|
18
|
+
updaterId?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistType = exports.ChecklistTypeMainType = 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
|
+
var ChecklistTypeMainType;
|
|
10
|
+
(function (ChecklistTypeMainType) {
|
|
11
|
+
ChecklistTypeMainType["BASIC"] = "10";
|
|
12
|
+
ChecklistTypeMainType["NON_BASIC"] = "20";
|
|
13
|
+
})(ChecklistTypeMainType || (exports.ChecklistTypeMainType = ChecklistTypeMainType = {}));
|
|
14
|
+
(0, type_graphql_1.registerEnumType)(ChecklistTypeMainType, {
|
|
15
|
+
name: 'ChecklistTypeMainType',
|
|
16
|
+
description: '체크리스트 구분 메인 구분'
|
|
17
|
+
});
|
|
18
|
+
let ChecklistType = class ChecklistType {
|
|
19
|
+
};
|
|
20
|
+
exports.ChecklistType = ChecklistType;
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
23
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], ChecklistType.prototype, "id", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
28
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
29
|
+
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
30
|
+
], ChecklistType.prototype, "domain", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, typeorm_1.RelationId)((checklistType) => checklistType.domain),
|
|
33
|
+
tslib_1.__metadata("design:type", String)
|
|
34
|
+
], ChecklistType.prototype, "domainId", void 0);
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '메인 구분 (10: 기본 업무, 20: 기본 외 업무)' }),
|
|
37
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
38
|
+
tslib_1.__metadata("design:type", String)
|
|
39
|
+
], ChecklistType.prototype, "mainType", void 0);
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '상세 구분' }),
|
|
42
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
44
|
+
], ChecklistType.prototype, "detailType", void 0);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
47
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
48
|
+
tslib_1.__metadata("design:type", Date)
|
|
49
|
+
], ChecklistType.prototype, "createdAt", void 0);
|
|
50
|
+
tslib_1.__decorate([
|
|
51
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
52
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
53
|
+
tslib_1.__metadata("design:type", Date)
|
|
54
|
+
], ChecklistType.prototype, "updatedAt", void 0);
|
|
55
|
+
tslib_1.__decorate([
|
|
56
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
57
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
58
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
59
|
+
], ChecklistType.prototype, "creator", void 0);
|
|
60
|
+
tslib_1.__decorate([
|
|
61
|
+
(0, typeorm_1.RelationId)((checklistType) => checklistType.creator),
|
|
62
|
+
tslib_1.__metadata("design:type", String)
|
|
63
|
+
], ChecklistType.prototype, "creatorId", void 0);
|
|
64
|
+
tslib_1.__decorate([
|
|
65
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
66
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
67
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
68
|
+
], ChecklistType.prototype, "updater", void 0);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, typeorm_1.RelationId)((checklistType) => checklistType.updater),
|
|
71
|
+
tslib_1.__metadata("design:type", String)
|
|
72
|
+
], ChecklistType.prototype, "updaterId", void 0);
|
|
73
|
+
exports.ChecklistType = ChecklistType = tslib_1.__decorate([
|
|
74
|
+
(0, typeorm_1.Entity)({ comment: '체크리스트 구분' }),
|
|
75
|
+
(0, typeorm_1.Index)('ix_checklist_type_0', (checklistType) => [checklistType.domain, checklistType.mainType, checklistType.detailType], { unique: true }),
|
|
76
|
+
(0, type_graphql_1.ObjectType)()
|
|
77
|
+
], ChecklistType);
|
|
78
|
+
//# sourceMappingURL=checklist-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-type.js","sourceRoot":"","sources":["../../../server/service/checklist-type/checklist-type.ts"],"names":[],"mappings":";;;;AAAA,qCAAkI;AAClI,+CAAsE;AACtE,iDAA8C;AAC9C,yDAAgD;AAEhD,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,qCAAY,CAAA;IACZ,yCAAgB,CAAA;AAClB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAED,IAAA,+BAAgB,EAAC,qBAAqB,EAAE;IACtC,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAA;AASK,IAAM,aAAa,GAAnB,MAAM,aAAa;CAyCzB,CAAA;AAzCY,sCAAa;AAGf;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;yCACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;6CAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC;;+CAClD;AAIjB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;IACtE,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;+CACI;AAI/B;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC7C,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iDACT;AAIlB;IAFC,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Id, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'\nimport { ObjectType, Field, ID, registerEnumType } from 'type-graphql'\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\n\nexport enum ChecklistTypeMainType {\n BASIC = '10',\n NON_BASIC = '20'\n}\n\nregisterEnumType(ChecklistTypeMainType, {\n name: 'ChecklistTypeMainType',\n description: '체크리스트 구분 메인 구분'\n})\n\n@Entity({ comment: '체크리스트 구분' })\n@Index(\n 'ix_checklist_type_0',\n (checklistType: ChecklistType) => [checklistType.domain, checklistType.mainType, checklistType.detailType],\n { unique: true }\n)\n@ObjectType()\nexport class ChecklistType {\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((checklistType: ChecklistType) => checklistType.domain)\n domainId?: string\n\n @Column({ nullable: false, comment: '메인 구분 (10: 기본 업무, 20: 기본 외 업무)' })\n @Field({ nullable: false })\n mainType: ChecklistTypeMainType\n\n @Column({ nullable: false, comment: '상세 구분' })\n @Field({ nullable: false })\n detailType: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((checklistType: ChecklistType) => checklistType.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((checklistType: ChecklistType) => checklistType.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ChecklistType } from './checklist-type';
|
|
2
|
+
import { ChecklistTypeQuery } from './checklist-type-query';
|
|
3
|
+
import { ChecklistTypeMutation } from './checklist-type-mutation';
|
|
4
|
+
export declare const entities: (typeof ChecklistType)[];
|
|
5
|
+
export declare const resolvers: (typeof ChecklistTypeQuery | typeof ChecklistTypeMutation)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const checklist_type_1 = require("./checklist-type");
|
|
5
|
+
const checklist_type_query_1 = require("./checklist-type-query");
|
|
6
|
+
const checklist_type_mutation_1 = require("./checklist-type-mutation");
|
|
7
|
+
exports.entities = [checklist_type_1.ChecklistType];
|
|
8
|
+
exports.resolvers = [checklist_type_query_1.ChecklistTypeQuery, checklist_type_mutation_1.ChecklistTypeMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-type/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAChD,iEAA2D;AAC3D,uEAAiE;AAEpD,QAAA,QAAQ,GAAG,CAAC,8BAAa,CAAC,CAAA;AAC1B,QAAA,SAAS,GAAG,CAAC,yCAAkB,EAAE,+CAAqB,CAAC,CAAA","sourcesContent":["import { ChecklistType } from './checklist-type'\nimport { ChecklistTypeQuery } from './checklist-type-query'\nimport { ChecklistTypeMutation } from './checklist-type-mutation'\n\nexport const entities = [ChecklistType]\nexport const resolvers = [ChecklistTypeQuery, ChecklistTypeMutation]\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConstructionChecklistTemplate } from './construction-checklist-template';
|
|
2
|
+
import { ConstructionChecklistTemplatePatch } from './construction-checklist-template-type';
|
|
3
|
+
export declare class ConstructionChecklistTemplateMutation {
|
|
4
|
+
updateMultipleConstructionChecklistTemplate(patches: ConstructionChecklistTemplatePatch[], context: ResolverContext): Promise<ConstructionChecklistTemplate[]>;
|
|
5
|
+
upsertConstructionChecklistTemplate(constructionTypeId: string, constructionDetailTypeId: string, context: ResolverContext): Promise<ConstructionChecklistTemplate>;
|
|
6
|
+
deleteConstructionChecklistTemplates(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplateMutation = 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_1 = require("./construction-checklist-template");
|
|
8
|
+
const construction_checklist_template_type_1 = require("./construction-checklist-template-type");
|
|
9
|
+
let ConstructionChecklistTemplateMutation = class ConstructionChecklistTemplateMutation {
|
|
10
|
+
async updateMultipleConstructionChecklistTemplate(patches, context) {
|
|
11
|
+
const { domain, user, tx } = context.state;
|
|
12
|
+
let results = [];
|
|
13
|
+
const repo = tx.getRepository(construction_checklist_template_1.ConstructionChecklistTemplate);
|
|
14
|
+
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
15
|
+
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
16
|
+
if (_createRecords.length > 0) {
|
|
17
|
+
for (const newRecord of _createRecords) {
|
|
18
|
+
// 같은 공종+세부공종 조합이 이미 있으면 스킵
|
|
19
|
+
if (newRecord.constructionTypeId && newRecord.constructionDetailTypeId) {
|
|
20
|
+
const existing = await repo.findOne({
|
|
21
|
+
where: {
|
|
22
|
+
domain: { id: domain.id },
|
|
23
|
+
constructionTypeId: newRecord.constructionTypeId,
|
|
24
|
+
constructionDetailTypeId: newRecord.constructionDetailTypeId
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
if (existing) {
|
|
28
|
+
results.push(Object.assign(Object.assign({}, existing), { cuFlag: 'M' }));
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const result = await repo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
|
|
33
|
+
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (_updateRecords.length > 0) {
|
|
37
|
+
for (const updateRecord of _updateRecords) {
|
|
38
|
+
const existing = await repo.findOneBy({ id: updateRecord.id });
|
|
39
|
+
const result = await repo.save(Object.assign(Object.assign(Object.assign({}, existing), updateRecord), { updater: user }));
|
|
40
|
+
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return results;
|
|
44
|
+
}
|
|
45
|
+
async upsertConstructionChecklistTemplate(constructionTypeId, constructionDetailTypeId, context) {
|
|
46
|
+
const { domain, user, tx } = context.state;
|
|
47
|
+
const repo = tx.getRepository(construction_checklist_template_1.ConstructionChecklistTemplate);
|
|
48
|
+
let template = await repo.findOne({
|
|
49
|
+
where: {
|
|
50
|
+
domain: { id: domain.id },
|
|
51
|
+
constructionTypeId,
|
|
52
|
+
constructionDetailTypeId
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
if (!template) {
|
|
56
|
+
template = await repo.save({
|
|
57
|
+
domain,
|
|
58
|
+
constructionTypeId,
|
|
59
|
+
constructionDetailTypeId,
|
|
60
|
+
creator: user,
|
|
61
|
+
updater: user
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return template;
|
|
65
|
+
}
|
|
66
|
+
async deleteConstructionChecklistTemplates(ids, context) {
|
|
67
|
+
const { domain, tx } = context.state;
|
|
68
|
+
await tx.getRepository(construction_checklist_template_1.ConstructionChecklistTemplate).softDelete({
|
|
69
|
+
domain: { id: domain.id },
|
|
70
|
+
id: (0, typeorm_1.In)(ids)
|
|
71
|
+
});
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
exports.ConstructionChecklistTemplateMutation = ConstructionChecklistTemplateMutation;
|
|
76
|
+
tslib_1.__decorate([
|
|
77
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
78
|
+
(0, type_graphql_1.Mutation)(returns => [construction_checklist_template_1.ConstructionChecklistTemplate], { description: '공종 기반 체크리스트 템플릿 생성/수정' }),
|
|
79
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [construction_checklist_template_type_1.ConstructionChecklistTemplatePatch])),
|
|
80
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
81
|
+
tslib_1.__metadata("design:type", Function),
|
|
82
|
+
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
83
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
84
|
+
], ConstructionChecklistTemplateMutation.prototype, "updateMultipleConstructionChecklistTemplate", null);
|
|
85
|
+
tslib_1.__decorate([
|
|
86
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
87
|
+
(0, type_graphql_1.Mutation)(returns => construction_checklist_template_1.ConstructionChecklistTemplate, { description: '공종+세부공종 조합으로 find-or-create' }),
|
|
88
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('constructionTypeId')),
|
|
89
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('constructionDetailTypeId')),
|
|
90
|
+
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
91
|
+
tslib_1.__metadata("design:type", Function),
|
|
92
|
+
tslib_1.__metadata("design:paramtypes", [String, String, Object]),
|
|
93
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
94
|
+
], ConstructionChecklistTemplateMutation.prototype, "upsertConstructionChecklistTemplate", null);
|
|
95
|
+
tslib_1.__decorate([
|
|
96
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
97
|
+
(0, type_graphql_1.Mutation)(returns => Boolean, { description: '공종 기반 체크리스트 템플릿 삭제' }),
|
|
98
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
99
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
100
|
+
tslib_1.__metadata("design:type", Function),
|
|
101
|
+
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
102
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
103
|
+
], ConstructionChecklistTemplateMutation.prototype, "deleteConstructionChecklistTemplates", null);
|
|
104
|
+
exports.ConstructionChecklistTemplateMutation = ConstructionChecklistTemplateMutation = tslib_1.__decorate([
|
|
105
|
+
(0, type_graphql_1.Resolver)(construction_checklist_template_1.ConstructionChecklistTemplate)
|
|
106
|
+
], ConstructionChecklistTemplateMutation);
|
|
107
|
+
//# sourceMappingURL=construction-checklist-template-mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template-mutation.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template/construction-checklist-template-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,uFAAiF;AACjF,iGAA2F;AAGpF,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAG1C,AAAN,KAAK,CAAC,2CAA2C,CACe,OAA6C,EACpG,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,MAAM,IAAI,GAAG,EAAE,CAAC,aAAa,CAAC,+DAA6B,CAAC,CAAA;QAC5D,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;QACzF,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;QAEzF,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9B,KAAK,MAAM,SAAS,IAAI,cAAc,EAAE,CA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CAAC,CAAC,CAAA;IAC5D,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;wGAiDP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,+DAA6B,EAAE,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAEhG,mBAAA,IAAA,kBAAG,EAAC,oBAAoB,CAAC,CAAA;IACzB,mBAAA,IAAA,kBAAG,EAAC,0BAA0B,CAAC,CAAA;IAC/B,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;gGAwBP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IAEjE,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAC5B,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;iGAUP;gDArGU,qCAAqC;IADjD,IAAA,uBAAQ,EAAC,+DAA6B,CAAC;GAC3B,qCAAqC,CAsGjD","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\nimport { ConstructionChecklistTemplate } from './construction-checklist-template'\nimport { ConstructionChecklistTemplatePatch } from './construction-checklist-template-type'\n\n@Resolver(ConstructionChecklistTemplate)\nexport class ConstructionChecklistTemplateMutation {\n @Directive('@transaction')\n @Mutation(returns => [ConstructionChecklistTemplate], { description: '공종 기반 체크리스트 템플릿 생성/수정' })\n async updateMultipleConstructionChecklistTemplate(\n @Arg('patches', type => [ConstructionChecklistTemplatePatch]) patches: ConstructionChecklistTemplatePatch[],\n @Ctx() context: ResolverContext\n ): Promise<ConstructionChecklistTemplate[]> {\n const { domain, user, tx } = context.state\n\n let results = []\n const repo = tx.getRepository(ConstructionChecklistTemplate)\n const _createRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === '+')\n const _updateRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === 'M')\n\n if (_createRecords.length > 0) {\n for (const newRecord of _createRecords) {\n // 같은 공종+세부공종 조합이 이미 있으면 스킵\n if (newRecord.constructionTypeId && newRecord.constructionDetailTypeId) {\n const existing = await repo.findOne({\n where: {\n domain: { id: domain.id },\n constructionTypeId: newRecord.constructionTypeId,\n constructionDetailTypeId: newRecord.constructionDetailTypeId\n }\n })\n if (existing) {\n results.push({ ...existing, cuFlag: 'M' })\n continue\n }\n }\n\n const result = await repo.save({\n ...newRecord,\n domain,\n creator: user,\n updater: user\n })\n results.push({ ...result, cuFlag: '+' })\n }\n }\n\n if (_updateRecords.length > 0) {\n for (const updateRecord of _updateRecords) {\n const existing = await repo.findOneBy({ id: updateRecord.id })\n const result = await repo.save({\n ...existing,\n ...updateRecord,\n updater: user\n })\n results.push({ ...result, cuFlag: 'M' })\n }\n }\n\n return results\n }\n\n @Directive('@transaction')\n @Mutation(returns => ConstructionChecklistTemplate, { description: '공종+세부공종 조합으로 find-or-create' })\n async upsertConstructionChecklistTemplate(\n @Arg('constructionTypeId') constructionTypeId: string,\n @Arg('constructionDetailTypeId') constructionDetailTypeId: string,\n @Ctx() context: ResolverContext\n ): Promise<ConstructionChecklistTemplate> {\n const { domain, user, tx } = context.state\n const repo = tx.getRepository(ConstructionChecklistTemplate)\n\n let template = await repo.findOne({\n where: {\n domain: { id: domain.id },\n constructionTypeId,\n constructionDetailTypeId\n }\n })\n\n if (!template) {\n template = await repo.save({\n domain,\n constructionTypeId,\n constructionDetailTypeId,\n creator: user,\n updater: user\n })\n }\n\n return template\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: '공종 기반 체크리스트 템플릿 삭제' })\n async deleteConstructionChecklistTemplates(\n @Arg('ids', type => [String]) ids: string[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(ConstructionChecklistTemplate).softDelete({\n domain: { id: domain.id },\n id: In(ids)\n })\n\n return true\n }\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { ConstructionChecklistTemplate } from './construction-checklist-template';
|
|
4
|
+
import { ConstructionChecklistTemplateList } from './construction-checklist-template-type';
|
|
5
|
+
export declare class ConstructionChecklistTemplateQuery {
|
|
6
|
+
constructionChecklistTemplates(params: ListParam): Promise<ConstructionChecklistTemplateList>;
|
|
7
|
+
domain(t: ConstructionChecklistTemplate): Promise<Domain>;
|
|
8
|
+
updater(t: ConstructionChecklistTemplate): Promise<User>;
|
|
9
|
+
creator(t: ConstructionChecklistTemplate): Promise<User>;
|
|
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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4B9C","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
|
+
}
|