@dssp/supervision 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 +14 -12
- package/things-factory.config.js +7 -1
- package/dist-client/bootstrap.d.ts +0 -1
- package/dist-client/bootstrap.js +0 -2
- package/dist-client/bootstrap.js.map +0 -1
- package/dist-client/graphql/building-inspection.d.ts +0 -1
- package/dist-client/graphql/building-inspection.js +0 -100
- package/dist-client/graphql/building-inspection.js.map +0 -1
- package/dist-client/index.d.ts +0 -0
- package/dist-client/index.js +0 -2
- package/dist-client/index.js.map +0 -1
- package/dist-client/pages/action-plan/action-plan-importer.d.ts +0 -10
- package/dist-client/pages/action-plan/action-plan-importer.js +0 -101
- package/dist-client/pages/action-plan/action-plan-importer.js.map +0 -1
- package/dist-client/pages/action-plan/action-plan-list-page.d.ts +0 -63
- package/dist-client/pages/action-plan/action-plan-list-page.js +0 -323
- package/dist-client/pages/action-plan/action-plan-list-page.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +0 -22
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +0 -169
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +0 -57
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +0 -825
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +0 -27
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +0 -341
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +0 -29
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +0 -315
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +0 -36
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +0 -368
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +0 -1
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +0 -90
- package/dist-client/pages/building-inspection/building-inspection-list.js +0 -904
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +0 -1
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +0 -4
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +0 -233
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +0 -1
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +0 -27
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +0 -542
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +0 -1
- package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +0 -15
- package/dist-client/pages/building-inspection/component/image-preview-popup.js +0 -351
- package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +0 -1
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +0 -20
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +0 -432
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +0 -1
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +0 -30
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +0 -479
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +0 -1
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +0 -27
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +0 -416
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +0 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +0 -8
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +0 -93
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +0 -1
- package/dist-client/pages/building-inspection/inspection-create-popup.d.ts +0 -3
- package/dist-client/pages/building-inspection/inspection-create-popup.js +0 -840
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +0 -1
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +0 -60
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +0 -1132
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +0 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +0 -2
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +0 -740
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +0 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +0 -19
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +0 -205
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +0 -1
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +0 -1
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +0 -304
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +0 -1
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +0 -15
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +0 -430
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +0 -1
- package/dist-client/pages/checklist/attachment-list-popup.d.ts +0 -3
- package/dist-client/pages/checklist/attachment-list-popup.js +0 -493
- package/dist-client/pages/checklist/attachment-list-popup.js.map +0 -1
- package/dist-client/pages/checklist/checklist-view.d.ts +0 -15
- package/dist-client/pages/checklist/checklist-view.js +0 -738
- package/dist-client/pages/checklist/checklist-view.js.map +0 -1
- package/dist-client/pages/checklist/comment-list-popup.d.ts +0 -1
- package/dist-client/pages/checklist/comment-list-popup.js +0 -368
- package/dist-client/pages/checklist/comment-list-popup.js.map +0 -1
- package/dist-client/pages/checklist/file-preview-popup.d.ts +0 -1
- package/dist-client/pages/checklist/file-preview-popup.js +0 -77
- package/dist-client/pages/checklist/file-preview-popup.js.map +0 -1
- package/dist-client/pages/checklist/inspection-info-popup.d.ts +0 -50
- package/dist-client/pages/checklist/inspection-info-popup.js +0 -684
- package/dist-client/pages/checklist/inspection-info-popup.js.map +0 -1
- package/dist-client/pages/checklist/inspection-tab-popup.d.ts +0 -18
- package/dist-client/pages/checklist/inspection-tab-popup.js +0 -196
- package/dist-client/pages/checklist/inspection-tab-popup.js.map +0 -1
- package/dist-client/pages/checklist-template/checklist-template-item.d.ts +0 -2
- package/dist-client/pages/checklist-template/checklist-template-item.js +0 -253
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +0 -1
- package/dist-client/pages/checklist-template/checklist-template-list.d.ts +0 -53
- package/dist-client/pages/checklist-template/checklist-template-list.js +0 -349
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +0 -1
- package/dist-client/pages/checklist-template/checklist-type-management.d.ts +0 -55
- package/dist-client/pages/checklist-template/checklist-type-management.js +0 -250
- package/dist-client/pages/checklist-template/checklist-type-management.js.map +0 -1
- package/dist-client/pages/issue/issue-importer.d.ts +0 -10
- package/dist-client/pages/issue/issue-importer.js +0 -101
- package/dist-client/pages/issue/issue-importer.js.map +0 -1
- package/dist-client/pages/issue/issue-list-page.d.ts +0 -63
- package/dist-client/pages/issue/issue-list-page.js +0 -323
- package/dist-client/pages/issue/issue-list-page.js.map +0 -1
- package/dist-client/pages/project-report/project-report-importer.d.ts +0 -10
- package/dist-client/pages/project-report/project-report-importer.js +0 -101
- package/dist-client/pages/project-report/project-report-importer.js.map +0 -1
- package/dist-client/pages/project-report/project-report-list-page.d.ts +0 -63
- package/dist-client/pages/project-report/project-report-list-page.js +0 -323
- package/dist-client/pages/project-report/project-report-list-page.js.map +0 -1
- package/dist-client/pages/supervisor/supervisor-importer.d.ts +0 -10
- package/dist-client/pages/supervisor/supervisor-importer.js +0 -101
- package/dist-client/pages/supervisor/supervisor-importer.js.map +0 -1
- package/dist-client/pages/supervisor/supervisor-list-page.d.ts +0 -63
- package/dist-client/pages/supervisor/supervisor-list-page.js +0 -323
- package/dist-client/pages/supervisor/supervisor-list-page.js.map +0 -1
- package/dist-client/route.d.ts +0 -1
- package/dist-client/route.js +0 -32
- package/dist-client/route.js.map +0 -1
- package/dist-client/stt/speech-to-text.d.ts +0 -36
- package/dist-client/stt/speech-to-text.js +0 -89
- package/dist-client/stt/speech-to-text.js.map +0 -1
- package/dist-client/stt/stt-utils.d.ts +0 -28
- package/dist-client/stt/stt-utils.js +0 -146
- package/dist-client/stt/stt-utils.js.map +0 -1
- package/dist-client/tsconfig.tsbuildinfo +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/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/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 -0
- package/dist-server/routes.js +0 -25
- package/dist-server/routes.js.map +0 -1
- package/dist-server/service/action-plan/action-plan-mutation.d.ts +0 -10
- package/dist-server/service/action-plan/action-plan-mutation.js +0 -168
- package/dist-server/service/action-plan/action-plan-mutation.js.map +0 -1
- package/dist-server/service/action-plan/action-plan-query.d.ts +0 -12
- package/dist-server/service/action-plan/action-plan-query.js +0 -97
- package/dist-server/service/action-plan/action-plan-query.js.map +0 -1
- package/dist-server/service/action-plan/action-plan-type.d.ts +0 -23
- package/dist-server/service/action-plan/action-plan-type.js +0 -86
- package/dist-server/service/action-plan/action-plan-type.js.map +0 -1
- package/dist-server/service/action-plan/action-plan.d.ts +0 -27
- package/dist-server/service/action-plan/action-plan.js +0 -116
- package/dist-server/service/action-plan/action-plan.js.map +0 -1
- package/dist-server/service/action-plan/index.d.ts +0 -5
- package/dist-server/service/action-plan/index.js +0 -9
- package/dist-server/service/action-plan/index.js.map +0 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +0 -9
- package/dist-server/service/building-inspection/building-inspection-mutation.js +0 -370
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +0 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +0 -20
- package/dist-server/service/building-inspection/building-inspection-query.js +0 -277
- package/dist-server/service/building-inspection/building-inspection-query.js.map +0 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +0 -80
- package/dist-server/service/building-inspection/building-inspection-type.js +0 -296
- package/dist-server/service/building-inspection/building-inspection-type.js.map +0 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +0 -41
- package/dist-server/service/building-inspection/building-inspection.js +0 -168
- package/dist-server/service/building-inspection/building-inspection.js.map +0 -1
- package/dist-server/service/building-inspection/index.d.ts +0 -7
- package/dist-server/service/building-inspection/index.js +0 -19
- package/dist-server/service/building-inspection/index.js.map +0 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +0 -6
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +0 -56
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +0 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +0 -16
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +0 -171
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +0 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +0 -23
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +0 -90
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +0 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +0 -33
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +0 -132
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +0 -1
- package/dist-server/service/building-inspection-daily-worklog/index.d.ts +0 -5
- package/dist-server/service/building-inspection-daily-worklog/index.js +0 -9
- package/dist-server/service/building-inspection-daily-worklog/index.js.map +0 -1
- package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +0 -16
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js +0 -120
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +0 -1
- package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +0 -5
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js +0 -21
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +0 -1
- package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +0 -34
- package/dist-server/service/building-inspection-history/building-inspection-history.js +0 -157
- package/dist-server/service/building-inspection-history/building-inspection-history.js.map +0 -1
- package/dist-server/service/building-inspection-history/event-subscriber.d.ts +0 -7
- package/dist-server/service/building-inspection-history/event-subscriber.js +0 -21
- package/dist-server/service/building-inspection-history/event-subscriber.js.map +0 -1
- package/dist-server/service/building-inspection-history/index.d.ts +0 -6
- package/dist-server/service/building-inspection-history/index.js +0 -10
- package/dist-server/service/building-inspection-history/index.js.map +0 -1
- package/dist-server/service/checklist/checklist-mutation.d.ts +0 -3
- package/dist-server/service/checklist/checklist-mutation.js +0 -30
- package/dist-server/service/checklist/checklist-mutation.js.map +0 -1
- package/dist-server/service/checklist/checklist-query.d.ts +0 -21
- package/dist-server/service/checklist/checklist-query.js +0 -177
- package/dist-server/service/checklist/checklist-query.js.map +0 -1
- package/dist-server/service/checklist/checklist-type.d.ts +0 -5
- package/dist-server/service/checklist/checklist-type.js +0 -21
- package/dist-server/service/checklist/checklist-type.js.map +0 -1
- package/dist-server/service/checklist/checklist.d.ts +0 -66
- package/dist-server/service/checklist/checklist.js +0 -259
- package/dist-server/service/checklist/checklist.js.map +0 -1
- package/dist-server/service/checklist/event-subscriber.d.ts +0 -7
- package/dist-server/service/checklist/event-subscriber.js +0 -21
- package/dist-server/service/checklist/event-subscriber.js.map +0 -1
- package/dist-server/service/checklist/index.d.ts +0 -5
- package/dist-server/service/checklist/index.js +0 -9
- package/dist-server/service/checklist/index.js.map +0 -1
- package/dist-server/service/checklist-history/checklist-history-query.d.ts +0 -11
- package/dist-server/service/checklist-history/checklist-history-query.js +0 -77
- package/dist-server/service/checklist-history/checklist-history-query.js.map +0 -1
- package/dist-server/service/checklist-history/checklist-history-type.d.ts +0 -5
- package/dist-server/service/checklist-history/checklist-history-type.js +0 -21
- package/dist-server/service/checklist-history/checklist-history-type.js.map +0 -1
- package/dist-server/service/checklist-history/checklist-history.d.ts +0 -50
- package/dist-server/service/checklist-history/checklist-history.js +0 -239
- package/dist-server/service/checklist-history/checklist-history.js.map +0 -1
- package/dist-server/service/checklist-history/event-subscriber.d.ts +0 -7
- package/dist-server/service/checklist-history/event-subscriber.js +0 -21
- package/dist-server/service/checklist-history/event-subscriber.js.map +0 -1
- package/dist-server/service/checklist-history/index.d.ts +0 -6
- package/dist-server/service/checklist-history/index.js +0 -10
- package/dist-server/service/checklist-history/index.js.map +0 -1
- package/dist-server/service/checklist-item/checklist-item-mutation.d.ts +0 -2
- package/dist-server/service/checklist-item/checklist-item-mutation.js +0 -13
- package/dist-server/service/checklist-item/checklist-item-mutation.js.map +0 -1
- package/dist-server/service/checklist-item/checklist-item-query.d.ts +0 -18
- package/dist-server/service/checklist-item/checklist-item-query.js +0 -138
- package/dist-server/service/checklist-item/checklist-item-query.js.map +0 -1
- package/dist-server/service/checklist-item/checklist-item-type.d.ts +0 -5
- package/dist-server/service/checklist-item/checklist-item-type.js +0 -21
- package/dist-server/service/checklist-item/checklist-item-type.js.map +0 -1
- package/dist-server/service/checklist-item/checklist-item.d.ts +0 -27
- package/dist-server/service/checklist-item/checklist-item.js +0 -114
- package/dist-server/service/checklist-item/checklist-item.js.map +0 -1
- package/dist-server/service/checklist-item/index.d.ts +0 -4
- package/dist-server/service/checklist-item/index.js +0 -9
- package/dist-server/service/checklist-item/index.js.map +0 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.d.ts +0 -16
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js +0 -83
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js.map +0 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +0 -8
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +0 -114
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +0 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.d.ts +0 -7
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +0 -49
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +0 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.d.ts +0 -14
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +0 -53
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +0 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment.d.ts +0 -12
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js +0 -57
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +0 -1
- package/dist-server/service/checklist-item-comment/index.d.ts +0 -5
- package/dist-server/service/checklist-item-comment/index.js +0 -10
- package/dist-server/service/checklist-item-comment/index.js.map +0 -1
- package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +0 -16
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js +0 -123
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +0 -1
- package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +0 -5
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js +0 -21
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +0 -1
- package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +0 -25
- package/dist-server/service/checklist-item-history/checklist-item-history.js +0 -123
- package/dist-server/service/checklist-item-history/checklist-item-history.js.map +0 -1
- package/dist-server/service/checklist-item-history/event-subscriber.d.ts +0 -7
- package/dist-server/service/checklist-item-history/event-subscriber.js +0 -21
- package/dist-server/service/checklist-item-history/event-subscriber.js.map +0 -1
- package/dist-server/service/checklist-item-history/index.d.ts +0 -6
- package/dist-server/service/checklist-item-history/index.js +0 -10
- package/dist-server/service/checklist-item-history/index.js.map +0 -1
- package/dist-server/service/checklist-template/checklist-template-mutation.d.ts +0 -6
- package/dist-server/service/checklist-template/checklist-template-mutation.js +0 -64
- package/dist-server/service/checklist-template/checklist-template-mutation.js.map +0 -1
- package/dist-server/service/checklist-template/checklist-template-query.d.ts +0 -10
- package/dist-server/service/checklist-template/checklist-template-query.js +0 -65
- package/dist-server/service/checklist-template/checklist-template-query.js.map +0 -1
- package/dist-server/service/checklist-template/checklist-template-type.d.ts +0 -10
- package/dist-server/service/checklist-template/checklist-template-type.js +0 -39
- package/dist-server/service/checklist-template/checklist-template-type.js.map +0 -1
- package/dist-server/service/checklist-template/checklist-template.d.ts +0 -17
- package/dist-server/service/checklist-template/checklist-template.js +0 -78
- package/dist-server/service/checklist-template/checklist-template.js.map +0 -1
- package/dist-server/service/checklist-template/index.d.ts +0 -5
- package/dist-server/service/checklist-template/index.js +0 -9
- package/dist-server/service/checklist-template/index.js.map +0 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.d.ts +0 -7
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +0 -71
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +0 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-query.d.ts +0 -11
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js +0 -78
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +0 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +0 -18
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js +0 -65
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +0 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +0 -25
- package/dist-server/service/checklist-template-item/checklist-template-item.js +0 -101
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +0 -1
- package/dist-server/service/checklist-template-item/index.d.ts +0 -5
- package/dist-server/service/checklist-template-item/index.js +0 -9
- package/dist-server/service/checklist-template-item/index.js.map +0 -1
- package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +0 -2
- package/dist-server/service/checklist-template-item/spec-matching-service.js +0 -50
- package/dist-server/service/checklist-template-item/spec-matching-service.js.map +0 -1
- package/dist-server/service/checklist-type/checklist-type-mutation.d.ts +0 -6
- package/dist-server/service/checklist-type/checklist-type-mutation.js +0 -64
- package/dist-server/service/checklist-type/checklist-type-mutation.js.map +0 -1
- package/dist-server/service/checklist-type/checklist-type-query.d.ts +0 -10
- package/dist-server/service/checklist-type/checklist-type-query.js +0 -65
- package/dist-server/service/checklist-type/checklist-type-query.js.map +0 -1
- package/dist-server/service/checklist-type/checklist-type-type.d.ts +0 -11
- package/dist-server/service/checklist-type/checklist-type-type.js +0 -43
- package/dist-server/service/checklist-type/checklist-type-type.js.map +0 -1
- package/dist-server/service/checklist-type/checklist-type.d.ts +0 -19
- package/dist-server/service/checklist-type/checklist-type.js +0 -78
- package/dist-server/service/checklist-type/checklist-type.js.map +0 -1
- package/dist-server/service/checklist-type/index.d.ts +0 -5
- package/dist-server/service/checklist-type/index.js +0 -9
- package/dist-server/service/checklist-type/index.js.map +0 -1
- package/dist-server/service/index.d.ts +0 -18
- package/dist-server/service/index.js +0 -78
- package/dist-server/service/index.js.map +0 -1
- package/dist-server/service/issue/index.d.ts +0 -5
- package/dist-server/service/issue/index.js +0 -9
- package/dist-server/service/issue/index.js.map +0 -1
- package/dist-server/service/issue/issue-mutation.d.ts +0 -10
- package/dist-server/service/issue/issue-mutation.js +0 -168
- package/dist-server/service/issue/issue-mutation.js.map +0 -1
- package/dist-server/service/issue/issue-query.d.ts +0 -12
- package/dist-server/service/issue/issue-query.js +0 -97
- package/dist-server/service/issue/issue-query.js.map +0 -1
- package/dist-server/service/issue/issue-type.d.ts +0 -23
- package/dist-server/service/issue/issue-type.js +0 -86
- package/dist-server/service/issue/issue-type.js.map +0 -1
- package/dist-server/service/issue/issue.d.ts +0 -26
- package/dist-server/service/issue/issue.js +0 -111
- package/dist-server/service/issue/issue.js.map +0 -1
- package/dist-server/service/project-report/index.d.ts +0 -5
- package/dist-server/service/project-report/index.js +0 -9
- package/dist-server/service/project-report/index.js.map +0 -1
- package/dist-server/service/project-report/project-report-mutation.d.ts +0 -10
- package/dist-server/service/project-report/project-report-mutation.js +0 -168
- package/dist-server/service/project-report/project-report-mutation.js.map +0 -1
- package/dist-server/service/project-report/project-report-query.d.ts +0 -12
- package/dist-server/service/project-report/project-report-query.js +0 -97
- package/dist-server/service/project-report/project-report-query.js.map +0 -1
- package/dist-server/service/project-report/project-report-type.d.ts +0 -23
- package/dist-server/service/project-report/project-report-type.js +0 -86
- package/dist-server/service/project-report/project-report-type.js.map +0 -1
- package/dist-server/service/project-report/project-report.d.ts +0 -28
- package/dist-server/service/project-report/project-report.js +0 -121
- package/dist-server/service/project-report/project-report.js.map +0 -1
- package/dist-server/service/supervisor/index.d.ts +0 -5
- package/dist-server/service/supervisor/index.js +0 -9
- package/dist-server/service/supervisor/index.js.map +0 -1
- package/dist-server/service/supervisor/supervisor-mutation.d.ts +0 -10
- package/dist-server/service/supervisor/supervisor-mutation.js +0 -168
- package/dist-server/service/supervisor/supervisor-mutation.js.map +0 -1
- package/dist-server/service/supervisor/supervisor-query.d.ts +0 -12
- package/dist-server/service/supervisor/supervisor-query.js +0 -97
- package/dist-server/service/supervisor/supervisor-query.js.map +0 -1
- package/dist-server/service/supervisor/supervisor-type.d.ts +0 -23
- package/dist-server/service/supervisor/supervisor-type.js +0 -86
- package/dist-server/service/supervisor/supervisor-type.js.map +0 -1
- package/dist-server/service/supervisor/supervisor.d.ts +0 -28
- package/dist-server/service/supervisor/supervisor.js +0 -121
- package/dist-server/service/supervisor/supervisor.js.map +0 -1
- package/dist-server/tsconfig.tsbuildinfo +0 -1
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IssueList = exports.IssuePatch = exports.NewIssue = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const GraphQLUpload_js_1 = tslib_1.__importDefault(require("graphql-upload/GraphQLUpload.js"));
|
|
6
|
-
const type_graphql_1 = require("type-graphql");
|
|
7
|
-
const issue_1 = require("./issue");
|
|
8
|
-
let NewIssue = class NewIssue {
|
|
9
|
-
};
|
|
10
|
-
exports.NewIssue = NewIssue;
|
|
11
|
-
tslib_1.__decorate([
|
|
12
|
-
(0, type_graphql_1.Field)(),
|
|
13
|
-
tslib_1.__metadata("design:type", String)
|
|
14
|
-
], NewIssue.prototype, "name", void 0);
|
|
15
|
-
tslib_1.__decorate([
|
|
16
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
17
|
-
tslib_1.__metadata("design:type", String)
|
|
18
|
-
], NewIssue.prototype, "description", void 0);
|
|
19
|
-
tslib_1.__decorate([
|
|
20
|
-
(0, type_graphql_1.Field)(type => issue_1.IssueStatus, { nullable: true }),
|
|
21
|
-
tslib_1.__metadata("design:type", String)
|
|
22
|
-
], NewIssue.prototype, "state", void 0);
|
|
23
|
-
tslib_1.__decorate([
|
|
24
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
25
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
26
|
-
], NewIssue.prototype, "active", void 0);
|
|
27
|
-
tslib_1.__decorate([
|
|
28
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
29
|
-
tslib_1.__metadata("design:type", String)
|
|
30
|
-
], NewIssue.prototype, "params", void 0);
|
|
31
|
-
tslib_1.__decorate([
|
|
32
|
-
(0, type_graphql_1.Field)(type => GraphQLUpload_js_1.default, { nullable: true }),
|
|
33
|
-
tslib_1.__metadata("design:type", Object)
|
|
34
|
-
], NewIssue.prototype, "thumbnail", void 0);
|
|
35
|
-
exports.NewIssue = NewIssue = tslib_1.__decorate([
|
|
36
|
-
(0, type_graphql_1.InputType)()
|
|
37
|
-
], NewIssue);
|
|
38
|
-
let IssuePatch = class IssuePatch {
|
|
39
|
-
};
|
|
40
|
-
exports.IssuePatch = IssuePatch;
|
|
41
|
-
tslib_1.__decorate([
|
|
42
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
43
|
-
tslib_1.__metadata("design:type", String)
|
|
44
|
-
], IssuePatch.prototype, "id", void 0);
|
|
45
|
-
tslib_1.__decorate([
|
|
46
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
47
|
-
tslib_1.__metadata("design:type", String)
|
|
48
|
-
], IssuePatch.prototype, "name", void 0);
|
|
49
|
-
tslib_1.__decorate([
|
|
50
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
51
|
-
tslib_1.__metadata("design:type", String)
|
|
52
|
-
], IssuePatch.prototype, "description", void 0);
|
|
53
|
-
tslib_1.__decorate([
|
|
54
|
-
(0, type_graphql_1.Field)(type => issue_1.IssueStatus, { nullable: true }),
|
|
55
|
-
tslib_1.__metadata("design:type", String)
|
|
56
|
-
], IssuePatch.prototype, "state", void 0);
|
|
57
|
-
tslib_1.__decorate([
|
|
58
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
59
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
60
|
-
], IssuePatch.prototype, "active", void 0);
|
|
61
|
-
tslib_1.__decorate([
|
|
62
|
-
(0, type_graphql_1.Field)(type => GraphQLUpload_js_1.default, { nullable: true }),
|
|
63
|
-
tslib_1.__metadata("design:type", Object)
|
|
64
|
-
], IssuePatch.prototype, "thumbnail", void 0);
|
|
65
|
-
tslib_1.__decorate([
|
|
66
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
67
|
-
tslib_1.__metadata("design:type", String)
|
|
68
|
-
], IssuePatch.prototype, "cuFlag", void 0);
|
|
69
|
-
exports.IssuePatch = IssuePatch = tslib_1.__decorate([
|
|
70
|
-
(0, type_graphql_1.InputType)()
|
|
71
|
-
], IssuePatch);
|
|
72
|
-
let IssueList = class IssueList {
|
|
73
|
-
};
|
|
74
|
-
exports.IssueList = IssueList;
|
|
75
|
-
tslib_1.__decorate([
|
|
76
|
-
(0, type_graphql_1.Field)(type => [issue_1.Issue]),
|
|
77
|
-
tslib_1.__metadata("design:type", Array)
|
|
78
|
-
], IssueList.prototype, "items", void 0);
|
|
79
|
-
tslib_1.__decorate([
|
|
80
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
81
|
-
tslib_1.__metadata("design:type", Number)
|
|
82
|
-
], IssueList.prototype, "total", void 0);
|
|
83
|
-
exports.IssueList = IssueList = tslib_1.__decorate([
|
|
84
|
-
(0, type_graphql_1.ObjectType)()
|
|
85
|
-
], IssueList);
|
|
86
|
-
//# sourceMappingURL=issue-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"issue-type.js","sourceRoot":"","sources":["../../../server/service/issue/issue-type.ts"],"names":[],"mappings":";;;;AACA,+FAA2D;AAC3D,+CAAsF;AAItF,mCAA4C;AAGrC,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAkBpB,CAAA;AAlBY,4BAAQ;AAEnB;IADC,IAAA,oBAAK,GAAE;;sCACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACN;AAGpB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCAC5B;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACV;AAGhB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wCACN;oBALF,SAAS;IADrB,IAAA,yBAAU,GAAE;GACA,SAAS,CAMrB","sourcesContent":["import type { FileUpload } from 'graphql-upload/GraphQLUpload.js'\nimport GraphQLUpload from 'graphql-upload/GraphQLUpload.js'\nimport { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { ObjectRef, ScalarObject } from '@things-factory/shell'\n\nimport { Issue, IssueStatus } from './issue'\n\n@InputType()\nexport class NewIssue {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field(type => IssueStatus, { nullable: true })\n state?: IssueStatus\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n params?: string\n\n @Field(type => GraphQLUpload, { nullable: true })\n thumbnail?: FileUpload\n}\n\n@InputType()\nexport class IssuePatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field(type => IssueStatus, { nullable: true })\n state?: IssueStatus\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field(type => GraphQLUpload, { nullable: true })\n thumbnail?: FileUpload\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class IssueList {\n @Field(type => [Issue])\n items: Issue[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Domain } from '@things-factory/shell';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { ActionPlan } from '../action-plan/action-plan';
|
|
4
|
-
export declare enum IssueStatus {
|
|
5
|
-
STATUS_A = "STATUS_A",
|
|
6
|
-
STATUS_B = "STATUS_B"
|
|
7
|
-
}
|
|
8
|
-
export declare class Issue {
|
|
9
|
-
readonly id: string;
|
|
10
|
-
domain?: Domain;
|
|
11
|
-
domainId?: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
active?: boolean;
|
|
15
|
-
state?: IssueStatus;
|
|
16
|
-
params?: string;
|
|
17
|
-
actionPlans: ActionPlan[];
|
|
18
|
-
createdAt?: Date;
|
|
19
|
-
updatedAt?: Date;
|
|
20
|
-
deletedAt?: Date;
|
|
21
|
-
creator?: User;
|
|
22
|
-
creatorId?: string;
|
|
23
|
-
updater?: User;
|
|
24
|
-
updaterId?: string;
|
|
25
|
-
thumbnail?: string;
|
|
26
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Issue = exports.IssueStatus = 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 action_plan_1 = require("../action-plan/action-plan");
|
|
10
|
-
var IssueStatus;
|
|
11
|
-
(function (IssueStatus) {
|
|
12
|
-
IssueStatus["STATUS_A"] = "STATUS_A";
|
|
13
|
-
IssueStatus["STATUS_B"] = "STATUS_B";
|
|
14
|
-
})(IssueStatus || (exports.IssueStatus = IssueStatus = {}));
|
|
15
|
-
(0, type_graphql_1.registerEnumType)(IssueStatus, {
|
|
16
|
-
name: 'IssueStatus',
|
|
17
|
-
description: 'state enumeration of a issue'
|
|
18
|
-
});
|
|
19
|
-
let Issue = class Issue {
|
|
20
|
-
};
|
|
21
|
-
exports.Issue = Issue;
|
|
22
|
-
tslib_1.__decorate([
|
|
23
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
24
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
25
|
-
tslib_1.__metadata("design:type", String)
|
|
26
|
-
], Issue.prototype, "id", void 0);
|
|
27
|
-
tslib_1.__decorate([
|
|
28
|
-
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
29
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
30
|
-
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
31
|
-
], Issue.prototype, "domain", void 0);
|
|
32
|
-
tslib_1.__decorate([
|
|
33
|
-
(0, typeorm_1.RelationId)((issue) => issue.domain),
|
|
34
|
-
tslib_1.__metadata("design:type", String)
|
|
35
|
-
], Issue.prototype, "domainId", void 0);
|
|
36
|
-
tslib_1.__decorate([
|
|
37
|
-
(0, typeorm_1.Column)(),
|
|
38
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
39
|
-
tslib_1.__metadata("design:type", String)
|
|
40
|
-
], Issue.prototype, "name", void 0);
|
|
41
|
-
tslib_1.__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
43
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
44
|
-
tslib_1.__metadata("design:type", String)
|
|
45
|
-
], Issue.prototype, "description", void 0);
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
48
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
49
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
50
|
-
], Issue.prototype, "active", void 0);
|
|
51
|
-
tslib_1.__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
53
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
54
|
-
tslib_1.__metadata("design:type", String)
|
|
55
|
-
], Issue.prototype, "state", void 0);
|
|
56
|
-
tslib_1.__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
58
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
59
|
-
tslib_1.__metadata("design:type", String)
|
|
60
|
-
], Issue.prototype, "params", void 0);
|
|
61
|
-
tslib_1.__decorate([
|
|
62
|
-
(0, type_graphql_1.Field)(() => [action_plan_1.ActionPlan]),
|
|
63
|
-
(0, typeorm_1.OneToMany)(() => action_plan_1.ActionPlan, actionPlan => actionPlan.issue),
|
|
64
|
-
tslib_1.__metadata("design:type", Array)
|
|
65
|
-
], Issue.prototype, "actionPlans", void 0);
|
|
66
|
-
tslib_1.__decorate([
|
|
67
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
68
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
69
|
-
tslib_1.__metadata("design:type", Date)
|
|
70
|
-
], Issue.prototype, "createdAt", void 0);
|
|
71
|
-
tslib_1.__decorate([
|
|
72
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
73
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
74
|
-
tslib_1.__metadata("design:type", Date)
|
|
75
|
-
], Issue.prototype, "updatedAt", void 0);
|
|
76
|
-
tslib_1.__decorate([
|
|
77
|
-
(0, typeorm_1.DeleteDateColumn)(),
|
|
78
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
79
|
-
tslib_1.__metadata("design:type", Date)
|
|
80
|
-
], Issue.prototype, "deletedAt", void 0);
|
|
81
|
-
tslib_1.__decorate([
|
|
82
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
83
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
84
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
85
|
-
], Issue.prototype, "creator", void 0);
|
|
86
|
-
tslib_1.__decorate([
|
|
87
|
-
(0, typeorm_1.RelationId)((issue) => issue.creator),
|
|
88
|
-
tslib_1.__metadata("design:type", String)
|
|
89
|
-
], Issue.prototype, "creatorId", void 0);
|
|
90
|
-
tslib_1.__decorate([
|
|
91
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
92
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
93
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
94
|
-
], Issue.prototype, "updater", void 0);
|
|
95
|
-
tslib_1.__decorate([
|
|
96
|
-
(0, typeorm_1.RelationId)((issue) => issue.updater),
|
|
97
|
-
tslib_1.__metadata("design:type", String)
|
|
98
|
-
], Issue.prototype, "updaterId", void 0);
|
|
99
|
-
tslib_1.__decorate([
|
|
100
|
-
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
101
|
-
tslib_1.__metadata("design:type", String)
|
|
102
|
-
], Issue.prototype, "thumbnail", void 0);
|
|
103
|
-
exports.Issue = Issue = tslib_1.__decorate([
|
|
104
|
-
(0, typeorm_1.Entity)(),
|
|
105
|
-
(0, typeorm_1.Index)('ix_issue_0', (issue) => [issue.domain, issue.name], {
|
|
106
|
-
unique: true,
|
|
107
|
-
where: '"deleted_at" IS NULL'
|
|
108
|
-
}),
|
|
109
|
-
(0, type_graphql_1.ObjectType)({ description: 'Entity for Issue' })
|
|
110
|
-
], Issue);
|
|
111
|
-
//# sourceMappingURL=issue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"issue.js","sourceRoot":"","sources":["../../../server/service/issue/issue.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAA2E;AAE3E,iDAA8C;AAC9C,yDAAgD;AAChD,4DAAuD;AAEvD,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;AACvB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,IAAA,+BAAgB,EAAC,WAAW,EAAE;IAC5B,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,8BAA8B;CAC5C,CAAC,CAAA;AAQK,IAAM,KAAK,GAAX,MAAM,KAAK;CAgEjB,CAAA;AAhEY,sBAAK;AAGP;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;iCACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,E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eleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn,\n VersionColumn\n} from 'typeorm'\nimport { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ActionPlan } from '../action-plan/action-plan'\n\nexport enum IssueStatus {\n STATUS_A = 'STATUS_A',\n STATUS_B = 'STATUS_B'\n}\n\nregisterEnumType(IssueStatus, {\n name: 'IssueStatus',\n description: 'state enumeration of a issue'\n})\n\n@Entity()\n@Index('ix_issue_0', (issue: Issue) => [issue.domain, issue.name], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for Issue' })\nexport class Issue {\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((issue: Issue) => issue.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n active?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n state?: IssueStatus\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n params?: string\n\n @Field(() => [ActionPlan])\n @OneToMany(() => ActionPlan, actionPlan => actionPlan.issue)\n actionPlans: ActionPlan[]\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((issue: Issue) => issue.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((issue: Issue) => issue.updater)\n updaterId?: string\n\n @Field(type => String, { nullable: true })\n thumbnail?: string\n}\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ProjectReport } from './project-report';
|
|
2
|
-
import { ProjectReportQuery } from './project-report-query';
|
|
3
|
-
import { ProjectReportMutation } from './project-report-mutation';
|
|
4
|
-
export declare const entities: (typeof ProjectReport)[];
|
|
5
|
-
export declare const resolvers: (typeof ProjectReportQuery | typeof ProjectReportMutation)[];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolvers = exports.entities = void 0;
|
|
4
|
-
const project_report_1 = require("./project-report");
|
|
5
|
-
const project_report_query_1 = require("./project-report-query");
|
|
6
|
-
const project_report_mutation_1 = require("./project-report-mutation");
|
|
7
|
-
exports.entities = [project_report_1.ProjectReport];
|
|
8
|
-
exports.resolvers = [project_report_query_1.ProjectReportQuery, project_report_mutation_1.ProjectReportMutation];
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/project-report/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAChD,iEAA2D;AAC3D,uEAAiE;AAEpD,QAAA,QAAQ,GAAG,CAAC,8BAAa,CAAC,CAAA;AAC1B,QAAA,SAAS,GAAG,CAAC,yCAAkB,EAAE,+CAAqB,CAAC,CAAA","sourcesContent":["import { ProjectReport } from './project-report'\nimport { ProjectReportQuery } from './project-report-query'\nimport { ProjectReportMutation } from './project-report-mutation'\n\nexport const entities = [ProjectReport]\nexport const resolvers = [ProjectReportQuery, ProjectReportMutation]\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ProjectReport } from './project-report';
|
|
2
|
-
import { NewProjectReport, ProjectReportPatch } from './project-report-type';
|
|
3
|
-
export declare class ProjectReportMutation {
|
|
4
|
-
createProjectReport(projectReport: NewProjectReport, context: ResolverContext): Promise<ProjectReport>;
|
|
5
|
-
updateProjectReport(id: string, patch: ProjectReportPatch, context: ResolverContext): Promise<ProjectReport>;
|
|
6
|
-
updateMultipleProjectReport(patches: ProjectReportPatch[], context: ResolverContext): Promise<ProjectReport[]>;
|
|
7
|
-
deleteProjectReport(id: string, context: ResolverContext): Promise<boolean>;
|
|
8
|
-
deleteProjectReports(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
9
|
-
importProjectReports(projectReports: ProjectReportPatch[], context: ResolverContext): Promise<boolean>;
|
|
10
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectReportMutation = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const typeorm_1 = require("typeorm");
|
|
7
|
-
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
8
|
-
const project_report_1 = require("./project-report");
|
|
9
|
-
const project_report_type_1 = require("./project-report-type");
|
|
10
|
-
let ProjectReportMutation = class ProjectReportMutation {
|
|
11
|
-
async createProjectReport(projectReport, context) {
|
|
12
|
-
const { domain, user, tx } = context.state;
|
|
13
|
-
const result = await tx.getRepository(project_report_1.ProjectReport).save(Object.assign(Object.assign({}, projectReport), { domain, creator: user, updater: user }));
|
|
14
|
-
if (projectReport.thumbnail) {
|
|
15
|
-
await (0, attachment_base_1.createAttachment)(null, {
|
|
16
|
-
attachment: {
|
|
17
|
-
file: projectReport.thumbnail,
|
|
18
|
-
refType: project_report_1.ProjectReport.name,
|
|
19
|
-
refBy: result.id
|
|
20
|
-
}
|
|
21
|
-
}, context);
|
|
22
|
-
}
|
|
23
|
-
return result;
|
|
24
|
-
}
|
|
25
|
-
async updateProjectReport(id, patch, context) {
|
|
26
|
-
const { domain, user, tx } = context.state;
|
|
27
|
-
const repository = tx.getRepository(project_report_1.ProjectReport);
|
|
28
|
-
const projectReport = await repository.findOne({
|
|
29
|
-
where: { domain: { id: domain.id }, id }
|
|
30
|
-
});
|
|
31
|
-
const result = await repository.save(Object.assign(Object.assign(Object.assign({}, projectReport), patch), { updater: user }));
|
|
32
|
-
if (patch.thumbnail) {
|
|
33
|
-
await (0, attachment_base_1.deleteAttachmentsByRef)(null, { refBys: [result.id] }, context);
|
|
34
|
-
await (0, attachment_base_1.createAttachment)(null, {
|
|
35
|
-
attachment: {
|
|
36
|
-
file: patch.thumbnail,
|
|
37
|
-
refType: project_report_1.ProjectReport.name,
|
|
38
|
-
refBy: result.id
|
|
39
|
-
}
|
|
40
|
-
}, context);
|
|
41
|
-
}
|
|
42
|
-
return result;
|
|
43
|
-
}
|
|
44
|
-
async updateMultipleProjectReport(patches, context) {
|
|
45
|
-
const { domain, user, tx } = context.state;
|
|
46
|
-
let results = [];
|
|
47
|
-
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
48
|
-
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
49
|
-
const projectReportRepo = tx.getRepository(project_report_1.ProjectReport);
|
|
50
|
-
if (_createRecords.length > 0) {
|
|
51
|
-
for (let i = 0; i < _createRecords.length; i++) {
|
|
52
|
-
const newRecord = _createRecords[i];
|
|
53
|
-
const result = await projectReportRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
|
|
54
|
-
if (newRecord.thumbnail) {
|
|
55
|
-
await (0, attachment_base_1.createAttachment)(null, {
|
|
56
|
-
attachment: {
|
|
57
|
-
file: newRecord.thumbnail,
|
|
58
|
-
refType: project_report_1.ProjectReport.name,
|
|
59
|
-
refBy: result.id
|
|
60
|
-
}
|
|
61
|
-
}, context);
|
|
62
|
-
}
|
|
63
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
if (_updateRecords.length > 0) {
|
|
67
|
-
for (let i = 0; i < _updateRecords.length; i++) {
|
|
68
|
-
const updateRecord = _updateRecords[i];
|
|
69
|
-
const projectReport = await projectReportRepo.findOneBy({ id: updateRecord.id });
|
|
70
|
-
const result = await projectReportRepo.save(Object.assign(Object.assign(Object.assign({}, projectReport), updateRecord), { updater: user }));
|
|
71
|
-
if (updateRecord.thumbnail) {
|
|
72
|
-
await (0, attachment_base_1.deleteAttachmentsByRef)(null, { refBys: [result.id] }, context);
|
|
73
|
-
await (0, attachment_base_1.createAttachment)(null, {
|
|
74
|
-
attachment: {
|
|
75
|
-
file: updateRecord.thumbnail,
|
|
76
|
-
refType: project_report_1.ProjectReport.name,
|
|
77
|
-
refBy: result.id
|
|
78
|
-
}
|
|
79
|
-
}, context);
|
|
80
|
-
}
|
|
81
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return results;
|
|
85
|
-
}
|
|
86
|
-
async deleteProjectReport(id, context) {
|
|
87
|
-
const { domain, tx } = context.state;
|
|
88
|
-
await tx.getRepository(project_report_1.ProjectReport).delete({ domain: { id: domain.id }, id });
|
|
89
|
-
await (0, attachment_base_1.deleteAttachmentsByRef)(null, { refBys: [id] }, context);
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
async deleteProjectReports(ids, context) {
|
|
93
|
-
const { domain, tx } = context.state;
|
|
94
|
-
await tx.getRepository(project_report_1.ProjectReport).delete({
|
|
95
|
-
domain: { id: domain.id },
|
|
96
|
-
id: (0, typeorm_1.In)(ids)
|
|
97
|
-
});
|
|
98
|
-
await (0, attachment_base_1.deleteAttachmentsByRef)(null, { refBys: ids }, context);
|
|
99
|
-
return true;
|
|
100
|
-
}
|
|
101
|
-
async importProjectReports(projectReports, context) {
|
|
102
|
-
const { domain, tx } = context.state;
|
|
103
|
-
await Promise.all(projectReports.map(async (projectReport) => {
|
|
104
|
-
const createdProjectReport = await tx.getRepository(project_report_1.ProjectReport).save(Object.assign({ domain }, projectReport));
|
|
105
|
-
}));
|
|
106
|
-
return true;
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
exports.ProjectReportMutation = ProjectReportMutation;
|
|
110
|
-
tslib_1.__decorate([
|
|
111
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
112
|
-
(0, type_graphql_1.Mutation)(returns => project_report_1.ProjectReport, { description: 'To create new ProjectReport' }),
|
|
113
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('projectReport')),
|
|
114
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
115
|
-
tslib_1.__metadata("design:type", Function),
|
|
116
|
-
tslib_1.__metadata("design:paramtypes", [project_report_type_1.NewProjectReport, Object]),
|
|
117
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
118
|
-
], ProjectReportMutation.prototype, "createProjectReport", null);
|
|
119
|
-
tslib_1.__decorate([
|
|
120
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
121
|
-
(0, type_graphql_1.Mutation)(returns => project_report_1.ProjectReport, { description: 'To modify ProjectReport information' }),
|
|
122
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
123
|
-
tslib_1.__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
124
|
-
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
125
|
-
tslib_1.__metadata("design:type", Function),
|
|
126
|
-
tslib_1.__metadata("design:paramtypes", [String, project_report_type_1.ProjectReportPatch, Object]),
|
|
127
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
128
|
-
], ProjectReportMutation.prototype, "updateProjectReport", null);
|
|
129
|
-
tslib_1.__decorate([
|
|
130
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
131
|
-
(0, type_graphql_1.Mutation)(returns => [project_report_1.ProjectReport], { description: "To modify multiple ProjectReports' information" }),
|
|
132
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [project_report_type_1.ProjectReportPatch])),
|
|
133
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
134
|
-
tslib_1.__metadata("design:type", Function),
|
|
135
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
136
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
137
|
-
], ProjectReportMutation.prototype, "updateMultipleProjectReport", null);
|
|
138
|
-
tslib_1.__decorate([
|
|
139
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
140
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete ProjectReport' }),
|
|
141
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
142
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
143
|
-
tslib_1.__metadata("design:type", Function),
|
|
144
|
-
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
145
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
146
|
-
], ProjectReportMutation.prototype, "deleteProjectReport", null);
|
|
147
|
-
tslib_1.__decorate([
|
|
148
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
149
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple ProjectReports' }),
|
|
150
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
151
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
152
|
-
tslib_1.__metadata("design:type", Function),
|
|
153
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
154
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
155
|
-
], ProjectReportMutation.prototype, "deleteProjectReports", null);
|
|
156
|
-
tslib_1.__decorate([
|
|
157
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
158
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To import multiple ProjectReports' }),
|
|
159
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('projectReports', type => [project_report_type_1.ProjectReportPatch])),
|
|
160
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
161
|
-
tslib_1.__metadata("design:type", Function),
|
|
162
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
163
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
164
|
-
], ProjectReportMutation.prototype, "importProjectReports", null);
|
|
165
|
-
exports.ProjectReportMutation = ProjectReportMutation = tslib_1.__decorate([
|
|
166
|
-
(0, type_graphql_1.Resolver)(project_report_1.ProjectReport)
|
|
167
|
-
], ProjectReportMutation);
|
|
168
|
-
//# sourceMappingURL=project-report-mutation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-report-mutation.js","sourceRoot":"","sources":["../../../server/service/project-report/project-report-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAE5B,qEAA0F;AAE1F,qDAAgD;AAChD,+DAA4E;AAGrE,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAG1B,AAAN,KAAK,CAAC,mBAAmB,CAAuB,aAA+B,EAAS,OAAwB;QAC9G,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,8BAAa,CAAC,CAAC,IAAI,iCACpD,aAAa,KAChB,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;QAEF,IAAI,aAAa,CAAC,SAAS,EAAE,CAAC;YAC5B,MAAM,IAAA,kCAAgB,EACpB,IAAI,EACJ;gBACE,UAAU,EAAE;oBACV,IAAI,EAAE,aAAa,CAAC,SAAS;oBAC7B,OAAO,EAAE,8BAAa,CAAC,IAAI;oBAC3B,KAAK,EAAE,MAAM,CAAC,EAAE;iBACjB;aACF,EACD,OAAO,CACR,CAAA;QACH,CAAC;QAED,OAAO,MAAM,CAAA;IACf,CAAC;IAIK,AAAN,KAAK,CAAC,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CA3LU,qBAAqB;IADjC,IAAA,uBAAQ,EAAC,8BAAa,CAAC;GACX,qBAAqB,CA4LjC","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\n\nimport { createAttachment, deleteAttachmentsByRef } from '@things-factory/attachment-base'\n\nimport { ProjectReport } from './project-report'\nimport { NewProjectReport, ProjectReportPatch } from './project-report-type'\n\n@Resolver(ProjectReport)\nexport class ProjectReportMutation {\n @Directive('@transaction')\n @Mutation(returns => ProjectReport, { description: 'To create new ProjectReport' })\n async createProjectReport(@Arg('projectReport') projectReport: NewProjectReport, @Ctx() context: ResolverContext): Promise<ProjectReport> {\n const { domain, user, tx } = context.state\n\n const result = await tx.getRepository(ProjectReport).save({\n ...projectReport,\n domain,\n creator: user,\n updater: user\n })\n\n if (projectReport.thumbnail) {\n await createAttachment(\n null,\n {\n attachment: {\n file: projectReport.thumbnail,\n refType: ProjectReport.name,\n refBy: result.id\n }\n },\n context\n )\n }\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => ProjectReport, { description: 'To modify ProjectReport information' })\n async updateProjectReport(\n @Arg('id') id: string,\n @Arg('patch') patch: ProjectReportPatch,\n @Ctx() context: ResolverContext\n ): Promise<ProjectReport> {\n const { domain, user, tx } = context.state\n\n const repository = tx.getRepository(ProjectReport)\n const projectReport = await repository.findOne({\n where: { domain: { id: domain.id }, id }\n })\n\n const result = await repository.save({\n ...projectReport,\n ...patch,\n updater: user\n })\n\n if (patch.thumbnail) {\n await deleteAttachmentsByRef(null, { refBys: [result.id] }, context)\n await createAttachment(\n null,\n {\n attachment: {\n file: patch.thumbnail,\n refType: ProjectReport.name,\n refBy: result.id\n }\n },\n context\n )\n }\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => [ProjectReport], { description: \"To modify multiple ProjectReports' information\" })\n async updateMultipleProjectReport(\n @Arg('patches', type => [ProjectReportPatch]) patches: ProjectReportPatch[],\n @Ctx() context: ResolverContext\n ): Promise<ProjectReport[]> {\n const { domain, user, tx } = context.state\n\n let results = []\n const _createRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === '+')\n const _updateRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === 'M')\n const projectReportRepo = tx.getRepository(ProjectReport)\n\n if (_createRecords.length > 0) {\n for (let i = 0; i < _createRecords.length; i++) {\n const newRecord = _createRecords[i]\n\n const result = await projectReportRepo.save({\n ...newRecord,\n domain,\n creator: user,\n updater: user\n })\n\n if (newRecord.thumbnail) {\n await createAttachment(\n null,\n {\n attachment: {\n file: newRecord.thumbnail,\n refType: ProjectReport.name,\n refBy: result.id\n }\n },\n context\n )\n }\n\n results.push({ ...result, cuFlag: '+' })\n }\n }\n\n if (_updateRecords.length > 0) {\n for (let i = 0; i < _updateRecords.length; i++) {\n const updateRecord = _updateRecords[i]\n const projectReport = await projectReportRepo.findOneBy({ id: updateRecord.id })\n\n const result = await projectReportRepo.save({\n ...projectReport,\n ...updateRecord,\n updater: user\n })\n\n if (updateRecord.thumbnail) {\n await deleteAttachmentsByRef(null, { refBys: [result.id] }, context)\n await createAttachment(\n null,\n {\n attachment: {\n file: updateRecord.thumbnail,\n refType: ProjectReport.name,\n refBy: result.id\n }\n },\n context\n )\n }\n\n results.push({ ...result, cuFlag: 'M' })\n }\n }\n\n return results\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete ProjectReport' })\n async deleteProjectReport(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(ProjectReport).delete({ domain: { id: domain.id }, id })\n await deleteAttachmentsByRef(null, { refBys: [id] }, context)\n\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete multiple ProjectReports' })\n async deleteProjectReports(\n @Arg('ids', type => [String]) ids: string[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(ProjectReport).delete({\n domain: { id: domain.id },\n id: In(ids)\n })\n\n await deleteAttachmentsByRef(null, { refBys: ids }, context)\n\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To import multiple ProjectReports' })\n async importProjectReports(\n @Arg('projectReports', type => [ProjectReportPatch]) projectReports: ProjectReportPatch[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { domain, tx } = context.state\n\n await Promise.all(\n projectReports.map(async (projectReport: ProjectReportPatch) => {\n const createdProjectReport: ProjectReport = await tx.getRepository(ProjectReport).save({ domain, ...projectReport })\n })\n )\n\n return true\n }\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { ProjectReport } from './project-report';
|
|
4
|
-
import { ProjectReportList } from './project-report-type';
|
|
5
|
-
export declare class ProjectReportQuery {
|
|
6
|
-
projectReport(id: string, context: ResolverContext): Promise<ProjectReport>;
|
|
7
|
-
projectReports(params: ListParam, context: ResolverContext): Promise<ProjectReportList>;
|
|
8
|
-
thumbnail(projectReport: ProjectReport): Promise<string | undefined>;
|
|
9
|
-
domain(projectReport: ProjectReport): Promise<Domain>;
|
|
10
|
-
updater(projectReport: ProjectReport): Promise<User>;
|
|
11
|
-
creator(projectReport: ProjectReport): Promise<User>;
|
|
12
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectReportQuery = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
7
|
-
const shell_1 = require("@things-factory/shell");
|
|
8
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
-
const project_report_1 = require("./project-report");
|
|
10
|
-
const project_report_type_1 = require("./project-report-type");
|
|
11
|
-
let ProjectReportQuery = class ProjectReportQuery {
|
|
12
|
-
async projectReport(id, context) {
|
|
13
|
-
const { domain } = context.state;
|
|
14
|
-
return await (0, shell_1.getRepository)(project_report_1.ProjectReport).findOne({
|
|
15
|
-
where: { domain: { id: domain.id }, id }
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
async projectReports(params, context) {
|
|
19
|
-
const { domain } = context.state;
|
|
20
|
-
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
21
|
-
domain,
|
|
22
|
-
params,
|
|
23
|
-
repository: await (0, shell_1.getRepository)(project_report_1.ProjectReport),
|
|
24
|
-
searchables: ['name', 'description']
|
|
25
|
-
});
|
|
26
|
-
const [items, total] = await queryBuilder.getManyAndCount();
|
|
27
|
-
return { items, total };
|
|
28
|
-
}
|
|
29
|
-
async thumbnail(projectReport) {
|
|
30
|
-
const attachment = await (0, shell_1.getRepository)(attachment_base_1.Attachment).findOne({
|
|
31
|
-
where: {
|
|
32
|
-
domain: { id: projectReport.domainId },
|
|
33
|
-
refType: project_report_1.ProjectReport.name,
|
|
34
|
-
refBy: projectReport.id
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
return attachment === null || attachment === void 0 ? void 0 : attachment.fullpath;
|
|
38
|
-
}
|
|
39
|
-
async domain(projectReport) {
|
|
40
|
-
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: projectReport.domainId });
|
|
41
|
-
}
|
|
42
|
-
async updater(projectReport) {
|
|
43
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: projectReport.updaterId });
|
|
44
|
-
}
|
|
45
|
-
async creator(projectReport) {
|
|
46
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: projectReport.creatorId });
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
exports.ProjectReportQuery = ProjectReportQuery;
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
(0, type_graphql_1.Query)(returns => project_report_1.ProjectReport, { nullable: true, description: 'To fetch a ProjectReport' }),
|
|
52
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
53
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
54
|
-
tslib_1.__metadata("design:type", Function),
|
|
55
|
-
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
56
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
57
|
-
], ProjectReportQuery.prototype, "projectReport", null);
|
|
58
|
-
tslib_1.__decorate([
|
|
59
|
-
(0, type_graphql_1.Query)(returns => project_report_type_1.ProjectReportList, { description: 'To fetch multiple ProjectReports' }),
|
|
60
|
-
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
61
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
62
|
-
tslib_1.__metadata("design:type", Function),
|
|
63
|
-
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
64
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
65
|
-
], ProjectReportQuery.prototype, "projectReports", null);
|
|
66
|
-
tslib_1.__decorate([
|
|
67
|
-
(0, type_graphql_1.FieldResolver)(type => String),
|
|
68
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
69
|
-
tslib_1.__metadata("design:type", Function),
|
|
70
|
-
tslib_1.__metadata("design:paramtypes", [project_report_1.ProjectReport]),
|
|
71
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
72
|
-
], ProjectReportQuery.prototype, "thumbnail", null);
|
|
73
|
-
tslib_1.__decorate([
|
|
74
|
-
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
75
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
76
|
-
tslib_1.__metadata("design:type", Function),
|
|
77
|
-
tslib_1.__metadata("design:paramtypes", [project_report_1.ProjectReport]),
|
|
78
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
79
|
-
], ProjectReportQuery.prototype, "domain", null);
|
|
80
|
-
tslib_1.__decorate([
|
|
81
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
82
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
83
|
-
tslib_1.__metadata("design:type", Function),
|
|
84
|
-
tslib_1.__metadata("design:paramtypes", [project_report_1.ProjectReport]),
|
|
85
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
86
|
-
], ProjectReportQuery.prototype, "updater", null);
|
|
87
|
-
tslib_1.__decorate([
|
|
88
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
89
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
90
|
-
tslib_1.__metadata("design:type", Function),
|
|
91
|
-
tslib_1.__metadata("design:paramtypes", [project_report_1.ProjectReport]),
|
|
92
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
93
|
-
], ProjectReportQuery.prototype, "creator", null);
|
|
94
|
-
exports.ProjectReportQuery = ProjectReportQuery = tslib_1.__decorate([
|
|
95
|
-
(0, type_graphql_1.Resolver)(project_report_1.ProjectReport)
|
|
96
|
-
], ProjectReportQuery);
|
|
97
|
-
//# sourceMappingURL=project-report-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-report-query.js","sourceRoot":"","sources":["../../../server/service/project-report/project-report-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8F;AAC9F,qEAA4D;AAC5D,iDAAuG;AACvG,yDAAgD;AAChD,qDAAgD;AAChD,+DAAyD;AAGlD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAEvB,AAAN,KAAK,CAAC,aAAa,CAAY,EAAU,EAAS,OAAwB;QACxE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,qBAAa,EAAC,8BAAa,CAAC,CAAC,OAAO,CAAC;YAChD,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE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D9B,IAAA,uBAAQ,EAAC,8BAAa,CAAC;GACX,kBAAkB,CAqD9B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx, Directive } from 'type-graphql'\nimport { Attachment } from '@things-factory/attachment-base'\nimport { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ProjectReport } from './project-report'\nimport { ProjectReportList } from './project-report-type'\n\n@Resolver(ProjectReport)\nexport class ProjectReportQuery {\n @Query(returns => ProjectReport!, { nullable: true, description: 'To fetch a ProjectReport' })\n async projectReport(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<ProjectReport> {\n const { domain } = context.state\n\n return await getRepository(ProjectReport).findOne({\n where: { domain: { id: domain.id }, id }\n })\n }\n\n @Query(returns => ProjectReportList, { description: 'To fetch multiple ProjectReports' })\n async projectReports(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ProjectReportList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: await getRepository(ProjectReport),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => String)\n async thumbnail(@Root() projectReport: ProjectReport): Promise<string | undefined> {\n const attachment: Attachment = await getRepository(Attachment).findOne({\n where: {\n domain: { id: projectReport.domainId },\n refType: ProjectReport.name,\n refBy: projectReport.id\n }\n })\n\n return attachment?.fullpath\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() projectReport: ProjectReport): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: projectReport.domainId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() projectReport: ProjectReport): Promise<User> {\n return await getRepository(User).findOneBy({ id: projectReport.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() projectReport: ProjectReport): Promise<User> {\n return await getRepository(User).findOneBy({ id: projectReport.creatorId })\n }\n}\n"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { FileUpload } from 'graphql-upload/GraphQLUpload.js';
|
|
2
|
-
import { ProjectReport, ProjectReportStatus } from './project-report';
|
|
3
|
-
export declare class NewProjectReport {
|
|
4
|
-
name: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
state?: ProjectReportStatus;
|
|
7
|
-
active?: boolean;
|
|
8
|
-
params?: string;
|
|
9
|
-
thumbnail?: FileUpload;
|
|
10
|
-
}
|
|
11
|
-
export declare class ProjectReportPatch {
|
|
12
|
-
id?: string;
|
|
13
|
-
name?: string;
|
|
14
|
-
description?: string;
|
|
15
|
-
state?: ProjectReportStatus;
|
|
16
|
-
active?: boolean;
|
|
17
|
-
thumbnail?: FileUpload;
|
|
18
|
-
cuFlag?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare class ProjectReportList {
|
|
21
|
-
items: ProjectReport[];
|
|
22
|
-
total: number;
|
|
23
|
-
}
|