@dssp/supervision 1.0.0-alpha.25 → 1.0.0-alpha.27

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.
Files changed (82) hide show
  1. package/dist-client/graphql/building-inspection.js +17 -0
  2. package/dist-client/graphql/building-inspection.js.map +1 -1
  3. package/dist-client/pages/action-plan/action-plan-importer.d.ts +1 -1
  4. package/dist-client/pages/action-plan/action-plan-list-page.d.ts +1 -1
  5. package/dist-client/pages/building-inspection/building-inspection-detail-camera.d.ts +1 -1
  6. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +6 -1
  7. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +86 -9
  8. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
  9. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -1
  10. package/dist-client/pages/building-inspection/building-inspection-list.d.ts +7 -0
  11. package/dist-client/pages/building-inspection/building-inspection-list.js +90 -15
  12. package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
  13. package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +17 -0
  14. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +354 -0
  15. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
  16. package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +1 -1
  17. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +3 -4
  18. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +135 -176
  19. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -1
  20. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +30 -0
  21. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +479 -0
  22. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
  23. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +1 -1
  24. package/dist-client/pages/building-inspection/inspection-create-popup.js +17 -5
  25. package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
  26. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +3 -2
  27. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +46 -3
  28. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -1
  29. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +2 -1
  30. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -1
  31. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +1 -1
  32. package/dist-client/pages/checklist/attachment-list-popup.js +1 -7
  33. package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
  34. package/dist-client/pages/checklist/checklist-view.js +52 -18
  35. package/dist-client/pages/checklist/checklist-view.js.map +1 -1
  36. package/dist-client/pages/checklist/inspection-info-popup.d.ts +1 -1
  37. package/dist-client/pages/checklist/inspection-tab-popup.d.ts +1 -1
  38. package/dist-client/pages/checklist-template/checklist-template-list.d.ts +1 -1
  39. package/dist-client/pages/checklist-template/checklist-template-list.js +1 -1
  40. package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
  41. package/dist-client/pages/checklist-template/checklist-type-management.d.ts +1 -1
  42. package/dist-client/pages/issue/issue-importer.d.ts +1 -1
  43. package/dist-client/pages/issue/issue-list-page.d.ts +1 -1
  44. package/dist-client/pages/project-report/project-report-importer.d.ts +1 -1
  45. package/dist-client/pages/project-report/project-report-list-page.d.ts +1 -1
  46. package/dist-client/pages/supervisor/supervisor-importer.d.ts +1 -1
  47. package/dist-client/pages/supervisor/supervisor-list-page.d.ts +1 -1
  48. package/dist-client/tsconfig.tsbuildinfo +1 -1
  49. package/dist-server/service/building-inspection/building-inspection-mutation.js +45 -19
  50. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
  51. package/dist-server/service/building-inspection/building-inspection-query.js +7 -1
  52. package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
  53. package/dist-server/service/building-inspection/building-inspection-type.d.ts +7 -0
  54. package/dist-server/service/building-inspection/building-inspection-type.js +25 -0
  55. package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
  56. package/dist-server/service/building-inspection/index.d.ts +1 -1
  57. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +8 -0
  58. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +98 -0
  59. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
  60. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +12 -0
  61. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +85 -0
  62. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
  63. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +12 -0
  64. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +47 -0
  65. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
  66. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +25 -0
  67. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +98 -0
  68. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
  69. package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
  70. package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
  71. package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
  72. package/dist-server/service/checklist/checklist-query.d.ts +2 -0
  73. package/dist-server/service/checklist/checklist-query.js +11 -0
  74. package/dist-server/service/checklist/checklist-query.js.map +1 -1
  75. package/dist-server/service/checklist/checklist.d.ts +23 -0
  76. package/dist-server/service/checklist/checklist.js +73 -1
  77. package/dist-server/service/checklist/checklist.js.map +1 -1
  78. package/dist-server/service/index.d.ts +2 -1
  79. package/dist-server/service/index.js +6 -2
  80. package/dist-server/service/index.js.map +1 -1
  81. package/dist-server/tsconfig.tsbuildinfo +1 -1
  82. package/package.json +4 -3
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BuildingInspectionDailyWorklogMutation = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const type_graphql_1 = require("type-graphql");
6
+ const typeorm_1 = require("typeorm");
7
+ const building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
8
+ const building_inspection_daily_worklog_type_1 = require("./building-inspection-daily-worklog-type");
9
+ let BuildingInspectionDailyWorklogMutation = class BuildingInspectionDailyWorklogMutation {
10
+ async updateBuildingInspectionDailyWorklog(id, patch, context) {
11
+ const { domain, user, tx } = context.state;
12
+ const repository = tx.getRepository(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog);
13
+ const worklog = await repository.findOne({
14
+ where: { id }
15
+ });
16
+ const result = await repository.save(Object.assign(Object.assign(Object.assign({}, worklog), patch), { updater: user }));
17
+ return result;
18
+ }
19
+ async updateMultipleBuildingInspectionDailyWorklog(patches, context) {
20
+ const { domain, user, tx } = context.state;
21
+ let results = [];
22
+ const _createRecords = patches.filter((patch) => { var _a; return ((_a = patch.cuFlag) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === '+'; });
23
+ const _updateRecords = patches.filter((patch) => { var _a; return ((_a = patch.cuFlag) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === 'M'; });
24
+ const repo = tx.getRepository(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog);
25
+ if (_createRecords.length > 0) {
26
+ for (let i = 0; i < _createRecords.length; i++) {
27
+ const newRecord = _createRecords[i];
28
+ const result = await repo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
29
+ results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
30
+ }
31
+ }
32
+ if (_updateRecords.length > 0) {
33
+ for (let i = 0; i < _updateRecords.length; i++) {
34
+ const updateRecord = _updateRecords[i];
35
+ const target = await repo.findOneBy({ id: updateRecord.id });
36
+ const result = await repo.save(Object.assign(Object.assign(Object.assign({}, target), updateRecord), { updater: user }));
37
+ results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
38
+ }
39
+ }
40
+ return results;
41
+ }
42
+ async deleteBuildingInspectionDailyWorklog(id, context) {
43
+ const { tx } = context.state;
44
+ await tx.getRepository(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog).delete({ id });
45
+ return true;
46
+ }
47
+ async deleteBuildingInspectionDailyWorklogs(ids, context) {
48
+ const { tx } = context.state;
49
+ await tx.getRepository(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog).delete({
50
+ id: (0, typeorm_1.In)(ids)
51
+ });
52
+ return true;
53
+ }
54
+ };
55
+ exports.BuildingInspectionDailyWorklogMutation = BuildingInspectionDailyWorklogMutation;
56
+ tslib_1.__decorate([
57
+ (0, type_graphql_1.Directive)('@transaction'),
58
+ (0, type_graphql_1.Mutation)(returns => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { description: 'To modify BuildingInspectionDailyWorklog information' }),
59
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
60
+ tslib_1.__param(1, (0, type_graphql_1.Arg)('patch')),
61
+ tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
62
+ tslib_1.__metadata("design:type", Function),
63
+ tslib_1.__metadata("design:paramtypes", [String, building_inspection_daily_worklog_type_1.BuildingInspectionDailyWorklogPatch, Object]),
64
+ tslib_1.__metadata("design:returntype", Promise)
65
+ ], BuildingInspectionDailyWorklogMutation.prototype, "updateBuildingInspectionDailyWorklog", null);
66
+ tslib_1.__decorate([
67
+ (0, type_graphql_1.Directive)('@transaction'),
68
+ (0, type_graphql_1.Mutation)(returns => [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog], {
69
+ description: "To modify multiple BuildingInspectionDailyWorklogs' information"
70
+ }),
71
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [building_inspection_daily_worklog_type_1.BuildingInspectionDailyWorklogPatch])),
72
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
73
+ tslib_1.__metadata("design:type", Function),
74
+ tslib_1.__metadata("design:paramtypes", [Array, Object]),
75
+ tslib_1.__metadata("design:returntype", Promise)
76
+ ], BuildingInspectionDailyWorklogMutation.prototype, "updateMultipleBuildingInspectionDailyWorklog", null);
77
+ tslib_1.__decorate([
78
+ (0, type_graphql_1.Directive)('@transaction'),
79
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete BuildingInspectionDailyWorklog' }),
80
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
81
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
82
+ tslib_1.__metadata("design:type", Function),
83
+ tslib_1.__metadata("design:paramtypes", [String, Object]),
84
+ tslib_1.__metadata("design:returntype", Promise)
85
+ ], BuildingInspectionDailyWorklogMutation.prototype, "deleteBuildingInspectionDailyWorklog", null);
86
+ tslib_1.__decorate([
87
+ (0, type_graphql_1.Directive)('@transaction'),
88
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple BuildingInspectionDailyWorklogs' }),
89
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
90
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
91
+ tslib_1.__metadata("design:type", Function),
92
+ tslib_1.__metadata("design:paramtypes", [Array, Object]),
93
+ tslib_1.__metadata("design:returntype", Promise)
94
+ ], BuildingInspectionDailyWorklogMutation.prototype, "deleteBuildingInspectionDailyWorklogs", null);
95
+ exports.BuildingInspectionDailyWorklogMutation = BuildingInspectionDailyWorklogMutation = tslib_1.__decorate([
96
+ (0, type_graphql_1.Resolver)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
97
+ ], BuildingInspectionDailyWorklogMutation);
98
+ //# sourceMappingURL=building-inspection-daily-worklog-mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"building-inspection-daily-worklog-mutation.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAA4B;AAE5B,2FAAoF;AACpF,qGAA8F;AAGvF,IAAM,sCAAsC,GAA5C,MAAM,sCAAsC;IAG3C,AAAN,KAAK,CAAC,oCAAoC,CAC7B,EAAU,EACP,KAA0C,EACjD,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,kEAA8B,CAAC,CAAA;QACnE,MAAM,OAAO,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YACvC,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;QAEF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,IAAI,+CAC/B,OAAO,GACP,KAAK,KACR,OAAO,EAAE,IAAI,IACb,CAAA;QAEF,OAAO,MAAM,CAAA;IACf,CAAC;IAMK,AAAN,KAAK,CAAC,4CAA4C,CACe,OAA8C,EACtG,OAAwB;QAE/B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,WAAC,OAAA,CAAA,MAAA,KAAK,CAAC,MAAM,0CAAE,WAAW,EAAE,MAAK,GAAG,CAAA,EAAA,CAAC,CAAA;QAC1F,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,WAAC,OAAA,CAAA,MAAA,KAAK,CAAC,MAAM,0CAAE,WAAW,EAAE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C,mBAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;kGAMvE;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,oDAAoD,EAAE,CAAC;IAEjG,mBAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAC5B,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;mGASP;iDA/FU,sCAAsC;IADlD,IAAA,uBAAQ,EAAC,kEAA8B,CAAC;GAC5B,sCAAsC,CAgGlD","sourcesContent":["import { Resolver, Mutation, Arg, Ctx, Directive } from 'type-graphql'\nimport { In } from 'typeorm'\n\nimport { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog'\nimport { BuildingInspectionDailyWorklogPatch } from './building-inspection-daily-worklog-type'\n\n@Resolver(BuildingInspectionDailyWorklog)\nexport class BuildingInspectionDailyWorklogMutation {\n @Directive('@transaction')\n @Mutation(returns => BuildingInspectionDailyWorklog, { description: 'To modify BuildingInspectionDailyWorklog information' })\n async updateBuildingInspectionDailyWorklog(\n @Arg('id') id: string,\n @Arg('patch') patch: BuildingInspectionDailyWorklogPatch,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionDailyWorklog> {\n const { domain, user, tx } = context.state\n\n const repository = tx.getRepository(BuildingInspectionDailyWorklog)\n const worklog = await repository.findOne({\n where: { id }\n })\n\n const result = await repository.save({\n ...worklog,\n ...patch,\n updater: user\n })\n\n return result\n }\n\n @Directive('@transaction')\n @Mutation(returns => [BuildingInspectionDailyWorklog], {\n description: \"To modify multiple BuildingInspectionDailyWorklogs' information\"\n })\n async updateMultipleBuildingInspectionDailyWorklog(\n @Arg('patches', type => [BuildingInspectionDailyWorklogPatch]) patches: BuildingInspectionDailyWorklogPatch[],\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionDailyWorklog[]> {\n const { domain, user, tx } = context.state\n\n let results = []\n const _createRecords = patches.filter((patch: any) => patch.cuFlag?.toUpperCase() === '+')\n const _updateRecords = patches.filter((patch: any) => patch.cuFlag?.toUpperCase() === 'M')\n const repo = tx.getRepository(BuildingInspectionDailyWorklog)\n\n if (_createRecords.length > 0) {\n for (let i = 0; i < _createRecords.length; i++) {\n const newRecord = _createRecords[i]\n\n const result = await repo.save({\n ...newRecord,\n domain,\n creator: user,\n updater: user\n })\n\n results.push({ ...result, cuFlag: '+' })\n }\n }\n\n if (_updateRecords.length > 0) {\n for (let i = 0; i < _updateRecords.length; i++) {\n const updateRecord = _updateRecords[i]\n const target = await repo.findOneBy({ id: updateRecord.id })\n\n const result = await repo.save({\n ...target,\n ...updateRecord,\n updater: user\n })\n\n results.push({ ...result, cuFlag: 'M' })\n }\n }\n\n return results\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete BuildingInspectionDailyWorklog' })\n async deleteBuildingInspectionDailyWorklog(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<boolean> {\n const { tx } = context.state\n\n await tx.getRepository(BuildingInspectionDailyWorklog).delete({ id })\n\n return true\n }\n\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete multiple BuildingInspectionDailyWorklogs' })\n async deleteBuildingInspectionDailyWorklogs(\n @Arg('ids', type => [String]) ids: string[],\n @Ctx() context: ResolverContext\n ): Promise<boolean> {\n const { tx } = context.state\n\n await tx.getRepository(BuildingInspectionDailyWorklog).delete({\n id: In(ids)\n })\n\n return true\n }\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import { Domain } from '@things-factory/shell';
2
+ import { User } from '@things-factory/auth-base';
3
+ import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
4
+ export declare class BuildingInspectionDailyWorklogQuery {
5
+ /**
6
+ * 프로젝트와 날짜로 일일업무일지 조회. 없으면 새 문서번호를 생성해 빈 데이터를 반환
7
+ */
8
+ buildingInspectionDailyWorklogByProjectIdAndDate(projectId: string, date: string, context: ResolverContext): Promise<BuildingInspectionDailyWorklog>;
9
+ domain(worklog: BuildingInspectionDailyWorklog): Promise<Domain>;
10
+ updater(worklog: BuildingInspectionDailyWorklog): Promise<User>;
11
+ creator(worklog: BuildingInspectionDailyWorklog): Promise<User>;
12
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BuildingInspectionDailyWorklogQuery = 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 building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
9
+ const checklist_1 = require("../checklist/checklist");
10
+ let BuildingInspectionDailyWorklogQuery = class BuildingInspectionDailyWorklogQuery {
11
+ /**
12
+ * 프로젝트와 날짜로 일일업무일지 조회. 없으면 새 문서번호를 생성해 빈 데이터를 반환
13
+ */
14
+ async buildingInspectionDailyWorklogByProjectIdAndDate(projectId, date, context) {
15
+ const repository = (0, shell_1.getRepository)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog);
16
+ const worklogs = await repository.findOne({ where: { projectId, date } });
17
+ if (worklogs)
18
+ return worklogs;
19
+ const documentNo = await generateDailyWorklogDocumentNo(projectId);
20
+ // 존재하지 않으면 새 문서번호와 비어있는 데이터를 반환
21
+ return { documentNo };
22
+ }
23
+ async domain(worklog) {
24
+ return await (0, shell_1.getRepository)(shell_1.Domain).findOneBy({ id: worklog.domainId });
25
+ }
26
+ async updater(worklog) {
27
+ return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: worklog.updaterId });
28
+ }
29
+ async creator(worklog) {
30
+ return await (0, shell_1.getRepository)(auth_base_1.User).findOneBy({ id: worklog.creatorId });
31
+ }
32
+ };
33
+ exports.BuildingInspectionDailyWorklogQuery = BuildingInspectionDailyWorklogQuery;
34
+ tslib_1.__decorate([
35
+ (0, type_graphql_1.Query)(returns => building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog, { nullable: true }),
36
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('projectId')),
37
+ tslib_1.__param(1, (0, type_graphql_1.Arg)('date')),
38
+ tslib_1.__param(2, (0, type_graphql_1.Ctx)()),
39
+ tslib_1.__metadata("design:type", Function),
40
+ tslib_1.__metadata("design:paramtypes", [String, String, Object]),
41
+ tslib_1.__metadata("design:returntype", Promise)
42
+ ], BuildingInspectionDailyWorklogQuery.prototype, "buildingInspectionDailyWorklogByProjectIdAndDate", null);
43
+ tslib_1.__decorate([
44
+ (0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
45
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
46
+ tslib_1.__metadata("design:type", Function),
47
+ tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
48
+ tslib_1.__metadata("design:returntype", Promise)
49
+ ], BuildingInspectionDailyWorklogQuery.prototype, "domain", null);
50
+ tslib_1.__decorate([
51
+ (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
52
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
53
+ tslib_1.__metadata("design:type", Function),
54
+ tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
55
+ tslib_1.__metadata("design:returntype", Promise)
56
+ ], BuildingInspectionDailyWorklogQuery.prototype, "updater", null);
57
+ tslib_1.__decorate([
58
+ (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
59
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
60
+ tslib_1.__metadata("design:type", Function),
61
+ tslib_1.__metadata("design:paramtypes", [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
62
+ tslib_1.__metadata("design:returntype", Promise)
63
+ ], BuildingInspectionDailyWorklogQuery.prototype, "creator", null);
64
+ exports.BuildingInspectionDailyWorklogQuery = BuildingInspectionDailyWorklogQuery = tslib_1.__decorate([
65
+ (0, type_graphql_1.Resolver)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
66
+ ], BuildingInspectionDailyWorklogQuery);
67
+ async function generateDailyWorklogDocumentNo(projectId) {
68
+ // 프로젝트의 documentNaming을 가져오고, 일일업무일지(04) 최신 번호를 찾아 +1
69
+ const project = await (0, shell_1.getRepository)('projects').findOne({ where: { id: projectId } });
70
+ const naming = (project === null || project === void 0 ? void 0 : project.documentNaming) || '';
71
+ const latest = await (0, shell_1.getRepository)(building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog)
72
+ .createQueryBuilder('d')
73
+ .where('d.project_id = :projectId', { projectId })
74
+ .andWhere('d.document_no LIKE :pattern', { pattern: `${naming} 검측 제${checklist_1.DocumentNoType.DAILY_WORKLOG}-%` })
75
+ .orderBy('d.created_at', 'DESC')
76
+ .getOne();
77
+ let sequence = '00001';
78
+ if (latest === null || latest === void 0 ? void 0 : latest.documentNo) {
79
+ const match = latest.documentNo.match(/\-(\d{5})호$/);
80
+ if (match)
81
+ sequence = (Number(match[1]) + 1).toString().padStart(5, '0');
82
+ }
83
+ return `${naming} 검측 제04-${sequence}호`;
84
+ }
85
+ //# sourceMappingURL=building-inspection-daily-worklog-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"building-inspection-daily-worklog-query.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,iDAAuG;AACvG,yDAAgD;AAChD,2FAAoF;AAEpF,sDAAuD;AAGhD,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;IAC9C;;OAEG;IAEG,AAAN,KAAK,CAAC,gDAAgD,CAClC,SAAiB,EACtB,IAAY,EAClB,OAAwB;QAE/B,MAAM,UAAU,GAAG,IAAA,qBAAa,EAAC,kEAA8B,CAAC,CAAA;Q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CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IAC1E,CAAC;IAED,OAAO,GAAG,MAAM,WAAW,QAAQ,GAAG,CAAA;AACxC,CAAC","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog'\nimport { BuildingInspectionDailyWorklogList } from './building-inspection-daily-worklog-type'\nimport { DocumentNoType } from '../checklist/checklist'\n\n@Resolver(BuildingInspectionDailyWorklog)\nexport class BuildingInspectionDailyWorklogQuery {\n /**\n * 프로젝트와 날짜로 일일업무일지 조회. 없으면 새 문서번호를 생성해 빈 데이터를 반환\n */\n @Query(returns => BuildingInspectionDailyWorklog, { nullable: true })\n async buildingInspectionDailyWorklogByProjectIdAndDate(\n @Arg('projectId') projectId: string,\n @Arg('date') date: string,\n @Ctx() context: ResolverContext\n ): Promise<BuildingInspectionDailyWorklog> {\n const repository = getRepository(BuildingInspectionDailyWorklog)\n const worklogs = await repository.findOne({ where: { projectId, date } })\n\n if (worklogs) return worklogs\n\n const documentNo = await generateDailyWorklogDocumentNo(projectId)\n // 존재하지 않으면 새 문서번호와 비어있는 데이터를 반환\n return { documentNo } as BuildingInspectionDailyWorklog\n }\n\n @FieldResolver(type => Domain)\n async domain(@Root() worklog: BuildingInspectionDailyWorklog): Promise<Domain> {\n return await getRepository(Domain).findOneBy({ id: worklog.domainId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() worklog: BuildingInspectionDailyWorklog): Promise<User> {\n return await getRepository(User).findOneBy({ id: worklog.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() worklog: BuildingInspectionDailyWorklog): Promise<User> {\n return await getRepository(User).findOneBy({ id: worklog.creatorId })\n }\n}\n\nasync function generateDailyWorklogDocumentNo(projectId: string): Promise<string> {\n // 프로젝트의 documentNaming을 가져오고, 일일업무일지(04) 최신 번호를 찾아 +1\n const project = await getRepository<any>('projects').findOne({ where: { id: projectId } })\n const naming: string = project?.documentNaming || ''\n\n const latest = await getRepository(BuildingInspectionDailyWorklog)\n .createQueryBuilder('d')\n .where('d.project_id = :projectId', { projectId })\n .andWhere('d.document_no LIKE :pattern', { pattern: `${naming} 검측 제${DocumentNoType.DAILY_WORKLOG}-%` })\n .orderBy('d.created_at', 'DESC')\n .getOne()\n\n let sequence = '00001'\n if (latest?.documentNo) {\n const match = latest.documentNo.match(/\\-(\\d{5})호$/)\n if (match) sequence = (Number(match[1]) + 1).toString().padStart(5, '0')\n }\n\n return `${naming} 검측 제04-${sequence}호`\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
2
+ export declare class BuildingInspectionDailyWorklogPatch {
3
+ id?: string;
4
+ serialNo?: string;
5
+ date?: string;
6
+ memo?: string;
7
+ directive?: string;
8
+ }
9
+ export declare class BuildingInspectionDailyWorklogList {
10
+ items: BuildingInspectionDailyWorklog[];
11
+ total: number;
12
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BuildingInspectionDailyWorklogList = exports.BuildingInspectionDailyWorklogPatch = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const type_graphql_1 = require("type-graphql");
6
+ const building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
7
+ let BuildingInspectionDailyWorklogPatch = class BuildingInspectionDailyWorklogPatch {
8
+ };
9
+ exports.BuildingInspectionDailyWorklogPatch = BuildingInspectionDailyWorklogPatch;
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
+ ], BuildingInspectionDailyWorklogPatch.prototype, "id", void 0);
14
+ tslib_1.__decorate([
15
+ (0, type_graphql_1.Field)({ nullable: true }),
16
+ tslib_1.__metadata("design:type", String)
17
+ ], BuildingInspectionDailyWorklogPatch.prototype, "serialNo", void 0);
18
+ tslib_1.__decorate([
19
+ (0, type_graphql_1.Field)({ nullable: true }),
20
+ tslib_1.__metadata("design:type", String)
21
+ ], BuildingInspectionDailyWorklogPatch.prototype, "date", void 0);
22
+ tslib_1.__decorate([
23
+ (0, type_graphql_1.Field)({ nullable: true }),
24
+ tslib_1.__metadata("design:type", String)
25
+ ], BuildingInspectionDailyWorklogPatch.prototype, "memo", void 0);
26
+ tslib_1.__decorate([
27
+ (0, type_graphql_1.Field)({ nullable: true }),
28
+ tslib_1.__metadata("design:type", String)
29
+ ], BuildingInspectionDailyWorklogPatch.prototype, "directive", void 0);
30
+ exports.BuildingInspectionDailyWorklogPatch = BuildingInspectionDailyWorklogPatch = tslib_1.__decorate([
31
+ (0, type_graphql_1.InputType)()
32
+ ], BuildingInspectionDailyWorklogPatch);
33
+ let BuildingInspectionDailyWorklogList = class BuildingInspectionDailyWorklogList {
34
+ };
35
+ exports.BuildingInspectionDailyWorklogList = BuildingInspectionDailyWorklogList;
36
+ tslib_1.__decorate([
37
+ (0, type_graphql_1.Field)(type => [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog]),
38
+ tslib_1.__metadata("design:type", Array)
39
+ ], BuildingInspectionDailyWorklogList.prototype, "items", void 0);
40
+ tslib_1.__decorate([
41
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int),
42
+ tslib_1.__metadata("design:type", Number)
43
+ ], BuildingInspectionDailyWorklogList.prototype, "total", void 0);
44
+ exports.BuildingInspectionDailyWorklogList = BuildingInspectionDailyWorklogList = tslib_1.__decorate([
45
+ (0, type_graphql_1.ObjectType)()
46
+ ], BuildingInspectionDailyWorklogList);
47
+ //# sourceMappingURL=building-inspection-daily-worklog-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"building-inspection-daily-worklog-type.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,2FAAoF;AAG7E,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;CAe/C,CAAA;AAfY,kFAAmC;AAE9C;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACb;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACR;8CAdP,mCAAmC;IAD/C,IAAA,wBAAS,GAAE;GACC,mCAAmC,CAe/C;AAGM,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;CAM9C,CAAA;AANY,gFAAkC;AAE7C;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,kEAA8B,CAAC,CAAC;;iEACT;AAGvC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;iEACN;6CALF,kCAAkC;IAD9C,IAAA,yBAAU,GAAE;GACA,kCAAkC,CAM9C","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog'\n\n@InputType()\nexport class BuildingInspectionDailyWorklogPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n serialNo?: string\n\n @Field({ nullable: true })\n date?: string\n\n @Field({ nullable: true })\n memo?: string\n\n @Field({ nullable: true })\n directive?: string\n}\n\n@ObjectType()\nexport class BuildingInspectionDailyWorklogList {\n @Field(type => [BuildingInspectionDailyWorklog])\n items: BuildingInspectionDailyWorklog[]\n\n @Field(type => Int)\n total: number\n}\n"]}
@@ -0,0 +1,25 @@
1
+ import { Domain } from '@things-factory/shell';
2
+ import { User } from '@things-factory/auth-base';
3
+ export interface Worklog {
4
+ constructionType: string;
5
+ supervisoryTitle: string;
6
+ supervisorContent: string;
7
+ }
8
+ export declare class BuildingInspectionDailyWorklog {
9
+ readonly id: string;
10
+ domain?: Domain;
11
+ domainId?: string;
12
+ projectId: string;
13
+ documentNo?: string;
14
+ date?: string;
15
+ worklogs?: Worklog[];
16
+ memo?: string;
17
+ directiveMemo?: string;
18
+ createdAt?: Date;
19
+ updatedAt?: Date;
20
+ deletedAt?: Date;
21
+ creator?: User;
22
+ creatorId?: string;
23
+ updater?: User;
24
+ updaterId?: string;
25
+ }
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BuildingInspectionDailyWorklog = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ const type_graphql_1 = require("type-graphql");
7
+ const shell_1 = require("@things-factory/shell");
8
+ const auth_base_1 = require("@things-factory/auth-base");
9
+ let BuildingInspectionDailyWorklog = class BuildingInspectionDailyWorklog {
10
+ };
11
+ exports.BuildingInspectionDailyWorklog = BuildingInspectionDailyWorklog;
12
+ tslib_1.__decorate([
13
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
14
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
15
+ tslib_1.__metadata("design:type", String)
16
+ ], BuildingInspectionDailyWorklog.prototype, "id", void 0);
17
+ tslib_1.__decorate([
18
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
19
+ (0, type_graphql_1.Field)({ nullable: true }),
20
+ tslib_1.__metadata("design:type", shell_1.Domain)
21
+ ], BuildingInspectionDailyWorklog.prototype, "domain", void 0);
22
+ tslib_1.__decorate([
23
+ (0, typeorm_1.RelationId)((worklog) => worklog.domain),
24
+ tslib_1.__metadata("design:type", String)
25
+ ], BuildingInspectionDailyWorklog.prototype, "domainId", void 0);
26
+ tslib_1.__decorate([
27
+ (0, typeorm_1.Column)({ nullable: false, comment: '프로젝트 ID' }),
28
+ (0, type_graphql_1.Field)({ nullable: false }),
29
+ tslib_1.__metadata("design:type", String)
30
+ ], BuildingInspectionDailyWorklog.prototype, "projectId", void 0);
31
+ tslib_1.__decorate([
32
+ (0, typeorm_1.Column)({ nullable: true, comment: '문서번호 - {네이밍} 검측 제04-00001호)' }) // DocumentNoType 참조
33
+ ,
34
+ (0, type_graphql_1.Field)({ nullable: true }),
35
+ tslib_1.__metadata("design:type", String)
36
+ ], BuildingInspectionDailyWorklog.prototype, "documentNo", void 0);
37
+ tslib_1.__decorate([
38
+ (0, typeorm_1.Column)({ type: 'date', nullable: true, comment: '작성 날짜' }),
39
+ (0, type_graphql_1.Field)(type => String, { nullable: true }),
40
+ tslib_1.__metadata("design:type", String)
41
+ ], BuildingInspectionDailyWorklog.prototype, "date", void 0);
42
+ tslib_1.__decorate([
43
+ (0, typeorm_1.Column)({ type: 'simple-json', nullable: true, comment: '작업사항' }),
44
+ (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
45
+ tslib_1.__metadata("design:type", Array)
46
+ ], BuildingInspectionDailyWorklog.prototype, "worklogs", void 0);
47
+ tslib_1.__decorate([
48
+ (0, typeorm_1.Column)({ nullable: true, comment: '특기사항' }),
49
+ (0, type_graphql_1.Field)({ nullable: true }),
50
+ tslib_1.__metadata("design:type", String)
51
+ ], BuildingInspectionDailyWorklog.prototype, "memo", void 0);
52
+ tslib_1.__decorate([
53
+ (0, typeorm_1.Column)({ nullable: true, comment: '지적 사항 및 처리결과' }),
54
+ (0, type_graphql_1.Field)({ nullable: true }),
55
+ tslib_1.__metadata("design:type", String)
56
+ ], BuildingInspectionDailyWorklog.prototype, "directiveMemo", void 0);
57
+ tslib_1.__decorate([
58
+ (0, typeorm_1.CreateDateColumn)(),
59
+ (0, type_graphql_1.Field)({ nullable: true }),
60
+ tslib_1.__metadata("design:type", Date)
61
+ ], BuildingInspectionDailyWorklog.prototype, "createdAt", void 0);
62
+ tslib_1.__decorate([
63
+ (0, typeorm_1.UpdateDateColumn)(),
64
+ (0, type_graphql_1.Field)({ nullable: true }),
65
+ tslib_1.__metadata("design:type", Date)
66
+ ], BuildingInspectionDailyWorklog.prototype, "updatedAt", void 0);
67
+ tslib_1.__decorate([
68
+ (0, typeorm_1.DeleteDateColumn)(),
69
+ (0, type_graphql_1.Field)({ nullable: true }),
70
+ tslib_1.__metadata("design:type", Date)
71
+ ], BuildingInspectionDailyWorklog.prototype, "deletedAt", void 0);
72
+ tslib_1.__decorate([
73
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
74
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
75
+ tslib_1.__metadata("design:type", auth_base_1.User)
76
+ ], BuildingInspectionDailyWorklog.prototype, "creator", void 0);
77
+ tslib_1.__decorate([
78
+ (0, typeorm_1.RelationId)((worklog) => worklog.creator),
79
+ tslib_1.__metadata("design:type", String)
80
+ ], BuildingInspectionDailyWorklog.prototype, "creatorId", void 0);
81
+ tslib_1.__decorate([
82
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
83
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
84
+ tslib_1.__metadata("design:type", auth_base_1.User)
85
+ ], BuildingInspectionDailyWorklog.prototype, "updater", void 0);
86
+ tslib_1.__decorate([
87
+ (0, typeorm_1.RelationId)((worklog) => worklog.updater),
88
+ tslib_1.__metadata("design:type", String)
89
+ ], BuildingInspectionDailyWorklog.prototype, "updaterId", void 0);
90
+ exports.BuildingInspectionDailyWorklog = BuildingInspectionDailyWorklog = tslib_1.__decorate([
91
+ (0, typeorm_1.Entity)({ comment: '일일 업무일지' }),
92
+ (0, typeorm_1.Index)('ix_building_inspection_daily_worklog_0', (worklog) => [worklog.projectId, worklog.date], {
93
+ unique: true,
94
+ where: '"deleted_at" IS NULL'
95
+ }),
96
+ (0, type_graphql_1.ObjectType)({ description: 'Entity for BuildingInspectionDailyWorklog' })
97
+ ], BuildingInspectionDailyWorklog);
98
+ //# sourceMappingURL=building-inspection-daily-worklog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"building-inspection-daily-worklog.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.ts"],"names":[],"mappings":";;;;AAAA,qCAUgB;AAChB,+CAAoD;AAEpD,iDAA4D;AAC5D,yDAAgD;AAczC,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;CA6D1C,CAAA;AA7DY,wEAA8B;AAGhC;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACnB;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;8DAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,OAAuC,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;;gEACvD;AAIjB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAC/C,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iEACT;AAIlB;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC,CAAC,oBAAoB;;IACvF,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE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AI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;+DAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,OAAuC,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;iEACvD;AAIlB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC9B,gBAAI;+DAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,OAAuC,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;iEACvD;yCA5DP,8BAA8B;IAN1C,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAC9B,IAAA,eAAK,EAAC,wCAAwC,EAAE,CAAC,OAAuC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE;QAC/H,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,2CAA2C,EAAE,CAAC;GAC5D,8BAA8B,CA6D1C","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n PrimaryGeneratedColumn\n} from 'typeorm'\nimport { ObjectType, Field, ID } from 'type-graphql'\n\nimport { Domain, ScalarObject } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\n\nexport interface Worklog {\n constructionType: string\n supervisoryTitle: string\n supervisorContent: string\n}\n\n@Entity({ comment: '일일 업무일지' })\n@Index('ix_building_inspection_daily_worklog_0', (worklog: BuildingInspectionDailyWorklog) => [worklog.projectId, worklog.date], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for BuildingInspectionDailyWorklog' })\nexport class BuildingInspectionDailyWorklog {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { nullable: true })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((worklog: BuildingInspectionDailyWorklog) => worklog.domain)\n domainId?: string\n\n @Column({ nullable: false, comment: '프로젝트 ID' })\n @Field({ nullable: false })\n projectId!: string\n\n @Column({ nullable: true, comment: '문서번호 - {네이밍} 검측 제04-00001호)' }) // DocumentNoType 참조\n @Field({ nullable: true })\n documentNo?: string\n\n @Column({ type: 'date', nullable: true, comment: '작성 날짜' })\n @Field(type => String, { nullable: true })\n date?: string\n\n @Column({ type: 'simple-json', nullable: true, comment: '작업사항' })\n @Field(type => ScalarObject, { nullable: true })\n worklogs?: Worklog[]\n\n @Column({ nullable: true, comment: '특기사항' })\n @Field({ nullable: true })\n memo?: string\n\n @Column({ nullable: true, comment: '지적 사항 및 처리결과' })\n @Field({ nullable: true })\n directiveMemo?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((worklog: BuildingInspectionDailyWorklog) => worklog.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((worklog: BuildingInspectionDailyWorklog) => worklog.updater)\n updaterId?: string\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog';
2
+ import { BuildingInspectionDailyWorklogQuery } from './building-inspection-daily-worklog-query';
3
+ import { BuildingInspectionDailyWorklogMutation } from './building-inspection-daily-worklog-mutation';
4
+ export declare const entities: (typeof BuildingInspectionDailyWorklog)[];
5
+ export declare const resolvers: (typeof BuildingInspectionDailyWorklogQuery | typeof BuildingInspectionDailyWorklogMutation)[];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolvers = exports.entities = void 0;
4
+ const building_inspection_daily_worklog_1 = require("./building-inspection-daily-worklog");
5
+ const building_inspection_daily_worklog_query_1 = require("./building-inspection-daily-worklog-query");
6
+ const building_inspection_daily_worklog_mutation_1 = require("./building-inspection-daily-worklog-mutation");
7
+ exports.entities = [building_inspection_daily_worklog_1.BuildingInspectionDailyWorklog];
8
+ exports.resolvers = [building_inspection_daily_worklog_query_1.BuildingInspectionDailyWorklogQuery, building_inspection_daily_worklog_mutation_1.BuildingInspectionDailyWorklogMutation];
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/building-inspection-daily-worklog/index.ts"],"names":[],"mappings":";;;AAAA,2FAAoF;AACpF,uGAA+F;AAC/F,6GAAqG;AAExF,QAAA,QAAQ,GAAG,CAAC,kEAA8B,CAAC,CAAA;AAC3C,QAAA,SAAS,GAAG,CAAC,6EAAmC,EAAE,mFAAsC,CAAC,CAAA","sourcesContent":["import { BuildingInspectionDailyWorklog } from './building-inspection-daily-worklog'\nimport { BuildingInspectionDailyWorklogQuery } from './building-inspection-daily-worklog-query'\nimport { BuildingInspectionDailyWorklogMutation } from './building-inspection-daily-worklog-mutation'\n\nexport const entities = [BuildingInspectionDailyWorklog]\nexport const resolvers = [BuildingInspectionDailyWorklogQuery, BuildingInspectionDailyWorklogMutation]\n\n\n"]}
@@ -4,11 +4,13 @@ import { Checklist } from './checklist';
4
4
  import { ChecklistList } from './checklist-type';
5
5
  import { ChecklistItem } from '../checklist-item/checklist-item';
6
6
  import { BuildingInspection } from '../building-inspection/building-inspection';
7
+ import { Attachment } from '@things-factory/attachment-base';
7
8
  export declare class ChecklistQuery {
8
9
  checklist(id: string, context: ResolverContext): Promise<Checklist>;
9
10
  checklists(params: ListParam, context: ResolverContext): Promise<ChecklistList>;
10
11
  checklistItems(checklist: Checklist): Promise<ChecklistItem[]>;
11
12
  buildingInspection(checklist: Checklist): Promise<BuildingInspection>;
13
+ nameListAttachment(checklist: Checklist): Promise<Attachment | null>;
12
14
  taskConstructor(checklist: Checklist): Promise<User>;
13
15
  overallConstructor(checklist: Checklist): Promise<User>;
14
16
  taskSupervisory(checklist: Checklist): Promise<User>;
@@ -9,6 +9,7 @@ const checklist_1 = require("./checklist");
9
9
  const checklist_type_1 = require("./checklist-type");
10
10
  const checklist_item_1 = require("../checklist-item/checklist-item");
11
11
  const building_inspection_1 = require("../building-inspection/building-inspection");
12
+ const attachment_base_1 = require("@things-factory/attachment-base");
12
13
  let ChecklistQuery = class ChecklistQuery {
13
14
  async checklist(id, context) {
14
15
  const { domain } = context.state;
@@ -36,6 +37,9 @@ let ChecklistQuery = class ChecklistQuery {
36
37
  async buildingInspection(checklist) {
37
38
  return await (0, shell_1.getRepository)(building_inspection_1.BuildingInspection).findOneBy({ checklist: { id: checklist.id } });
38
39
  }
40
+ async nameListAttachment(checklist) {
41
+ return await (0, shell_1.getRepository)(attachment_base_1.Attachment).findOneBy({ refBy: checklist.id, refType: 'Checklist_NameList' });
42
+ }
39
43
  async taskConstructor(checklist) {
40
44
  if (!checklist.taskConstructorId)
41
45
  return null;
@@ -98,6 +102,13 @@ tslib_1.__decorate([
98
102
  tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
99
103
  tslib_1.__metadata("design:returntype", Promise)
100
104
  ], ChecklistQuery.prototype, "buildingInspection", null);
105
+ tslib_1.__decorate([
106
+ (0, type_graphql_1.FieldResolver)(type => attachment_base_1.Attachment, { nullable: true }),
107
+ tslib_1.__param(0, (0, type_graphql_1.Root)()),
108
+ tslib_1.__metadata("design:type", Function),
109
+ tslib_1.__metadata("design:paramtypes", [checklist_1.Checklist]),
110
+ tslib_1.__metadata("design:returntype", Promise)
111
+ ], ChecklistQuery.prototype, "nameListAttachment", null);
101
112
  tslib_1.__decorate([
102
113
  (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
103
114
  tslib_1.__param(0, (0, type_graphql_1.Root)()),
@@ -1 +1 @@
1
- {"version":3,"file":"checklist-query.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,iDAA+F;AAC/F,yDAAgD;AAChD,2CAAuC;AACvC,qDAAgD;AAChD,qEAAgE;AAChE,oFAA+E;AAGxE,IAAM,cAAc,GAApB,MAAM,cAAc;IAEnB,AAAN,KAAK,CAAC,SAAS,CAAY,EAAU,EAAS,OAAwB;QACpE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,qBAAa,EAAC,qBAAS,CAAC,CAAC,OAAO,CAAC;YAC5C,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CAAS,MAAiB,EAAS,OAAwB;QACzE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,qBAAS,CAAC;YAC1C,WAAW,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;SACrC,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,cAAc,CAAS,SAAoB;QAC/C,OAAO,M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AI,GAAE,CAAA;;6CAAY,qBAAS;;oDAMhD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,wCAAkB,CAAC;IAChB,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;wDAEpD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACL,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;qDAGjD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACF,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;wDAGpD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACL,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;qDAGjD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACF,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;wDAGpD;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;6CAGzC;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;6CAGzC;yBAzEU,cAAc;IAD1B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,cAAc,CA0E1B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Checklist } from './checklist'\nimport { ChecklistList } from './checklist-type'\nimport { ChecklistItem } from '../checklist-item/checklist-item'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\n\n@Resolver(Checklist)\nexport class ChecklistQuery {\n @Query(returns => Checklist!, { nullable: true, description: 'To fetch a Checklist' })\n async checklist(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<Checklist> {\n const { domain } = context.state\n\n return await getRepository(Checklist).findOne({\n where: { id }\n })\n }\n\n @Query(returns => ChecklistList, { description: 'To fetch multiple Checklists' })\n async checklists(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(Checklist),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => [ChecklistItem])\n async checklistItems(@Root() checklist: Checklist): Promise<ChecklistItem[]> {\n return await getRepository(ChecklistItem)\n .createQueryBuilder('ci')\n .where('ci.checklist_id = :checklistId', { checklistId: checklist.id })\n .orderBy('ci.sequence', 'ASC')\n .getMany()\n }\n\n @FieldResolver(type => BuildingInspection)\n async buildingInspection(@Root() checklist: Checklist): Promise<BuildingInspection> {\n return await getRepository(BuildingInspection).findOneBy({ checklist: { id: checklist.id } })\n }\n\n @FieldResolver(type => User)\n async taskConstructor(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.taskConstructorId) return null\n return await getRepository(User).findOneBy({ id: checklist.taskConstructorId })\n }\n\n @FieldResolver(type => User)\n async overallConstructor(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.overallConstructorId) return null\n return await getRepository(User).findOneBy({ id: checklist.overallConstructorId })\n }\n\n @FieldResolver(type => User)\n async taskSupervisory(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.taskSupervisoryId) return null\n return await getRepository(User).findOneBy({ id: checklist.taskSupervisoryId })\n }\n\n @FieldResolver(type => User)\n async overallSupervisory(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.overallSupervisoryId) return null\n return await getRepository(User).findOneBy({ id: checklist.overallSupervisoryId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.updaterId) return null\n return await getRepository(User).findOneBy({ id: checklist.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.creatorId) return null\n return await getRepository(User).findOneBy({ id: checklist.creatorId })\n }\n}\n"]}
1
+ {"version":3,"file":"checklist-query.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmF;AACnF,iDAA+F;AAC/F,yDAAgD;AAChD,2CAAuC;AACvC,qDAAgD;AAChD,qEAAgE;AAChE,oFAA+E;AAC/E,qEAA4D;AAGrD,IAAM,cAAc,GAApB,MAAM,cAAc;IAEnB,AAAN,KAAK,CAAC,SAAS,CAAY,EAAU,EAAS,OAAwB;QACpE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,qBAAa,EAAC,qBAAS,CAAC,CAAC,OAAO,CAAC;YAC5C,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CAAS,MAAiB,EAAS,OAAwB;QACzE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,MAAM,YAAY,GAAG,IAAA,qCAA6B,EAAC;YACjD,MAAM;YACN,UAAU,EAAE,MAAM,IAAA,qBAAa,EAAC,qBAAS,CAAC;YAC1C,WAAW,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;SACrC,CAAC,CAAA;QAEF,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,cAAc,CAAS,SAAoB;QAC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Aa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,mBAAA,IAAA,mBAAI,GAAE,CAAA;;6CAAY,qBAAS;;6CAGzC;yBA9EU,cAAc;IAD1B,IAAA,uBAAQ,EAAC,qBAAS,CAAC;GACP,cAAc,CA+E1B","sourcesContent":["import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'\nimport { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Checklist } from './checklist'\nimport { ChecklistList } from './checklist-type'\nimport { ChecklistItem } from '../checklist-item/checklist-item'\nimport { BuildingInspection } from '../building-inspection/building-inspection'\nimport { Attachment } from '@things-factory/attachment-base'\n\n@Resolver(Checklist)\nexport class ChecklistQuery {\n @Query(returns => Checklist!, { nullable: true, description: 'To fetch a Checklist' })\n async checklist(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<Checklist> {\n const { domain } = context.state\n\n return await getRepository(Checklist).findOne({\n where: { id }\n })\n }\n\n @Query(returns => ChecklistList, { description: 'To fetch multiple Checklists' })\n async checklists(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistList> {\n const { domain } = context.state\n\n const queryBuilder = getQueryBuilderFromListParams({\n params,\n repository: await getRepository(Checklist),\n searchables: ['name', 'description']\n })\n\n const [items, total] = await queryBuilder.getManyAndCount()\n\n return { items, total }\n }\n\n @FieldResolver(type => [ChecklistItem])\n async checklistItems(@Root() checklist: Checklist): Promise<ChecklistItem[]> {\n return await getRepository(ChecklistItem)\n .createQueryBuilder('ci')\n .where('ci.checklist_id = :checklistId', { checklistId: checklist.id })\n .orderBy('ci.sequence', 'ASC')\n .getMany()\n }\n\n @FieldResolver(type => BuildingInspection)\n async buildingInspection(@Root() checklist: Checklist): Promise<BuildingInspection> {\n return await getRepository(BuildingInspection).findOneBy({ checklist: { id: checklist.id } })\n }\n\n @FieldResolver(type => Attachment, { nullable: true })\n async nameListAttachment(@Root() checklist: Checklist): Promise<Attachment | null> {\n return await getRepository(Attachment).findOneBy({ refBy: checklist.id, refType: 'Checklist_NameList' })\n }\n\n @FieldResolver(type => User)\n async taskConstructor(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.taskConstructorId) return null\n return await getRepository(User).findOneBy({ id: checklist.taskConstructorId })\n }\n\n @FieldResolver(type => User)\n async overallConstructor(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.overallConstructorId) return null\n return await getRepository(User).findOneBy({ id: checklist.overallConstructorId })\n }\n\n @FieldResolver(type => User)\n async taskSupervisory(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.taskSupervisoryId) return null\n return await getRepository(User).findOneBy({ id: checklist.taskSupervisoryId })\n }\n\n @FieldResolver(type => User)\n async overallSupervisory(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.overallSupervisoryId) return null\n return await getRepository(User).findOneBy({ id: checklist.overallSupervisoryId })\n }\n\n @FieldResolver(type => User)\n async updater(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.updaterId) return null\n return await getRepository(User).findOneBy({ id: checklist.updaterId })\n }\n\n @FieldResolver(type => User)\n async creator(@Root() checklist: Checklist): Promise<User> {\n if (!checklist.creatorId) return null\n return await getRepository(User).findOneBy({ id: checklist.creatorId })\n }\n}\n"]}
@@ -6,6 +6,21 @@ export declare enum ChecklistReferenceType {
6
6
  INSPECTION = "INSPECTION",// 검측
7
7
  TASK = "TASK"
8
8
  }
9
+ export declare enum DocumentNoType {
10
+ CHECKLIST = "01",// 체크리스트
11
+ INSPECTION_REQUEST = "02",// 검측 요청서
12
+ INSPECTION_RESULT = "03",// 검측 결과 통보서
13
+ DAILY_WORKLOG = "04"
14
+ }
15
+ export declare enum InspectionResultStatus {
16
+ PASS = "PASS",// 합격
17
+ FAIL = "FAIL"
18
+ }
19
+ export declare enum InspectionResultType {
20
+ GENERAL = "GENERAL",// 일반
21
+ FOCUS = "FOCUS",// 중점
22
+ CONCEALED_WORK = "CONCEALED_WORK"
23
+ }
9
24
  export declare class Checklist {
10
25
  readonly id: string;
11
26
  name?: string;
@@ -33,6 +48,14 @@ export declare class Checklist {
33
48
  taskSupervisoryId?: string;
34
49
  checklistItems?: ChecklistItem[];
35
50
  buildingInspection?: BuildingInspection;
51
+ inspectionRequestDocumentNo?: string;
52
+ inspectionRequestMemo?: string;
53
+ inspectionRequestUpdatedAt?: Date;
54
+ inspectionResultDocumentNo?: string;
55
+ inspectionResultMemo?: string;
56
+ inspectionResultStatus?: InspectionResultStatus;
57
+ inspectionResultType?: InspectionResultType;
58
+ inspectionResultUpdatedAt?: Date;
36
59
  createdAt?: Date;
37
60
  updatedAt?: Date;
38
61
  deletedAt?: Date;