@dssp/supervision 1.0.0-alpha.1 → 1.0.0-alpha.16
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/dist-client/pages/action-plan/action-plan-importer.js.map +1 -1
- package/dist-client/pages/action-plan/action-plan-list-page.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +0 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +16 -11
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +2 -2
- package/dist-client/pages/building-inspection/building-inspection-list.js +2 -1
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +3 -3
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-create-popup.js +8 -5
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +46 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +930 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +2 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +736 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +1 -0
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +304 -0
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +15 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +430 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/checklist-view.d.ts +6 -0
- package/dist-client/pages/checklist/checklist-view.js +291 -185
- package/dist-client/pages/checklist/checklist-view.js.map +1 -1
- package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-template-item.js +8 -3
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-type-management.d.ts +2 -2
- package/dist-client/pages/checklist-template/checklist-type-management.js.map +1 -1
- package/dist-client/pages/issue/issue-importer.js.map +1 -1
- package/dist-client/pages/issue/issue-list-page.js.map +1 -1
- package/dist-client/pages/project-report/project-report-importer.js.map +1 -1
- package/dist-client/pages/project-report/project-report-list-page.js.map +1 -1
- package/dist-client/pages/supervisor/supervisor-importer.js.map +1 -1
- package/dist-client/pages/supervisor/supervisor-list-page.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +3 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/stt/speech-to-text.d.ts +36 -0
- package/dist-client/stt/speech-to-text.js +89 -0
- package/dist-client/stt/speech-to-text.js.map +1 -0
- package/dist-client/stt/stt-utils.d.ts +28 -0
- package/dist-client/stt/stt-utils.js +146 -0
- package/dist-client/stt/stt-utils.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/middlewares/index.js +1 -2
- package/dist-server/middlewares/index.js.map +1 -1
- package/dist-server/service/action-plan/action-plan-mutation.js +2 -2
- package/dist-server/service/action-plan/action-plan-mutation.js.map +1 -1
- package/dist-server/service/action-plan/action-plan-query.js +2 -2
- package/dist-server/service/action-plan/action-plan-query.js.map +1 -1
- package/dist-server/service/action-plan/action-plan-type.js +6 -6
- package/dist-server/service/action-plan/action-plan-type.js.map +1 -1
- package/dist-server/service/action-plan/action-plan.js +3 -3
- package/dist-server/service/action-plan/action-plan.js.map +1 -1
- package/dist-server/service/action-plan/index.d.ts +0 -1
- package/dist-server/service/action-plan/index.js +1 -2
- package/dist-server/service/action-plan/index.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-history.js +2 -2
- package/dist-server/service/building-inspection/building-inspection-history.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +1 -0
- package/dist-server/service/building-inspection/building-inspection-mutation.js +91 -14
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +2 -1
- package/dist-server/service/building-inspection/building-inspection-query.js +33 -4
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +10 -3
- package/dist-server/service/building-inspection/building-inspection-type.js +45 -20
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +9 -0
- package/dist-server/service/building-inspection/building-inspection.js +43 -5
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/building-inspection/index.d.ts +2 -4
- package/dist-server/service/building-inspection/index.js +2 -4
- package/dist-server/service/building-inspection/index.js.map +1 -1
- package/dist-server/service/checklist/checklist-history.d.ts +8 -0
- package/dist-server/service/checklist/checklist-history.js +38 -2
- package/dist-server/service/checklist/checklist-history.js.map +1 -1
- package/dist-server/service/checklist/checklist-mutation.js +2 -2
- package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
- package/dist-server/service/checklist/checklist-query.js +2 -2
- package/dist-server/service/checklist/checklist-query.js.map +1 -1
- package/dist-server/service/checklist/checklist-type.js +6 -6
- package/dist-server/service/checklist/checklist-type.js.map +1 -1
- package/dist-server/service/checklist/checklist.d.ts +19 -1
- package/dist-server/service/checklist/checklist.js +78 -7
- package/dist-server/service/checklist/checklist.js.map +1 -1
- package/dist-server/service/checklist/index.d.ts +0 -2
- package/dist-server/service/checklist/index.js +1 -3
- package/dist-server/service/checklist/index.js.map +1 -1
- package/dist-server/service/checklist-item/checklist-item-mutation.js +2 -2
- package/dist-server/service/checklist-item/checklist-item-mutation.js.map +1 -1
- package/dist-server/service/checklist-item/checklist-item-query.js +2 -2
- package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
- package/dist-server/service/checklist-item/checklist-item-type.js +2 -2
- package/dist-server/service/checklist-item/checklist-item-type.js.map +1 -1
- package/dist-server/service/checklist-item/checklist-item.js +3 -3
- package/dist-server/service/checklist-item/checklist-item.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js +2 -2
- package/dist-server/service/checklist-item-comment/checklist-item-comment-history.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +2 -2
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js +2 -2
- package/dist-server/service/checklist-item-comment/checklist-item-comment-query.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js +6 -6
- package/dist-server/service/checklist-item-comment/checklist-item-comment-type.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js +2 -2
- package/dist-server/service/checklist-item-comment/checklist-item-comment.js.map +1 -1
- package/dist-server/service/checklist-item-comment/index.d.ts +0 -2
- package/dist-server/service/checklist-item-comment/index.js +1 -3
- package/dist-server/service/checklist-item-comment/index.js.map +1 -1
- package/dist-server/service/checklist-template/checklist-template-mutation.js +2 -2
- package/dist-server/service/checklist-template/checklist-template-mutation.js.map +1 -1
- package/dist-server/service/checklist-template/checklist-template-query.js +2 -2
- package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -1
- package/dist-server/service/checklist-template/checklist-template-type.js +4 -4
- package/dist-server/service/checklist-template/checklist-template-type.js.map +1 -1
- package/dist-server/service/checklist-template/checklist-template.js +2 -2
- package/dist-server/service/checklist-template/checklist-template.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +2 -2
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js +2 -2
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js +4 -4
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.js +4 -6
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
- package/dist-server/service/checklist-type/checklist-type-mutation.js +2 -2
- package/dist-server/service/checklist-type/checklist-type-mutation.js.map +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.js +2 -2
- package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
- package/dist-server/service/checklist-type/checklist-type-type.js +4 -4
- package/dist-server/service/checklist-type/checklist-type-type.js.map +1 -1
- package/dist-server/service/checklist-type/checklist-type.js +3 -3
- package/dist-server/service/checklist-type/checklist-type.js.map +1 -1
- package/dist-server/service/index.d.ts +0 -1
- package/dist-server/service/index.js +1 -11
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/issue/index.d.ts +0 -1
- package/dist-server/service/issue/index.js +1 -2
- package/dist-server/service/issue/index.js.map +1 -1
- package/dist-server/service/issue/issue-mutation.js +2 -2
- package/dist-server/service/issue/issue-mutation.js.map +1 -1
- package/dist-server/service/issue/issue-query.js +2 -2
- package/dist-server/service/issue/issue-query.js.map +1 -1
- package/dist-server/service/issue/issue-type.js +6 -6
- package/dist-server/service/issue/issue-type.js.map +1 -1
- package/dist-server/service/issue/issue.js +3 -3
- package/dist-server/service/issue/issue.js.map +1 -1
- package/dist-server/service/project-report/index.d.ts +0 -1
- package/dist-server/service/project-report/index.js +1 -2
- package/dist-server/service/project-report/index.js.map +1 -1
- package/dist-server/service/project-report/project-report-mutation.js +2 -2
- package/dist-server/service/project-report/project-report-mutation.js.map +1 -1
- package/dist-server/service/project-report/project-report-query.js +2 -2
- package/dist-server/service/project-report/project-report-query.js.map +1 -1
- package/dist-server/service/project-report/project-report-type.js +6 -6
- package/dist-server/service/project-report/project-report-type.js.map +1 -1
- package/dist-server/service/project-report/project-report.js +3 -3
- package/dist-server/service/project-report/project-report.js.map +1 -1
- package/dist-server/service/supervisor/index.d.ts +0 -1
- package/dist-server/service/supervisor/index.js +1 -2
- package/dist-server/service/supervisor/index.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-mutation.js +2 -2
- package/dist-server/service/supervisor/supervisor-mutation.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-query.js +2 -2
- package/dist-server/service/supervisor/supervisor-query.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-type.js +6 -6
- package/dist-server/service/supervisor/supervisor-type.js.map +1 -1
- package/dist-server/service/supervisor/supervisor.js +3 -3
- package/dist-server/service/supervisor/supervisor.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/things-factory.config.js +3 -1
- package/dist-server/service/building-inspection/event-subscriber.d.ts +0 -7
- package/dist-server/service/building-inspection/event-subscriber.js +0 -21
- package/dist-server/service/building-inspection/event-subscriber.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-item-comment/event-subscriber.d.ts +0 -7
- package/dist-server/service/checklist-item-comment/event-subscriber.js +0 -21
- package/dist-server/service/checklist-item-comment/event-subscriber.js.map +0 -1
|
@@ -9,15 +9,24 @@ export declare enum BuildingInspectionStatus {
|
|
|
9
9
|
PASS = "PASS",
|
|
10
10
|
FAIL = "FAIL"
|
|
11
11
|
}
|
|
12
|
+
export declare enum ProjectType {
|
|
13
|
+
DSSP = "DSSP",
|
|
14
|
+
DCSP = "DCSP"
|
|
15
|
+
}
|
|
12
16
|
export declare class BuildingInspection {
|
|
13
17
|
readonly id: string;
|
|
18
|
+
projectType?: ProjectType;
|
|
14
19
|
status?: BuildingInspectionStatus;
|
|
15
20
|
requestDate?: string;
|
|
16
21
|
drawingMarker?: string;
|
|
22
|
+
cellX?: number;
|
|
23
|
+
cellY?: number;
|
|
17
24
|
buildingLevel?: BuildingLevel;
|
|
18
25
|
buildingLevelId?: string;
|
|
19
26
|
checklist?: Checklist;
|
|
20
27
|
checklistId?: string;
|
|
28
|
+
manager?: User;
|
|
29
|
+
managerId?: string;
|
|
21
30
|
createdAt?: Date;
|
|
22
31
|
updatedAt?: Date;
|
|
23
32
|
deletedAt?: Date;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BuildingInspection = exports.BuildingInspectionStatus = void 0;
|
|
3
|
+
exports.BuildingInspection = exports.ProjectType = exports.BuildingInspectionStatus = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const typeorm_1 = require("typeorm");
|
|
6
6
|
const type_graphql_1 = require("type-graphql");
|
|
7
7
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
8
|
const building_complex_1 = require("@dssp/building-complex");
|
|
9
9
|
const checklist_1 = require("../checklist/checklist");
|
|
10
|
+
const project_1 = require("@dssp/project");
|
|
10
11
|
var BuildingInspectionStatus;
|
|
11
12
|
(function (BuildingInspectionStatus) {
|
|
12
13
|
BuildingInspectionStatus["WAIT"] = "WAIT";
|
|
@@ -15,18 +16,33 @@ var BuildingInspectionStatus;
|
|
|
15
16
|
BuildingInspectionStatus["OVERALL_REQUEST"] = "OVERALL_REQUEST";
|
|
16
17
|
BuildingInspectionStatus["PASS"] = "PASS";
|
|
17
18
|
BuildingInspectionStatus["FAIL"] = "FAIL";
|
|
18
|
-
})(BuildingInspectionStatus
|
|
19
|
+
})(BuildingInspectionStatus || (exports.BuildingInspectionStatus = BuildingInspectionStatus = {}));
|
|
20
|
+
var ProjectType;
|
|
21
|
+
(function (ProjectType) {
|
|
22
|
+
ProjectType["DSSP"] = "DSSP";
|
|
23
|
+
ProjectType["DCSP"] = "DCSP";
|
|
24
|
+
})(ProjectType || (exports.ProjectType = ProjectType = {}));
|
|
19
25
|
(0, type_graphql_1.registerEnumType)(BuildingInspectionStatus, {
|
|
20
26
|
name: 'BuildingInspectionStatus',
|
|
21
27
|
description: '검측 상태'
|
|
22
28
|
});
|
|
29
|
+
(0, type_graphql_1.registerEnumType)(ProjectType, {
|
|
30
|
+
name: 'ProjectType',
|
|
31
|
+
description: '프로젝트 타입'
|
|
32
|
+
});
|
|
23
33
|
let BuildingInspection = class BuildingInspection {
|
|
24
34
|
};
|
|
35
|
+
exports.BuildingInspection = BuildingInspection;
|
|
25
36
|
tslib_1.__decorate([
|
|
26
37
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
27
38
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
28
39
|
tslib_1.__metadata("design:type", String)
|
|
29
40
|
], BuildingInspection.prototype, "id", void 0);
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '프로젝트 타입', default: ProjectType.DSSP }),
|
|
43
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
45
|
+
], BuildingInspection.prototype, "projectType", void 0);
|
|
30
46
|
tslib_1.__decorate([
|
|
31
47
|
(0, typeorm_1.Column)({
|
|
32
48
|
nullable: false,
|
|
@@ -46,6 +62,16 @@ tslib_1.__decorate([
|
|
|
46
62
|
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
47
63
|
tslib_1.__metadata("design:type", String)
|
|
48
64
|
], BuildingInspection.prototype, "drawingMarker", void 0);
|
|
65
|
+
tslib_1.__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ nullable: true, comment: 'X좌표' }),
|
|
67
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
68
|
+
tslib_1.__metadata("design:type", Number)
|
|
69
|
+
], BuildingInspection.prototype, "cellX", void 0);
|
|
70
|
+
tslib_1.__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ nullable: true, comment: 'Y좌표' }),
|
|
72
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
73
|
+
tslib_1.__metadata("design:type", Number)
|
|
74
|
+
], BuildingInspection.prototype, "cellY", void 0);
|
|
49
75
|
tslib_1.__decorate([
|
|
50
76
|
(0, typeorm_1.ManyToOne)(type => building_complex_1.BuildingLevel),
|
|
51
77
|
(0, type_graphql_1.Field)(() => building_complex_1.BuildingLevel, { nullable: true }),
|
|
@@ -65,6 +91,15 @@ tslib_1.__decorate([
|
|
|
65
91
|
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.checklist),
|
|
66
92
|
tslib_1.__metadata("design:type", String)
|
|
67
93
|
], BuildingInspection.prototype, "checklistId", 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 => project_1.ManagerOutput, { nullable: true }),
|
|
97
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
98
|
+
], BuildingInspection.prototype, "manager", void 0);
|
|
99
|
+
tslib_1.__decorate([
|
|
100
|
+
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.manager),
|
|
101
|
+
tslib_1.__metadata("design:type", String)
|
|
102
|
+
], BuildingInspection.prototype, "managerId", void 0);
|
|
68
103
|
tslib_1.__decorate([
|
|
69
104
|
(0, typeorm_1.CreateDateColumn)(),
|
|
70
105
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
@@ -98,9 +133,13 @@ tslib_1.__decorate([
|
|
|
98
133
|
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.updater),
|
|
99
134
|
tslib_1.__metadata("design:type", String)
|
|
100
135
|
], BuildingInspection.prototype, "updaterId", void 0);
|
|
101
|
-
BuildingInspection = tslib_1.__decorate([
|
|
136
|
+
exports.BuildingInspection = BuildingInspection = tslib_1.__decorate([
|
|
102
137
|
(0, typeorm_1.Entity)({ comment: '시공 검측 (층별 도면의 검측 리스트)' }),
|
|
103
|
-
(0, typeorm_1.Index)('ix_building_inspection_0', (buildingInspection) => [
|
|
138
|
+
(0, typeorm_1.Index)('ix_building_inspection_0', (buildingInspection) => [
|
|
139
|
+
buildingInspection.buildingLevel,
|
|
140
|
+
buildingInspection.cellX,
|
|
141
|
+
buildingInspection.cellY
|
|
142
|
+
], {
|
|
104
143
|
where: '"deleted_at" IS NULL'
|
|
105
144
|
}),
|
|
106
145
|
(0, typeorm_1.Index)('ix_building_inspection_1', (buildingInspection) => [buildingInspection.checklist], {
|
|
@@ -111,5 +150,4 @@ BuildingInspection = tslib_1.__decorate([
|
|
|
111
150
|
}),
|
|
112
151
|
(0, type_graphql_1.ObjectType)()
|
|
113
152
|
], BuildingInspection);
|
|
114
|
-
exports.BuildingInspection = BuildingInspection;
|
|
115
153
|
//# sourceMappingURL=building-inspection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"building-inspection.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAAsE;AACtE,yDAAgD;AAChD,6DAAsD;AACtD,sDAAkD;
|
|
1
|
+
{"version":3,"file":"building-inspection.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAAsE;AACtE,yDAAgD;AAChD,6DAAsD;AACtD,sDAAkD;AAClD,2CAA6C;AAE7C,IA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gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;mDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,kBAAsC,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC;;qDACjE;6BAlFP,kBAAkB;IAnB9B,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;IAC5C,IAAA,eAAK,EACJ,0BAA0B,EAC1B,CAAC,kBAAsC,EAAE,EAAE,CAAC;QAC1C,kBAAkB,CAAC,aAAa;QAChC,kBAAkB,CAAC,KAAK;QACxB,kBAAkB,CAAC,KAAK;KACzB,EACD;QACE,KAAK,EAAE,sBAAsB;KAC9B,CACF;IACA,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,kBAAsC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE;QAC7G,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,kBAAsC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE;QAC/G,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,yBAAU,GAAE;GACA,kBAAkB,CAmF9B","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToOne,\n PrimaryGeneratedColumn,\n JoinColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, registerEnumType } from 'type-graphql'\nimport { User } from '@things-factory/auth-base'\nimport { BuildingLevel } from '@dssp/building-complex'\nimport { Checklist } from '../checklist/checklist'\nimport { ManagerOutput } from '@dssp/project'\n\nexport enum BuildingInspectionStatus {\n WAIT = 'WAIT',\n OVERALL_WAIT = 'OVERALL_WAIT',\n REQUEST = 'REQUEST',\n OVERALL_REQUEST = 'OVERALL_REQUEST',\n PASS = 'PASS',\n FAIL = 'FAIL'\n}\nexport enum ProjectType {\n DSSP = 'DSSP',\n DCSP = 'DCSP'\n}\n\nregisterEnumType(BuildingInspectionStatus, {\n name: 'BuildingInspectionStatus',\n description: '검측 상태'\n})\nregisterEnumType(ProjectType, {\n name: 'ProjectType',\n description: '프로젝트 타입'\n})\n\n@Entity({ comment: '시공 검측 (층별 도면의 검측 리스트)' })\n@Index(\n 'ix_building_inspection_0',\n (buildingInspection: BuildingInspection) => [\n buildingInspection.buildingLevel,\n buildingInspection.cellX,\n buildingInspection.cellY\n ],\n {\n where: '\"deleted_at\" IS NULL'\n }\n)\n@Index('ix_building_inspection_1', (buildingInspection: BuildingInspection) => [buildingInspection.checklist], {\n where: '\"deleted_at\" IS NULL'\n})\n@Index('ix_building_inspection_2', (buildingInspection: BuildingInspection) => [buildingInspection.requestDate], {\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType()\nexport class BuildingInspection {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: false, comment: '프로젝트 타입', default: ProjectType.DSSP })\n @Field({ nullable: true })\n projectType?: ProjectType\n\n @Column({\n nullable: false,\n comment:\n '상태(WAIT: 검측 대기, OVERALL_WAIT: 총괄자 검측 대기, REQUEST: 검측 요청, OVERALL_REQUEST: 총괄자 검측 요청, PASS: 합격, FAIL: 불합격)',\n default: BuildingInspectionStatus.WAIT\n })\n @Field({ nullable: true })\n status?: BuildingInspectionStatus\n\n @Column({ type: 'date', default: () => 'CURRENT_DATE', nullable: true, comment: '검측 요청일' })\n @Field(type => String, { nullable: true })\n requestDate?: string\n\n @Column({ type: 'simple-json', nullable: true, comment: '도면 마커' })\n @Field(type => String, { nullable: true })\n drawingMarker?: string\n\n @Column({ nullable: true, comment: 'X좌표' })\n @Field({ nullable: true })\n cellX?: number\n\n @Column({ nullable: true, comment: 'Y좌표' })\n @Field({ nullable: true })\n cellY?: number\n\n // 층 정보 (N:1 상위 테이블 참조)\n @ManyToOne(type => BuildingLevel)\n @Field(() => BuildingLevel, { nullable: true })\n buildingLevel?: BuildingLevel\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.buildingLevel)\n buildingLevelId?: string\n\n // 체크리스트 (1:1 상위 테이블 참조)\n @OneToOne(type => Checklist)\n @JoinColumn()\n @Field(() => Checklist, { nullable: true })\n checklist?: Checklist\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.checklist)\n checklistId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => ManagerOutput, { nullable: true })\n manager?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.manager)\n managerId?: string\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((buildingInspection: BuildingInspection) => buildingInspection.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { BuildingInspection, BuildingInspectionStatus } from './building-inspection';
|
|
1
|
+
import { BuildingInspection, BuildingInspectionStatus, ProjectType } from './building-inspection';
|
|
2
2
|
import { BuildingInspectionQuery } from './building-inspection-query';
|
|
3
3
|
import { BuildingInspectionMutation } from './building-inspection-mutation';
|
|
4
4
|
import { BuildingInspectionSummary } from './building-inspection-type';
|
|
5
5
|
import { BuildingInspectionHistory } from './building-inspection-history';
|
|
6
|
-
import { BuildingInspectionHistoryEntitySubscriber } from './event-subscriber';
|
|
7
6
|
export declare const entities: (typeof BuildingInspection | typeof BuildingInspectionHistory)[];
|
|
8
7
|
export declare const resolvers: (typeof BuildingInspectionQuery | typeof BuildingInspectionMutation)[];
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const types: (typeof BuildingInspectionStatus | typeof BuildingInspectionSummary)[];
|
|
8
|
+
export declare const types: (typeof BuildingInspectionStatus | typeof ProjectType | typeof BuildingInspectionSummary)[];
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.types = exports.
|
|
3
|
+
exports.types = exports.resolvers = exports.entities = void 0;
|
|
4
4
|
const building_inspection_1 = require("./building-inspection");
|
|
5
5
|
const building_inspection_query_1 = require("./building-inspection-query");
|
|
6
6
|
const building_inspection_mutation_1 = require("./building-inspection-mutation");
|
|
7
7
|
const building_inspection_type_1 = require("./building-inspection-type");
|
|
8
8
|
const building_inspection_history_1 = require("./building-inspection-history");
|
|
9
|
-
const event_subscriber_1 = require("./event-subscriber");
|
|
10
9
|
exports.entities = [building_inspection_1.BuildingInspection, building_inspection_history_1.BuildingInspectionHistory];
|
|
11
10
|
exports.resolvers = [building_inspection_query_1.BuildingInspectionQuery, building_inspection_mutation_1.BuildingInspectionMutation];
|
|
12
|
-
exports.
|
|
13
|
-
exports.types = [building_inspection_1.BuildingInspectionStatus, building_inspection_type_1.BuildingInspectionSummary];
|
|
11
|
+
exports.types = [building_inspection_1.BuildingInspectionStatus, building_inspection_type_1.BuildingInspectionSummary, building_inspection_1.ProjectType];
|
|
14
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection/index.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection/index.ts"],"names":[],"mappings":";;;AAAA,+DAAiG;AACjG,2EAAqE;AACrE,iFAA2E;AAC3E,yEAAsE;AACtE,+EAAyE;AAE5D,QAAA,QAAQ,GAAG,CAAC,wCAAkB,EAAE,uDAAyB,CAAC,CAAA;AAC1D,QAAA,SAAS,GAAG,CAAC,mDAAuB,EAAE,yDAA0B,CAAC,CAAA;AACjE,QAAA,KAAK,GAAG,CAAC,8CAAwB,EAAE,oDAAyB,EAAE,iCAAW,CAAC,CAAA","sourcesContent":["import { BuildingInspection, BuildingInspectionStatus, ProjectType } from './building-inspection'\nimport { BuildingInspectionQuery } from './building-inspection-query'\nimport { BuildingInspectionMutation } from './building-inspection-mutation'\nimport { BuildingInspectionSummary } from './building-inspection-type'\nimport { BuildingInspectionHistory } from './building-inspection-history'\n\nexport const entities = [BuildingInspection, BuildingInspectionHistory]\nexport const resolvers = [BuildingInspectionQuery, BuildingInspectionMutation]\nexport const types = [BuildingInspectionStatus, BuildingInspectionSummary, ProjectType]\n"]}
|
|
@@ -16,6 +16,14 @@ export declare class ChecklistHistory implements HistoryEntityInterface<Checklis
|
|
|
16
16
|
taskConstructorSignature?: string;
|
|
17
17
|
overallSupervisorySignature?: string;
|
|
18
18
|
taskSupervisorySignature?: string;
|
|
19
|
+
overallConstructor?: User;
|
|
20
|
+
overallConstructorId?: string;
|
|
21
|
+
taskConstructor?: User;
|
|
22
|
+
taskConstructorId?: string;
|
|
23
|
+
overallSupervisory?: User;
|
|
24
|
+
overallSupervisoryId?: string;
|
|
25
|
+
taskSupervisory?: User;
|
|
26
|
+
taskSupervisoryId?: string;
|
|
19
27
|
createdAt?: Date;
|
|
20
28
|
creator?: User;
|
|
21
29
|
creatorId?: string;
|
|
@@ -11,6 +11,7 @@ const ORMCONFIG = env_1.config.get('ormconfig', {});
|
|
|
11
11
|
const DATABASE_TYPE = ORMCONFIG.type;
|
|
12
12
|
let ChecklistHistory = class ChecklistHistory {
|
|
13
13
|
};
|
|
14
|
+
exports.ChecklistHistory = ChecklistHistory;
|
|
14
15
|
tslib_1.__decorate([
|
|
15
16
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
16
17
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
@@ -81,6 +82,42 @@ tslib_1.__decorate([
|
|
|
81
82
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
82
83
|
tslib_1.__metadata("design:type", String)
|
|
83
84
|
], ChecklistHistory.prototype, "taskSupervisorySignature", 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, description: '총괄 시공 책임자' }),
|
|
88
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
89
|
+
], ChecklistHistory.prototype, "overallConstructor", void 0);
|
|
90
|
+
tslib_1.__decorate([
|
|
91
|
+
(0, typeorm_1.RelationId)((checklistHistory) => checklistHistory.overallConstructor),
|
|
92
|
+
tslib_1.__metadata("design:type", String)
|
|
93
|
+
], ChecklistHistory.prototype, "overallConstructorId", 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, description: '공종별 시공 관리자' }),
|
|
97
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
98
|
+
], ChecklistHistory.prototype, "taskConstructor", void 0);
|
|
99
|
+
tslib_1.__decorate([
|
|
100
|
+
(0, typeorm_1.RelationId)((checklistHistory) => checklistHistory.taskConstructor),
|
|
101
|
+
tslib_1.__metadata("design:type", String)
|
|
102
|
+
], ChecklistHistory.prototype, "taskConstructorId", void 0);
|
|
103
|
+
tslib_1.__decorate([
|
|
104
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
105
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '총괄 감리 책임자' }),
|
|
106
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
107
|
+
], ChecklistHistory.prototype, "overallSupervisory", void 0);
|
|
108
|
+
tslib_1.__decorate([
|
|
109
|
+
(0, typeorm_1.RelationId)((checklistHistory) => checklistHistory.overallSupervisory),
|
|
110
|
+
tslib_1.__metadata("design:type", String)
|
|
111
|
+
], ChecklistHistory.prototype, "overallSupervisoryId", void 0);
|
|
112
|
+
tslib_1.__decorate([
|
|
113
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
114
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' }),
|
|
115
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
116
|
+
], ChecklistHistory.prototype, "taskSupervisory", void 0);
|
|
117
|
+
tslib_1.__decorate([
|
|
118
|
+
(0, typeorm_1.RelationId)((checklistHistory) => checklistHistory.taskSupervisory),
|
|
119
|
+
tslib_1.__metadata("design:type", String)
|
|
120
|
+
], ChecklistHistory.prototype, "taskSupervisoryId", void 0);
|
|
84
121
|
tslib_1.__decorate([
|
|
85
122
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
86
123
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
@@ -111,10 +148,9 @@ tslib_1.__decorate([
|
|
|
111
148
|
}),
|
|
112
149
|
tslib_1.__metadata("design:type", String)
|
|
113
150
|
], ChecklistHistory.prototype, "action", void 0);
|
|
114
|
-
ChecklistHistory = tslib_1.__decorate([
|
|
151
|
+
exports.ChecklistHistory = ChecklistHistory = tslib_1.__decorate([
|
|
115
152
|
(0, typeorm_1.Entity)(),
|
|
116
153
|
(0, typeorm_1.Index)('ix_checklist_history_0', (checklistHistory) => [checklistHistory.originalId]),
|
|
117
154
|
(0, type_graphql_1.ObjectType)({ description: 'History Entity of Checklist' })
|
|
118
155
|
], ChecklistHistory);
|
|
119
|
-
exports.ChecklistHistory = ChecklistHistory;
|
|
120
156
|
//# sourceMappingURL=checklist-history.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-history.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAA8F;AAC9F,8DAAkI;AAClI,yDAAgD;AAChD,6CAA4C;AAG5C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAK7B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;
|
|
1
|
+
{"version":3,"file":"checklist-history.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAA8F;AAC9F,8DAAkI;AAClI,yDAAgD;AAChD,6CAA4C;AAG5C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAK7B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CA8G5B,CAAA;AA9GY,4CAAgB;AAGlB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;4CACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACb;AAIb;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IACnE,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACP;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC1C,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,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AuB,GAAE;;oDACA;AAYnB;IAVN,IAAA,qCAAmB,EAAC;QACnB,QAAQ,EAAE,KAAK;QACf,IAAI,EACF,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS;YACnF,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,aAAa,IAAI,QAAQ;gBACzB,CAAC,CAAC,UAAU;gBACZ,CAAC,CAAC,UAAU;QAClB,IAAI,EAAE,mCAAiB;KACxB,CAAC;;gDAC+B;2BA7GtB,gBAAgB;IAH5B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,gBAAkC,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACtG,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;GAC9C,gBAAgB,CA8G5B","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, 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 { Checklist } from './checklist'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index('ix_checklist_history_0', (checklistHistory: ChecklistHistory) => [checklistHistory.originalId])\n@ObjectType({ description: 'History Entity of Checklist' })\nexport class ChecklistHistory implements HistoryEntityInterface<Checklist> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, comment: '이름' })\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true, comment: '문서 번호 동(4자리)-층(3자리)-시퀀스(6자리)' })\n @Field({ nullable: true })\n documentNo?: string\n\n @Column({ nullable: false, comment: '공종' })\n @Field({ nullable: true })\n constructionType?: string\n\n @Column({ nullable: false, comment: '세부 공종' })\n @Field({ nullable: true })\n constructionDetailType?: string\n\n @Column({ nullable: false, comment: '위치 (x동 x층)' })\n @Field({ nullable: true })\n location?: string\n\n @Column({ nullable: false, comment: '검측 도면 타입', default: '' })\n @Field({ nullable: true })\n inspectionDrawingType?: string\n\n @Column('simple-array', { nullable: true, comment: '검측 부위' })\n @Field(() => [String], { nullable: true })\n inspectionParts?: string[]\n\n @Column({ nullable: true, comment: '시공자 점검일' })\n @Field({ nullable: true })\n constructionInspectionDate?: Date\n\n @Column({ nullable: true, comment: '감리자 점검일' })\n @Field({ nullable: true })\n supervisorInspectionDate?: Date\n\n @Column({ nullable: true, comment: '총괄 시공 책임자 사인' })\n @Field({ nullable: true })\n overallConstructorSignature?: string\n\n @Column({ nullable: true, comment: '공종별 시공 관리자 사인' })\n @Field({ nullable: true })\n taskConstructorSignature?: string\n\n @Column({ nullable: true, comment: '총괄 감리 책임자 사인' })\n @Field({ nullable: true })\n overallSupervisorySignature?: string\n\n @Column({ nullable: true, comment: '건축사보 (공종별 감리 관리자) 사인' })\n @Field({ nullable: true })\n taskSupervisorySignature?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 시공 책임자' })\n overallConstructor?: User\n\n @RelationId((checklistHistory: ChecklistHistory) => checklistHistory.overallConstructor)\n overallConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '공종별 시공 관리자' })\n taskConstructor?: User\n\n @RelationId((checklistHistory: ChecklistHistory) => checklistHistory.taskConstructor)\n taskConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 감리 책임자' })\n overallSupervisory?: User\n\n @RelationId((checklistHistory: ChecklistHistory) => checklistHistory.overallSupervisory)\n overallSupervisoryId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' })\n taskSupervisory?: User\n\n @RelationId((checklistHistory: ChecklistHistory) => checklistHistory.taskSupervisory)\n taskSupervisoryId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((checklistHistory: ChecklistHistory) => checklistHistory.creator)\n creatorId?: string\n\n @HistoryOriginalIdColumn()\n public originalId!: 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 : 'smallint',\n enum: HistoryActionType\n })\n public action!: HistoryActionType\n}\n"]}
|
|
@@ -52,6 +52,7 @@ let ChecklistMutation = class ChecklistMutation {
|
|
|
52
52
|
return true;
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
+
exports.ChecklistMutation = ChecklistMutation;
|
|
55
56
|
tslib_1.__decorate([
|
|
56
57
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
57
58
|
(0, type_graphql_1.Mutation)(returns => checklist_1.Checklist, { description: 'To create new Checklist' }),
|
|
@@ -89,8 +90,7 @@ tslib_1.__decorate([
|
|
|
89
90
|
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
90
91
|
tslib_1.__metadata("design:returntype", Promise)
|
|
91
92
|
], ChecklistMutation.prototype, "deleteChecklists", null);
|
|
92
|
-
ChecklistMutation = tslib_1.__decorate([
|
|
93
|
+
exports.ChecklistMutation = ChecklistMutation = tslib_1.__decorate([
|
|
93
94
|
(0, type_graphql_1.Resolver)(checklist_1.Checklist)
|
|
94
95
|
], ChecklistMutation);
|
|
95
|
-
exports.ChecklistMutation = ChecklistMutation;
|
|
96
96
|
//# sourceMappingURL=checklist-mutation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-m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GAAE,CAAA;;qDADe,+BAAc;;wDAiBpC;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC,qBAAS,CAAC,EAAE,EAAE,WAAW,EAAE,4CAA4C,EAAE,CAAC;IAE7F,mBAAA,IAAA,kBAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,+BAAc,CAAC,CAAC,CAAA;IACxC,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;gEAwCP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IACvD,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAiB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;yDAQzE;4BA/FU,iBAAiB;IAD7B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,iBAAiB,CAgG7B","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\nimport { Checklist } from './checklist'\nimport { NewChecklist, ChecklistPatch } from './checklist-type'\n\n@Resolver(Checklist)\nexport class ChecklistMutation {\n @Directive('@transaction')\n @Mutation(returns => Checklist, { description: 'To create new Checklist' })\n async createChecklist(@Arg('checklist') checklist: NewChecklist, @Ctx() context: ResolverContext): Promise<Checklist> {\n const { domain, user, tx } = context.state\n\n const result = await tx.getRepository(Checklist).save({\n ...checklist,\n domain,\n creator: user,\n updater: user\n })\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => Checklist, { description: 'To modify Checklist information' })\n async updateChecklist(\n @Arg('id') id: string,\n @Arg('patch') patch: ChecklistPatch,\n @Ctx() context: ResolverContext\n ): Promise<Checklist> {\n const { domain, user, tx } = context.state\n\n const repository = tx.getRepository(Checklist)\n const checklist = await repository.findOne({\n where: { id }\n })\n\n const result = await repository.save({\n ...checklist,\n ...patch,\n updater: user\n })\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => [Checklist], { description: \"To modify multiple Checklists' information\" })\n async updateMultipleChecklist(\n @Arg('patches', type => [ChecklistPatch]) patches: ChecklistPatch[],\n @Ctx() context: ResolverContext\n ): Promise<Checklist[]> {\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 checklistRepo = tx.getRepository(Checklist)\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 checklistRepo.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 checklist = await checklistRepo.findOneBy({ id: updateRecord.id })\n\n const result = await checklistRepo.save({\n ...checklist,\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 Checklists' })\n async deleteChecklists(@Arg('ids', type => [String]) ids: string[], @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(Checklist).softDelete({\n id: In(ids)\n })\n\n return true\n }\n}\n"]}
|
|
@@ -43,6 +43,7 @@ let ChecklistQuery = class ChecklistQuery {
|
|
|
43
43
|
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.creatorId });
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
+
exports.ChecklistQuery = ChecklistQuery;
|
|
46
47
|
tslib_1.__decorate([
|
|
47
48
|
(0, type_graphql_1.Query)(returns => checklist_1.Checklist, { nullable: true, description: 'To fetch a Checklist' }),
|
|
48
49
|
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
@@ -87,8 +88,7 @@ tslib_1.__decorate([
|
|
|
87
88
|
tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
|
|
88
89
|
tslib_1.__metadata("design:returntype", Promise)
|
|
89
90
|
], ChecklistQuery.prototype, "creator", null);
|
|
90
|
-
ChecklistQuery = tslib_1.__decorate([
|
|
91
|
+
exports.ChecklistQuery = ChecklistQuery = tslib_1.__decorate([
|
|
91
92
|
(0, type_graphql_1.Resolver)(checklist_1.Checklist)
|
|
92
93
|
], ChecklistQuery);
|
|
93
|
-
exports.ChecklistQuery = ChecklistQuery;
|
|
94
94
|
//# sourceMappingURL=checklist-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-query.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,iDAA+F;AAC/F,yDAAgD;AAChD,2CAAuC;AACvC,qDAAgD;AAChD,qEAAgE;AAChE,oFAA+E;AAGxE,IAAM,cAAc,GAApB,MAAM,cAAc;IAEnB,AAAN,KAAK,CAAC,SAAS,CAAY,EAAU,EAAS,OAAwB;QACpE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,qBAAa,EAAC,qBAAS,CAAC,CAAC,OAAO,CAAC;YAC5C,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CAAS,MAAiB,EAAS,OAAwB;QACzE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MA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AC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;6CAEzC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;6CAEzC;yBA/CU,cAAc;IAD1B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,cAAc,CAgD1B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Checklist } from './checklist'\nimport { ChecklistList } from './checklist-type'\nimport { ChecklistItem } from '../checklist-item/checklist-item'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\n\n@Resolver(Checklist)\nexport class ChecklistQuery {\n @Query(returns => Checklist!, { nullable: true, description: 'To fetch a Checklist' })\n async checklist(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<Checklist> {\n const { domain } = context.state\n\n return await getRepository(Checklist).findOne({\n where: { id }\n })\n }\n\n @Query(returns => ChecklistList, { description: 'To fetch multiple Checklists' })\n async checklists(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(Checklist),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => [ChecklistItem])\n async checklistItems(@Root() checklist: Checklist): Promise<ChecklistItem[]> {\n return await getRepository(ChecklistItem)\n .createQueryBuilder('ci')\n .where('ci.checklist_id = :checklistId', { checklistId: checklist.id })\n .orderBy('ci.sequence', 'ASC')\n .getMany()\n }\n\n @FieldResolver(type => BuildingInspection)\n async buildingInspection(@Root() checklist: Checklist): Promise<BuildingInspection> {\n return await getRepository(BuildingInspection).findOneBy({ checklist: { id: checklist.id } })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklist: Checklist): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklist.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklist: Checklist): Promise<User> {\n return await getRepository(User).findOneBy({ id: checklist.creatorId })\n }\n}\n"]}
|
|
@@ -6,6 +6,7 @@ const type_graphql_1 = require("type-graphql");
|
|
|
6
6
|
const checklist_1 = require("./checklist");
|
|
7
7
|
let NewChecklist = class NewChecklist {
|
|
8
8
|
};
|
|
9
|
+
exports.NewChecklist = NewChecklist;
|
|
9
10
|
tslib_1.__decorate([
|
|
10
11
|
(0, type_graphql_1.Field)(),
|
|
11
12
|
tslib_1.__metadata("design:type", String)
|
|
@@ -22,12 +23,12 @@ tslib_1.__decorate([
|
|
|
22
23
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
23
24
|
tslib_1.__metadata("design:type", String)
|
|
24
25
|
], NewChecklist.prototype, "params", void 0);
|
|
25
|
-
NewChecklist = tslib_1.__decorate([
|
|
26
|
+
exports.NewChecklist = NewChecklist = tslib_1.__decorate([
|
|
26
27
|
(0, type_graphql_1.InputType)()
|
|
27
28
|
], NewChecklist);
|
|
28
|
-
exports.NewChecklist = NewChecklist;
|
|
29
29
|
let ChecklistPatch = class ChecklistPatch {
|
|
30
30
|
};
|
|
31
|
+
exports.ChecklistPatch = ChecklistPatch;
|
|
31
32
|
tslib_1.__decorate([
|
|
32
33
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
33
34
|
tslib_1.__metadata("design:type", String)
|
|
@@ -48,12 +49,12 @@ tslib_1.__decorate([
|
|
|
48
49
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
49
50
|
tslib_1.__metadata("design:type", String)
|
|
50
51
|
], ChecklistPatch.prototype, "cuFlag", void 0);
|
|
51
|
-
ChecklistPatch = tslib_1.__decorate([
|
|
52
|
+
exports.ChecklistPatch = ChecklistPatch = tslib_1.__decorate([
|
|
52
53
|
(0, type_graphql_1.InputType)()
|
|
53
54
|
], ChecklistPatch);
|
|
54
|
-
exports.ChecklistPatch = ChecklistPatch;
|
|
55
55
|
let ChecklistList = class ChecklistList {
|
|
56
56
|
};
|
|
57
|
+
exports.ChecklistList = ChecklistList;
|
|
57
58
|
tslib_1.__decorate([
|
|
58
59
|
(0, type_graphql_1.Field)(type => [checklist_1.Checklist]),
|
|
59
60
|
tslib_1.__metadata("design:type", Array)
|
|
@@ -62,8 +63,7 @@ tslib_1.__decorate([
|
|
|
62
63
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
63
64
|
tslib_1.__metadata("design:type", Number)
|
|
64
65
|
], ChecklistList.prototype, "total", void 0);
|
|
65
|
-
ChecklistList = tslib_1.__decorate([
|
|
66
|
+
exports.ChecklistList = ChecklistList = tslib_1.__decorate([
|
|
66
67
|
(0, type_graphql_1.ObjectType)()
|
|
67
68
|
], ChecklistList);
|
|
68
|
-
exports.ChecklistList = ChecklistList;
|
|
69
69
|
//# sourceMappingURL=checklist-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-type.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-type.ts"],"names":[],"mappings":";;;;AAEA,+CAAsF;AAItF,2CAAuC;AAGhC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAYxB,CAAA;
|
|
1
|
+
{"version":3,"file":"checklist-type.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-type.ts"],"names":[],"mappings":";;;;AAEA,+CAAsF;AAItF,2CAAuC;AAGhC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAYxB,CAAA;AAZY,oCAAY;AAEvB;IADC,IAAA,oBAAK,GAAE;;0CACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACX;uBAXJ,YAAY;IADxB,IAAA,wBAAS,GAAE;GACC,YAAY,CAYxB;AAGM,IAAM,cAAc,GAApB,MAAM,cAAc;CAe1B,CAAA;AAfY,wCAAc;AAEzB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACX;yBAdJ,cAAc;IAD1B,IAAA,wBAAS,GAAE;GACC,cAAc,CAe1B;AAGM,IAAM,aAAa,GAAnB,MAAM,aAAa;CAMzB,CAAA;AANY,sCAAa;AAExB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,qBAAS,CAAC,CAAC;;4CACT;AAGlB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;4CACN;wBALF,aAAa;IADzB,IAAA,yBAAU,GAAE;GACA,aAAa,CAMzB","sourcesContent":["import type { FileUpload } from 'graphql-upload/GraphQLUpload.js'\nimport GraphQLUpload from 'graphql-upload/GraphQLUpload.js'\nimport { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { ObjectRef, ScalarObject } from '@things-factory/shell'\n\nimport { Checklist } from './checklist'\n\n@InputType()\nexport class NewChecklist {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n params?: string\n}\n\n@InputType()\nexport class ChecklistPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class ChecklistList {\n @Field(type => [Checklist])\n items: Checklist[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { User } from '@things-factory/auth-base';
|
|
2
|
-
import { Task } from '@dssp/project';
|
|
2
|
+
import { Project, Task } from '@dssp/project';
|
|
3
3
|
import { ChecklistItem } from '../checklist-item/checklist-item';
|
|
4
4
|
import { BuildingInspection } from '../building-inspection/building-inspection';
|
|
5
|
+
import { ProjectType } from '../building-inspection/building-inspection';
|
|
6
|
+
export declare enum ChecklistReferenceType {
|
|
7
|
+
INSPECTION = "INSPECTION",// 검측
|
|
8
|
+
SCHEDULE = "SCHEDULE"
|
|
9
|
+
}
|
|
5
10
|
export declare class Checklist {
|
|
6
11
|
readonly id: string;
|
|
7
12
|
name?: string;
|
|
8
13
|
documentNo?: string;
|
|
14
|
+
projectType?: ProjectType;
|
|
15
|
+
checklistReferenceType?: ChecklistReferenceType;
|
|
9
16
|
constructionType?: string;
|
|
10
17
|
constructionDetailType?: string;
|
|
11
18
|
location?: string;
|
|
@@ -17,8 +24,19 @@ export declare class Checklist {
|
|
|
17
24
|
taskConstructorSignature?: string;
|
|
18
25
|
overallSupervisorySignature?: string;
|
|
19
26
|
taskSupervisorySignature?: string;
|
|
27
|
+
overallConstructor?: User;
|
|
28
|
+
overallConstructorId?: string;
|
|
29
|
+
taskConstructor?: User;
|
|
30
|
+
taskConstructorId?: string;
|
|
31
|
+
overallSupervisory?: User;
|
|
32
|
+
overallSupervisoryId?: string;
|
|
33
|
+
taskSupervisory?: User;
|
|
34
|
+
taskSupervisoryId?: string;
|
|
20
35
|
task?: Task;
|
|
21
36
|
taskId?: string;
|
|
37
|
+
taskCode?: string;
|
|
38
|
+
project?: Project;
|
|
39
|
+
projectId?: string;
|
|
22
40
|
checklistItems?: ChecklistItem[];
|
|
23
41
|
buildingInspection?: BuildingInspection;
|
|
24
42
|
createdAt?: Date;
|