@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,7 +0,0 @@
|
|
|
1
|
-
import { Pagination } from '@things-factory/shell';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { ChecklistItemComment } from './checklist-item-comment';
|
|
4
|
-
export declare class ChecklistItemCommentQuery {
|
|
5
|
-
checklistItemComments(checklistItemId: string, pagination: Pagination, context: ResolverContext): Promise<ChecklistItemComment[]>;
|
|
6
|
-
creator(checklistItemComment: ChecklistItemComment): Promise<User>;
|
|
7
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistItemCommentQuery = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const shell_1 = require("@things-factory/shell");
|
|
7
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
|
-
const checklist_item_comment_1 = require("./checklist-item-comment");
|
|
9
|
-
let ChecklistItemCommentQuery = class ChecklistItemCommentQuery {
|
|
10
|
-
async checklistItemComments(checklistItemId, pagination, context) {
|
|
11
|
-
const { limit, page } = pagination;
|
|
12
|
-
// 페이지네이션을 위한 offset 계산
|
|
13
|
-
const offset = (page - 1) * limit;
|
|
14
|
-
// 코멘트와 총 개수를 가져오는 쿼리
|
|
15
|
-
const items = await (0, shell_1.getRepository)(checklist_item_comment_1.ChecklistItemComment)
|
|
16
|
-
.createQueryBuilder('cic')
|
|
17
|
-
.innerJoin('cic.checklistItem', 'ci')
|
|
18
|
-
.where('cic.checklistItem = :checklistItemId', { checklistItemId })
|
|
19
|
-
.skip(offset)
|
|
20
|
-
.take(limit)
|
|
21
|
-
.orderBy('cic.createdAt', 'DESC')
|
|
22
|
-
.getMany();
|
|
23
|
-
return items;
|
|
24
|
-
}
|
|
25
|
-
async creator(checklistItemComment) {
|
|
26
|
-
return checklistItemComment.creatorId && (await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistItemComment.creatorId }));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.ChecklistItemCommentQuery = ChecklistItemCommentQuery;
|
|
30
|
-
tslib_1.__decorate([
|
|
31
|
-
(0, type_graphql_1.Query)(returns => [checklist_item_comment_1.ChecklistItemComment], { description: 'To fetch multiple ChecklistItemComments' }),
|
|
32
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('checklistItemId')),
|
|
33
|
-
tslib_1.__param(1, (0, type_graphql_1.Arg)('pagination')),
|
|
34
|
-
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
35
|
-
tslib_1.__metadata("design:type", Function),
|
|
36
|
-
tslib_1.__metadata("design:paramtypes", [String, shell_1.Pagination, Object]),
|
|
37
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
38
|
-
], ChecklistItemCommentQuery.prototype, "checklistItemComments", null);
|
|
39
|
-
tslib_1.__decorate([
|
|
40
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
41
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
42
|
-
tslib_1.__metadata("design:type", Function),
|
|
43
|
-
tslib_1.__metadata("design:paramtypes", [checklist_item_comment_1.ChecklistItemComment]),
|
|
44
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
45
|
-
], ChecklistItemCommentQuery.prototype, "creator", null);
|
|
46
|
-
exports.ChecklistItemCommentQuery = ChecklistItemCommentQuery = tslib_1.__decorate([
|
|
47
|
-
(0, type_graphql_1.Resolver)(checklist_item_comment_1.ChecklistItemComment)
|
|
48
|
-
], ChecklistItemCommentQuery);
|
|
49
|
-
//# sourceMappingURL=checklist-item-comment-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-item-comment-query.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA6E;AAC7E,iDAAiE;AACjE,yDAAgD;AAChD,qEAA+D;AAGxD,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAE9B,AAAN,KAAK,CAAC,qBAAqB,CACD,eAAuB,EAC5B,UAAsB,EAClC,OAAwB;QAE/B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAA;QAElC,uBAAuB;QACvB,MAAM,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,KAAK,CAAA;QAEjC,qBAAqB;QACrB,MAAM,KAAK,GAAG,MAAM,IAAA,qBAAa,EAAC,6CAAoB,CAAC;aACpD,kBAAkB,CAAC,KAAK,CAAC;aACzB,SAAS,CAAC,mBAAmB,EAAE,IAAI,CAAC;aACpC,KAAK,CAAC,sCAAsC,EAAE,EAAE,eAAe,EAAE,CAAC;aAClE,IAAI,CAAC,MAAM,CAAC;aACZ,IAAI,CAAC,KAAK,CAAC;aACX,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC;aAChC,OAAO,EAAE,CAAA;QAEZ,OAAO,KAAK,CAAA;IACd,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,oBAA0C;QAC9D,OAAO,oBAAoB,CAAC,SAAS,IAAI,CAAC,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAA;IACxH,CAAC;CACF,CAAA;AA7BY,8DAAyB;AAE9B;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC,6CAAoB,CAAC,EAAE,EAAE,WAAW,EAAE,yCAAyC,EAAE,CAAC;IAElG,mBAAA,IAAA,kBAAG,EAAC,iBAAiB,CAAC,CAAA;IACtB,mBAAA,IAAA,kBAAG,EAAC,YAAY,CAAC,CAAA;IACjB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;qDADyB,kBAAU;;sEAmB1C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,6CAAoB;;wDAE/D;oCA5BU,yBAAyB;IADrC,IAAA,uBAAQ,EAAC,6CAAoB,CAAC;GAClB,yBAAyB,CA6BrC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Arg, Ctx } from 'type-graphql'\nimport { getRepository, Pagination } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistItemComment } from './checklist-item-comment'\n\n@Resolver(ChecklistItemComment)\nexport class ChecklistItemCommentQuery {\n @Query(returns => [ChecklistItemComment], { description: 'To fetch multiple ChecklistItemComments' })\n async checklistItemComments(\n @Arg('checklistItemId') checklistItemId: string,\n @Arg('pagination') pagination: Pagination,\n @Ctx() context: ResolverContext\n ): Promise<ChecklistItemComment[]> {\n const { limit, page } = pagination\n\n // 페이지네이션을 위한 offset 계산\n const offset = (page - 1) * limit\n\n // 코멘트와 총 개수를 가져오는 쿼리\n const items = await getRepository(ChecklistItemComment)\n .createQueryBuilder('cic')\n .innerJoin('cic.checklistItem', 'ci')\n .where('cic.checklistItem = :checklistItemId', { checklistItemId })\n .skip(offset)\n .take(limit)\n .orderBy('cic.createdAt', 'DESC')\n .getMany()\n\n return items\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistItemComment: ChecklistItemComment): Promise<User> {\n return checklistItemComment.creatorId && (await getRepository(User).findOneBy({ id: checklistItemComment.creatorId }))\n }\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChecklistItemComment } from './checklist-item-comment';
|
|
2
|
-
export declare class NewChecklistItemComment {
|
|
3
|
-
comment?: string;
|
|
4
|
-
checklistItemId?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class ChecklistItemCommentPatch {
|
|
7
|
-
id?: string;
|
|
8
|
-
comment?: string;
|
|
9
|
-
checklistItemId?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare class ChecklistItemCommentList {
|
|
12
|
-
items: ChecklistItemComment[];
|
|
13
|
-
total: number;
|
|
14
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistItemCommentList = exports.ChecklistItemCommentPatch = exports.NewChecklistItemComment = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const checklist_item_comment_1 = require("./checklist-item-comment");
|
|
7
|
-
let NewChecklistItemComment = class NewChecklistItemComment {
|
|
8
|
-
};
|
|
9
|
-
exports.NewChecklistItemComment = NewChecklistItemComment;
|
|
10
|
-
tslib_1.__decorate([
|
|
11
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
12
|
-
tslib_1.__metadata("design:type", String)
|
|
13
|
-
], NewChecklistItemComment.prototype, "comment", void 0);
|
|
14
|
-
tslib_1.__decorate([
|
|
15
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
16
|
-
tslib_1.__metadata("design:type", String)
|
|
17
|
-
], NewChecklistItemComment.prototype, "checklistItemId", void 0);
|
|
18
|
-
exports.NewChecklistItemComment = NewChecklistItemComment = tslib_1.__decorate([
|
|
19
|
-
(0, type_graphql_1.InputType)()
|
|
20
|
-
], NewChecklistItemComment);
|
|
21
|
-
let ChecklistItemCommentPatch = class ChecklistItemCommentPatch {
|
|
22
|
-
};
|
|
23
|
-
exports.ChecklistItemCommentPatch = ChecklistItemCommentPatch;
|
|
24
|
-
tslib_1.__decorate([
|
|
25
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
26
|
-
tslib_1.__metadata("design:type", String)
|
|
27
|
-
], ChecklistItemCommentPatch.prototype, "id", void 0);
|
|
28
|
-
tslib_1.__decorate([
|
|
29
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
30
|
-
tslib_1.__metadata("design:type", String)
|
|
31
|
-
], ChecklistItemCommentPatch.prototype, "comment", void 0);
|
|
32
|
-
tslib_1.__decorate([
|
|
33
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
34
|
-
tslib_1.__metadata("design:type", String)
|
|
35
|
-
], ChecklistItemCommentPatch.prototype, "checklistItemId", void 0);
|
|
36
|
-
exports.ChecklistItemCommentPatch = ChecklistItemCommentPatch = tslib_1.__decorate([
|
|
37
|
-
(0, type_graphql_1.InputType)()
|
|
38
|
-
], ChecklistItemCommentPatch);
|
|
39
|
-
let ChecklistItemCommentList = class ChecklistItemCommentList {
|
|
40
|
-
};
|
|
41
|
-
exports.ChecklistItemCommentList = ChecklistItemCommentList;
|
|
42
|
-
tslib_1.__decorate([
|
|
43
|
-
(0, type_graphql_1.Field)(type => [checklist_item_comment_1.ChecklistItemComment]),
|
|
44
|
-
tslib_1.__metadata("design:type", Array)
|
|
45
|
-
], ChecklistItemCommentList.prototype, "items", void 0);
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
48
|
-
tslib_1.__metadata("design:type", Number)
|
|
49
|
-
], ChecklistItemCommentList.prototype, "total", void 0);
|
|
50
|
-
exports.ChecklistItemCommentList = ChecklistItemCommentList = tslib_1.__decorate([
|
|
51
|
-
(0, type_graphql_1.ObjectType)()
|
|
52
|
-
], ChecklistItemCommentList);
|
|
53
|
-
//# sourceMappingURL=checklist-item-comment-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-item-comment-type.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,qEAA+D;AAGxD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAMnC,CAAA;AANY,0DAAuB;AAElC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACF;kCALb,uBAAuB;IADnC,IAAA,wBAAS,GAAE;GACC,uBAAuB,CAMnC;AAGM,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CASrC,CAAA;AATY,8DAAyB;AAEpC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACF;oCARb,yBAAyB;IADrC,IAAA,wBAAS,GAAE;GACC,yBAAyB,CASrC;AAGM,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAMpC,CAAA;AANY,4DAAwB;AAEnC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,6CAAoB,CAAC,CAAC;;uDACT;AAG7B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;uDACN;mCALF,wBAAwB;IADpC,IAAA,yBAAU,GAAE;GACA,wBAAwB,CAMpC","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ChecklistItemComment } from './checklist-item-comment'\n\n@InputType()\nexport class NewChecklistItemComment {\n @Field({ nullable: true })\n comment?: string\n\n @Field({ nullable: true })\n checklistItemId?: string\n}\n\n@InputType()\nexport class ChecklistItemCommentPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n comment?: string\n\n @Field({ nullable: true })\n checklistItemId?: string\n}\n\n@ObjectType()\nexport class ChecklistItemCommentList {\n @Field(type => [ChecklistItemComment])\n items: ChecklistItemComment[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { User } from '@things-factory/auth-base';
|
|
2
|
-
import { ChecklistItem } from '../checklist-item/checklist-item';
|
|
3
|
-
export declare class ChecklistItemComment {
|
|
4
|
-
readonly id: string;
|
|
5
|
-
comment?: string;
|
|
6
|
-
checklistItem?: ChecklistItem;
|
|
7
|
-
checklistItemId?: string;
|
|
8
|
-
createdAt?: Date;
|
|
9
|
-
deletedAt?: Date;
|
|
10
|
-
creator?: User;
|
|
11
|
-
creatorId?: string;
|
|
12
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistItemComment = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const typeorm_1 = require("typeorm");
|
|
6
|
-
const type_graphql_1 = require("type-graphql");
|
|
7
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
|
-
const checklist_item_1 = require("../checklist-item/checklist-item");
|
|
9
|
-
let ChecklistItemComment = class ChecklistItemComment {
|
|
10
|
-
};
|
|
11
|
-
exports.ChecklistItemComment = ChecklistItemComment;
|
|
12
|
-
tslib_1.__decorate([
|
|
13
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
14
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
15
|
-
tslib_1.__metadata("design:type", String)
|
|
16
|
-
], ChecklistItemComment.prototype, "id", void 0);
|
|
17
|
-
tslib_1.__decorate([
|
|
18
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '조치 사항 코멘트' }),
|
|
19
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
20
|
-
tslib_1.__metadata("design:type", String)
|
|
21
|
-
], ChecklistItemComment.prototype, "comment", void 0);
|
|
22
|
-
tslib_1.__decorate([
|
|
23
|
-
(0, typeorm_1.ManyToOne)(type => checklist_item_1.ChecklistItem),
|
|
24
|
-
(0, type_graphql_1.Field)(type => checklist_item_1.ChecklistItem, { nullable: true }),
|
|
25
|
-
tslib_1.__metadata("design:type", checklist_item_1.ChecklistItem)
|
|
26
|
-
], ChecklistItemComment.prototype, "checklistItem", void 0);
|
|
27
|
-
tslib_1.__decorate([
|
|
28
|
-
(0, typeorm_1.RelationId)((checklistItemComment) => checklistItemComment.checklistItem),
|
|
29
|
-
tslib_1.__metadata("design:type", String)
|
|
30
|
-
], ChecklistItemComment.prototype, "checklistItemId", void 0);
|
|
31
|
-
tslib_1.__decorate([
|
|
32
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
33
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
34
|
-
tslib_1.__metadata("design:type", Date)
|
|
35
|
-
], ChecklistItemComment.prototype, "createdAt", void 0);
|
|
36
|
-
tslib_1.__decorate([
|
|
37
|
-
(0, typeorm_1.DeleteDateColumn)(),
|
|
38
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
39
|
-
tslib_1.__metadata("design:type", Date)
|
|
40
|
-
], ChecklistItemComment.prototype, "deletedAt", void 0);
|
|
41
|
-
tslib_1.__decorate([
|
|
42
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
43
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
44
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
45
|
-
], ChecklistItemComment.prototype, "creator", void 0);
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
(0, typeorm_1.RelationId)((checklistItemComment) => checklistItemComment.creator),
|
|
48
|
-
tslib_1.__metadata("design:type", String)
|
|
49
|
-
], ChecklistItemComment.prototype, "creatorId", void 0);
|
|
50
|
-
exports.ChecklistItemComment = ChecklistItemComment = tslib_1.__decorate([
|
|
51
|
-
(0, typeorm_1.Entity)(),
|
|
52
|
-
(0, typeorm_1.Index)('ix_checklist_item_comment_0', (checklistItemComment) => [checklistItemComment.checklistItem, checklistItemComment.createdAt], {
|
|
53
|
-
where: '"deleted_at" IS NULL'
|
|
54
|
-
}),
|
|
55
|
-
(0, type_graphql_1.ObjectType)({ description: 'Entity for ChecklistItemComment' })
|
|
56
|
-
], ChecklistItemComment);
|
|
57
|
-
//# sourceMappingURL=checklist-item-comment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-item-comment.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/checklist-item-comment.ts"],"names":[],"mappings":";;;;AAAA,qCAUgB;AAChB,+CAAoD;AACpD,yDAAgD;AAChD,qEAAgE;AAWzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CA+BhC,CAAA;AA/BY,oDAAoB;AAGtB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;gDACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IAChD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACV;AAKhB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,CAAC;IAChC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjC,8BAAa;2DAAA;AAG7B;IADC,IAAA,oBAAU,EAAC,CAAC,oBAA0C,EAAE,EAAE,CAAC,oBAAoB,CAAC,aAAa,CAAC;;6DACvE;AAIxB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;uDAAA;AAIhB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;uDAAA;AAIhB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;qDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,oBAA0C,EAAE,EAAE,CAAC,oBAAoB,CAAC,OAAO,CAAC;;uDACvE;+BA9BP,oBAAoB;IAThC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,6BAA6B,EAC7B,CAAC,oBAA0C,EAAE,EAAE,CAAC,CAAC,oBAAoB,CAAC,aAAa,EAAE,oBAAoB,CAAC,SAAS,CAAC,EACpH;QACE,KAAK,EAAE,sBAAsB;KAC9B,CACF;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;GAClD,oBAAoB,CA+BhC","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistItem } from '../checklist-item/checklist-item'\n\n@Entity()\n@Index(\n 'ix_checklist_item_comment_0',\n (checklistItemComment: ChecklistItemComment) => [checklistItemComment.checklistItem, checklistItemComment.createdAt],\n {\n where: '\"deleted_at\" IS NULL'\n }\n)\n@ObjectType({ description: 'Entity for ChecklistItemComment' })\nexport class ChecklistItemComment {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, comment: '조치 사항 코멘트' })\n @Field({ nullable: true })\n comment?: string\n\n // 체크리스트 아이템 정보 (상위 테이블 참조)\n @ManyToOne(type => ChecklistItem)\n @Field(type => ChecklistItem, { nullable: true })\n checklistItem?: ChecklistItem\n\n @RelationId((checklistItemComment: ChecklistItemComment) => checklistItemComment.checklistItem)\n checklistItemId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: 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((checklistItemComment: ChecklistItemComment) => checklistItemComment.creator)\n creatorId?: string\n}\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ChecklistItemComment } from './checklist-item-comment';
|
|
2
|
-
import { ChecklistItemCommentQuery } from './checklist-item-comment-query';
|
|
3
|
-
import { ChecklistItemCommentMutation } from './checklist-item-comment-mutation';
|
|
4
|
-
export declare const entities: (typeof ChecklistItemComment)[];
|
|
5
|
-
export declare const resolvers: (typeof ChecklistItemCommentQuery | typeof ChecklistItemCommentMutation)[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolvers = exports.entities = void 0;
|
|
4
|
-
const checklist_item_comment_1 = require("./checklist-item-comment");
|
|
5
|
-
const checklist_item_comment_history_1 = require("./checklist-item-comment-history");
|
|
6
|
-
const checklist_item_comment_query_1 = require("./checklist-item-comment-query");
|
|
7
|
-
const checklist_item_comment_mutation_1 = require("./checklist-item-comment-mutation");
|
|
8
|
-
exports.entities = [checklist_item_comment_1.ChecklistItemComment, checklist_item_comment_history_1.ChecklistItemCommentHistory];
|
|
9
|
-
exports.resolvers = [checklist_item_comment_query_1.ChecklistItemCommentQuery, checklist_item_comment_mutation_1.ChecklistItemCommentMutation];
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/index.ts"],"names":[],"mappings":";;;AAAA,qEAA+D;AAC/D,qFAA8E;AAC9E,iFAA0E;AAC1E,uFAAgF;AAEnE,QAAA,QAAQ,GAAG,CAAC,6CAAoB,EAAE,4DAA2B,CAAC,CAAA;AAC9D,QAAA,SAAS,GAAG,CAAC,wDAAyB,EAAE,8DAA4B,CAAC,CAAA","sourcesContent":["import { ChecklistItemComment } from './checklist-item-comment'\nimport { ChecklistItemCommentHistory } from './checklist-item-comment-history'\nimport { ChecklistItemCommentQuery } from './checklist-item-comment-query'\nimport { ChecklistItemCommentMutation } from './checklist-item-comment-mutation'\n\nexport const entities = [ChecklistItemComment, ChecklistItemCommentHistory]\nexport const resolvers = [ChecklistItemCommentQuery, ChecklistItemCommentMutation]\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Attachment } from '@things-factory/attachment-base';
|
|
2
|
-
import { ListParam } from '@things-factory/shell';
|
|
3
|
-
import { User } from '@things-factory/auth-base';
|
|
4
|
-
import { ChecklistItemHistory } from './checklist-item-history';
|
|
5
|
-
import { ChecklistItemHistoryList } from './checklist-item-history-type';
|
|
6
|
-
import { ChecklistItemComment } from '../checklist-item-comment/checklist-item-comment';
|
|
7
|
-
export declare class ChecklistItemHistoryQuery {
|
|
8
|
-
checklistItemHistory(id: string, context: ResolverContext): Promise<ChecklistItemHistory>;
|
|
9
|
-
checklistItemHistories(params: ListParam, context: ResolverContext): Promise<ChecklistItemHistoryList>;
|
|
10
|
-
checklistItemComments(checklistItemHistory: ChecklistItemHistory): Promise<ChecklistItemComment[]>;
|
|
11
|
-
checklistItemCommentCount(checklistItemHistory: ChecklistItemHistory): Promise<number>;
|
|
12
|
-
checklistItemAttachments(checklistItemHistory: ChecklistItemHistory, description?: string): Promise<Attachment[]>;
|
|
13
|
-
checklistItemAttachmentCount(checklistItemHistory: ChecklistItemHistory): Promise<number>;
|
|
14
|
-
updater(checklistItemHistory: ChecklistItemHistory): Promise<User>;
|
|
15
|
-
creator(checklistItemHistory: ChecklistItemHistory): Promise<User>;
|
|
16
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistItemHistoryQuery = 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 checklist_item_history_1 = require("./checklist-item-history");
|
|
10
|
-
const checklist_item_history_type_1 = require("./checklist-item-history-type");
|
|
11
|
-
const checklist_item_comment_1 = require("../checklist-item-comment/checklist-item-comment");
|
|
12
|
-
let ChecklistItemHistoryQuery = class ChecklistItemHistoryQuery {
|
|
13
|
-
async checklistItemHistory(id, context) {
|
|
14
|
-
return await (0, shell_1.getRepository)(checklist_item_history_1.ChecklistItemHistory).findOne({
|
|
15
|
-
where: { id }
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
async checklistItemHistories(params, context) {
|
|
19
|
-
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
20
|
-
params,
|
|
21
|
-
repository: await (0, shell_1.getRepository)(checklist_item_history_1.ChecklistItemHistory),
|
|
22
|
-
searchables: ['name', 'description']
|
|
23
|
-
});
|
|
24
|
-
const [items, total] = await queryBuilder.getManyAndCount();
|
|
25
|
-
return { items, total };
|
|
26
|
-
}
|
|
27
|
-
async checklistItemComments(checklistItemHistory) {
|
|
28
|
-
return await (0, shell_1.getRepository)(checklist_item_comment_1.ChecklistItemComment).findBy({ checklistItem: { id: checklistItemHistory.id } });
|
|
29
|
-
}
|
|
30
|
-
async checklistItemCommentCount(checklistItemHistory) {
|
|
31
|
-
return await (0, shell_1.getRepository)(checklist_item_comment_1.ChecklistItemComment).countBy({ checklistItem: { id: checklistItemHistory.id } });
|
|
32
|
-
}
|
|
33
|
-
async checklistItemAttachments(checklistItemHistory, description) {
|
|
34
|
-
return await (0, shell_1.getRepository)(attachment_base_1.Attachment).find({
|
|
35
|
-
where: {
|
|
36
|
-
refType: checklist_item_history_1.ChecklistItemHistory.name,
|
|
37
|
-
refBy: checklistItemHistory.id,
|
|
38
|
-
description: description // 검측 상태로 받으며 어떤 스탭에 올렸는지로 시공자/감리자 구분
|
|
39
|
-
},
|
|
40
|
-
order: {
|
|
41
|
-
createdAt: 'DESC'
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
async checklistItemAttachmentCount(checklistItemHistory) {
|
|
46
|
-
return await (0, shell_1.getRepository)(attachment_base_1.Attachment).count({
|
|
47
|
-
where: {
|
|
48
|
-
refType: checklist_item_history_1.ChecklistItemHistory.name,
|
|
49
|
-
refBy: checklistItemHistory.id
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
async updater(checklistItemHistory) {
|
|
54
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistItemHistory.updaterId });
|
|
55
|
-
}
|
|
56
|
-
async creator(checklistItemHistory) {
|
|
57
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistItemHistory.creatorId });
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
exports.ChecklistItemHistoryQuery = ChecklistItemHistoryQuery;
|
|
61
|
-
tslib_1.__decorate([
|
|
62
|
-
(0, type_graphql_1.Query)(returns => checklist_item_history_1.ChecklistItemHistory, { nullable: true, description: 'To fetch a ChecklistItemHistory' }),
|
|
63
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
64
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
65
|
-
tslib_1.__metadata("design:type", Function),
|
|
66
|
-
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
67
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
68
|
-
], ChecklistItemHistoryQuery.prototype, "checklistItemHistory", null);
|
|
69
|
-
tslib_1.__decorate([
|
|
70
|
-
(0, type_graphql_1.Query)(returns => checklist_item_history_type_1.ChecklistItemHistoryList, { description: 'To fetch multiple ChecklistItems' }),
|
|
71
|
-
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
72
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
73
|
-
tslib_1.__metadata("design:type", Function),
|
|
74
|
-
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
75
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
76
|
-
], ChecklistItemHistoryQuery.prototype, "checklistItemHistories", null);
|
|
77
|
-
tslib_1.__decorate([
|
|
78
|
-
(0, type_graphql_1.FieldResolver)(type => [checklist_item_comment_1.ChecklistItemComment]),
|
|
79
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
80
|
-
tslib_1.__metadata("design:type", Function),
|
|
81
|
-
tslib_1.__metadata("design:paramtypes", [checklist_item_history_1.ChecklistItemHistory]),
|
|
82
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
83
|
-
], ChecklistItemHistoryQuery.prototype, "checklistItemComments", null);
|
|
84
|
-
tslib_1.__decorate([
|
|
85
|
-
(0, type_graphql_1.FieldResolver)(type => Number),
|
|
86
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
87
|
-
tslib_1.__metadata("design:type", Function),
|
|
88
|
-
tslib_1.__metadata("design:paramtypes", [checklist_item_history_1.ChecklistItemHistory]),
|
|
89
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
90
|
-
], ChecklistItemHistoryQuery.prototype, "checklistItemCommentCount", null);
|
|
91
|
-
tslib_1.__decorate([
|
|
92
|
-
(0, type_graphql_1.FieldResolver)(type => [attachment_base_1.Attachment]),
|
|
93
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
94
|
-
tslib_1.__param(1, (0, type_graphql_1.Arg)('description', { nullable: true })),
|
|
95
|
-
tslib_1.__metadata("design:type", Function),
|
|
96
|
-
tslib_1.__metadata("design:paramtypes", [checklist_item_history_1.ChecklistItemHistory, String]),
|
|
97
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
98
|
-
], ChecklistItemHistoryQuery.prototype, "checklistItemAttachments", null);
|
|
99
|
-
tslib_1.__decorate([
|
|
100
|
-
(0, type_graphql_1.FieldResolver)(type => Number),
|
|
101
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
102
|
-
tslib_1.__metadata("design:type", Function),
|
|
103
|
-
tslib_1.__metadata("design:paramtypes", [checklist_item_history_1.ChecklistItemHistory]),
|
|
104
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
105
|
-
], ChecklistItemHistoryQuery.prototype, "checklistItemAttachmentCount", null);
|
|
106
|
-
tslib_1.__decorate([
|
|
107
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
108
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
109
|
-
tslib_1.__metadata("design:type", Function),
|
|
110
|
-
tslib_1.__metadata("design:paramtypes", [checklist_item_history_1.ChecklistItemHistory]),
|
|
111
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
112
|
-
], ChecklistItemHistoryQuery.prototype, "updater", null);
|
|
113
|
-
tslib_1.__decorate([
|
|
114
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
115
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
116
|
-
tslib_1.__metadata("design:type", Function),
|
|
117
|
-
tslib_1.__metadata("design:paramtypes", [checklist_item_history_1.ChecklistItemHistory]),
|
|
118
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
119
|
-
], ChecklistItemHistoryQuery.prototype, "creator", null);
|
|
120
|
-
exports.ChecklistItemHistoryQuery = ChecklistItemHistoryQuery = tslib_1.__decorate([
|
|
121
|
-
(0, type_graphql_1.Resolver)(checklist_item_history_1.ChecklistItemHistory)
|
|
122
|
-
], ChecklistItemHistoryQuery);
|
|
123
|
-
//# sourceMappingURL=checklist-item-history-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-item-history-query.js","sourceRoot":"","sources":["../../../server/service/checklist-item-history/checklist-item-history-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,qEAA4D;AAC5D,iDAA+F;AAC/F,yDAAgD;AAChD,qEAA+D;AAC/D,+EAAwE;AACxE,6FAAuF;AAGhF,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAE9B,AAAN,KAAK,CAAC,oBAAoB,CAAY,EAAU,EAAS,OAAwB;QAC/E,OAAO,MAAM,IAAA,qBAAa,EAAC,6CAAoB,CAAC,CAAC,OAAO,CAAC;YACvD,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,sBAAsB,CAAS,MAAiB,EAAS,OAAwB;QACrF,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,6CAAoB,CAAC;YACrD,WAAW,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;SACrC,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,qBAAqB,CAAS,oBAA0C;QAC5E,OAAO,MAAM,IAAA,qBAAa,EAAC,6CAAoB,CAAC,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,oBAAoB,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;IAC7G,CAAC;IAGK,AAAN,KAAK,CAAC,yBAAyB,CAAS,oBAA0C;QAChF,OAAO,MAAM,IAAA,qBAAa,EAAC,6CAAoB,CAAC,CAAC,OAAO,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,oBAAoB,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;IAC9G,CAAC;IAGK,AAAN,KAAK,CAAC,wBAAwB,CACpB,oBAA0C,EACV,WAAoB;QAE5D,OAAO,MAAM,IAAA,qBAAa,EAAC,4BAAU,CAAC,CAAC,IAAI,CAAC;YAC1C,KAAK,EAAE;gBACL,OAAO,EAAE,6CAAoB,CAAC,IAAI;gBAClC,KAAK,EAAE,oBAAoB,CAAC,EAAE;gBAC9B,WAAW,EAAE,WAAW,CAAC,qCAAqC;aAC/D;YACD,KAAK,EAAE;gBACL,SAAS,EAAE,MAAM;aAClB;SACF,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,4BAA4B,CAAS,oBAA0C;QACnF,OAAO,MAAM,IAAA,qBAAa,EAAC,4BAAU,CAAC,CAAC,KAAK,CAAC;YAC3C,KAAK,EAAE;gBACL,OAAO,EAAE,6CAAoB,CAAC,IAAI;gBAClC,KAAK,EAAE,oBAAoB,CAAC,EAAE;aAC/B;SACF,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,oBAA0C;QAC9D,OAAO,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,SAAS,EAAE,CAAC,CAAA;IACpF,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,oBAA0C;QAC9D,OAAO,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,SAAS,EAAE,CAAC,CAAA;IACpF,CAAC;CACF,CAAA;AAnEY,8DAAyB;AAE9B;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,6CAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;IAChF,mBAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;qEAIvD;AAGK;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,sDAAwB,EAAE,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IAClE,mBAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CAAjB,iBAAS;;uEAUrD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,6CAAoB,CAAC,CAAC;IACjB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,6CAAoB;;sEAE7E;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;IACG,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,6CAAoB;;0EAEjF;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAU,CAAC,CAAC;IAEjC,mBAAA,IAAA,mBAAI,GAAE,CAAA;IACN,mBAAA,IAAA,kBAAG,EAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAA;;6CADT,6CAAoB;;yEAanD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;IACM,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,6CAAoB;;6EAOpF;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,6CAAoB;;wDAE/D;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAuB,6CAAoB;;wDAE/D;oCAlEU,yBAAyB;IADrC,IAAA,uBAAQ,EAAC,6CAAoB,CAAC;GAClB,yBAAyB,CAmErC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { Attachment } from '@things-factory/attachment-base'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistItemHistory } from './checklist-item-history'\nimport { ChecklistItemHistoryList } from './checklist-item-history-type'\nimport { ChecklistItemComment } from '../checklist-item-comment/checklist-item-comment'\n\n@Resolver(ChecklistItemHistory)\nexport class ChecklistItemHistoryQuery {\n @Query(returns => ChecklistItemHistory!, { nullable: true, description: 'To fetch a ChecklistItemHistory' })\n async checklistItemHistory(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<ChecklistItemHistory> {\n return await getRepository(ChecklistItemHistory).findOne({\n where: { id }\n })\n }\n\n @Query(returns => ChecklistItemHistoryList, { description: 'To fetch multiple ChecklistItems' })\n async checklistItemHistories(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistItemHistoryList> {\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(ChecklistItemHistory),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => [ChecklistItemComment])\n async checklistItemComments(@Root() checklistItemHistory: ChecklistItemHistory): Promise<ChecklistItemComment[]> {\n return await getRepository(ChecklistItemComment).findBy({ checklistItem: { id: checklistItemHistory.id } })\n }\n\n @FieldResolver(type => Number)\n async checklistItemCommentCount(@Root() checklistItemHistory: ChecklistItemHistory): Promise<number> {\n return await getRepository(ChecklistItemComment).countBy({ checklistItem: { id: checklistItemHistory.id } })\n }\n\n @FieldResolver(type => [Attachment])\n async checklistItemAttachments(\n @Root() checklistItemHistory: ChecklistItemHistory,\n @Arg('description', { nullable: true }) description?: string\n ): Promise<Attachment[]> {\n return await getRepository(Attachment).find({\n where: {\n refType: ChecklistItemHistory.name,\n refBy: checklistItemHistory.id,\n description: description // 검측 상태로 받으며 어떤 스탭에 올렸는지로 시공자/감리자 구분\n },\n order: {\n createdAt: 'DESC'\n }\n })\n }\n\n @FieldResolver(type => Number)\n async checklistItemAttachmentCount(@Root() checklistItemHistory: ChecklistItemHistory): Promise<number> {\n return await getRepository(Attachment).count({\n where: {\n refType: ChecklistItemHistory.name,\n refBy: checklistItemHistory.id\n }\n })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklistItemHistory: ChecklistItemHistory): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistItemHistory.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistItemHistory: ChecklistItemHistory): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistItemHistory.creatorId })\n }\n}\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistItemHistoryList = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const checklist_item_history_1 = require("./checklist-item-history");
|
|
7
|
-
let ChecklistItemHistoryList = class ChecklistItemHistoryList {
|
|
8
|
-
};
|
|
9
|
-
exports.ChecklistItemHistoryList = ChecklistItemHistoryList;
|
|
10
|
-
tslib_1.__decorate([
|
|
11
|
-
(0, type_graphql_1.Field)(type => [checklist_item_history_1.ChecklistItemHistory]),
|
|
12
|
-
tslib_1.__metadata("design:type", Array)
|
|
13
|
-
], ChecklistItemHistoryList.prototype, "items", void 0);
|
|
14
|
-
tslib_1.__decorate([
|
|
15
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
16
|
-
tslib_1.__metadata("design:type", Number)
|
|
17
|
-
], ChecklistItemHistoryList.prototype, "total", void 0);
|
|
18
|
-
exports.ChecklistItemHistoryList = ChecklistItemHistoryList = tslib_1.__decorate([
|
|
19
|
-
(0, type_graphql_1.ObjectType)()
|
|
20
|
-
], ChecklistItemHistoryList);
|
|
21
|
-
//# sourceMappingURL=checklist-item-history-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-item-history-type.js","sourceRoot":"","sources":["../../../server/service/checklist-item-history/checklist-item-history-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAqD;AACrD,qEAA+D;AAGxD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAMpC,CAAA;AANY,4DAAwB;AAEnC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,6CAAoB,CAAC,CAAC;;uDACT;AAG7B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;uDACN;mCALF,wBAAwB;IADpC,IAAA,yBAAU,GAAE;GACA,wBAAwB,CAMpC","sourcesContent":["import { ObjectType, Field, Int } from 'type-graphql'\nimport { ChecklistItemHistory } from './checklist-item-history'\n\n@ObjectType()\nexport class ChecklistItemHistoryList {\n @Field(type => [ChecklistItemHistory])\n items: ChecklistItemHistory[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { ChecklistItem, ChecklistItemConfirmStatus } from '../checklist-item/checklist-item';
|
|
4
|
-
import { ChecklistHistory } from '../checklist-history/checklist-history';
|
|
5
|
-
export declare class ChecklistItemHistory implements HistoryEntityInterface<ChecklistItem> {
|
|
6
|
-
readonly id: string;
|
|
7
|
-
originalId: string;
|
|
8
|
-
sequence?: number;
|
|
9
|
-
mainType?: string;
|
|
10
|
-
detailType?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
inspctionCriteria?: string;
|
|
13
|
-
constructionConfirmStatus?: ChecklistItemConfirmStatus;
|
|
14
|
-
supervisoryConfirmStatus?: ChecklistItemConfirmStatus;
|
|
15
|
-
checklistId?: string;
|
|
16
|
-
checklistHistory?: ChecklistHistory;
|
|
17
|
-
checklistHistoryId?: string;
|
|
18
|
-
createdAt?: Date;
|
|
19
|
-
loggedAt?: Date;
|
|
20
|
-
creator?: User;
|
|
21
|
-
creatorId?: string;
|
|
22
|
-
updater?: User;
|
|
23
|
-
updaterId?: string;
|
|
24
|
-
action: HistoryActionType;
|
|
25
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistItemHistory = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const typeorm_1 = require("typeorm");
|
|
7
|
-
const typeorm_history_1 = require("@operato/typeorm-history");
|
|
8
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
-
const env_1 = require("@things-factory/env");
|
|
10
|
-
const checklist_item_1 = require("../checklist-item/checklist-item");
|
|
11
|
-
const checklist_history_1 = require("../checklist-history/checklist-history");
|
|
12
|
-
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
|
13
|
-
const DATABASE_TYPE = ORMCONFIG.type;
|
|
14
|
-
let ChecklistItemHistory = class ChecklistItemHistory {
|
|
15
|
-
};
|
|
16
|
-
exports.ChecklistItemHistory = ChecklistItemHistory;
|
|
17
|
-
tslib_1.__decorate([
|
|
18
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
19
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
20
|
-
tslib_1.__metadata("design:type", String)
|
|
21
|
-
], ChecklistItemHistory.prototype, "id", void 0);
|
|
22
|
-
tslib_1.__decorate([
|
|
23
|
-
(0, typeorm_history_1.HistoryOriginalIdColumn)(),
|
|
24
|
-
tslib_1.__metadata("design:type", String)
|
|
25
|
-
], ChecklistItemHistory.prototype, "originalId", void 0);
|
|
26
|
-
tslib_1.__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '시퀀스' }),
|
|
28
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
29
|
-
tslib_1.__metadata("design:type", Number)
|
|
30
|
-
], ChecklistItemHistory.prototype, "sequence", void 0);
|
|
31
|
-
tslib_1.__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ nullable: false, comment: '구분 (텍스트)' }),
|
|
33
|
-
(0, type_graphql_1.Field)({ nullable: false }),
|
|
34
|
-
tslib_1.__metadata("design:type", String)
|
|
35
|
-
], ChecklistItemHistory.prototype, "mainType", void 0);
|
|
36
|
-
tslib_1.__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ nullable: false, comment: '상세 구분 (텍스트)' }),
|
|
38
|
-
(0, type_graphql_1.Field)({ nullable: false }),
|
|
39
|
-
tslib_1.__metadata("design:type", String)
|
|
40
|
-
], ChecklistItemHistory.prototype, "detailType", void 0);
|
|
41
|
-
tslib_1.__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '검사 항목' }),
|
|
43
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
44
|
-
tslib_1.__metadata("design:type", String)
|
|
45
|
-
], ChecklistItemHistory.prototype, "name", void 0);
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '검사 기준' }),
|
|
48
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
49
|
-
tslib_1.__metadata("design:type", String)
|
|
50
|
-
], ChecklistItemHistory.prototype, "inspctionCriteria", void 0);
|
|
51
|
-
tslib_1.__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '시공 관리자 적합 여부 (T: 적합, F: 부적합)' }),
|
|
53
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
54
|
-
tslib_1.__metadata("design:type", String)
|
|
55
|
-
], ChecklistItemHistory.prototype, "constructionConfirmStatus", void 0);
|
|
56
|
-
tslib_1.__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '감리 관리자 적합 여부 (T: 적합, F: 부적합)' }),
|
|
58
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
59
|
-
tslib_1.__metadata("design:type", String)
|
|
60
|
-
], ChecklistItemHistory.prototype, "supervisoryConfirmStatus", void 0);
|
|
61
|
-
tslib_1.__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '체크리스트 ID' }),
|
|
63
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
64
|
-
tslib_1.__metadata("design:type", String)
|
|
65
|
-
], ChecklistItemHistory.prototype, "checklistId", void 0);
|
|
66
|
-
tslib_1.__decorate([
|
|
67
|
-
(0, typeorm_1.ManyToOne)(type => checklist_history_1.ChecklistHistory, { nullable: true }),
|
|
68
|
-
(0, type_graphql_1.Field)(type => checklist_history_1.ChecklistHistory, { nullable: true }),
|
|
69
|
-
tslib_1.__metadata("design:type", checklist_history_1.ChecklistHistory)
|
|
70
|
-
], ChecklistItemHistory.prototype, "checklistHistory", void 0);
|
|
71
|
-
tslib_1.__decorate([
|
|
72
|
-
(0, typeorm_1.RelationId)((checklistItemHistory) => checklistItemHistory.checklistHistory),
|
|
73
|
-
tslib_1.__metadata("design:type", String)
|
|
74
|
-
], ChecklistItemHistory.prototype, "checklistHistoryId", void 0);
|
|
75
|
-
tslib_1.__decorate([
|
|
76
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
77
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
78
|
-
tslib_1.__metadata("design:type", Date)
|
|
79
|
-
], ChecklistItemHistory.prototype, "createdAt", void 0);
|
|
80
|
-
tslib_1.__decorate([
|
|
81
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
82
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
83
|
-
tslib_1.__metadata("design:type", Date)
|
|
84
|
-
], ChecklistItemHistory.prototype, "loggedAt", void 0);
|
|
85
|
-
tslib_1.__decorate([
|
|
86
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
87
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
88
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
89
|
-
], ChecklistItemHistory.prototype, "creator", void 0);
|
|
90
|
-
tslib_1.__decorate([
|
|
91
|
-
(0, typeorm_1.RelationId)((checklistItemHistory) => checklistItemHistory.creator),
|
|
92
|
-
tslib_1.__metadata("design:type", String)
|
|
93
|
-
], ChecklistItemHistory.prototype, "creatorId", void 0);
|
|
94
|
-
tslib_1.__decorate([
|
|
95
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
96
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
97
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
98
|
-
], ChecklistItemHistory.prototype, "updater", void 0);
|
|
99
|
-
tslib_1.__decorate([
|
|
100
|
-
(0, typeorm_1.RelationId)((checklistItemHistory) => checklistItemHistory.updater),
|
|
101
|
-
tslib_1.__metadata("design:type", String)
|
|
102
|
-
], ChecklistItemHistory.prototype, "updaterId", void 0);
|
|
103
|
-
tslib_1.__decorate([
|
|
104
|
-
(0, typeorm_history_1.HistoryActionColumn)({
|
|
105
|
-
nullable: false,
|
|
106
|
-
type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
|
107
|
-
? 'enum'
|
|
108
|
-
: DATABASE_TYPE == 'oracle'
|
|
109
|
-
? 'varchar2'
|
|
110
|
-
: DATABASE_TYPE == 'mssql'
|
|
111
|
-
? 'nvarchar'
|
|
112
|
-
: 'varchar',
|
|
113
|
-
enum: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? typeorm_history_1.HistoryActionType : undefined,
|
|
114
|
-
length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
|
|
115
|
-
}),
|
|
116
|
-
tslib_1.__metadata("design:type", String)
|
|
117
|
-
], ChecklistItemHistory.prototype, "action", void 0);
|
|
118
|
-
exports.ChecklistItemHistory = ChecklistItemHistory = tslib_1.__decorate([
|
|
119
|
-
(0, typeorm_1.Entity)(),
|
|
120
|
-
(0, typeorm_1.Index)('ix_checklist_item_history_0', (checklistItemHistory) => [checklistItemHistory.originalId]),
|
|
121
|
-
(0, type_graphql_1.ObjectType)({ description: 'History Entity of ChecklistItem' })
|
|
122
|
-
], ChecklistItemHistory);
|
|
123
|
-
//# sourceMappingURL=checklist-item-history.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-item-history.js","sourceRoot":"","sources":["../../../server/service/checklist-item-history/checklist-item-history.ts"],"names":[],"mappings":"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","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\nimport { HistoryActionColumn, HistoryActionType, HistoryEntityInterface, HistoryOriginalIdColumn } from '@operato/typeorm-history'\nimport { User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { ChecklistItem, ChecklistItemConfirmStatus } from '../checklist-item/checklist-item'\nimport { ChecklistHistory } from '../checklist-history/checklist-history'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index('ix_checklist_item_history_0', (checklistItemHistory: ChecklistItemHistory) => [checklistItemHistory.originalId])\n@ObjectType({ description: 'History Entity of ChecklistItem' })\nexport class ChecklistItemHistory implements HistoryEntityInterface<ChecklistItem> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @HistoryOriginalIdColumn()\n public originalId!: string\n\n @Column({ nullable: true, comment: '시퀀스' })\n @Field({ nullable: true })\n sequence?: number\n\n @Column({ nullable: false, comment: '구분 (텍스트)' })\n @Field({ nullable: false })\n mainType?: string\n\n @Column({ nullable: false, comment: '상세 구분 (텍스트)' })\n @Field({ nullable: false })\n detailType?: string\n\n @Column({ nullable: true, comment: '검사 항목' })\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true, comment: '검사 기준' })\n @Field({ nullable: true })\n inspctionCriteria?: string\n\n @Column({ nullable: true, comment: '시공 관리자 적합 여부 (T: 적합, F: 부적합)' })\n @Field({ nullable: true })\n constructionConfirmStatus?: ChecklistItemConfirmStatus\n\n @Column({ nullable: true, comment: '감리 관리자 적합 여부 (T: 적합, F: 부적합)' })\n @Field({ nullable: true })\n supervisoryConfirmStatus?: ChecklistItemConfirmStatus\n\n // 부모 체크리스트 ID (원본 엔티티 ID 저장)\n @Column({ nullable: true, comment: '체크리스트 ID' })\n @Field({ nullable: true })\n checklistId?: string\n\n // 상위 체크리스트 히스토리 스냅샷 FK (동일 트랜잭션 스냅샷 연결)\n @ManyToOne(type => ChecklistHistory, { nullable: true })\n @Field(type => ChecklistHistory, { nullable: true })\n checklistHistory?: ChecklistHistory\n\n @RelationId((checklistItemHistory: ChecklistItemHistory) => checklistItemHistory.checklistHistory)\n checklistHistoryId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @CreateDateColumn()\n @Field({ nullable: true })\n loggedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((checklistItemHistory: ChecklistItemHistory) => checklistItemHistory.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((checklistItemHistory: ChecklistItemHistory) => checklistItemHistory.updater)\n updaterId?: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n enum: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? HistoryActionType : undefined,\n length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10\n })\n public action!: HistoryActionType\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HistoryEntitySubscriber } from '@operato/typeorm-history';
|
|
2
|
-
import { ChecklistItem } from '../checklist-item/checklist-item';
|
|
3
|
-
import { ChecklistItemHistory } from './checklist-item-history';
|
|
4
|
-
export declare class ChecklistItemHistoryEntitySubscriber extends HistoryEntitySubscriber<ChecklistItem, ChecklistItemHistory> {
|
|
5
|
-
get entity(): typeof ChecklistItem;
|
|
6
|
-
get historyEntity(): typeof ChecklistItemHistory;
|
|
7
|
-
}
|