@dssp/supervision 1.0.0-alpha.4 → 1.0.0-alpha.41

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 (217) hide show
  1. package/dist-client/graphql/building-inspection.d.ts +1 -0
  2. package/dist-client/graphql/building-inspection.js +100 -0
  3. package/dist-client/graphql/building-inspection.js.map +1 -0
  4. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +9 -0
  5. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +130 -72
  6. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -1
  7. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +1 -0
  8. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +77 -14
  9. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -1
  10. package/dist-client/pages/building-inspection/building-inspection-list.d.ts +18 -2
  11. package/dist-client/pages/building-inspection/building-inspection-list.js +360 -28
  12. package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -1
  13. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +31 -9
  14. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -1
  15. package/dist-client/pages/building-inspection/component/daily-worklog-popup.d.ts +27 -0
  16. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js +542 -0
  17. package/dist-client/pages/building-inspection/component/daily-worklog-popup.js.map +1 -0
  18. package/dist-client/pages/building-inspection/component/image-preview-popup.d.ts +15 -0
  19. package/dist-client/pages/building-inspection/component/image-preview-popup.js +351 -0
  20. package/dist-client/pages/building-inspection/component/image-preview-popup.js.map +1 -0
  21. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.d.ts +20 -0
  22. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js +432 -0
  23. package/dist-client/pages/building-inspection/component/inspection-document/inspection-request-document.js.map +1 -0
  24. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.d.ts +30 -0
  25. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js +479 -0
  26. package/dist-client/pages/building-inspection/component/inspection-document/inspection-result-notification.js.map +1 -0
  27. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.d.ts +27 -0
  28. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js +401 -0
  29. package/dist-client/pages/building-inspection/component/inspection-document/photo-album-popup.js.map +1 -0
  30. package/dist-client/pages/building-inspection/component/inspection-event-provider.d.ts +2 -1
  31. package/dist-client/pages/building-inspection/component/inspection-event-provider.js +39 -17
  32. package/dist-client/pages/building-inspection/component/inspection-event-provider.js.map +1 -1
  33. package/dist-client/pages/building-inspection/inspection-create-popup.js +22 -9
  34. package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -1
  35. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.d.ts +60 -0
  36. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js +1132 -0
  37. package/dist-client/pages/building-inspection-grid/building-inspection-grid-detail.js.map +1 -0
  38. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.d.ts +2 -0
  39. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js +740 -0
  40. package/dist-client/pages/building-inspection-grid/component/grid-inspection-create-popup.js.map +1 -0
  41. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.d.ts +19 -0
  42. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js +205 -0
  43. package/dist-client/pages/building-inspection-grid/component/grid-inspection-list-layer.js.map +1 -0
  44. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.d.ts +1 -0
  45. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js +304 -0
  46. package/dist-client/pages/building-inspection-grid/component/notice-comment-popup.js.map +1 -0
  47. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.d.ts +15 -0
  48. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js +430 -0
  49. package/dist-client/pages/building-inspection-grid/component/plan-preview-popup.js.map +1 -0
  50. package/dist-client/pages/checklist/attachment-list-popup.d.ts +1 -0
  51. package/dist-client/pages/checklist/attachment-list-popup.js +250 -67
  52. package/dist-client/pages/checklist/attachment-list-popup.js.map +1 -1
  53. package/dist-client/pages/checklist/checklist-view.d.ts +7 -0
  54. package/dist-client/pages/checklist/checklist-view.js +363 -185
  55. package/dist-client/pages/checklist/checklist-view.js.map +1 -1
  56. package/dist-client/pages/checklist/comment-list-popup.js +14 -3
  57. package/dist-client/pages/checklist/comment-list-popup.js.map +1 -1
  58. package/dist-client/pages/checklist/file-preview-popup.js +0 -1
  59. package/dist-client/pages/checklist/file-preview-popup.js.map +1 -1
  60. package/dist-client/pages/checklist/inspection-info-popup.d.ts +50 -0
  61. package/dist-client/pages/checklist/inspection-info-popup.js +684 -0
  62. package/dist-client/pages/checklist/inspection-info-popup.js.map +1 -0
  63. package/dist-client/pages/checklist/inspection-tab-popup.d.ts +18 -0
  64. package/dist-client/pages/checklist/inspection-tab-popup.js +196 -0
  65. package/dist-client/pages/checklist/inspection-tab-popup.js.map +1 -0
  66. package/dist-client/pages/checklist-template/checklist-template-item.js +8 -3
  67. package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -1
  68. package/dist-client/pages/checklist-template/checklist-template-list.js +2 -2
  69. package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -1
  70. package/dist-client/route.d.ts +1 -1
  71. package/dist-client/route.js +3 -0
  72. package/dist-client/route.js.map +1 -1
  73. package/dist-client/stt/speech-to-text.d.ts +36 -0
  74. package/dist-client/stt/speech-to-text.js +89 -0
  75. package/dist-client/stt/speech-to-text.js.map +1 -0
  76. package/dist-client/stt/stt-utils.d.ts +28 -0
  77. package/dist-client/stt/stt-utils.js +146 -0
  78. package/dist-client/stt/stt-utils.js.map +1 -0
  79. package/dist-client/tsconfig.tsbuildinfo +1 -1
  80. package/dist-server/service/action-plan/index.d.ts +0 -1
  81. package/dist-server/service/action-plan/index.js +1 -2
  82. package/dist-server/service/action-plan/index.js.map +1 -1
  83. package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +3 -3
  84. package/dist-server/service/building-inspection/building-inspection-mutation.js +145 -34
  85. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -1
  86. package/dist-server/service/building-inspection/building-inspection-query.d.ts +3 -4
  87. package/dist-server/service/building-inspection/building-inspection-query.js +46 -30
  88. package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -1
  89. package/dist-server/service/building-inspection/building-inspection-type.d.ts +28 -9
  90. package/dist-server/service/building-inspection/building-inspection-type.js +96 -17
  91. package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -1
  92. package/dist-server/service/building-inspection/building-inspection.d.ts +13 -0
  93. package/dist-server/service/building-inspection/building-inspection.js +55 -2
  94. package/dist-server/service/building-inspection/building-inspection.js.map +1 -1
  95. package/dist-server/service/building-inspection/index.d.ts +4 -7
  96. package/dist-server/service/building-inspection/index.js +11 -6
  97. package/dist-server/service/building-inspection/index.js.map +1 -1
  98. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.d.ts +6 -0
  99. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js +56 -0
  100. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-mutation.js.map +1 -0
  101. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.d.ts +16 -0
  102. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js +171 -0
  103. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-query.js.map +1 -0
  104. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.d.ts +23 -0
  105. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js +90 -0
  106. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog-type.js.map +1 -0
  107. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.d.ts +33 -0
  108. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js +132 -0
  109. package/dist-server/service/building-inspection-daily-worklog/building-inspection-daily-worklog.js.map +1 -0
  110. package/dist-server/service/building-inspection-daily-worklog/index.d.ts +5 -0
  111. package/dist-server/service/building-inspection-daily-worklog/index.js +9 -0
  112. package/dist-server/service/building-inspection-daily-worklog/index.js.map +1 -0
  113. package/dist-server/service/building-inspection-history/building-inspection-history-query.d.ts +16 -0
  114. package/dist-server/service/building-inspection-history/building-inspection-history-query.js +120 -0
  115. package/dist-server/service/building-inspection-history/building-inspection-history-query.js.map +1 -0
  116. package/dist-server/service/building-inspection-history/building-inspection-history-type.d.ts +5 -0
  117. package/dist-server/service/building-inspection-history/building-inspection-history-type.js +21 -0
  118. package/dist-server/service/building-inspection-history/building-inspection-history-type.js.map +1 -0
  119. package/dist-server/service/building-inspection-history/building-inspection-history.d.ts +34 -0
  120. package/dist-server/service/building-inspection-history/building-inspection-history.js +157 -0
  121. package/dist-server/service/building-inspection-history/building-inspection-history.js.map +1 -0
  122. package/dist-server/service/{building-inspection → building-inspection-history}/event-subscriber.d.ts +1 -1
  123. package/dist-server/service/{building-inspection → building-inspection-history}/event-subscriber.js +1 -1
  124. package/dist-server/service/building-inspection-history/event-subscriber.js.map +1 -0
  125. package/dist-server/service/building-inspection-history/index.d.ts +6 -0
  126. package/dist-server/service/building-inspection-history/index.js +10 -0
  127. package/dist-server/service/building-inspection-history/index.js.map +1 -0
  128. package/dist-server/service/checklist/checklist-mutation.d.ts +0 -5
  129. package/dist-server/service/checklist/checklist-mutation.js +1 -67
  130. package/dist-server/service/checklist/checklist-mutation.js.map +1 -1
  131. package/dist-server/service/checklist/checklist-query.d.ts +6 -0
  132. package/dist-server/service/checklist/checklist-query.js +63 -0
  133. package/dist-server/service/checklist/checklist-query.js.map +1 -1
  134. package/dist-server/service/checklist/checklist-type.d.ts +0 -13
  135. package/dist-server/service/checklist/checklist-type.js +1 -49
  136. package/dist-server/service/checklist/checklist-type.js.map +1 -1
  137. package/dist-server/service/checklist/checklist.d.ts +38 -3
  138. package/dist-server/service/checklist/checklist.js +131 -15
  139. package/dist-server/service/checklist/checklist.js.map +1 -1
  140. package/dist-server/service/checklist/event-subscriber.d.ts +2 -2
  141. package/dist-server/service/checklist/event-subscriber.js +2 -2
  142. package/dist-server/service/checklist/event-subscriber.js.map +1 -1
  143. package/dist-server/service/checklist/index.d.ts +1 -4
  144. package/dist-server/service/checklist/index.js +2 -5
  145. package/dist-server/service/checklist/index.js.map +1 -1
  146. package/dist-server/service/checklist-history/checklist-history-query.d.ts +11 -0
  147. package/dist-server/service/checklist-history/checklist-history-query.js +77 -0
  148. package/dist-server/service/checklist-history/checklist-history-query.js.map +1 -0
  149. package/dist-server/service/checklist-history/checklist-history-type.d.ts +5 -0
  150. package/dist-server/service/checklist-history/checklist-history-type.js +21 -0
  151. package/dist-server/service/checklist-history/checklist-history-type.js.map +1 -0
  152. package/dist-server/service/checklist-history/checklist-history.d.ts +50 -0
  153. package/dist-server/service/checklist-history/checklist-history.js +239 -0
  154. package/dist-server/service/checklist-history/checklist-history.js.map +1 -0
  155. package/dist-server/service/checklist-history/event-subscriber.d.ts +7 -0
  156. package/dist-server/service/checklist-history/event-subscriber.js +21 -0
  157. package/dist-server/service/checklist-history/event-subscriber.js.map +1 -0
  158. package/dist-server/service/checklist-history/index.d.ts +6 -0
  159. package/dist-server/service/checklist-history/index.js +10 -0
  160. package/dist-server/service/checklist-history/index.js.map +1 -0
  161. package/dist-server/service/checklist-item/checklist-item-query.d.ts +1 -1
  162. package/dist-server/service/checklist-item/checklist-item-query.js +5 -3
  163. package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -1
  164. package/dist-server/service/checklist-item/index.d.ts +0 -1
  165. package/dist-server/service/checklist-item/index.js +1 -2
  166. package/dist-server/service/checklist-item/index.js.map +1 -1
  167. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.d.ts +1 -0
  168. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js +33 -6
  169. package/dist-server/service/checklist-item-comment/checklist-item-comment-mutation.js.map +1 -1
  170. package/dist-server/service/checklist-item-comment/index.d.ts +0 -2
  171. package/dist-server/service/checklist-item-comment/index.js +1 -3
  172. package/dist-server/service/checklist-item-comment/index.js.map +1 -1
  173. package/dist-server/service/checklist-item-history/checklist-item-history-query.d.ts +16 -0
  174. package/dist-server/service/checklist-item-history/checklist-item-history-query.js +123 -0
  175. package/dist-server/service/checklist-item-history/checklist-item-history-query.js.map +1 -0
  176. package/dist-server/service/checklist-item-history/checklist-item-history-type.d.ts +5 -0
  177. package/dist-server/service/checklist-item-history/checklist-item-history-type.js +21 -0
  178. package/dist-server/service/checklist-item-history/checklist-item-history-type.js.map +1 -0
  179. package/dist-server/service/checklist-item-history/checklist-item-history.d.ts +25 -0
  180. package/dist-server/service/checklist-item-history/checklist-item-history.js +123 -0
  181. package/dist-server/service/checklist-item-history/checklist-item-history.js.map +1 -0
  182. package/dist-server/service/checklist-item-history/event-subscriber.d.ts +7 -0
  183. package/dist-server/service/checklist-item-history/event-subscriber.js +21 -0
  184. package/dist-server/service/checklist-item-history/event-subscriber.js.map +1 -0
  185. package/dist-server/service/checklist-item-history/index.d.ts +6 -0
  186. package/dist-server/service/checklist-item-history/index.js +10 -0
  187. package/dist-server/service/checklist-item-history/index.js.map +1 -0
  188. package/dist-server/service/checklist-template-item/checklist-template-item.js +2 -4
  189. package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -1
  190. package/dist-server/service/index.d.ts +4 -2
  191. package/dist-server/service/index.js +22 -13
  192. package/dist-server/service/index.js.map +1 -1
  193. package/dist-server/service/issue/index.d.ts +0 -1
  194. package/dist-server/service/issue/index.js +1 -2
  195. package/dist-server/service/issue/index.js.map +1 -1
  196. package/dist-server/service/project-report/index.d.ts +0 -1
  197. package/dist-server/service/project-report/index.js +1 -2
  198. package/dist-server/service/project-report/index.js.map +1 -1
  199. package/dist-server/service/project-report/project-report.d.ts +0 -2
  200. package/dist-server/service/project-report/project-report.js +0 -6
  201. package/dist-server/service/project-report/project-report.js.map +1 -1
  202. package/dist-server/service/supervisor/index.d.ts +0 -1
  203. package/dist-server/service/supervisor/index.js +1 -2
  204. package/dist-server/service/supervisor/index.js.map +1 -1
  205. package/dist-server/tsconfig.tsbuildinfo +1 -1
  206. package/package.json +13 -13
  207. package/things-factory.config.js +3 -1
  208. package/dist-server/service/building-inspection/building-inspection-history.d.ts +0 -17
  209. package/dist-server/service/building-inspection/building-inspection-history.js +0 -86
  210. package/dist-server/service/building-inspection/building-inspection-history.js.map +0 -1
  211. package/dist-server/service/building-inspection/event-subscriber.js.map +0 -1
  212. package/dist-server/service/checklist/checklist-history.d.ts +0 -24
  213. package/dist-server/service/checklist/checklist-history.js +0 -120
  214. package/dist-server/service/checklist/checklist-history.js.map +0 -1
  215. package/dist-server/service/checklist-item-comment/event-subscriber.d.ts +0 -7
  216. package/dist-server/service/checklist-item-comment/event-subscriber.js +0 -21
  217. package/dist-server/service/checklist-item-comment/event-subscriber.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dssp/supervision",
