@dssp/supervision 0.0.8 → 0.0.10

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 (224) hide show
  1. package/client/pages/building-inspection/building-inspection-detail-checklist.ts +186 -0
  2. package/client/pages/building-inspection/building-inspection-detail-drawing.ts +160 -0
  3. package/client/pages/building-inspection/building-inspection-list.ts +430 -0
  4. package/client/pages/building-inspection/component/building-inspection-detail-header.ts +94 -0
  5. package/client/pages/building-inspection/inspection-create-popup.ts +696 -0
  6. package/client/pages/checklist/checklist-view.ts +443 -0
  7. package/client/pages/checklist-template/checklist-template-item.ts +240 -0
  8. package/client/pages/checklist-template/checklist-template-list.ts +271 -0
  9. package/client/pages/checklist-template/checklist-type-management.ts +242 -0
  10. package/client/route.ts +14 -18
  11. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.d.ts +21 -0
  12. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js +187 -0
  13. package/dist-client/pages/building-inspection/building-inspection-detail-checklist.js.map +1 -0
  14. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.d.ts +21 -0
  15. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js +169 -0
  16. package/dist-client/pages/building-inspection/building-inspection-detail-drawing.js.map +1 -0
  17. package/dist-client/pages/building-inspection/building-inspection-list.d.ts +67 -0
  18. package/dist-client/pages/building-inspection/building-inspection-list.js +434 -0
  19. package/dist-client/pages/building-inspection/building-inspection-list.js.map +1 -0
  20. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.d.ts +1 -0
  21. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js +118 -0
  22. package/dist-client/pages/building-inspection/component/building-inspection-detail-header.js.map +1 -0
  23. package/dist-client/pages/building-inspection/inspection-create-popup.d.ts +3 -0
  24. package/dist-client/pages/building-inspection/inspection-create-popup.js +735 -0
  25. package/dist-client/pages/building-inspection/inspection-create-popup.js.map +1 -0
  26. package/dist-client/pages/checklist/checklist-view.d.ts +6 -0
  27. package/dist-client/pages/checklist/checklist-view.js +434 -0
  28. package/dist-client/pages/checklist/checklist-view.js.map +1 -0
  29. package/dist-client/pages/checklist-template/checklist-template-item.d.ts +2 -0
  30. package/dist-client/pages/checklist-template/checklist-template-item.js +237 -0
  31. package/dist-client/pages/checklist-template/checklist-template-item.js.map +1 -0
  32. package/dist-client/pages/{check-item/check-item-list-page.d.ts → checklist-template/checklist-template-list.d.ts} +8 -27
  33. package/dist-client/pages/checklist-template/checklist-template-list.js +259 -0
  34. package/dist-client/pages/checklist-template/checklist-template-list.js.map +1 -0
  35. package/dist-client/pages/checklist-template/checklist-type-management.d.ts +48 -0
  36. package/dist-client/pages/checklist-template/checklist-type-management.js +229 -0
  37. package/dist-client/pages/checklist-template/checklist-type-management.js.map +1 -0
  38. package/dist-client/route.d.ts +1 -1
  39. package/dist-client/route.js +10 -13
  40. package/dist-client/route.js.map +1 -1
  41. package/dist-client/tsconfig.tsbuildinfo +1 -1
  42. package/dist-server/index.d.ts +1 -1
  43. package/dist-server/index.js +1 -1
  44. package/dist-server/index.js.map +1 -1
  45. package/dist-server/service/building-inspection/building-inspection-history.d.ts +17 -0
  46. package/dist-server/service/building-inspection/building-inspection-history.js +85 -0
  47. package/dist-server/service/building-inspection/building-inspection-history.js.map +1 -0
  48. package/dist-server/service/building-inspection/building-inspection-mutation.d.ts +8 -0
  49. package/dist-server/service/building-inspection/building-inspection-mutation.js +148 -0
  50. package/dist-server/service/building-inspection/building-inspection-mutation.js.map +1 -0
  51. package/dist-server/service/building-inspection/building-inspection-query.d.ts +20 -0
  52. package/dist-server/service/building-inspection/building-inspection-query.js +235 -0
  53. package/dist-server/service/building-inspection/building-inspection-query.js.map +1 -0
  54. package/dist-server/service/building-inspection/building-inspection-type.d.ts +43 -0
  55. package/dist-server/service/building-inspection/building-inspection-type.js +153 -0
  56. package/dist-server/service/building-inspection/building-inspection-type.js.map +1 -0
  57. package/dist-server/service/building-inspection/building-inspection.d.ts +26 -0
  58. package/dist-server/service/building-inspection/building-inspection.js +113 -0
  59. package/dist-server/service/building-inspection/building-inspection.js.map +1 -0
  60. package/dist-server/service/building-inspection/event-subscriber.d.ts +7 -0
  61. package/dist-server/service/building-inspection/event-subscriber.js +21 -0
  62. package/dist-server/service/building-inspection/event-subscriber.js.map +1 -0
  63. package/dist-server/service/building-inspection/index.d.ts +10 -0
  64. package/dist-server/service/building-inspection/index.js +14 -0
  65. package/dist-server/service/building-inspection/index.js.map +1 -0
  66. package/dist-server/service/checklist/checklist-history.d.ts +24 -0
  67. package/dist-server/service/checklist/checklist-history.js +120 -0
  68. package/dist-server/service/checklist/checklist-history.js.map +1 -0
  69. package/dist-server/service/checklist/checklist-mutation.d.ts +8 -0
  70. package/dist-server/service/checklist/checklist-mutation.js +96 -0
  71. package/dist-server/service/checklist/checklist-mutation.js.map +1 -0
  72. package/dist-server/service/checklist/checklist-query.d.ts +12 -0
  73. package/dist-server/service/checklist/checklist-query.js +83 -0
  74. package/dist-server/service/checklist/checklist-query.js.map +1 -0
  75. package/dist-server/service/checklist/checklist-type.d.ts +18 -0
  76. package/dist-server/service/checklist/checklist-type.js +69 -0
  77. package/dist-server/service/checklist/checklist-type.js.map +1 -0
  78. package/dist-server/service/checklist/checklist.d.ts +31 -0
  79. package/dist-server/service/checklist/checklist.js +143 -0
  80. package/dist-server/service/checklist/checklist.js.map +1 -0
  81. package/dist-server/service/checklist/event-subscriber.d.ts +7 -0
  82. package/dist-server/service/checklist/event-subscriber.js +21 -0
  83. package/dist-server/service/checklist/event-subscriber.js.map +1 -0
  84. package/dist-server/service/checklist/index.d.ts +8 -0
  85. package/dist-server/service/checklist/index.js +12 -0
  86. package/dist-server/service/checklist/index.js.map +1 -0
  87. package/dist-server/service/checklist-item/checklist-item-mutation.d.ts +2 -0
  88. package/dist-server/service/checklist-item/checklist-item-mutation.js +13 -0
  89. package/dist-server/service/checklist-item/checklist-item-mutation.js.map +1 -0
  90. package/dist-server/service/checklist-item/checklist-item-query.d.ts +10 -0
  91. package/dist-server/service/checklist-item/checklist-item-query.js +68 -0
  92. package/dist-server/service/checklist-item/checklist-item-query.js.map +1 -0
  93. package/dist-server/service/checklist-item/checklist-item-type.d.ts +5 -0
  94. package/dist-server/service/checklist-item/checklist-item-type.js +21 -0
  95. package/dist-server/service/checklist-item/checklist-item-type.js.map +1 -0
  96. package/dist-server/service/checklist-item/checklist-item.d.ts +26 -0
  97. package/dist-server/service/checklist-item/checklist-item.js +113 -0
  98. package/dist-server/service/checklist-item/checklist-item.js.map +1 -0
  99. package/dist-server/service/checklist-item/index.d.ts +5 -0
  100. package/dist-server/service/checklist-item/index.js +10 -0
  101. package/dist-server/service/checklist-item/index.js.map +1 -0
  102. package/dist-server/service/checklist-template/checklist-template-mutation.d.ts +6 -0
  103. package/dist-server/service/checklist-template/checklist-template-mutation.js +64 -0
  104. package/dist-server/service/checklist-template/checklist-template-mutation.js.map +1 -0
  105. package/dist-server/service/checklist-template/checklist-template-query.d.ts +10 -0
  106. package/dist-server/service/checklist-template/checklist-template-query.js +65 -0
  107. package/dist-server/service/checklist-template/checklist-template-query.js.map +1 -0
  108. package/dist-server/service/checklist-template/checklist-template-type.d.ts +10 -0
  109. package/dist-server/service/checklist-template/checklist-template-type.js +39 -0
  110. package/dist-server/service/checklist-template/checklist-template-type.js.map +1 -0
  111. package/dist-server/service/checklist-template/checklist-template.d.ts +17 -0
  112. package/dist-server/service/checklist-template/checklist-template.js +78 -0
  113. package/dist-server/service/checklist-template/checklist-template.js.map +1 -0
  114. package/dist-server/service/checklist-template/index.d.ts +5 -0
  115. package/dist-server/service/checklist-template/index.js +9 -0
  116. package/dist-server/service/checklist-template/index.js.map +1 -0
  117. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.d.ts +7 -0
  118. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js +68 -0
  119. package/dist-server/service/checklist-template-item/checklist-template-item-mutation.js.map +1 -0
  120. package/dist-server/service/checklist-template-item/checklist-template-item-query.d.ts +10 -0
  121. package/dist-server/service/checklist-template-item/checklist-template-item-query.js +66 -0
  122. package/dist-server/service/checklist-template-item/checklist-template-item-query.js.map +1 -0
  123. package/dist-server/service/checklist-template-item/checklist-template-item-type.d.ts +16 -0
  124. package/dist-server/service/checklist-template-item/checklist-template-item-type.js +60 -0
  125. package/dist-server/service/checklist-template-item/checklist-template-item-type.js.map +1 -0
  126. package/dist-server/service/checklist-template-item/checklist-template-item.d.ts +19 -0
  127. package/dist-server/service/checklist-template-item/checklist-template-item.js +87 -0
  128. package/dist-server/service/checklist-template-item/checklist-template-item.js.map +1 -0
  129. package/dist-server/service/checklist-template-item/index.d.ts +5 -0
  130. package/dist-server/service/checklist-template-item/index.js +9 -0
  131. package/dist-server/service/checklist-template-item/index.js.map +1 -0
  132. package/dist-server/service/checklist-type/checklist-type-mutation.d.ts +6 -0
  133. package/dist-server/service/checklist-type/checklist-type-mutation.js +64 -0
  134. package/dist-server/service/checklist-type/checklist-type-mutation.js.map +1 -0
  135. package/dist-server/service/checklist-type/checklist-type-query.d.ts +10 -0
  136. package/dist-server/service/checklist-type/checklist-type-query.js +65 -0
  137. package/dist-server/service/checklist-type/checklist-type-query.js.map +1 -0
  138. package/dist-server/service/checklist-type/checklist-type-type.d.ts +11 -0
  139. package/dist-server/service/checklist-type/checklist-type-type.js +43 -0
  140. package/dist-server/service/checklist-type/checklist-type-type.js.map +1 -0
  141. package/dist-server/service/checklist-type/checklist-type.d.ts +19 -0
  142. package/dist-server/service/checklist-type/checklist-type.js +78 -0
  143. package/dist-server/service/checklist-type/checklist-type.js.map +1 -0
  144. package/dist-server/service/checklist-type/index.d.ts +5 -0
  145. package/dist-server/service/checklist-type/index.js +9 -0
  146. package/dist-server/service/checklist-type/index.js.map +1 -0
  147. package/dist-server/service/index.d.ts +8 -3
  148. package/dist-server/service/index.js +25 -5
  149. package/dist-server/service/index.js.map +1 -1
  150. package/dist-server/service/issue/issue.d.ts +1 -3
  151. package/dist-server/service/issue/issue.js +1 -7
  152. package/dist-server/service/issue/issue.js.map +1 -1
  153. package/dist-server/service/supervisor/supervisor.d.ts +1 -3
  154. package/dist-server/service/supervisor/supervisor.js +1 -7
  155. package/dist-server/service/supervisor/supervisor.js.map +1 -1
  156. package/dist-server/tsconfig.tsbuildinfo +1 -1
  157. package/helps/supervision/checklist-item.md +160 -0
  158. package/helps/supervision/checklist.md +160 -0
  159. package/package.json +11 -7
  160. package/server/index.ts +1 -1
  161. package/server/service/building-inspection/building-inspection-history.ts +70 -0
  162. package/server/service/building-inspection/building-inspection-mutation.ts +147 -0
  163. package/server/service/building-inspection/building-inspection-query.ts +202 -0
  164. package/server/service/building-inspection/building-inspection-type.ts +101 -0
  165. package/server/service/building-inspection/building-inspection.ts +106 -0
  166. package/server/service/building-inspection/event-subscriber.ts +20 -0
  167. package/server/service/building-inspection/index.ts +11 -0
  168. package/server/service/checklist/checklist-history.ts +96 -0
  169. package/server/service/checklist/checklist-mutation.ts +103 -0
  170. package/server/service/checklist/checklist-query.ts +52 -0
  171. package/server/service/{check-item/check-item-type.ts → checklist/checklist-type.ts} +6 -18
  172. package/server/service/checklist/checklist.ts +127 -0
  173. package/server/service/checklist/event-subscriber.ts +17 -0
  174. package/server/service/checklist/index.ts +9 -0
  175. package/server/service/checklist-item/checklist-item-mutation.ts +5 -0
  176. package/server/service/checklist-item/checklist-item-query.ts +43 -0
  177. package/server/service/checklist-item/checklist-item-type.ts +12 -0
  178. package/server/service/checklist-item/checklist-item.ts +100 -0
  179. package/server/service/checklist-item/index.ts +7 -0
  180. package/server/service/checklist-template/checklist-template-mutation.ts +66 -0
  181. package/server/service/checklist-template/checklist-template-query.ts +39 -0
  182. package/server/service/checklist-template/checklist-template-type.ts +23 -0
  183. package/server/service/checklist-template/checklist-template.ts +71 -0
  184. package/server/service/checklist-template/index.ts +6 -0
  185. package/server/service/checklist-template-item/checklist-template-item-mutation.ts +64 -0
  186. package/server/service/checklist-template-item/checklist-template-item-query.ts +39 -0
  187. package/server/service/checklist-template-item/checklist-template-item-type.ts +39 -0
  188. package/server/service/checklist-template-item/checklist-template-item.ts +67 -0
  189. package/server/service/checklist-template-item/index.ts +6 -0
  190. package/server/service/checklist-type/checklist-type-mutation.ts +66 -0
  191. package/server/service/checklist-type/checklist-type-query.ts +39 -0
  192. package/server/service/checklist-type/checklist-type-type.ts +26 -0
  193. package/server/service/checklist-type/checklist-type.ts +64 -0
  194. package/server/service/checklist-type/index.ts +6 -0
  195. package/server/service/index.ts +59 -23
  196. package/server/service/issue/issue.ts +1 -6
  197. package/server/service/supervisor/supervisor.ts +1 -6
  198. package/things-factory.config.js +11 -7
  199. package/client/pages/check-item/check-item-importer.ts +0 -94
  200. package/client/pages/check-item/check-item-list-page.ts +0 -340
  201. package/dist-client/pages/check-item/check-item-importer.d.ts +0 -10
  202. package/dist-client/pages/check-item/check-item-importer.js +0 -101
  203. package/dist-client/pages/check-item/check-item-importer.js.map +0 -1
  204. package/dist-client/pages/check-item/check-item-list-page.js +0 -323
  205. package/dist-client/pages/check-item/check-item-list-page.js.map +0 -1
  206. package/dist-server/service/check-item/check-item-mutation.d.ts +0 -10
  207. package/dist-server/service/check-item/check-item-mutation.js +0 -168
  208. package/dist-server/service/check-item/check-item-mutation.js.map +0 -1
  209. package/dist-server/service/check-item/check-item-query.d.ts +0 -12
  210. package/dist-server/service/check-item/check-item-query.js +0 -97
  211. package/dist-server/service/check-item/check-item-query.js.map +0 -1
  212. package/dist-server/service/check-item/check-item-type.d.ts +0 -23
  213. package/dist-server/service/check-item/check-item-type.js +0 -86
  214. package/dist-server/service/check-item/check-item-type.js.map +0 -1
  215. package/dist-server/service/check-item/check-item.d.ts +0 -28
  216. package/dist-server/service/check-item/check-item.js +0 -117
  217. package/dist-server/service/check-item/check-item.js.map +0 -1
  218. package/dist-server/service/check-item/index.d.ts +0 -6
  219. package/dist-server/service/check-item/index.js +0 -10
  220. package/dist-server/service/check-item/index.js.map +0 -1
  221. package/server/service/check-item/check-item-mutation.ts +0 -198
  222. package/server/service/check-item/check-item-query.ts +0 -62
  223. package/server/service/check-item/check-item.ts +0 -111
  224. package/server/service/check-item/index.ts +0 -7
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChecklistTypeList = exports.ChecklistTypePatch = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const type_graphql_1 = require("type-graphql");
6
+ const checklist_type_1 = require("./checklist-type");
7
+ let ChecklistTypePatch = class ChecklistTypePatch {
8
+ };
9
+ tslib_1.__decorate([
10
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
11
+ tslib_1.__metadata("design:type", String)
12
+ ], ChecklistTypePatch.prototype, "id", void 0);
13
+ tslib_1.__decorate([
14
+ (0, type_graphql_1.Field)({ nullable: true }),
15
+ tslib_1.__metadata("design:type", String)
16
+ ], ChecklistTypePatch.prototype, "mainType", void 0);
17
+ tslib_1.__decorate([
18
+ (0, type_graphql_1.Field)({ nullable: true }),
19
+ tslib_1.__metadata("design:type", String)
20
+ ], ChecklistTypePatch.prototype, "detailType", void 0);
21
+ tslib_1.__decorate([
22
+ (0, type_graphql_1.Field)({ nullable: true }),
23
+ tslib_1.__metadata("design:type", String)
24
+ ], ChecklistTypePatch.prototype, "cuFlag", void 0);
25
+ ChecklistTypePatch = tslib_1.__decorate([
26
+ (0, type_graphql_1.InputType)()
27
+ ], ChecklistTypePatch);
28
+ exports.ChecklistTypePatch = ChecklistTypePatch;
29
+ let ChecklistTypeList = class ChecklistTypeList {
30
+ };
31
+ tslib_1.__decorate([
32
+ (0, type_graphql_1.Field)(type => [checklist_type_1.ChecklistType]),
33
+ tslib_1.__metadata("design:type", Array)
34
+ ], ChecklistTypeList.prototype, "items", void 0);
35
+ tslib_1.__decorate([
36
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int),
37
+ tslib_1.__metadata("design:type", Number)
38
+ ], ChecklistTypeList.prototype, "total", void 0);
39
+ ChecklistTypeList = tslib_1.__decorate([
40
+ (0, type_graphql_1.ObjectType)()
41
+ ], ChecklistTypeList);
42
+ exports.ChecklistTypeList = ChecklistTypeList;
43
+ //# sourceMappingURL=checklist-type-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checklist-type-type.js","sourceRoot":"","sources":["../../../server/service/checklist-type/checklist-type-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AACpE,qDAAuE;AAGhE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAY9B,CAAA;AAXC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC3B;AAEX;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACK;AAE/B;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACR;AAElB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACX;AAXJ,kBAAkB;IAD9B,IAAA,wBAAS,GAAE;GACC,kBAAkB,CAY9B;AAZY,gDAAkB;AAexB,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAM7B,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,8BAAa,CAAC,CAAC;;gDACT;AAEtB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;gDACN;AALF,iBAAiB;IAD7B,IAAA,yBAAU,GAAE;GACA,iBAAiB,CAM7B;AANY,8CAAiB","sourcesContent":["import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'\nimport { ChecklistType, ChecklistTypeMainType } from './checklist-type'\n\n@InputType()\nexport class ChecklistTypePatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n mainType: ChecklistTypeMainType\n\n @Field({ nullable: true })\n detailType: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class ChecklistTypeList {\n @Field(type => [ChecklistType])\n items: ChecklistType[]\n\n @Field(type => Int)\n total: number\n}\n"]}
@@ -0,0 +1,19 @@
1
+ import { Domain } from '@things-factory/shell';
2
+ import { User } from '@things-factory/auth-base';
3
+ export declare enum ChecklistTypeMainType {
4
+ BASIC = "10",
5
+ NON_BASIC = "20"
6
+ }
7
+ export declare class ChecklistType {
8
+ readonly id: string;
9
+ domain?: Domain;
10
+ domainId?: string;
11
+ mainType: ChecklistTypeMainType;
12
+ detailType: string;
13
+ createdAt?: Date;
14
+ updatedAt?: Date;
15
+ creator?: User;
16
+ creatorId?: string;
17
+ updater?: User;
18
+ updaterId?: string;
19
+ }
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChecklistType = exports.ChecklistTypeMainType = 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
+ var ChecklistTypeMainType;
10
+ (function (ChecklistTypeMainType) {
11
+ ChecklistTypeMainType["BASIC"] = "10";
12
+ ChecklistTypeMainType["NON_BASIC"] = "20";
13
+ })(ChecklistTypeMainType = exports.ChecklistTypeMainType || (exports.ChecklistTypeMainType = {}));
14
+ (0, type_graphql_1.registerEnumType)(ChecklistTypeMainType, {
15
+ name: 'ChecklistTypeMainType',
16
+ description: '체크리스트 구분 메인 구분'
17
+ });
18
+ let ChecklistType = class ChecklistType {
19
+ };
20
+ tslib_1.__decorate([
21
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
22
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
23
+ tslib_1.__metadata("design:type", String)
24
+ ], ChecklistType.prototype, "id", void 0);
25
+ tslib_1.__decorate([
26
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
27
+ (0, type_graphql_1.Field)({ nullable: true }),
28
+ tslib_1.__metadata("design:type", shell_1.Domain)
29
+ ], ChecklistType.prototype, "domain", void 0);
30
+ tslib_1.__decorate([
31
+ (0, typeorm_1.RelationId)((checklistType) => checklistType.domain),
32
+ tslib_1.__metadata("design:type", String)
33
+ ], ChecklistType.prototype, "domainId", void 0);
34
+ tslib_1.__decorate([
35
+ (0, typeorm_1.Column)({ nullable: false, comment: '메인 구분 (10: 기본 업무, 20: 기본 외 업무)' }),
36
+ (0, type_graphql_1.Field)({ nullable: false }),
37
+ tslib_1.__metadata("design:type", String)
38
+ ], ChecklistType.prototype, "mainType", void 0);
39
+ tslib_1.__decorate([
40
+ (0, typeorm_1.Column)({ nullable: false, comment: '상세 구분' }),
41
+ (0, type_graphql_1.Field)({ nullable: false }),
42
+ tslib_1.__metadata("design:type", String)
43
+ ], ChecklistType.prototype, "detailType", void 0);
44
+ tslib_1.__decorate([
45
+ (0, typeorm_1.CreateDateColumn)(),
46
+ (0, type_graphql_1.Field)({ nullable: true }),
47
+ tslib_1.__metadata("design:type", Date)
48
+ ], ChecklistType.prototype, "createdAt", void 0);
49
+ tslib_1.__decorate([
50
+ (0, typeorm_1.UpdateDateColumn)(),
51
+ (0, type_graphql_1.Field)({ nullable: true }),
52
+ tslib_1.__metadata("design:type", Date)
53
+ ], ChecklistType.prototype, "updatedAt", void 0);
54
+ tslib_1.__decorate([
55
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
56
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
57
+ tslib_1.__metadata("design:type", auth_base_1.User)
58
+ ], ChecklistType.prototype, "creator", void 0);
59
+ tslib_1.__decorate([
60
+ (0, typeorm_1.RelationId)((checklistType) => checklistType.creator),
61
+ tslib_1.__metadata("design:type", String)
62
+ ], ChecklistType.prototype, "creatorId", void 0);
63
+ tslib_1.__decorate([
64
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
65
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
66
+ tslib_1.__metadata("design:type", auth_base_1.User)
67
+ ], ChecklistType.prototype, "updater", void 0);
68
+ tslib_1.__decorate([
69
+ (0, typeorm_1.RelationId)((checklistType) => checklistType.updater),
70
+ tslib_1.__metadata("design:type", String)
71
+ ], ChecklistType.prototype, "updaterId", void 0);
72
+ ChecklistType = tslib_1.__decorate([
73
+ (0, typeorm_1.Entity)({ comment: '체크리스트 구분' }),
74
+ (0, typeorm_1.Index)('ix_checklist_type_0', (checklistType) => [checklistType.domain, checklistType.mainType, checklistType.detailType], { unique: true }),
75
+ (0, type_graphql_1.ObjectType)()
76
+ ], ChecklistType);
77
+ exports.ChecklistType = ChecklistType;
78
+ //# sourceMappingURL=checklist-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checklist-type.js","sourceRoot":"","sources":["../../../server/service/checklist-type/checklist-type.ts"],"names":[],"mappings":";;;;AAAA,qCAAkI;AAClI,+CAAsE;AACtE,iDAA8C;AAC9C,yDAAgD;AAEhD,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,qCAAY,CAAA;IACZ,yCAAgB,CAAA;AAClB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAA,+BAAgB,EAAC,qBAAqB,EAAE;IACtC,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAA;AASK,IAAM,aAAa,GAAnB,MAAM,aAAa;CAyCzB,CAAA;AAxCC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;yCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;6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AA,oBAAU,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC;;gDAClD;AAxCP,aAAa;IAPzB,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAC/B,IAAA,eAAK,EACJ,qBAAqB,EACrB,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,EAC1G,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,GAAE;GACA,aAAa,CAyCzB;AAzCY,sCAAa","sourcesContent":["import { CreateDateColumn, UpdateDateColumn, Entity, Index, Column, RelationId, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'\nimport { ObjectType, Field, ID, registerEnumType } from 'type-graphql'\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\n\nexport enum ChecklistTypeMainType {\n BASIC = '10',\n NON_BASIC = '20'\n}\n\nregisterEnumType(ChecklistTypeMainType, {\n name: 'ChecklistTypeMainType',\n description: '체크리스트 구분 메인 구분'\n})\n\n@Entity({ comment: '체크리스트 구분' })\n@Index(\n 'ix_checklist_type_0',\n (checklistType: ChecklistType) => [checklistType.domain, checklistType.mainType, checklistType.detailType],\n { unique: true }\n)\n@ObjectType()\nexport class ChecklistType {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((checklistType: ChecklistType) => checklistType.domain)\n domainId?: string\n\n @Column({ nullable: false, comment: '메인 구분 (10: 기본 업무, 20: 기본 외 업무)' })\n @Field({ nullable: false })\n mainType: ChecklistTypeMainType\n\n @Column({ nullable: false, comment: '상세 구분' })\n @Field({ nullable: false })\n detailType: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((checklistType: ChecklistType) => checklistType.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((checklistType: ChecklistType) => checklistType.updater)\n updaterId?: string\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { ChecklistType } from './checklist-type';
2
+ import { ChecklistTypeQuery } from './checklist-type-query';
3
+ import { ChecklistTypeMutation } from './checklist-type-mutation';
4
+ export declare const entities: (typeof ChecklistType)[];
5
+ export declare const resolvers: (typeof ChecklistTypeQuery | typeof ChecklistTypeMutation)[];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolvers = exports.entities = void 0;
4
+ const checklist_type_1 = require("./checklist-type");
5
+ const checklist_type_query_1 = require("./checklist-type-query");
6
+ const checklist_type_mutation_1 = require("./checklist-type-mutation");
7
+ exports.entities = [checklist_type_1.ChecklistType];
8
+ exports.resolvers = [checklist_type_query_1.ChecklistTypeQuery, checklist_type_mutation_1.ChecklistTypeMutation];
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/checklist-type/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAChD,iEAA2D;AAC3D,uEAAiE;AAEpD,QAAA,QAAQ,GAAG,CAAC,8BAAa,CAAC,CAAA;AAC1B,QAAA,SAAS,GAAG,CAAC,yCAAkB,EAAE,+CAAqB,CAAC,CAAA","sourcesContent":["import { ChecklistType } from './checklist-type'\nimport { ChecklistTypeQuery } from './checklist-type-query'\nimport { ChecklistTypeMutation } from './checklist-type-mutation'\n\nexport const entities = [ChecklistType]\nexport const resolvers = [ChecklistTypeQuery, ChecklistTypeMutation]\n"]}
@@ -1,10 +1,15 @@
1
1
  export * from './action-plan/action-plan';
