@dssp/supervision 1.0.0-alpha.3 → 1.0.0-alpha.31
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-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 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +93 -25
- 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 +327 -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.js +31 -9
- 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 +22 -0
- package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +431 -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 +401 -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 +22 -9
- 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 +48 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +1030 -0
- package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +2 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +740 -0
- package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +1 -0
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +304 -0
- package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +1 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +15 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +430 -0
- package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +1 -0
- package/dist-client/pages/checklist/attachment-list-popup.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 +7 -0
- package/dist-client/pages/checklist/checklist-view.js +363 -185
- 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 +8 -3
- package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
- package/dist-client/pages/checklist-template/checklist-template-list.js +2 -2
- 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 +3 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/stt/speech-to-text.d.ts +36 -0
- package/dist-client/stt/speech-to-text.js +89 -0
- package/dist-client/stt/speech-to-text.js.map +1 -0
- package/dist-client/stt/stt-utils.d.ts +28 -0
- package/dist-client/stt/stt-utils.js +146 -0
- package/dist-client/stt/stt-utils.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/action-plan/index.d.ts +0 -1
- package/dist-server/service/action-plan/index.js +1 -2
- package/dist-server/service/action-plan/index.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-history.d.ts +1 -0
- package/dist-server/service/building-inspection/building-inspection-history.js +5 -0
- package/dist-server/service/building-inspection/building-inspection-history.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +3 -3
- package/dist-server/service/building-inspection/building-inspection-mutation.js +145 -34
- 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 -4
- package/dist-server/service/building-inspection/building-inspection-query.js +46 -30
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +28 -9
- package/dist-server/service/building-inspection/building-inspection-type.js +96 -17
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.d.ts +13 -0
- package/dist-server/service/building-inspection/building-inspection.js +55 -2
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/building-inspection/index.d.ts +3 -5
- package/dist-server/service/building-inspection/index.js +10 -4
- 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 +14 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +135 -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 +19 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +74 -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 +27 -0
- package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +104 -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/checklist/checklist-history.d.ts +8 -0
- package/dist-server/service/checklist/checklist-history.js +36 -0
- package/dist-server/service/checklist/checklist-history.js.map +1 -1
- 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 +6 -0
- package/dist-server/service/checklist/checklist-query.js +63 -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 +38 -3
- package/dist-server/service/checklist/checklist.js +131 -15
- package/dist-server/service/checklist/checklist.js.map +1 -1
- package/dist-server/service/checklist/index.d.ts +0 -2
- package/dist-server/service/checklist/index.js +1 -3
- package/dist-server/service/checklist/index.js.map +1 -1
- package/dist-server/service/checklist-item/checklist-item-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-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-comment/index.d.ts +0 -2
- package/dist-server/service/checklist-item-comment/index.js +1 -3
- package/dist-server/service/checklist-item-comment/index.js.map +1 -1
- package/dist-server/service/checklist-template-item/checklist-template-item.js +2 -4
- package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
- package/dist-server/service/index.d.ts +3 -2
- package/dist-server/service/index.js +8 -13
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/issue/index.d.ts +0 -1
- package/dist-server/service/issue/index.js +1 -2
- package/dist-server/service/issue/index.js.map +1 -1
- package/dist-server/service/project-report/index.d.ts +0 -1
- package/dist-server/service/project-report/index.js +1 -2
- package/dist-server/service/project-report/index.js.map +1 -1
- package/dist-server/service/project-report/project-report.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/service/supervisor/index.d.ts +0 -1
- package/dist-server/service/supervisor/index.js +1 -2
- package/dist-server/service/supervisor/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/things-factory.config.js +3 -1
- package/dist-server/service/building-inspection/event-subscriber.d.ts +0 -7
- package/dist-server/service/building-inspection/event-subscriber.js +0 -21
- package/dist-server/service/building-inspection/event-subscriber.js.map +0 -1
- package/dist-server/service/checklist/event-subscriber.d.ts +0 -7
- package/dist-server/service/checklist/event-subscriber.js +0 -21
- package/dist-server/service/checklist/event-subscriber.js.map +0 -1
- package/dist-server/service/checklist-item-comment/event-subscriber.d.ts +0 -7
- package/dist-server/service/checklist-item-comment/event-subscriber.js +0 -21
- package/dist-server/service/checklist-item-comment/event-subscriber.js.map +0 -1
package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildingInspectionDailyWorklog = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const type_graphql_1 = require("type-graphql");
|
|
7
|
+
const shell_1 = require("@things-factory/shell");
|
|
8
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
+
const building_inspection_1 = require("../building-inspection/building-inspection");
|
|
10
|
+
let BuildingInspectionDailyWorklog = class BuildingInspectionDailyWorklog {
|
|
11
|
+
};
|
|
12
|
+
exports.BuildingInspectionDailyWorklog = BuildingInspectionDailyWorklog;
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
15
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], BuildingInspectionDailyWorklog.prototype, "id", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
20
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
21
|
+
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
22
|
+
], BuildingInspectionDailyWorklog.prototype, "domain", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.RelationId)((worklog) => worklog.domain),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], BuildingInspectionDailyWorklog.prototype, "domainId", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '프로젝트 ID' }),
|
|
29
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
|
+
], BuildingInspectionDailyWorklog.prototype, "projectId", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '문서번호 - {네이밍} 검측 제04-00001호)' }) // DocumentNoType 참조
|
|
34
|
+
,
|
|
35
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
|
+
], BuildingInspectionDailyWorklog.prototype, "documentNo", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, comment: '작성 날짜' }),
|
|
40
|
+
(0, type_graphql_1.Field)(type => String, { nullable: true }),
|
|
41
|
+
tslib_1.__metadata("design:type", String)
|
|
42
|
+
], BuildingInspectionDailyWorklog.prototype, "date", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'simple-json', nullable: true, comment: '작업사항' }),
|
|
45
|
+
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
|
46
|
+
tslib_1.__metadata("design:type", Array)
|
|
47
|
+
], BuildingInspectionDailyWorklog.prototype, "worklogs", void 0);
|
|
48
|
+
tslib_1.__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '특기사항' }),
|
|
50
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
51
|
+
tslib_1.__metadata("design:type", String)
|
|
52
|
+
], BuildingInspectionDailyWorklog.prototype, "memo", void 0);
|
|
53
|
+
tslib_1.__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '지적 사항 및 처리결과' }),
|
|
55
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
56
|
+
tslib_1.__metadata("design:type", String)
|
|
57
|
+
], BuildingInspectionDailyWorklog.prototype, "directiveMemo", void 0);
|
|
58
|
+
tslib_1.__decorate([
|
|
59
|
+
(0, typeorm_1.OneToMany)(type => building_inspection_1.BuildingInspection, buildingInspection => buildingInspection.worklog),
|
|
60
|
+
(0, type_graphql_1.Field)(type => [building_inspection_1.BuildingInspection], { nullable: true }),
|
|
61
|
+
tslib_1.__metadata("design:type", Array)
|
|
62
|
+
], BuildingInspectionDailyWorklog.prototype, "buildingInspections", void 0);
|
|
63
|
+
tslib_1.__decorate([
|
|
64
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
65
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
66
|
+
tslib_1.__metadata("design:type", Date)
|
|
67
|
+
], BuildingInspectionDailyWorklog.prototype, "createdAt", void 0);
|
|
68
|
+
tslib_1.__decorate([
|
|
69
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
70
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
71
|
+
tslib_1.__metadata("design:type", Date)
|
|
72
|
+
], BuildingInspectionDailyWorklog.prototype, "updatedAt", void 0);
|
|
73
|
+
tslib_1.__decorate([
|
|
74
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
75
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
76
|
+
tslib_1.__metadata("design:type", Date)
|
|
77
|
+
], BuildingInspectionDailyWorklog.prototype, "deletedAt", void 0);
|
|
78
|
+
tslib_1.__decorate([
|
|
79
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
80
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
81
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
82
|
+
], BuildingInspectionDailyWorklog.prototype, "creator", void 0);
|
|
83
|
+
tslib_1.__decorate([
|
|
84
|
+
(0, typeorm_1.RelationId)((worklog) => worklog.creator),
|
|
85
|
+
tslib_1.__metadata("design:type", String)
|
|
86
|
+
], BuildingInspectionDailyWorklog.prototype, "creatorId", void 0);
|
|
87
|
+
tslib_1.__decorate([
|
|
88
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
89
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
90
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
91
|
+
], BuildingInspectionDailyWorklog.prototype, "updater", void 0);
|
|
92
|
+
tslib_1.__decorate([
|
|
93
|
+
(0, typeorm_1.RelationId)((worklog) => worklog.updater),
|
|
94
|
+
tslib_1.__metadata("design:type", String)
|
|
95
|
+
], BuildingInspectionDailyWorklog.prototype, "updaterId", void 0);
|
|
96
|
+
exports.BuildingInspectionDailyWorklog = BuildingInspectionDailyWorklog = tslib_1.__decorate([
|
|
97
|
+
(0, typeorm_1.Entity)({ comment: '일일 업무일지' }),
|
|
98
|
+
(0, typeorm_1.Index)('ix_building_inspection_daily_worklog_0', (worklog) => [worklog.projectId, worklog.date], {
|
|
99
|
+
unique: true,
|
|
100
|
+
where: '"deleted_at" IS NULL'
|
|
101
|
+
}),
|
|
102
|
+
(0, type_graphql_1.ObjectType)({ description: 'Entity for BuildingInspectionDailyWorklog' })
|
|
103
|
+
], BuildingInspectionDailyWorklog);
|
|
104
|
+
//# sourceMappingURL=building-inspection-daily-worklog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building-inspection-daily-worklog.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAoD;AAEpD,iDAA4D;AAC5D,yDAAgD;AAChD,oFAA+E;AAcxE,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;CAiE1C,CAAA;AAjEY,wEAA8B;AAGhC;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACnB;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;8DAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,OAAuC,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;;gEACvD;AAIjB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAC/C,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iEACT;AAIlB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC,CAAC,oBAAoB;;IACvF,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACP;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EA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AAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,IAAI;iEAAA;AAIhB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;+DAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,OAAuC,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;iEACvD;AAIlB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;+DAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,OAAuC,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;iEACvD;yCAhEP,8BAA8B;IAN1C,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAC9B,IAAA,eAAK,EAAC,wCAAwC,EAAE,CAAC,OAAuC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE;QAC/H,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,2CAA2C,EAAE,CAAC;GAC5D,8BAA8B,CAiE1C","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn,\n OneToMany\n} from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\n\nimport { Domain, ScalarObject } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\n\nexport interface Worklog {\n constructionType: string\n supervisoryTitle: string\n supervisorContent: string\n}\n\n@Entity({ comment: '일일 업무일지' })\n@Index('ix_building_inspection_daily_worklog_0', (worklog: BuildingInspectionDailyWorklog) => [worklog.projectId, worklog.date], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for BuildingInspectionDailyWorklog' })\nexport class BuildingInspectionDailyWorklog {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { nullable: true })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((worklog: BuildingInspectionDailyWorklog) => worklog.domain)\n domainId?: string\n\n @Column({ nullable: false, comment: '프로젝트 ID' })\n @Field({ nullable: false })\n projectId!: string\n\n @Column({ nullable: true, comment: '문서번호 - {네이밍} 검측 제04-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n documentNo?: string\n\n @Column({ type: 'date', nullable: true, comment: '작성 날짜' })\n @Field(type => String, { nullable: true })\n date?: string\n\n @Column({ type: 'simple-json', nullable: true, comment: '작업사항' })\n @Field(type => ScalarObject, { nullable: true })\n worklogs?: Worklog[]\n\n @Column({ nullable: true, comment: '특기사항' })\n @Field({ nullable: true })\n memo?: string\n\n @Column({ nullable: true, comment: '지적 사항 및 처리결과' })\n @Field({ nullable: true })\n directiveMemo?: string\n\n @OneToMany(type => BuildingInspection, buildingInspection => buildingInspection.worklog)\n @Field(type => [BuildingInspection], { nullable: true })\n buildingInspections?: BuildingInspection[]\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((worklog: BuildingInspectionDailyWorklog) => worklog.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((worklog: BuildingInspectionDailyWorklog) => worklog.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
|
|
2
|
+
import { BuildingInspectionDailyWorklogQuery } from './building-inspection-daily-worklog-query';
|
|
3
|
+
import { BuildingInspectionDailyWorklogMutation } from './building-inspection-daily-worklog-mutation';
|
|
4
|
+
export declare const entities: (typeof BuildingInspectionDailyWorklog)[];
|
|
5
|
+
export declare const resolvers: (typeof BuildingInspectionDailyWorklogQuery | typeof BuildingInspectionDailyWorklogMutation)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
|
|
5
|
+
const building_inspection_daily_worklog_query_1 = require("./building-inspection-daily-worklog-query");
|
|
6
|
+
const building_inspection_daily_worklog_mutation_1 = require("./building-inspection-daily-worklog-mutation");
|
|
7
|
+
exports.entities = [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog];
|
|
8
|
+
exports.resolvers = [building_inspection_daily_worklog_query_1.BuildingInspectionDailyWorklogQuery, building_inspection_daily_worklog_mutation_1.BuildingInspectionDailyWorklogMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/index.ts"],"names":[],"mappings":";;;AAAA,2FAAoF;AACpF,uGAA+F;AAC/F,6GAAqG;AAExF,QAAA,QAAQ,GAAG,CAAC,kEAA8B,CAAC,CAAA;AAC3C,QAAA,SAAS,GAAG,CAAC,6EAAmC,EAAE,mFAAsC,CAAC,CAAA","sourcesContent":["import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog'\nimport { BuildingInspectionDailyWorklogQuery } from './building-inspection-daily-worklog-query'\nimport { BuildingInspectionDailyWorklogMutation } from './building-inspection-daily-worklog-mutation'\n\nexport const entities = [BuildingInspectionDailyWorklog]\nexport const resolvers = [BuildingInspectionDailyWorklogQuery, BuildingInspectionDailyWorklogMutation]\n\n\n"]}
|
|
@@ -16,6 +16,14 @@ export declare class ChecklistHistory implements HistoryEntityInterface<Checklis
|
|
|
16
16
|
taskConstructorSignature?: string;
|
|
17
17
|
overallSupervisorySignature?: string;
|
|
18
18
|
taskSupervisorySignature?: string;
|
|
19
|
+
overallConstructor?: User;
|
|
20
|
+
overallConstructorId?: string;
|
|
21
|
+
taskConstructor?: User;
|
|
22
|
+
taskConstructorId?: string;
|
|
23
|
+
overallSupervisory?: User;
|
|
24
|
+
overallSupervisoryId?: string;
|
|
25
|
+
taskSupervisory?: User;
|
|
26
|
+
taskSupervisoryId?: string;
|
|
19
27
|
createdAt?: Date;
|
|
20
28
|
creator?: User;
|
|
21
29
|
creatorId?: string;
|
|
@@ -82,6 +82,42 @@ tslib_1.__decorate([
|
|
|
82
82
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
83
83
|
tslib_1.__metadata("design:type", String)
|
|
84
84
|
], ChecklistHistory.prototype, "taskSupervisorySignature", void 0);
|
|
85
|
+
tslib_1.__decorate([
|
|
86
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
87
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '총괄 시공 책임자' }),
|
|
88
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
89
|
+
], ChecklistHistory.prototype, "overallConstructor", void 0);
|
|
90
|
+
tslib_1.__decorate([
|
|
91
|
+
(0, typeorm_1.RelationId)((checklistHistory) => checklistHistory.overallConstructor),
|
|
92
|
+
tslib_1.__metadata("design:type", String)
|
|
93
|
+
], ChecklistHistory.prototype, "overallConstructorId", void 0);
|
|
94
|
+
tslib_1.__decorate([
|
|
95
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
96
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '공종별 시공 관리자' }),
|
|
97
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
98
|
+
], ChecklistHistory.prototype, "taskConstructor", void 0);
|
|
99
|
+
tslib_1.__decorate([
|
|
100
|
+
(0, typeorm_1.RelationId)((checklistHistory) => checklistHistory.taskConstructor),
|
|
101
|
+
tslib_1.__metadata("design:type", String)
|
|
102
|
+
], ChecklistHistory.prototype, "taskConstructorId", void 0);
|
|
103
|
+
tslib_1.__decorate([
|
|
104
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
105
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '총괄 감리 책임자' }),
|
|
106
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
107
|
+
], ChecklistHistory.prototype, "overallSupervisory", void 0);
|
|
108
|
+
tslib_1.__decorate([
|
|
109
|
+
(0, typeorm_1.RelationId)((checklistHistory) => checklistHistory.overallSupervisory),
|
|
110
|
+
tslib_1.__metadata("design:type", String)
|
|
111
|
+
], ChecklistHistory.prototype, "overallSupervisoryId", void 0);
|
|
112
|
+
tslib_1.__decorate([
|
|
113
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
114
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' }),
|
|
115
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
116
|
+
], ChecklistHistory.prototype, "taskSupervisory", void 0);
|
|
117
|
+
tslib_1.__decorate([
|
|
118
|
+
(0, typeorm_1.RelationId)((checklistHistory) => checklistHistory.taskSupervisory),
|
|
119
|
+
tslib_1.__metadata("design:type", String)
|
|
120
|
+
], ChecklistHistory.prototype, "taskSupervisoryId", void 0);
|
|
85
121
|
tslib_1.__decorate([
|
|
86
122
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
87
123
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-history.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAA8F;AAC9F,8DAAkI;AAClI,yDAAgD;AAChD,6CAA4C;AAG5C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAK7B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;
|
|
1
|
+
{"version":3,"file":"checklist-history.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAA8F;AAC9F,8DAAkI;AAClI,yDAAgD;AAChD,6CAA4C;AAG5C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAK7B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CA8G5B,CAAA;AA9GY,4CAAgB;AAGlB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;4CACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACb;AAIb;IAFC,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AC,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;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,gBAAkC,EAAE,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC;;mDAC3D;AAGX;IADN,IAAA,yCAAuB,GAAE;;oDACA;AAYnB;IAVN,IAAA,qCAAmB,EAAC;QACnB,QAAQ,EAAE,KAAK;QACf,IAAI,EACF,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS;YACnF,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,aAAa,IAAI,QAAQ;gBACzB,CAAC,CAAC,UAAU;gBACZ,CAAC,CAAC,UAAU;QAClB,IAAI,EAAE,mCAAiB;KACxB,CAAC;;gDAC+B;2BA7GtB,gBAAgB;IAH5B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,gBAAkC,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACtG,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;GAC9C,gBAAgB,CA8G5B","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\nimport { HistoryActionColumn, HistoryActionType, HistoryEntityInterface, HistoryOriginalIdColumn } from '@operato/typeorm-history'\nimport { User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { Checklist } from './checklist'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index('ix_checklist_history_0', (checklistHistory: ChecklistHistory) => [checklistHistory.originalId])\n@ObjectType({ description: 'History Entity of Checklist' })\nexport class ChecklistHistory implements HistoryEntityInterface<Checklist> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, comment: '이름' })\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true, comment: '문서 번호 동(4자리)-층(3자리)-시퀀스(6자리)' })\n @Field({ nullable: true })\n documentNo?: string\n\n @Column({ nullable: false, comment: '공종' })\n @Field({ nullable: true })\n constructionType?: string\n\n @Column({ nullable: false, comment: '세부 공종' })\n @Field({ nullable: true })\n constructionDetailType?: string\n\n @Column({ nullable: false, comment: '위치 (x동 x층)' })\n @Field({ nullable: true })\n location?: string\n\n @Column({ nullable: false, comment: '검측 도면 타입', default: '' })\n @Field({ nullable: true })\n inspectionDrawingType?: string\n\n @Column('simple-array', { nullable: true, comment: '검측 부위' })\n @Field(() => [String], { nullable: true })\n inspectionParts?: string[]\n\n @Column({ nullable: true, comment: '시공자 점검일' })\n @Field({ nullable: true })\n constructionInspectionDate?: Date\n\n @Column({ nullable: true, comment: '감리자 점검일' })\n @Field({ nullable: true })\n supervisorInspectionDate?: Date\n\n @Column({ nullable: true, comment: '총괄 시공 책임자 사인' })\n @Field({ nullable: true })\n overallConstructorSignature?: string\n\n @Column({ nullable: true, comment: '공종별 시공 관리자 사인' })\n @Field({ nullable: true })\n taskConstructorSignature?: string\n\n @Column({ nullable: true, comment: '총괄 감리 책임자 사인' })\n @Field({ nullable: true })\n overallSupervisorySignature?: string\n\n @Column({ nullable: true, comment: '건축사보 (공종별 감리 관리자) 사인' })\n @Field({ nullable: true })\n taskSupervisorySignature?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 시공 책임자' })\n overallConstructor?: User\n\n @RelationId((checklistHistory: ChecklistHistory) => checklistHistory.overallConstructor)\n overallConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '공종별 시공 관리자' })\n taskConstructor?: User\n\n @RelationId((checklistHistory: ChecklistHistory) => checklistHistory.taskConstructor)\n taskConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 감리 책임자' })\n overallSupervisory?: User\n\n @RelationId((checklistHistory: ChecklistHistory) => checklistHistory.overallSupervisory)\n overallSupervisoryId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' })\n taskSupervisory?: User\n\n @RelationId((checklistHistory: ChecklistHistory) => checklistHistory.taskSupervisory)\n taskSupervisoryId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((checklistHistory: ChecklistHistory) => checklistHistory.creator)\n creatorId?: string\n\n @HistoryOriginalIdColumn()\n public originalId!: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : 'smallint',\n enum: HistoryActionType\n })\n public action!: HistoryActionType\n}\n"]}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { Checklist } from './checklist';
|
|
2
|
-
import { NewChecklist, ChecklistPatch } from './checklist-type';
|
|
3
1
|
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
2
|
deleteChecklists(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
8
3
|
}
|
|
@@ -5,45 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const type_graphql_1 = require("type-graphql");
|
|
6
6
|
const typeorm_1 = require("typeorm");
|
|
7
7
|
const checklist_1 = require("./checklist");
|
|
8
|
-
const checklist_type_1 = require("./checklist-type");
|
|
9
8
|
let ChecklistMutation = class ChecklistMutation {
|
|
10
|
-
async createChecklist(checklist, context) {
|
|
11
|
-
const { domain, user, tx } = context.state;
|
|
12
|
-
const result = await tx.getRepository(checklist_1.Checklist).save(Object.assign(Object.assign({}, checklist), { domain, creator: user, updater: user }));
|
|
13
|
-
return result;
|
|
14
|
-
}
|
|
15
|
-
async updateChecklist(id, patch, context) {
|
|
16
|
-
const { domain, user, tx } = context.state;
|
|
17
|
-
const repository = tx.getRepository(checklist_1.Checklist);
|
|
18
|
-
const checklist = await repository.findOne({
|
|
19
|
-
where: { id }
|
|
20
|
-
});
|
|
21
|
-
const result = await repository.save(Object.assign(Object.assign(Object.assign({}, checklist), patch), { updater: user }));
|
|
22
|
-
return result;
|
|
23
|
-
}
|
|
24
|
-
async updateMultipleChecklist(patches, context) {
|
|
25
|
-
const { domain, user, tx } = context.state;
|
|
26
|
-
let results = [];
|
|
27
|
-
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
28
|
-
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
29
|
-
const checklistRepo = tx.getRepository(checklist_1.Checklist);
|
|
30
|
-
if (_createRecords.length > 0) {
|
|
31
|
-
for (let i = 0; i < _createRecords.length; i++) {
|
|
32
|
-
const newRecord = _createRecords[i];
|
|
33
|
-
const result = await checklistRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
|
|
34
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
if (_updateRecords.length > 0) {
|
|
38
|
-
for (let i = 0; i < _updateRecords.length; i++) {
|
|
39
|
-
const updateRecord = _updateRecords[i];
|
|
40
|
-
const checklist = await checklistRepo.findOneBy({ id: updateRecord.id });
|
|
41
|
-
const result = await checklistRepo.save(Object.assign(Object.assign(Object.assign({}, checklist), updateRecord), { updater: user }));
|
|
42
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return results;
|
|
46
|
-
}
|
|
47
9
|
async deleteChecklists(ids, context) {
|
|
48
10
|
const { domain, tx } = context.state;
|
|
49
11
|
await tx.getRepository(checklist_1.Checklist).softDelete({
|
|
@@ -55,35 +17,7 @@ let ChecklistMutation = class ChecklistMutation {
|
|
|
55
17
|
exports.ChecklistMutation = ChecklistMutation;
|
|
56
18
|
tslib_1.__decorate([
|
|
57
19
|
(0, type_graphql_1.Directive)('@transaction'),
|
|
58
|
-
(0, type_graphql_1.Mutation)(returns =>
|
|
59
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('checklist')),
|
|
60
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
61
|
-
tslib_1.__metadata("design:type", Function),
|
|
62
|
-
tslib_1.__metadata("design:paramtypes", [checklist_type_1.NewChecklist, Object]),
|
|
63
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
64
|
-
], ChecklistMutation.prototype, "createChecklist", null);
|
|
65
|
-
tslib_1.__decorate([
|
|
66
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
67
|
-
(0, type_graphql_1.Mutation)(returns => checklist_1.Checklist, { description: 'To modify Checklist information' }),
|
|
68
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
69
|
-
tslib_1.__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
70
|
-
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
71
|
-
tslib_1.__metadata("design:type", Function),
|
|
72
|
-
tslib_1.__metadata("design:paramtypes", [String, checklist_type_1.ChecklistPatch, Object]),
|
|
73
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
74
|
-
], ChecklistMutation.prototype, "updateChecklist", null);
|
|
75
|
-
tslib_1.__decorate([
|
|
76
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
77
|
-
(0, type_graphql_1.Mutation)(returns => [checklist_1.Checklist], { description: "To modify multiple Checklists' information" }),
|
|
78
|
-
tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [checklist_type_1.ChecklistPatch])),
|
|
79
|
-
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
80
|
-
tslib_1.__metadata("design:type", Function),
|
|
81
|
-
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
82
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
83
|
-
], ChecklistMutation.prototype, "updateMultipleChecklist", null);
|
|
84
|
-
tslib_1.__decorate([
|
|
85
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
86
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple Checklists' }),
|
|
20
|
+
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To create Building Inspection And Checklist information' }),
|
|
87
21
|
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
88
22
|
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
89
23
|
tslib_1.__metadata("design:type", Function),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,2CAAuC;
|
|
1
|
+
{"version":3,"file":"checklist-mutation.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,2CAAuC;AAGhC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAGtB,AAAN,KAAK,CAAC,gBAAgB,CAA+B,GAAa,EAAS,OAAwB;QACjG,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEpC,MAAM,EAAE,CAAC,aAAa,CAAC,qBAAS,CAAC,CAAC,UAAU,CAAC;YAC3C,EAAE,EAAE,IAAA,YAAE,EAAC,GAAG,CAAC;SACZ,CAAC,CAAA;QAEF,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA;AAZY,8CAAiB;AAGtB;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,yDAAyD,EAAE,CAAC;IACjF,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAiB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;yDAQzE;4BAXU,iBAAiB;IAD7B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,iBAAiB,CAY7B","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\nimport { Checklist } from './checklist'\n\n@Resolver(Checklist)\nexport class ChecklistMutation {\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To create Building Inspection And Checklist information' })\n async deleteChecklists(@Arg('ids', type => [String]) ids: string[], @Ctx() context: ResolverContext): Promise<boolean> {\n const { domain, tx } = context.state\n\n await tx.getRepository(Checklist).softDelete({\n id: In(ids)\n })\n\n return true\n }\n}\n"]}
|
|
@@ -4,11 +4,17 @@ import { Checklist } from './checklist';
|
|
|
4
4
|
import { ChecklistList } from './checklist-type';
|
|
5
5
|
import { ChecklistItem } from '../checklist-item/checklist-item';
|
|
6
6
|
import { BuildingInspection } from '../building-inspection/building-inspection';
|
|
7
|
+
import { Attachment } from '@things-factory/attachment-base';
|
|
7
8
|
export declare class ChecklistQuery {
|
|
8
9
|
checklist(id: string, context: ResolverContext): Promise<Checklist>;
|
|
9
10
|
checklists(params: ListParam, context: ResolverContext): Promise<ChecklistList>;
|
|
10
11
|
checklistItems(checklist: Checklist): Promise<ChecklistItem[]>;
|
|
11
12
|
buildingInspection(checklist: Checklist): Promise<BuildingInspection>;
|
|
13
|
+
nameListAttachment(checklist: Checklist): Promise<Attachment | null>;
|
|
14
|
+
taskConstructor(checklist: Checklist): Promise<User>;
|
|
15
|
+
overallConstructor(checklist: Checklist): Promise<User>;
|
|
16
|
+
taskSupervisory(checklist: Checklist): Promise<User>;
|
|
17
|
+
overallSupervisory(checklist: Checklist): Promise<User>;
|
|
12
18
|
updater(checklist: Checklist): Promise<User>;
|
|
13
19
|
creator(checklist: Checklist): Promise<User>;
|
|
14
20
|
}
|
|
@@ -9,6 +9,7 @@ const checklist_1 = require("./checklist");
|
|
|
9
9
|
const checklist_type_1 = require("./checklist-type");
|
|
10
10
|
const checklist_item_1 = require("../checklist-item/checklist-item");
|
|
11
11
|
const building_inspection_1 = require("../building-inspection/building-inspection");
|
|
12
|
+
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
12
13
|
let ChecklistQuery = class ChecklistQuery {
|
|
13
14
|
async checklist(id, context) {
|
|
14
15
|
const { domain } = context.state;
|
|
@@ -36,10 +37,37 @@ let ChecklistQuery = class ChecklistQuery {
|
|
|
36
37
|
async buildingInspection(checklist) {
|
|
37
38
|
return await (0, shell_1.getRepository)(building_inspection_1.BuildingInspection).findOneBy({ checklist: { id: checklist.id } });
|
|
38
39
|
}
|
|
40
|
+
async nameListAttachment(checklist) {
|
|
41
|
+
return await (0, shell_1.getRepository)(attachment_base_1.Attachment).findOneBy({ refBy: checklist.id, refType: 'Checklist_NameList' });
|
|
42
|
+
}
|
|
43
|
+
async taskConstructor(checklist) {
|
|
44
|
+
if (!checklist.taskConstructorId)
|
|
45
|
+
return null;
|
|
46
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.taskConstructorId });
|
|
47
|
+
}
|
|
48
|
+
async overallConstructor(checklist) {
|
|
49
|
+
if (!checklist.overallConstructorId)
|
|
50
|
+
return null;
|
|
51
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.overallConstructorId });
|
|
52
|
+
}
|
|
53
|
+
async taskSupervisory(checklist) {
|
|
54
|
+
if (!checklist.taskSupervisoryId)
|
|
55
|
+
return null;
|
|
56
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.taskSupervisoryId });
|
|
57
|
+
}
|
|
58
|
+
async overallSupervisory(checklist) {
|
|
59
|
+
if (!checklist.overallSupervisoryId)
|
|
60
|
+
return null;
|
|
61
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.overallSupervisoryId });
|
|
62
|
+
}
|
|
39
63
|
async updater(checklist) {
|
|
64
|
+
if (!checklist.updaterId)
|
|
65
|
+
return null;
|
|
40
66
|
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.updaterId });
|
|
41
67
|
}
|
|
42
68
|
async creator(checklist) {
|
|
69
|
+
if (!checklist.creatorId)
|
|
70
|
+
return null;
|
|
43
71
|
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklist.creatorId });
|
|
44
72
|
}
|
|
45
73
|
};
|
|
@@ -74,6 +102,41 @@ tslib_1.__decorate([
|
|
|
74
102
|
tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
|
|
75
103
|
tslib_1.__metadata("design:returntype", Promise)
|
|
76
104
|
], ChecklistQuery.prototype, "buildingInspection", null);
|
|
105
|
+
tslib_1.__decorate([
|
|
106
|
+
(0, type_graphql_1.FieldResolver)(type => attachment_base_1.Attachment, { nullable: true }),
|
|
107
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
108
|
+
tslib_1.__metadata("design:type", Function),
|
|
109
|
+
tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
|
|
110
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
111
|
+
], ChecklistQuery.prototype, "nameListAttachment", null);
|
|
112
|
+
tslib_1.__decorate([
|
|
113
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
114
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
115
|
+
tslib_1.__metadata("design:type", Function),
|
|
116
|
+
tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
|
|
117
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
118
|
+
], ChecklistQuery.prototype, "taskConstructor", null);
|
|
119
|
+
tslib_1.__decorate([
|
|
120
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
121
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
122
|
+
tslib_1.__metadata("design:type", Function),
|
|
123
|
+
tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
|
|
124
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
125
|
+
], ChecklistQuery.prototype, "overallConstructor", null);
|
|
126
|
+
tslib_1.__decorate([
|
|
127
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
128
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
129
|
+
tslib_1.__metadata("design:type", Function),
|
|
130
|
+
tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
|
|
131
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
132
|
+
], ChecklistQuery.prototype, "taskSupervisory", null);
|
|
133
|
+
tslib_1.__decorate([
|
|
134
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
135
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
136
|
+
tslib_1.__metadata("design:type", Function),
|
|
137
|
+
tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
|
|
138
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
139
|
+
], ChecklistQuery.prototype, "overallSupervisory", null);
|
|
77
140
|
tslib_1.__decorate([
|
|
78
141
|
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
79
142
|
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-query.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,iDAA+F;AAC/F,yDAAgD;AAChD,2CAAuC;AACvC,qDAAgD;AAChD,qEAAgE;AAChE,oFAA+E;
|
|
1
|
+
{"version":3,"file":"checklist-query.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,iDAA+F;AAC/F,yDAAgD;AAChD,2CAAuC;AACvC,qDAAgD;AAChD,qEAAgE;AAChE,oFAA+E;AAC/E,qEAA4D;AAGrD,IAAM,cAAc,GAApB,MAAM,cAAc;IAEnB,AAAN,KAAK,CAAC,SAAS,CAAY,EAAU,EAAS,OAAwB;QACpE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,qBAAa,EAAC,qBAAS,CAAC,CAAC,OAAO,CAAC;YAC5C,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CAAS,MAAiB,EAAS,OAAwB;QACzE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,qBAAS,CAAC;YAC1C,WAAW,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;SACrC,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,cAAc,CAAS,SAAoB;QAC/C,OAAO,MAAM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,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;6CAGzC;yBA9EU,cAAc;IAD1B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,cAAc,CA+E1B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Checklist } from './checklist'\nimport { ChecklistList } from './checklist-type'\nimport { ChecklistItem } from '../checklist-item/checklist-item'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\nimport { Attachment } from '@things-factory/attachment-base'\n\n@Resolver(Checklist)\nexport class ChecklistQuery {\n @Query(returns => Checklist!, { nullable: true, description: 'To fetch a Checklist' })\n async checklist(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<Checklist> {\n const { domain } = context.state\n\n return await getRepository(Checklist).findOne({\n where: { id }\n })\n }\n\n @Query(returns => ChecklistList, { description: 'To fetch multiple Checklists' })\n async checklists(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(Checklist),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => [ChecklistItem])\n async checklistItems(@Root() checklist: Checklist): Promise<ChecklistItem[]> {\n return await getRepository(ChecklistItem)\n .createQueryBuilder('ci')\n .where('ci.checklist_id = :checklistId', { checklistId: checklist.id })\n .orderBy('ci.sequence', 'ASC')\n .getMany()\n }\n\n @FieldResolver(type => BuildingInspection)\n async buildingInspection(@Root() checklist: Checklist): Promise<BuildingInspection> {\n return await getRepository(BuildingInspection).findOneBy({ checklist: { id: checklist.id } })\n }\n\n @FieldResolver(type => Attachment, { nullable: true })\n async nameListAttachment(@Root() checklist: Checklist): Promise<Attachment | null> {\n return await getRepository(Attachment).findOneBy({ refBy: checklist.id, refType: 'Checklist_NameList' })\n }\n\n @FieldResolver(type => User)\n async taskConstructor(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.taskConstructorId) return null\n return await getRepository(User).findOneBy({ id: checklist.taskConstructorId })\n }\n\n @FieldResolver(type => User)\n async overallConstructor(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.overallConstructorId) return null\n return await getRepository(User).findOneBy({ id: checklist.overallConstructorId })\n }\n\n @FieldResolver(type => User)\n async taskSupervisory(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.taskSupervisoryId) return null\n return await getRepository(User).findOneBy({ id: checklist.taskSupervisoryId })\n }\n\n @FieldResolver(type => User)\n async overallSupervisory(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.overallSupervisoryId) return null\n return await getRepository(User).findOneBy({ id: checklist.overallSupervisoryId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.updaterId) return null\n return await getRepository(User).findOneBy({ id: checklist.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.creatorId) return null\n return await getRepository(User).findOneBy({ id: checklist.creatorId })\n }\n}\n"]}
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
import { Checklist } from './checklist';
|
|
2
|
-
export declare class NewChecklist {
|
|
3
|
-
name: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
active?: boolean;
|
|
6
|
-
params?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class ChecklistPatch {
|
|
9
|
-
id?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
active?: boolean;
|
|
13
|
-
cuFlag?: string;
|
|
14
|
-
}
|
|
15
2
|
export declare class ChecklistList {
|
|
16
3
|
items: Checklist[];
|
|
17
4
|
total: number;
|
|
@@ -1,57 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChecklistList =
|
|
3
|
+
exports.ChecklistList = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const type_graphql_1 = require("type-graphql");
|
|
6
6
|
const checklist_1 = require("./checklist");
|
|
7
|
-
let NewChecklist = class NewChecklist {
|
|
8
|
-
};
|
|
9
|
-
exports.NewChecklist = NewChecklist;
|
|
10
|
-
tslib_1.__decorate([
|
|
11
|
-
(0, type_graphql_1.Field)(),
|
|
12
|
-
tslib_1.__metadata("design:type", String)
|
|
13
|
-
], NewChecklist.prototype, "name", void 0);
|
|
14
|
-
tslib_1.__decorate([
|
|
15
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
16
|
-
tslib_1.__metadata("design:type", String)
|
|
17
|
-
], NewChecklist.prototype, "description", void 0);
|
|
18
|
-
tslib_1.__decorate([
|
|
19
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
20
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
21
|
-
], NewChecklist.prototype, "active", void 0);
|
|
22
|
-
tslib_1.__decorate([
|
|
23
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
24
|
-
tslib_1.__metadata("design:type", String)
|
|
25
|
-
], NewChecklist.prototype, "params", void 0);
|
|
26
|
-
exports.NewChecklist = NewChecklist = tslib_1.__decorate([
|
|
27
|
-
(0, type_graphql_1.InputType)()
|
|
28
|
-
], NewChecklist);
|
|
29
|
-
let ChecklistPatch = class ChecklistPatch {
|
|
30
|
-
};
|
|
31
|
-
exports.ChecklistPatch = ChecklistPatch;
|
|
32
|
-
tslib_1.__decorate([
|
|
33
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
34
|
-
tslib_1.__metadata("design:type", String)
|
|
35
|
-
], ChecklistPatch.prototype, "id", void 0);
|
|
36
|
-
tslib_1.__decorate([
|
|
37
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
38
|
-
tslib_1.__metadata("design:type", String)
|
|
39
|
-
], ChecklistPatch.prototype, "name", void 0);
|
|
40
|
-
tslib_1.__decorate([
|
|
41
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
42
|
-
tslib_1.__metadata("design:type", String)
|
|
43
|
-
], ChecklistPatch.prototype, "description", void 0);
|
|
44
|
-
tslib_1.__decorate([
|
|
45
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
46
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
47
|
-
], ChecklistPatch.prototype, "active", void 0);
|
|
48
|
-
tslib_1.__decorate([
|
|
49
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
50
|
-
tslib_1.__metadata("design:type", String)
|
|
51
|
-
], ChecklistPatch.prototype, "cuFlag", void 0);
|
|
52
|
-
exports.ChecklistPatch = ChecklistPatch = tslib_1.__decorate([
|
|
53
|
-
(0, type_graphql_1.InputType)()
|
|
54
|
-
], ChecklistPatch);
|
|
55
7
|
let ChecklistList = class ChecklistList {
|
|
56
8
|
};
|
|
57
9
|
exports.ChecklistList = ChecklistList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checklist-type.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-type.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"checklist-type.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAqD;AACrD,2CAAuC;AAEhC,IAAM,aAAa,GAAnB,MAAM,aAAa;CAMzB,CAAA;AANY,sCAAa;AAExB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,qBAAS,CAAC,CAAC;;4CACT;AAGlB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;4CACN;wBALF,aAAa;IADzB,IAAA,yBAAU,GAAE;GACA,aAAa,CAMzB","sourcesContent":["import { ObjectType, Field, Int } from 'type-graphql'\nimport { Checklist } from './checklist'\n@ObjectType()\nexport class ChecklistList {\n @Field(type => [Checklist])\n items: Checklist[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|