3
- "version": "1.0.0-alpha.4",
3
+ "version": "1.0.0-alpha.41",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -27,17 +27,17 @@
27
27
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
28
28
  },
29
29
  "dependencies": {
30
- "@dssp/building-complex": "^1.0.0-alpha.2",
31
- "@dssp/drawing": "^1.0.0-alpha.3",
32
- "@dssp/project": "^1.0.0-alpha.2",
33
- "@operato/event-view": "^9.0.0-beta",
34
- "@operato/graphql": "^9.0.0-beta",
35
- "@operato/image-marker": "^9.0.0-beta",
36
- "@operato/input": "^9.0.0-beta",
37
- "@operato/mini-map": "^9.0.0-beta",
38
- "@operato/shell": "^9.0.0-beta",
39
- "@things-factory/auth-base": "^9.0.0-beta",
40
- "@things-factory/shell": "^9.0.0-beta"
30
+ "@dssp/building-complex": "^1.0.0-alpha.35",
31
+ "@dssp/drawing": "^1.0.0-alpha.41",
32
+ "@operato/event-view": "^9.0.0",
33
+ "@operato/graphql": "^9.0.0",
34
+ "@operato/image-marker": "^9.0.0",
35
+ "@operato/input": "^9.0.0",
36
+ "@operato/mini-map": "^9.0.0",
37
+ "@operato/shell": "^9.0.0",
38
+ "@things-factory/auth-base": "^9.0.0",
39
+ "@things-factory/shell": "^9.0.0",
40
+ "moment": "2.30.1"
41
41
  },