2
2
  export * from './issue/issue';
3
- export * from './check-item/check-item';
4
3
  export * from './project-report/project-report';
5
4
  export * from './supervisor/supervisor';
6
- export declare const entities: (typeof import("./project-report/project-report").ProjectReport | typeof import("./supervisor/supervisor").Supervisor | typeof import("./check-item/check-item").CheckItem | typeof import("./issue/issue").Issue | typeof import("./action-plan/action-plan").ActionPlan)[];
5
+ export * from './checklist-type/checklist-type';
6
+ export * from './checklist/checklist';
7
+ export * from './checklist-item/checklist-item';
8
+ export * from './checklist-template/checklist-template';
9
+ export * from './checklist-template-item/checklist-template-item';
10
+ export * from './building-inspection/building-inspection';
11
+ export declare const entities: (typeof import("./issue/issue").Issue | typeof import("./action-plan/action-plan").ActionPlan | typeof import("./supervisor/supervisor").Supervisor | typeof import("./project-report/project-report").ProjectReport | typeof import("./checklist-type/checklist-type").ChecklistType | typeof import("./checklist-item/checklist-item").ChecklistItem | typeof import("./checklist/checklist").Checklist | typeof import("./building-inspection/building-inspection").BuildingInspection | typeof import("./checklist-template-item/checklist-template-item").ChecklistTemplateItem | typeof import("./checklist-template/checklist-template").ChecklistTemplate | typeof import("./checklist/checklist-history").ChecklistHistory | typeof import("./building-inspection/building-inspection-history").BuildingInspectionHistory)[];
7
12
  export declare const subscribers: any[];
