@dssp/project 1.0.0-y.0 → 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 +15 -15
- 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 -309
- 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 -357
- 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 -681
- 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 -32
- package/dist-client/pages/project/popup/checklist/task-checklist-view.js +0 -621
- 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 -41
- package/dist-client/pages/project/project-detail.js +0 -959
- package/dist-client/pages/project/project-detail.js.map +0 -1
- package/dist-client/pages/project/project-list.d.ts +0 -185
- package/dist-client/pages/project/project-list.js +0 -402
- 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 -487
- package/dist-client/pages/project/project-plan-management.js.map +0 -1
- package/dist-client/pages/project/project-setting-list.d.ts +0 -29
- package/dist-client/pages/project/project-setting-list.js +0 -431
- 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 -686
- package/dist-client/pages/project/project-task.js.map +0 -1
- package/dist-client/pages/project/project-update.d.ts +0 -47
- package/dist-client/pages/project/project-update.js +0 -1197
- 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 -200
- 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 -63
- package/dist-client/pages/resource/resource-list-page.js +0 -332
- 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 -63
- package/dist-client/pages/task/task-list-page.js +0 -323
- 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 -63
- package/dist-client/pages/task-resource/task-resource-list-page.js +0 -332
- 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/tsconfig.tsbuildinfo +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 -92
- 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 -11
- package/dist-server/service/construction-type/construction-type-type.js +0 -43
- package/dist-server/service/construction-type/construction-type-type.js.map +0 -1
- package/dist-server/service/construction-type/construction-type.d.ts +0 -18
- package/dist-server/service/construction-type/construction-type.js +0 -83
- 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 -83
- 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 -39
- 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/project-mutation.d.ts +0 -12
- package/dist-server/service/project/project-mutation.js +0 -339
- package/dist-server/service/project/project-mutation.js.map +0 -1
- package/dist-server/service/project/project-query.d.ts +0 -23
- package/dist-server/service/project/project-query.js +0 -215
- package/dist-server/service/project/project-query.js.map +0 -1
- package/dist-server/service/project/project-type.d.ts +0 -36
- package/dist-server/service/project/project-type.js +0 -128
- package/dist-server/service/project/project-type.js.map +0 -1
- package/dist-server/service/project/project.d.ts +0 -52
- package/dist-server/service/project/project.js +0 -190
- 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 -132
- 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 -81
- 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 -186
- 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 -50
- 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 -78
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-query.js","sourceRoot":"","sources":["../../../server/service/project/project-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,qCAAgC;AAChC,iDAAuG;AACvG,yDAAgD;AAChD,uCAAgD;AAChD,uCAAmC;AACnC,iDAA4C;AAC5C,qEAA4D;AAC5D,6DAAwD;AACxD,6CAA4C;AAC5C,6CAAmD;AAG5C,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,OAAO,MAAM,IAAA,qBAAa,EAAC,iBAAO,CAAC,CAAC,OAAO,CAAC;YAC1C,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;SACzC,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,QAAQ,CAAS,MAAiB,EAAS,OAAwB;QACvE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,MAAM;YACN,UAAU,EAAE,IAAA,qBAAa,EAAC,iBAAO,CAAC;YAClC,KAAK,EAAE,GAAG;YACV,WAAW,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ository, 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\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 return await getRepository(Project).findOne({\n where: { domain: { id: domain.id }, id }\n })\n }\n\n @Query(returns => ProjectList, { description: '프로젝트 리스트' })\n async projects(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ProjectList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: getRepository(Project),\n alias: 'p',\n searchables: ['name', 'description', 'state']\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(\n @Arg('buildingComplexId') buildingComplexId: string,\n @Ctx() context: ResolverContext\n ): Promise<Project> {\n const { domain } = context.state\n\n return await getRepository(Project).findOne({\n where: { domain: { id: domain.id }, 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 @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 domain: { id: project.domainId },\n refBy: project.id\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 domain: { id: project.domainId },\n refBy: project.id,\n refType: Project.name + '_schedule_table'\n }\n })\n\n return attachment\n }\n\n @FieldResolver(type => [Attachment])\n async completeReports(@Root() project: Project): Promise<Attachment[] | undefined> {\n const attachments: Attachment[] = await getRepository(Attachment).find({\n where: {\n refType: 'ProjectCompleteReport',\n refBy: project.id\n }\n })\n\n return attachments\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 => 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({ domain: { id: project.domainId }, name: 'Z. 전체스코어' })\n const kpiValue = await getRepository(KpiValue).findOneBy({ group: project.id, kpi: { id: kpi.id } })\n\n return kpiValue ? (kpiValue.value || 0) * 20 : project.kpi\n }\n}\n"]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Project } 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
|
-
documentNaming?: string;
|
|
13
|
-
startDate?: string;
|
|
14
|
-
endDate?: string;
|
|
15
|
-
mainPhotoUpload?: FileUpload;
|
|
16
|
-
totalProgress?: number;
|
|
17
|
-
weeklyProgress?: number;
|
|
18
|
-
kpi?: number;
|
|
19
|
-
inspPassRate?: number;
|
|
20
|
-
robotProgressRate?: number;
|
|
21
|
-
structuralSafetyRate?: number;
|
|
22
|
-
robotCount?: number;
|
|
23
|
-
buildingComplex?: BuildingComplexPatch;
|
|
24
|
-
}
|
|
25
|
-
export declare class ProjectCompleteStep1Patch {
|
|
26
|
-
id: string;
|
|
27
|
-
buildingComplex?: BuildingComplexPatch;
|
|
28
|
-
}
|
|
29
|
-
export declare class UploadProjectScheduleTable {
|
|
30
|
-
projectId: string;
|
|
31
|
-
scheduleTable?: FileUpload;
|
|
32
|
-
}
|
|
33
|
-
export declare class ProjectList {
|
|
34
|
-
items: Project[];
|
|
35
|
-
total: number;
|
|
36
|
-
}
|
|
@@ -1,128 +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: false, description: '프로젝트 이름' }),
|
|
33
|
-
tslib_1.__metadata("design:type", String)
|
|
34
|
-
], ProjectPatch.prototype, "name", void 0);
|
|
35
|
-
tslib_1.__decorate([
|
|
36
|
-
(0, type_graphql_1.Field)({ nullable: true, description: '프로젝트 문서 네이밍' }),
|
|
37
|
-
tslib_1.__metadata("design:type", String)
|
|
38
|
-
], ProjectPatch.prototype, "documentNaming", 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, "startDate", 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, "endDate", void 0);
|
|
47
|
-
tslib_1.__decorate([
|
|
48
|
-
(0, type_graphql_1.Field)(type => GraphQLUpload_js_1.default, { nullable: true, description: '프로젝트 대표 사진 업로드' }),
|
|
49
|
-
tslib_1.__metadata("design:type", Object)
|
|
50
|
-
], ProjectPatch.prototype, "mainPhotoUpload", void 0);
|
|
51
|
-
tslib_1.__decorate([
|
|
52
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true, description: '프로젝트 전체 진행현황 (%)' }),
|
|
53
|
-
tslib_1.__metadata("design:type", Number)
|
|
54
|
-
], ProjectPatch.prototype, "totalProgress", 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, "weeklyProgress", void 0);
|
|
59
|
-
tslib_1.__decorate([
|
|
60
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true, description: '프로젝트 KPI' }),
|
|
61
|
-
tslib_1.__metadata("design:type", Number)
|
|
62
|
-
], ProjectPatch.prototype, "kpi", void 0);
|
|
63
|
-
tslib_1.__decorate([
|
|
64
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true, description: '검측/통과 비율 (%)' }),
|
|
65
|
-
tslib_1.__metadata("design:type", Number)
|
|
66
|
-
], ProjectPatch.prototype, "inspPassRate", 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, "robotProgressRate", 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, "structuralSafetyRate", void 0);
|
|
75
|
-
tslib_1.__decorate([
|
|
76
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true, description: '로봇 작업 대수' }),
|
|
77
|
-
tslib_1.__metadata("design:type", Number)
|
|
78
|
-
], ProjectPatch.prototype, "robotCount", void 0);
|
|
79
|
-
tslib_1.__decorate([
|
|
80
|
-
(0, type_graphql_1.Field)(type => building_complex_1.BuildingComplexPatch, { nullable: true, description: '연관된 건물 복합체 정보 (선택 사항)' }),
|
|
81
|
-
tslib_1.__metadata("design:type", building_complex_1.BuildingComplexPatch)
|
|
82
|
-
], ProjectPatch.prototype, "buildingComplex", void 0);
|
|
83
|
-
exports.ProjectPatch = ProjectPatch = tslib_1.__decorate([
|
|
84
|
-
(0, type_graphql_1.InputType)()
|
|
85
|
-
], ProjectPatch);
|
|
86
|
-
let ProjectCompleteStep1Patch = class ProjectCompleteStep1Patch {
|
|
87
|
-
};
|
|
88
|
-
exports.ProjectCompleteStep1Patch = ProjectCompleteStep1Patch;
|
|
89
|
-
tslib_1.__decorate([
|
|
90
|
-
(0, type_graphql_1.Field)({ nullable: false, description: '수정할 프로젝트의 ID' }),
|
|
91
|
-
tslib_1.__metadata("design:type", String)
|
|
92
|
-
], ProjectCompleteStep1Patch.prototype, "id", void 0);
|
|
93
|
-
tslib_1.__decorate([
|
|
94
|
-
(0, type_graphql_1.Field)(type => building_complex_1.BuildingComplexPatch, { nullable: true, description: '연관된 건물 복합체 정보 (선택 사항)' }),
|
|
95
|
-
tslib_1.__metadata("design:type", building_complex_1.BuildingComplexPatch)
|
|
96
|
-
], ProjectCompleteStep1Patch.prototype, "buildingComplex", void 0);
|
|
97
|
-
exports.ProjectCompleteStep1Patch = ProjectCompleteStep1Patch = tslib_1.__decorate([
|
|
98
|
-
(0, type_graphql_1.InputType)()
|
|
99
|
-
], ProjectCompleteStep1Patch);
|
|
100
|
-
let UploadProjectScheduleTable = class UploadProjectScheduleTable {
|
|
101
|
-
};
|
|
102
|
-
exports.UploadProjectScheduleTable = UploadProjectScheduleTable;
|
|
103
|
-
tslib_1.__decorate([
|
|
104
|
-
(0, type_graphql_1.Field)({ nullable: false, description: '수정할 프로젝트의 ID' }),
|
|
105
|
-
tslib_1.__metadata("design:type", String)
|
|
106
|
-
], UploadProjectScheduleTable.prototype, "projectId", void 0);
|
|
107
|
-
tslib_1.__decorate([
|
|
108
|
-
(0, type_graphql_1.Field)(type => GraphQLUpload_js_1.default, { nullable: true, description: '프로젝트 공정표 업로드' }),
|
|
109
|
-
tslib_1.__metadata("design:type", Object)
|
|
110
|
-
], UploadProjectScheduleTable.prototype, "scheduleTable", void 0);
|
|
111
|
-
exports.UploadProjectScheduleTable = UploadProjectScheduleTable = tslib_1.__decorate([
|
|
112
|
-
(0, type_graphql_1.InputType)()
|
|
113
|
-
], UploadProjectScheduleTable);
|
|
114
|
-
let ProjectList = class ProjectList {
|
|
115
|
-
};
|
|
116
|
-
exports.ProjectList = ProjectList;
|
|
117
|
-
tslib_1.__decorate([
|
|
118
|
-
(0, type_graphql_1.Field)(type => [project_1.Project], { description: '프로젝트 리스트 항목들' }),
|
|
119
|
-
tslib_1.__metadata("design:type", Array)
|
|
120
|
-
], ProjectList.prototype, "items", void 0);
|
|
121
|
-
tslib_1.__decorate([
|
|
122
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: '전체 프로젝트 수' }),
|
|
123
|
-
tslib_1.__metadata("design:type", Number)
|
|
124
|
-
], ProjectList.prototype, "total", void 0);
|
|
125
|
-
exports.ProjectList = ProjectList = tslib_1.__decorate([
|
|
126
|
-
(0, type_graphql_1.ObjectType)()
|
|
127
|
-
], ProjectList);
|
|
128
|
-
//# 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,uCAAmC;AAEnC,+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,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;sCACjE,iBAAS;mDAAA;qBALhB,UAAU;IADtB,IAAA,wBAAS,GAAE;GACC,UAAU,CAMtB;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAY;CA0CxB,CAAA;AA1CY,oCAAY;AAEvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;;wCAC9C;AAGV;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;;0CACvC;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;;oDAC/B;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;;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AAW,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 } 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: false, description: '프로젝트 이름' })\n name: string\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\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,52 +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 class Project {
|
|
20
|
-
readonly id: string;
|
|
21
|
-
domain?: Domain;
|
|
22
|
-
domainId?: string;
|
|
23
|
-
name?: string;
|
|
24
|
-
documentNaming?: string;
|
|
25
|
-
state?: ProjectState;
|
|
26
|
-
startDate?: string;
|
|
27
|
-
endDate?: string;
|
|
28
|
-
mainPhoto?: Attachment;
|
|
29
|
-
totalProgress?: number;
|
|
30
|
-
weeklyProgress?: number;
|
|
31
|
-
kpi?: number;
|
|
32
|
-
inspPassRate?: number;
|
|
33
|
-
robotProgressRate?: number;
|
|
34
|
-
structuralSafetyRate?: number;
|
|
35
|
-
robotCount?: number;
|
|
36
|
-
postalCode?: string;
|
|
37
|
-
geoGroup?: string;
|
|
38
|
-
projectType?: ProjectType;
|
|
39
|
-
inputType?: InputType;
|
|
40
|
-
buildingComplex?: BuildingComplex;
|
|
41
|
-
buildingComplexId?: string;
|
|
42
|
-
tasks?: Task[];
|
|
43
|
-
rootTasks?: Task[];
|
|
44
|
-
createdAt?: Date;
|
|
45
|
-
updatedAt?: Date;
|
|
46
|
-
deletedAt?: Date;
|
|
47
|
-
creator?: User;
|
|
48
|
-
creatorId?: string;
|
|
49
|
-
updater?: User;
|
|
50
|
-
updaterId?: string;
|
|
51
|
-
scheduleTable?: Attachment;
|
|
52
|
-
}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Project = exports.ProjectType = exports.InputType = exports.ProjectState = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const typeorm_1 = require("typeorm");
|
|
6
|
-
const type_graphql_1 = require("type-graphql");
|
|
7
|
-
const shell_1 = require("@things-factory/shell");
|
|
8
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
-
const task_1 = require("../task/task");
|
|
10
|
-
const building_complex_1 = require("@dssp/building-complex");
|
|
11
|
-
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
12
|
-
var ProjectState;
|
|
13
|
-
(function (ProjectState) {
|
|
14
|
-
ProjectState["ONGOING"] = "10";
|
|
15
|
-
ProjectState["COMPLETED"] = "20";
|
|
16
|
-
})(ProjectState || (exports.ProjectState = ProjectState = {}));
|
|
17
|
-
var InputType;
|
|
18
|
-
(function (InputType) {
|
|
19
|
-
InputType["MANUAL"] = "10";
|
|
20
|
-
InputType["AUTO"] = "20";
|
|
21
|
-
})(InputType || (exports.InputType = InputType = {}));
|
|
22
|
-
var ProjectType;
|
|
23
|
-
(function (ProjectType) {
|
|
24
|
-
ProjectType["DSSP"] = "DSSP";
|
|
25
|
-
ProjectType["DCSP"] = "DCSP";
|
|
26
|
-
ProjectType["DKPI"] = "DKPI";
|
|
27
|
-
})(ProjectType || (exports.ProjectType = ProjectType = {}));
|
|
28
|
-
let Project = class Project {
|
|
29
|
-
};
|
|
30
|
-
exports.Project = Project;
|
|
31
|
-
tslib_1.__decorate([
|
|
32
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
33
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
34
|
-
tslib_1.__metadata("design:type", String)
|
|
35
|
-
], Project.prototype, "id", void 0);
|
|
36
|
-
tslib_1.__decorate([
|
|
37
|
-
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
38
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
39
|
-
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
40
|
-
], Project.prototype, "domain", void 0);
|
|
41
|
-
tslib_1.__decorate([
|
|
42
|
-
(0, typeorm_1.RelationId)((project) => project.domain),
|
|
43
|
-
tslib_1.__metadata("design:type", String)
|
|
44
|
-
], Project.prototype, "domainId", void 0);
|
|
45
|
-
tslib_1.__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ nullable: false, comment: '프로젝트 이름' }),
|
|
47
|
-
(0, type_graphql_1.Field)({ nullable: false }),
|
|
48
|
-
tslib_1.__metadata("design:type", String)
|
|
49
|
-
], Project.prototype, "name", void 0);
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '문서 네이밍 ({프로젝트 명} 검측 제00-00001호)' }),
|
|
52
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
53
|
-
tslib_1.__metadata("design:type", String)
|
|
54
|
-
], Project.prototype, "documentNaming", void 0);
|
|
55
|
-
tslib_1.__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ nullable: false, default: ProjectState.ONGOING, comment: '프로젝트 상태 (10: 진행중, 20: 완료)' }),
|
|
57
|
-
(0, type_graphql_1.Field)({ nullable: false }),
|
|
58
|
-
tslib_1.__metadata("design:type", String)
|
|
59
|
-
], Project.prototype, "state", void 0);
|
|
60
|
-
tslib_1.__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true, comment: '착공일정' }),
|
|
62
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
63
|
-
tslib_1.__metadata("design:type", String)
|
|
64
|
-
], Project.prototype, "startDate", void 0);
|
|
65
|
-
tslib_1.__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true, comment: '준공일정' }),
|
|
67
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
68
|
-
tslib_1.__metadata("design:type", String)
|
|
69
|
-
], Project.prototype, "endDate", void 0);
|
|
70
|
-
tslib_1.__decorate([
|
|
71
|
-
(0, type_graphql_1.Field)(type => attachment_base_1.Attachment, { nullable: true }),
|
|
72
|
-
tslib_1.__metadata("design:type", attachment_base_1.Attachment)
|
|
73
|
-
], Project.prototype, "mainPhoto", void 0);
|
|
74
|
-
tslib_1.__decorate([
|
|
75
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true, default: 0, transformer: shell_1.roundTransformer, comment: '전체 진행현황' }),
|
|
76
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
-
tslib_1.__metadata("design:type", Number)
|
|
78
|
-
], Project.prototype, "totalProgress", void 0);
|
|
79
|
-
tslib_1.__decorate([
|
|
80
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true, default: 0, transformer: shell_1.roundTransformer, comment: '주간 진행현황' }),
|
|
81
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
82
|
-
tslib_1.__metadata("design:type", Number)
|
|
83
|
-
], Project.prototype, "weeklyProgress", void 0);
|
|
84
|
-
tslib_1.__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true, default: 0, transformer: shell_1.roundTransformer, comment: 'KPI' }),
|
|
86
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
87
|
-
tslib_1.__metadata("design:type", Number)
|
|
88
|
-
], Project.prototype, "kpi", void 0);
|
|
89
|
-
tslib_1.__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true, default: 0, transformer: shell_1.roundTransformer, comment: '검측/통과 비율' }),
|
|
91
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
92
|
-
tslib_1.__metadata("design:type", Number)
|
|
93
|
-
], Project.prototype, "inspPassRate", void 0);
|
|
94
|
-
tslib_1.__decorate([
|
|
95
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true, default: 0, transformer: shell_1.roundTransformer, comment: '로봇 작업 진행율' }),
|
|
96
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
97
|
-
tslib_1.__metadata("design:type", Number)
|
|
98
|
-
], Project.prototype, "robotProgressRate", void 0);
|
|
99
|
-
tslib_1.__decorate([
|
|
100
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true, default: 0, transformer: shell_1.roundTransformer, comment: '구조 안전도' }),
|
|
101
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
102
|
-
tslib_1.__metadata("design:type", Number)
|
|
103
|
-
], Project.prototype, "structuralSafetyRate", void 0);
|
|
104
|
-
tslib_1.__decorate([
|
|
105
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true, default: 0, comment: '로봇 작업 대수' }),
|
|
106
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
107
|
-
tslib_1.__metadata("design:type", Number)
|
|
108
|
-
], Project.prototype, "robotCount", void 0);
|
|
109
|
-
tslib_1.__decorate([
|
|
110
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true, comment: '우편 코드 (5자리)' }),
|
|
111
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
112
|
-
tslib_1.__metadata("design:type", String)
|
|
113
|
-
], Project.prototype, "postalCode", void 0);
|
|
114
|
-
tslib_1.__decorate([
|
|
115
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true, comment: '지역 구분 코드 (우편 코드의 앞 2자리)' }),
|
|
116
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
117
|
-
tslib_1.__metadata("design:type", String)
|
|
118
|
-
], Project.prototype, "geoGroup", void 0);
|
|
119
|
-
tslib_1.__decorate([
|
|
120
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true, comment: '프로젝트 유형' }),
|
|
121
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
122
|
-
tslib_1.__metadata("design:type", String)
|
|
123
|
-
], Project.prototype, "projectType", void 0);
|
|
124
|
-
tslib_1.__decorate([
|
|
125
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true, comment: '입력 유형 (MANUAL: 수동, AUTO: 자동)' }),
|
|
126
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
127
|
-
tslib_1.__metadata("design:type", String)
|
|
128
|
-
], Project.prototype, "inputType", void 0);
|
|
129
|
-
tslib_1.__decorate([
|
|
130
|
-
(0, typeorm_1.OneToOne)(type => building_complex_1.BuildingComplex),
|
|
131
|
-
(0, typeorm_1.JoinColumn)(),
|
|
132
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
133
|
-
tslib_1.__metadata("design:type", building_complex_1.BuildingComplex)
|
|
134
|
-
], Project.prototype, "buildingComplex", void 0);
|
|
135
|
-
tslib_1.__decorate([
|
|
136
|
-
(0, typeorm_1.RelationId)((project) => project.buildingComplex),
|
|
137
|
-
tslib_1.__metadata("design:type", String)
|
|
138
|
-
], Project.prototype, "buildingComplexId", void 0);
|
|
139
|
-
tslib_1.__decorate([
|
|
140
|
-
(0, typeorm_1.OneToMany)(() => task_1.Task, task => task.project),
|
|
141
|
-
(0, type_graphql_1.Field)(() => [task_1.Task], { nullable: true }),
|
|
142
|
-
tslib_1.__metadata("design:type", Array)
|
|
143
|
-
], Project.prototype, "tasks", void 0);
|
|
144
|
-
tslib_1.__decorate([
|
|
145
|
-
(0, type_graphql_1.Field)(() => [task_1.Task], { nullable: true }),
|
|
146
|
-
tslib_1.__metadata("design:type", Array)
|
|
147
|
-
], Project.prototype, "rootTasks", void 0);
|
|
148
|
-
tslib_1.__decorate([
|
|
149
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
150
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
151
|
-
tslib_1.__metadata("design:type", Date)
|
|
152
|
-
], Project.prototype, "createdAt", void 0);
|
|
153
|
-
tslib_1.__decorate([
|
|
154
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
155
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
156
|
-
tslib_1.__metadata("design:type", Date)
|
|
157
|
-
], Project.prototype, "updatedAt", void 0);
|
|
158
|
-
tslib_1.__decorate([
|
|
159
|
-
(0, typeorm_1.DeleteDateColumn)(),
|
|
160
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
161
|
-
tslib_1.__metadata("design:type", Date)
|
|
162
|
-
], Project.prototype, "deletedAt", void 0);
|
|
163
|
-
tslib_1.__decorate([
|
|
164
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
165
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
166
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
167
|
-
], Project.prototype, "creator", void 0);
|
|
168
|
-
tslib_1.__decorate([
|
|
169
|
-
(0, typeorm_1.RelationId)((project) => project.creator),
|
|
170
|
-
tslib_1.__metadata("design:type", String)
|
|
171
|
-
], Project.prototype, "creatorId", void 0);
|
|
172
|
-
tslib_1.__decorate([
|
|
173
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
174
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
175
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
176
|
-
], Project.prototype, "updater", void 0);
|
|
177
|
-
tslib_1.__decorate([
|
|
178
|
-
(0, typeorm_1.RelationId)((project) => project.updater),
|
|
179
|
-
tslib_1.__metadata("design:type", String)
|
|
180
|
-
], Project.prototype, "updaterId", void 0);
|
|
181
|
-
tslib_1.__decorate([
|
|
182
|
-
(0, type_graphql_1.Field)(type => attachment_base_1.Attachment, { nullable: true }),
|
|
183
|
-
tslib_1.__metadata("design:type", attachment_base_1.Attachment)
|
|
184
|
-
], Project.prototype, "scheduleTable", void 0);
|
|
185
|
-
exports.Project = Project = tslib_1.__decorate([
|
|
186
|
-
(0, type_graphql_1.ObjectType)({ description: '프로젝트' }),
|
|
187
|
-
(0, typeorm_1.Entity)(),
|
|
188
|
-
(0, typeorm_1.Index)('ix_project_building', (project) => [project.buildingComplex], { unique: true, where: '"deleted_at" IS NULL' })
|
|
189
|
-
], Project);
|
|
190
|
-
//# sourceMappingURL=project.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../../server/service/project/project.ts"],"names":[],"mappings":";;;;AAAA,qCAagB;AAChB,+CAAoD;AAEpD,iDAAgE;AAChE,yDAAgD;AAChD,uCAAmC;AACnC,6DAAwD;AACxD,qEAA4D;AAE5D,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,8BAAgB,CAAA;IAChB,gCAAkB,CAAA;AACpB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AACD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,wBAAW,CAAA;AACb,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AACD,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,4BAAa,CAAA;IACb,4BAAa,CAAA;AACf,CAAC,E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AAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;wCAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;0CAChC;AAIlB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;wCAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;0CAChC;AAIlB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,4BAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,4BAAU;8CAAA;kBA9Hf,OAAO;IAHnB,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACnC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC;GAClH,OAAO,CA+HnB","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToOne,\n OneToMany,\n JoinColumn,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\n\nimport { Domain, roundTransformer } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Task } from '../task/task'\nimport { BuildingComplex } from '@dssp/building-complex'\nimport { Attachment } from '@things-factory/attachment-base'\n\nexport enum ProjectState {\n 'ONGOING' = '10',\n 'COMPLETED' = '20'\n}\nexport enum InputType {\n MANUAL = '10',\n AUTO = '20'\n}\nexport enum ProjectType {\n DSSP = 'DSSP',\n DCSP = 'DCSP',\n DKPI = 'DKPI'\n}\n\n@ObjectType({ description: '프로젝트' })\n@Entity()\n@Index('ix_project_building', (project: Project) => [project.buildingComplex], { unique: true, where: '\"deleted_at\" IS NULL' })\nexport class Project {\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((project: Project) => project.domain)\n domainId?: string\n\n @Column({ nullable: false, comment: '프로젝트 이름' })\n @Field({ nullable: false })\n name?: string\n\n @Column({ nullable: true, comment: '문서 네이밍 ({프로젝트 명} 검측 제00-00001호)' })\n @Field({ nullable: true })\n documentNaming?: string\n\n @Column({ nullable: false, default: ProjectState.ONGOING, comment: '프로젝트 상태 (10: 진행중, 20: 완료)' })\n @Field({ nullable: false })\n state?: ProjectState\n\n @Column({ type: 'date', nullable: true, comment: '착공일정' })\n @Field({ nullable: true })\n startDate?: string\n\n @Column({ type: 'date', nullable: true, comment: '준공일정' })\n @Field({ nullable: true })\n endDate?: string\n\n // 대표 사진\n @Field(type => Attachment, { nullable: true })\n mainPhoto?: Attachment\n\n @Column({ type: 'float', nullable: true, default: 0, transformer: roundTransformer, comment: '전체 진행현황' })\n @Field({ nullable: true })\n totalProgress?: number\n\n @Column({ type: 'float', nullable: true, default: 0, transformer: roundTransformer, comment: '주간 진행현황' })\n @Field({ nullable: true })\n weeklyProgress?: number\n\n @Column({ type: 'float', nullable: true, default: 0, transformer: roundTransformer, comment: 'KPI' })\n @Field({ nullable: true })\n kpi?: number\n\n @Column({ type: 'float', nullable: true, default: 0, transformer: roundTransformer, comment: '검측/통과 비율' })\n @Field({ nullable: true })\n inspPassRate?: number\n\n @Column({ type: 'float', nullable: true, default: 0, transformer: roundTransformer, comment: '로봇 작업 진행율' })\n @Field({ nullable: true })\n robotProgressRate?: number\n\n @Column({ type: 'float', nullable: true, default: 0, transformer: roundTransformer, comment: '구조 안전도' })\n @Field({ nullable: true })\n structuralSafetyRate?: number\n\n @Column({ type: 'int', nullable: true, default: 0, comment: '로봇 작업 대수' })\n @Field({ nullable: true })\n robotCount?: number\n\n @Column({ type: 'text', nullable: true, comment: '우편 코드 (5자리)' })\n @Field({ nullable: true })\n postalCode?: string\n\n @Column({ type: 'text', nullable: true, comment: '지역 구분 코드 (우편 코드의 앞 2자리)' })\n @Field({ nullable: true })\n geoGroup?: string\n\n @Column({ type: 'text', nullable: true, comment: '프로젝트 유형' })\n @Field({ nullable: true })\n projectType?: ProjectType\n\n @Column({ type: 'text', nullable: true, comment: '입력 유형 (MANUAL: 수동, AUTO: 자동)' })\n @Field({ nullable: true })\n inputType?: InputType\n\n // 단지 정보 (1:1 테이블 참조)\n @OneToOne(type => BuildingComplex)\n @JoinColumn()\n @Field({ nullable: true })\n buildingComplex?: BuildingComplex\n\n @RelationId((project: Project) => project.buildingComplex)\n buildingComplexId?: string\n\n // 작업 정보 (하위 테이블 참조)\n @OneToMany(() => Task, task => task.project)\n @Field(() => [Task], { nullable: true })\n tasks?: Task[]\n\n // 루트 작업 정보 (부모가 없는 상위 작업)\n @Field(() => [Task], { nullable: true })\n rootTasks?: Task[]\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((project: Project) => project.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((project: Project) => project.updater)\n updaterId?: string\n\n // 공정표 파일\n @Field(type => Attachment, { nullable: true })\n scheduleTable?: Attachment\n}\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Resource } from './resource';
|
|
2
|
-
import { ResourceQuery } from './resource-query';
|
|
3
|
-
import { ResourceMutation } from './resource-mutation';
|
|
4
|
-
export declare const entities: (typeof Resource)[];
|
|
5
|
-
export declare const resolvers: (typeof ResourceQuery | typeof ResourceMutation)[];
|
|
6
|
-
export declare const subscribers: any[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.subscribers = exports.resolvers = exports.entities = void 0;
|
|
4
|
-
const resource_1 = require("./resource");
|
|
5
|
-
const resource_query_1 = require("./resource-query");
|
|
6
|
-
const resource_mutation_1 = require("./resource-mutation");
|
|
7
|
-
exports.entities = [resource_1.Resource];
|
|
8
|
-
exports.resolvers = [resource_query_1.ResourceQuery, resource_mutation_1.ResourceMutation];
|
|
9
|
-
exports.subscribers = [];
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/resource/index.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AACrC,qDAAgD;AAChD,2DAAsD;AAEzC,QAAA,QAAQ,GAAG,CAAC,mBAAQ,CAAC,CAAA;AACrB,QAAA,SAAS,GAAG,CAAC,8BAAa,EAAE,oCAAgB,CAAC,CAAA;AAC7C,QAAA,WAAW,GAAG,EAAE,CAAA","sourcesContent":["import { Resource } from './resource'\nimport { ResourceQuery } from './resource-query'\nimport { ResourceMutation } from './resource-mutation'\n\nexport const entities = [Resource]\nexport const resolvers = [ResourceQuery, ResourceMutation]\nexport const subscribers = []\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Resource } from './resource';
|
|
2
|
-
import { NewResource, ResourcePatch } from './resource-type';
|
|
3
|
-
export declare class ResourceMutation {
|
|
4
|
-
createResource(resource: NewResource, context: ResolverContext): Promise<Resource>;
|
|
5
|
-
updateResource(id: string, patch: ResourcePatch, context: ResolverContext): Promise<Resource>;
|
|
6
|
-
updateMultipleResource(patches: ResourcePatch[], context: ResolverContext): Promise<Resource[]>;
|
|
7
|
-
deleteResource(id: string, context: ResolverContext): Promise<boolean>;
|
|
8
|
-
deleteResources(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
9
|
-
importResources(resources: ResourcePatch[], context: ResolverContext): Promise<boolean>;
|
|
10
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResourceMutation = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const typeorm_1 = require("typeorm");
|
|
7
|
-
const resource_1 = require("./resource");
|
|
8
|
-
const resource_type_1 = require("./resource-type");
|
|
9
|
-
let ResourceMutation = class ResourceMutation {
|
|
10
|
-
async createResource(resource, context) {
|
|
11
|
-
const { domain, user, tx } = context.state;
|
|
12
|
-
const result = await tx.getRepository(resource_1.Resource).save(Object.assign(Object.assign({}, resource), { domain, creator: user, updater: user }));
|
|
13
|
-
return result;
|
|
14
|
-
}
|
|
15
|
-
async updateResource(id, patch, context) {
|
|
16
|
-
const { domain, user, tx } = context.state;
|
|
17
|
-
const repository = tx.getRepository(resource_1.Resource);
|
|
18
|
-
const resource = await repository.findOne({
|
|
19
|
-
where: { domain: { id: domain.id }, id }
|
|
20
|
-
});
|
|
21
|
-
const result = await repository.save(Object.assign(Object.assign(Object.assign({}, resource), patch), { updater: user }));
|
|
22
|
-
return result;
|
|
23
|
-
}
|
|
24
|
-
async updateMultipleResource(patches, context) {
|
|
25
|
-
const { domain, user, tx } = context.state;
|
|
26
|
-
let results = [];
|
|
27
|
-
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
28
|
-
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
29
|
-
const resourceRepo = tx.getRepository(resource_1.Resource);
|
|
30
|
-
if (_createRecords.length > 0) {
|
|
31
|
-
for (let i = 0; i < _createRecords.length; i++) {
|
|
32
|
-
const newRecord = _createRecords[i];
|
|
33
|
-
const result = await resourceRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
|
|
34
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
if (_updateRecords.length > 0) {
|
|
38
|
-
for (let i = 0; i < _updateRecords.length; i++) {
|
|
39
|
-
const updateRecord = _updateRecords[i];
|
|
40
|
-
const resource = await resourceRepo.findOneBy({ id: updateRecord.id });
|
|
41
|
-
const result = await resourceRepo.save(Object.assign(Object.assign(Object.assign({}, resource), updateRecord), { updater: user }));
|
|
42
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return results;
|
|
46
|
-
}
|
|
47
|
-
async deleteResource(id, context) {
|
|
48
|
-
const { domain, tx } = context.state;
|
|
49
|
-
await tx.getRepository(resource_1.Resource).delete({ domain: { id: domain.id }, id });
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
async deleteResources(ids, context) {
|
|
53
|
-
const { domain, tx } = context.state;
|
|
54
|
-
await tx.getRepository(resource_1.Resource).delete({
|
|
55
|
-
domain: { id: domain.id },
|
|
56
|
-
id: (0, typeorm_1.In)(ids)
|
|
57
|
-
});
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
async importResources(resources, context) {
|
|
61
|
-
const { domain, tx } = context.state;
|
|
62
|
-
await Promise.all(resources.map(async (resource) => {
|
|
63
|
-
const createdResource = await tx.getRepository(resource_1.Resource).save(Object.assign({ domain }, resource));
|
|
64
|
-
}));
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
exports.ResourceMutation = ResourceMutation;
|
|
69
|
-
tslib_1.__decorate([
|
|
70
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
71
|
-
(0, type_graphql_1.Directive)('@privilege(category: "project", privilege: "mutation", domainOwnerGranted: true)'),
|
|
72
|
-
(0, type_graphql_1.Mutation)(returns => resource_1.Resource, { description: 'To create new Resource' }),
|
|
73
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('resource')),
|
|
74
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
75
|
-
tslib_1.__metadata("design:type", Function),
|
|
76
|
-
tslib_1.__metadata("design:paramtypes", [resource_type_1.NewResource, Object]),
|
|
77
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
78
|
-
], ResourceMutation.prototype, "createResource", null);
|
|
79
|
-
tslib_1.__decorate([
|
|
80
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
81
|
-
(0, type_graphql_1.Directive)('@privilege(category: "project", privilege: "mutation", domainOwnerGranted: true)'),
|
|
82
|
-
(0, type_graphql_1.Mutation)(returns => resource_1.Resource, { description: 'To modify Resource information' }),
|
|
83
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
84
|
-
tslib_1.__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
85
|
-
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
86
|
-
tslib_1.__metadata("design:type", Function),
|
|
87
|
-
tslib_1.__metadata("design:paramtypes", [String, resource_type_1.ResourcePatch, Object]),
|
|
88
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
89
|
-
], ResourceMutation.prototype, "updateResource", null);
|
|
90
|
-
tslib_1.__decorate([
|
|
91
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
92
|
-
(0, type_graphql_1.Directive)('@privilege(category: "project", privilege: "mutation", domainOwnerGranted: true)'),
|
|
93
|
-
(0, type_graphql_1.Mutation)(returns => [resource_1.Resource], { description: "To modify multiple Resources' information" }),
|
|
94
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [resource_type_1.ResourcePatch])),
|
|
95
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
96
|
-
tslib_1.__metadata("design:type", Function),
|
|
97
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
98
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
99
|
-
], ResourceMutation.prototype, "updateMultipleResource", null);
|
|
100
|
-
tslib_1.__decorate([
|
|
101
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
102
|
-
(0, type_graphql_1.Directive)('@privilege(category: "project", privilege: "mutation", domainOwnerGranted: true)'),
|
|
103
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete Resource' }),
|
|
104
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
105
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
106
|
-
tslib_1.__metadata("design:type", Function),
|
|
107
|
-
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
108
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
109
|
-
], ResourceMutation.prototype, "deleteResource", null);
|
|
110
|
-
tslib_1.__decorate([
|
|
111
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
112
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple Resources' }),
|
|
113
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
114
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
115
|
-
tslib_1.__metadata("design:type", Function),
|
|
116
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
117
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
118
|
-
], ResourceMutation.prototype, "deleteResources", null);
|
|
119
|
-
tslib_1.__decorate([
|
|
120
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
121
|
-
(0, type_graphql_1.Directive)('@privilege(category: "project", privilege: "mutation", domainOwnerGranted: true)'),
|
|
122
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To import multiple Resources' }),
|
|
123
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('resources', type => [resource_type_1.ResourcePatch])),
|
|
124
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
125
|
-
tslib_1.__metadata("design:type", Function),
|
|
126
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
127
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
128
|
-
], ResourceMutation.prototype, "importResources", null);
|
|
129
|
-
exports.ResourceMutation = ResourceMutation = tslib_1.__decorate([
|
|
130
|
-
(0, type_graphql_1.Resolver)(resource_1.Resource)
|
|
131
|
-
], ResourceMutation);
|
|
132
|
-
//# sourceMappingURL=resource-mutation.js.map
|