42
- "gitHead": "0f09763fce8241fc258dee39f93f49e7db9e577c"
42
+ "gitHead": "d70f038bc3fb326c17f710beeb13594407a244e5"
43
43
  }
@@ -9,7 +9,9 @@ export default {
9
9
  'building-inspection-list', // 층 검측 현황
10
10
  'building-inspection-detail-drawing', // 층 검측 상세 - 검측 도면
11
11
  'building-inspection-detail-checklist', // 층 검측 상세 - 검측 체크리스트
12
- 'building-inspection-detail-camera' // 층 검측 상세 - 사진 촬영
12
+ 'building-inspection-detail-camera', // 층 검측 상세 - 사진 촬영
13
+
14
+ 'building-inspection-grid-detail' // 동별 시공검측 상세 정보 (단국대)
13
15
  ].map(page => {
14
16
  return {
15
17
  page,
@@ -1,17 +0,0 @@
1
- import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
2
- import { User } from '@things-factory/auth-base';
3
- import { BuildingInspection, BuildingInspectionStatus } from './building-inspection';
4
- import { BuildingLevel } from '@dssp/building-complex';
5
- export declare class BuildingInspectionHistory implements HistoryEntityInterface<BuildingInspection> {
6
- readonly id: string;
7
- originalId: string;
8
- status?: BuildingInspectionStatus;
9
- buildingLevel?: BuildingLevel;
10
- buildingLevelId?: string;
11
- requestDate?: string;
12
- checklistId: string;
13
- createdAt?: Date;
14
- creator?: User;
15
- creatorId?: string;
16
- action: HistoryActionType;
17
- }
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BuildingInspectionHistory = 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 building_inspection_1 = require("./building-inspection");
11
- const building_complex_1 = require("@dssp/building-complex");
12
- const ORMCONFIG = env_1.config.get('ormconfig', {});
13
- const DATABASE_TYPE = ORMCONFIG.type;
14
- let BuildingInspectionHistory = class BuildingInspectionHistory {
15
- };
16
- exports.BuildingInspectionHistory = BuildingInspectionHistory;
17
- tslib_1.__decorate([
18
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
19
- (0, type_graphql_1.Field)(type => type_graphql_1.ID),
20
- tslib_1.__metadata("design:type", String)
21
- ], BuildingInspectionHistory.prototype, "id", void 0);
22
- tslib_1.__decorate([
23
- (0, typeorm_history_1.HistoryOriginalIdColumn)(),
24
- tslib_1.__metadata("design:type", String)
25
- ], BuildingInspectionHistory.prototype, "originalId", void 0);
26
- tslib_1.__decorate([
27
- (0, typeorm_1.Column)({
28
- nullable: false,
29
- comment: '상태(WAIT: 검측 대기, OVERALL_WAIT: 총괄자 검측 대기, REQUEST: 검측 요청, OVERALL_REQUEST: 총괄자 검측 요청, PASS: 합격, FAIL: 불합격)'
30
- }),
31
- (0, type_graphql_1.Field)({ nullable: true }),
32
- tslib_1.__metadata("design:type", String)
33
- ], BuildingInspectionHistory.prototype, "status", void 0);
34
- tslib_1.__decorate([
35
- (0, typeorm_1.ManyToOne)(type => building_complex_1.BuildingLevel),
36
- (0, type_graphql_1.Field)({ nullable: true }),
37
- tslib_1.__metadata("design:type", building_complex_1.BuildingLevel)
38
- ], BuildingInspectionHistory.prototype, "buildingLevel", void 0);
39
- tslib_1.__decorate([
40
- (0, typeorm_1.RelationId)((buildingInspectionHistory) => buildingInspectionHistory.buildingLevel),
41
- tslib_1.__metadata("design:type", String)
42
- ], BuildingInspectionHistory.prototype, "buildingLevelId", void 0);
43
- tslib_1.__decorate([
44
- (0, typeorm_1.Column)({ type: 'date', nullable: true, comment: '검측 요청일' }),
45
- (0, type_graphql_1.Field)(type => String, { nullable: true }),
46
- tslib_1.__metadata("design:type", String)
47
- ], BuildingInspectionHistory.prototype, "requestDate", void 0);
48
- tslib_1.__decorate([
49
- (0, type_graphql_1.Field)({ nullable: true }),
50
- (0, typeorm_1.Column)({ nullable: true, comment: '체크리스트 ID' }),
51
- tslib_1.__metadata("design:type", String)
52
- ], BuildingInspectionHistory.prototype, "checklistId", void 0);
53
- tslib_1.__decorate([
54
- (0, typeorm_1.Column)({ nullable: true }),
55
- (0, type_graphql_1.Field)({ nullable: true }),
56
- tslib_1.__metadata("design:type", Date)
57
- ], BuildingInspectionHistory.prototype, "createdAt", void 0);
58
- tslib_1.__decorate([
59
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
60
- (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
61
- tslib_1.__metadata("design:type", auth_base_1.User)
62
- ], BuildingInspectionHistory.prototype, "creator", void 0);
63
- tslib_1.__decorate([
64
- (0, typeorm_1.RelationId)((buildingInspectionHistory) => buildingInspectionHistory.creator),
65
- tslib_1.__metadata("design:type", String)
66
- ], BuildingInspectionHistory.prototype, "creatorId", void 0);
67
- tslib_1.__decorate([
68
- (0, typeorm_history_1.HistoryActionColumn)({
69
- nullable: false,
70
- type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
71
- ? 'enum'
72
- : DATABASE_TYPE == 'oracle'
73
- ? 'varchar2'
74
- : 'smallint',
75
- enum: typeorm_history_1.HistoryActionType
76
- }),
77
- tslib_1.__metadata("design:type", String)
78
- ], BuildingInspectionHistory.prototype, "action", void 0);
79
- exports.BuildingInspectionHistory = BuildingInspectionHistory = tslib_1.__decorate([
80
- (0, typeorm_1.Entity)(),
81
- (0, typeorm_1.Index)('ix_buildingInspection_history_0', (buildingInspectionHistory) => [
82
- buildingInspectionHistory.originalId
83
- ]),
84
- (0, type_graphql_1.ObjectType)({ description: 'History Entity of BuildingInspection' })
85
- ], BuildingInspectionHistory);
86
- //# sourceMappingURL=building-inspection-history.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"building-inspection-history.js","sourceRoot":"","sources":["../../../server/service/building-inspection/building-inspection-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAA8F;AAC9F,8DAAkI;AAClI,yDAAgD;AAChD,6CAA4C;AAC5C,+DAAoF;AACpF,6DAAsD;AAEtD,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAO7B,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CAuDrC,CAAA;AAvDY,8DAAyB;AAG3B;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;qDACC;AAGZ;IADN,IAAA,yCAAuB,GAAE;;6DACA;AAQ1B;IANC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,KAAK;QACf,OAAO,EACL,2GAA2G;KAC9G,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACO;AAKjC;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gCAAa,CAAC;IAChC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACV,gCAAa;gEAAA;AAG7B;IADC,IAAA,oBAAU,EAAC,CAAC,yBAAoD,EAAE,EAAE,CAAC,yBAAyB,CAAC,aAAa,CAAC;;kEACtF;AAIxB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,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AC,UAAU;KACrC,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;GACvD,yBAAyB,CAuDrC","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\nimport { HistoryActionColumn, HistoryActionType, HistoryEntityInterface, HistoryOriginalIdColumn } from '@operato/typeorm-history'\nimport { User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { BuildingInspection, BuildingInspectionStatus } from './building-inspection'\nimport { BuildingLevel } from '@dssp/building-complex'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index('ix_buildingInspection_history_0', (buildingInspectionHistory: BuildingInspectionHistory) => [\n buildingInspectionHistory.originalId\n])\n@ObjectType({ description: 'History Entity of BuildingInspection' })\nexport class BuildingInspectionHistory implements HistoryEntityInterface<BuildingInspection> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @HistoryOriginalIdColumn()\n public originalId!: string\n\n @Column({\n nullable: false,\n comment:\n '상태(WAIT: 검측 대기, OVERALL_WAIT: 총괄자 검측 대기, REQUEST: 검측 요청, OVERALL_REQUEST: 총괄자 검측 요청, PASS: 합격, FAIL: 불합격)'\n })\n @Field({ nullable: true })\n status?: BuildingInspectionStatus\n\n // 층 정보 (1:1 테이블 참조)\n @ManyToOne(type => BuildingLevel)\n @Field({ nullable: true })\n buildingLevel?: BuildingLevel\n\n @RelationId((buildingInspectionHistory: BuildingInspectionHistory) => buildingInspectionHistory.buildingLevel)\n buildingLevelId?: string\n\n @Column({ type: 'date', nullable: true, comment: '검측 요청일' })\n @Field(type => String, { nullable: true })\n requestDate?: string\n\n // 체크리스트 ID (1:1 테이블 참조)\n @Field({ nullable: true })\n @Column({ nullable: true, comment: '체크리스트 ID' })\n checklistId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((buildingInspectionHistory: BuildingInspectionHistory) => buildingInspectionHistory.creator)\n creatorId?: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : 'smallint',\n enum: HistoryActionType\n })\n public action!: HistoryActionType\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/building-inspection/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,8DAAkE;AAElE,+DAA0D;AAC1D,+EAAyE;AAGlE,IAAM,yCAAyC,GAA/C,MAAM,yCAA0C,SAAQ,yCAG9D;IACC,IAAW,MAAM;QACf,OAAO,wCAAkB,CAAA;IAC3B,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,uDAAyB,CAAA;IAClC,CAAC;CACF,CAAA;AAXY,8FAAyC;oDAAzC,yCAAyC;IADrD,IAAA,yBAAe,GAAE;GACL,yCAAyC,CAWrD","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@operato/typeorm-history'\n\nimport { BuildingInspection } from './building-inspection'\nimport { BuildingInspectionHistory } from './building-inspection-history'\n\n@EventSubscriber()\nexport class BuildingInspectionHistoryEntitySubscriber extends HistoryEntitySubscriber<\n BuildingInspection,\n BuildingInspectionHistory\n> {\n public get entity() {\n return BuildingInspection\n }\n\n public get historyEntity() {\n return BuildingInspectionHistory\n }\n}\n"]}
@@ -1,24 +0,0 @@
1
- import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
2
- import { User } from '@things-factory/auth-base';
3
- import { Checklist } from './checklist';
4
- export declare class ChecklistHistory implements HistoryEntityInterface<Checklist> {
5
- readonly id: string;
6
- name?: string;
7
- documentNo?: string;
8
- constructionType?: string;
9
- constructionDetailType?: string;
10
- location?: string;
11
- inspectionDrawingType?: string;
12
- inspectionParts?: string[];
13
- constructionInspectionDate?: Date;
14
- supervisorInspectionDate?: Date;
15
- overallConstructorSignature?: string;
16
- taskConstructorSignature?: string;
17
- overallSupervisorySignature?: string;
18
- taskSupervisorySignature?: string;
19
- createdAt?: Date;
20
- creator?: User;
21
- creatorId?: string;
22
- originalId: string;
23
- action: HistoryActionType;
24
- }
@@ -1,120 +0,0 @@
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 ORMCONFIG = env_1.config.get('ormconfig', {});
11
- const DATABASE_TYPE = ORMCONFIG.type;
12
- let ChecklistHistory = class ChecklistHistory {
13
- };
14
- exports.ChecklistHistory = ChecklistHistory;
15
- tslib_1.__decorate([
16
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
17
- (0, type_graphql_1.Field)(type => type_graphql_1.ID),
18
- tslib_1.__metadata("design:type", String)
19
- ], ChecklistHistory.prototype, "id", void 0);
20
- tslib_1.__decorate([
21
- (0, typeorm_1.Column)({ nullable: true, comment: '이름' }),
22
- (0, type_graphql_1.Field)({ nullable: true }),
23
- tslib_1.__metadata("design:type", String)
24
- ], ChecklistHistory.prototype, "name", void 0);
25
- tslib_1.__decorate([
26
- (0, typeorm_1.Column)({ nullable: true, comment: '문서 번호 동(4자리)-층(3자리)-시퀀스(6자리)' }),
27
- (0, type_graphql_1.Field)({ nullable: true }),
28
- tslib_1.__metadata("design:type", String)
29
- ], ChecklistHistory.prototype, "documentNo", void 0);
30
- tslib_1.__decorate([
31
- (0, typeorm_1.Column)({ nullable: false, comment: '공종' }),
32
- (0, type_graphql_1.Field)({ nullable: true }),
33
- tslib_1.__metadata("design:type", String)
34
- ], ChecklistHistory.prototype, "constructionType", void 0);
35
- tslib_1.__decorate([
36
- (0, typeorm_1.Column)({ nullable: false, comment: '세부 공종' }),
37
- (0, type_graphql_1.Field)({ nullable: true }),
38
- tslib_1.__metadata("design:type", String)
39
- ], ChecklistHistory.prototype, "constructionDetailType", void 0);
40
- tslib_1.__decorate([
41
- (0, typeorm_1.Column)({ nullable: false, comment: '위치 (x동 x층)' }),
42
- (0, type_graphql_1.Field)({ nullable: true }),
43
- tslib_1.__metadata("design:type", String)
44
- ], ChecklistHistory.prototype, "location", void 0);
45
- tslib_1.__decorate([
46
- (0, typeorm_1.Column)({ nullable: false, comment: '검측 도면 타입', default: '' }),
47
- (0, type_graphql_1.Field)({ nullable: true }),
48
- tslib_1.__metadata("design:type", String)
49
- ], ChecklistHistory.prototype, "inspectionDrawingType", void 0);
50
- tslib_1.__decorate([
51
- (0, typeorm_1.Column)('simple-array', { nullable: true, comment: '검측 부위' }),
52
- (0, type_graphql_1.Field)(() => [String], { nullable: true }),
53
- tslib_1.__metadata("design:type", Array)
54
- ], ChecklistHistory.prototype, "inspectionParts", void 0);
55
- tslib_1.__decorate([
56
- (0, typeorm_1.Column)({ nullable: true, comment: '시공자 점검일' }),
57
- (0, type_graphql_1.Field)({ nullable: true }),
58
- tslib_1.__metadata("design:type", Date)
59
- ], ChecklistHistory.prototype, "constructionInspectionDate", void 0);
60
- tslib_1.__decorate([
61
- (0, typeorm_1.Column)({ nullable: true, comment: '감리자 점검일' }),
62
- (0, type_graphql_1.Field)({ nullable: true }),
63
- tslib_1.__metadata("design:type", Date)
64
- ], ChecklistHistory.prototype, "supervisorInspectionDate", void 0);
65
- tslib_1.__decorate([
66
- (0, typeorm_1.Column)({ nullable: true, comment: '총괄 시공 책임자 사인' }),
67
- (0, type_graphql_1.Field)({ nullable: true }),
68
- tslib_1.__metadata("design:type", String)
69
- ], ChecklistHistory.prototype, "overallConstructorSignature", void 0);
70
- tslib_1.__decorate([
71
- (0, typeorm_1.Column)({ nullable: true, comment: '공종별 시공 관리자 사인' }),
72
- (0, type_graphql_1.Field)({ nullable: true }),
73
- tslib_1.__metadata("design:type", String)
74
- ], ChecklistHistory.prototype, "taskConstructorSignature", void 0);
75
- tslib_1.__decorate([
76
- (0, typeorm_1.Column)({ nullable: true, comment: '총괄 감리 책임자 사인' }),
77
- (0, type_graphql_1.Field)({ nullable: true }),
78
- tslib_1.__metadata("design:type", String)
79
- ], ChecklistHistory.prototype, "overallSupervisorySignature", void 0);
80
- tslib_1.__decorate([
81
- (0, typeorm_1.Column)({ nullable: true, comment: '건축사보 (공종별 감리 관리자) 사인' }),
82
- (0, type_graphql_1.Field)({ nullable: true }),
83
- tslib_1.__metadata("design:type", String)
84
- ], ChecklistHistory.prototype, "taskSupervisorySignature", void 0);
85
- tslib_1.__decorate([
86
- (0, typeorm_1.Column)({ nullable: true }),
87
- (0, type_graphql_1.Field)({ nullable: true }),
88
- tslib_1.__metadata("design:type", Date)
89
- ], ChecklistHistory.prototype, "createdAt", void 0);
90
- tslib_1.__decorate([
91
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
92
- (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
93
- tslib_1.__metadata("design:type", auth_base_1.User)
94
- ], ChecklistHistory.prototype, "creator", void 0);
95
- tslib_1.__decorate([
96
- (0, typeorm_1.RelationId)((checklistHistory) => checklistHistory.creator),
97
- tslib_1.__metadata("design:type", String)
98
- ], ChecklistHistory.prototype, "creatorId", void 0);
99
- tslib_1.__decorate([
100
- (0, typeorm_history_1.HistoryOriginalIdColumn)(),
101
- tslib_1.__metadata("design:type", String)
102
- ], ChecklistHistory.prototype, "originalId", void 0);
103
- tslib_1.__decorate([
104
- (0, typeorm_history_1.HistoryActionColumn)({
105
- nullable: false,
106
- type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
107
- ? 'enum'
108
- : DATABASE_TYPE == 'oracle'
109
- ? 'varchar2'
110
- : 'smallint',
111
- enum: typeorm_history_1.HistoryActionType
112
- }),
113
- tslib_1.__metadata("design:type", String)
114
- ], ChecklistHistory.prototype, "action", void 0);
115
- exports.ChecklistHistory = ChecklistHistory = tslib_1.__decorate([
116
- (0, typeorm_1.Entity)(),
117
- (0, typeorm_1.Index)('ix_checklist_history_0', (checklistHistory) => [checklistHistory.originalId]),
118
- (0, type_graphql_1.ObjectType)({ description: 'History Entity of Checklist' })
119
- ], ChecklistHistory);
120
- //# sourceMappingURL=checklist-history.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checklist-history.js","sourceRoot":"","sources":["../../../server/service/checklist/checklist-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAA8F;AAC9F,8DAAkI;AAClI,yDAAgD;AAChD,6CAA4C;AAG5C,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAK7B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAkF5B,CAAA;AAlFY,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,8BAA8B,EAAE,CAAC;IACnE,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACP;AAInB;IA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,QAAQ,EAAE,KAAK;QACf,IAAI,EACF,aAAa,IAAI,UAAU,IAAI,aAAa,IAAI,OAAO,IAAI,aAAa,IAAI,SAAS;YACnF,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,aAAa,IAAI,QAAQ;gBACzB,CAAC,CAAC,UAAU;gBACZ,CAAC,CAAC,UAAU;QAClB,IAAI,EAAE,mCAAiB;KACxB,CAAC;;gDAC+B;2BAjFtB,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,CAkF5B","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\nimport { HistoryActionColumn, HistoryActionType, HistoryEntityInterface, HistoryOriginalIdColumn } from '@operato/typeorm-history'\nimport { User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { Checklist } from './checklist'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index('ix_checklist_history_0', (checklistHistory: ChecklistHistory) => [checklistHistory.originalId])\n@ObjectType({ description: 'History Entity of Checklist' })\nexport class ChecklistHistory implements HistoryEntityInterface<Checklist> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, comment: '이름' })\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true, comment: '문서 번호 동(4자리)-층(3자리)-시퀀스(6자리)' })\n @Field({ nullable: true })\n documentNo?: string\n\n @Column({ nullable: false, comment: '공종' })\n @Field({ nullable: true })\n constructionType?: string\n\n @Column({ nullable: false, comment: '세부 공종' })\n @Field({ nullable: true })\n constructionDetailType?: string\n\n @Column({ nullable: false, comment: '위치 (x동 x층)' })\n @Field({ nullable: true })\n location?: string\n\n @Column({ nullable: false, comment: '검측 도면 타입', default: '' })\n @Field({ nullable: true })\n inspectionDrawingType?: string\n\n @Column('simple-array', { nullable: true, comment: '검측 부위' })\n @Field(() => [String], { nullable: true })\n inspectionParts?: string[]\n\n @Column({ nullable: true, comment: '시공자 점검일' })\n @Field({ nullable: true })\n constructionInspectionDate?: Date\n\n @Column({ nullable: true, comment: '감리자 점검일' })\n @Field({ nullable: true })\n supervisorInspectionDate?: Date\n\n @Column({ nullable: true, comment: '총괄 시공 책임자 사인' })\n @Field({ nullable: true })\n overallConstructorSignature?: string\n\n @Column({ nullable: true, comment: '공종별 시공 관리자 사인' })\n @Field({ nullable: true })\n taskConstructorSignature?: string\n\n @Column({ nullable: true, comment: '총괄 감리 책임자 사인' })\n @Field({ nullable: true })\n overallSupervisorySignature?: string\n\n @Column({ nullable: true, comment: '건축사보 (공종별 감리 관리자) 사인' })\n @Field({ nullable: true })\n taskSupervisorySignature?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((checklistHistory: ChecklistHistory) => checklistHistory.creator)\n creatorId?: string\n\n @HistoryOriginalIdColumn()\n public originalId!: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : 'smallint',\n enum: HistoryActionType\n })\n public action!: HistoryActionType\n}\n"]}
@@ -1,7 +0,0 @@
1
- import { HistoryEntitySubscriber } from '@operato/typeorm-history';
2
- import { ChecklistItemComment } from './checklist-item-comment';
3
- import { ChecklistItemCommentHistory } from './checklist-item-comment-history';
4
- export declare class ChecklistItemCommentHistoryEntitySubscriber extends HistoryEntitySubscriber<ChecklistItemComment, ChecklistItemCommentHistory> {
5
- get entity(): typeof ChecklistItemComment;
6
- get historyEntity(): typeof ChecklistItemCommentHistory;
7
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChecklistItemCommentHistoryEntitySubscriber = 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_item_comment_1 = require("./checklist-item-comment");
8
- const checklist_item_comment_history_1 = require("./checklist-item-comment-history");
9
- let ChecklistItemCommentHistoryEntitySubscriber = class ChecklistItemCommentHistoryEntitySubscriber extends typeorm_history_1.HistoryEntitySubscriber {
10
- get entity() {
11
- return checklist_item_comment_1.ChecklistItemComment;
12
- }
13
- get historyEntity() {
14
- return checklist_item_comment_history_1.ChecklistItemCommentHistory;
15
- }
16
- };
17
- exports.ChecklistItemCommentHistoryEntitySubscriber = ChecklistItemCommentHistoryEntitySubscriber;
18
- exports.ChecklistItemCommentHistoryEntitySubscriber = ChecklistItemCommentHistoryEntitySubscriber = tslib_1.__decorate([
19
- (0, typeorm_1.EventSubscriber)()
20
- ], ChecklistItemCommentHistoryEntitySubscriber);
21
- //# sourceMappingURL=event-subscriber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/checklist-item-comment/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,8DAAkE;AAElE,qEAA+D;AAC/D,qFAA8E;AAGvE,IAAM,2CAA2C,GAAjD,MAAM,2CAA4C,SAAQ,yCAA0E;IACzI,IAAW,MAAM;QACf,OAAO,6CAAoB,CAAA;IAC7B,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,4DAA2B,CAAA;IACpC,CAAC;CACF,CAAA;AARY,kGAA2C;sDAA3C,2CAA2C;IADvD,IAAA,yBAAe,GAAE;GACL,2CAA2C,CAQvD","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@operato/typeorm-history'\n\nimport { ChecklistItemComment } from './checklist-item-comment'\nimport { ChecklistItemCommentHistory } from './checklist-item-comment-history'\n\n@EventSubscriber()\nexport class ChecklistItemCommentHistoryEntitySubscriber extends HistoryEntitySubscriber<ChecklistItemComment, ChecklistItemCommentHistory> {\n public get entity() {\n return ChecklistItemComment\n }\n\n public get historyEntity() {\n return ChecklistItemCommentHistory\n }\n}\n"]}