@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,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistItemHistoryEntitySubscriber = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const typeorm_1 = require("typeorm");
|
|
6
|
-
const typeorm_history_1 = require("@operato/typeorm-history");
|
|
7
|
-
const checklist_item_1 = require("../checklist-item/checklist-item");
|
|
8
|
-
const checklist_item_history_1 = require("./checklist-item-history");
|
|
9
|
-
let ChecklistItemHistoryEntitySubscriber = class ChecklistItemHistoryEntitySubscriber extends typeorm_history_1.HistoryEntitySubscriber {
|
|
10
|
-
get entity() {
|
|
11
|
-
return checklist_item_1.ChecklistItem;
|
|
12
|
-
}
|
|
13
|
-
get historyEntity() {
|
|
14
|
-
return checklist_item_history_1.ChecklistItemHistory;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
exports.ChecklistItemHistoryEntitySubscriber = ChecklistItemHistoryEntitySubscriber;
|
|
18
|
-
exports.ChecklistItemHistoryEntitySubscriber = ChecklistItemHistoryEntitySubscriber = tslib_1.__decorate([
|
|
19
|
-
(0, typeorm_1.EventSubscriber)()
|
|
20
|
-
], ChecklistItemHistoryEntitySubscriber);
|
|
21
|
-
//# sourceMappingURL=event-subscriber.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/checklist-item-history/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,8DAAkE;AAElE,qEAAgE;AAChE,qEAA+D;AAGxD,IAAM,oCAAoC,GAA1C,MAAM,oCAAqC,SAAQ,yCAA4D;IACpH,IAAW,MAAM;QACf,OAAO,8BAAa,CAAA;IACtB,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,6CAAoB,CAAA;IAC7B,CAAC;CACF,CAAA;AARY,oFAAoC;+CAApC,oCAAoC;IADhD,IAAA,yBAAe,GAAE;GACL,oCAAoC,CAQhD","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@operato/typeorm-history'\n\nimport { ChecklistItem } from '../checklist-item/checklist-item'\nimport { ChecklistItemHistory } from './checklist-item-history'\n\n@EventSubscriber()\nexport class ChecklistItemHistoryEntitySubscriber extends HistoryEntitySubscriber<ChecklistItem, ChecklistItemHistory> {\n public get entity() {\n return ChecklistItem\n }\n\n public get historyEntity() {\n return ChecklistItemHistory\n }\n}\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ChecklistItemHistory } from './checklist-item-history';
|
|
2
|
-
import { ChecklistItemHistoryQuery } from './checklist-item-history-query';
|
|
3
|
-
import { ChecklistItemHistoryEntitySubscriber } from './event-subscriber';
|
|
4
|
-
export declare const entities: (typeof ChecklistItemHistory)[];
|
|
5
|
-
export declare const resolvers: (typeof ChecklistItemHistoryQuery)[];
|
|
6
|
-
export declare const subscribers: (typeof ChecklistItemHistoryEntitySubscriber)[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.subscribers = exports.resolvers = exports.entities = void 0;
|
|
4
|
-
const checklist_item_history_1 = require("./checklist-item-history");
|
|
5
|
-
const checklist_item_history_query_1 = require("./checklist-item-history-query");
|
|
6
|
-
const event_subscriber_1 = require("./event-subscriber");
|
|
7
|
-
exports.entities = [checklist_item_history_1.ChecklistItemHistory];
|
|
8
|
-
exports.resolvers = [checklist_item_history_query_1.ChecklistItemHistoryQuery];
|
|
9
|
-
exports.subscribers = [event_subscriber_1.ChecklistItemHistoryEntitySubscriber];
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-item-history/index.ts"],"names":[],"mappings":";;;AAAA,qEAA+D;AAC/D,iFAA0E;AAC1E,yDAAyE;AAE5D,QAAA,QAAQ,GAAG,CAAC,6CAAoB,CAAC,CAAA;AACjC,QAAA,SAAS,GAAG,CAAC,wDAAyB,CAAC,CAAA;AACvC,QAAA,WAAW,GAAG,CAAC,uDAAoC,CAAC,CAAA","sourcesContent":["import { ChecklistItemHistory } from './checklist-item-history'\nimport { ChecklistItemHistoryQuery } from './checklist-item-history-query'\nimport { ChecklistItemHistoryEntitySubscriber } from './event-subscriber'\n\nexport const entities = [ChecklistItemHistory]\nexport const resolvers = [ChecklistItemHistoryQuery]\nexport const subscribers = [ChecklistItemHistoryEntitySubscriber]\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ChecklistTemplate } from './checklist-template';
|
|
2
|
-
import { ChecklistTemplatePatch } from './checklist-template-type';
|
|
3
|
-
export declare class ChecklistTemplateMutation {
|
|
4
|
-
updateMultipleChecklistTemplate(patches: ChecklistTemplatePatch[], context: ResolverContext): Promise<ChecklistTemplate[]>;
|
|
5
|
-
deleteChecklistTemplates(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
6
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistTemplateMutation = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const typeorm_1 = require("typeorm");
|
|
7
|
-
const checklist_template_1 = require("./checklist-template");
|
|
8
|
-
const checklist_template_type_1 = require("./checklist-template-type");
|
|
9
|
-
let ChecklistTemplateMutation = class ChecklistTemplateMutation {
|
|
10
|
-
async updateMultipleChecklistTemplate(patches, context) {
|
|
11
|
-
const { domain, user, tx } = context.state;
|
|
12
|
-
let results = [];
|
|
13
|
-
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
14
|
-
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
15
|
-
const checklistTemplateRepo = tx.getRepository(checklist_template_1.ChecklistTemplate);
|
|
16
|
-
if (_createRecords.length > 0) {
|
|
17
|
-
for (let i = 0; i < _createRecords.length; i++) {
|
|
18
|
-
const newRecord = _createRecords[i];
|
|
19
|
-
const result = await checklistTemplateRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
|
|
20
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
if (_updateRecords.length > 0) {
|
|
24
|
-
for (let i = 0; i < _updateRecords.length; i++) {
|
|
25
|
-
const updateRecord = _updateRecords[i];
|
|
26
|
-
const checklistTemplate = await checklistTemplateRepo.findOneBy({ id: updateRecord.id });
|
|
27
|
-
const result = await checklistTemplateRepo.save(Object.assign(Object.assign(Object.assign({}, checklistTemplate), updateRecord), { updater: user }));
|
|
28
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return results;
|
|
32
|
-
}
|
|
33
|
-
async deleteChecklistTemplates(ids, context) {
|
|
34
|
-
const { domain, tx } = context.state;
|
|
35
|
-
await tx.getRepository(checklist_template_1.ChecklistTemplate).delete({
|
|
36
|
-
domain: { id: domain.id },
|
|
37
|
-
id: (0, typeorm_1.In)(ids)
|
|
38
|
-
});
|
|
39
|
-
return true;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
exports.ChecklistTemplateMutation = ChecklistTemplateMutation;
|
|
43
|
-
tslib_1.__decorate([
|
|
44
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
45
|
-
(0, type_graphql_1.Mutation)(returns => [checklist_template_1.ChecklistTemplate], { description: "To modify multiple ChecklistTemplates' information" }),
|
|
46
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [checklist_template_type_1.ChecklistTemplatePatch])),
|
|
47
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
48
|
-
tslib_1.__metadata("design:type", Function),
|
|
49
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
50
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
51
|
-
], ChecklistTemplateMutation.prototype, "updateMultipleChecklistTemplate", null);
|
|
52
|
-
tslib_1.__decorate([
|
|
53
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
54
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple ChecklistTemplates' }),
|
|
55
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
56
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
57
|
-
tslib_1.__metadata("design:type", Function),
|
|
58
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
59
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
60
|
-
], ChecklistTemplateMutation.prototype, "deleteChecklistTemplates", null);
|
|
61
|
-
exports.ChecklistTemplateMutation = ChecklistTemplateMutation = tslib_1.__decorate([
|
|
62
|
-
(0, type_graphql_1.Resolver)(checklist_template_1.ChecklistTemplate)
|
|
63
|
-
], ChecklistTemplateMutation);
|
|
64
|
-
//# sourceMappingURL=checklist-template-mutation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-template-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist-template/checklist-template-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,6DAAwD;AACxD,uEAAkE;AAG3D,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAG9B,AAAN,KAAK,CAAC,+BAA+B,CACe,OAAiC,EAC5E,OAAwB;QAE/B,MAAM,EAAE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;;yEASjF;oCA1DU,yBAAyB;IADrC,IAAA,uBAAQ,EAAC,sCAAiB,CAAC;GACf,yBAAyB,CA2DrC","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\nimport { ChecklistTemplate } from './checklist-template'\nimport { ChecklistTemplatePatch } from './checklist-template-type'\n\n@Resolver(ChecklistTemplate)\nexport class ChecklistTemplateMutation {\n @Directive('@transaction')\n @Mutation(returns => [ChecklistTemplate], { description: \"To modify multiple ChecklistTemplates' information\" })\n async updateMultipleChecklistTemplate(\n @Arg('patches', type => [ChecklistTemplatePatch]) patches: ChecklistTemplatePatch[],\n @Ctx() context: ResolverContext\n ): Promise<ChecklistTemplate[]> {\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 checklistTemplateRepo = tx.getRepository(ChecklistTemplate)\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 checklistTemplateRepo.save({\n ...newRecord,\n domain,\n creator: user,\n updater: user\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 checklistTemplate = await checklistTemplateRepo.findOneBy({ id: updateRecord.id })\n\n const result = await checklistTemplateRepo.save({\n ...checklistTemplate,\n ...updateRecord,\n updater: user\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 multiple ChecklistTemplates' })\n async deleteChecklistTemplates(@Arg('ids', type => [String]) ids: string[], @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(ChecklistTemplate).delete({\n domain: { id: domain.id },\n id: In(ids)\n })\n\n return true\n }\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Domain, ListParam } from '@things-factory/shell';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { ChecklistTemplate } from './checklist-template';
|
|
4
|
-
import { ChecklistTemplateList } from './checklist-template-type';
|
|
5
|
-
export declare class ChecklistTemplateQuery {
|
|
6
|
-
checklistTemplates(params: ListParam, context: ResolverContext): Promise<ChecklistTemplateList>;
|
|
7
|
-
domain(checklistTemplate: ChecklistTemplate): Promise<Domain>;
|
|
8
|
-
updater(checklistTemplate: ChecklistTemplate): Promise<User>;
|
|
9
|
-
creator(checklistTemplate: ChecklistTemplate): Promise<User>;
|
|
10
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistTemplateQuery = 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_template_1 = require("./checklist-template");
|
|
9
|
-
const checklist_template_type_1 = require("./checklist-template-type");
|
|
10
|
-
let ChecklistTemplateQuery = class ChecklistTemplateQuery {
|
|
11
|
-
async checklistTemplates(params, context) {
|
|
12
|
-
const { domain } = context.state;
|
|
13
|
-
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
14
|
-
domain,
|
|
15
|
-
params,
|
|
16
|
-
repository: await (0, shell_1.getRepository)(checklist_template_1.ChecklistTemplate),
|
|
17
|
-
searchables: ['name']
|
|
18
|
-
});
|
|
19
|
-
const [items, total] = await queryBuilder.getManyAndCount();
|
|
20
|
-
return { items, total };
|
|
21
|
-
}
|
|
22
|
-
async domain(checklistTemplate) {
|
|
23
|
-
return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: checklistTemplate.domainId });
|
|
24
|
-
}
|
|
25
|
-
async updater(checklistTemplate) {
|
|
26
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistTemplate.updaterId });
|
|
27
|
-
}
|
|
28
|
-
async creator(checklistTemplate) {
|
|
29
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistTemplate.creatorId });
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
exports.ChecklistTemplateQuery = ChecklistTemplateQuery;
|
|
33
|
-
tslib_1.__decorate([
|
|
34
|
-
(0, type_graphql_1.Query)(returns => checklist_template_type_1.ChecklistTemplateList, { description: 'To fetch multiple ChecklistTemplates' }),
|
|
35
|
-
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
36
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
37
|
-
tslib_1.__metadata("design:type", Function),
|
|
38
|
-
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
39
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
40
|
-
], ChecklistTemplateQuery.prototype, "checklistTemplates", null);
|
|
41
|
-
tslib_1.__decorate([
|
|
42
|
-
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
43
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
44
|
-
tslib_1.__metadata("design:type", Function),
|
|
45
|
-
tslib_1.__metadata("design:paramtypes", [checklist_template_1.ChecklistTemplate]),
|
|
46
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
47
|
-
], ChecklistTemplateQuery.prototype, "domain", null);
|
|
48
|
-
tslib_1.__decorate([
|
|
49
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
50
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
51
|
-
tslib_1.__metadata("design:type", Function),
|
|
52
|
-
tslib_1.__metadata("design:paramtypes", [checklist_template_1.ChecklistTemplate]),
|
|
53
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
54
|
-
], ChecklistTemplateQuery.prototype, "updater", null);
|
|
55
|
-
tslib_1.__decorate([
|
|
56
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
57
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
58
|
-
tslib_1.__metadata("design:type", Function),
|
|
59
|
-
tslib_1.__metadata("design:paramtypes", [checklist_template_1.ChecklistTemplate]),
|
|
60
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
61
|
-
], ChecklistTemplateQuery.prototype, "creator", null);
|
|
62
|
-
exports.ChecklistTemplateQuery = ChecklistTemplateQuery = tslib_1.__decorate([
|
|
63
|
-
(0, type_graphql_1.Resolver)(checklist_template_1.ChecklistTemplate)
|
|
64
|
-
], ChecklistTemplateQuery);
|
|
65
|
-
//# sourceMappingURL=checklist-template-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-template-query.js","sourceRoot":"","sources":["../../../server/service/checklist-template/checklist-template-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8E;AAC9E,iDAAuG;AACvG,yDAAgD;AAChD,6DAAwD;AACxD,uEAAiE;AAG1D,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAE3B,AAAN,KAAK,CAAC,kBAAkB,CAAS,MAAiB,EAAS,OAAwB;QACjF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,sCAAiB,CAAC;YAClD,WAAW,EAAE,CAAC,MAAM,CAAC;SACtB,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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CAAC;GACf,sBAAsB,CA+BlC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Ctx } from 'type-graphql'\nimport { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistTemplate } from './checklist-template'\nimport { ChecklistTemplateList } from './checklist-template-type'\n\n@Resolver(ChecklistTemplate)\nexport class ChecklistTemplateQuery {\n @Query(returns => ChecklistTemplateList, { description: 'To fetch multiple ChecklistTemplates' })\n async checklistTemplates(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistTemplateList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n domain,\n params,\n repository: await getRepository(ChecklistTemplate),\n searchables: ['name']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() checklistTemplate: ChecklistTemplate): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: checklistTemplate.domainId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklistTemplate: ChecklistTemplate): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistTemplate.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistTemplate: ChecklistTemplate): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistTemplate.creatorId })\n }\n}\n"]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistTemplateList = exports.ChecklistTemplatePatch = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const checklist_template_1 = require("./checklist-template");
|
|
7
|
-
let ChecklistTemplatePatch = class ChecklistTemplatePatch {
|
|
8
|
-
};
|
|
9
|
-
exports.ChecklistTemplatePatch = ChecklistTemplatePatch;
|
|
10
|
-
tslib_1.__decorate([
|
|
11
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
12
|
-
tslib_1.__metadata("design:type", String)
|
|
13
|
-
], ChecklistTemplatePatch.prototype, "id", void 0);
|
|
14
|
-
tslib_1.__decorate([
|
|
15
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
16
|
-
tslib_1.__metadata("design:type", String)
|
|
17
|
-
], ChecklistTemplatePatch.prototype, "name", void 0);
|
|
18
|
-
tslib_1.__decorate([
|
|
19
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
20
|
-
tslib_1.__metadata("design:type", String)
|
|
21
|
-
], ChecklistTemplatePatch.prototype, "cuFlag", void 0);
|
|
22
|
-
exports.ChecklistTemplatePatch = ChecklistTemplatePatch = tslib_1.__decorate([
|
|
23
|
-
(0, type_graphql_1.InputType)()
|
|
24
|
-
], ChecklistTemplatePatch);
|
|
25
|
-
let ChecklistTemplateList = class ChecklistTemplateList {
|
|
26
|
-
};
|
|
27
|
-
exports.ChecklistTemplateList = ChecklistTemplateList;
|
|
28
|
-
tslib_1.__decorate([
|
|
29
|
-
(0, type_graphql_1.Field)(type => [checklist_template_1.ChecklistTemplate]),
|
|
30
|
-
tslib_1.__metadata("design:type", Array)
|
|
31
|
-
], ChecklistTemplateList.prototype, "items", void 0);
|
|
32
|
-
tslib_1.__decorate([
|
|
33
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
34
|
-
tslib_1.__metadata("design:type", Number)
|
|
35
|
-
], ChecklistTemplateList.prototype, "total", void 0);
|
|
36
|
-
exports.ChecklistTemplateList = ChecklistTemplateList = tslib_1.__decorate([
|
|
37
|
-
(0, type_graphql_1.ObjectType)()
|
|
38
|
-
], ChecklistTemplateList);
|
|
39
|
-
//# sourceMappingURL=checklist-template-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-template-type.js","sourceRoot":"","sources":["../../../server/service/checklist-template/checklist-template-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,6DAAwD;AAGjD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CASlC,CAAA;AATY,wDAAsB;AAEjC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACX;iCARJ,sBAAsB;IADlC,IAAA,wBAAS,GAAE;GACC,sBAAsB,CASlC;AAGM,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAMjC,CAAA;AANY,sDAAqB;AAEhC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,sCAAiB,CAAC,CAAC;;oDACT;AAG1B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;oDACN;gCALF,qBAAqB;IADjC,IAAA,yBAAU,GAAE;GACA,qBAAqB,CAMjC","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ChecklistTemplate } from './checklist-template'\n\n@InputType()\nexport class ChecklistTemplatePatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class ChecklistTemplateList {\n @Field(type => [ChecklistTemplate])\n items: ChecklistTemplate[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Domain } from '@things-factory/shell';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { ChecklistTemplateItem } from '../checklist-template-item/checklist-template-item';
|
|
4
|
-
export declare class ChecklistTemplate {
|
|
5
|
-
readonly id: string;
|
|
6
|
-
domain?: Domain;
|
|
7
|
-
domainId?: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
checklistTemplateItems?: ChecklistTemplateItem[];
|
|
10
|
-
createdAt?: Date;
|
|
11
|
-
updatedAt?: Date;
|
|
12
|
-
deletedAt?: Date;
|
|
13
|
-
creator?: User;
|
|
14
|
-
creatorId?: string;
|
|
15
|
-
updater?: User;
|
|
16
|
-
updaterId?: string;
|
|
17
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistTemplate = 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 checklist_template_item_1 = require("../checklist-template-item/checklist-template-item");
|
|
10
|
-
let ChecklistTemplate = class ChecklistTemplate {
|
|
11
|
-
};
|
|
12
|
-
exports.ChecklistTemplate = ChecklistTemplate;
|
|
13
|
-
tslib_1.__decorate([
|
|
14
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
15
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
16
|
-
tslib_1.__metadata("design:type", String)
|
|
17
|
-
], ChecklistTemplate.prototype, "id", void 0);
|
|
18
|
-
tslib_1.__decorate([
|
|
19
|
-
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
20
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
21
|
-
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
22
|
-
], ChecklistTemplate.prototype, "domain", void 0);
|
|
23
|
-
tslib_1.__decorate([
|
|
24
|
-
(0, typeorm_1.RelationId)((checklistTemplate) => checklistTemplate.domain),
|
|
25
|
-
tslib_1.__metadata("design:type", String)
|
|
26
|
-
], ChecklistTemplate.prototype, "domainId", void 0);
|
|
27
|
-
tslib_1.__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true, comment: '이름' }),
|
|
29
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
30
|
-
tslib_1.__metadata("design:type", String)
|
|
31
|
-
], ChecklistTemplate.prototype, "name", void 0);
|
|
32
|
-
tslib_1.__decorate([
|
|
33
|
-
(0, type_graphql_1.Field)(() => [checklist_template_item_1.ChecklistTemplateItem]),
|
|
34
|
-
(0, typeorm_1.OneToMany)(() => checklist_template_item_1.ChecklistTemplateItem, checklistTemplateItem => checklistTemplateItem.checklistTemplate),
|
|
35
|
-
tslib_1.__metadata("design:type", Array)
|
|
36
|
-
], ChecklistTemplate.prototype, "checklistTemplateItems", void 0);
|
|
37
|
-
tslib_1.__decorate([
|
|
38
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
39
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
40
|
-
tslib_1.__metadata("design:type", Date)
|
|
41
|
-
], ChecklistTemplate.prototype, "createdAt", void 0);
|
|
42
|
-
tslib_1.__decorate([
|
|
43
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
44
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
-
tslib_1.__metadata("design:type", Date)
|
|
46
|
-
], ChecklistTemplate.prototype, "updatedAt", void 0);
|
|
47
|
-
tslib_1.__decorate([
|
|
48
|
-
(0, typeorm_1.DeleteDateColumn)(),
|
|
49
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
50
|
-
tslib_1.__metadata("design:type", Date)
|
|
51
|
-
], ChecklistTemplate.prototype, "deletedAt", void 0);
|
|
52
|
-
tslib_1.__decorate([
|
|
53
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
54
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
55
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
56
|
-
], ChecklistTemplate.prototype, "creator", void 0);
|
|
57
|
-
tslib_1.__decorate([
|
|
58
|
-
(0, typeorm_1.RelationId)((checklistTemplate) => checklistTemplate.creator),
|
|
59
|
-
tslib_1.__metadata("design:type", String)
|
|
60
|
-
], ChecklistTemplate.prototype, "creatorId", void 0);
|
|
61
|
-
tslib_1.__decorate([
|
|
62
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
63
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
64
|
-
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
65
|
-
], ChecklistTemplate.prototype, "updater", void 0);
|
|
66
|
-
tslib_1.__decorate([
|
|
67
|
-
(0, typeorm_1.RelationId)((checklistTemplate) => checklistTemplate.updater),
|
|
68
|
-
tslib_1.__metadata("design:type", String)
|
|
69
|
-
], ChecklistTemplate.prototype, "updaterId", void 0);
|
|
70
|
-
exports.ChecklistTemplate = ChecklistTemplate = tslib_1.__decorate([
|
|
71
|
-
(0, typeorm_1.Entity)({ comment: '체크리스트 템플릿' }),
|
|
72
|
-
(0, typeorm_1.Index)('ix_checklist_template_0', (checklistTemplate) => [checklistTemplate.domain, checklistTemplate.name], {
|
|
73
|
-
unique: true,
|
|
74
|
-
where: '"deleted_at" IS NULL'
|
|
75
|
-
}),
|
|
76
|
-
(0, type_graphql_1.ObjectType)()
|
|
77
|
-
], ChecklistTemplate);
|
|
78
|
-
//# sourceMappingURL=checklist-template.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-template.js","sourceRoot":"","sources":["../../../server/service/checklist-template/checklist-template.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAoD;AAEpD,iDAA8C;AAC9C,yDAAgD;AAChD,gGAA0F;AAQnF,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CA8C7B,CAAA;AA9CY,8CAAiB;AAGnB;IAFR,IAAA,gCAAsB,EA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,IAAI,EAAE,CAAC;sCAC9B,gBAAI;kDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,iBAAoC,EAAE,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC;;oDAC9D;AAIlB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;kDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,iBAAoC,EAAE,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC;;oDAC9D;4BA7CP,iBAAiB;IAN7B,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IAChC,IAAA,eAAK,EAAC,yBAAyB,EAAE,CAAC,iBAAoC,EAAE,EAAE,CAAC,CAAC,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,EAAE;QAC9H,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,yBAAU,GAAE;GACA,iBAAiB,CA8C7B","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistTemplateItem } from '../checklist-template-item/checklist-template-item'\n\n@Entity({ comment: '체크리스트 템플릿' })\n@Index('ix_checklist_template_0', (checklistTemplate: ChecklistTemplate) => [checklistTemplate.domain, checklistTemplate.name], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType()\nexport class ChecklistTemplate {\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((checklistTemplate: ChecklistTemplate) => checklistTemplate.domain)\n domainId?: string\n\n @Column({ nullable: true, comment: '이름' })\n @Field({ nullable: true })\n name?: string\n\n // 체크리스트 템플릿 아이템 정보 (하위 테이블 참조)\n @Field(() => [ChecklistTemplateItem])\n @OneToMany(() => ChecklistTemplateItem, checklistTemplateItem => checklistTemplateItem.checklistTemplate)\n checklistTemplateItems?: ChecklistTemplateItem[]\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((checklistTemplate: ChecklistTemplate) => checklistTemplate.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((checklistTemplate: ChecklistTemplate) => checklistTemplate.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ChecklistTemplate } from './checklist-template';
|
|
2
|
-
import { ChecklistTemplateQuery } from './checklist-template-query';
|
|
3
|
-
import { ChecklistTemplateMutation } from './checklist-template-mutation';
|
|
4
|
-
export declare const entities: (typeof ChecklistTemplate)[];
|
|
5
|
-
export declare const resolvers: (typeof ChecklistTemplateQuery | typeof ChecklistTemplateMutation)[];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolvers = exports.entities = void 0;
|
|
4
|
-
const checklist_template_1 = require("./checklist-template");
|
|
5
|
-
const checklist_template_query_1 = require("./checklist-template-query");
|
|
6
|
-
const checklist_template_mutation_1 = require("./checklist-template-mutation");
|
|
7
|
-
exports.entities = [checklist_template_1.ChecklistTemplate];
|
|
8
|
-
exports.resolvers = [checklist_template_query_1.ChecklistTemplateQuery, checklist_template_mutation_1.ChecklistTemplateMutation];
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-template/index.ts"],"names":[],"mappings":";;;AAAA,6DAAwD;AACxD,yEAAmE;AACnE,+EAAyE;AAE5D,QAAA,QAAQ,GAAG,CAAC,sCAAiB,CAAC,CAAA;AAC9B,QAAA,SAAS,GAAG,CAAC,iDAAsB,EAAE,uDAAyB,CAAC,CAAA","sourcesContent":["import { ChecklistTemplate } from './checklist-template'\nimport { ChecklistTemplateQuery } from './checklist-template-query'\nimport { ChecklistTemplateMutation } from './checklist-template-mutation'\n\nexport const entities = [ChecklistTemplate]\nexport const resolvers = [ChecklistTemplateQuery, ChecklistTemplateMutation]\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ChecklistTemplateItem } from './checklist-template-item';
|
|
2
|
-
import { ChecklistTemplateItemPatch } from './checklist-template-item-type';
|
|
3
|
-
export declare class ChecklistTemplateItemMutation {
|
|
4
|
-
updateMultipleChecklistTemplateItems(patches: ChecklistTemplateItemPatch[], checklistTemplateId: string, context: ResolverContext): Promise<ChecklistTemplateItem[]>;
|
|
5
|
-
deleteChecklistTemplateItem(id: string, context: ResolverContext): Promise<boolean>;
|
|
6
|
-
deleteChecklistTemplateItems(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
7
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistTemplateItemMutation = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const type_graphql_1 = require("type-graphql");
|
|
6
|
-
const typeorm_1 = require("typeorm");
|
|
7
|
-
const checklist_template_item_1 = require("./checklist-template-item");
|
|
8
|
-
const checklist_template_item_type_1 = require("./checklist-template-item-type");
|
|
9
|
-
const checklist_template_1 = require("../checklist-template/checklist-template");
|
|
10
|
-
const spec_matching_service_1 = require("./spec-matching-service");
|
|
11
|
-
let ChecklistTemplateItemMutation = class ChecklistTemplateItemMutation {
|
|
12
|
-
async updateMultipleChecklistTemplateItems(patches, checklistTemplateId, context) {
|
|
13
|
-
const { domain, user, tx } = context.state;
|
|
14
|
-
let results = [];
|
|
15
|
-
const checklistTemplateItemRepo = tx.getRepository(checklist_template_item_1.ChecklistTemplateItem);
|
|
16
|
-
const checklistTemplate = await tx.getRepository(checklist_template_1.ChecklistTemplate).findOneBy({ id: checklistTemplateId });
|
|
17
|
-
await checklistTemplateItemRepo.delete({ checklistTemplate: { id: checklistTemplateId } });
|
|
18
|
-
for (let i = 0; i < patches.length; i++) {
|
|
19
|
-
const result = await checklistTemplateItemRepo.save(Object.assign(Object.assign({}, patches[i]), { sequence: i, checklistTemplate, inspctionCriteria: '', criteriaRequestStatus: checklist_template_item_1.CriteriaRequestStatus.REQUEST, creator: user, updater: user }));
|
|
20
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
21
|
-
}
|
|
22
|
-
// 저장 후 inspctionCriteria 비동기 업데이트 트리거 (ChecklistTemplateItem.name -> 외부 API 호출)
|
|
23
|
-
(0, spec_matching_service_1.queueUpdateInspctionCriteria)(results.map(v => v.id));
|
|
24
|
-
return results;
|
|
25
|
-
}
|
|
26
|
-
async deleteChecklistTemplateItem(id, context) {
|
|
27
|
-
const { domain, tx } = context.state;
|
|
28
|
-
await tx.getRepository(checklist_template_item_1.ChecklistTemplateItem).delete({ id });
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
async deleteChecklistTemplateItems(ids, context) {
|
|
32
|
-
const { domain, tx } = context.state;
|
|
33
|
-
await tx.getRepository(checklist_template_item_1.ChecklistTemplateItem).delete({
|
|
34
|
-
id: (0, typeorm_1.In)(ids)
|
|
35
|
-
});
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
exports.ChecklistTemplateItemMutation = ChecklistTemplateItemMutation;
|
|
40
|
-
tslib_1.__decorate([
|
|
41
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
42
|
-
(0, type_graphql_1.Mutation)(returns => [checklist_template_item_1.ChecklistTemplateItem], { description: "To modify multiple ChecklistTemplateItems' information" }),
|
|
43
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [checklist_template_item_type_1.ChecklistTemplateItemPatch])),
|
|
44
|
-
tslib_1.__param(1, (0, type_graphql_1.Arg)('checklistTemplateId')),
|
|
45
|
-
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
46
|
-
tslib_1.__metadata("design:type", Function),
|
|
47
|
-
tslib_1.__metadata("design:paramtypes", [Array, String, Object]),
|
|
48
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
49
|
-
], ChecklistTemplateItemMutation.prototype, "updateMultipleChecklistTemplateItems", null);
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
52
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete ChecklistTemplateItem' }),
|
|
53
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
54
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
55
|
-
tslib_1.__metadata("design:type", Function),
|
|
56
|
-
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
57
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
58
|
-
], ChecklistTemplateItemMutation.prototype, "deleteChecklistTemplateItem", null);
|
|
59
|
-
tslib_1.__decorate([
|
|
60
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
61
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple ChecklistTemplateItems' }),
|
|
62
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
63
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
64
|
-
tslib_1.__metadata("design:type", Function),
|
|
65
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
66
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
67
|
-
], ChecklistTemplateItemMutation.prototype, "deleteChecklistTemplateItems", null);
|
|
68
|
-
exports.ChecklistTemplateItemMutation = ChecklistTemplateItemMutation = tslib_1.__decorate([
|
|
69
|
-
(0, type_graphql_1.Resolver)(checklist_template_item_1.ChecklistTemplateItem)
|
|
70
|
-
], ChecklistTemplateItemMutation);
|
|
71
|
-
//# sourceMappingURL=checklist-template-item-mutation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-template-item-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist-template-item/checklist-template-item-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,uEAAwF;AACxF,iFAA2E;AAC3E,iFAA4E;AAC5E,mEAAsE;AAG/D,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAGlC,AAAN,KAAK,CAAC,oCAAoC,CACc,OAAqC,EAC/D,mBAA2B,EAChD,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,IAAI,OAAO,GAAG,EAAE,CAAA;QAEhB,MAAM,yBAAyB,GAAG,EAAE,CAAC,aAAa,CAAC,+CAAqB,CAAC,CAAA;QACzE,MAAM,iBAAiB,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,sCAAiB,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,mBAAmB,EAAE,CAAC,CAAA;QAE1G,MAAM,yBAAyB,CAAC,MAAM,CAAC,EAAE,iBAAiB,EAAE,EAAE,EAAE,EAAE,mB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,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC,+CAAqB,CAAC,EAAE,EAAE,WAAW,EAAE,wDAAwD,EAAE,CAAC;IAErH,mBAAA,IAAA,kBAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,yDAA0B,CAAC,CAAC,CAAA;IACpD,mBAAA,IAAA,kBAAG,EAAC,qBAAqB,CAAC,CAAA;IAC1B,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;yFA6BP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;IAC9C,mBAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;gFAM9D;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,2CAA2C,EAAE,CAAC;IAExF,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAC5B,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;iFASP;wCA5DU,6BAA6B;IADzC,IAAA,uBAAQ,EAAC,+CAAqB,CAAC;GACnB,6BAA6B,CA6DzC","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\nimport { ChecklistTemplateItem, CriteriaRequestStatus } from './checklist-template-item'\nimport { ChecklistTemplateItemPatch } from './checklist-template-item-type'\nimport { ChecklistTemplate } from '../checklist-template/checklist-template'\nimport { queueUpdateInspctionCriteria } from './spec-matching-service'\n\n@Resolver(ChecklistTemplateItem)\nexport class ChecklistTemplateItemMutation {\n @Directive('@transaction')\n @Mutation(returns => [ChecklistTemplateItem], { description: \"To modify multiple ChecklistTemplateItems' information\" })\n async updateMultipleChecklistTemplateItems(\n @Arg('patches', type => [ChecklistTemplateItemPatch]) patches: ChecklistTemplateItemPatch[],\n @Arg('checklistTemplateId') checklistTemplateId: string,\n @Ctx() context: ResolverContext\n ): Promise<ChecklistTemplateItem[]> {\n const { domain, user, tx } = context.state\n\n let results = []\n\n const checklistTemplateItemRepo = tx.getRepository(ChecklistTemplateItem)\n const checklistTemplate = await tx.getRepository(ChecklistTemplate).findOneBy({ id: checklistTemplateId })\n\n await checklistTemplateItemRepo.delete({ checklistTemplate: { id: checklistTemplateId } })\n\n for (let i = 0; i < patches.length; i++) {\n const result = await checklistTemplateItemRepo.save({\n ...patches[i],\n sequence: i,\n checklistTemplate,\n inspctionCriteria: '',\n criteriaRequestStatus: CriteriaRequestStatus.REQUEST,\n creator: user,\n updater: user\n })\n\n results.push({ ...result, cuFlag: '+' })\n }\n\n // 저장 후 inspctionCriteria 비동기 업데이트 트리거 (ChecklistTemplateItem.name -> 외부 API 호출)\n queueUpdateInspctionCriteria(results.map(v => v.id))\n\n return results\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete ChecklistTemplateItem' })\n async deleteChecklistTemplateItem(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(ChecklistTemplateItem).delete({ id })\n\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete multiple ChecklistTemplateItems' })\n async deleteChecklistTemplateItems(\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(ChecklistTemplateItem).delete({\n id: In(ids)\n })\n\n return true\n }\n}\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ListParam } from '@things-factory/shell';
|
|
2
|
-
import { User } from '@things-factory/auth-base';
|
|
3
|
-
import { ChecklistTemplateItem } from './checklist-template-item';
|
|
4
|
-
import { ChecklistTemplateItemList } from './checklist-template-item-type';
|
|
5
|
-
export declare class ChecklistTemplateItemQuery {
|
|
6
|
-
checklistTemplateItem(id: string, context: ResolverContext): Promise<ChecklistTemplateItem>;
|
|
7
|
-
checklistTemplateItems(params: ListParam, context: ResolverContext): Promise<ChecklistTemplateItemList>;
|
|
8
|
-
detailTypeName(checklistTemplateItem: ChecklistTemplateItem): Promise<string>;
|
|
9
|
-
updater(checklistTemplateItem: ChecklistTemplateItem): Promise<User>;
|
|
10
|
-
creator(checklistTemplateItem: ChecklistTemplateItem): Promise<User>;
|
|
11
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistTemplateItemQuery = 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_template_item_1 = require("./checklist-template-item");
|
|
9
|
-
const checklist_template_item_type_1 = require("./checklist-template-item-type");
|
|
10
|
-
const checklist_type_1 = require("../checklist-type/checklist-type");
|
|
11
|
-
let ChecklistTemplateItemQuery = class ChecklistTemplateItemQuery {
|
|
12
|
-
async checklistTemplateItem(id, context) {
|
|
13
|
-
return await (0, shell_1.getRepository)(checklist_template_item_1.ChecklistTemplateItem).findOne({
|
|
14
|
-
where: { id }
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
async checklistTemplateItems(params, context) {
|
|
18
|
-
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
19
|
-
params,
|
|
20
|
-
repository: await (0, shell_1.getRepository)(checklist_template_item_1.ChecklistTemplateItem),
|
|
21
|
-
searchables: ['name', 'description']
|
|
22
|
-
});
|
|
23
|
-
const [items, total] = await queryBuilder.getManyAndCount();
|
|
24
|
-
return { items, total };
|
|
25
|
-
}
|
|
26
|
-
async detailTypeName(checklistTemplateItem) {
|
|
27
|
-
var _a;
|
|
28
|
-
return ((_a = (await (0, shell_1.getRepository)(checklist_type_1.ChecklistType).findOneBy({ id: checklistTemplateItem.detailType }))) === null || _a === void 0 ? void 0 : _a.detailType) || '';
|
|
29
|
-
}
|
|
30
|
-
async updater(checklistTemplateItem) {
|
|
31
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistTemplateItem.updaterId });
|
|
32
|
-
}
|
|
33
|
-
async creator(checklistTemplateItem) {
|
|
34
|
-
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistTemplateItem.creatorId });
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.ChecklistTemplateItemQuery = ChecklistTemplateItemQuery;
|
|
38
|
-
tslib_1.__decorate([
|
|
39
|
-
(0, type_graphql_1.Query)(returns => checklist_template_item_1.ChecklistTemplateItem, { nullable: true, description: 'To fetch a ChecklistTemplateItem' }),
|
|
40
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
41
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
42
|
-
tslib_1.__metadata("design:type", Function),
|
|
43
|
-
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
44
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
45
|
-
], ChecklistTemplateItemQuery.prototype, "checklistTemplateItem", null);
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
(0, type_graphql_1.Query)(returns => checklist_template_item_type_1.ChecklistTemplateItemList, { description: 'To fetch multiple ChecklistTemplateItems' }),
|
|
48
|
-
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
49
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
50
|
-
tslib_1.__metadata("design:type", Function),
|
|
51
|
-
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
52
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
53
|
-
], ChecklistTemplateItemQuery.prototype, "checklistTemplateItems", null);
|
|
54
|
-
tslib_1.__decorate([
|
|
55
|
-
(0, type_graphql_1.FieldResolver)(type => String),
|
|
56
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
57
|
-
tslib_1.__metadata("design:type", Function),
|
|
58
|
-
tslib_1.__metadata("design:paramtypes", [checklist_template_item_1.ChecklistTemplateItem]),
|
|
59
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
60
|
-
], ChecklistTemplateItemQuery.prototype, "detailTypeName", null);
|
|
61
|
-
tslib_1.__decorate([
|
|
62
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
63
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
64
|
-
tslib_1.__metadata("design:type", Function),
|
|
65
|
-
tslib_1.__metadata("design:paramtypes", [checklist_template_item_1.ChecklistTemplateItem]),
|
|
66
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
67
|
-
], ChecklistTemplateItemQuery.prototype, "updater", null);
|
|
68
|
-
tslib_1.__decorate([
|
|
69
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
70
|
-
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
71
|
-
tslib_1.__metadata("design:type", Function),
|
|
72
|
-
tslib_1.__metadata("design:paramtypes", [checklist_template_item_1.ChecklistTemplateItem]),
|
|
73
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
74
|
-
], ChecklistTemplateItemQuery.prototype, "creator", null);
|
|
75
|
-
exports.ChecklistTemplateItemQuery = ChecklistTemplateItemQuery = tslib_1.__decorate([
|
|
76
|
-
(0, type_graphql_1.Resolver)(checklist_template_item_1.ChecklistTemplateItem)
|
|
77
|
-
], ChecklistTemplateItemQuery);
|
|
78
|
-
//# sourceMappingURL=checklist-template-item-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-template-item-query.js","sourceRoot":"","sources":["../../../server/service/checklist-template-item/checklist-template-item-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,iDAA+F;AAC/F,yDAAgD;AAChD,uEAAiE;AACjE,iFAA0E;AAC1E,qEAAgE;AAGzD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAE/B,AAAN,KAAK,CAAC,qBAAqB,CAAY,EAAU,EAAS,OAAwB;QAChF,OAAO,MAAM,IAAA,qBAAa,EAAC,+CAAqB,CAAC,CAAC,OAAO,CAAC;YACxD,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,+CAAqB,CAAC;YACtD,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,cAAc,CAAS,qBAA4C;;QACvE,OAAO,CAAA,MAAA,CAAC,MAAM,IAAA,qBAAa,EAAC,8BAAa,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,UAAU,EAAE,CAAC,CAAC,0CAAE,UAAU,KAAI,EAAE,CAAA;IACnH,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,qBAA4C;QAChE,OAAO,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,qBAAqB,CA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import { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ChecklistTemplateItem } from './checklist-template-item'\nimport { ChecklistTemplateItemList } from './checklist-template-item-type'\nimport { ChecklistType } from '../checklist-type/checklist-type'\n\n@Resolver(ChecklistTemplateItem)\nexport class ChecklistTemplateItemQuery {\n @Query(returns => ChecklistTemplateItem!, { nullable: true, description: 'To fetch a ChecklistTemplateItem' })\n async checklistTemplateItem(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<ChecklistTemplateItem> {\n return await getRepository(ChecklistTemplateItem).findOne({\n where: { id }\n })\n }\n\n @Query(returns => ChecklistTemplateItemList, { description: 'To fetch multiple ChecklistTemplateItems' })\n async checklistTemplateItems(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistTemplateItemList> {\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(ChecklistTemplateItem),\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 detailTypeName(@Root() checklistTemplateItem: ChecklistTemplateItem): Promise<string> {\n return (await getRepository(ChecklistType).findOneBy({ id: checklistTemplateItem.detailType }))?.detailType || ''\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklistTemplateItem: ChecklistTemplateItem): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistTemplateItem.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistTemplateItem: ChecklistTemplateItem): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklistTemplateItem.creatorId })\n }\n}\n"]}
|