@dssp/supervision 0.0.8 → 0.0.10
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/client/pages/building-inspection/building-inspection-detail-checklist.ts +186 -0
- package/client/pages/building-inspection/building-inspection-detail-drawing.ts +160 -0
- package/client/pages/building-inspection/building-inspection-list.ts +430 -0
- package/client/pages/building-inspection/component/building-inspection-detail-header.ts +94 -0
- package/client/pages/building-inspection/inspection-create-popup.ts +696 -0
- package/client/pages/checklist/checklist-view.ts +443 -0
- package/client/pages/checklist-template/checklist-template-item.ts +240 -0
- package/client/pages/checklist-template/checklist-template-list.ts +271 -0
- package/client/pages/checklist-template/checklist-type-management.ts +242 -0
- package/client/route.ts +14 -18
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +21 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +187 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +21 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +169 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-list.d.ts +67 -0
- package/dist-client/pages/building-inspection/building-inspection-list.js +434 -0
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +1 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +118 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -0
- package/dist-client/pages/building-inspection/inspection-create-popup.d.ts +3 -0
- package/dist-client/pages/building-inspection/inspection-create-popup.js +735 -0
- package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -0
- package/dist-client/pages/checklist/checklist-view.d.ts +6 -0
- package/dist-client/pages/checklist/checklist-view.js +434 -0
- package/dist-client/pages/checklist/checklist-view.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-template-item.d.ts +2 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js +237 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -0
- package/dist-client/pages/{check-item/check-item-list-page.d.ts → checklist-template/checklist-template-list.d.ts} +8 -27
- package/dist-client/pages/checklist-template/checklist-template-list.js +259 -0
- package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-type-management.d.ts +48 -0
- package/dist-client/pages/checklist-template/checklist-type-management.js +229 -0
- package/dist-client/pages/checklist-template/checklist-type-management.js.map +1 -0
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +10 -13
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/index.d.ts +1 -1
- package/dist-server/index.js +1 -1
- package/dist-server/index.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-history.d.ts +17 -0
- package/dist-server/service/building-inspection/building-inspection-history.js +85 -0
- package/dist-server/service/building-inspection/building-inspection-history.js.map +1 -0
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +8 -0
- package/dist-server/service/building-inspection/building-inspection-mutation.js +148 -0
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -0
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +20 -0
- package/dist-server/service/building-inspection/building-inspection-query.js +235 -0
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -0
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +43 -0
- package/dist-server/service/building-inspection/building-inspection-type.js +153 -0
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -0
- package/dist-server/service/building-inspection/building-inspection.d.ts +26 -0
- package/dist-server/service/building-inspection/building-inspection.js +113 -0
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -0
- package/dist-server/service/building-inspection/event-subscriber.d.ts +7 -0
- package/dist-server/service/building-inspection/event-subscriber.js +21 -0
- package/dist-server/service/building-inspection/event-subscriber.js.map +1 -0
- package/dist-server/service/building-inspection/index.d.ts +10 -0
- package/dist-server/service/building-inspection/index.js +14 -0
- package/dist-server/service/building-inspection/index.js.map +1 -0
- package/dist-server/service/checklist/checklist-history.d.ts +24 -0
- package/dist-server/service/checklist/checklist-history.js +120 -0
- package/dist-server/service/checklist/checklist-history.js.map +1 -0
- package/dist-server/service/checklist/checklist-mutation.d.ts +8 -0
- package/dist-server/service/checklist/checklist-mutation.js +96 -0
- package/dist-server/service/checklist/checklist-mutation.js.map +1 -0
- package/dist-server/service/checklist/checklist-query.d.ts +12 -0
- package/dist-server/service/checklist/checklist-query.js +83 -0
- package/dist-server/service/checklist/checklist-query.js.map +1 -0
- package/dist-server/service/checklist/checklist-type.d.ts +18 -0
- package/dist-server/service/checklist/checklist-type.js +69 -0
- package/dist-server/service/checklist/checklist-type.js.map +1 -0
- package/dist-server/service/checklist/checklist.d.ts +31 -0
- package/dist-server/service/checklist/checklist.js +143 -0
- package/dist-server/service/checklist/checklist.js.map +1 -0
- package/dist-server/service/checklist/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist/event-subscriber.js +21 -0
- package/dist-server/service/checklist/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist/index.d.ts +8 -0
- package/dist-server/service/checklist/index.js +12 -0
- package/dist-server/service/checklist/index.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-mutation.d.ts +2 -0
- package/dist-server/service/checklist-item/checklist-item-mutation.js +13 -0
- package/dist-server/service/checklist-item/checklist-item-mutation.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-query.d.ts +10 -0
- package/dist-server/service/checklist-item/checklist-item-query.js +68 -0
- package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-type.d.ts +5 -0
- package/dist-server/service/checklist-item/checklist-item-type.js +21 -0
- package/dist-server/service/checklist-item/checklist-item-type.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item.d.ts +26 -0
- package/dist-server/service/checklist-item/checklist-item.js +113 -0
- package/dist-server/service/checklist-item/checklist-item.js.map +1 -0
- package/dist-server/service/checklist-item/index.d.ts +5 -0
- package/dist-server/service/checklist-item/index.js +10 -0
- package/dist-server/service/checklist-item/index.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template-mutation.d.ts +6 -0
- package/dist-server/service/checklist-template/checklist-template-mutation.js +64 -0
- package/dist-server/service/checklist-template/checklist-template-mutation.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template-query.d.ts +10 -0
- package/dist-server/service/checklist-template/checklist-template-query.js +65 -0
- package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template-type.d.ts +10 -0
- package/dist-server/service/checklist-template/checklist-template-type.js +39 -0
- package/dist-server/service/checklist-template/checklist-template-type.js.map +1 -0
- package/dist-server/service/checklist-template/checklist-template.d.ts +17 -0
- package/dist-server/service/checklist-template/checklist-template.js +78 -0
- package/dist-server/service/checklist-template/checklist-template.js.map +1 -0
- package/dist-server/service/checklist-template/index.d.ts +5 -0
- package/dist-server/service/checklist-template/index.js +9 -0
- package/dist-server/service/checklist-template/index.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.d.ts +7 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +68 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-query.d.ts +10 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js +66 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +16 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js +60 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +19 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.js +87 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -0
- package/dist-server/service/checklist-template-item/index.d.ts +5 -0
- package/dist-server/service/checklist-template-item/index.js +9 -0
- package/dist-server/service/checklist-template-item/index.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type-mutation.d.ts +6 -0
- package/dist-server/service/checklist-type/checklist-type-mutation.js +64 -0
- package/dist-server/service/checklist-type/checklist-type-mutation.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type-query.d.ts +10 -0
- package/dist-server/service/checklist-type/checklist-type-query.js +65 -0
- package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type-type.d.ts +11 -0
- package/dist-server/service/checklist-type/checklist-type-type.js +43 -0
- package/dist-server/service/checklist-type/checklist-type-type.js.map +1 -0
- package/dist-server/service/checklist-type/checklist-type.d.ts +19 -0
- package/dist-server/service/checklist-type/checklist-type.js +78 -0
- package/dist-server/service/checklist-type/checklist-type.js.map +1 -0
- package/dist-server/service/checklist-type/index.d.ts +5 -0
- package/dist-server/service/checklist-type/index.js +9 -0
- package/dist-server/service/checklist-type/index.js.map +1 -0
- package/dist-server/service/index.d.ts +8 -3
- package/dist-server/service/index.js +25 -5
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/issue/issue.d.ts +1 -3
- package/dist-server/service/issue/issue.js +1 -7
- package/dist-server/service/issue/issue.js.map +1 -1
- package/dist-server/service/supervisor/supervisor.d.ts +1 -3
- package/dist-server/service/supervisor/supervisor.js +1 -7
- package/dist-server/service/supervisor/supervisor.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/helps/supervision/checklist-item.md +160 -0
- package/helps/supervision/checklist.md +160 -0
- package/package.json +11 -7
- package/server/index.ts +1 -1
- package/server/service/building-inspection/building-inspection-history.ts +70 -0
- package/server/service/building-inspection/building-inspection-mutation.ts +147 -0
- package/server/service/building-inspection/building-inspection-query.ts +202 -0
- package/server/service/building-inspection/building-inspection-type.ts +101 -0
- package/server/service/building-inspection/building-inspection.ts +106 -0
- package/server/service/building-inspection/event-subscriber.ts +20 -0
- package/server/service/building-inspection/index.ts +11 -0
- package/server/service/checklist/checklist-history.ts +96 -0
- package/server/service/checklist/checklist-mutation.ts +103 -0
- package/server/service/checklist/checklist-query.ts +52 -0
- package/server/service/{check-item/check-item-type.ts → checklist/checklist-type.ts} +6 -18
- package/server/service/checklist/checklist.ts +127 -0
- package/server/service/checklist/event-subscriber.ts +17 -0
- package/server/service/checklist/index.ts +9 -0
- package/server/service/checklist-item/checklist-item-mutation.ts +5 -0
- package/server/service/checklist-item/checklist-item-query.ts +43 -0
- package/server/service/checklist-item/checklist-item-type.ts +12 -0
- package/server/service/checklist-item/checklist-item.ts +100 -0
- package/server/service/checklist-item/index.ts +7 -0
- package/server/service/checklist-template/checklist-template-mutation.ts +66 -0
- package/server/service/checklist-template/checklist-template-query.ts +39 -0
- package/server/service/checklist-template/checklist-template-type.ts +23 -0
- package/server/service/checklist-template/checklist-template.ts +71 -0
- package/server/service/checklist-template/index.ts +6 -0
- package/server/service/checklist-template-item/checklist-template-item-mutation.ts +64 -0
- package/server/service/checklist-template-item/checklist-template-item-query.ts +39 -0
- package/server/service/checklist-template-item/checklist-template-item-type.ts +39 -0
- package/server/service/checklist-template-item/checklist-template-item.ts +67 -0
- package/server/service/checklist-template-item/index.ts +6 -0
- package/server/service/checklist-type/checklist-type-mutation.ts +66 -0
- package/server/service/checklist-type/checklist-type-query.ts +39 -0
- package/server/service/checklist-type/checklist-type-type.ts +26 -0
- package/server/service/checklist-type/checklist-type.ts +64 -0
- package/server/service/checklist-type/index.ts +6 -0
- package/server/service/index.ts +59 -23
- package/server/service/issue/issue.ts +1 -6
- package/server/service/supervisor/supervisor.ts +1 -6
- package/things-factory.config.js +11 -7
- package/client/pages/check-item/check-item-importer.ts +0 -94
- package/client/pages/check-item/check-item-list-page.ts +0 -340
- package/dist-client/pages/check-item/check-item-importer.d.ts +0 -10
- package/dist-client/pages/check-item/check-item-importer.js +0 -101
- package/dist-client/pages/check-item/check-item-importer.js.map +0 -1
- package/dist-client/pages/check-item/check-item-list-page.js +0 -323
- package/dist-client/pages/check-item/check-item-list-page.js.map +0 -1
- package/dist-server/service/check-item/check-item-mutation.d.ts +0 -10
- package/dist-server/service/check-item/check-item-mutation.js +0 -168
- package/dist-server/service/check-item/check-item-mutation.js.map +0 -1
- package/dist-server/service/check-item/check-item-query.d.ts +0 -12
- package/dist-server/service/check-item/check-item-query.js +0 -97
- package/dist-server/service/check-item/check-item-query.js.map +0 -1
- package/dist-server/service/check-item/check-item-type.d.ts +0 -23
- package/dist-server/service/check-item/check-item-type.js +0 -86
- package/dist-server/service/check-item/check-item-type.js.map +0 -1
- package/dist-server/service/check-item/check-item.d.ts +0 -28
- package/dist-server/service/check-item/check-item.js +0 -117
- package/dist-server/service/check-item/check-item.js.map +0 -1
- package/dist-server/service/check-item/index.d.ts +0 -6
- package/dist-server/service/check-item/index.js +0 -10
- package/dist-server/service/check-item/index.js.map +0 -1
- package/server/service/check-item/check-item-mutation.ts +0 -198
- package/server/service/check-item/check-item-query.ts +0 -62
- package/server/service/check-item/check-item.ts +0 -111
- package/server/service/check-item/index.ts +0 -7
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BuildingInspection } from './building-inspection';
|
|
2
|
+
declare class ChecklistInputType {
|
|
3
|
+
name: string;
|
|
4
|
+
constructionType: string;
|
|
5
|
+
constructionDetailType: string;
|
|
6
|
+
location?: string;
|
|
7
|
+
inspectionDrawingType?: string;
|
|
8
|
+
inspectionParts?: string[];
|
|
9
|
+
}
|
|
10
|
+
declare class ChecklistItemInputType {
|
|
11
|
+
name: string;
|
|
12
|
+
mainType: string;
|
|
13
|
+
detailType: string;
|
|
14
|
+
inspctionCriteria: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class NewBuildingInspection {
|
|
17
|
+
buildingLevelId: string;
|
|
18
|
+
checklist: ChecklistInputType;
|
|
19
|
+
checklistItem: ChecklistItemInputType[];
|
|
20
|
+
}
|
|
21
|
+
export declare class UpdateBuildingInspection {
|
|
22
|
+
id: string;
|
|
23
|
+
drawingMarker?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare class BuildingInspectionsOfProject {
|
|
26
|
+
projectId: string;
|
|
27
|
+
limit: number;
|
|
28
|
+
}
|
|
29
|
+
export declare class BuildingInspectionsOfBuildingLevel {
|
|
30
|
+
buildingLevelId: string;
|
|
31
|
+
limit: number;
|
|
32
|
+
}
|
|
33
|
+
export declare class BuildingInspectionSummary {
|
|
34
|
+
wait: number;
|
|
35
|
+
request: number;
|
|
36
|
+
pass: number;
|
|
37
|
+
fail: number;
|
|
38
|
+
}
|
|
39
|
+
export declare class BuildingInspectionList {
|
|
40
|
+
items: BuildingInspection[];
|
|
41
|
+
total: number;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionList = exports.BuildingInspectionSummary = exports.BuildingInspectionsOfBuildingLevel = exports.BuildingInspectionsOfProject = exports.UpdateBuildingInspection = exports.NewBuildingInspection = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const building_inspection_1 = require("./building-inspection");
|
|
7
|
+
let ChecklistInputType = class ChecklistInputType {
|
|
8
|
+
};
|
|
9
|
+
tslib_1.__decorate([
|
|
10
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
11
|
+
tslib_1.__metadata("design:type", String)
|
|
12
|
+
], ChecklistInputType.prototype, "name", void 0);
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], ChecklistInputType.prototype, "constructionType", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
20
|
+
], ChecklistInputType.prototype, "constructionDetailType", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
24
|
+
], ChecklistInputType.prototype, "location", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
27
|
+
tslib_1.__metadata("design:type", String)
|
|
28
|
+
], ChecklistInputType.prototype, "inspectionDrawingType", void 0);
|
|
29
|
+
tslib_1.__decorate([
|
|
30
|
+
(0, type_graphql_1.Field)(type => [String], { nullable: false }),
|
|
31
|
+
tslib_1.__metadata("design:type", Array)
|
|
32
|
+
], ChecklistInputType.prototype, "inspectionParts", void 0);
|
|
33
|
+
ChecklistInputType = tslib_1.__decorate([
|
|
34
|
+
(0, type_graphql_1.InputType)()
|
|
35
|
+
], ChecklistInputType);
|
|
36
|
+
let ChecklistItemInputType = class ChecklistItemInputType {
|
|
37
|
+
};
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
40
|
+
tslib_1.__metadata("design:type", String)
|
|
41
|
+
], ChecklistItemInputType.prototype, "name", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
45
|
+
], ChecklistItemInputType.prototype, "mainType", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
48
|
+
tslib_1.__metadata("design:type", String)
|
|
49
|
+
], ChecklistItemInputType.prototype, "detailType", void 0);
|
|
50
|
+
tslib_1.__decorate([
|
|
51
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
52
|
+
tslib_1.__metadata("design:type", String)
|
|
53
|
+
], ChecklistItemInputType.prototype, "inspctionCriteria", void 0);
|
|
54
|
+
ChecklistItemInputType = tslib_1.__decorate([
|
|
55
|
+
(0, type_graphql_1.InputType)()
|
|
56
|
+
], ChecklistItemInputType);
|
|
57
|
+
let NewBuildingInspection = class NewBuildingInspection {
|
|
58
|
+
};
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
61
|
+
tslib_1.__metadata("design:type", String)
|
|
62
|
+
], NewBuildingInspection.prototype, "buildingLevelId", void 0);
|
|
63
|
+
tslib_1.__decorate([
|
|
64
|
+
(0, type_graphql_1.Field)(type => ChecklistInputType, { nullable: false }),
|
|
65
|
+
tslib_1.__metadata("design:type", ChecklistInputType)
|
|
66
|
+
], NewBuildingInspection.prototype, "checklist", void 0);
|
|
67
|
+
tslib_1.__decorate([
|
|
68
|
+
(0, type_graphql_1.Field)(type => [ChecklistItemInputType], { nullable: false }),
|
|
69
|
+
tslib_1.__metadata("design:type", Array)
|
|
70
|
+
], NewBuildingInspection.prototype, "checklistItem", void 0);
|
|
71
|
+
NewBuildingInspection = tslib_1.__decorate([
|
|
72
|
+
(0, type_graphql_1.InputType)()
|
|
73
|
+
], NewBuildingInspection);
|
|
74
|
+
exports.NewBuildingInspection = NewBuildingInspection;
|
|
75
|
+
let UpdateBuildingInspection = class UpdateBuildingInspection {
|
|
76
|
+
};
|
|
77
|
+
tslib_1.__decorate([
|
|
78
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
79
|
+
tslib_1.__metadata("design:type", String)
|
|
80
|
+
], UpdateBuildingInspection.prototype, "id", void 0);
|
|
81
|
+
tslib_1.__decorate([
|
|
82
|
+
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
83
|
+
tslib_1.__metadata("design:type", String)
|
|
84
|
+
], UpdateBuildingInspection.prototype, "drawingMarker", void 0);
|
|
85
|
+
UpdateBuildingInspection = tslib_1.__decorate([
|
|
86
|
+
(0, type_graphql_1.InputType)()
|
|
87
|
+
], UpdateBuildingInspection);
|
|
88
|
+
exports.UpdateBuildingInspection = UpdateBuildingInspection;
|
|
89
|
+
let BuildingInspectionsOfProject = class BuildingInspectionsOfProject {
|
|
90
|
+
};
|
|
91
|
+
tslib_1.__decorate([
|
|
92
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
93
|
+
tslib_1.__metadata("design:type", String)
|
|
94
|
+
], BuildingInspectionsOfProject.prototype, "projectId", void 0);
|
|
95
|
+
tslib_1.__decorate([
|
|
96
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
97
|
+
tslib_1.__metadata("design:type", Number)
|
|
98
|
+
], BuildingInspectionsOfProject.prototype, "limit", void 0);
|
|
99
|
+
BuildingInspectionsOfProject = tslib_1.__decorate([
|
|
100
|
+
(0, type_graphql_1.InputType)()
|
|
101
|
+
], BuildingInspectionsOfProject);
|
|
102
|
+
exports.BuildingInspectionsOfProject = BuildingInspectionsOfProject;
|
|
103
|
+
let BuildingInspectionsOfBuildingLevel = class BuildingInspectionsOfBuildingLevel {
|
|
104
|
+
};
|
|
105
|
+
tslib_1.__decorate([
|
|
106
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
107
|
+
tslib_1.__metadata("design:type", String)
|
|
108
|
+
], BuildingInspectionsOfBuildingLevel.prototype, "buildingLevelId", void 0);
|
|
109
|
+
tslib_1.__decorate([
|
|
110
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
111
|
+
tslib_1.__metadata("design:type", Number)
|
|
112
|
+
], BuildingInspectionsOfBuildingLevel.prototype, "limit", void 0);
|
|
113
|
+
BuildingInspectionsOfBuildingLevel = tslib_1.__decorate([
|
|
114
|
+
(0, type_graphql_1.InputType)()
|
|
115
|
+
], BuildingInspectionsOfBuildingLevel);
|
|
116
|
+
exports.BuildingInspectionsOfBuildingLevel = BuildingInspectionsOfBuildingLevel;
|
|
117
|
+
let BuildingInspectionSummary = class BuildingInspectionSummary {
|
|
118
|
+
};
|
|
119
|
+
tslib_1.__decorate([
|
|
120
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: '검측 대기 수' }),
|
|
121
|
+
tslib_1.__metadata("design:type", Number)
|
|
122
|
+
], BuildingInspectionSummary.prototype, "wait", void 0);
|
|
123
|
+
tslib_1.__decorate([
|
|
124
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: '검측 요청 수' }),
|
|
125
|
+
tslib_1.__metadata("design:type", Number)
|
|
126
|
+
], BuildingInspectionSummary.prototype, "request", void 0);
|
|
127
|
+
tslib_1.__decorate([
|
|
128
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: '검측 통과 수' }),
|
|
129
|
+
tslib_1.__metadata("design:type", Number)
|
|
130
|
+
], BuildingInspectionSummary.prototype, "pass", void 0);
|
|
131
|
+
tslib_1.__decorate([
|
|
132
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: '검측 실패 수' }),
|
|
133
|
+
tslib_1.__metadata("design:type", Number)
|
|
134
|
+
], BuildingInspectionSummary.prototype, "fail", void 0);
|
|
135
|
+
BuildingInspectionSummary = tslib_1.__decorate([
|
|
136
|
+
(0, type_graphql_1.ObjectType)()
|
|
137
|
+
], BuildingInspectionSummary);
|
|
138
|
+
exports.BuildingInspectionSummary = BuildingInspectionSummary;
|
|
139
|
+
let BuildingInspectionList = class BuildingInspectionList {
|
|
140
|
+
};
|
|
141
|
+
tslib_1.__decorate([
|
|
142
|
+
(0, type_graphql_1.Field)(type => [building_inspection_1.BuildingInspection]),
|
|
143
|
+
tslib_1.__metadata("design:type", Array)
|
|
144
|
+
], BuildingInspectionList.prototype, "items", void 0);
|
|
145
|
+
tslib_1.__decorate([
|
|
146
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
147
|
+
tslib_1.__metadata("design:type", Number)
|
|
148
|
+
], BuildingInspectionList.prototype, "total", void 0);
|
|
149
|
+
BuildingInspectionList = tslib_1.__decorate([
|
|
150
|
+
(0, type_graphql_1.ObjectType)()
|
|
151
|
+
], BuildingInspectionList);
|
|
152
|
+
exports.BuildingInspectionList = BuildingInspectionList;
|
|
153
|
+
//# sourceMappingURL=building-inspection-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection-type.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,+DAA0D;AAG1D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAkBvB,CAAA;AAjBC;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDACf;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4DACH;AAExB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kEACG;AAE9B;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oDACV;AAEjB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iEACG;AAE9B;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DACnB;AAjBtB,kBAAkB;IADvB,IAAA,wBAAS,GAAE;GACN,kBAAkB,CAkBvB;AAGD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAY3B,CAAA;AAXC;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oDACf;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;wDACX;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0DACT;AAElB;IAAC,IAAA,oBAAK,EAA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IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2EACJ;AAEvB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACb;AALF,kCAAkC;IAD9C,IAAA,wBAAS,GAAE;GACC,kCAAkC,CAM9C;AANY,gFAAkC;AASxC,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CAYrC,CAAA;AAXC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;;uDACnC;AAEZ;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;;0DAChC;AAEf;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;;uDACnC;AAEZ;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;;uDACnC;AAXD,yBAAyB;IADrC,IAAA,yBAAU,GAAE;GACA,yBAAyB,CAYrC;AAZY,8DAAyB;AAe/B,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAMlC,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,wCAAkB,CAAC,CAAC;;qDACT;AAE3B;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;qDACN;AALF,sBAAsB;IADlC,IAAA,yBAAU,GAAE;GACA,sBAAsB,CAMlC;AANY,wDAAsB","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { BuildingInspection } from './building-inspection'\n\n@InputType()\nclass ChecklistInputType {\n @Field({ nullable: false })\n name: string\n\n @Field({ nullable: false })\n constructionType: string\n\n @Field({ nullable: false })\n constructionDetailType: string\n\n @Field({ nullable: false })\n location?: string\n\n @Field({ nullable: false })\n inspectionDrawingType?: string\n\n @Field(type => [String], { nullable: false })\n inspectionParts?: string[]\n}\n\n@InputType()\nclass ChecklistItemInputType {\n @Field({ nullable: false })\n name: string\n\n @Field({ nullable: false })\n mainType: string\n\n @Field({ nullable: false })\n detailType: string\n\n @Field({ nullable: true })\n inspctionCriteria: string\n}\n\n@InputType()\nexport class NewBuildingInspection {\n @Field({ nullable: false })\n buildingLevelId: string\n\n @Field(type => ChecklistInputType, { nullable: false })\n checklist: ChecklistInputType\n\n @Field(type => [ChecklistItemInputType], { nullable: false })\n checklistItem: ChecklistItemInputType[]\n}\n\n@InputType()\nexport class UpdateBuildingInspection {\n @Field({ nullable: false })\n id: string\n\n @Field(type => String, { nullable: true })\n drawingMarker?: string\n}\n\n@InputType()\nexport class BuildingInspectionsOfProject {\n @Field({ nullable: false })\n projectId: string\n\n @Field({ nullable: true })\n limit: number\n}\n\n@InputType()\nexport class BuildingInspectionsOfBuildingLevel {\n @Field({ nullable: false })\n buildingLevelId: string\n\n @Field({ nullable: true })\n limit: number\n}\n\n@ObjectType()\nexport class BuildingInspectionSummary {\n @Field(type => Int, { description: '검측 대기 수' })\n wait: number\n\n @Field(type => Int, { description: '검측 요청 수' })\n request: number\n\n @Field(type => Int, { description: '검측 통과 수' })\n pass: number\n\n @Field(type => Int, { description: '검측 실패 수' })\n fail: number\n}\n\n@ObjectType()\nexport class BuildingInspectionList {\n @Field(type => [BuildingInspection])\n items: BuildingInspection[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { User } from '@things-factory/auth-base';
|
|
2
|
+
import { BuildingLevel } from '@dssp/building-complex';
|
|
3
|
+
import { Checklist } from '../checklist/checklist';
|
|
4
|
+
export declare enum BuildingInspectionStatus {
|
|
5
|
+
WAIT = "WAIT",
|
|
6
|
+
REQUEST = "REQUEST",
|
|
7
|
+
PASS = "PASS",
|
|
8
|
+
FAIL = "FAIL"
|
|
9
|
+
}
|
|
10
|
+
export declare class BuildingInspection {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
status?: BuildingInspectionStatus;
|
|
13
|
+
requestDate?: Date;
|
|
14
|
+
drawingMarker?: string;
|
|
15
|
+
buildingLevel?: BuildingLevel;
|
|
16
|
+
buildingLevelId?: string;
|
|
17
|
+
checklist?: Checklist;
|
|
18
|
+
checklistId?: string;
|
|
19
|
+
createdAt?: Date;
|
|
20
|
+
updatedAt?: Date;
|
|
21
|
+
deletedAt?: Date;
|
|
22
|
+
creator?: User;
|
|
23
|
+
creatorId?: string;
|
|
24
|
+
updater?: User;
|
|
25
|
+
updaterId?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspection = exports.BuildingInspectionStatus = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const type_graphql_1 = require("type-graphql");
|
|
7
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
|
+
const building_complex_1 = require("@dssp/building-complex");
|
|
9
|
+
const checklist_1 = require("../checklist/checklist");
|
|
10
|
+
var BuildingInspectionStatus;
|
|
11
|
+
(function (BuildingInspectionStatus) {
|
|
12
|
+
BuildingInspectionStatus["WAIT"] = "WAIT";
|
|
13
|
+
BuildingInspectionStatus["REQUEST"] = "REQUEST";
|
|
14
|
+
BuildingInspectionStatus["PASS"] = "PASS";
|
|
15
|
+
BuildingInspectionStatus["FAIL"] = "FAIL";
|
|
16
|
+
})(BuildingInspectionStatus = exports.BuildingInspectionStatus || (exports.BuildingInspectionStatus = {}));
|
|
17
|
+
(0, type_graphql_1.registerEnumType)(BuildingInspectionStatus, {
|
|
18
|
+
name: 'BuildingInspectionStatus',
|
|
19
|
+
description: '검측 상태'
|
|
20
|
+
});
|
|
21
|
+
let BuildingInspection = class BuildingInspection {
|
|
22
|
+
};
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
25
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
27
|
+
], BuildingInspection.prototype, "id", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({
|
|
30
|
+
nullable: false,
|
|
31
|
+
comment: '상태(WAIT: 검측 대기, REQUEST: 검측 요청, PASS: 합격, FAIL: 불합격)',
|
|
32
|
+
default: 'WAIT'
|
|
33
|
+
}),
|
|
34
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
|
+
], BuildingInspection.prototype, "status", void 0);
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '검측 요청일' }),
|
|
39
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
40
|
+
tslib_1.__metadata("design:type", Date)
|
|
41
|
+
], BuildingInspection.prototype, "requestDate", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'simple-json', nullable: true, comment: '도면 마커' }),
|
|
44
|
+
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
45
|
+
tslib_1.__metadata("design:type", String)
|
|
46
|
+
], BuildingInspection.prototype, "drawingMarker", void 0);
|
|
47
|
+
tslib_1.__decorate([
|
|
48
|
+
(0, typeorm_1.ManyToOne)(type => building_complex_1.BuildingLevel),
|
|
49
|
+
(0, type_graphql_1.Field)(() => building_complex_1.BuildingLevel, { nullable: true }),
|
|
50
|
+
tslib_1.__metadata("design:type", building_complex_1.BuildingLevel)
|
|
51
|
+
], BuildingInspection.prototype, "buildingLevel", void 0);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.buildingLevel),
|
|
54
|
+
tslib_1.__metadata("design:type", String)
|
|
55
|
+
], BuildingInspection.prototype, "buildingLevelId", void 0);
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
(0, typeorm_1.OneToOne)(type => checklist_1.Checklist),
|
|
58
|
+
(0, typeorm_1.JoinColumn)(),
|
|
59
|
+
(0, type_graphql_1.Field)(() => checklist_1.Checklist, { nullable: true }),
|
|
60
|
+
tslib_1.__metadata("design:type", checklist_1.Checklist)
|
|
61
|
+
], BuildingInspection.prototype, "checklist", void 0);
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.checklist),
|
|
64
|
+
tslib_1.__metadata("design:type", String)
|
|
65
|
+
], BuildingInspection.prototype, "checklistId", void 0);
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
68
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
69
|
+
tslib_1.__metadata("design:type", Date)
|
|
70
|
+
], BuildingInspection.prototype, "createdAt", void 0);
|
|
71
|
+
tslib_1.__decorate([
|
|
72
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
73
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
74
|
+
tslib_1.__metadata("design:type", Date)
|
|
75
|
+
], BuildingInspection.prototype, "updatedAt", void 0);
|
|
76
|
+
tslib_1.__decorate([
|
|
77
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
78
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
79
|
+
tslib_1.__metadata("design:type", Date)
|
|
80
|
+
], BuildingInspection.prototype, "deletedAt", void 0);
|
|
81
|
+
tslib_1.__decorate([
|
|
82
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
83
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
84
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
85
|
+
], BuildingInspection.prototype, "creator", void 0);
|
|
86
|
+
tslib_1.__decorate([
|
|
87
|
+
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.creator),
|
|
88
|
+
tslib_1.__metadata("design:type", String)
|
|
89
|
+
], BuildingInspection.prototype, "creatorId", void 0);
|
|
90
|
+
tslib_1.__decorate([
|
|
91
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
92
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
93
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
94
|
+
], BuildingInspection.prototype, "updater", void 0);
|
|
95
|
+
tslib_1.__decorate([
|
|
96
|
+
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.updater),
|
|
97
|
+
tslib_1.__metadata("design:type", String)
|
|
98
|
+
], BuildingInspection.prototype, "updaterId", void 0);
|
|
99
|
+
BuildingInspection = tslib_1.__decorate([
|
|
100
|
+
(0, typeorm_1.Entity)({ comment: '시공 검측 (층별 도면의 검측 리스트)' }),
|
|
101
|
+
(0, typeorm_1.Index)('ix_building_inspection_0', (buildingInspection) => [buildingInspection.buildingLevel], {
|
|
102
|
+
where: '"deleted_at" IS NULL'
|
|
103
|
+
}),
|
|
104
|
+
(0, typeorm_1.Index)('ix_building_inspection_1', (buildingInspection) => [buildingInspection.checklist], {
|
|
105
|
+
where: '"deleted_at" IS NULL'
|
|
106
|
+
}),
|
|
107
|
+
(0, typeorm_1.Index)('ix_building_inspection_2', (buildingInspection) => [buildingInspection.requestDate], {
|
|
108
|
+
where: '"deleted_at" IS NULL'
|
|
109
|
+
}),
|
|
110
|
+
(0, type_graphql_1.ObjectType)()
|
|
111
|
+
], BuildingInspection);
|
|
112
|
+
exports.BuildingInspection = BuildingInspection;
|
|
113
|
+
//# sourceMappingURL=building-inspection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAAsE;AAEtE,yDAAgD;AAChD,6DAAsD;AACtD,sDAAkD;AAElD,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;IACb,+CAAmB,CAAA;IACnB,yCAAa,CAAA;IACb,yCAAa,CAAA;AACf,CAAC,EALW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAKnC;AAED,IAAA,+BAAgB,EAAC,wBAAwB,EAAE;IACzC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,OAAO;CACrB,CAAC,CAAA;AAaK,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CA+D9B,CAAA;AA9DC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;8CACC;AAEnB;IAAC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,sDAAsD;QAC/D,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACO;AAEjC;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;IAC9C,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACZ,IAAI;uDAAA;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IACjE,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAC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EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC;;qDACjE;AAElB;IAAC,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;mDAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,kBAAsC,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC;;qDACjE;AA9DP,kBAAkB;IAX9B,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;IAC5C,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,kBAAsC,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,aAAa,CAAC,EAAE;QACjH,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,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,CA+D9B;AA/DY,gDAAkB","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'\n\nimport { User } from '@things-factory/auth-base'\nimport { BuildingLevel } from '@dssp/building-complex'\nimport { Checklist } from '../checklist/checklist'\n\nexport enum BuildingInspectionStatus {\n WAIT = 'WAIT',\n REQUEST = 'REQUEST',\n PASS = 'PASS',\n FAIL = 'FAIL'\n}\n\nregisterEnumType(BuildingInspectionStatus, {\n name: 'BuildingInspectionStatus',\n description: '검측 상태'\n})\n\n@Entity({ comment: '시공 검측 (층별 도면의 검측 리스트)' })\n@Index('ix_building_inspection_0', (buildingInspection: BuildingInspection) => [buildingInspection.buildingLevel], {\n where: '\"deleted_at\" IS NULL'\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({\n nullable: false,\n comment: '상태(WAIT: 검측 대기, REQUEST: 검측 요청, PASS: 합격, FAIL: 불합격)',\n default: 'WAIT'\n })\n @Field({ nullable: true })\n status?: BuildingInspectionStatus\n\n @Column({ nullable: false, comment: '검측 요청일' })\n @Field({ nullable: true })\n requestDate?: Date\n\n @Column({ type: 'simple-json', nullable: true, comment: '도면 마커' })\n @Field(type => String, { nullable: true })\n drawingMarker?: string\n\n // 층 정보 (1: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 @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"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HistoryEntitySubscriber } from '@operato/typeorm-history';
|
|
2
|
+
import { BuildingInspection } from './building-inspection';
|
|
3
|
+
import { BuildingInspectionHistory } from './building-inspection-history';
|
|
4
|
+
export declare class BuildingInspectionHistoryEntitySubscriber extends HistoryEntitySubscriber<BuildingInspection, BuildingInspectionHistory> {
|
|
5
|
+
get entity(): typeof BuildingInspection;
|
|
6
|
+
get historyEntity(): typeof BuildingInspectionHistory;
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionHistoryEntitySubscriber = 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 building_inspection_1 = require("./building-inspection");
|
|
8
|
+
const building_inspection_history_1 = require("./building-inspection-history");
|
|
9
|
+
let BuildingInspectionHistoryEntitySubscriber = class BuildingInspectionHistoryEntitySubscriber extends typeorm_history_1.HistoryEntitySubscriber {
|
|
10
|
+
get entity() {
|
|
11
|
+
return building_inspection_1.BuildingInspection;
|
|
12
|
+
}
|
|
13
|
+
get historyEntity() {
|
|
14
|
+
return building_inspection_history_1.BuildingInspectionHistory;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
BuildingInspectionHistoryEntitySubscriber = tslib_1.__decorate([
|
|
18
|
+
(0, typeorm_1.EventSubscriber)()
|
|
19
|
+
], BuildingInspectionHistoryEntitySubscriber);
|
|
20
|
+
exports.BuildingInspectionHistoryEntitySubscriber = BuildingInspectionHistoryEntitySubscriber;
|
|
21
|
+
//# sourceMappingURL=event-subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/building-inspection/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,8DAAkE;AAElE,+DAA0D;AAC1D,+EAAyE;AAGlE,IAAM,yCAAyC,GAA/C,MAAM,yCAA0C,SAAQ,yCAG9D;IACC,IAAW,MAAM;QACf,OAAO,wCAAkB,CAAA;IAC3B,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,uDAAyB,CAAA;IAClC,CAAC;CACF,CAAA;AAXY,yCAAyC;IADrD,IAAA,yBAAe,GAAE;GACL,yCAAyC,CAWrD;AAXY,8FAAyC","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@operato/typeorm-history'\n\nimport { BuildingInspection } from './building-inspection'\nimport { BuildingInspectionHistory } from './building-inspection-history'\n\n@EventSubscriber()\nexport class BuildingInspectionHistoryEntitySubscriber extends HistoryEntitySubscriber<\n BuildingInspection,\n BuildingInspectionHistory\n> {\n public get entity() {\n return BuildingInspection\n }\n\n public get historyEntity() {\n return BuildingInspectionHistory\n }\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BuildingInspection, BuildingInspectionStatus } from './building-inspection';
|
|
2
|
+
import { BuildingInspectionQuery } from './building-inspection-query';
|
|
3
|
+
import { BuildingInspectionMutation } from './building-inspection-mutation';
|
|
4
|
+
import { BuildingInspectionSummary } from './building-inspection-type';
|
|
5
|
+
import { BuildingInspectionHistory } from './building-inspection-history';
|
|
6
|
+
import { BuildingInspectionHistoryEntitySubscriber } from './event-subscriber';
|
|
7
|
+
export declare const entities: (typeof BuildingInspection | typeof BuildingInspectionHistory)[];
|
|
8
|
+
export declare const resolvers: (typeof BuildingInspectionQuery | typeof BuildingInspectionMutation)[];
|
|
9
|
+
export declare const subscribers: (typeof BuildingInspectionHistoryEntitySubscriber)[];
|
|
10
|
+
export declare const types: (typeof BuildingInspectionStatus | typeof BuildingInspectionSummary)[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.types = exports.subscribers = exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const building_inspection_1 = require("./building-inspection");
|
|
5
|
+
const building_inspection_query_1 = require("./building-inspection-query");
|
|
6
|
+
const building_inspection_mutation_1 = require("./building-inspection-mutation");
|
|
7
|
+
const building_inspection_type_1 = require("./building-inspection-type");
|
|
8
|
+
const building_inspection_history_1 = require("./building-inspection-history");
|
|
9
|
+
const event_subscriber_1 = require("./event-subscriber");
|
|
10
|
+
exports.entities = [building_inspection_1.BuildingInspection, building_inspection_history_1.BuildingInspectionHistory];
|
|
11
|
+
exports.resolvers = [building_inspection_query_1.BuildingInspectionQuery, building_inspection_mutation_1.BuildingInspectionMutation];
|
|
12
|
+
exports.subscribers = [event_subscriber_1.BuildingInspectionHistoryEntitySubscriber];
|
|
13
|
+
exports.types = [building_inspection_1.BuildingInspectionStatus, building_inspection_type_1.BuildingInspectionSummary];
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection/index.ts"],"names":[],"mappings":";;;AAAA,+DAAoF;AACpF,2EAAqE;AACrE,iFAA2E;AAC3E,yEAAsE;AACtE,+EAAyE;AACzE,yDAA8E;AAEjE,QAAA,QAAQ,GAAG,CAAC,wCAAkB,EAAE,uDAAyB,CAAC,CAAA;AAC1D,QAAA,SAAS,GAAG,CAAC,mDAAuB,EAAE,yDAA0B,CAAC,CAAA;AACjE,QAAA,WAAW,GAAG,CAAC,4DAAyC,CAAC,CAAA;AACzD,QAAA,KAAK,GAAG,CAAC,8CAAwB,EAAE,oDAAyB,CAAC,CAAA","sourcesContent":["import { BuildingInspection, BuildingInspectionStatus } 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'\nimport { BuildingInspectionHistoryEntitySubscriber } from './event-subscriber'\n\nexport const entities = [BuildingInspection, BuildingInspectionHistory]\nexport const resolvers = [BuildingInspectionQuery, BuildingInspectionMutation]\nexport const subscribers = [BuildingInspectionHistoryEntitySubscriber]\nexport const types = [BuildingInspectionStatus, BuildingInspectionSummary]\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { Checklist } from './checklist';
|
|
4
|
+
export declare class ChecklistHistory implements HistoryEntityInterface<Checklist> {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
documentNo?: string;
|
|
8
|
+
constructionType?: string;
|
|
9
|
+
constructionDetailType?: string;
|
|
10
|
+
location?: string;
|
|
11
|
+
inspectionDrawingType?: string;
|
|
12
|
+
inspectionParts?: string[];
|
|
13
|
+
constructionInsprctionDate?: Date;
|
|
14
|
+
supervisorInsprctionDate?: Date;
|
|
15
|
+
overallConstructorSignature?: string;
|
|
16
|
+
taskConstructorSignature?: string;
|
|
17
|
+
overallSupervisorySignature?: string;
|
|
18
|
+
taskSupervisorySignature?: string;
|
|
19
|
+
createdAt?: Date;
|
|
20
|
+
creator?: User;
|
|
21
|
+
creatorId?: string;
|
|
22
|
+
originalId: string;
|
|
23
|
+
action: HistoryActionType;
|
|
24
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistHistory = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const typeorm_1 = require("typeorm");
|
|
7
|
+
const typeorm_history_1 = require("@operato/typeorm-history");
|
|
8
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
+
const env_1 = require("@things-factory/env");
|
|
10
|
+
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
|
11
|
+
const DATABASE_TYPE = ORMCONFIG.type;
|
|
12
|
+
let ChecklistHistory = class ChecklistHistory {
|
|
13
|
+
};
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
16
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
17
|
+
tslib_1.__metadata("design:type", String)
|
|
18
|
+
], ChecklistHistory.prototype, "id", void 0);
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '이름' }),
|
|
21
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
|
+
], ChecklistHistory.prototype, "name", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '문서 번호 동(4자리)-층(3자리)-시퀀스(6자리)' }),
|
|
26
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
27
|
+
tslib_1.__metadata("design:type", String)
|
|
28
|
+
], ChecklistHistory.prototype, "documentNo", void 0);
|
|
29
|
+
tslib_1.__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '공종' }),
|
|
31
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
32
|
+
tslib_1.__metadata("design:type", String)
|
|
33
|
+
], ChecklistHistory.prototype, "constructionType", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '세부 공종' }),
|
|
36
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
37
|
+
tslib_1.__metadata("design:type", String)
|
|
38
|
+
], ChecklistHistory.prototype, "constructionDetailType", void 0);
|
|
39
|
+
tslib_1.__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '위치 (x동 x층)' }),
|
|
41
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
42
|
+
tslib_1.__metadata("design:type", String)
|
|
43
|
+
], ChecklistHistory.prototype, "location", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '검측 도면 타입', default: '' }),
|
|
46
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
47
|
+
tslib_1.__metadata("design:type", String)
|
|
48
|
+
], ChecklistHistory.prototype, "inspectionDrawingType", void 0);
|
|
49
|
+
tslib_1.__decorate([
|
|
50
|
+
(0, typeorm_1.Column)('simple-array', { nullable: true, comment: '검측 부위' }),
|
|
51
|
+
(0, type_graphql_1.Field)(() => [String], { nullable: true }),
|
|
52
|
+
tslib_1.__metadata("design:type", Array)
|
|
53
|
+
], ChecklistHistory.prototype, "inspectionParts", void 0);
|
|
54
|
+
tslib_1.__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '시공자 점검일' }),
|
|
56
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
57
|
+
tslib_1.__metadata("design:type", Date)
|
|
58
|
+
], ChecklistHistory.prototype, "constructionInsprctionDate", void 0);
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '감리자 점검일' }),
|
|
61
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
62
|
+
tslib_1.__metadata("design:type", Date)
|
|
63
|
+
], ChecklistHistory.prototype, "supervisorInsprctionDate", void 0);
|
|
64
|
+
tslib_1.__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '총괄 시공 책임자 사인' }),
|
|
66
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
67
|
+
tslib_1.__metadata("design:type", String)
|
|
68
|
+
], ChecklistHistory.prototype, "overallConstructorSignature", void 0);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '공종별 시공 관리자 사인' }),
|
|
71
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
72
|
+
tslib_1.__metadata("design:type", String)
|
|
73
|
+
], ChecklistHistory.prototype, "taskConstructorSignature", void 0);
|
|
74
|
+
tslib_1.__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '총괄 감리 책임자 사인' }),
|
|
76
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
+
tslib_1.__metadata("design:type", String)
|
|
78
|
+
], ChecklistHistory.prototype, "overallSupervisorySignature", void 0);
|
|
79
|
+
tslib_1.__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '건축사보 (공종별 감리 관리자) 사인' }),
|
|
81
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
82
|
+
tslib_1.__metadata("design:type", String)
|
|
83
|
+
], ChecklistHistory.prototype, "taskSupervisorySignature", void 0);
|
|
84
|
+
tslib_1.__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
86
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
87
|
+
tslib_1.__metadata("design:type", Date)
|
|
88
|
+
], ChecklistHistory.prototype, "createdAt", void 0);
|
|
89
|
+
tslib_1.__decorate([
|
|
90
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
91
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
92
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
93
|
+
], ChecklistHistory.prototype, "creator", void 0);
|
|
94
|
+
tslib_1.__decorate([
|
|
95
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.creator),
|
|
96
|
+
tslib_1.__metadata("design:type", String)
|
|
97
|
+
], ChecklistHistory.prototype, "creatorId", void 0);
|
|
98
|
+
tslib_1.__decorate([
|
|
99
|
+
(0, typeorm_history_1.HistoryOriginalIdColumn)(),
|
|
100
|
+
tslib_1.__metadata("design:type", String)
|
|
101
|
+
], ChecklistHistory.prototype, "originalId", void 0);
|
|
102
|
+
tslib_1.__decorate([
|
|
103
|
+
(0, typeorm_history_1.HistoryActionColumn)({
|
|
104
|
+
nullable: false,
|
|
105
|
+
type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
|
106
|
+
? 'enum'
|
|
107
|
+
: DATABASE_TYPE == 'oracle'
|
|
108
|
+
? 'varchar2'
|
|
109
|
+
: 'smallint',
|
|
110
|
+
enum: typeorm_history_1.HistoryActionType
|
|
111
|
+
}),
|
|
112
|
+
tslib_1.__metadata("design:type", String)
|
|
113
|
+
], ChecklistHistory.prototype, "action", void 0);
|
|
114
|
+
ChecklistHistory = tslib_1.__decorate([
|
|
115
|
+
(0, typeorm_1.Entity)(),
|
|
116
|
+
(0, typeorm_1.Index)('ix_checklist_history_0', (checklistHistory) => [checklistHistory.originalId]),
|
|
117
|
+
(0, type_graphql_1.ObjectType)({ description: 'History Entity of Checklist' })
|
|
118
|
+
], ChecklistHistory);
|
|
119
|
+
exports.ChecklistHistory = ChecklistHistory;
|
|
120
|
+
//# sourceMappingURL=checklist-history.js.map
|
|
@@ -0,0 +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,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EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACO;AAEjC;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;mDAAA;AAEhB;IAAC,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;iDAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;;mDACtC;AAElB;IAAC,IAAA,yCAAuB,GAAE;;oDACA;AAE1B;IAAC,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;AAjFtB,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,CAkF5B;AAlFY,4CAAgB","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 constructionInsprctionDate?: Date\n\n @Column({ nullable: true, comment: '감리자 점검일' })\n @Field({ nullable: true })\n supervisorInsprctionDate?: 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 @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((checklist: Checklist) => checklist.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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Checklist } from './checklist';
|
|
2
|
+
import { NewChecklist, ChecklistPatch } from './checklist-type';
|
|
3
|
+
export declare class ChecklistMutation {
|
|
4
|
+
createChecklist(checklist: NewChecklist, context: ResolverContext): Promise<Checklist>;
|
|
5
|
+
updateChecklist(id: string, patch: ChecklistPatch, context: ResolverContext): Promise<Checklist>;
|
|
6
|
+
updateMultipleChecklist(patches: ChecklistPatch[], context: ResolverContext): Promise<Checklist[]>;
|
|
7
|
+
deleteChecklists(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
8
|
+
}
|