@dssp/supervision 1.0.0-alpha.39 → 1.0.0-alpha.40
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-list.js +5 -1
- package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/building-inspection/index.d.ts +3 -4
- package/dist-server/service/building-inspection/index.js +1 -2
- package/dist-server/service/building-inspection/index.js.map +1 -1
- package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
- package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +34 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js +157 -0
- package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
- package/dist-server/service/building-inspection-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js +21 -0
- package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
- package/dist-server/service/building-inspection-history/index.d.ts +6 -0
- package/dist-server/service/building-inspection-history/index.js +10 -0
- package/dist-server/service/building-inspection-history/index.js.map +1 -0
- package/dist-server/service/checklist/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist/event-subscriber.js +21 -0
- package/dist-server/service/checklist/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist/index.d.ts +1 -2
- package/dist-server/service/checklist/index.js +1 -2
- package/dist-server/service/checklist/index.js.map +1 -1
- package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
- package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
- package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
- package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
- package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
- package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
- package/dist-server/service/checklist-history/checklist-history.d.ts +50 -0
- package/dist-server/service/checklist-history/checklist-history.js +239 -0
- package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
- package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-history/index.d.ts +6 -0
- package/dist-server/service/checklist-history/index.js +10 -0
- package/dist-server/service/checklist-history/index.js.map +1 -0
- package/dist-server/service/checklist-item/index.d.ts +0 -1
- package/dist-server/service/checklist-item/index.js +1 -2
- package/dist-server/service/checklist-item/index.js.map +1 -1
- package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
- package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +25 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js +123 -0
- package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
- package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
- package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
- package/dist-server/service/checklist-item-history/index.d.ts +6 -0
- package/dist-server/service/checklist-item-history/index.js +10 -0
- package/dist-server/service/checklist-item-history/index.js.map +1 -0
- package/dist-server/service/index.d.ts +2 -1
- package/dist-server/service/index.js +15 -1
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistHistoryQuery = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
7
|
+
const shell_1 = require("@things-factory/shell");
|
|
8
|
+
const checklist_history_1 = require("./checklist-history");
|
|
9
|
+
const checklist_history_type_1 = require("./checklist-history-type");
|
|
10
|
+
let ChecklistHistoryQuery = class ChecklistHistoryQuery {
|
|
11
|
+
async checklistHistory(id, context) {
|
|
12
|
+
return await (0, shell_1.getRepository)(checklist_history_1.ChecklistHistory).findOne({
|
|
13
|
+
where: { originalId: id }
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
async checklistHistories(params, context) {
|
|
17
|
+
const queryBuilder = (0, shell_1.getQueryBuilderFromListParams)({
|
|
18
|
+
repository: (0, shell_1.getRepository)(checklist_history_1.ChecklistHistory),
|
|
19
|
+
params,
|
|
20
|
+
searchables: ['name']
|
|
21
|
+
});
|
|
22
|
+
const [items, total] = await queryBuilder.getManyAndCount();
|
|
23
|
+
return { items, total };
|
|
24
|
+
}
|
|
25
|
+
async timestamp(checklistHistory) {
|
|
26
|
+
return checklistHistory.loggedAt;
|
|
27
|
+
}
|
|
28
|
+
async updater(checklistHistory) {
|
|
29
|
+
return checklistHistory.updaterId && (await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistHistory.updaterId }));
|
|
30
|
+
}
|
|
31
|
+
async creator(checklistHistory) {
|
|
32
|
+
return checklistHistory.creatorId && (await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: checklistHistory.creatorId }));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.ChecklistHistoryQuery = ChecklistHistoryQuery;
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, type_graphql_1.Directive)('@privilege(category: "checklist-history", privilege: "query", domainOwnerGranted: true)'),
|
|
38
|
+
(0, type_graphql_1.Query)(returns => checklist_history_1.ChecklistHistory, { description: 'To fetch a ChecklistHistory' }),
|
|
39
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
|
|
40
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
41
|
+
tslib_1.__metadata("design:type", Function),
|
|
42
|
+
tslib_1.__metadata("design:paramtypes", [String, Object]),
|
|
43
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
44
|
+
], ChecklistHistoryQuery.prototype, "checklistHistory", null);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
(0, type_graphql_1.Query)(returns => checklist_history_type_1.ChecklistHistoryList, { description: 'To fetch multiple ChecklistHistories' }),
|
|
47
|
+
tslib_1.__param(0, (0, type_graphql_1.Args)(type => shell_1.ListParam)),
|
|
48
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
|
49
|
+
tslib_1.__metadata("design:type", Function),
|
|
50
|
+
tslib_1.__metadata("design:paramtypes", [shell_1.ListParam, Object]),
|
|
51
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
52
|
+
], ChecklistHistoryQuery.prototype, "checklistHistories", null);
|
|
53
|
+
tslib_1.__decorate([
|
|
54
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
55
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
56
|
+
tslib_1.__metadata("design:type", Function),
|
|
57
|
+
tslib_1.__metadata("design:paramtypes", [checklist_history_1.ChecklistHistory]),
|
|
58
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
59
|
+
], ChecklistHistoryQuery.prototype, "timestamp", null);
|
|
60
|
+
tslib_1.__decorate([
|
|
61
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
62
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
63
|
+
tslib_1.__metadata("design:type", Function),
|
|
64
|
+
tslib_1.__metadata("design:paramtypes", [checklist_history_1.ChecklistHistory]),
|
|
65
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
66
|
+
], ChecklistHistoryQuery.prototype, "updater", null);
|
|
67
|
+
tslib_1.__decorate([
|
|
68
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
69
|
+
tslib_1.__param(0, (0, type_graphql_1.Root)()),
|
|
70
|
+
tslib_1.__metadata("design:type", Function),
|
|
71
|
+
tslib_1.__metadata("design:paramtypes", [checklist_history_1.ChecklistHistory]),
|
|
72
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
73
|
+
], ChecklistHistoryQuery.prototype, "creator", null);
|
|
74
|
+
exports.ChecklistHistoryQuery = ChecklistHistoryQuery = tslib_1.__decorate([
|
|
75
|
+
(0, type_graphql_1.Resolver)(checklist_history_1.ChecklistHistory)
|
|
76
|
+
], ChecklistHistoryQuery);
|
|
77
|
+
//# sourceMappingURL=checklist-history-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-history-query.js","sourceRoot":"","sources":["../../../server/service/checklist-history/checklist-history-query.ts"],"names":[],"mappings":";;;;AAAA,+CAA8F;AAE9F,yDAAgD;AAChD,iDAA2G;AAE3G,2DAAsD;AACtD,qEAA+D;AAGxD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAG1B,AAAN,KAAK,CAAC,gBAAgB,CAAY,EAAU,EAAS,OAAwB;QAC3E,OAAO,MAAM,IAAA,qBAAa,EAAC,oCAAgB,CAAC,CAAC,OAAO,CAAC;YACnD,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;SAC1B,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,kBAAkB,CACG,MAAiB,EACnC,OAAwB;QAE/B,MAAM,YAAY,G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AAI,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,CAAC,CAAA;IACvB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CAD2B,iBAAS;;+DAY3C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACX,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAmB,oCAAgB;;sDAEzD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAmB,oCAAgB;;oDAEvD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAmB,oCAAgB;;oDAEvD;gCAtCU,qBAAqB;IADjC,IAAA,uBAAQ,EAAC,oCAAgB,CAAC;GACd,qBAAqB,CAuCjC","sourcesContent":["import { Arg, Args, Ctx, Directive, FieldResolver, Query, Resolver, Root } from 'type-graphql'\n\nimport { User } from '@things-factory/auth-base'\nimport { getQueryBuilderFromListParams, getRepository, ListParam, ScalarDate } from '@things-factory/shell'\n\nimport { ChecklistHistory } from './checklist-history'\nimport { ChecklistHistoryList } from './checklist-history-type'\n\n@Resolver(ChecklistHistory)\nexport class ChecklistHistoryQuery {\n @Directive('@privilege(category: \"checklist-history\", privilege: \"query\", domainOwnerGranted: true)')\n @Query(returns => ChecklistHistory, { description: 'To fetch a ChecklistHistory' })\n async checklistHistory(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<ChecklistHistory> {\n return await getRepository(ChecklistHistory).findOne({\n where: { originalId: id }\n })\n }\n\n @Query(returns => ChecklistHistoryList, { description: 'To fetch multiple ChecklistHistories' })\n async checklistHistories(\n @Args(type => ListParam) params: ListParam,\n @Ctx() context: ResolverContext\n ): Promise<ChecklistHistoryList> {\n const queryBuilder = getQueryBuilderFromListParams({\n repository: getRepository(ChecklistHistory),\n params,\n searchables: ['name']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => User)\n async timestamp(@Root() checklistHistory: ChecklistHistory): Promise<Date> {\n return checklistHistory.loggedAt\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklistHistory: ChecklistHistory): Promise<User> {\n return checklistHistory.updaterId && (await getRepository(User).findOneBy({ id: checklistHistory.updaterId }))\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklistHistory: ChecklistHistory): Promise<User> {\n return checklistHistory.creatorId && (await getRepository(User).findOneBy({ id: checklistHistory.creatorId }))\n }\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistHistoryList = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const checklist_history_1 = require("./checklist-history");
|
|
7
|
+
let ChecklistHistoryList = class ChecklistHistoryList {
|
|
8
|
+
};
|
|
9
|
+
exports.ChecklistHistoryList = ChecklistHistoryList;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, type_graphql_1.Field)(type => [checklist_history_1.ChecklistHistory]),
|
|
12
|
+
tslib_1.__metadata("design:type", Array)
|
|
13
|
+
], ChecklistHistoryList.prototype, "items", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
16
|
+
tslib_1.__metadata("design:type", Number)
|
|
17
|
+
], ChecklistHistoryList.prototype, "total", void 0);
|
|
18
|
+
exports.ChecklistHistoryList = ChecklistHistoryList = tslib_1.__decorate([
|
|
19
|
+
(0, type_graphql_1.ObjectType)()
|
|
20
|
+
], ChecklistHistoryList);
|
|
21
|
+
//# sourceMappingURL=checklist-history-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-history-type.js","sourceRoot":"","sources":["../../../server/service/checklist-history/checklist-history-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAqD;AAErD,2DAAsD;AAG/C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAMhC,CAAA;AANY,oDAAoB;AAE/B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,oCAAgB,CAAC,CAAC;;mDACT;AAGzB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;mDACN;+BALF,oBAAoB;IADhC,IAAA,yBAAU,GAAE;GACA,oBAAoB,CAMhC","sourcesContent":["import { Field, Int, ObjectType } from 'type-graphql'\n\nimport { ChecklistHistory } from './checklist-history'\n\n@ObjectType()\nexport class ChecklistHistoryList {\n @Field(type => [ChecklistHistory])\n items: ChecklistHistory[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { Checklist, ChecklistReferenceType, InspectionResultStatus, InspectionResultType } from '../checklist/checklist';
|
|
4
|
+
import { ProjectType } from '../building-inspection/building-inspection';
|
|
5
|
+
import { BuildingInspectionHistory } from '../building-inspection-history/building-inspection-history';
|
|
6
|
+
import { ChecklistItemHistory } from '../checklist-item-history/checklist-item-history';
|
|
7
|
+
export declare class ChecklistHistory implements HistoryEntityInterface<Checklist> {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
documentNo?: string;
|
|
11
|
+
projectType?: ProjectType;
|
|
12
|
+
checklistReferenceType?: ChecklistReferenceType;
|
|
13
|
+
constructionType?: string;
|
|
14
|
+
constructionDetailType?: string;
|
|
15
|
+
location?: string;
|
|
16
|
+
inspectionDrawingType?: string;
|
|
17
|
+
inspectionParts?: string[];
|
|
18
|
+
constructionInspectionDate?: Date;
|
|
19
|
+
supervisorInspectionDate?: Date;
|
|
20
|
+
overallConstructorSignature?: string;
|
|
21
|
+
taskConstructorSignature?: string;
|
|
22
|
+
overallSupervisorySignature?: string;
|
|
23
|
+
taskSupervisorySignature?: string;
|
|
24
|
+
overallConstructor?: User;
|
|
25
|
+
overallConstructorId?: string;
|
|
26
|
+
taskConstructor?: User;
|
|
27
|
+
taskConstructorId?: string;
|
|
28
|
+
overallSupervisory?: User;
|
|
29
|
+
overallSupervisoryId?: string;
|
|
30
|
+
taskSupervisory?: User;
|
|
31
|
+
taskSupervisoryId?: string;
|
|
32
|
+
checklistItemHistories?: ChecklistItemHistory[];
|
|
33
|
+
buildingInspectionHistory?: BuildingInspectionHistory;
|
|
34
|
+
inspectionRequestDocumentNo?: string;
|
|
35
|
+
inspectionRequestMemo?: string;
|
|
36
|
+
inspectionRequestUpdatedAt?: Date;
|
|
37
|
+
inspectionResultDocumentNo?: string;
|
|
38
|
+
inspectionResultMemo?: string;
|
|
39
|
+
inspectionResultStatus?: InspectionResultStatus;
|
|
40
|
+
inspectionResultType?: InspectionResultType;
|
|
41
|
+
inspectionResultUpdatedAt?: Date;
|
|
42
|
+
createdAt?: Date;
|
|
43
|
+
loggedAt?: Date;
|
|
44
|
+
creator?: User;
|
|
45
|
+
creatorId?: string;
|
|
46
|
+
updater?: User;
|
|
47
|
+
updaterId?: string;
|
|
48
|
+
originalId: string;
|
|
49
|
+
action: HistoryActionType;
|
|
50
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistHistory = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const typeorm_1 = require("typeorm");
|
|
7
|
+
const typeorm_history_1 = require("@operato/typeorm-history");
|
|
8
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
+
const env_1 = require("@things-factory/env");
|
|
10
|
+
const checklist_1 = require("../checklist/checklist");
|
|
11
|
+
const building_inspection_1 = require("../building-inspection/building-inspection");
|
|
12
|
+
const building_inspection_history_1 = require("../building-inspection-history/building-inspection-history");
|
|
13
|
+
const checklist_item_history_1 = require("../checklist-item-history/checklist-item-history");
|
|
14
|
+
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
|
15
|
+
const DATABASE_TYPE = ORMCONFIG.type;
|
|
16
|
+
let ChecklistHistory = class ChecklistHistory {
|
|
17
|
+
};
|
|
18
|
+
exports.ChecklistHistory = ChecklistHistory;
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
21
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
|
+
], ChecklistHistory.prototype, "id", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '이름' }),
|
|
26
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
27
|
+
tslib_1.__metadata("design:type", String)
|
|
28
|
+
], ChecklistHistory.prototype, "name", void 0);
|
|
29
|
+
tslib_1.__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '문서 번호 - 검측: 동(4자리)-층(3자리)-시퀀스(6자리), 공정표: 날짜(6자리)-시퀀스(6자리)' }),
|
|
31
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
32
|
+
tslib_1.__metadata("design:type", String)
|
|
33
|
+
], ChecklistHistory.prototype, "documentNo", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '프로젝트 타입', default: building_inspection_1.ProjectType.DSSP }),
|
|
36
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
37
|
+
tslib_1.__metadata("design:type", String)
|
|
38
|
+
], ChecklistHistory.prototype, "projectType", void 0);
|
|
39
|
+
tslib_1.__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ nullable: false, comment: '체크리스트 참조 타입 (구분 용)', default: checklist_1.ChecklistReferenceType.INSPECTION }),
|
|
41
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
42
|
+
tslib_1.__metadata("design:type", String)
|
|
43
|
+
], ChecklistHistory.prototype, "checklistReferenceType", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '공종' }),
|
|
46
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
47
|
+
tslib_1.__metadata("design:type", String)
|
|
48
|
+
], ChecklistHistory.prototype, "constructionType", void 0);
|
|
49
|
+
tslib_1.__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '세부 공종' }),
|
|
51
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
52
|
+
tslib_1.__metadata("design:type", String)
|
|
53
|
+
], ChecklistHistory.prototype, "constructionDetailType", void 0);
|
|
54
|
+
tslib_1.__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '위치 (x동 x층)' }),
|
|
56
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
57
|
+
tslib_1.__metadata("design:type", String)
|
|
58
|
+
], ChecklistHistory.prototype, "location", void 0);
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 도면 타입', default: '' }),
|
|
61
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
62
|
+
tslib_1.__metadata("design:type", String)
|
|
63
|
+
], ChecklistHistory.prototype, "inspectionDrawingType", void 0);
|
|
64
|
+
tslib_1.__decorate([
|
|
65
|
+
(0, typeorm_1.Column)('simple-array', { nullable: true, comment: '검측 부위' }),
|
|
66
|
+
(0, type_graphql_1.Field)(() => [String], { nullable: true }),
|
|
67
|
+
tslib_1.__metadata("design:type", Array)
|
|
68
|
+
], ChecklistHistory.prototype, "inspectionParts", void 0);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '시공자 점검일' }),
|
|
71
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
72
|
+
tslib_1.__metadata("design:type", Date)
|
|
73
|
+
], ChecklistHistory.prototype, "constructionInspectionDate", void 0);
|
|
74
|
+
tslib_1.__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '감리자 점검일' }),
|
|
76
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
+
tslib_1.__metadata("design:type", Date)
|
|
78
|
+
], ChecklistHistory.prototype, "supervisorInspectionDate", void 0);
|
|
79
|
+
tslib_1.__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '총괄 시공 책임자 사인' }),
|
|
81
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
82
|
+
tslib_1.__metadata("design:type", String)
|
|
83
|
+
], ChecklistHistory.prototype, "overallConstructorSignature", void 0);
|
|
84
|
+
tslib_1.__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '공종별 시공 관리자 사인' }),
|
|
86
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
87
|
+
tslib_1.__metadata("design:type", String)
|
|
88
|
+
], ChecklistHistory.prototype, "taskConstructorSignature", void 0);
|
|
89
|
+
tslib_1.__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '총괄 감리 책임자 사인' }),
|
|
91
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
92
|
+
tslib_1.__metadata("design:type", String)
|
|
93
|
+
], ChecklistHistory.prototype, "overallSupervisorySignature", void 0);
|
|
94
|
+
tslib_1.__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '건축사보 (공종별 감리 관리자) 사인' }),
|
|
96
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
97
|
+
tslib_1.__metadata("design:type", String)
|
|
98
|
+
], ChecklistHistory.prototype, "taskSupervisorySignature", void 0);
|
|
99
|
+
tslib_1.__decorate([
|
|
100
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
101
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '총괄 시공 책임자' }),
|
|
102
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
103
|
+
], ChecklistHistory.prototype, "overallConstructor", void 0);
|
|
104
|
+
tslib_1.__decorate([
|
|
105
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.overallConstructor),
|
|
106
|
+
tslib_1.__metadata("design:type", String)
|
|
107
|
+
], ChecklistHistory.prototype, "overallConstructorId", void 0);
|
|
108
|
+
tslib_1.__decorate([
|
|
109
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
110
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '공종별 시공 관리자' }),
|
|
111
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
112
|
+
], ChecklistHistory.prototype, "taskConstructor", void 0);
|
|
113
|
+
tslib_1.__decorate([
|
|
114
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.taskConstructor),
|
|
115
|
+
tslib_1.__metadata("design:type", String)
|
|
116
|
+
], ChecklistHistory.prototype, "taskConstructorId", void 0);
|
|
117
|
+
tslib_1.__decorate([
|
|
118
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
119
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '총괄 감리 책임자' }),
|
|
120
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
121
|
+
], ChecklistHistory.prototype, "overallSupervisory", void 0);
|
|
122
|
+
tslib_1.__decorate([
|
|
123
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.overallSupervisory),
|
|
124
|
+
tslib_1.__metadata("design:type", String)
|
|
125
|
+
], ChecklistHistory.prototype, "overallSupervisoryId", void 0);
|
|
126
|
+
tslib_1.__decorate([
|
|
127
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
128
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' }),
|
|
129
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
130
|
+
], ChecklistHistory.prototype, "taskSupervisory", void 0);
|
|
131
|
+
tslib_1.__decorate([
|
|
132
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.taskSupervisory),
|
|
133
|
+
tslib_1.__metadata("design:type", String)
|
|
134
|
+
], ChecklistHistory.prototype, "taskSupervisoryId", void 0);
|
|
135
|
+
tslib_1.__decorate([
|
|
136
|
+
(0, typeorm_1.OneToMany)(() => checklist_item_history_1.ChecklistItemHistory, checklistItem => checklistItem.checklistHistory),
|
|
137
|
+
(0, type_graphql_1.Field)(() => [checklist_item_history_1.ChecklistItemHistory]),
|
|
138
|
+
tslib_1.__metadata("design:type", Array)
|
|
139
|
+
], ChecklistHistory.prototype, "checklistItemHistories", void 0);
|
|
140
|
+
tslib_1.__decorate([
|
|
141
|
+
(0, typeorm_1.OneToOne)(() => building_inspection_history_1.BuildingInspectionHistory, buildingInspectionHistory => buildingInspectionHistory.checklistHistory),
|
|
142
|
+
(0, type_graphql_1.Field)(() => building_inspection_history_1.BuildingInspectionHistory),
|
|
143
|
+
tslib_1.__metadata("design:type", building_inspection_history_1.BuildingInspectionHistory)
|
|
144
|
+
], ChecklistHistory.prototype, "buildingInspectionHistory", void 0);
|
|
145
|
+
tslib_1.__decorate([
|
|
146
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 요청서 문서번호 - {네이밍} 검측 제02-00001호)' }) // DocumentNoType 참조
|
|
147
|
+
,
|
|
148
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
149
|
+
tslib_1.__metadata("design:type", String)
|
|
150
|
+
], ChecklistHistory.prototype, "inspectionRequestDocumentNo", void 0);
|
|
151
|
+
tslib_1.__decorate([
|
|
152
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 요청서 - 검측 사항' }),
|
|
153
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
154
|
+
tslib_1.__metadata("design:type", String)
|
|
155
|
+
], ChecklistHistory.prototype, "inspectionRequestMemo", void 0);
|
|
156
|
+
tslib_1.__decorate([
|
|
157
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 요청서 - 요청 시간' }),
|
|
158
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
159
|
+
tslib_1.__metadata("design:type", Date)
|
|
160
|
+
], ChecklistHistory.prototype, "inspectionRequestUpdatedAt", void 0);
|
|
161
|
+
tslib_1.__decorate([
|
|
162
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 문서번호 - {네이밍} 검측 제03-00001호)' }) // DocumentNoType 참조
|
|
163
|
+
,
|
|
164
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
165
|
+
tslib_1.__metadata("design:type", String)
|
|
166
|
+
], ChecklistHistory.prototype, "inspectionResultDocumentNo", void 0);
|
|
167
|
+
tslib_1.__decorate([
|
|
168
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 지시 사항' }),
|
|
169
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
170
|
+
tslib_1.__metadata("design:type", String)
|
|
171
|
+
], ChecklistHistory.prototype, "inspectionResultMemo", void 0);
|
|
172
|
+
tslib_1.__decorate([
|
|
173
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 여부' }),
|
|
174
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
175
|
+
tslib_1.__metadata("design:type", String)
|
|
176
|
+
], ChecklistHistory.prototype, "inspectionResultStatus", void 0);
|
|
177
|
+
tslib_1.__decorate([
|
|
178
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 타입' }),
|
|
179
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
180
|
+
tslib_1.__metadata("design:type", String)
|
|
181
|
+
], ChecklistHistory.prototype, "inspectionResultType", void 0);
|
|
182
|
+
tslib_1.__decorate([
|
|
183
|
+
(0, typeorm_1.Column)({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 통보 시간' }),
|
|
184
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
185
|
+
tslib_1.__metadata("design:type", Date)
|
|
186
|
+
], ChecklistHistory.prototype, "inspectionResultUpdatedAt", void 0);
|
|
187
|
+
tslib_1.__decorate([
|
|
188
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
189
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
190
|
+
tslib_1.__metadata("design:type", Date)
|
|
191
|
+
], ChecklistHistory.prototype, "createdAt", void 0);
|
|
192
|
+
tslib_1.__decorate([
|
|
193
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
194
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
195
|
+
tslib_1.__metadata("design:type", Date)
|
|
196
|
+
], ChecklistHistory.prototype, "loggedAt", void 0);
|
|
197
|
+
tslib_1.__decorate([
|
|
198
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
199
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
200
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
201
|
+
], ChecklistHistory.prototype, "creator", void 0);
|
|
202
|
+
tslib_1.__decorate([
|
|
203
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.creator),
|
|
204
|
+
tslib_1.__metadata("design:type", String)
|
|
205
|
+
], ChecklistHistory.prototype, "creatorId", void 0);
|
|
206
|
+
tslib_1.__decorate([
|
|
207
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
208
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
209
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
210
|
+
], ChecklistHistory.prototype, "updater", void 0);
|
|
211
|
+
tslib_1.__decorate([
|
|
212
|
+
(0, typeorm_1.RelationId)((checklist) => checklist.updater),
|
|
213
|
+
tslib_1.__metadata("design:type", String)
|
|
214
|
+
], ChecklistHistory.prototype, "updaterId", void 0);
|
|
215
|
+
tslib_1.__decorate([
|
|
216
|
+
(0, typeorm_history_1.HistoryOriginalIdColumn)({ nullable: true }),
|
|
217
|
+
tslib_1.__metadata("design:type", String)
|
|
218
|
+
], ChecklistHistory.prototype, "originalId", void 0);
|
|
219
|
+
tslib_1.__decorate([
|
|
220
|
+
(0, typeorm_history_1.HistoryActionColumn)({
|
|
221
|
+
nullable: false,
|
|
222
|
+
type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
|
223
|
+
? 'enum'
|
|
224
|
+
: DATABASE_TYPE == 'oracle'
|
|
225
|
+
? 'varchar2'
|
|
226
|
+
: DATABASE_TYPE == 'mssql'
|
|
227
|
+
? 'nvarchar'
|
|
228
|
+
: 'varchar',
|
|
229
|
+
enum: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? typeorm_history_1.HistoryActionType : undefined,
|
|
230
|
+
length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
|
|
231
|
+
}),
|
|
232
|
+
tslib_1.__metadata("design:type", String)
|
|
233
|
+
], ChecklistHistory.prototype, "action", void 0);
|
|
234
|
+
exports.ChecklistHistory = ChecklistHistory = tslib_1.__decorate([
|
|
235
|
+
(0, typeorm_1.Entity)(),
|
|
236
|
+
(0, typeorm_1.Index)('ix_checklist_history_0', (checklistHistory) => [checklistHistory.originalId]),
|
|
237
|
+
(0, type_graphql_1.ObjectType)({ description: 'Entity for ChecklistHistory' })
|
|
238
|
+
], ChecklistHistory);
|
|
239
|
+
//# sourceMappingURL=checklist-history.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checklist-history.js","sourceRoot":"","sources":["../../../server/service/checklist-history/checklist-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAUgB;AAChB,8DAAkI;AAClI,yDAAgD;AAChD,6CAA4C;AAC5C,sDAAwH;AACxH,oFAAwE;AACxE,4GAAsG;AACtG,6FAAuF;AAEvF,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;CA8K5B,CAAA;AA9KY,4CAAgB;AAGlB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;4CACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACb;AAIb;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,2DAA2D,EAAE,CAAC;IAChG,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACP;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,iCAAW,CAAC,IAAI,EAAE,CAAC;IAC1E,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACD;AAIzB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAA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CAAC;;mDACtC;AAGX;IADN,IAAA,yCAAuB,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAClB;AAenB;IAbN,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,aAAa,IAAI,OAAO;oBACxB,CAAC,CAAC,UAAU;oBACZ,CAAC,CAAC,SAAS;QACnB,IAAI,EAAE,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS,CAAC,CAAC,CAAC,mCAAiB,CAAC,CAAC,CAAC,SAAS;QAC3H,MAAM,EAAE,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;KAC/G,CAAC;;gDAC+B;2BA7KtB,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,CA8K5B","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n OneToMany,\n OneToOne,\n PrimaryGeneratedColumn,\n RelationId\n} 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, ChecklistReferenceType, InspectionResultStatus, InspectionResultType } from '../checklist/checklist'\nimport { ProjectType } from '../building-inspection/building-inspection'\nimport { BuildingInspectionHistory } from '../building-inspection-history/building-inspection-history'\nimport { ChecklistItemHistory } from '../checklist-item-history/checklist-item-history'\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: 'Entity for ChecklistHistory' })\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자리), 공정표: 날짜(6자리)-시퀀스(6자리)' })\n @Field({ nullable: true })\n documentNo?: string\n\n @Column({ nullable: false, comment: '프로젝트 타입', default: ProjectType.DSSP })\n @Field({ nullable: true })\n projectType?: ProjectType\n\n @Column({ nullable: false, comment: '체크리스트 참조 타입 (구분 용)', default: ChecklistReferenceType.INSPECTION })\n @Field({ nullable: true })\n checklistReferenceType?: ChecklistReferenceType\n\n @Column({ nullable: true, comment: '공종' })\n @Field({ nullable: true })\n constructionType?: string\n\n @Column({ nullable: true, comment: '세부 공종' })\n @Field({ nullable: true })\n constructionDetailType?: string\n\n @Column({ nullable: true, comment: '위치 (x동 x층)' })\n @Field({ nullable: true })\n location?: string\n\n @Column({ nullable: true, 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((checklist: Checklist) => checklist.overallConstructor)\n overallConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '공종별 시공 관리자' })\n taskConstructor?: User\n\n @RelationId((checklist: Checklist) => checklist.taskConstructor)\n taskConstructorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '총괄 감리 책임자' })\n overallSupervisory?: User\n\n @RelationId((checklist: Checklist) => checklist.overallSupervisory)\n overallSupervisoryId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: '건축사보 (공종별 감리 관리자)' })\n taskSupervisory?: User\n\n @RelationId((checklist: Checklist) => checklist.taskSupervisory)\n taskSupervisoryId?: string\n\n // 체크리스트 아이템 정보 (하위 테이블 참조)\n @OneToMany(() => ChecklistItemHistory, checklistItem => checklistItem.checklistHistory)\n @Field(() => [ChecklistItemHistory])\n checklistItemHistories?: ChecklistItemHistory[]\n\n // 검측 정보 (1:1 하위 테이블 참조)\n @OneToOne(() => BuildingInspectionHistory, buildingInspectionHistory => buildingInspectionHistory.checklistHistory)\n @Field(() => BuildingInspectionHistory)\n buildingInspectionHistory?: BuildingInspectionHistory\n\n @Column({ nullable: true, comment: '검측 요청서 문서번호 - {네이밍} 검측 제02-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n inspectionRequestDocumentNo?: string\n\n @Column({ nullable: true, comment: '검측 요청서 - 검측 사항' })\n @Field({ nullable: true })\n inspectionRequestMemo?: string\n\n @Column({ nullable: true, comment: '검측 요청서 - 요청 시간' })\n @Field({ nullable: true })\n inspectionRequestUpdatedAt?: Date\n\n @Column({ nullable: true, comment: '검측 결과 통보서 문서번호 - {네이밍} 검측 제03-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n inspectionResultDocumentNo?: string\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 지시 사항' })\n @Field({ nullable: true })\n inspectionResultMemo?: string\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 여부' })\n @Field({ nullable: true })\n inspectionResultStatus?: InspectionResultStatus\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 타입' })\n @Field({ nullable: true })\n inspectionResultType?: InspectionResultType\n\n @Column({ nullable: true, comment: '검측 결과 통보서 - 검측 결과 통보 시간' })\n @Field({ nullable: true })\n inspectionResultUpdatedAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @CreateDateColumn()\n @Field({ nullable: true })\n loggedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((checklist: Checklist) => checklist.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((checklist: Checklist) => checklist.updater)\n updaterId?: string\n\n @HistoryOriginalIdColumn({ nullable: true })\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 : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n enum: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? HistoryActionType : undefined,\n length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10\n })\n public action!: HistoryActionType\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HistoryEntitySubscriber } from '@operato/typeorm-history';
|
|
2
|
+
import { Checklist } from '../checklist/checklist';
|
|
3
|
+
import { ChecklistHistory } from './checklist-history';
|
|
4
|
+
export declare class ChecklistHistoryEntitySubscriber extends HistoryEntitySubscriber<Checklist, ChecklistHistory> {
|
|
5
|
+
get entity(): typeof Checklist;
|
|
6
|
+
get historyEntity(): typeof ChecklistHistory;
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChecklistHistoryEntitySubscriber = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const typeorm_history_1 = require("@operato/typeorm-history");
|
|
7
|
+
const checklist_1 = require("../checklist/checklist");
|
|
8
|
+
const checklist_history_1 = require("./checklist-history");
|
|
9
|
+
let ChecklistHistoryEntitySubscriber = class ChecklistHistoryEntitySubscriber extends typeorm_history_1.HistoryEntitySubscriber {
|
|
10
|
+
get entity() {
|
|
11
|
+
return checklist_1.Checklist;
|
|
12
|
+
}
|
|
13
|
+
get historyEntity() {
|
|
14
|
+
return checklist_history_1.ChecklistHistory;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
exports.ChecklistHistoryEntitySubscriber = ChecklistHistoryEntitySubscriber;
|
|
18
|
+
exports.ChecklistHistoryEntitySubscriber = ChecklistHistoryEntitySubscriber = tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.EventSubscriber)()
|
|
20
|
+
], ChecklistHistoryEntitySubscriber);
|
|
21
|
+
//# sourceMappingURL=event-subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/checklist-history/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,8DAAkE;AAElE,sDAAkD;AAClD,2DAAsD;AAG/C,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,yCAAoD;IACxG,IAAW,MAAM;QACf,OAAO,qBAAS,CAAA;IAClB,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,oCAAgB,CAAA;IACzB,CAAC;CACF,CAAA;AARY,4EAAgC;2CAAhC,gCAAgC;IAD5C,IAAA,yBAAe,GAAE;GACL,gCAAgC,CAQ5C","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@operato/typeorm-history'\n\nimport { Checklist } from '../checklist/checklist'\nimport { ChecklistHistory } from './checklist-history'\n\n@EventSubscriber()\nexport class ChecklistHistoryEntitySubscriber extends HistoryEntitySubscriber<Checklist, ChecklistHistory> {\n public get entity() {\n return Checklist\n }\n\n public get historyEntity() {\n return ChecklistHistory\n }\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ChecklistHistory } from './checklist-history';
|
|
2
|
+
import { ChecklistHistoryQuery } from './checklist-history-query';
|
|
3
|
+
import { ChecklistHistoryEntitySubscriber } from './event-subscriber';
|
|
4
|
+
export declare const entities: (typeof ChecklistHistory)[];
|
|
5
|
+
export declare const resolvers: (typeof ChecklistHistoryQuery)[];
|
|
6
|
+
export declare const subscribers: (typeof ChecklistHistoryEntitySubscriber)[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subscribers = exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const checklist_history_1 = require("./checklist-history");
|
|
5
|
+
const checklist_history_query_1 = require("./checklist-history-query");
|
|
6
|
+
const event_subscriber_1 = require("./event-subscriber");
|
|
7
|
+
exports.entities = [checklist_history_1.ChecklistHistory];
|
|
8
|
+
exports.resolvers = [checklist_history_query_1.ChecklistHistoryQuery];
|
|
9
|
+
exports.subscribers = [event_subscriber_1.ChecklistHistoryEntitySubscriber];
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-history/index.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AACtD,uEAAiE;AACjE,yDAAqE;AAExD,QAAA,QAAQ,GAAG,CAAC,oCAAgB,CAAC,CAAA;AAC7B,QAAA,SAAS,GAAG,CAAC,+CAAqB,CAAC,CAAA;AACnC,QAAA,WAAW,GAAG,CAAC,mDAAgC,CAAC,CAAA","sourcesContent":["import { ChecklistHistory } from './checklist-history'\nimport { ChecklistHistoryQuery } from './checklist-history-query'\nimport { ChecklistHistoryEntitySubscriber } from './event-subscriber'\n\nexport const entities = [ChecklistHistory]\nexport const resolvers = [ChecklistHistoryQuery]\nexport const subscribers = [ChecklistHistoryEntitySubscriber]\n"]}
|
|
@@ -2,4 +2,3 @@ import { ChecklistItem } from './checklist-item';
|
|
|
2
2
|
import { ChecklistItemMutation } from './checklist-item-mutation';
|
|
3
3
|
export declare const entities: (typeof ChecklistItem)[];
|
|
4
4
|
export declare const resolvers: (typeof ChecklistItemMutation)[];
|
|
5
|
-
export declare const subscribers: any[];
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
4
|
const checklist_item_1 = require("./checklist-item");
|
|
5
5
|
const checklist_item_query_1 = require("./checklist-item-query");
|
|
6
6
|
const checklist_item_mutation_1 = require("./checklist-item-mutation");
|
|
7
7
|
exports.entities = [checklist_item_1.ChecklistItem];
|
|
8
8
|
exports.resolvers = [checklist_item_query_1.ChecklistItemQuery, checklist_item_mutation_1.ChecklistItemMutation];
|
|
9
|
-
exports.subscribers = [];
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-item/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAChD,iEAA2D;AAC3D,uEAAiE;AAEpD,QAAA,QAAQ,GAAG,CAAC,8BAAa,CAAC,CAAA;AAC1B,QAAA,SAAS,GAAG,CAAC,yCAAkB,EAAE,+CAAqB,CAAC,CAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-item/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAChD,iEAA2D;AAC3D,uEAAiE;AAEpD,QAAA,QAAQ,GAAG,CAAC,8BAAa,CAAC,CAAA;AAC1B,QAAA,SAAS,GAAG,CAAC,yCAAkB,EAAE,+CAAqB,CAAC,CAAA","sourcesContent":["import { ChecklistItem } from './checklist-item'\nimport { ChecklistItemQuery } from './checklist-item-query'\nimport { ChecklistItemMutation } from './checklist-item-mutation'\n\nexport const entities = [ChecklistItem]\nexport const resolvers = [ChecklistItemQuery, ChecklistItemMutation]\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Attachment } from '@things-factory/attachment-base';
|
|
2
|
+
import { ListParam } from '@things-factory/shell';
|
|
3
|
+
import { User } from '@things-factory/auth-base';
|
|
4
|
+
import { ChecklistItemHistory } from './checklist-item-history';
|
|
5
|
+
import { ChecklistItemHistoryList } from './checklist-item-history-type';
|
|
6
|
+
import { ChecklistItemComment } from '../checklist-item-comment/checklist-item-comment';
|
|
7
|
+
export declare class ChecklistItemHistoryQuery {
|
|
8
|
+
checklistItemHistory(id: string, context: ResolverContext): Promise<ChecklistItemHistory>;
|
|
9
|
+
checklistItemHistories(params: ListParam, context: ResolverContext): Promise<ChecklistItemHistoryList>;
|
|
10
|
+
checklistItemComments(checklistItemHistory: ChecklistItemHistory): Promise<ChecklistItemComment[]>;
|
|
11
|
+
checklistItemCommentCount(checklistItemHistory: ChecklistItemHistory): Promise<number>;
|
|
12
|
+
checklistItemAttachments(checklistItemHistory: ChecklistItemHistory, description?: string): Promise<Attachment[]>;
|
|
13
|
+
checklistItemAttachmentCount(checklistItemHistory: ChecklistItemHistory): Promise<number>;
|
|
14
|
+
updater(checklistItemHistory: ChecklistItemHistory): Promise<User>;
|
|
15
|
+
creator(checklistItemHistory: ChecklistItemHistory): Promise<User>;
|
|
16
|
+
}
|