8
13
  export declare const schema: {
9
- resolverClasses: (typeof import("./action-plan/action-plan-query").ActionPlanQuery | typeof import("./action-plan/action-plan-mutation").ActionPlanMutation | typeof import("./issue/issue-query").IssueQuery | typeof import("./issue/issue-mutation").IssueMutation | typeof import("./check-item/check-item-query").CheckItemQuery | typeof import("./check-item/check-item-mutation").CheckItemMutation | typeof import("./project-report/project-report-query").ProjectReportQuery | typeof import("./project-report/project-report-mutation").ProjectReportMutation | typeof import("./supervisor/supervisor-query").SupervisorQuery | typeof import("./supervisor/supervisor-mutation").SupervisorMutation)[];
14
+ resolverClasses: typeof import("./checklist-item/checklist-item-mutation").ChecklistItemMutation[];
10
15
  };
@@ -5,39 +5,59 @@ const tslib_1 = require("tslib");
5
5
  /* EXPORT ENTITY TYPES */
6
6
  tslib_1.__exportStar(require("./action-plan/action-plan"), exports);
7
7
  tslib_1.__exportStar(require("./issue/issue"), exports);
8
- tslib_1.__exportStar(require("./check-item/check-item"), exports);
9
8
  tslib_1.__exportStar(require("./project-report/project-report"), exports);
