@dssp/supervision 1.0.0-alpha.9 → 1.0.0-y.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/graphql/building-inspection.d.ts +1 -0
- package/dist-client/graphql/building-inspection.js +100 -0
- package/dist-client/graphql/building-inspection.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.d.ts +22 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +169 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.d.ts +57 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +825 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +8 -6
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +115 -65
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +9 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +130 -72
- 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 +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +77 -14
- 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 +18 -2
- package/dist-client/pages/building-inspection/building-inspection-list.js +358 -27
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +3 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +104 -17
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +542 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js +351 -0
- package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +20 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +432 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +30 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +479 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +416 -0
- package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
- package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +2 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +39 -17
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-create-popup.js +18 -8
- 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 +16 -2
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +245 -43
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +9 -5
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -1
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +19 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +205 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.d.ts +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.js +250 -67
- package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/checklist-view.d.ts +5 -4
- package/dist-client/pages/checklist/checklist-view.js +95 -23
- package/dist-client/pages/checklist/checklist-view.js.map +1 -1
- package/dist-client/pages/checklist/comment-list-popup.js +14 -3
- package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
- package/dist-client/pages/checklist/file-preview-popup.js +0 -1
- package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
- package/dist-client/pages/checklist/inspection-info-popup.d.ts +50 -0
- package/dist-client/pages/checklist/inspection-info-popup.js +684 -0
- package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
- package/dist-client/pages/checklist/inspection-tab-popup.d.ts +18 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js +196 -0
- package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
- package/dist-client/pages/checklist-template/checklist-template-item.js +14 -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/route.d.ts +1 -1
- package/dist-client/route.js +6 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +2 -3
- package/dist-server/service/building-inspection/building-inspection-mutation.js +63 -29
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +3 -5
- package/dist-server/service/building-inspection/building-inspection-query.js +16 -29
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +22 -10
- package/dist-server/service/building-inspection/building-inspection-type.js +77 -23
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +4 -0
- package/dist-server/service/building-inspection/building-inspection.js +17 -2
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/building-inspection/index.d.ts +3 -4
- package/dist-server/service/building-inspection/index.js +10 -3
- package/dist-server/service/building-inspection/index.js.map +1 -1
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +56 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
- package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
- package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +34 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js +157 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
- package/dist-server/service/building-inspection-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js +21 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
- package/dist-server/service/building-inspection-history/index.d.ts +6 -0
- package/dist-server/service/building-inspection-history/index.js +10 -0
- package/dist-server/service/building-inspection-history/index.js.map +1 -0
- package/dist-server/service/checklist/checklist-mutation.d.ts +0 -5
- package/dist-server/service/checklist/checklist-mutation.js +1 -67
- package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
- package/dist-server/service/checklist/checklist-query.d.ts +7 -0
- package/dist-server/service/checklist/checklist-query.js +83 -0
- package/dist-server/service/checklist/checklist-query.js.map +1 -1
- package/dist-server/service/checklist/checklist-type.d.ts +0 -13
- package/dist-server/service/checklist/checklist-type.js +1 -49
- package/dist-server/service/checklist/checklist-type.js.map +1 -1
- package/dist-server/service/checklist/checklist.d.ts +24 -7
- package/dist-server/service/checklist/checklist.js +75 -30
- package/dist-server/service/checklist/checklist.js.map +1 -1
- 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 +1 -2
- package/dist-server/service/checklist/index.js +1 -2
- package/dist-server/service/checklist/index.js.map +1 -1
- package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
- package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
- package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
- package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
- package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
- package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
- package/dist-server/service/{checklist → checklist-history}/checklist-history.d.ts +19 -1
- package/dist-server/service/{checklist → checklist-history}/checklist-history.js +97 -14
- package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
- package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-history/index.d.ts +6 -0
- package/dist-server/service/checklist-history/index.js +10 -0
- package/dist-server/service/checklist-history/index.js.map +1 -0
- package/dist-server/service/checklist-item/checklist-item-query.d.ts +1 -1
- package/dist-server/service/checklist-item/checklist-item-query.js +5 -3
- package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
- package/dist-server/service/checklist-item/index.d.ts +0 -1
- package/dist-server/service/checklist-item/index.js +1 -2
- package/dist-server/service/checklist-item/index.js.map +1 -1
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +1 -0
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +33 -6
- package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
- package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +25 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js +123 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
- package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-item-history/index.d.ts +6 -0
- package/dist-server/service/checklist-item-history/index.js +10 -0
- package/dist-server/service/checklist-item-history/index.js.map +1 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +4 -1
- 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-type.d.ts +2 -0
- package/dist-server/service/checklist-template-item/checklist-template-item-type.js +5 -0
- 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.d.ts +6 -0
- package/dist-server/service/checklist-template-item/checklist-template-item.js +16 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
- package/dist-server/service/checklist-template-item/spec-matching-service.d.ts +2 -0
- package/dist-server/service/checklist-template-item/spec-matching-service.js +50 -0
- package/dist-server/service/checklist-template-item/spec-matching-service.js.map +1 -0
- package/dist-server/service/index.d.ts +4 -1
- package/dist-server/service/index.js +22 -3
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/project-report/project-report.d.ts +0 -2
- package/dist-server/service/project-report/project-report.js +0 -6
- package/dist-server/service/project-report/project-report.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -6
- package/things-factory.config.js +2 -0
- package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
- package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
- package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
- package/dist-server/service/checklist/checklist-history.js.map +0 -1
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { BuildingInspection } from './building-inspection';
|
|
2
|
-
import {
|
|
3
|
-
declare class ChecklistInputType {
|
|
2
|
+
import { InspectionResultStatus, InspectionResultType } from '../checklist/checklist';
|
|
3
|
+
export declare class ChecklistInputType {
|
|
4
4
|
name: string;
|
|
5
5
|
constructionType?: string;
|
|
6
6
|
constructionDetailType?: string;
|
|
7
7
|
location?: string;
|
|
8
8
|
inspectionDrawingType?: string;
|
|
9
9
|
inspectionParts?: string[];
|
|
10
|
-
checklistReferenceType?: ChecklistReferenceType;
|
|
11
|
-
taskCode?: string;
|
|
12
|
-
projectId?: string;
|
|
13
10
|
}
|
|
14
|
-
declare class ChecklistItemInputType {
|
|
11
|
+
export declare class ChecklistItemInputType {
|
|
15
12
|
name: string;
|
|
16
13
|
mainType: string;
|
|
17
14
|
detailType: string;
|
|
@@ -25,26 +22,32 @@ export declare class NewBuildingInspection {
|
|
|
25
22
|
cellY?: number;
|
|
26
23
|
managerId?: string;
|
|
27
24
|
}
|
|
28
|
-
declare class ChecklistSubmitInputType {
|
|
25
|
+
export declare class ChecklistSubmitInputType {
|
|
29
26
|
id: string;
|
|
30
27
|
overallConstructorSignature?: string;
|
|
31
28
|
taskConstructorSignature?: string;
|
|
32
29
|
overallSupervisorySignature?: string;
|
|
33
30
|
taskSupervisorySignature?: string;
|
|
31
|
+
inspectionRequestMemo?: string;
|
|
32
|
+
inspectionResultMemo?: string;
|
|
33
|
+
inspectionResultStatus?: InspectionResultStatus;
|
|
34
|
+
inspectionResultType?: InspectionResultType;
|
|
34
35
|
}
|
|
35
|
-
declare class ChecklistItemSubmitInputType {
|
|
36
|
+
export declare class ChecklistItemSubmitInputType {
|
|
36
37
|
id: string;
|
|
37
38
|
constructionConfirmStatus?: string;
|
|
38
39
|
supervisoryConfirmStatus?: string;
|
|
39
40
|
}
|
|
40
41
|
export declare class UpdateBuildingInspectionSubmitType {
|
|
41
42
|
id: string;
|
|
43
|
+
memo?: string;
|
|
42
44
|
checklist: ChecklistSubmitInputType;
|
|
43
45
|
checklistItem: ChecklistItemSubmitInputType[];
|
|
44
46
|
}
|
|
45
|
-
export declare class
|
|
47
|
+
export declare class UpdateBuildingInspection {
|
|
46
48
|
id: string;
|
|
47
49
|
drawingMarker?: string;
|
|
50
|
+
memo?: string;
|
|
48
51
|
}
|
|
49
52
|
export declare class BuildingInspectionsOfProject {
|
|
50
53
|
projectId: string;
|
|
@@ -53,6 +56,8 @@ export declare class BuildingInspectionsOfProject {
|
|
|
53
56
|
export declare class BuildingInspectionsOfBuildingLevel {
|
|
54
57
|
buildingLevelId: string;
|
|
55
58
|
limit: number;
|
|
59
|
+
startDate?: string;
|
|
60
|
+
endDate?: string;
|
|
56
61
|
}
|
|
57
62
|
export declare class BuildingInspectionSummary {
|
|
58
63
|
requestDate?: string;
|
|
@@ -65,4 +70,11 @@ export declare class BuildingInspectionList {
|
|
|
65
70
|
items: BuildingInspection[];
|
|
66
71
|
total: number;
|
|
67
72
|
}
|
|
68
|
-
export {
|
|
73
|
+
export declare class ProjectManagerOutput {
|
|
74
|
+
id?: string;
|
|
75
|
+
phone?: string;
|
|
76
|
+
position?: string;
|
|
77
|
+
userId?: string;
|
|
78
|
+
name?: string;
|
|
79
|
+
updatedAt?: string;
|
|
80
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BuildingInspectionList = exports.BuildingInspectionSummary = exports.BuildingInspectionsOfBuildingLevel = exports.BuildingInspectionsOfProject = exports.
|
|
3
|
+
exports.ProjectManagerOutput = exports.BuildingInspectionList = exports.BuildingInspectionSummary = exports.BuildingInspectionsOfBuildingLevel = exports.BuildingInspectionsOfProject = exports.UpdateBuildingInspection = exports.UpdateBuildingInspectionSubmitType = exports.ChecklistItemSubmitInputType = exports.ChecklistSubmitInputType = exports.NewBuildingInspection = exports.ChecklistItemInputType = exports.ChecklistInputType = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const type_graphql_1 = require("type-graphql");
|
|
6
6
|
const building_inspection_1 = require("./building-inspection");
|
|
7
7
|
const checklist_1 = require("../checklist/checklist");
|
|
8
8
|
let ChecklistInputType = class ChecklistInputType {
|
|
9
9
|
};
|
|
10
|
+
exports.ChecklistInputType = ChecklistInputType;
|
|
10
11
|
tslib_1.__decorate([
|
|
11
12
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
12
13
|
tslib_1.__metadata("design:type", String)
|
|
@@ -31,23 +32,12 @@ tslib_1.__decorate([
|
|
|
31
32
|
(0, type_graphql_1.Field)(type => [String], { nullable: true }),
|
|
32
33
|
tslib_1.__metadata("design:type", Array)
|
|
33
34
|
], ChecklistInputType.prototype, "inspectionParts", void 0);
|
|
34
|
-
tslib_1.__decorate([
|
|
35
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
36
|
-
tslib_1.__metadata("design:type", String)
|
|
37
|
-
], ChecklistInputType.prototype, "checklistReferenceType", void 0);
|
|
38
|
-
tslib_1.__decorate([
|
|
39
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
40
|
-
tslib_1.__metadata("design:type", String)
|
|
41
|
-
], ChecklistInputType.prototype, "taskCode", void 0);
|
|
42
|
-
tslib_1.__decorate([
|
|
43
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
44
|
-
tslib_1.__metadata("design:type", String)
|
|
45
|
-
], ChecklistInputType.prototype, "projectId", void 0);
|
|
46
|
-
ChecklistInputType = tslib_1.__decorate([
|
|
35
|
+
exports.ChecklistInputType = ChecklistInputType = tslib_1.__decorate([
|
|
47
36
|
(0, type_graphql_1.InputType)()
|
|
48
37
|
], ChecklistInputType);
|
|
49
38
|
let ChecklistItemInputType = class ChecklistItemInputType {
|
|
50
39
|
};
|
|
40
|
+
exports.ChecklistItemInputType = ChecklistItemInputType;
|
|
51
41
|
tslib_1.__decorate([
|
|
52
42
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
53
43
|
tslib_1.__metadata("design:type", String)
|
|
@@ -64,7 +54,7 @@ tslib_1.__decorate([
|
|
|
64
54
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
65
55
|
tslib_1.__metadata("design:type", String)
|
|
66
56
|
], ChecklistItemInputType.prototype, "inspctionCriteria", void 0);
|
|
67
|
-
ChecklistItemInputType = tslib_1.__decorate([
|
|
57
|
+
exports.ChecklistItemInputType = ChecklistItemInputType = tslib_1.__decorate([
|
|
68
58
|
(0, type_graphql_1.InputType)()
|
|
69
59
|
], ChecklistItemInputType);
|
|
70
60
|
let NewBuildingInspection = class NewBuildingInspection {
|
|
@@ -99,6 +89,7 @@ exports.NewBuildingInspection = NewBuildingInspection = tslib_1.__decorate([
|
|
|
99
89
|
], NewBuildingInspection);
|
|
100
90
|
let ChecklistSubmitInputType = class ChecklistSubmitInputType {
|
|
101
91
|
};
|
|
92
|
+
exports.ChecklistSubmitInputType = ChecklistSubmitInputType;
|
|
102
93
|
tslib_1.__decorate([
|
|
103
94
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
104
95
|
tslib_1.__metadata("design:type", String)
|
|
@@ -119,11 +110,28 @@ tslib_1.__decorate([
|
|
|
119
110
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
120
111
|
tslib_1.__metadata("design:type", String)
|
|
121
112
|
], ChecklistSubmitInputType.prototype, "taskSupervisorySignature", void 0);
|
|
122
|
-
|
|
113
|
+
tslib_1.__decorate([
|
|
114
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
115
|
+
tslib_1.__metadata("design:type", String)
|
|
116
|
+
], ChecklistSubmitInputType.prototype, "inspectionRequestMemo", void 0);
|
|
117
|
+
tslib_1.__decorate([
|
|
118
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
119
|
+
tslib_1.__metadata("design:type", String)
|
|
120
|
+
], ChecklistSubmitInputType.prototype, "inspectionResultMemo", void 0);
|
|
121
|
+
tslib_1.__decorate([
|
|
122
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
123
|
+
tslib_1.__metadata("design:type", String)
|
|
124
|
+
], ChecklistSubmitInputType.prototype, "inspectionResultStatus", void 0);
|
|
125
|
+
tslib_1.__decorate([
|
|
126
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
127
|
+
tslib_1.__metadata("design:type", String)
|
|
128
|
+
], ChecklistSubmitInputType.prototype, "inspectionResultType", void 0);
|
|
129
|
+
exports.ChecklistSubmitInputType = ChecklistSubmitInputType = tslib_1.__decorate([
|
|
123
130
|
(0, type_graphql_1.InputType)()
|
|
124
131
|
], ChecklistSubmitInputType);
|
|
125
132
|
let ChecklistItemSubmitInputType = class ChecklistItemSubmitInputType {
|
|
126
133
|
};
|
|
134
|
+
exports.ChecklistItemSubmitInputType = ChecklistItemSubmitInputType;
|
|
127
135
|
tslib_1.__decorate([
|
|
128
136
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
129
137
|
tslib_1.__metadata("design:type", String)
|
|
@@ -136,7 +144,7 @@ tslib_1.__decorate([
|
|
|
136
144
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
137
145
|
tslib_1.__metadata("design:type", String)
|
|
138
146
|
], ChecklistItemSubmitInputType.prototype, "supervisoryConfirmStatus", void 0);
|
|
139
|
-
ChecklistItemSubmitInputType = tslib_1.__decorate([
|
|
147
|
+
exports.ChecklistItemSubmitInputType = ChecklistItemSubmitInputType = tslib_1.__decorate([
|
|
140
148
|
(0, type_graphql_1.InputType)()
|
|
141
149
|
], ChecklistItemSubmitInputType);
|
|
142
150
|
let UpdateBuildingInspectionSubmitType = class UpdateBuildingInspectionSubmitType {
|
|
@@ -146,6 +154,10 @@ tslib_1.__decorate([
|
|
|
146
154
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
147
155
|
tslib_1.__metadata("design:type", String)
|
|
148
156
|
], UpdateBuildingInspectionSubmitType.prototype, "id", void 0);
|
|
157
|
+
tslib_1.__decorate([
|
|
158
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
159
|
+
tslib_1.__metadata("design:type", String)
|
|
160
|
+
], UpdateBuildingInspectionSubmitType.prototype, "memo", void 0);
|
|
149
161
|
tslib_1.__decorate([
|
|
150
162
|
(0, type_graphql_1.Field)(type => ChecklistSubmitInputType, { nullable: false }),
|
|
151
163
|
tslib_1.__metadata("design:type", ChecklistSubmitInputType)
|
|
@@ -157,20 +169,24 @@ tslib_1.__decorate([
|
|
|
157
169
|
exports.UpdateBuildingInspectionSubmitType = UpdateBuildingInspectionSubmitType = tslib_1.__decorate([
|
|
158
170
|
(0, type_graphql_1.InputType)()
|
|
159
171
|
], UpdateBuildingInspectionSubmitType);
|
|
160
|
-
let
|
|
172
|
+
let UpdateBuildingInspection = class UpdateBuildingInspection {
|
|
161
173
|
};
|
|
162
|
-
exports.
|
|
174
|
+
exports.UpdateBuildingInspection = UpdateBuildingInspection;
|
|
163
175
|
tslib_1.__decorate([
|
|
164
176
|
(0, type_graphql_1.Field)({ nullable: false }),
|
|
165
177
|
tslib_1.__metadata("design:type", String)
|
|
166
|
-
],
|
|
178
|
+
], UpdateBuildingInspection.prototype, "id", void 0);
|
|
167
179
|
tslib_1.__decorate([
|
|
168
180
|
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
169
181
|
tslib_1.__metadata("design:type", String)
|
|
170
|
-
],
|
|
171
|
-
|
|
182
|
+
], UpdateBuildingInspection.prototype, "drawingMarker", void 0);
|
|
183
|
+
tslib_1.__decorate([
|
|
184
|
+
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
185
|
+
tslib_1.__metadata("design:type", String)
|
|
186
|
+
], UpdateBuildingInspection.prototype, "memo", void 0);
|
|
187
|
+
exports.UpdateBuildingInspection = UpdateBuildingInspection = tslib_1.__decorate([
|
|
172
188
|
(0, type_graphql_1.InputType)()
|
|
173
|
-
],
|
|
189
|
+
], UpdateBuildingInspection);
|
|
174
190
|
let BuildingInspectionsOfProject = class BuildingInspectionsOfProject {
|
|
175
191
|
};
|
|
176
192
|
exports.BuildingInspectionsOfProject = BuildingInspectionsOfProject;
|
|
@@ -196,6 +212,14 @@ tslib_1.__decorate([
|
|
|
196
212
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
197
213
|
tslib_1.__metadata("design:type", Number)
|
|
198
214
|
], BuildingInspectionsOfBuildingLevel.prototype, "limit", void 0);
|
|
215
|
+
tslib_1.__decorate([
|
|
216
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
217
|
+
tslib_1.__metadata("design:type", String)
|
|
218
|
+
], BuildingInspectionsOfBuildingLevel.prototype, "startDate", void 0);
|
|
219
|
+
tslib_1.__decorate([
|
|
220
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
221
|
+
tslib_1.__metadata("design:type", String)
|
|
222
|
+
], BuildingInspectionsOfBuildingLevel.prototype, "endDate", void 0);
|
|
199
223
|
exports.BuildingInspectionsOfBuildingLevel = BuildingInspectionsOfBuildingLevel = tslib_1.__decorate([
|
|
200
224
|
(0, type_graphql_1.InputType)()
|
|
201
225
|
], BuildingInspectionsOfBuildingLevel);
|
|
@@ -239,4 +263,34 @@ tslib_1.__decorate([
|
|
|
239
263
|
exports.BuildingInspectionList = BuildingInspectionList = tslib_1.__decorate([
|
|
240
264
|
(0, type_graphql_1.ObjectType)()
|
|
241
265
|
], BuildingInspectionList);
|
|
266
|
+
let ProjectManagerOutput = class ProjectManagerOutput {
|
|
267
|
+
};
|
|
268
|
+
exports.ProjectManagerOutput = ProjectManagerOutput;
|
|
269
|
+
tslib_1.__decorate([
|
|
270
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
271
|
+
tslib_1.__metadata("design:type", String)
|
|
272
|
+
], ProjectManagerOutput.prototype, "id", void 0);
|
|
273
|
+
tslib_1.__decorate([
|
|
274
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
275
|
+
tslib_1.__metadata("design:type", String)
|
|
276
|
+
], ProjectManagerOutput.prototype, "phone", void 0);
|
|
277
|
+
tslib_1.__decorate([
|
|
278
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
279
|
+
tslib_1.__metadata("design:type", String)
|
|
280
|
+
], ProjectManagerOutput.prototype, "position", void 0);
|
|
281
|
+
tslib_1.__decorate([
|
|
282
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
283
|
+
tslib_1.__metadata("design:type", String)
|
|
284
|
+
], ProjectManagerOutput.prototype, "userId", void 0);
|
|
285
|
+
tslib_1.__decorate([
|
|
286
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
287
|
+
tslib_1.__metadata("design:type", String)
|
|
288
|
+
], ProjectManagerOutput.prototype, "name", void 0);
|
|
289
|
+
tslib_1.__decorate([
|
|
290
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
291
|
+
tslib_1.__metadata("design:type", String)
|
|
292
|
+
], ProjectManagerOutput.prototype, "updatedAt", void 0);
|
|
293
|
+
exports.ProjectManagerOutput = ProjectManagerOutput = tslib_1.__decorate([
|
|
294
|
+
(0, type_graphql_1.ObjectType)()
|
|
295
|
+
], ProjectManagerOutput);
|
|
242
296
|
//# sourceMappingURL=building-inspection-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"building-inspection-type.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection-type.ts"],"names":[],"mappings":";;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"building-inspection-type.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,+DAA0D;AAC1D,sDAAqF;AAG9E,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAkB9B,CAAA;AAlBY,gDAAkB;AAE7B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDACf;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACD;AAGzB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACK;AAG/B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAA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AAyB,CAerC;AAGM,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAMlC,CAAA;AANY,wDAAsB;AAEjC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,wCAAkB,CAAC,CAAC;;qDACT;AAG3B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;qDACN;iCALF,sBAAsB;IADlC,IAAA,yBAAU,GAAE;GACA,sBAAsB,CAMlC;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAkBhC,CAAA;AAlBY,oDAAoB;AAE/B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACZ;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACT;AAGjB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;oDACH;AAGf;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;+BAjBP,oBAAoB;IADhC,IAAA,yBAAU,GAAE;GACA,oBAAoB,CAkBhC","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { BuildingInspection } from './building-inspection'\nimport { InspectionResultStatus, InspectionResultType } from '../checklist/checklist'\n\n@InputType()\nexport class ChecklistInputType {\n @Field({ nullable: false })\n name: string\n\n @Field({ nullable: true })\n constructionType?: string\n\n @Field({ nullable: true })\n constructionDetailType?: string\n\n @Field({ nullable: true })\n location?: string\n\n @Field({ nullable: true })\n inspectionDrawingType?: string\n\n @Field(type => [String], { nullable: true })\n inspectionParts?: string[]\n}\n\n@InputType()\nexport class 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: true })\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 @Field({ nullable: true })\n cellX?: number\n\n @Field({ nullable: true })\n cellY?: number\n\n @Field({ nullable: true })\n managerId?: string\n}\n\n@InputType()\nexport class ChecklistSubmitInputType {\n @Field({ nullable: false })\n id: string\n\n @Field({ nullable: true })\n overallConstructorSignature?: string\n\n @Field({ nullable: true })\n taskConstructorSignature?: string\n\n @Field({ nullable: true })\n overallSupervisorySignature?: string\n\n @Field({ nullable: true })\n taskSupervisorySignature?: string\n\n @Field({ nullable: true })\n inspectionRequestMemo?: string\n\n @Field({ nullable: true })\n inspectionResultMemo?: string\n\n @Field({ nullable: true })\n inspectionResultStatus?: InspectionResultStatus\n\n @Field({ nullable: true })\n inspectionResultType?: InspectionResultType\n}\n\n@InputType()\nexport class ChecklistItemSubmitInputType {\n @Field({ nullable: false })\n id: string\n\n @Field({ nullable: true })\n constructionConfirmStatus?: string\n\n @Field({ nullable: true })\n supervisoryConfirmStatus?: string\n}\n\n@InputType()\nexport class UpdateBuildingInspectionSubmitType {\n @Field({ nullable: false })\n id: string\n\n @Field({ nullable: true })\n memo?: string\n\n @Field(type => ChecklistSubmitInputType, { nullable: false })\n checklist: ChecklistSubmitInputType\n\n @Field(type => [ChecklistItemSubmitInputType], { nullable: false })\n checklistItem: ChecklistItemSubmitInputType[]\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 @Field(type => String, { nullable: true })\n memo?: 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 @Field({ nullable: true })\n startDate?: string\n\n @Field({ nullable: true })\n endDate?: string\n}\n\n@ObjectType()\nexport class BuildingInspectionSummary {\n @Field(type => String, { nullable: true, description: '요청일자' })\n requestDate?: string\n\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\n@ObjectType()\nexport class ProjectManagerOutput {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n phone?: string\n\n @Field({ nullable: true })\n position?: string\n\n @Field(type => ID)\n userId?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n updatedAt?: string\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { User } from '@things-factory/auth-base';
|
|
2
2
|
import { BuildingLevel } from '@dssp/building-complex';
|
|
3
3
|
import { Checklist } from '../checklist/checklist';
|
|
4
|
+
import { BuildingInspectionDailyWorklog } from '../building-inspection-daily-worklog/building-inspection-daily-worklog';
|
|
4
5
|
export declare enum BuildingInspectionStatus {
|
|
5
6
|
WAIT = "WAIT",
|
|
6
7
|
OVERALL_WAIT = "OVERALL_WAIT",
|
|
@@ -21,12 +22,15 @@ export declare class BuildingInspection {
|
|
|
21
22
|
drawingMarker?: string;
|
|
22
23
|
cellX?: number;
|
|
23
24
|
cellY?: number;
|
|
25
|
+
memo?: string;
|
|
24
26
|
buildingLevel?: BuildingLevel;
|
|
25
27
|
buildingLevelId?: string;
|
|
26
28
|
checklist?: Checklist;
|
|
27
29
|
checklistId?: string;
|
|
28
30
|
manager?: User;
|
|
29
31
|
managerId?: string;
|
|
32
|
+
worklog?: BuildingInspectionDailyWorklog;
|
|
33
|
+
worklogId?: string;
|
|
30
34
|
createdAt?: Date;
|
|
31
35
|
updatedAt?: Date;
|
|
32
36
|
deletedAt?: Date;
|
|
@@ -7,7 +7,8 @@ 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
|
|
10
|
+
const building_inspection_type_1 = require("./building-inspection-type");
|
|
11
|
+
const building_inspection_daily_worklog_1 = require("../building-inspection-daily-worklog/building-inspection-daily-worklog");
|
|
11
12
|
var BuildingInspectionStatus;
|
|
12
13
|
(function (BuildingInspectionStatus) {
|
|
13
14
|
BuildingInspectionStatus["WAIT"] = "WAIT";
|
|
@@ -72,6 +73,11 @@ tslib_1.__decorate([
|
|
|
72
73
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
73
74
|
tslib_1.__metadata("design:type", Number)
|
|
74
75
|
], BuildingInspection.prototype, "cellY", void 0);
|
|
76
|
+
tslib_1.__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '메모 - DSSP: 검측 메모, DCSP: 검측 요청서 메모' }),
|
|
78
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
79
|
+
tslib_1.__metadata("design:type", String)
|
|
80
|
+
], BuildingInspection.prototype, "memo", void 0);
|
|
75
81
|
tslib_1.__decorate([
|
|
76
82
|
(0, typeorm_1.ManyToOne)(type => building_complex_1.BuildingLevel),
|
|
77
83
|
(0, type_graphql_1.Field)(() => building_complex_1.BuildingLevel, { nullable: true }),
|
|
@@ -93,13 +99,22 @@ tslib_1.__decorate([
|
|
|
93
99
|
], BuildingInspection.prototype, "checklistId", void 0);
|
|
94
100
|
tslib_1.__decorate([
|
|
95
101
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
96
|
-
(0, type_graphql_1.Field)(type =>
|
|
102
|
+
(0, type_graphql_1.Field)(type => building_inspection_type_1.ProjectManagerOutput, { nullable: true }),
|
|
97
103
|
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
98
104
|
], BuildingInspection.prototype, "manager", void 0);
|
|
99
105
|
tslib_1.__decorate([
|
|
100
106
|
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.manager),
|
|
101
107
|
tslib_1.__metadata("design:type", String)
|
|
102
108
|
], BuildingInspection.prototype, "managerId", void 0);
|
|
109
|
+
tslib_1.__decorate([
|
|
110
|
+
(0, typeorm_1.ManyToOne)(type => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { nullable: true }),
|
|
111
|
+
(0, type_graphql_1.Field)(type => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { nullable: true }),
|
|
112
|
+
tslib_1.__metadata("design:type", building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
|
|
113
|
+
], BuildingInspection.prototype, "worklog", void 0);
|
|
114
|
+
tslib_1.__decorate([
|
|
115
|
+
(0, typeorm_1.RelationId)((buildingInspection) => buildingInspection.worklog),
|
|
116
|
+
tslib_1.__metadata("design:type", String)
|
|
117
|
+
], BuildingInspection.prototype, "worklogId", void 0);
|
|
103
118
|
tslib_1.__decorate([
|
|
104
119
|
(0, typeorm_1.CreateDateColumn)(),
|
|
105
120
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
@@ -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;AAClD,
|
|
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,yEAAiE;AACjE,8HAAuH;AAEvH,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;IACb,yDAA6B,CAAA;IAC7B,+CAAmB,CAAA;IACnB,+DAAmC,CAAA;IACnC,yCAAa,CAAA;IACb,yCAAa,CAAA;AACf,CAAC,EAPW,wBAAwB,wCAAxB,wBAAwB,QAOnC;AACD,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,4BAAa,CAAA;AACf,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,IAAA,+BAAgB,EAAC,wBAAwB,EAAE;IACzC,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,OAAO;CACrB,CAAC,CAAA;AACF,IAAA,+BAAgB,EAAC,WAAW,EAAE;IAC5B,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,SAAS;CACvB,CAAC,CAAA;AAqBK,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CA+F9B,CAAA;AA/FY,gDAAkB;AAGpB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;8CACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC;IAC1E,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACD;AASzB;IAPC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,KAAK;QACf,OAAO,EACL,2GAA2G;QAC7G,OAAO,EAAE,wBAAwB,CAAC,IAAI;KACvC,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,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+F9B","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 { ProjectManagerOutput } from './building-inspection-type'\nimport { BuildingInspectionDailyWorklog } from '../building-inspection-daily-worklog/building-inspection-daily-worklog'\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 @Column({ nullable: true, comment: '메모 - DSSP: 검측 메모, DCSP: 검측 요청서 메모' })\n @Field({ nullable: true })\n memo?: string\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 => ProjectManagerOutput, { nullable: true })\n manager?: User\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.manager)\n managerId?: string\n\n // 일일 업무 일지가 생성되면 ID를 넣어줌 (상위 테이블 참조)\n @ManyToOne(type => BuildingInspectionDailyWorklog, { nullable: true })\n @Field(type => BuildingInspectionDailyWorklog, { nullable: true })\n worklog?: BuildingInspectionDailyWorklog\n\n @RelationId((buildingInspection: BuildingInspection) => buildingInspection.worklog)\n worklogId?: 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,8 +1,7 @@
|
|
|
1
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
|
-
import { BuildingInspectionSummary } from './building-inspection-type';
|
|
5
|
-
|
|
6
|
-
export declare const entities: (typeof BuildingInspection | typeof BuildingInspectionHistory)[];
|
|
4
|
+
import { BuildingInspectionSummary, ChecklistInputType, ChecklistItemInputType, ChecklistSubmitInputType, ChecklistItemSubmitInputType } from './building-inspection-type';
|
|
5
|
+
export declare const entities: (typeof BuildingInspection)[];
|
|
7
6
|
export declare const resolvers: (typeof BuildingInspectionQuery | typeof BuildingInspectionMutation)[];
|
|
8
|
-
export declare const types: (typeof
|
|
7
|
+
export declare const types: (typeof ChecklistInputType | typeof ChecklistItemInputType | typeof ChecklistSubmitInputType | typeof ChecklistItemSubmitInputType | typeof BuildingInspectionSummary | typeof BuildingInspectionStatus | typeof ProjectType)[];
|
|
@@ -5,8 +5,15 @@ 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
|
-
|
|
9
|
-
exports.entities = [building_inspection_1.BuildingInspection, building_inspection_history_1.BuildingInspectionHistory];
|
|
8
|
+
exports.entities = [building_inspection_1.BuildingInspection];
|
|
10
9
|
exports.resolvers = [building_inspection_query_1.BuildingInspectionQuery, building_inspection_mutation_1.BuildingInspectionMutation];
|
|
11
|
-
exports.types = [
|
|
10
|
+
exports.types = [
|
|
11
|
+
building_inspection_1.BuildingInspectionStatus,
|
|
12
|
+
building_inspection_type_1.BuildingInspectionSummary,
|
|
13
|
+
building_inspection_1.ProjectType,
|
|
14
|
+
building_inspection_type_1.ChecklistInputType,
|
|
15
|
+
building_inspection_type_1.ChecklistItemInputType,
|
|
16
|
+
building_inspection_type_1.ChecklistSubmitInputType,
|
|
17
|
+
building_inspection_type_1.ChecklistItemSubmitInputType
|
|
18
|
+
];
|
|
12
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection/index.ts"],"names":[],"mappings":";;;AAAA,+DAAiG;AACjG,2EAAqE;AACrE,iFAA2E;AAC3E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection/index.ts"],"names":[],"mappings":";;;AAAA,+DAAiG;AACjG,2EAAqE;AACrE,iFAA2E;AAC3E,yEAMmC;AAEtB,QAAA,QAAQ,GAAG,CAAC,wCAAkB,CAAC,CAAA;AAC/B,QAAA,SAAS,GAAG,CAAC,mDAAuB,EAAE,yDAA0B,CAAC,CAAA;AACjE,QAAA,KAAK,GAAG;IACnB,8CAAwB;IACxB,oDAAyB;IACzB,iCAAW;IACX,6CAAkB;IAClB,iDAAsB;IACtB,mDAAwB;IACxB,uDAA4B;CAC7B,CAAA","sourcesContent":["import { BuildingInspection, BuildingInspectionStatus, ProjectType } from './building-inspection'\nimport { BuildingInspectionQuery } from './building-inspection-query'\nimport { BuildingInspectionMutation } from './building-inspection-mutation'\nimport {\n BuildingInspectionSummary,\n ChecklistInputType,\n ChecklistItemInputType,\n ChecklistSubmitInputType,\n ChecklistItemSubmitInputType\n} from './building-inspection-type'\n\nexport const entities = [BuildingInspection]\nexport const resolvers = [BuildingInspectionQuery, BuildingInspectionMutation]\nexport const types = [\n BuildingInspectionStatus,\n BuildingInspectionSummary,\n ProjectType,\n ChecklistInputType,\n ChecklistItemInputType,\n ChecklistSubmitInputType,\n ChecklistItemSubmitInputType\n]\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
|
|
2
|
+
import { BuildingInspectionDailyWorklogPatch, BuildingInspectionDailyWorklogNew } from './building-inspection-daily-worklog-type';
|
|
3
|
+
export declare class BuildingInspectionDailyWorklogMutation {
|
|
4
|
+
createBuildingInspectionDailyWorklog(patch: BuildingInspectionDailyWorklogNew, context: ResolverContext): Promise<BuildingInspectionDailyWorklog>;
|
|
5
|
+
updateBuildingInspectionDailyWorklog(patch: BuildingInspectionDailyWorklogPatch, context: ResolverContext): Promise<BuildingInspectionDailyWorklog>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionDailyWorklogMutation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
|
|
7
|
+
const building_inspection_daily_worklog_type_1 = require("./building-inspection-daily-worklog-type");
|
|
8
|
+
const building_inspection_1 = require("../building-inspection/building-inspection");
|
|
9
|
+
const building_inspection_daily_worklog_query_1 = require("./building-inspection-daily-worklog-query");
|
|
10
|
+
let BuildingInspectionDailyWorklogMutation = class BuildingInspectionDailyWorklogMutation {
|
|
11
|
+
async createBuildingInspectionDailyWorklog(patch, context) {
|
|
12
|
+
const { user, domain, tx } = context.state;
|
|
13
|
+
const worklogRepo = tx.getRepository(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog);
|
|
14
|
+
const buildingInspectionRepo = tx.getRepository(building_inspection_1.BuildingInspection);
|
|
15
|
+
if (!patch.projectId)
|
|
16
|
+
throw new Error('projectId 가 없습니다.');
|
|
17
|
+
if (!patch.date)
|
|
18
|
+
throw new Error('date 가 없습니다.');
|
|
19
|
+
const result = await worklogRepo.save(Object.assign(Object.assign({}, patch), { overallSupervisory: patch.overallSupervisoryId ? { id: patch.overallSupervisoryId } : undefined, taskSupervisory: patch.taskSupervisoryId ? { id: patch.taskSupervisoryId } : undefined, documentNo: await (0, building_inspection_daily_worklog_query_1.generateDailyWorklogDocumentNo)(patch.projectId), domain: domain, creator: user, updater: user }));
|
|
20
|
+
for (const buildingInspectionId of patch.buildingInspectionIds) {
|
|
21
|
+
const buildingInspection = await buildingInspectionRepo.findOne({ where: { id: buildingInspectionId } });
|
|
22
|
+
await buildingInspectionRepo.save(Object.assign(Object.assign({}, buildingInspection), { worklog: result }));
|
|
23
|
+
}
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
26
|
+
async updateBuildingInspectionDailyWorklog(patch, context) {
|
|
27
|
+
const { user, tx } = context.state;
|
|
28
|
+
const worklogRepo = tx.getRepository(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog);
|
|
29
|
+
const origin = await worklogRepo.findOne({ where: { id: patch.id } });
|
|
30
|
+
const result = await worklogRepo.save(Object.assign(Object.assign(Object.assign({}, origin), patch), { updater: user }));
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.BuildingInspectionDailyWorklogMutation = BuildingInspectionDailyWorklogMutation;
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
37
|
+
(0, type_graphql_1.Mutation)(returns => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { description: 'Create Daily Worklog by projectId+date' }),
|
|
38
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('patch')),
|
|
39
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
40
|
+
tslib_1.__metadata("design:type", Function),
|
|
41
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_type_1.BuildingInspectionDailyWorklogNew, Object]),
|
|
42
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
43
|
+
], BuildingInspectionDailyWorklogMutation.prototype, "createBuildingInspectionDailyWorklog", null);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
46
|
+
(0, type_graphql_1.Mutation)(returns => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { description: 'Update Daily Worklog' }),
|
|
47
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('patch')),
|
|
48
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
49
|
+
tslib_1.__metadata("design:type", Function),
|
|
50
|
+
tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_type_1.BuildingInspectionDailyWorklogPatch, Object]),
|
|
51
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
52
|
+
], BuildingInspectionDailyWorklogMutation.prototype, "updateBuildingInspectionDailyWorklog", null);
|
|
53
|
+
exports.BuildingInspectionDailyWorklogMutation = BuildingInspectionDailyWorklogMutation = tslib_1.__decorate([
|
|
54
|
+
(0, type_graphql_1.Resolver)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
|
|
55
|
+
], BuildingInspectionDailyWorklogMutation);
|
|
56
|
+
//# sourceMappingURL=building-inspection-daily-worklog-mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection-daily-worklog-mutation.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,2FAAoF;AACpF,qGAAiI;AACjI,oFAA+E;AAC/E,uGAA0F;AAGnF,IAAM,sCAAsC,GAA5C,MAAM,sCAAsC;IAG3C,AAAN,KAAK,CAAC,oCAAoC,CAC1B,KAAwC,EAC/C,OAAwB;QAE/B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAC1C,MAAM,WAAW,GAAG,EAAE,CAAC,aAAa,CAAC,kEAA8B,CAAC,CAAA;QACpE,MAAM,sBAAsB,GAAG,EAAE,CAAC,aAAa,CAAC,wCAAkB,CAAC,CAAA;QAEnE,IAAI,CAAC,KAAK,CAAC,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAA;QAC1D,IAAI,CAAC,KAAK,CAAC,IAAI;YAAE,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CAAA;QAEhD,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,IAAI,iCAChC,KAAK,KACR,kBAAkB,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAE,EAAE,EAAE,EAAE,KAAK,CAAC,oBAAoB,EAAU,CAAC,CAAC,CAAC,SAAS,EACxG,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAE,EAAE,EAAE,EAAE,KAAK,CAAC,iBAAiB,EAAU,CAAC,CAAC,CAAC,SAAS,EAC/F,UAAU,EAAE,MAAM,IAAA,wEAA8B,EAAC,KAAK,CAAC,SAAS,CAAC,EACjE,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;QAEF,KAAK,MAAM,oBAAoB,IAAI,KAAK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AC,OAAO,CAAC,CAAA;IACZ,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CADe,4EAAmC;;kGAczD;iDAjDU,sCAAsC;IADlD,IAAA,uBAAQ,EAAC,kEAA8B,CAAC;GAC5B,sCAAsC,CAkDlD","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog'\nimport { BuildingInspectionDailyWorklogPatch, BuildingInspectionDailyWorklogNew } from './building-inspection-daily-worklog-type'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\nimport { generateDailyWorklogDocumentNo } from './building-inspection-daily-worklog-query'\n\n@Resolver(BuildingInspectionDailyWorklog)\nexport class BuildingInspectionDailyWorklogMutation {\n @Directive('@transaction')\n @Mutation(returns => BuildingInspectionDailyWorklog, { description: 'Create Daily Worklog by projectId+date' })\n async createBuildingInspectionDailyWorklog(\n @Arg('patch') patch: BuildingInspectionDailyWorklogNew,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionDailyWorklog> {\n const { user, domain, tx } = context.state\n const worklogRepo = tx.getRepository(BuildingInspectionDailyWorklog)\n const buildingInspectionRepo = tx.getRepository(BuildingInspection)\n\n if (!patch.projectId) throw new Error('projectId 가 없습니다.')\n if (!patch.date) throw new Error('date 가 없습니다.')\n\n const result = await worklogRepo.save({\n ...patch,\n overallSupervisory: patch.overallSupervisoryId ? ({ id: patch.overallSupervisoryId } as any) : undefined,\n taskSupervisory: patch.taskSupervisoryId ? ({ id: patch.taskSupervisoryId } as any) : undefined,\n documentNo: await generateDailyWorklogDocumentNo(patch.projectId),\n domain: domain,\n creator: user,\n updater: user\n })\n\n for (const buildingInspectionId of patch.buildingInspectionIds) {\n const buildingInspection = await buildingInspectionRepo.findOne({ where: { id: buildingInspectionId } })\n await buildingInspectionRepo.save({ ...buildingInspection, worklog: result })\n }\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => BuildingInspectionDailyWorklog, { description: 'Update Daily Worklog' })\n async updateBuildingInspectionDailyWorklog(\n @Arg('patch') patch: BuildingInspectionDailyWorklogPatch,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionDailyWorklog> {\n const { user, tx } = context.state\n const worklogRepo = tx.getRepository(BuildingInspectionDailyWorklog)\n\n const origin = await worklogRepo.findOne({ where: { id: patch.id } })\n const result = await worklogRepo.save({\n ...origin,\n ...patch,\n updater: user\n })\n\n return result\n }\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
|
|
4
|
+
export declare class BuildingInspectionDailyWorklogQuery {
|
|
5
|
+
/**
|
|
6
|
+
* 프로젝트와 날짜로 일일업무일지 조회. 없으면 새 문서번호를 생성해 빈 데이터를 반환
|
|
7
|
+
*/
|
|
8
|
+
buildingInspectionDailyWorklogByProjectIdAndDate(projectId: string, date: string, context: ResolverContext): Promise<BuildingInspectionDailyWorklog>;
|
|
9
|
+
dailyWorklogDatesOfProject(projectId: string, startDate: string, endDate: string, context: ResolverContext): Promise<BuildingInspectionDailyWorklog[]>;
|
|
10
|
+
domain(worklog: BuildingInspectionDailyWorklog): Promise<Domain>;
|
|
11
|
+
updater(worklog: BuildingInspectionDailyWorklog): Promise<User>;
|
|
12
|
+
creator(worklog: BuildingInspectionDailyWorklog): Promise<User>;
|
|
13
|
+
overallSupervisory(worklog: BuildingInspectionDailyWorklog): Promise<User>;
|
|
14
|
+
taskSupervisory(worklog: BuildingInspectionDailyWorklog): Promise<User>;
|
|
15
|
+
}
|
|
16
|
+
export declare function generateDailyWorklogDocumentNo(projectId: string): Promise<string>;
|