@dssp/supervision 1.0.0-alpha.66 → 1.0.0-alpha.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-defect.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-ai-measurement.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-camera.js +1 -0
- 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 +2 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +16 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +1 -0
- package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
- package/dist-client/pages/building-inspection/building-inspection-management.d.ts +72 -0
- package/dist-client/pages/building-inspection/building-inspection-management.js +1256 -0
- package/dist-client/pages/building-inspection/building-inspection-management.js.map +1 -0
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +8 -3
- package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
- package/dist-client/pages/building-inspection/component/image-preview-popup.js +0 -3
- package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -1
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +5 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +62 -3
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -1
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +1 -0
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +8 -2
- package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js +3 -1
- package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.d.ts +3 -0
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js +791 -0
- package/dist-client/pages/building-inspection/inspection-with-checklist-create-popup.js.map +1 -0
- package/dist-client/pages/checklist/checklist-view.js +76 -5
- package/dist-client/pages/checklist/checklist-view.js.map +1 -1
- package/dist-client/pages/checklist-database/checklist-database.d.ts +35 -0
- package/dist-client/pages/checklist-database/checklist-database.js +539 -0
- package/dist-client/pages/checklist-database/checklist-database.js.map +1 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.d.ts +2 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js +242 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-item-popup.js.map +1 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.d.ts +55 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js +409 -0
- package/dist-client/pages/checklist-template/construction-checklist-template-list.js.map +1 -0
- package/dist-client/pages/project-checklist/project-checklist-management.d.ts +50 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js +910 -0
- package/dist-client/pages/project-checklist/project-checklist-management.js.map +1 -0
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +12 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/action-plan/action-plan-mutation.js +5 -6
- package/dist-server/service/action-plan/action-plan-mutation.js.map +1 -1
- package/dist-server/service/action-plan/action-plan-query.d.ts +2 -2
- package/dist-server/service/action-plan/action-plan-query.js +5 -11
- package/dist-server/service/action-plan/action-plan-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-mutation.js +3 -3
- package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-query.d.ts +2 -2
- package/dist-server/service/building-inspection/building-inspection-query.js +19 -22
- package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection-type.d.ts +1 -0
- package/dist-server/service/building-inspection/building-inspection-type.js +4 -0
- package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
- package/dist-server/service/building-inspection/building-inspection.js +14 -1
- package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
- package/dist-server/service/checklist-template/checklist-template-query.d.ts +1 -1
- package/dist-server/service/checklist-template/checklist-template-query.js +2 -5
- package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.d.ts +1 -1
- package/dist-server/service/checklist-type/checklist-type-query.js +2 -5
- package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -1
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.d.ts +7 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js +107 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-mutation.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.d.ts +10 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js +62 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-query.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.d.ts +11 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js +43 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js.map +1 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts +18 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.js +80 -0
- package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map +1 -0
- package/dist-server/service/construction-checklist-template/index.d.ts +5 -0
- package/dist-server/service/construction-checklist-template/index.js +9 -0
- package/dist-server/service/construction-checklist-template/index.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.d.ts +6 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js +60 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.d.ts +9 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js +53 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-query.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.d.ts +17 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js +67 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item-type.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.d.ts +24 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js +113 -0
- package/dist-server/service/construction-checklist-template-item/construction-checklist-template-item.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/index.d.ts +5 -0
- package/dist-server/service/construction-checklist-template-item/index.js +9 -0
- package/dist-server/service/construction-checklist-template-item/index.js.map +1 -0
- package/dist-server/service/construction-checklist-template-item/spec-matching-service.d.ts +2 -0
- package/dist-server/service/construction-checklist-template-item/spec-matching-service.js +50 -0
- package/dist-server/service/construction-checklist-template-item/spec-matching-service.js.map +1 -0
- package/dist-server/service/index.d.ts +5 -1
- package/dist-server/service/index.js +16 -0
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/issue/issue-mutation.js +5 -6
- package/dist-server/service/issue/issue-mutation.js.map +1 -1
- package/dist-server/service/issue/issue-query.d.ts +2 -2
- package/dist-server/service/issue/issue-query.js +5 -11
- package/dist-server/service/issue/issue-query.js.map +1 -1
- package/dist-server/service/project-checklist/index.d.ts +5 -0
- package/dist-server/service/project-checklist/index.js +9 -0
- package/dist-server/service/project-checklist/index.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.d.ts +7 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.js +109 -0
- package/dist-server/service/project-checklist/project-checklist-mutation.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-query.d.ts +12 -0
- package/dist-server/service/project-checklist/project-checklist-query.js +76 -0
- package/dist-server/service/project-checklist/project-checklist-query.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist-type.d.ts +18 -0
- package/dist-server/service/project-checklist/project-checklist-type.js +69 -0
- package/dist-server/service/project-checklist/project-checklist-type.js.map +1 -0
- package/dist-server/service/project-checklist/project-checklist.d.ts +20 -0
- package/dist-server/service/project-checklist/project-checklist.js +90 -0
- package/dist-server/service/project-checklist/project-checklist.js.map +1 -0
- package/dist-server/service/project-checklist-item/index.d.ts +4 -0
- package/dist-server/service/project-checklist-item/index.js +9 -0
- package/dist-server/service/project-checklist-item/index.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.d.ts +2 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js +13 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-mutation.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.d.ts +5 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.js +34 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-query.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.d.ts +5 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.js +21 -0
- package/dist-server/service/project-checklist-item/project-checklist-item-type.js.map +1 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.d.ts +17 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.js +82 -0
- package/dist-server/service/project-checklist-item/project-checklist-item.js.map +1 -0
- package/dist-server/service/project-report/project-report-mutation.js +5 -6
- package/dist-server/service/project-report/project-report-mutation.js.map +1 -1
- package/dist-server/service/project-report/project-report-query.d.ts +2 -2
- package/dist-server/service/project-report/project-report-query.js +5 -11
- package/dist-server/service/project-report/project-report-query.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-mutation.js +5 -6
- package/dist-server/service/supervisor/supervisor-mutation.js.map +1 -1
- package/dist-server/service/supervisor/supervisor-query.d.ts +2 -2
- package/dist-server/service/supervisor/supervisor-query.js +5 -11
- package/dist-server/service/supervisor/supervisor-query.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/things-factory.config.js +7 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ConstructionChecklistTemplate } from './construction-checklist-template';
|
|
2
|
+
export declare class ConstructionChecklistTemplatePatch {
|
|
3
|
+
id?: string;
|
|
4
|
+
constructionTypeId?: string;
|
|
5
|
+
constructionDetailTypeId?: string;
|
|
6
|
+
cuFlag?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class ConstructionChecklistTemplateList {
|
|
9
|
+
items: ConstructionChecklistTemplate[];
|
|
10
|
+
total: number;
|
|
11
|
+
}
|
package/dist-server/service/construction-checklist-template/construction-checklist-template-type.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplateList = exports.ConstructionChecklistTemplatePatch = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const construction_checklist_template_1 = require("./construction-checklist-template");
|
|
7
|
+
let ConstructionChecklistTemplatePatch = class ConstructionChecklistTemplatePatch {
|
|
8
|
+
};
|
|
9
|
+
exports.ConstructionChecklistTemplatePatch = ConstructionChecklistTemplatePatch;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
12
|
+
tslib_1.__metadata("design:type", String)
|
|
13
|
+
], ConstructionChecklistTemplatePatch.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], ConstructionChecklistTemplatePatch.prototype, "constructionTypeId", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], ConstructionChecklistTemplatePatch.prototype, "constructionDetailTypeId", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], ConstructionChecklistTemplatePatch.prototype, "cuFlag", void 0);
|
|
26
|
+
exports.ConstructionChecklistTemplatePatch = ConstructionChecklistTemplatePatch = tslib_1.__decorate([
|
|
27
|
+
(0, type_graphql_1.InputType)()
|
|
28
|
+
], ConstructionChecklistTemplatePatch);
|
|
29
|
+
let ConstructionChecklistTemplateList = class ConstructionChecklistTemplateList {
|
|
30
|
+
};
|
|
31
|
+
exports.ConstructionChecklistTemplateList = ConstructionChecklistTemplateList;
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, type_graphql_1.Field)(type => [construction_checklist_template_1.ConstructionChecklistTemplate]),
|
|
34
|
+
tslib_1.__metadata("design:type", Array)
|
|
35
|
+
], ConstructionChecklistTemplateList.prototype, "items", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
38
|
+
tslib_1.__metadata("design:type", Number)
|
|
39
|
+
], ConstructionChecklistTemplateList.prototype, "total", void 0);
|
|
40
|
+
exports.ConstructionChecklistTemplateList = ConstructionChecklistTemplateList = tslib_1.__decorate([
|
|
41
|
+
(0, type_graphql_1.ObjectType)()
|
|
42
|
+
], ConstructionChecklistTemplateList);
|
|
43
|
+
//# sourceMappingURL=construction-checklist-template-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template-type.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template/construction-checklist-template-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,uFAAiF;AAG1E,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;CAY9C,CAAA;AAZY,gFAAkC;AAE7C;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8EACC;AAG3B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oFACO;AAGjC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACX;6CAXJ,kCAAkC;IAD9C,IAAA,wBAAS,GAAE;GACC,kCAAkC,CAY9C;AAGM,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;CAM7C,CAAA;AANY,8EAAiC;AAE5C;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,+DAA6B,CAAC,CAAC;;gEACT;AAGtC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;gEACN;4CALF,iCAAiC;IAD7C,IAAA,yBAAU,GAAE;GACA,iCAAiC,CAM7C","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ConstructionChecklistTemplate } from './construction-checklist-template'\n\n@InputType()\nexport class ConstructionChecklistTemplatePatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n constructionTypeId?: string\n\n @Field({ nullable: true })\n constructionDetailTypeId?: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class ConstructionChecklistTemplateList {\n @Field(type => [ConstructionChecklistTemplate])\n items: ConstructionChecklistTemplate[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
package/dist-server/service/construction-checklist-template/construction-checklist-template.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { ConstructionChecklistTemplateItem } from '../construction-checklist-template-item/construction-checklist-template-item';
|
|
4
|
+
export declare class ConstructionChecklistTemplate {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
domain?: Domain;
|
|
7
|
+
domainId?: string;
|
|
8
|
+
constructionTypeId: string;
|
|
9
|
+
constructionDetailTypeId: string;
|
|
10
|
+
constructionChecklistTemplateItems?: ConstructionChecklistTemplateItem[];
|
|
11
|
+
createdAt?: Date;
|
|
12
|
+
updatedAt?: Date;
|
|
13
|
+
deletedAt?: Date;
|
|
14
|
+
creator?: User;
|
|
15
|
+
creatorId?: string;
|
|
16
|
+
updater?: User;
|
|
17
|
+
updaterId?: string;
|
|
18
|
+
}
|
package/dist-server/service/construction-checklist-template/construction-checklist-template.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplate = 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 construction_checklist_template_item_1 = require("../construction-checklist-template-item/construction-checklist-template-item");
|
|
10
|
+
let ConstructionChecklistTemplate = class ConstructionChecklistTemplate {
|
|
11
|
+
};
|
|
12
|
+
exports.ConstructionChecklistTemplate = ConstructionChecklistTemplate;
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
15
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], ConstructionChecklistTemplate.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
|
+
], ConstructionChecklistTemplate.prototype, "domain", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.RelationId)((t) => t.domain),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], ConstructionChecklistTemplate.prototype, "domainId", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '공종 ID (construction_types FK)' }),
|
|
29
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
|
+
], ConstructionChecklistTemplate.prototype, "constructionTypeId", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '세부공종 ID (construction_detail_types FK)' }),
|
|
34
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
|
+
], ConstructionChecklistTemplate.prototype, "constructionDetailTypeId", void 0);
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, type_graphql_1.Field)(() => [construction_checklist_template_item_1.ConstructionChecklistTemplateItem], { nullable: true }),
|
|
39
|
+
(0, typeorm_1.OneToMany)(() => construction_checklist_template_item_1.ConstructionChecklistTemplateItem, item => item.constructionChecklistTemplate),
|
|
40
|
+
tslib_1.__metadata("design:type", Array)
|
|
41
|
+
], ConstructionChecklistTemplate.prototype, "constructionChecklistTemplateItems", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
44
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
+
tslib_1.__metadata("design:type", Date)
|
|
46
|
+
], ConstructionChecklistTemplate.prototype, "createdAt", void 0);
|
|
47
|
+
tslib_1.__decorate([
|
|
48
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
49
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
50
|
+
tslib_1.__metadata("design:type", Date)
|
|
51
|
+
], ConstructionChecklistTemplate.prototype, "updatedAt", void 0);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
54
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
|
+
tslib_1.__metadata("design:type", Date)
|
|
56
|
+
], ConstructionChecklistTemplate.prototype, "deletedAt", void 0);
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
59
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
60
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
61
|
+
], ConstructionChecklistTemplate.prototype, "creator", void 0);
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
(0, typeorm_1.RelationId)((t) => t.creator),
|
|
64
|
+
tslib_1.__metadata("design:type", String)
|
|
65
|
+
], ConstructionChecklistTemplate.prototype, "creatorId", void 0);
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
68
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
69
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
70
|
+
], ConstructionChecklistTemplate.prototype, "updater", void 0);
|
|
71
|
+
tslib_1.__decorate([
|
|
72
|
+
(0, typeorm_1.RelationId)((t) => t.updater),
|
|
73
|
+
tslib_1.__metadata("design:type", String)
|
|
74
|
+
], ConstructionChecklistTemplate.prototype, "updaterId", void 0);
|
|
75
|
+
exports.ConstructionChecklistTemplate = ConstructionChecklistTemplate = tslib_1.__decorate([
|
|
76
|
+
(0, typeorm_1.Entity)({ comment: '공종 기반 체크리스트 템플릿' }),
|
|
77
|
+
(0, typeorm_1.Index)('ix_construction_checklist_template_0', (t) => [t.domain, t.constructionTypeId, t.constructionDetailTypeId], { unique: true, where: '"deleted_at" IS NULL' }),
|
|
78
|
+
(0, type_graphql_1.ObjectType)()
|
|
79
|
+
], ConstructionChecklistTemplate);
|
|
80
|
+
//# sourceMappingURL=construction-checklist-template.js.map
|
package/dist-server/service/construction-checklist-template/construction-checklist-template.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template/construction-checklist-template.ts"],"names":[],"mappings":";;;;AAAA,qCAWgB;AAChB,+CAAoD;AAEpD,iDAA8C;AAC9C,yDAAgD;AAChD,uIAAgI;AASzH,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;CAoDzC,CAAA;AApDY,sEAA6B;AAG/B;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;yDACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;6DAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,CAAgC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;;+DAC1C;AAIjB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,+BAA+B,EAAE,CAAC;IACrE,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;yEACD;AAI1B;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,K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,gBAAI;8DAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,CAAgC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;;gEAC1C;wCAnDP,6BAA6B;IAPzC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;IACtC,IAAA,eAAK,EACJ,sCAAsC,EACtC,CAAC,CAAgC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,kBAAkB,EAAE,CAAC,CAAC,wBAAwB,CAAC,EAClG,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAChD;IACA,IAAA,yBAAU,GAAE;GACA,6BAA6B,CAoDzC","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ConstructionChecklistTemplateItem } from '../construction-checklist-template-item/construction-checklist-template-item'\n\n@Entity({ comment: '공종 기반 체크리스트 템플릿' })\n@Index(\n 'ix_construction_checklist_template_0',\n (t: ConstructionChecklistTemplate) => [t.domain, t.constructionTypeId, t.constructionDetailTypeId],\n { unique: true, where: '\"deleted_at\" IS NULL' }\n)\n@ObjectType()\nexport class ConstructionChecklistTemplate {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((t: ConstructionChecklistTemplate) => t.domain)\n domainId?: string\n\n @Column({ nullable: false, comment: '공종 ID (construction_types FK)' })\n @Field({ nullable: false })\n constructionTypeId: string\n\n @Column({ nullable: false, comment: '세부공종 ID (construction_detail_types FK)' })\n @Field({ nullable: false })\n constructionDetailTypeId: string\n\n @Field(() => [ConstructionChecklistTemplateItem], { nullable: true })\n @OneToMany(\n () => ConstructionChecklistTemplateItem,\n item => item.constructionChecklistTemplate\n )\n constructionChecklistTemplateItems?: ConstructionChecklistTemplateItem[]\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((t: ConstructionChecklistTemplate) => t.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((t: ConstructionChecklistTemplate) => t.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ConstructionChecklistTemplate } from './construction-checklist-template';
|
|
2
|
+
import { ConstructionChecklistTemplateQuery } from './construction-checklist-template-query';
|
|
3
|
+
import { ConstructionChecklistTemplateMutation } from './construction-checklist-template-mutation';
|
|
4
|
+
export declare const entities: (typeof ConstructionChecklistTemplate)[];
|
|
5
|
+
export declare const resolvers: (typeof ConstructionChecklistTemplateQuery | typeof ConstructionChecklistTemplateMutation)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const construction_checklist_template_1 = require("./construction-checklist-template");
|
|
5
|
+
const construction_checklist_template_query_1 = require("./construction-checklist-template-query");
|
|
6
|
+
const construction_checklist_template_mutation_1 = require("./construction-checklist-template-mutation");
|
|
7
|
+
exports.entities = [construction_checklist_template_1.ConstructionChecklistTemplate];
|
|
8
|
+
exports.resolvers = [construction_checklist_template_query_1.ConstructionChecklistTemplateQuery, construction_checklist_template_mutation_1.ConstructionChecklistTemplateMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template/index.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AACjF,mGAA4F;AAC5F,yGAAkG;AAErF,QAAA,QAAQ,GAAG,CAAC,+DAA6B,CAAC,CAAA;AAC1C,QAAA,SAAS,GAAG,CAAC,0EAAkC,EAAE,gFAAqC,CAAC,CAAA","sourcesContent":["import { ConstructionChecklistTemplate } from './construction-checklist-template'\nimport { ConstructionChecklistTemplateQuery } from './construction-checklist-template-query'\nimport { ConstructionChecklistTemplateMutation } from './construction-checklist-template-mutation'\n\nexport const entities = [ConstructionChecklistTemplate]\nexport const resolvers = [ConstructionChecklistTemplateQuery, ConstructionChecklistTemplateMutation]\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConstructionChecklistTemplateItem } from './construction-checklist-template-item';
|
|
2
|
+
import { ConstructionChecklistTemplateItemPatch } from './construction-checklist-template-item-type';
|
|
3
|
+
export declare class ConstructionChecklistTemplateItemMutation {
|
|
4
|
+
updateMultipleConstructionChecklistTemplateItems(constructionChecklistTemplateId: string, patches: ConstructionChecklistTemplateItemPatch[], context: ResolverContext): Promise<ConstructionChecklistTemplateItem[]>;
|
|
5
|
+
deleteConstructionChecklistTemplateItems(ids: string[], context: ResolverContext): Promise<boolean>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplateItemMutation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const typeorm_1 = require("typeorm");
|
|
7
|
+
const construction_checklist_template_item_1 = require("./construction-checklist-template-item");
|
|
8
|
+
const construction_checklist_template_item_type_1 = require("./construction-checklist-template-item-type");
|
|
9
|
+
const construction_checklist_template_1 = require("../construction-checklist-template/construction-checklist-template");
|
|
10
|
+
const checklist_template_item_1 = require("../checklist-template-item/checklist-template-item");
|
|
11
|
+
const spec_matching_service_1 = require("./spec-matching-service");
|
|
12
|
+
let ConstructionChecklistTemplateItemMutation = class ConstructionChecklistTemplateItemMutation {
|
|
13
|
+
async updateMultipleConstructionChecklistTemplateItems(constructionChecklistTemplateId, patches, context) {
|
|
14
|
+
var _a, _b, _c, _d, _e;
|
|
15
|
+
const { user, tx } = context.state;
|
|
16
|
+
const itemRepo = tx.getRepository(construction_checklist_template_item_1.ConstructionChecklistTemplateItem);
|
|
17
|
+
const template = await tx.getRepository(construction_checklist_template_1.ConstructionChecklistTemplate).findOneBy({ id: constructionChecklistTemplateId });
|
|
18
|
+
// 기존 아이템 삭제
|
|
19
|
+
await itemRepo.delete({ constructionChecklistTemplate: { id: constructionChecklistTemplateId } });
|
|
20
|
+
// 새로 저장
|
|
21
|
+
let results = [];
|
|
22
|
+
for (let i = 0; i < patches.length; i++) {
|
|
23
|
+
const patch = patches[i];
|
|
24
|
+
const result = await itemRepo.save(Object.assign(Object.assign({}, patch), { recommendation1: ((_a = patch.recommendation1) === null || _a === void 0 ? void 0 : _a.trim()) || null, recommendation2: ((_b = patch.recommendation2) === null || _b === void 0 ? void 0 : _b.trim()) || null, recommendation3: ((_c = patch.recommendation3) === null || _c === void 0 ? void 0 : _c.trim()) || null, recommendation4: ((_d = patch.recommendation4) === null || _d === void 0 ? void 0 : _d.trim()) || null, recommendation5: ((_e = patch.recommendation5) === null || _e === void 0 ? void 0 : _e.trim()) || null, inspctionCriteria: '', criteriaRequestStatus: checklist_template_item_1.CriteriaRequestStatus.REQUEST, sequence: i, constructionChecklistTemplate: template, creator: user, updater: user }));
|
|
25
|
+
results.push(result);
|
|
26
|
+
}
|
|
27
|
+
// 검사기준 AI 비동기 요청
|
|
28
|
+
(0, spec_matching_service_1.queueUpdateConstructionChecklistInspctionCriteria)(results.map(v => v.id));
|
|
29
|
+
return results;
|
|
30
|
+
}
|
|
31
|
+
async deleteConstructionChecklistTemplateItems(ids, context) {
|
|
32
|
+
const { tx } = context.state;
|
|
33
|
+
await tx.getRepository(construction_checklist_template_item_1.ConstructionChecklistTemplateItem).delete({ id: (0, typeorm_1.In)(ids) });
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.ConstructionChecklistTemplateItemMutation = ConstructionChecklistTemplateItemMutation;
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
40
|
+
(0, type_graphql_1.Mutation)(returns => [construction_checklist_template_item_1.ConstructionChecklistTemplateItem], { description: '공종 체크리스트 템플릿 아이템 일괄 저장' }),
|
|
41
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('constructionChecklistTemplateId')),
|
|
42
|
+
tslib_1.__param(1, (0, type_graphql_1.Arg)('patches', type => [construction_checklist_template_item_type_1.ConstructionChecklistTemplateItemPatch])),
|
|
43
|
+
tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
|
|
44
|
+
tslib_1.__metadata("design:type", Function),
|
|
45
|
+
tslib_1.__metadata("design:paramtypes", [String, Array, Object]),
|
|
46
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
47
|
+
], ConstructionChecklistTemplateItemMutation.prototype, "updateMultipleConstructionChecklistTemplateItems", null);
|
|
48
|
+
tslib_1.__decorate([
|
|
49
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
50
|
+
(0, type_graphql_1.Mutation)(returns => Boolean, { description: '공종 체크리스트 템플릿 아이템 삭제' }),
|
|
51
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
52
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
53
|
+
tslib_1.__metadata("design:type", Function),
|
|
54
|
+
tslib_1.__metadata("design:paramtypes", [Array, Object]),
|
|
55
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
56
|
+
], ConstructionChecklistTemplateItemMutation.prototype, "deleteConstructionChecklistTemplateItems", null);
|
|
57
|
+
exports.ConstructionChecklistTemplateItemMutation = ConstructionChecklistTemplateItemMutation = tslib_1.__decorate([
|
|
58
|
+
(0, type_graphql_1.Resolver)(construction_checklist_template_item_1.ConstructionChecklistTemplateItem)
|
|
59
|
+
], ConstructionChecklistTemplateItemMutation);
|
|
60
|
+
//# sourceMappingURL=construction-checklist-template-item-mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template-item-mutation.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template-item/construction-checklist-template-item-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAC5B,iGAA0F;AAC1F,2GAAoG;AACpG,wHAAkH;AAClH,gGAA0F;AAC1F,mEAA2F;AAGpF,IAAM,yCAAyC,GAA/C,MAAM,yCAAyC;IAG9C,AAAN,KAAK,CAAC,gDAAgD,CACZ,+BAAuC,EACb,OAAiD,EAC5G,OAAwB;;QAE/B,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAElC,MAAM,QAAQ,GAAG,EAAE,CAAC,aAAa,CAAC,wEAAiC,CAAC,CAAA;QACpE,MAAM,QAAQ,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,+DAA6B,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,+BAA+B,EAAE,CAAC,CAAA;QAEzH,YAAY;QACZ,MAAM,QAAQ,CAAC,MAAM,CAAC,EAAE,6BAA6B,EAAE,EAAE,EAAE,EAAE,+BAA+B,EAAE,EAAE,CAAC,CAAA;QAEjG,QAAQ;QACR,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACxC,MAAM,KAAK,GAAG,OAAO,CAAC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AAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC,wEAAiC,CAAC,EAAE,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IAEjG,mBAAA,IAAA,kBAAG,EAAC,iCAAiC,CAAC,CAAA;IACtC,mBAAA,IAAA,kBAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,kFAAsC,CAAC,CAAC,CAAA;IAChE,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;iHAmCP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;IAElE,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAC5B,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;yGAOP;oDAtDU,yCAAyC;IADrD,IAAA,uBAAQ,EAAC,wEAAiC,CAAC;GAC/B,yCAAyC,CAuDrD","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\nimport { ConstructionChecklistTemplateItem } from './construction-checklist-template-item'\nimport { ConstructionChecklistTemplateItemPatch } from './construction-checklist-template-item-type'\nimport { ConstructionChecklistTemplate } from '../construction-checklist-template/construction-checklist-template'\nimport { CriteriaRequestStatus } from '../checklist-template-item/checklist-template-item'\nimport { queueUpdateConstructionChecklistInspctionCriteria } from './spec-matching-service'\n\n@Resolver(ConstructionChecklistTemplateItem)\nexport class ConstructionChecklistTemplateItemMutation {\n @Directive('@transaction')\n @Mutation(returns => [ConstructionChecklistTemplateItem], { description: '공종 체크리스트 템플릿 아이템 일괄 저장' })\n async updateMultipleConstructionChecklistTemplateItems(\n @Arg('constructionChecklistTemplateId') constructionChecklistTemplateId: string,\n @Arg('patches', type => [ConstructionChecklistTemplateItemPatch]) patches: ConstructionChecklistTemplateItemPatch[],\n @Ctx() context: ResolverContext\n ): Promise<ConstructionChecklistTemplateItem[]> {\n const { user, tx } = context.state\n\n const itemRepo = tx.getRepository(ConstructionChecklistTemplateItem)\n const template = await tx.getRepository(ConstructionChecklistTemplate).findOneBy({ id: constructionChecklistTemplateId })\n\n // 기존 아이템 삭제\n await itemRepo.delete({ constructionChecklistTemplate: { id: constructionChecklistTemplateId } })\n\n // 새로 저장\n let results = []\n for (let i = 0; i < patches.length; i++) {\n const patch = patches[i]\n const result = await itemRepo.save({\n ...patch,\n recommendation1: patch.recommendation1?.trim() || null,\n recommendation2: patch.recommendation2?.trim() || null,\n recommendation3: patch.recommendation3?.trim() || null,\n recommendation4: patch.recommendation4?.trim() || null,\n recommendation5: patch.recommendation5?.trim() || null,\n inspctionCriteria: '',\n criteriaRequestStatus: CriteriaRequestStatus.REQUEST,\n sequence: i,\n constructionChecklistTemplate: template,\n creator: user,\n updater: user\n })\n results.push(result)\n }\n\n // 검사기준 AI 비동기 요청\n queueUpdateConstructionChecklistInspctionCriteria(results.map(v => v.id))\n\n return results\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: '공종 체크리스트 템플릿 아이템 삭제' })\n async deleteConstructionChecklistTemplateItems(\n @Arg('ids', type => [String]) ids: string[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { tx } = context.state\n\n await tx.getRepository(ConstructionChecklistTemplateItem).delete({ id: In(ids) })\n\n return true\n }\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ListParam } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { ConstructionChecklistTemplateItem } from './construction-checklist-template-item';
|
|
4
|
+
import { ConstructionChecklistTemplateItemList } from './construction-checklist-template-item-type';
|
|
5
|
+
export declare class ConstructionChecklistTemplateItemQuery {
|
|
6
|
+
constructionChecklistTemplateItems(params: ListParam, context: ResolverContext): Promise<ConstructionChecklistTemplateItemList>;
|
|
7
|
+
updater(item: ConstructionChecklistTemplateItem): Promise<User>;
|
|
8
|
+
creator(item: ConstructionChecklistTemplateItem): Promise<User>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplateItemQuery = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const shell_1 = require("@things-factory/shell");
|
|
7
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
|
+
const construction_checklist_template_item_1 = require("./construction-checklist-template-item");
|
|
9
|
+
const construction_checklist_template_item_type_1 = require("./construction-checklist-template-item-type");
|
|
10
|
+
let ConstructionChecklistTemplateItemQuery = class ConstructionChecklistTemplateItemQuery {
|
|
11
|
+
async constructionChecklistTemplateItems(params, context) {
|
|
12
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
13
|
+
params,
|
|
14
|
+
repository: await (0, shell_1.getRepository)(construction_checklist_template_item_1.ConstructionChecklistTemplateItem),
|
|
15
|
+
searchables: ['name', 'mainType']
|
|
16
|
+
});
|
|
17
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
18
|
+
return { items, total };
|
|
19
|
+
}
|
|
20
|
+
async updater(item) {
|
|
21
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: item.updaterId });
|
|
22
|
+
}
|
|
23
|
+
async creator(item) {
|
|
24
|
+
return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: item.creatorId });
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.ConstructionChecklistTemplateItemQuery = ConstructionChecklistTemplateItemQuery;
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, type_graphql_1.Query)(returns => construction_checklist_template_item_type_1.ConstructionChecklistTemplateItemList, { description: '공종 체크리스트 템플릿 아이템 목록' }),
|
|
30
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)()),
|
|
31
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
32
|
+
tslib_1.__metadata("design:type", Function),
|
|
33
|
+
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
34
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
35
|
+
], ConstructionChecklistTemplateItemQuery.prototype, "constructionChecklistTemplateItems", null);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
38
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
39
|
+
tslib_1.__metadata("design:type", Function),
|
|
40
|
+
tslib_1.__metadata("design:paramtypes", [construction_checklist_template_item_1.ConstructionChecklistTemplateItem]),
|
|
41
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
42
|
+
], ConstructionChecklistTemplateItemQuery.prototype, "updater", null);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
45
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
46
|
+
tslib_1.__metadata("design:type", Function),
|
|
47
|
+
tslib_1.__metadata("design:paramtypes", [construction_checklist_template_item_1.ConstructionChecklistTemplateItem]),
|
|
48
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
49
|
+
], ConstructionChecklistTemplateItemQuery.prototype, "creator", null);
|
|
50
|
+
exports.ConstructionChecklistTemplateItemQuery = ConstructionChecklistTemplateItemQuery = tslib_1.__decorate([
|
|
51
|
+
(0, type_graphql_1.Resolver)(construction_checklist_template_item_1.ConstructionChecklistTemplateItem)
|
|
52
|
+
], ConstructionChecklistTemplateItemQuery);
|
|
53
|
+
//# sourceMappingURL=construction-checklist-template-item-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template-item-query.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template-item/construction-checklist-template-item-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8E;AAC9E,iDAA+F;AAC/F,yDAAgD;AAChD,iGAA0F;AAC1F,2GAAmG;AAG5F,IAAM,sCAAsC,GAA5C,MAAM,sCAAsC;IAE3C,AAAN,KAAK,CAAC,kCAAkC,CAC9B,MAAiB,EAClB,OAAwB;QAE/B,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,wEAAiC,CAAC;YAClE,WAAW,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;SAClC,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,OAAO,CAAS,IAAuC;QAC3D,OAAO,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAA;IACpE,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAS,IAAuC;QAC3D,OAAO,MAAM,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAA;IACpE,CAAC;CACF,CAAA;AA1BY,wFAAsC;AAE3C;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,iFAAqC,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;IAE7F,mBAAA,IAAA,mBAAI,GAAE,CAAA;IACN,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CADU,iBAAS;;gGAY1B;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAO,wEAAiC;;qEAE5D;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAO,wEAAiC;;qEAE5D;iDAzBU,sCAAsC;IADlD,IAAA,uBAAQ,EAAC,wEAAiC,CAAC;GAC/B,sCAAsC,CA0BlD","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Ctx } from 'type-graphql'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ConstructionChecklistTemplateItem } from './construction-checklist-template-item'\nimport { ConstructionChecklistTemplateItemList } from './construction-checklist-template-item-type'\n\n@Resolver(ConstructionChecklistTemplateItem)\nexport class ConstructionChecklistTemplateItemQuery {\n @Query(returns => ConstructionChecklistTemplateItemList, { description: '공종 체크리스트 템플릿 아이템 목록' })\n async constructionChecklistTemplateItems(\n @Args() params: ListParam,\n @Ctx() context: ResolverContext\n ): Promise<ConstructionChecklistTemplateItemList> {\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(ConstructionChecklistTemplateItem),\n searchables: ['name', 'mainType']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => User)\n async updater(@Root() item: ConstructionChecklistTemplateItem): Promise<User> {\n return await getRepository(User).findOneBy({ id: item.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() item: ConstructionChecklistTemplateItem): Promise<User> {\n return await getRepository(User).findOneBy({ id: item.creatorId })\n }\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConstructionChecklistTemplateItem } from './construction-checklist-template-item';
|
|
2
|
+
export declare class ConstructionChecklistTemplateItemPatch {
|
|
3
|
+
id?: string;
|
|
4
|
+
mainType?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
recommendation1?: string;
|
|
7
|
+
recommendation2?: string;
|
|
8
|
+
recommendation3?: string;
|
|
9
|
+
recommendation4?: string;
|
|
10
|
+
recommendation5?: string;
|
|
11
|
+
inspctionCriteria?: string;
|
|
12
|
+
sequence?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare class ConstructionChecklistTemplateItemList {
|
|
15
|
+
items: ConstructionChecklistTemplateItem[];
|
|
16
|
+
total: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplateItemList = exports.ConstructionChecklistTemplateItemPatch = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const construction_checklist_template_item_1 = require("./construction-checklist-template-item");
|
|
7
|
+
let ConstructionChecklistTemplateItemPatch = class ConstructionChecklistTemplateItemPatch {
|
|
8
|
+
};
|
|
9
|
+
exports.ConstructionChecklistTemplateItemPatch = ConstructionChecklistTemplateItemPatch;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
12
|
+
tslib_1.__metadata("design:type", String)
|
|
13
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "mainType", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "name", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "recommendation1", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
28
|
+
tslib_1.__metadata("design:type", String)
|
|
29
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "recommendation2", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
32
|
+
tslib_1.__metadata("design:type", String)
|
|
33
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "recommendation3", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "recommendation4", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
40
|
+
tslib_1.__metadata("design:type", String)
|
|
41
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "recommendation5", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
45
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "inspctionCriteria", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
48
|
+
tslib_1.__metadata("design:type", Number)
|
|
49
|
+
], ConstructionChecklistTemplateItemPatch.prototype, "sequence", void 0);
|
|
50
|
+
exports.ConstructionChecklistTemplateItemPatch = ConstructionChecklistTemplateItemPatch = tslib_1.__decorate([
|
|
51
|
+
(0, type_graphql_1.InputType)()
|
|
52
|
+
], ConstructionChecklistTemplateItemPatch);
|
|
53
|
+
let ConstructionChecklistTemplateItemList = class ConstructionChecklistTemplateItemList {
|
|
54
|
+
};
|
|
55
|
+
exports.ConstructionChecklistTemplateItemList = ConstructionChecklistTemplateItemList;
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
(0, type_graphql_1.Field)(type => [construction_checklist_template_item_1.ConstructionChecklistTemplateItem]),
|
|
58
|
+
tslib_1.__metadata("design:type", Array)
|
|
59
|
+
], ConstructionChecklistTemplateItemList.prototype, "items", void 0);
|
|
60
|
+
tslib_1.__decorate([
|
|
61
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
62
|
+
tslib_1.__metadata("design:type", Number)
|
|
63
|
+
], ConstructionChecklistTemplateItemList.prototype, "total", void 0);
|
|
64
|
+
exports.ConstructionChecklistTemplateItemList = ConstructionChecklistTemplateItemList = tslib_1.__decorate([
|
|
65
|
+
(0, type_graphql_1.ObjectType)()
|
|
66
|
+
], ConstructionChecklistTemplateItemList);
|
|
67
|
+
//# sourceMappingURL=construction-checklist-template-item-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template-item-type.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template-item/construction-checklist-template-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,iGAA0F;AAGnF,IAAM,sCAAsC,GAA5C,MAAM,sCAAsC;CA8BlD,CAAA;AA9BY,wFAAsC;AAEjD;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wEACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iFACA;AAG1B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wEACtB;iDA7BN,sCAAsC;IADlD,IAAA,wBAAS,GAAE;GACC,sCAAsC,CA8BlD;AAGM,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;CAMjD,CAAA;AANY,sFAAqC;AAEhD;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,wEAAiC,CAAC,CAAC;;oEACT;AAG1C;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;oEACN;gDALF,qCAAqC;IADjD,IAAA,yBAAU,GAAE;GACA,qCAAqC,CAMjD","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ConstructionChecklistTemplateItem } from './construction-checklist-template-item'\n\n@InputType()\nexport class ConstructionChecklistTemplateItemPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n mainType?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n recommendation1?: string\n\n @Field({ nullable: true })\n recommendation2?: string\n\n @Field({ nullable: true })\n recommendation3?: string\n\n @Field({ nullable: true })\n recommendation4?: string\n\n @Field({ nullable: true })\n recommendation5?: string\n\n @Field({ nullable: true })\n inspctionCriteria?: string\n\n @Field(type => Int, { nullable: true })\n sequence?: number\n}\n\n@ObjectType()\nexport class ConstructionChecklistTemplateItemList {\n @Field(type => [ConstructionChecklistTemplateItem])\n items: ConstructionChecklistTemplateItem[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { User } from '@things-factory/auth-base';
|
|
2
|
+
import { ConstructionChecklistTemplate } from '../construction-checklist-template/construction-checklist-template';
|
|
3
|
+
import { CriteriaRequestStatus } from '../checklist-template-item/checklist-template-item';
|
|
4
|
+
export declare class ConstructionChecklistTemplateItem {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
mainType?: string;
|
|
7
|
+
name: string;
|
|
8
|
+
recommendation1?: string;
|
|
9
|
+
recommendation2?: string;
|
|
10
|
+
recommendation3?: string;
|
|
11
|
+
recommendation4?: string;
|
|
12
|
+
recommendation5?: string;
|
|
13
|
+
inspctionCriteria?: string;
|
|
14
|
+
criteriaRequestStatus?: CriteriaRequestStatus;
|
|
15
|
+
sequence?: number;
|
|
16
|
+
constructionChecklistTemplate?: ConstructionChecklistTemplate;
|
|
17
|
+
constructionChecklistTemplateId?: string;
|
|
18
|
+
createdAt?: Date;
|
|
19
|
+
updatedAt?: Date;
|
|
20
|
+
creator?: User;
|
|
21
|
+
creatorId?: string;
|
|
22
|
+
updater?: User;
|
|
23
|
+
updaterId?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstructionChecklistTemplateItem = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const type_graphql_1 = require("type-graphql");
|
|
7
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
|
+
const construction_checklist_template_1 = require("../construction-checklist-template/construction-checklist-template");
|
|
9
|
+
const checklist_template_item_1 = require("../checklist-template-item/checklist-template-item");
|
|
10
|
+
let ConstructionChecklistTemplateItem = class ConstructionChecklistTemplateItem {
|
|
11
|
+
};
|
|
12
|
+
exports.ConstructionChecklistTemplateItem = ConstructionChecklistTemplateItem;
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
15
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], ConstructionChecklistTemplateItem.prototype, "id", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '구분' }),
|
|
20
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
21
|
+
tslib_1.__metadata("design:type", String)
|
|
22
|
+
], ConstructionChecklistTemplateItem.prototype, "mainType", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '검사항목' }),
|
|
25
|
+
(0, type_graphql_1.Field)({ nullable: false }),
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
27
|
+
], ConstructionChecklistTemplateItem.prototype, "name", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '추천 검사 항목 1' }),
|
|
30
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
31
|
+
tslib_1.__metadata("design:type", String)
|
|
32
|
+
], ConstructionChecklistTemplateItem.prototype, "recommendation1", void 0);
|
|
33
|
+
tslib_1.__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '추천 검사 항목 2' }),
|
|
35
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
|
+
], ConstructionChecklistTemplateItem.prototype, "recommendation2", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '추천 검사 항목 3' }),
|
|
40
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
41
|
+
tslib_1.__metadata("design:type", String)
|
|
42
|
+
], ConstructionChecklistTemplateItem.prototype, "recommendation3", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '추천 검사 항목 4' }),
|
|
45
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
46
|
+
tslib_1.__metadata("design:type", String)
|
|
47
|
+
], ConstructionChecklistTemplateItem.prototype, "recommendation4", void 0);
|
|
48
|
+
tslib_1.__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '추천 검사 항목 5' }),
|
|
50
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
51
|
+
tslib_1.__metadata("design:type", String)
|
|
52
|
+
], ConstructionChecklistTemplateItem.prototype, "recommendation5", void 0);
|
|
53
|
+
tslib_1.__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검사 기준 (AI)' }),
|
|
55
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
56
|
+
tslib_1.__metadata("design:type", String)
|
|
57
|
+
], ConstructionChecklistTemplateItem.prototype, "inspctionCriteria", void 0);
|
|
58
|
+
tslib_1.__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검사 기준 API 요청 상태' }),
|
|
60
|
+
(0, type_graphql_1.Field)(type => checklist_template_item_1.CriteriaRequestStatus, { nullable: true }),
|
|
61
|
+
tslib_1.__metadata("design:type", String)
|
|
62
|
+
], ConstructionChecklistTemplateItem.prototype, "criteriaRequestStatus", void 0);
|
|
63
|
+
tslib_1.__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '시퀀스' }),
|
|
65
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
66
|
+
tslib_1.__metadata("design:type", Number)
|
|
67
|
+
], ConstructionChecklistTemplateItem.prototype, "sequence", void 0);
|
|
68
|
+
tslib_1.__decorate([
|
|
69
|
+
(0, typeorm_1.ManyToOne)(type => construction_checklist_template_1.ConstructionChecklistTemplate),
|
|
70
|
+
(0, type_graphql_1.Field)(type => construction_checklist_template_1.ConstructionChecklistTemplate, { nullable: true }),
|
|
71
|
+
tslib_1.__metadata("design:type", construction_checklist_template_1.ConstructionChecklistTemplate)
|
|
72
|
+
], ConstructionChecklistTemplateItem.prototype, "constructionChecklistTemplate", void 0);
|
|
73
|
+
tslib_1.__decorate([
|
|
74
|
+
(0, typeorm_1.RelationId)((item) => item.constructionChecklistTemplate),
|
|
75
|
+
tslib_1.__metadata("design:type", String)
|
|
76
|
+
], ConstructionChecklistTemplateItem.prototype, "constructionChecklistTemplateId", void 0);
|
|
77
|
+
tslib_1.__decorate([
|
|
78
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
79
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
80
|
+
tslib_1.__metadata("design:type", Date)
|
|
81
|
+
], ConstructionChecklistTemplateItem.prototype, "createdAt", void 0);
|
|
82
|
+
tslib_1.__decorate([
|
|
83
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
84
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
85
|
+
tslib_1.__metadata("design:type", Date)
|
|
86
|
+
], ConstructionChecklistTemplateItem.prototype, "updatedAt", 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
|
+
], ConstructionChecklistTemplateItem.prototype, "creator", void 0);
|
|
92
|
+
tslib_1.__decorate([
|
|
93
|
+
(0, typeorm_1.RelationId)((item) => item.creator),
|
|
94
|
+
tslib_1.__metadata("design:type", String)
|
|
95
|
+
], ConstructionChecklistTemplateItem.prototype, "creatorId", void 0);
|
|
96
|
+
tslib_1.__decorate([
|
|
97
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
98
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
99
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
100
|
+
], ConstructionChecklistTemplateItem.prototype, "updater", void 0);
|
|
101
|
+
tslib_1.__decorate([
|
|
102
|
+
(0, typeorm_1.RelationId)((item) => item.updater),
|
|
103
|
+
tslib_1.__metadata("design:type", String)
|
|
104
|
+
], ConstructionChecklistTemplateItem.prototype, "updaterId", void 0);
|
|
105
|
+
exports.ConstructionChecklistTemplateItem = ConstructionChecklistTemplateItem = tslib_1.__decorate([
|
|
106
|
+
(0, typeorm_1.Entity)({ comment: '공종 기반 체크리스트 템플릿 아이템' }),
|
|
107
|
+
(0, typeorm_1.Index)('ix_construction_checklist_template_item_0', (item) => [
|
|
108
|
+
item.constructionChecklistTemplate,
|
|
109
|
+
item.sequence
|
|
110
|
+
]),
|
|
111
|
+
(0, type_graphql_1.ObjectType)()
|
|
112
|
+
], ConstructionChecklistTemplateItem);
|
|
113
|
+
//# sourceMappingURL=construction-checklist-template-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construction-checklist-template-item.js","sourceRoot":"","sources":["../../../server/service/construction-checklist-template-item/construction-checklist-template-item.ts"],"names":[],"mappings":";;;;AAAA,qCASgB;AAChB,+CAA2E;AAE3E,yDAAgD;AAChD,wHAAkH;AAClH,gGAA0F;AAQnF,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;CAyE7C,CAAA;AAzEY,8EAAiC;AAGnC;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;6DACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,I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CAAC,OAAO,CAAC;;oEACpD;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;kEAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,IAAuC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;;oEACpD;4CAxEP,iCAAiC;IAN7C,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC;IAC1C,IAAA,eAAK,EAAC,2CAA2C,EAAE,CAAC,IAAuC,EAAE,EAAE,CAAC;QAC/F,IAAI,CAAC,6BAA6B;QAClC,IAAI,CAAC,QAAQ;KACd,CAAC;IACD,IAAA,yBAAU,GAAE;GACA,iCAAiC,CAyE7C","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID, Int, registerEnumType } from 'type-graphql'\n\nimport { User } from '@things-factory/auth-base'\nimport { ConstructionChecklistTemplate } from '../construction-checklist-template/construction-checklist-template'\nimport { CriteriaRequestStatus } from '../checklist-template-item/checklist-template-item'\n\n@Entity({ comment: '공종 기반 체크리스트 템플릿 아이템' })\n@Index('ix_construction_checklist_template_item_0', (item: ConstructionChecklistTemplateItem) => [\n item.constructionChecklistTemplate,\n item.sequence\n])\n@ObjectType()\nexport class ConstructionChecklistTemplateItem {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, comment: '구분' })\n @Field({ nullable: true })\n mainType?: string\n\n @Column({ nullable: false, comment: '검사항목' })\n @Field({ nullable: false })\n name: string\n\n @Column({ nullable: true, comment: '추천 검사 항목 1' })\n @Field({ nullable: true })\n recommendation1?: string\n\n @Column({ nullable: true, comment: '추천 검사 항목 2' })\n @Field({ nullable: true })\n recommendation2?: string\n\n @Column({ nullable: true, comment: '추천 검사 항목 3' })\n @Field({ nullable: true })\n recommendation3?: string\n\n @Column({ nullable: true, comment: '추천 검사 항목 4' })\n @Field({ nullable: true })\n recommendation4?: string\n\n @Column({ nullable: true, comment: '추천 검사 항목 5' })\n @Field({ nullable: true })\n recommendation5?: string\n\n @Column({ nullable: true, comment: '검사 기준 (AI)' })\n @Field({ nullable: true })\n inspctionCriteria?: string\n\n @Column({ nullable: true, comment: '검사 기준 API 요청 상태' })\n @Field(type => CriteriaRequestStatus, { nullable: true })\n criteriaRequestStatus?: CriteriaRequestStatus\n\n @Column({ nullable: true, comment: '시퀀스' })\n @Field(type => Int, { nullable: true })\n sequence?: number\n\n @ManyToOne(type => ConstructionChecklistTemplate)\n @Field(type => ConstructionChecklistTemplate, { nullable: true })\n constructionChecklistTemplate?: ConstructionChecklistTemplate\n\n @RelationId((item: ConstructionChecklistTemplateItem) => item.constructionChecklistTemplate)\n constructionChecklistTemplateId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((item: ConstructionChecklistTemplateItem) => item.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((item: ConstructionChecklistTemplateItem) => item.updater)\n updaterId?: string\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ConstructionChecklistTemplateItem } from './construction-checklist-template-item';
|
|
2
|
+
import { ConstructionChecklistTemplateItemQuery } from './construction-checklist-template-item-query';
|
|
3
|
+
import { ConstructionChecklistTemplateItemMutation } from './construction-checklist-template-item-mutation';
|
|
4
|
+
export declare const entities: (typeof ConstructionChecklistTemplateItem)[];
|
|
5
|
+
export declare const resolvers: (typeof ConstructionChecklistTemplateItemQuery | typeof ConstructionChecklistTemplateItemMutation)[];
|