10
9
  tslib_1.__exportStar(require("./supervisor/supervisor"), exports);
10
+ tslib_1.__exportStar(require("./checklist-type/checklist-type"), exports);
11
+ tslib_1.__exportStar(require("./checklist/checklist"), exports);
12
+ tslib_1.__exportStar(require("./checklist-item/checklist-item"), exports);
13
+ tslib_1.__exportStar(require("./checklist-template/checklist-template"), exports);
14
+ tslib_1.__exportStar(require("./checklist-template-item/checklist-template-item"), exports);
15
+ tslib_1.__exportStar(require("./building-inspection/building-inspection"), exports);
11
16
  /* IMPORT ENTITIES AND RESOLVERS */
12
17
  const action_plan_1 = require("./action-plan");
13
18
  const issue_1 = require("./issue");
14
- const check_item_1 = require("./check-item");
15
19
  const project_report_1 = require("./project-report");
16
20
  const supervisor_1 = require("./supervisor");
21
+ const checklist_1 = require("./checklist");
22
+ const checklist_item_1 = require("./checklist-item");
23
+ const checklist_type_1 = require("./checklist-type");
24
+ const checklist_template_1 = require("./checklist-template");
25
+ const checklist_template_item_1 = require("./checklist-template-item");
26
+ const building_inspection_1 = require("./building-inspection");
17
27
  exports.entities = [
18
28
  /* ENTITIES */
19
29
  ...action_plan_1.entities,
20
30
  ...issue_1.entities,
21
- ...check_item_1.entities,
22
31
  ...project_report_1.entities,
23
32
  ...supervisor_1.entities,
33
+ ...checklist_1.entities,
34
+ ...checklist_item_1.entities,
35
+ ...checklist_type_1.entities,
36
+ ...checklist_template_item_1.entities,
37
+ ...checklist_template_1.entities,
38
+ ...building_inspection_1.entities
24
39
  ];
