@dssp/project 1.0.0-alpha.98 → 1.0.0
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/package.json +14 -14
- package/dist-client/bootstrap.d.ts +0 -0
- package/dist-client/bootstrap.js +0 -2
- package/dist-client/bootstrap.js.map +0 -1
- package/dist-client/index.d.ts +0 -1
- package/dist-client/index.js +0 -2
- package/dist-client/index.js.map +0 -1
- package/dist-client/pages/lib/chatbot-widget.d.ts +0 -53
- package/dist-client/pages/lib/chatbot-widget.js +0 -631
- package/dist-client/pages/lib/chatbot-widget.js.map +0 -1
- package/dist-client/pages/lib/select2-component.d.ts +0 -23
- package/dist-client/pages/lib/select2-component.js +0 -181
- package/dist-client/pages/lib/select2-component.js.map +0 -1
- package/dist-client/pages/lib/waether.d.ts +0 -7
- package/dist-client/pages/lib/waether.js +0 -156
- package/dist-client/pages/lib/waether.js.map +0 -1
- package/dist-client/pages/project/component/pagenation.d.ts +0 -18
- package/dist-client/pages/project/component/pagenation.js +0 -142
- package/dist-client/pages/project/component/pagenation.js.map +0 -1
- package/dist-client/pages/project/component/project-update-header.d.ts +0 -1
- package/dist-client/pages/project/component/project-update-header.js +0 -121
- package/dist-client/pages/project/component/project-update-header.js.map +0 -1
- package/dist-client/pages/project/popup/checklist/task-checklist-attachment-list-popup.d.ts +0 -1
- package/dist-client/pages/project/popup/checklist/task-checklist-attachment-list-popup.js +0 -308
- package/dist-client/pages/project/popup/checklist/task-checklist-attachment-list-popup.js.map +0 -1
- package/dist-client/pages/project/popup/checklist/task-checklist-comment-list-popup.d.ts +0 -1
- package/dist-client/pages/project/popup/checklist/task-checklist-comment-list-popup.js +0 -356
- package/dist-client/pages/project/popup/checklist/task-checklist-comment-list-popup.js.map +0 -1
- package/dist-client/pages/project/popup/checklist/task-checklist-create-popup.d.ts +0 -1
- package/dist-client/pages/project/popup/checklist/task-checklist-create-popup.js +0 -682
- package/dist-client/pages/project/popup/checklist/task-checklist-create-popup.js.map +0 -1
- package/dist-client/pages/project/popup/checklist/task-checklist-view.d.ts +0 -33
- package/dist-client/pages/project/popup/checklist/task-checklist-view.js +0 -676
- package/dist-client/pages/project/popup/checklist/task-checklist-view.js.map +0 -1
- package/dist-client/pages/project/popup/popup-plan-export.d.ts +0 -10
- package/dist-client/pages/project/popup/popup-plan-export.js +0 -242
- package/dist-client/pages/project/popup/popup-plan-export.js.map +0 -1
- package/dist-client/pages/project/popup/popup-plan-upload.d.ts +0 -13
- package/dist-client/pages/project/popup/popup-plan-upload.js +0 -265
- package/dist-client/pages/project/popup/popup-plan-upload.js.map +0 -1
- package/dist-client/pages/project/popup/popup-project-create.d.ts +0 -12
- package/dist-client/pages/project/popup/popup-project-create.js +0 -152
- package/dist-client/pages/project/popup/popup-project-create.js.map +0 -1
- package/dist-client/pages/project/popup/popup-task-upload.d.ts +0 -9
- package/dist-client/pages/project/popup/popup-task-upload.js +0 -105
- package/dist-client/pages/project/popup/popup-task-upload.js.map +0 -1
- package/dist-client/pages/project/project-completed-list.d.ts +0 -23
- package/dist-client/pages/project/project-completed-list.js +0 -322
- package/dist-client/pages/project/project-completed-list.js.map +0 -1
- package/dist-client/pages/project/project-detail.d.ts +0 -47
- package/dist-client/pages/project/project-detail.js +0 -1065
- package/dist-client/pages/project/project-detail.js.map +0 -1
- package/dist-client/pages/project/project-list.d.ts +0 -201
- package/dist-client/pages/project/project-list.js +0 -410
- package/dist-client/pages/project/project-list.js.map +0 -1
- package/dist-client/pages/project/project-plan-management.d.ts +0 -33
- package/dist-client/pages/project/project-plan-management.js +0 -492
- package/dist-client/pages/project/project-plan-management.js.map +0 -1
- package/dist-client/pages/project/project-setting-list.d.ts +0 -31
- package/dist-client/pages/project/project-setting-list.js +0 -456
- package/dist-client/pages/project/project-setting-list.js.map +0 -1
- package/dist-client/pages/project/project-task-list.d.ts +0 -18
- package/dist-client/pages/project/project-task-list.js +0 -306
- package/dist-client/pages/project/project-task-list.js.map +0 -1
- package/dist-client/pages/project/project-task.d.ts +0 -51
- package/dist-client/pages/project/project-task.js +0 -692
- package/dist-client/pages/project/project-task.js.map +0 -1
- package/dist-client/pages/project/project-update.d.ts +0 -81
- package/dist-client/pages/project/project-update.js +0 -1477
- package/dist-client/pages/project/project-update.js.map +0 -1
- package/dist-client/pages/resource/construction-detail-type-popup.d.ts +0 -2
- package/dist-client/pages/resource/construction-detail-type-popup.js +0 -197
- package/dist-client/pages/resource/construction-detail-type-popup.js.map +0 -1
- package/dist-client/pages/resource/construction-type-management.d.ts +0 -34
- package/dist-client/pages/resource/construction-type-management.js +0 -214
- package/dist-client/pages/resource/construction-type-management.js.map +0 -1
- package/dist-client/pages/resource/inspection-drawing-type-management.d.ts +0 -48
- package/dist-client/pages/resource/inspection-drawing-type-management.js +0 -234
- package/dist-client/pages/resource/inspection-drawing-type-management.js.map +0 -1
- package/dist-client/pages/resource/inspection-part-popup.d.ts +0 -2
- package/dist-client/pages/resource/inspection-part-popup.js +0 -197
- package/dist-client/pages/resource/inspection-part-popup.js.map +0 -1
- package/dist-client/pages/resource/resource-importer.d.ts +0 -10
- package/dist-client/pages/resource/resource-importer.js +0 -101
- package/dist-client/pages/resource/resource-importer.js.map +0 -1
- package/dist-client/pages/resource/resource-list-page.d.ts +0 -62
- package/dist-client/pages/resource/resource-list-page.js +0 -331
- package/dist-client/pages/resource/resource-list-page.js.map +0 -1
- package/dist-client/pages/resource/worker-type-management.d.ts +0 -34
- package/dist-client/pages/resource/worker-type-management.js +0 -180
- package/dist-client/pages/resource/worker-type-management.js.map +0 -1
- package/dist-client/pages/task/task-importer.d.ts +0 -10
- package/dist-client/pages/task/task-importer.js +0 -101
- package/dist-client/pages/task/task-importer.js.map +0 -1
- package/dist-client/pages/task/task-list-page.d.ts +0 -62
- package/dist-client/pages/task/task-list-page.js +0 -322
- package/dist-client/pages/task/task-list-page.js.map +0 -1
- package/dist-client/pages/task-resource/task-resource-importer.d.ts +0 -10
- package/dist-client/pages/task-resource/task-resource-importer.js +0 -101
- package/dist-client/pages/task-resource/task-resource-importer.js.map +0 -1
- package/dist-client/pages/task-resource/task-resource-list-page.d.ts +0 -62
- package/dist-client/pages/task-resource/task-resource-list-page.js +0 -331
- package/dist-client/pages/task-resource/task-resource-list-page.js.map +0 -1
- package/dist-client/route.d.ts +0 -1
- package/dist-client/route.js +0 -44
- package/dist-client/route.js.map +0 -1
- package/dist-client/shared/domain-context.d.ts +0 -18
- package/dist-client/shared/domain-context.js +0 -28
- package/dist-client/shared/domain-context.js.map +0 -1
- package/dist-client/tsconfig.tsbuildinfo +0 -1
- package/dist-client/viewparts/domain-switch.d.ts +0 -19
- package/dist-client/viewparts/domain-switch.js +0 -274
- package/dist-client/viewparts/domain-switch.js.map +0 -1
- package/dist-server/controllers/export-tasks.d.ts +0 -7
- package/dist-server/controllers/export-tasks.js +0 -29
- package/dist-server/controllers/export-tasks.js.map +0 -1
- package/dist-server/controllers/import-task.d.ts +0 -3
- package/dist-server/controllers/import-task.js +0 -113
- package/dist-server/controllers/import-task.js.map +0 -1
- package/dist-server/controllers/index.d.ts +0 -0
- package/dist-server/controllers/index.js +0 -1
- package/dist-server/controllers/index.js.map +0 -1
- package/dist-server/controllers/parse-excel.d.ts +0 -2
- package/dist-server/controllers/parse-excel.js +0 -74
- package/dist-server/controllers/parse-excel.js.map +0 -1
- package/dist-server/controllers/types.d.ts +0 -18
- package/dist-server/controllers/types.js +0 -3
- package/dist-server/controllers/types.js.map +0 -1
- package/dist-server/index.d.ts +0 -3
- package/dist-server/index.js +0 -7
- package/dist-server/index.js.map +0 -1
- package/dist-server/middlewares/index.d.ts +0 -1
- package/dist-server/middlewares/index.js +0 -7
- package/dist-server/middlewares/index.js.map +0 -1
- package/dist-server/migrations/1723861466413-seed-roles.d.ts +0 -5
- package/dist-server/migrations/1723861466413-seed-roles.js +0 -117
- package/dist-server/migrations/1723861466413-seed-roles.js.map +0 -1
- package/dist-server/migrations/1723861466414-seed-codes.d.ts +0 -5
- package/dist-server/migrations/1723861466414-seed-codes.js +0 -150
- package/dist-server/migrations/1723861466414-seed-codes.js.map +0 -1
- package/dist-server/migrations/1723861476419-seed-resources.d.ts +0 -5
- package/dist-server/migrations/1723861476419-seed-resources.js +0 -57
- package/dist-server/migrations/1723861476419-seed-resources.js.map +0 -1
- package/dist-server/migrations/1723861478420-seed-/bsample-project.d.ts +0 -5
- package/dist-server/migrations/1723861478420-seed-/bsample-project.js +0 -68
- package/dist-server/migrations/1723861478420-seed-/bsample-project.js.map +0 -1
- package/dist-server/migrations/1723861478421-seed-/bsample-tasks.d.ts +0 -5
- package/dist-server/migrations/1723861478421-seed-/bsample-tasks.js +0 -189
- package/dist-server/migrations/1723861478421-seed-/bsample-tasks.js.map +0 -1
- package/dist-server/migrations/index.d.ts +0 -1
- package/dist-server/migrations/index.js +0 -12
- package/dist-server/migrations/index.js.map +0 -1
- package/dist-server/routes.d.ts +0 -1
- package/dist-server/routes.js +0 -105
- package/dist-server/routes.js.map +0 -1
- package/dist-server/service/construction-detail-type/construction-detail-type-mutation.d.ts +0 -6
- package/dist-server/service/construction-detail-type/construction-detail-type-mutation.js +0 -56
- package/dist-server/service/construction-detail-type/construction-detail-type-mutation.js.map +0 -1
- package/dist-server/service/construction-detail-type/construction-detail-type-query.d.ts +0 -9
- package/dist-server/service/construction-detail-type/construction-detail-type-query.js +0 -53
- package/dist-server/service/construction-detail-type/construction-detail-type-query.js.map +0 -1
- package/dist-server/service/construction-detail-type/construction-detail-type-type.d.ts +0 -11
- package/dist-server/service/construction-detail-type/construction-detail-type-type.js +0 -43
- package/dist-server/service/construction-detail-type/construction-detail-type-type.js.map +0 -1
- package/dist-server/service/construction-detail-type/construction-detail-type.d.ts +0 -15
- package/dist-server/service/construction-detail-type/construction-detail-type.js +0 -69
- package/dist-server/service/construction-detail-type/construction-detail-type.js.map +0 -1
- package/dist-server/service/construction-detail-type/index.d.ts +0 -5
- package/dist-server/service/construction-detail-type/index.js +0 -9
- package/dist-server/service/construction-detail-type/index.js.map +0 -1
- package/dist-server/service/construction-type/construction-type-mutation.d.ts +0 -6
- package/dist-server/service/construction-type/construction-type-mutation.js +0 -64
- package/dist-server/service/construction-type/construction-type-mutation.js.map +0 -1
- package/dist-server/service/construction-type/construction-type-query.d.ts +0 -13
- package/dist-server/service/construction-type/construction-type-query.js +0 -87
- package/dist-server/service/construction-type/construction-type-query.js.map +0 -1
- package/dist-server/service/construction-type/construction-type-type.d.ts +0 -12
- package/dist-server/service/construction-type/construction-type-type.js +0 -47
- package/dist-server/service/construction-type/construction-type-type.js.map +0 -1
- package/dist-server/service/construction-type/construction-type.d.ts +0 -19
- package/dist-server/service/construction-type/construction-type.js +0 -88
- package/dist-server/service/construction-type/construction-type.js.map +0 -1
- package/dist-server/service/construction-type/index.d.ts +0 -5
- package/dist-server/service/construction-type/index.js +0 -9
- package/dist-server/service/construction-type/index.js.map +0 -1
- package/dist-server/service/index.d.ts +0 -15
- package/dist-server/service/index.js +0 -59
- package/dist-server/service/index.js.map +0 -1
- package/dist-server/service/inspection-drawing-type/index.d.ts +0 -5
- package/dist-server/service/inspection-drawing-type/index.js +0 -9
- package/dist-server/service/inspection-drawing-type/index.js.map +0 -1
- package/dist-server/service/inspection-drawing-type/inspection-drawing-type-mutation.d.ts +0 -6
- package/dist-server/service/inspection-drawing-type/inspection-drawing-type-mutation.js +0 -64
- package/dist-server/service/inspection-drawing-type/inspection-drawing-type-mutation.js.map +0 -1
- package/dist-server/service/inspection-drawing-type/inspection-drawing-type-query.d.ts +0 -12
- package/dist-server/service/inspection-drawing-type/inspection-drawing-type-query.js +0 -78
- package/dist-server/service/inspection-drawing-type/inspection-drawing-type-query.js.map +0 -1
- package/dist-server/service/inspection-drawing-type/inspection-drawing-type-type.d.ts +0 -10
- package/dist-server/service/inspection-drawing-type/inspection-drawing-type-type.js +0 -39
- package/dist-server/service/inspection-drawing-type/inspection-drawing-type-type.js.map +0 -1
- package/dist-server/service/inspection-drawing-type/inspection-drawing-type.d.ts +0 -16
- package/dist-server/service/inspection-drawing-type/inspection-drawing-type.js +0 -72
- package/dist-server/service/inspection-drawing-type/inspection-drawing-type.js.map +0 -1
- package/dist-server/service/inspection-part/index.d.ts +0 -5
- package/dist-server/service/inspection-part/index.js +0 -9
- package/dist-server/service/inspection-part/index.js.map +0 -1
- package/dist-server/service/inspection-part/inspection-part-mutation.d.ts +0 -6
- package/dist-server/service/inspection-part/inspection-part-mutation.js +0 -55
- package/dist-server/service/inspection-part/inspection-part-mutation.js.map +0 -1
- package/dist-server/service/inspection-part/inspection-part-query.d.ts +0 -10
- package/dist-server/service/inspection-part/inspection-part-query.js +0 -66
- package/dist-server/service/inspection-part/inspection-part-query.js.map +0 -1
- package/dist-server/service/inspection-part/inspection-part-type.d.ts +0 -11
- package/dist-server/service/inspection-part/inspection-part-type.js +0 -43
- package/dist-server/service/inspection-part/inspection-part-type.js.map +0 -1
- package/dist-server/service/inspection-part/inspection-part.d.ts +0 -15
- package/dist-server/service/inspection-part/inspection-part.js +0 -69
- package/dist-server/service/inspection-part/inspection-part.js.map +0 -1
- package/dist-server/service/manager/index.d.ts +0 -7
- package/dist-server/service/manager/index.js +0 -11
- package/dist-server/service/manager/index.js.map +0 -1
- package/dist-server/service/manager/manager-mutation.d.ts +0 -5
- package/dist-server/service/manager/manager-mutation.js +0 -39
- package/dist-server/service/manager/manager-mutation.js.map +0 -1
- package/dist-server/service/manager/manager-query.d.ts +0 -4
- package/dist-server/service/manager/manager-query.js +0 -35
- package/dist-server/service/manager/manager-query.js.map +0 -1
- package/dist-server/service/manager/manager-type.d.ts +0 -15
- package/dist-server/service/manager/manager-type.js +0 -62
- package/dist-server/service/manager/manager-type.js.map +0 -1
- package/dist-server/service/manager/manager.d.ts +0 -8
- package/dist-server/service/manager/manager.js +0 -41
- package/dist-server/service/manager/manager.js.map +0 -1
- package/dist-server/service/project/index.d.ts +0 -5
- package/dist-server/service/project/index.js +0 -9
- package/dist-server/service/project/index.js.map +0 -1
- package/dist-server/service/project/issue-project-code.d.ts +0 -7
- package/dist-server/service/project/issue-project-code.js +0 -27
- package/dist-server/service/project/issue-project-code.js.map +0 -1
- package/dist-server/service/project/project-mutation.d.ts +0 -14
- package/dist-server/service/project/project-mutation.js +0 -448
- package/dist-server/service/project/project-mutation.js.map +0 -1
- package/dist-server/service/project/project-query.d.ts +0 -31
- package/dist-server/service/project/project-query.js +0 -307
- package/dist-server/service/project/project-query.js.map +0 -1
- package/dist-server/service/project/project-type.d.ts +0 -42
- package/dist-server/service/project/project-type.js +0 -152
- package/dist-server/service/project/project-type.js.map +0 -1
- package/dist-server/service/project/project.d.ts +0 -66
- package/dist-server/service/project/project.js +0 -247
- package/dist-server/service/project/project.js.map +0 -1
- package/dist-server/service/resource/index.d.ts +0 -6
- package/dist-server/service/resource/index.js +0 -10
- package/dist-server/service/resource/index.js.map +0 -1
- package/dist-server/service/resource/resource-mutation.d.ts +0 -10
- package/dist-server/service/resource/resource-mutation.js +0 -131
- package/dist-server/service/resource/resource-mutation.js.map +0 -1
- package/dist-server/service/resource/resource-query.d.ts +0 -11
- package/dist-server/service/resource/resource-query.js +0 -76
- package/dist-server/service/resource/resource-query.js.map +0 -1
- package/dist-server/service/resource/resource-type.d.ts +0 -17
- package/dist-server/service/resource/resource-type.js +0 -65
- package/dist-server/service/resource/resource-type.js.map +0 -1
- package/dist-server/service/resource/resource.d.ts +0 -24
- package/dist-server/service/resource/resource.js +0 -93
- package/dist-server/service/resource/resource.js.map +0 -1
- package/dist-server/service/task/index.d.ts +0 -5
- package/dist-server/service/task/index.js +0 -9
- package/dist-server/service/task/index.js.map +0 -1
- package/dist-server/service/task/task-mutation.d.ts +0 -10
- package/dist-server/service/task/task-mutation.js +0 -135
- package/dist-server/service/task/task-mutation.js.map +0 -1
- package/dist-server/service/task/task-query.d.ts +0 -21
- package/dist-server/service/task/task-query.js +0 -219
- package/dist-server/service/task/task-query.js.map +0 -1
- package/dist-server/service/task/task-type.d.ts +0 -31
- package/dist-server/service/task/task-type.js +0 -114
- package/dist-server/service/task/task-type.js.map +0 -1
- package/dist-server/service/task/task.d.ts +0 -35
- package/dist-server/service/task/task.js +0 -151
- package/dist-server/service/task/task.js.map +0 -1
- package/dist-server/service/task-checklist-binding/index.d.ts +0 -5
- package/dist-server/service/task-checklist-binding/index.js +0 -9
- package/dist-server/service/task-checklist-binding/index.js.map +0 -1
- package/dist-server/service/task-checklist-binding/task-checklist-binding-mutation.d.ts +0 -5
- package/dist-server/service/task-checklist-binding/task-checklist-binding-mutation.js +0 -188
- package/dist-server/service/task-checklist-binding/task-checklist-binding-mutation.js.map +0 -1
- package/dist-server/service/task-checklist-binding/task-checklist-binding-query.d.ts +0 -8
- package/dist-server/service/task-checklist-binding/task-checklist-binding-query.js +0 -61
- package/dist-server/service/task-checklist-binding/task-checklist-binding-query.js.map +0 -1
- package/dist-server/service/task-checklist-binding/task-checklist-binding-type.d.ts +0 -15
- package/dist-server/service/task-checklist-binding/task-checklist-binding-type.js +0 -57
- package/dist-server/service/task-checklist-binding/task-checklist-binding-type.js.map +0 -1
- package/dist-server/service/task-checklist-binding/task-checklist-binding.d.ts +0 -22
- package/dist-server/service/task-checklist-binding/task-checklist-binding.js +0 -106
- package/dist-server/service/task-checklist-binding/task-checklist-binding.js.map +0 -1
- package/dist-server/service/task-resource/index.d.ts +0 -6
- package/dist-server/service/task-resource/index.js +0 -10
- package/dist-server/service/task-resource/index.js.map +0 -1
- package/dist-server/service/task-resource/task-resource-mutation.d.ts +0 -10
- package/dist-server/service/task-resource/task-resource-mutation.js +0 -132
- package/dist-server/service/task-resource/task-resource-mutation.js.map +0 -1
- package/dist-server/service/task-resource/task-resource-query.d.ts +0 -7
- package/dist-server/service/task-resource/task-resource-query.js +0 -45
- package/dist-server/service/task-resource/task-resource-query.js.map +0 -1
- package/dist-server/service/task-resource/task-resource-type.d.ts +0 -17
- package/dist-server/service/task-resource/task-resource-type.js +0 -65
- package/dist-server/service/task-resource/task-resource-type.js.map +0 -1
- package/dist-server/service/task-resource/task-resource.d.ts +0 -13
- package/dist-server/service/task-resource/task-resource.js +0 -59
- package/dist-server/service/task-resource/task-resource.js.map +0 -1
- package/dist-server/service/worker-type/index.d.ts +0 -5
- package/dist-server/service/worker-type/index.js +0 -9
- package/dist-server/service/worker-type/index.js.map +0 -1
- package/dist-server/service/worker-type/worker-type-mutation.d.ts +0 -6
- package/dist-server/service/worker-type/worker-type-mutation.js +0 -64
- package/dist-server/service/worker-type/worker-type-mutation.js.map +0 -1
- package/dist-server/service/worker-type/worker-type-query.d.ts +0 -11
- package/dist-server/service/worker-type/worker-type-query.js +0 -73
- package/dist-server/service/worker-type/worker-type-query.js.map +0 -1
- package/dist-server/service/worker-type/worker-type-type.d.ts +0 -11
- package/dist-server/service/worker-type/worker-type-type.js +0 -43
- package/dist-server/service/worker-type/worker-type-type.js.map +0 -1
- package/dist-server/service/worker-type/worker-type.d.ts +0 -16
- package/dist-server/service/worker-type/worker-type.js +0 -77
- package/dist-server/service/worker-type/worker-type.js.map +0 -1
- package/dist-server/tsconfig.tsbuildinfo +0 -1
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KpiValuesObject = exports.ProjectQuery = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const typeorm_1 = require("typeorm");
|
|
7
|
-
const shell_1 = require("@things-factory/shell");
|
|
8
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
-
const project_1 = require("./project");
|
|
10
|
-
const task_1 = require("../task/task");
|
|
11
|
-
const project_type_1 = require("./project-type");
|
|
12
|
-
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
13
|
-
const building_complex_1 = require("@dssp/building-complex");
|
|
14
|
-
const env_1 = require("@things-factory/env");
|
|
15
|
-
const kpi_1 = require("@things-factory/kpi");
|
|
16
|
-
const projectType = env_1.config.get('projectType', project_1.ProjectType.DSSP);
|
|
17
|
-
let ProjectQuery = class ProjectQuery {
|
|
18
|
-
async project(id, context) {
|
|
19
|
-
const { domain } = context.state;
|
|
20
|
-
// 프로젝트 테넌트 컨텍스트에서는 운영자 도메인 소속 프로젝트를 직접 조회 (domain 필터 제외).
|
|
21
|
-
// 단 안전을 위해 project.code 가 현재 tenant subdomain 과 일치해야 함.
|
|
22
|
-
if (domain.extType === 'project') {
|
|
23
|
-
return await (0, shell_1.getRepository)(project_1.Project).findOne({
|
|
24
|
-
where: { id, code: domain.subdomain }
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return await (0, shell_1.getRepository)(project_1.Project).findOne({
|
|
28
|
-
where: { id }
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
async currentProject(context) {
|
|
32
|
-
const { domain } = context.state;
|
|
33
|
-
if (domain.extType !== 'project' || !domain.subdomain)
|
|
34
|
-
return null;
|
|
35
|
-
return await (0, shell_1.getRepository)(project_1.Project).findOne({
|
|
36
|
-
where: { code: domain.subdomain }
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
async projects(params) {
|
|
40
|
-
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
41
|
-
params,
|
|
42
|
-
repository: (0, shell_1.getRepository)(project_1.Project),
|
|
43
|
-
alias: 'p',
|
|
44
|
-
searchables: ['name', 'description', 'state']
|
|
45
|
-
});
|
|
46
|
-
if (projectType !== project_1.ProjectType.DKPI) {
|
|
47
|
-
queryBuilder.andWhere('p.project_type != :dkpi', { dkpi: project_1.ProjectType.DKPI });
|
|
48
|
-
}
|
|
49
|
-
const [items, total] = await queryBuilder.getManyAndCount();
|
|
50
|
-
return { items, total };
|
|
51
|
-
}
|
|
52
|
-
async projectByBuildingComplexId(buildingComplexId) {
|
|
53
|
-
return await (0, shell_1.getRepository)(project_1.Project).findOne({
|
|
54
|
-
where: { buildingComplex: { id: buildingComplexId } }
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
async projectByBuildingLevelId(buildingLevelId, context) {
|
|
58
|
-
const queryBuilder = (0, shell_1.getRepository)(project_1.Project)
|
|
59
|
-
.createQueryBuilder('p')
|
|
60
|
-
.innerJoin('building_complexes', 'bc', 'p.building_complex_id = bc.id')
|
|
61
|
-
.innerJoin('buildings', 'b', 'b.building_complex_id = bc.id')
|
|
62
|
-
.innerJoin('building_levels', 'bl', 'bl.building_id = b.id')
|
|
63
|
-
.where('bl.id = :buildingLevelId', { buildingLevelId });
|
|
64
|
-
const result = await queryBuilder.getOne();
|
|
65
|
-
return result;
|
|
66
|
-
}
|
|
67
|
-
async currentProjectType() {
|
|
68
|
-
return env_1.config.get('projectType', project_1.ProjectType.DSSP);
|
|
69
|
-
}
|
|
70
|
-
async rootTasks(project) {
|
|
71
|
-
return await (0, shell_1.getRepository)(task_1.Task).find({
|
|
72
|
-
where: {
|
|
73
|
-
project: { id: project.id },
|
|
74
|
-
parent: (0, typeorm_1.IsNull)()
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
async mainPhoto(project) {
|
|
79
|
-
const attachment = await (0, shell_1.getRepository)(attachment_base_1.Attachment).findOne({
|
|
80
|
-
where: {
|
|
81
|
-
refBy: project.id,
|
|
82
|
-
refType: project_1.Project.name
|
|
83
|
-
},
|
|
84
|
-
order: { createdAt: 'ASC' }
|
|
85
|
-
});
|
|
86
|
-
return attachment;
|
|
87
|
-
}
|
|
88
|
-
async scheduleTable(project) {
|
|
89
|
-
const attachment = await (0, shell_1.getRepository)(attachment_base_1.Attachment).findOne({
|
|
90
|
-
where: {
|
|
91
|
-
refBy: project.id,
|
|
92
|
-
refType: project_1.Project.name + '_schedule_table'
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
return attachment;
|
|
96
|
-
}
|
|
97
|
-
async completeReport(project) {
|
|
98
|
-
if (!project.completeReportId) {
|
|
99
|
-
return undefined;
|
|
100
|
-
}
|
|
101
|
-
const attachment = await (0, shell_1.getRepository)(attachment_base_1.Attachment).findOne({
|
|
102
|
-
where: { id: project.completeReportId }
|
|
103
|
-
});
|
|
104
|
-
return attachment;
|
|
105
|
-
}
|
|
106
|
-
async buildingComplex(project) {
|
|
107
|
-
return await (0, shell_1.getRepository)(building_complex_1.BuildingComplex).findOneBy({ id: project.buildingComplexId });
|
|
108
|
-
}
|
|
109
|
-
async domain(project) {
|
|
110
|
-
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: project.domainId });
|
|
111
|
-
}
|
|
112
|
-
async tenantDomain(project) {
|
|
113
|
-
if (!project.code)
|
|
114
|
-
return null;
|
|
115
|
-
return await (0, shell_1.getRepository)(shell_1.Domain).findOne({
|
|
116
|
-
where: { subdomain: project.code, extType: 'project' }
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
async updater(project) {
|
|
120
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: project.updaterId });
|
|
121
|
-
}
|
|
122
|
-
async creator(project) {
|
|
123
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: project.creatorId });
|
|
124
|
-
}
|
|
125
|
-
async projectType(project) {
|
|
126
|
-
return env_1.config.get('projectType', project_1.ProjectType.DSSP);
|
|
127
|
-
}
|
|
128
|
-
async kpi(project) {
|
|
129
|
-
const kpi = await (0, shell_1.getRepository)(kpi_1.Kpi).findOneBy({ name: 'Z. 전체스코어' });
|
|
130
|
-
// 같은 (kpi, group) 좌표에 valueDate / version 다른 여러 row 가능 —
|
|
131
|
-
// 가장 최근 valueDate + 그 안의 가장 큰 version 으로 latest 보장.
|
|
132
|
-
const kpiValue = await (0, shell_1.getRepository)(kpi_1.KpiValue).findOne({
|
|
133
|
-
where: { group: project.id, kpi: { id: kpi.id } },
|
|
134
|
-
order: { valueDate: 'DESC', version: 'DESC' }
|
|
135
|
-
});
|
|
136
|
-
return kpiValue ? (kpiValue.value || 0) * 100 : project.kpi;
|
|
137
|
-
}
|
|
138
|
-
async kpiValues(project) {
|
|
139
|
-
var _a;
|
|
140
|
-
// history 포함 fetch 후 좌표별 latest version 만 JS group-by — row 수가 한
|
|
141
|
-
// 프로젝트의 KPI 수 정도라 비용 적음.
|
|
142
|
-
const allKpiValues = await (0, shell_1.getRepository)(kpi_1.KpiValue).find({
|
|
143
|
-
where: { group: project.id },
|
|
144
|
-
relations: ['kpi'],
|
|
145
|
-
order: { valueDate: 'DESC', version: 'DESC' }
|
|
146
|
-
});
|
|
147
|
-
const latestByKey = new Map();
|
|
148
|
-
for (const kv of allKpiValues) {
|
|
149
|
-
const key = `${(_a = kv.kpi) === null || _a === void 0 ? void 0 : _a.id}:${kv.valueDate}:${kv.kpiOrgScopeId || ''}`;
|
|
150
|
-
if (!latestByKey.has(key))
|
|
151
|
-
latestByKey.set(key, kv);
|
|
152
|
-
}
|
|
153
|
-
return Array.from(latestByKey.values()).map(kv => ({ kpiName: kv.kpi.name, value: kv.value || 0 }));
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
exports.ProjectQuery = ProjectQuery;
|
|
157
|
-
tslib_1.__decorate([
|
|
158
|
-
(0, type_graphql_1.Query)(returns => project_1.Project, { nullable: true, description: 'To fetch a Project' }),
|
|
159
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
160
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
161
|
-
tslib_1.__metadata("design:type", Function),
|
|
162
|
-
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
163
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
164
|
-
], ProjectQuery.prototype, "project", null);
|
|
165
|
-
tslib_1.__decorate([
|
|
166
|
-
(0, type_graphql_1.Query)(returns => project_1.Project, {
|
|
167
|
-
nullable: true,
|
|
168
|
-
description: '현재 테넌트 컨텍스트(extType=project)의 프로젝트. subdomain(=Project.code) 으로 조회.'
|
|
169
|
-
}),
|
|
170
|
-
tslib_1.__param(0, (0, type_graphql_1.Ctx)()),
|
|
171
|
-
tslib_1.__metadata("design:type", Function),
|
|
172
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
173
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
174
|
-
], ProjectQuery.prototype, "currentProject", null);
|
|
175
|
-
tslib_1.__decorate([
|
|
176
|
-
(0, type_graphql_1.Query)(returns => project_type_1.ProjectList, { description: '프로젝트 리스트' }),
|
|
177
|
-
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
178
|
-
tslib_1.__metadata("design:type", Function),
|
|
179
|
-
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam]),
|
|
180
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
181
|
-
], ProjectQuery.prototype, "projects", null);
|
|
182
|
-
tslib_1.__decorate([
|
|
183
|
-
(0, type_graphql_1.Query)(returns => project_1.Project, { nullable: true, description: 'To fetch a Project' }),
|
|
184
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('buildingComplexId')),
|
|
185
|
-
tslib_1.__metadata("design:type", Function),
|
|
186
|
-
tslib_1.__metadata("design:paramtypes", [String]),
|
|
187
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
188
|
-
], ProjectQuery.prototype, "projectByBuildingComplexId", null);
|
|
189
|
-
tslib_1.__decorate([
|
|
190
|
-
(0, type_graphql_1.Query)(returns => project_1.Project, { description: 'To fetch Project' }),
|
|
191
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('buildingLevelId')),
|
|
192
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
193
|
-
tslib_1.__metadata("design:type", Function),
|
|
194
|
-
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
195
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
196
|
-
], ProjectQuery.prototype, "projectByBuildingLevelId", null);
|
|
197
|
-
tslib_1.__decorate([
|
|
198
|
-
(0, type_graphql_1.Query)(returns => String, { description: '프로젝트 타입 조회' }),
|
|
199
|
-
tslib_1.__metadata("design:type", Function),
|
|
200
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
201
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
202
|
-
], ProjectQuery.prototype, "currentProjectType", null);
|
|
203
|
-
tslib_1.__decorate([
|
|
204
|
-
(0, type_graphql_1.FieldResolver)(type => [task_1.Task], { nullable: true }),
|
|
205
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
206
|
-
tslib_1.__metadata("design:type", Function),
|
|
207
|
-
tslib_1.__metadata("design:paramtypes", [project_1.Project]),
|
|
208
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
209
|
-
], ProjectQuery.prototype, "rootTasks", null);
|
|
210
|
-
tslib_1.__decorate([
|
|
211
|
-
(0, type_graphql_1.FieldResolver)(type => attachment_base_1.Attachment),
|
|
212
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
213
|
-
tslib_1.__metadata("design:type", Function),
|
|
214
|
-
tslib_1.__metadata("design:paramtypes", [project_1.Project]),
|
|
215
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
216
|
-
], ProjectQuery.prototype, "mainPhoto", null);
|
|
217
|
-
tslib_1.__decorate([
|
|
218
|
-
(0, type_graphql_1.FieldResolver)(type => attachment_base_1.Attachment),
|
|
219
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
220
|
-
tslib_1.__metadata("design:type", Function),
|
|
221
|
-
tslib_1.__metadata("design:paramtypes", [project_1.Project]),
|
|
222
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
223
|
-
], ProjectQuery.prototype, "scheduleTable", null);
|
|
224
|
-
tslib_1.__decorate([
|
|
225
|
-
(0, type_graphql_1.FieldResolver)(type => attachment_base_1.Attachment),
|
|
226
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
227
|
-
tslib_1.__metadata("design:type", Function),
|
|
228
|
-
tslib_1.__metadata("design:paramtypes", [project_1.Project]),
|
|
229
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
230
|
-
], ProjectQuery.prototype, "completeReport", null);
|
|
231
|
-
tslib_1.__decorate([
|
|
232
|
-
(0, type_graphql_1.FieldResolver)(type => building_complex_1.BuildingComplex),
|
|
233
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
234
|
-
tslib_1.__metadata("design:type", Function),
|
|
235
|
-
tslib_1.__metadata("design:paramtypes", [project_1.Project]),
|
|
236
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
237
|
-
], ProjectQuery.prototype, "buildingComplex", null);
|
|
238
|
-
tslib_1.__decorate([
|
|
239
|
-
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
240
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
241
|
-
tslib_1.__metadata("design:type", Function),
|
|
242
|
-
tslib_1.__metadata("design:paramtypes", [project_1.Project]),
|
|
243
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
244
|
-
], ProjectQuery.prototype, "domain", null);
|
|
245
|
-
tslib_1.__decorate([
|
|
246
|
-
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain, {
|
|
247
|
-
nullable: true,
|
|
248
|
-
description: '활성 테넌트 Domain (extType=project). 미승격 또는 강등 상태이면 null'
|
|
249
|
-
}),
|
|
250
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
251
|
-
tslib_1.__metadata("design:type", Function),
|
|
252
|
-
tslib_1.__metadata("design:paramtypes", [project_1.Project]),
|
|
253
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
254
|
-
], ProjectQuery.prototype, "tenantDomain", null);
|
|
255
|
-
tslib_1.__decorate([
|
|
256
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
257
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
258
|
-
tslib_1.__metadata("design:type", Function),
|
|
259
|
-
tslib_1.__metadata("design:paramtypes", [project_1.Project]),
|
|
260
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
261
|
-
], ProjectQuery.prototype, "updater", null);
|
|
262
|
-
tslib_1.__decorate([
|
|
263
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
264
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
265
|
-
tslib_1.__metadata("design:type", Function),
|
|
266
|
-
tslib_1.__metadata("design:paramtypes", [project_1.Project]),
|
|
267
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
268
|
-
], ProjectQuery.prototype, "creator", null);
|
|
269
|
-
tslib_1.__decorate([
|
|
270
|
-
(0, type_graphql_1.FieldResolver)(type => String),
|
|
271
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
272
|
-
tslib_1.__metadata("design:type", Function),
|
|
273
|
-
tslib_1.__metadata("design:paramtypes", [project_1.Project]),
|
|
274
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
275
|
-
], ProjectQuery.prototype, "projectType", null);
|
|
276
|
-
tslib_1.__decorate([
|
|
277
|
-
(0, type_graphql_1.FieldResolver)(type => Number),
|
|
278
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
279
|
-
tslib_1.__metadata("design:type", Function),
|
|
280
|
-
tslib_1.__metadata("design:paramtypes", [project_1.Project]),
|
|
281
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
282
|
-
], ProjectQuery.prototype, "kpi", null);
|
|
283
|
-
tslib_1.__decorate([
|
|
284
|
-
(0, type_graphql_1.FieldResolver)(type => [KpiValuesObject]),
|
|
285
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
286
|
-
tslib_1.__metadata("design:type", Function),
|
|
287
|
-
tslib_1.__metadata("design:paramtypes", [project_1.Project]),
|
|
288
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
289
|
-
], ProjectQuery.prototype, "kpiValues", null);
|
|
290
|
-
exports.ProjectQuery = ProjectQuery = tslib_1.__decorate([
|
|
291
|
-
(0, type_graphql_1.Resolver)(project_1.Project)
|
|
292
|
-
], ProjectQuery);
|
|
293
|
-
let KpiValuesObject = class KpiValuesObject {
|
|
294
|
-
};
|
|
295
|
-
exports.KpiValuesObject = KpiValuesObject;
|
|
296
|
-
tslib_1.__decorate([
|
|
297
|
-
(0, type_graphql_1.Field)(type => String),
|
|
298
|
-
tslib_1.__metadata("design:type", String)
|
|
299
|
-
], KpiValuesObject.prototype, "kpiName", void 0);
|
|
300
|
-
tslib_1.__decorate([
|
|
301
|
-
(0, type_graphql_1.Field)(type => Number),
|
|
302
|
-
tslib_1.__metadata("design:type", Number)
|
|
303
|
-
], KpiValuesObject.prototype, "value", void 0);
|
|
304
|
-
exports.KpiValuesObject = KpiValuesObject = tslib_1.__decorate([
|
|
305
|
-
(0, type_graphql_1.ObjectType)()
|
|
306
|
-
], KpiValuesObject);
|
|
307
|
-
//# sourceMappingURL=project-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-query.js","sourceRoot":"","sources":["../../../server/service/project/project-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAsG;AACtG,qCAAgC;AAChC,iDAAuG;AACvG,yDAAgD;AAChD,uCAAgD;AAChD,uCAAmC;AACnC,iDAA4C;AAC5C,qEAA4D;AAC5D,6DAAwD;AACxD,6CAA4C;AAC5C,6CAAmD;AAEnD,MAAM,WAAW,GAAG,YAAM,CAAC,GAAG,CAAC,aAAa,EAAE,qBAAW,CAAC,IAAI,CAAC,CAAA;AAGxD,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEjB,AAAN,KAAK,CAAC,OAAO,CAAY,EAAU,EAAS,OAAwB;QAClE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,0DAA0D;QAC1D,wDAAwD;QACxD,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACjC,OAAO,MAAM,IAAA,qBAAa,EAAC,iBAAO,CAAC,CAAC,OAAO,CAAC;gBAC1C,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,MA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Ae,CAAC,CAAC;IACxB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAU,iBAAO;;6CAcvC;uBA/LU,YAAY;IADxB,IAAA,uBAAQ,EAAC,iBAAO,CAAC;GACL,YAAY,CAgMxB;AAGM,IAAM,eAAe,GAArB,MAAM,eAAe;CAM3B,CAAA;AANY,0CAAe;AAE1B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;;gDACP;AAGf;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;;8CACT;0BALF,eAAe;IAD3B,IAAA,yBAAU,GAAE;GACA,eAAe,CAM3B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Arg, Args, Ctx, ObjectType, Field } from 'type-graphql'\nimport { IsNull } from 'typeorm'\nimport { Domain, getRepository, ListParam, getQueryBuilderFromListParams } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Project, ProjectType } from './project'\nimport { Task } from '../task/task'\nimport { ProjectList } from './project-type'\nimport { Attachment } from '@things-factory/attachment-base'\nimport { BuildingComplex } from '@dssp/building-complex'\nimport { config } from '@things-factory/env'\nimport { Kpi, KpiValue } from '@things-factory/kpi'\n\nconst projectType = config.get('projectType', ProjectType.DSSP)\n\n@Resolver(Project)\nexport class ProjectQuery {\n @Query(returns => Project!, { nullable: true, description: 'To fetch a Project' })\n async project(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<Project> {\n const { domain } = context.state\n\n // 프로젝트 테넌트 컨텍스트에서는 운영자 도메인 소속 프로젝트를 직접 조회 (domain 필터 제외).\n // 단 안전을 위해 project.code 가 현재 tenant subdomain 과 일치해야 함.\n if (domain.extType === 'project') {\n return await getRepository(Project).findOne({\n where: { id, code: domain.subdomain }\n })\n }\n\n return await getRepository(Project).findOne({\n where: { id }\n })\n }\n\n @Query(returns => Project, {\n nullable: true,\n description: '현재 테넌트 컨텍스트(extType=project)의 프로젝트. subdomain(=Project.code) 으로 조회.'\n })\n async currentProject(@Ctx() context: ResolverContext): Promise<Project> {\n const { domain } = context.state\n\n if (domain.extType !== 'project' || !domain.subdomain) return null\n\n return await getRepository(Project).findOne({\n where: { code: domain.subdomain }\n })\n }\n\n @Query(returns => ProjectList, { description: '프로젝트 리스트' })\n async projects(@Args() params: ListParam): Promise<ProjectList> {\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: getRepository(Project),\n alias: 'p',\n searchables: ['name', 'description', 'state']\n })\n\n if (projectType !== ProjectType.DKPI) {\n queryBuilder.andWhere('p.project_type != :dkpi', { dkpi: ProjectType.DKPI })\n }\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @Query(returns => Project!, { nullable: true, description: 'To fetch a Project' })\n async projectByBuildingComplexId(@Arg('buildingComplexId') buildingComplexId: string): Promise<Project> {\n return await getRepository(Project).findOne({\n where: { buildingComplex: { id: buildingComplexId } }\n })\n }\n\n @Query(returns => Project!, { description: 'To fetch Project' })\n async projectByBuildingLevelId(\n @Arg('buildingLevelId') buildingLevelId: string,\n @Ctx() context: ResolverContext\n ): Promise<Project> {\n const queryBuilder = getRepository(Project)\n .createQueryBuilder('p')\n .innerJoin('building_complexes', 'bc', 'p.building_complex_id = bc.id')\n .innerJoin('buildings', 'b', 'b.building_complex_id = bc.id')\n .innerJoin('building_levels', 'bl', 'bl.building_id = b.id')\n .where('bl.id = :buildingLevelId', { buildingLevelId })\n\n const result = await queryBuilder.getOne()\n\n return result\n }\n\n @Query(returns => String, { description: '프로젝트 타입 조회' })\n async currentProjectType(): Promise<string> {\n return config.get('projectType', ProjectType.DSSP)\n }\n\n @FieldResolver(type => [Task], { nullable: true })\n async rootTasks(@Root() project: Project): Promise<Task[]> {\n return await getRepository<Task>(Task).find({\n where: {\n project: { id: project.id },\n parent: IsNull()\n }\n })\n }\n\n @FieldResolver(type => Attachment)\n async mainPhoto(@Root() project: Project): Promise<string | Attachment> {\n const attachment: Attachment = await getRepository(Attachment).findOne({\n where: {\n refBy: project.id,\n refType: Project.name\n },\n order: { createdAt: 'ASC' }\n })\n\n return attachment\n }\n\n @FieldResolver(type => Attachment)\n async scheduleTable(@Root() project: Project): Promise<Attachment | undefined> {\n const attachment: Attachment = await getRepository(Attachment).findOne({\n where: {\n refBy: project.id,\n refType: Project.name + '_schedule_table'\n }\n })\n\n return attachment\n }\n\n @FieldResolver(type => Attachment)\n async completeReport(@Root() project: Project): Promise<Attachment | undefined> {\n if (!project.completeReportId) {\n return undefined\n }\n\n const attachment: Attachment = await getRepository(Attachment).findOne({\n where: { id: project.completeReportId }\n })\n\n return attachment\n }\n\n @FieldResolver(type => BuildingComplex)\n async buildingComplex(@Root() project: Project): Promise<BuildingComplex> {\n return await getRepository(BuildingComplex).findOneBy({ id: project.buildingComplexId })\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() project: Project): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: project.domainId })\n }\n\n @FieldResolver(type => Domain, {\n nullable: true,\n description: '활성 테넌트 Domain (extType=project). 미승격 또는 강등 상태이면 null'\n })\n async tenantDomain(@Root() project: Project): Promise<Domain | null> {\n if (!project.code) return null\n return await getRepository(Domain).findOne({\n where: { subdomain: project.code, extType: 'project' }\n })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() project: Project): Promise<User> {\n return await getRepository(User).findOneBy({ id: project.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() project: Project): Promise<User> {\n return await getRepository(User).findOneBy({ id: project.creatorId })\n }\n\n @FieldResolver(type => String)\n async projectType(@Root() project: Project): Promise<string> {\n return config.get('projectType', ProjectType.DSSP)\n }\n\n @FieldResolver(type => Number)\n async kpi(@Root() project: Project): Promise<number> {\n const kpi = await getRepository(Kpi).findOneBy({ name: 'Z. 전체스코어' })\n // 같은 (kpi, group) 좌표에 valueDate / version 다른 여러 row 가능 —\n // 가장 최근 valueDate + 그 안의 가장 큰 version 으로 latest 보장.\n const kpiValue = await getRepository(KpiValue).findOne({\n where: { group: project.id, kpi: { id: kpi.id } },\n order: { valueDate: 'DESC', version: 'DESC' }\n })\n\n return kpiValue ? (kpiValue.value || 0) * 100 : project.kpi\n }\n\n @FieldResolver(type => [KpiValuesObject])\n async kpiValues(@Root() project: Project): Promise<KpiValuesObject[]> {\n // history 포함 fetch 후 좌표별 latest version 만 JS group-by — row 수가 한\n // 프로젝트의 KPI 수 정도라 비용 적음.\n const allKpiValues = await getRepository(KpiValue).find({\n where: { group: project.id },\n relations: ['kpi'],\n order: { valueDate: 'DESC', version: 'DESC' }\n })\n const latestByKey = new Map<string, KpiValue>()\n for (const kv of allKpiValues) {\n const key = `${kv.kpi?.id}:${kv.valueDate}:${(kv as any).kpiOrgScopeId || ''}`\n if (!latestByKey.has(key)) latestByKey.set(key, kv)\n }\n return Array.from(latestByKey.values()).map(kv => ({ kpiName: kv.kpi.name, value: kv.value || 0 }))\n }\n}\n\n@ObjectType()\nexport class KpiValuesObject {\n @Field(type => String)\n kpiName: string\n\n @Field(type => Number)\n value: number\n}\n"]}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Project, ProjectState, BuildingUsage, SectorType } from './project';
|
|
2
|
-
import type { FileUpload } from 'graphql-upload/GraphQLUpload.js';
|
|
3
|
-
import { ObjectRef } from '@things-factory/shell';
|
|
4
|
-
import { BuildingComplexPatch } from '@dssp/building-complex';
|
|
5
|
-
export declare class NewProject {
|
|
6
|
-
name: string;
|
|
7
|
-
buildingComplex?: ObjectRef;
|
|
8
|
-
}
|
|
9
|
-
export declare class ProjectPatch {
|
|
10
|
-
id: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
state?: ProjectState;
|
|
13
|
-
documentNaming?: string;
|
|
14
|
-
startDate?: string;
|
|
15
|
-
endDate?: string;
|
|
16
|
-
mainPhotoUpload?: FileUpload;
|
|
17
|
-
totalProgress?: number;
|
|
18
|
-
weeklyProgress?: number;
|
|
19
|
-
kpi?: number;
|
|
20
|
-
inspPassRate?: number;
|
|
21
|
-
robotProgressRate?: number;
|
|
22
|
-
structuralSafetyRate?: number;
|
|
23
|
-
robotCount?: number;
|
|
24
|
-
buildingComplex?: BuildingComplexPatch;
|
|
25
|
-
buildingUsage?: BuildingUsage;
|
|
26
|
-
sectorType?: SectorType;
|
|
27
|
-
postalCode?: string;
|
|
28
|
-
geoGroup?: string;
|
|
29
|
-
siteSpecPdfUrl?: string;
|
|
30
|
-
}
|
|
31
|
-
export declare class ProjectCompleteStep1Patch {
|
|
32
|
-
id: string;
|
|
33
|
-
buildingComplex?: BuildingComplexPatch;
|
|
34
|
-
}
|
|
35
|
-
export declare class UploadProjectScheduleTable {
|
|
36
|
-
projectId: string;
|
|
37
|
-
scheduleTable?: FileUpload;
|
|
38
|
-
}
|
|
39
|
-
export declare class ProjectList {
|
|
40
|
-
items: Project[];
|
|
41
|
-
total: number;
|
|
42
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectList = exports.UploadProjectScheduleTable = exports.ProjectCompleteStep1Patch = exports.ProjectPatch = exports.NewProject = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const project_1 = require("./project");
|
|
7
|
-
const GraphQLUpload_js_1 = tslib_1.__importDefault(require("graphql-upload/GraphQLUpload.js"));
|
|
8
|
-
const shell_1 = require("@things-factory/shell");
|
|
9
|
-
const building_complex_1 = require("@dssp/building-complex");
|
|
10
|
-
let NewProject = class NewProject {
|
|
11
|
-
};
|
|
12
|
-
exports.NewProject = NewProject;
|
|
13
|
-
tslib_1.__decorate([
|
|
14
|
-
(0, type_graphql_1.Field)({ nullable: false, description: '프로젝트 이름' }),
|
|
15
|
-
tslib_1.__metadata("design:type", String)
|
|
16
|
-
], NewProject.prototype, "name", void 0);
|
|
17
|
-
tslib_1.__decorate([
|
|
18
|
-
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true, description: '연관된 건물 복합체 정보 (선택 사항)' }),
|
|
19
|
-
tslib_1.__metadata("design:type", shell_1.ObjectRef)
|
|
20
|
-
], NewProject.prototype, "buildingComplex", void 0);
|
|
21
|
-
exports.NewProject = NewProject = tslib_1.__decorate([
|
|
22
|
-
(0, type_graphql_1.InputType)()
|
|
23
|
-
], NewProject);
|
|
24
|
-
let ProjectPatch = class ProjectPatch {
|
|
25
|
-
};
|
|
26
|
-
exports.ProjectPatch = ProjectPatch;
|
|
27
|
-
tslib_1.__decorate([
|
|
28
|
-
(0, type_graphql_1.Field)({ nullable: false, description: '수정할 프로젝트의 ID' }),
|
|
29
|
-
tslib_1.__metadata("design:type", String)
|
|
30
|
-
], ProjectPatch.prototype, "id", void 0);
|
|
31
|
-
tslib_1.__decorate([
|
|
32
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '프로젝트 이름' }),
|
|
33
|
-
tslib_1.__metadata("design:type", String)
|
|
34
|
-
], ProjectPatch.prototype, "name", void 0);
|
|
35
|
-
tslib_1.__decorate([
|
|
36
|
-
(0, type_graphql_1.Field)(type => project_1.ProjectState, { nullable: true, description: '프로젝트 상태 (ONGOING/COMPLETED)' }),
|
|
37
|
-
tslib_1.__metadata("design:type", String)
|
|
38
|
-
], ProjectPatch.prototype, "state", void 0);
|
|
39
|
-
tslib_1.__decorate([
|
|
40
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '프로젝트 문서 네이밍' }),
|
|
41
|
-
tslib_1.__metadata("design:type", String)
|
|
42
|
-
], ProjectPatch.prototype, "documentNaming", void 0);
|
|
43
|
-
tslib_1.__decorate([
|
|
44
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '프로젝트 착공일정' }),
|
|
45
|
-
tslib_1.__metadata("design:type", String)
|
|
46
|
-
], ProjectPatch.prototype, "startDate", void 0);
|
|
47
|
-
tslib_1.__decorate([
|
|
48
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '프로젝트 준공일정' }),
|
|
49
|
-
tslib_1.__metadata("design:type", String)
|
|
50
|
-
], ProjectPatch.prototype, "endDate", void 0);
|
|
51
|
-
tslib_1.__decorate([
|
|
52
|
-
(0, type_graphql_1.Field)(type => GraphQLUpload_js_1.default, { nullable: true, description: '프로젝트 대표 사진 업로드' }),
|
|
53
|
-
tslib_1.__metadata("design:type", Object)
|
|
54
|
-
], ProjectPatch.prototype, "mainPhotoUpload", void 0);
|
|
55
|
-
tslib_1.__decorate([
|
|
56
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true, description: '프로젝트 전체 진행현황 (%)' }),
|
|
57
|
-
tslib_1.__metadata("design:type", Number)
|
|
58
|
-
], ProjectPatch.prototype, "totalProgress", void 0);
|
|
59
|
-
tslib_1.__decorate([
|
|
60
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true, description: '프로젝트 주간 진행현황 (%)' }),
|
|
61
|
-
tslib_1.__metadata("design:type", Number)
|
|
62
|
-
], ProjectPatch.prototype, "weeklyProgress", void 0);
|
|
63
|
-
tslib_1.__decorate([
|
|
64
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true, description: '프로젝트 KPI' }),
|
|
65
|
-
tslib_1.__metadata("design:type", Number)
|
|
66
|
-
], ProjectPatch.prototype, "kpi", void 0);
|
|
67
|
-
tslib_1.__decorate([
|
|
68
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true, description: '검측/통과 비율 (%)' }),
|
|
69
|
-
tslib_1.__metadata("design:type", Number)
|
|
70
|
-
], ProjectPatch.prototype, "inspPassRate", void 0);
|
|
71
|
-
tslib_1.__decorate([
|
|
72
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true, description: '로봇 작업 진행율 (%)' }),
|
|
73
|
-
tslib_1.__metadata("design:type", Number)
|
|
74
|
-
], ProjectPatch.prototype, "robotProgressRate", void 0);
|
|
75
|
-
tslib_1.__decorate([
|
|
76
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true, description: '구조 안전도 (%)' }),
|
|
77
|
-
tslib_1.__metadata("design:type", Number)
|
|
78
|
-
], ProjectPatch.prototype, "structuralSafetyRate", void 0);
|
|
79
|
-
tslib_1.__decorate([
|
|
80
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true, description: '로봇 작업 대수' }),
|
|
81
|
-
tslib_1.__metadata("design:type", Number)
|
|
82
|
-
], ProjectPatch.prototype, "robotCount", void 0);
|
|
83
|
-
tslib_1.__decorate([
|
|
84
|
-
(0, type_graphql_1.Field)(type => building_complex_1.BuildingComplexPatch, { nullable: true, description: '연관된 건물 복합체 정보 (선택 사항)' }),
|
|
85
|
-
tslib_1.__metadata("design:type", building_complex_1.BuildingComplexPatch)
|
|
86
|
-
], ProjectPatch.prototype, "buildingComplex", void 0);
|
|
87
|
-
tslib_1.__decorate([
|
|
88
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '건물 용도 (RESIDENTIAL: 주거, NON_RESIDENTIAL: 비주거)' }),
|
|
89
|
-
tslib_1.__metadata("design:type", String)
|
|
90
|
-
], ProjectPatch.prototype, "buildingUsage", void 0);
|
|
91
|
-
tslib_1.__decorate([
|
|
92
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '발주 유형 (PUBLIC: 공공, PRIVATE: 민간)' }),
|
|
93
|
-
tslib_1.__metadata("design:type", String)
|
|
94
|
-
], ProjectPatch.prototype, "sectorType", void 0);
|
|
95
|
-
tslib_1.__decorate([
|
|
96
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '우편 코드 (5자리)' }),
|
|
97
|
-
tslib_1.__metadata("design:type", String)
|
|
98
|
-
], ProjectPatch.prototype, "postalCode", void 0);
|
|
99
|
-
tslib_1.__decorate([
|
|
100
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '지역 구분 코드 (시군구 식별, 통계 그룹핑용)' }),
|
|
101
|
-
tslib_1.__metadata("design:type", String)
|
|
102
|
-
], ProjectPatch.prototype, "geoGroup", void 0);
|
|
103
|
-
tslib_1.__decorate([
|
|
104
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '현장 시방서 PDF URL (https 전체 URL)' }),
|
|
105
|
-
tslib_1.__metadata("design:type", String)
|
|
106
|
-
], ProjectPatch.prototype, "siteSpecPdfUrl", void 0);
|
|
107
|
-
exports.ProjectPatch = ProjectPatch = tslib_1.__decorate([
|
|
108
|
-
(0, type_graphql_1.InputType)()
|
|
109
|
-
], ProjectPatch);
|
|
110
|
-
let ProjectCompleteStep1Patch = class ProjectCompleteStep1Patch {
|
|
111
|
-
};
|
|
112
|
-
exports.ProjectCompleteStep1Patch = ProjectCompleteStep1Patch;
|
|
113
|
-
tslib_1.__decorate([
|
|
114
|
-
(0, type_graphql_1.Field)({ nullable: false, description: '수정할 프로젝트의 ID' }),
|
|
115
|
-
tslib_1.__metadata("design:type", String)
|
|
116
|
-
], ProjectCompleteStep1Patch.prototype, "id", void 0);
|
|
117
|
-
tslib_1.__decorate([
|
|
118
|
-
(0, type_graphql_1.Field)(type => building_complex_1.BuildingComplexPatch, { nullable: true, description: '연관된 건물 복합체 정보 (선택 사항)' }),
|
|
119
|
-
tslib_1.__metadata("design:type", building_complex_1.BuildingComplexPatch)
|
|
120
|
-
], ProjectCompleteStep1Patch.prototype, "buildingComplex", void 0);
|
|
121
|
-
exports.ProjectCompleteStep1Patch = ProjectCompleteStep1Patch = tslib_1.__decorate([
|
|
122
|
-
(0, type_graphql_1.InputType)()
|
|
123
|
-
], ProjectCompleteStep1Patch);
|
|
124
|
-
let UploadProjectScheduleTable = class UploadProjectScheduleTable {
|
|
125
|
-
};
|
|
126
|
-
exports.UploadProjectScheduleTable = UploadProjectScheduleTable;
|
|
127
|
-
tslib_1.__decorate([
|
|
128
|
-
(0, type_graphql_1.Field)({ nullable: false, description: '수정할 프로젝트의 ID' }),
|
|
129
|
-
tslib_1.__metadata("design:type", String)
|
|
130
|
-
], UploadProjectScheduleTable.prototype, "projectId", void 0);
|
|
131
|
-
tslib_1.__decorate([
|
|
132
|
-
(0, type_graphql_1.Field)(type => GraphQLUpload_js_1.default, { nullable: true, description: '프로젝트 공정표 업로드' }),
|
|
133
|
-
tslib_1.__metadata("design:type", Object)
|
|
134
|
-
], UploadProjectScheduleTable.prototype, "scheduleTable", void 0);
|
|
135
|
-
exports.UploadProjectScheduleTable = UploadProjectScheduleTable = tslib_1.__decorate([
|
|
136
|
-
(0, type_graphql_1.InputType)()
|
|
137
|
-
], UploadProjectScheduleTable);
|
|
138
|
-
let ProjectList = class ProjectList {
|
|
139
|
-
};
|
|
140
|
-
exports.ProjectList = ProjectList;
|
|
141
|
-
tslib_1.__decorate([
|
|
142
|
-
(0, type_graphql_1.Field)(type => [project_1.Project], { description: '프로젝트 리스트 항목들' }),
|
|
143
|
-
tslib_1.__metadata("design:type", Array)
|
|
144
|
-
], ProjectList.prototype, "items", void 0);
|
|
145
|
-
tslib_1.__decorate([
|
|
146
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: '전체 프로젝트 수' }),
|
|
147
|
-
tslib_1.__metadata("design:type", Number)
|
|
148
|
-
], ProjectList.prototype, "total", void 0);
|
|
149
|
-
exports.ProjectList = ProjectList = tslib_1.__decorate([
|
|
150
|
-
(0, type_graphql_1.ObjectType)()
|
|
151
|
-
], ProjectList);
|
|
152
|
-
//# sourceMappingURL=project-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-type.js","sourceRoot":"","sources":["../../../server/service/project/project-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAuE;AACvE,uCAA4E;AAE5E,+FAA2D;AAC3D,iDAA+D;AAC/D,6DAA6D;AAGtD,IAAM,UAAU,GAAhB,MAAM,UAAU;CAMtB,CAAA;AANY,gCAAU;AAErB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;;wCACvC;AAGZ;IADC,IAAA,oBAAK,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GhB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;;0CACpC;sBALF,WAAW;IADvB,IAAA,yBAAU,GAAE;GACA,WAAW,CAMvB","sourcesContent":["import { ObjectType, Field, InputType, Int, Float } from 'type-graphql'\nimport { Project, ProjectState, BuildingUsage, SectorType } from './project'\nimport type { FileUpload } from 'graphql-upload/GraphQLUpload.js'\nimport GraphQLUpload from 'graphql-upload/GraphQLUpload.js'\nimport { ObjectRef, ScalarObject } from '@things-factory/shell'\nimport { BuildingComplexPatch } from '@dssp/building-complex'\n\n@InputType()\nexport class NewProject {\n @Field({ nullable: false, description: '프로젝트 이름' })\n name: string\n\n @Field(type => ObjectRef, { nullable: true, description: '연관된 건물 복합체 정보 (선택 사항)' })\n buildingComplex?: ObjectRef\n}\n\n@InputType()\nexport class ProjectPatch {\n @Field({ nullable: false, description: '수정할 프로젝트의 ID' })\n id: string\n\n @Field({ nullable: true, description: '프로젝트 이름' })\n name?: string\n\n @Field(type => ProjectState, { nullable: true, description: '프로젝트 상태 (ONGOING/COMPLETED)' })\n state?: ProjectState\n\n @Field({ nullable: true, description: '프로젝트 문서 네이밍' })\n documentNaming?: string\n\n @Field({ nullable: true, description: '프로젝트 착공일정' })\n startDate?: string\n\n @Field({ nullable: true, description: '프로젝트 준공일정' })\n endDate?: string\n\n @Field(type => GraphQLUpload, { nullable: true, description: '프로젝트 대표 사진 업로드' })\n mainPhotoUpload?: FileUpload\n\n @Field(type => Float, { nullable: true, description: '프로젝트 전체 진행현황 (%)' })\n totalProgress?: number\n\n @Field(type => Float, { nullable: true, description: '프로젝트 주간 진행현황 (%)' })\n weeklyProgress?: number\n\n @Field(type => Float, { nullable: true, description: '프로젝트 KPI' })\n kpi?: number\n\n @Field(type => Float, { nullable: true, description: '검측/통과 비율 (%)' })\n inspPassRate?: number\n\n @Field(type => Float, { nullable: true, description: '로봇 작업 진행율 (%)' })\n robotProgressRate?: number\n\n @Field(type => Float, { nullable: true, description: '구조 안전도 (%)' })\n structuralSafetyRate?: number\n\n @Field(type => Int, { nullable: true, description: '로봇 작업 대수' })\n robotCount?: number\n\n @Field(type => BuildingComplexPatch, { nullable: true, description: '연관된 건물 복합체 정보 (선택 사항)' })\n buildingComplex?: BuildingComplexPatch\n\n @Field({ nullable: true, description: '건물 용도 (RESIDENTIAL: 주거, NON_RESIDENTIAL: 비주거)' })\n buildingUsage?: BuildingUsage\n\n @Field({ nullable: true, description: '발주 유형 (PUBLIC: 공공, PRIVATE: 민간)' })\n sectorType?: SectorType\n\n @Field({ nullable: true, description: '우편 코드 (5자리)' })\n postalCode?: string\n\n @Field({ nullable: true, description: '지역 구분 코드 (시군구 식별, 통계 그룹핑용)' })\n geoGroup?: string\n\n @Field({ nullable: true, description: '현장 시방서 PDF URL (https 전체 URL)' })\n siteSpecPdfUrl?: string\n}\n\n@InputType()\nexport class ProjectCompleteStep1Patch {\n @Field({ nullable: false, description: '수정할 프로젝트의 ID' })\n id: string\n\n @Field(type => BuildingComplexPatch, { nullable: true, description: '연관된 건물 복합체 정보 (선택 사항)' })\n buildingComplex?: BuildingComplexPatch\n}\n\n@InputType()\nexport class UploadProjectScheduleTable {\n @Field({ nullable: false, description: '수정할 프로젝트의 ID' })\n projectId: string\n\n @Field(type => GraphQLUpload, { nullable: true, description: '프로젝트 공정표 업로드' })\n scheduleTable?: FileUpload\n}\n\n@ObjectType()\nexport class ProjectList {\n @Field(type => [Project], { description: '프로젝트 리스트 항목들' })\n items: Project[]\n\n @Field(type => Int, { description: '전체 프로젝트 수' })\n total: number\n}\n"]}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Domain } from '@things-factory/shell';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { Task } from '../task/task';
|
|
4
|
-
import { BuildingComplex } from '@dssp/building-complex';
|
|
5
|
-
import { Attachment } from '@things-factory/attachment-base';
|
|
6
|
-
export declare enum ProjectState {
|
|
7
|
-
'ONGOING' = "10",
|
|
8
|
-
'COMPLETED' = "20"
|
|
9
|
-
}
|
|
10
|
-
export declare enum InputType {
|
|
11
|
-
MANUAL = "10",
|
|
12
|
-
AUTO = "20"
|
|
13
|
-
}
|
|
14
|
-
export declare enum ProjectType {
|
|
15
|
-
DSSP = "DSSP",
|
|
16
|
-
DCSP = "DCSP",
|
|
17
|
-
DKPI = "DKPI"
|
|
18
|
-
}
|
|
19
|
-
export declare enum BuildingUsage {
|
|
20
|
-
RESIDENTIAL = "RESIDENTIAL",
|
|
21
|
-
NON_RESIDENTIAL = "NON_RESIDENTIAL"
|
|
22
|
-
}
|
|
23
|
-
export declare enum SectorType {
|
|
24
|
-
PUBLIC = "PUBLIC",
|
|
25
|
-
PRIVATE = "PRIVATE"
|
|
26
|
-
}
|
|
27
|
-
export declare class Project {
|
|
28
|
-
readonly id: string;
|
|
29
|
-
domain?: Domain;
|
|
30
|
-
domainId?: string;
|
|
31
|
-
code?: string;
|
|
32
|
-
name?: string;
|
|
33
|
-
documentNaming?: string;
|
|
34
|
-
state?: ProjectState;
|
|
35
|
-
siteSpecPdfUrl?: string;
|
|
36
|
-
startDate?: string;
|
|
37
|
-
endDate?: string;
|
|
38
|
-
mainPhoto?: Attachment;
|
|
39
|
-
totalProgress?: number;
|
|
40
|
-
weeklyProgress?: number;
|
|
41
|
-
kpi?: number;
|
|
42
|
-
inspPassRate?: number;
|
|
43
|
-
robotProgressRate?: number;
|
|
44
|
-
structuralSafetyRate?: number;
|
|
45
|
-
robotCount?: number;
|
|
46
|
-
postalCode?: string;
|
|
47
|
-
geoGroup?: string;
|
|
48
|
-
projectType?: ProjectType;
|
|
49
|
-
inputType?: InputType;
|
|
50
|
-
buildingUsage?: BuildingUsage;
|
|
51
|
-
sectorType?: SectorType;
|
|
52
|
-
buildingComplex?: BuildingComplex;
|
|
53
|
-
buildingComplexId?: string;
|
|
54
|
-
tasks?: Task[];
|
|
55
|
-
rootTasks?: Task[];
|
|
56
|
-
createdAt?: Date;
|
|
57
|
-
updatedAt?: Date;
|
|
58
|
-
deletedAt?: Date;
|
|
59
|
-
creator?: User;
|
|
60
|
-
creatorId?: string;
|
|
61
|
-
updater?: User;
|
|
62
|
-
updaterId?: string;
|
|
63
|
-
scheduleTable?: Attachment;
|
|
64
|
-
completeReport?: Attachment;
|
|
65
|
-
completeReportId?: string;
|
|
66
|
-
}
|