25
40
  exports.subscribers = [
26
41
  /* SUBSCRIBERS */
27
42
  ...action_plan_1.subscribers,
28
43
  ...issue_1.subscribers,
29
- ...check_item_1.subscribers,
30
44
  ...project_report_1.subscribers,
31
45
  ...supervisor_1.subscribers,
46
+ ...building_inspection_1.subscribers
32
47
  ];
33
48
  exports.schema = {
34
49
  resolverClasses: [
35
50
  /* RESOLVER CLASSES */
36
51
  ...action_plan_1.resolvers,
37
52
  ...issue_1.resolvers,
38
- ...check_item_1.resolvers,
39
53
  ...project_report_1.resolvers,
40
54
  ...supervisor_1.resolvers,
55
+ ...checklist_1.resolvers,
56
+ ...checklist_item_1.resolvers,
57
+ ...checklist_type_1.resolvers,
58
+ ...checklist_template_item_1.resolvers,
59
+ ...checklist_template_1.resolvers,
60
+ ...building_inspection_1.resolvers
41
61
  ]
42
62
  };
43
63
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,oEAAyC;AACzC,wDAA6B;AAC7B,kEAAuC;AACvC,0EAA+C;AAC/C,kEAAuC;AAEvC,mCAAmC;AACnC,+CAAsI;AACtI,mCAAiH;AACjH,6CAAkI;AAClI,qDAAkJ;AAClJ,6CAAqI;AAExH,QAAA,QAAQ,GAAG;IACtB,cAAc;IACf,GAAG,sBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,qBAAiB;IACpB,GAAG,yBAAqB;IACxB,GAAG,qBAAkB;CACrB,CAAA;AAEY,QAAA,WAAW,GAAG;IACzB,iBAAiB;IAClB,GAAG,yBAAqB;IACxB,GAAG,mBAAgB;IACnB,GAAG,wBAAoB;IACvB,GAAG,4BAAwB;IAC3B,GAAG,wBAAqB;CACxB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACxB,GAAG,uBAAmB;QACtB,GAAG,iBAAc;QACjB,GAAG,sBAAkB;QACrB,GAAG,0BAAsB;QACzB,GAAG,sBAAmB;KACrB;CACF,CAAA","sourcesContent":["/* EXPORT ENTITY TYPES */\nexport * from './action-plan/action-plan'\nexport * from './issue/issue'\nexport * from './check-item/check-item'\nexport * from './project-report/project-report'\nexport * from './supervisor/supervisor'\n\n/* IMPORT ENTITIES AND RESOLVERS */\nimport { entities as ActionPlanEntities, resolvers as ActionPlanResolvers, subscribers as ActionPlanSubscribers } from './action-plan'\nimport { entities as IssueEntities, resolvers as IssueResolvers, subscribers as IssueSubscribers } from './issue'\nimport { entities as CheckItemEntities, resolvers as CheckItemResolvers, subscribers as CheckItemSubscribers } from './check-item'\nimport { entities as ProjectReportEntities, resolvers as ProjectReportResolvers, subscribers as ProjectReportSubscribers } from './project-report'\nimport { entities as SupervisorEntities, resolvers as SupervisorResolvers, subscribers as SupervisorSubscribers } from './supervisor'\n\nexport const entities = [ \n /* ENTITIES */\n\t...ActionPlanEntities,\n\t...IssueEntities,\n\t...CheckItemEntities,\n\t...ProjectReportEntities,\n\t...SupervisorEntities,\n] \n\nexport const subscribers = [\n /* SUBSCRIBERS */\n\t...ActionPlanSubscribers,\n\t...IssueSubscribers,\n\t...CheckItemSubscribers,\n\t...ProjectReportSubscribers,\n\t...SupervisorSubscribers,\n]\n\nexport const schema = {\n resolverClasses: [\n /* RESOLVER CLASSES */\n\t\t...ActionPlanResolvers,\n\t\t...IssueResolvers,\n\t\t...CheckItemResolvers,\n\t\t...ProjectReportResolvers,\n\t\t...SupervisorResolvers,\n ] \n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,oEAAyC;AACzC,wDAA6B;AAC7B,0EAA+C;AAC/C,kEAAuC;AACvC,0EAA+C;AAC/C,gEAAqC;AACrC,0EAA+C;AAC/C,kFAAuD;AACvD,4FAAiE;AACjE,oFAAyD;AAEzD,mCAAmC;AACnC,+CAIsB;AACtB,mCAAiH;AACjH,qDAIyB;AACzB,6CAIqB;AACrB,2CAA4F;AAC5F,qDAAyG;AACzG,qDAAyG;AACzG,6DAAqH;AACrH,uEAAkI;AAClI,+DAI8B;AAEjB,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,sBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,yBAAqB;IACxB,GAAG,qBAAkB;IACrB,GAAG,oBAAiB;IACpB,GAAG,yBAAqB;IACxB,GAAG,yBAAqB;IACxB,GAAG,kCAA6B;IAChC,GAAG,6BAAyB;IAC5B,GAAG,8BAA0B;CAC9B,CAAA;AAEY,QAAA,WAAW,GAAG;IACzB,iBAAiB;IACjB,GAAG,yBAAqB;IACxB,GAAG,mBAAgB;IACnB,GAAG,4BAAwB;IAC3B,GAAG,wBAAqB;IACxB,GAAG,iCAA6B;CACjC,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACtB,GAAG,uBAAmB;QACtB,GAAG,iBAAc;QACjB,GAAG,0BAAsB;QACzB,GAAG,sBAAmB;QACtB,GAAG,qBAAkB;QACrB,GAAG,0BAAsB;QACzB,GAAG,0BAAsB;QACzB,GAAG,mCAA8B;QACjC,GAAG,8BAA0B;QAC7B,GAAG,+BAA2B;KAC/B;CACF,CAAA","sourcesContent":["/* EXPORT ENTITY TYPES */\nexport * from './action-plan/action-plan'\nexport * from './issue/issue'\nexport * from './project-report/project-report'\nexport * from './supervisor/supervisor'\nexport * from './checklist-type/checklist-type'\nexport * from './checklist/checklist'\nexport * from './checklist-item/checklist-item'\nexport * from './checklist-template/checklist-template'\nexport * from './checklist-template-item/checklist-template-item'\nexport * from './building-inspection/building-inspection'\n\n/* IMPORT ENTITIES AND RESOLVERS */\nimport {\n entities as ActionPlanEntities,\n resolvers as ActionPlanResolvers,\n subscribers as ActionPlanSubscribers\n} from './action-plan'\nimport { entities as IssueEntities, resolvers as IssueResolvers, subscribers as IssueSubscribers } from './issue'\nimport {\n entities as ProjectReportEntities,\n resolvers as ProjectReportResolvers,\n subscribers as ProjectReportSubscribers\n} from './project-report'\nimport {\n entities as SupervisorEntities,\n resolvers as SupervisorResolvers,\n subscribers as SupervisorSubscribers\n} from './supervisor'\nimport { entities as ChecklistEntities, resolvers as ChecklistResolvers } from './checklist'\nimport { entities as ChecklistItemEntities, resolvers as ChecklistItemResolvers } from './checklist-item'\nimport { entities as ChecklistTypeEntities, resolvers as ChecklistTypeResolvers } from './checklist-type'\nimport { entities as ChecklistTemplateEntities, resolvers as ChecklistTemplateResolvers } from './checklist-template'\nimport { entities as ChecklistTemplateItemEntities, resolvers as ChecklistTemplateItemResolvers } from './checklist-template-item'\nimport {\n entities as BuildingInspectionEntities,\n resolvers as BuildingInspectionResolvers,\n subscribers as BuildingInspectionSubscribers\n} from './building-inspection'\n\nexport const entities = [\n /* ENTITIES */\n ...ActionPlanEntities,\n ...IssueEntities,\n ...ProjectReportEntities,\n ...SupervisorEntities,\n ...ChecklistEntities,\n ...ChecklistItemEntities,\n ...ChecklistTypeEntities,\n ...ChecklistTemplateItemEntities,\n ...ChecklistTemplateEntities,\n ...BuildingInspectionEntities\n]\n\nexport const subscribers = [\n /* SUBSCRIBERS */\n ...ActionPlanSubscribers,\n ...IssueSubscribers,\n ...ProjectReportSubscribers,\n ...SupervisorSubscribers,\n ...BuildingInspectionSubscribers\n]\n\nexport const schema = {\n resolverClasses: [\n /* RESOLVER CLASSES */\n ...ActionPlanResolvers,\n ...IssueResolvers,\n ...ProjectReportResolvers,\n ...SupervisorResolvers,\n ...ChecklistResolvers,\n ...ChecklistItemResolvers,\n ...ChecklistTypeResolvers,\n ...ChecklistTemplateItemResolvers,\n ...ChecklistTemplateResolvers,\n ...BuildingInspectionResolvers\n ]\n}\n"]}
@@ -1,7 +1,6 @@
1
1
  import { Domain } from '@things-factory/shell';
2
2
  import { User } from '@things-factory/auth-base';
3
- import { CheckItem } from 'service/check-item/check-item';
4
- import { ActionPlan } from 'service/action-plan/action-plan';
3
+ import { ActionPlan } from '../action-plan/action-plan';
5
4
  export declare enum IssueStatus {
6
5
  STATUS_A = "STATUS_A",
7
6
  STATUS_B = "STATUS_B"
@@ -15,7 +14,6 @@ export declare class Issue {
15
14
  active?: boolean;
16
15
  state?: IssueStatus;
17
16
  params?: string;
18
- checkItem: CheckItem;
19
17
  actionPlans: ActionPlan[];
20
18
  createdAt?: Date;
21
19
  updatedAt?: Date;
@@ -6,8 +6,7 @@ const typeorm_1 = require("typeorm");
6
6
  const type_graphql_1 = require("type-graphql");
7
7
  const shell_1 = require("@things-factory/shell");
8
8
  const auth_base_1 = require("@things-factory/auth-base");
9
- const check_item_1 = require("service/check-item/check-item");
10
- const action_plan_1 = require("service/action-plan/action-plan");
9
+ const action_plan_1 = require("../action-plan/action-plan");
11
10
  var IssueStatus;
12
11
  (function (IssueStatus) {
13
12
  IssueStatus["STATUS_A"] = "STATUS_A";
@@ -58,11 +57,6 @@ tslib_1.__decorate([
58
57
  (0, type_graphql_1.Field)({ nullable: true }),
59
58
  tslib_1.__metadata("design:type", String)
60
59
  ], Issue.prototype, "params", void 0);
61
- tslib_1.__decorate([
62
- (0, type_graphql_1.Field)(() => check_item_1.CheckItem),
63
- (0, typeorm_1.ManyToOne)(() => check_item_1.CheckItem, checkItem => checkItem.issues),
64
- tslib_1.__metadata("design:type", check_item_1.CheckItem)
65
- ], Issue.prototype, "checkItem", void 0);
66
60
  tslib_1.__decorate([
67
61
  (0, type_graphql_1.Field)(() => [action_plan_1.ActionPlan]),
68
62
  (0, typeorm_1.OneToMany)(() => action_plan_1.ActionPlan, actionPlan => actionPlan.issue),
@@ -1 +1 @@
1
- {"version":3,"file":"issue.js","sourceRoot":"","sources":["../../../server/service/issue/issue.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAA2E;AAE3E,iDAA8C;AAC9C,yDAAgD;AAChD,8DAAyD;AACzD,iEAA4D;AAE5D,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;AACvB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAED,IAAA,+BAAgB,EAAC,WAAW,EAAE;IAC5B,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,8BAA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C;;wCAC1B;AAElB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACxB;AAnEP,KAAK;IANjB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,YAAY,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE;QACjE,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,sBAAsB;KAC9B,CAAC;IACD,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;GACnC,KAAK,CAoEjB;AApEY,sBAAK","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn,\n VersionColumn\n} from 'typeorm'\nimport { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { CheckItem } from 'service/check-item/check-item'\nimport { ActionPlan } from 'service/action-plan/action-plan'\n\nexport enum IssueStatus {\n STATUS_A = 'STATUS_A',\n STATUS_B = 'STATUS_B'\n}\n\nregisterEnumType(IssueStatus, {\n name: 'IssueStatus',\n description: 'state enumeration of a issue'\n})\n\n@Entity()\n@Index('ix_issue_0', (issue: Issue) => [issue.domain, issue.name], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for Issue' })\nexport class Issue {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((issue: Issue) => issue.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n active?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n state?: IssueStatus\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n params?: string\n\n @Field(() => CheckItem)\n @ManyToOne(() => CheckItem, checkItem => checkItem.issues)\n checkItem: CheckItem\n\n @Field(() => [ActionPlan])\n @OneToMany(() => ActionPlan, actionPlan => actionPlan.issue)\n actionPlans: ActionPlan[]\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((issue: Issue) => issue.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((issue: Issue) => issue.updater)\n updaterId?: string\n\n @Field(type => String, { nullable: true })\n thumbnail?: string\n}\n"]}
1
+ {"version":3,"file":"issue.js","sourceRoot":"","sources":["../../../server/service/issue/issue.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAA2E;AAE3E,iDAA8C;AAC9C,yDAAgD;AAChD,4DAAuD;AAEvD,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;AACvB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAED,IAAA,+BAAgB,EAAC,WAAW,EAAE;IAC5B,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,8BAA8B;CAC5C,CAAC,CAAA;AAQK,IAAM,KAAK,GAAX,MAAM,KAAK;CAgEjB,CAAA;AA/DC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;iCACC;AAEnB;IAAC,IAAA,mBAAS,EAA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AC;GACnC,KAAK,CAgEjB;AAhEY,sBAAK","sourcesContent":["import {\n CreateDateColumn,\n UpdateDateColumn,\n DeleteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn,\n VersionColumn\n} from 'typeorm'\nimport { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ActionPlan } from '../action-plan/action-plan'\n\nexport enum IssueStatus {\n STATUS_A = 'STATUS_A',\n STATUS_B = 'STATUS_B'\n}\n\nregisterEnumType(IssueStatus, {\n name: 'IssueStatus',\n description: 'state enumeration of a issue'\n})\n\n@Entity()\n@Index('ix_issue_0', (issue: Issue) => [issue.domain, issue.name], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for Issue' })\nexport class Issue {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((issue: Issue) => issue.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n active?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n state?: IssueStatus\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n params?: string\n\n @Field(() => [ActionPlan])\n @OneToMany(() => ActionPlan, actionPlan => actionPlan.issue)\n actionPlans: ActionPlan[]\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((issue: Issue) => issue.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((issue: Issue) => issue.updater)\n updaterId?: string\n\n @Field(type => String, { nullable: true })\n thumbnail?: string\n}\n"]}
@@ -1,7 +1,6 @@
1
1
  import { Domain } from '@things-factory/shell';
2
2
  import { User } from '@things-factory/auth-base';
3
- import { ProjectReport } from 'service/project-report/project-report';
4
- import { CheckItem } from 'service/check-item/check-item';
3
+ import { ProjectReport } from '../project-report/project-report';
5
4
  export declare enum SupervisorStatus {
6
5
  STATUS_A = "STATUS_A",
7
6
  STATUS_B = "STATUS_B"
@@ -18,7 +17,6 @@ export declare class Supervisor {
18
17
  email: string;
19
18
  phoneNumber: string;
20
19
  reports: ProjectReport[];
21
- checkItems: CheckItem[];
22
20
  createdAt?: Date;
23
21
  updatedAt?: Date;
24
22
  deletedAt?: Date;
@@ -6,8 +6,7 @@ const typeorm_1 = require("typeorm");
6
6
  const type_graphql_1 = require("type-graphql");
7
7
  const shell_1 = require("@things-factory/shell");
8
8
  const auth_base_1 = require("@things-factory/auth-base");
9
- const project_report_1 = require("service/project-report/project-report");
10
- const check_item_1 = require("service/check-item/check-item");
9
+ const project_report_1 = require("../project-report/project-report");
11
10
  var SupervisorStatus;
12
11
  (function (SupervisorStatus) {
13
12
  SupervisorStatus["STATUS_A"] = "STATUS_A";
@@ -73,11 +72,6 @@ tslib_1.__decorate([
73
72
  (0, typeorm_1.OneToMany)(() => project_report_1.ProjectReport, report => report.supervisor),
74
73
  tslib_1.__metadata("design:type", Array)
75
74
  ], Supervisor.prototype, "reports", void 0);
76
- tslib_1.__decorate([
77
- (0, type_graphql_1.Field)(() => [check_item_1.CheckItem]),
78
- (0, typeorm_1.OneToMany)(() => check_item_1.CheckItem, checkItem => checkItem.supervisor),
79
- tslib_1.__metadata("design:type", Array)
80
- ], Supervisor.prototype, "checkItems", void 0);
81
75
  tslib_1.__decorate([
82
76
  (0, typeorm_1.CreateDateColumn)(),
83
77
  (0, type_graphql_1.Field)({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n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn,\n VersionColumn\n} from 'typeorm'\nimport { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ProjectReport } from 'service/project-report/project-report'\nimport { CheckItem } from 'service/check-item/check-item'\n\nexport enum SupervisorStatus {\n STATUS_A = 'STATUS_A',\n STATUS_B = 'STATUS_B'\n}\n\nregisterEnumType(SupervisorStatus, {\n name: 'SupervisorStatus',\n description: 'state enumeration of a supervisor'\n})\n\n@Entity()\n@Index('ix_supervisor_0', (supervisor: Supervisor) => [supervisor.domain, supervisor.name], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for Supervisor' })\nexport class Supervisor {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((supervisor: Supervisor) => supervisor.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n active?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n state?: SupervisorStatus\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n params?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n email: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n phoneNumber: string\n\n @Field(() => [ProjectReport])\n @OneToMany(() => ProjectReport, report => report.supervisor)\n reports: ProjectReport[]\n\n @Field(() => [CheckItem])\n @OneToMany(() => CheckItem, checkItem => checkItem.supervisor)\n checkItems: CheckItem[]\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((supervisor: Supervisor) => supervisor.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((supervisor: Supervisor) => supervisor.updater)\n updaterId?: string\n\n @Field(type => String, { nullable: true })\n thumbnail?: string\n}\n"]}
1
+ {"version":3,"file":"supervisor.js","sourceRoot":"","sources":["../../../server/service/supervisor/supervisor.ts"],"names":[],"mappings":";;;;AAAA,qCAYgB;AAChB,+CAA2E;AAE3E,iDAA8C;AAC9C,yDAAgD;AAChD,qEAAgE;AAEhE,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,yCAAqB,CAAA;IACrB,yCAAqB,CAAA;AACvB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAA,+BAAgB,EAAC,gBAAgB,EAAE;IACjC,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,mCAAmC;CACjD,CAAC,CAAA;AAQK,IAAM,UAAU,GAAhB,MAAM,UAAU;CAwEtB,CAAA;AAvEC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;sCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;0CAAA;AAEf;IAAC,IAAA,oBAAU,EAAC,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;;4CACzC;AAEjB;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACb;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE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leteDateColumn,\n Entity,\n Index,\n Column,\n RelationId,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn,\n VersionColumn\n} from 'typeorm'\nimport { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { ProjectReport } from '../project-report/project-report'\n\nexport enum SupervisorStatus {\n STATUS_A = 'STATUS_A',\n STATUS_B = 'STATUS_B'\n}\n\nregisterEnumType(SupervisorStatus, {\n name: 'SupervisorStatus',\n description: 'state enumeration of a supervisor'\n})\n\n@Entity()\n@Index('ix_supervisor_0', (supervisor: Supervisor) => [supervisor.domain, supervisor.name], {\n unique: true,\n where: '\"deleted_at\" IS NULL'\n})\n@ObjectType({ description: 'Entity for Supervisor' })\nexport class Supervisor {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((supervisor: Supervisor) => supervisor.domain)\n domainId?: string\n\n @Column()\n @Field({ nullable: true })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n active?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n state?: SupervisorStatus\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n params?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n email: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n phoneNumber: string\n\n @Field(() => [ProjectReport])\n @OneToMany(() => ProjectReport, report => report.supervisor)\n reports: ProjectReport[]\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((supervisor: Supervisor) => supervisor.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((supervisor: Supervisor) => supervisor.updater)\n updaterId?: string\n\n @Field(type => String, { nullable: true })\n thumbnail?: string\n}\n"]}