@things-factory/compliance 0.0.0-stage → 10.1.255

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 (356) hide show
  1. package/dist-client/bootstrap.d.ts +2 -0
  2. package/dist-client/bootstrap.js +28 -0
  3. package/dist-client/bootstrap.js.map +1 -0
  4. package/dist-client/components/compliance-case-form.d.ts +42 -0
  5. package/dist-client/components/compliance-case-form.js +313 -0
  6. package/dist-client/components/compliance-case-form.js.map +1 -0
  7. package/dist-client/components/compliance-case-sheet.d.ts +35 -0
  8. package/dist-client/components/compliance-case-sheet.js +335 -0
  9. package/dist-client/components/compliance-case-sheet.js.map +1 -0
  10. package/dist-client/components/compliance-my-inventions.d.ts +17 -0
  11. package/dist-client/components/compliance-my-inventions.js +133 -0
  12. package/dist-client/components/compliance-my-inventions.js.map +1 -0
  13. package/dist-client/components/compliance-my-privacy-requests.d.ts +34 -0
  14. package/dist-client/components/compliance-my-privacy-requests.js +232 -0
  15. package/dist-client/components/compliance-my-privacy-requests.js.map +1 -0
  16. package/dist-client/components/compliance-my-reports.d.ts +19 -0
  17. package/dist-client/components/compliance-my-reports.js +137 -0
  18. package/dist-client/components/compliance-my-reports.js.map +1 -0
  19. package/dist-client/components/guide-link.d.ts +13 -0
  20. package/dist-client/components/guide-link.js +55 -0
  21. package/dist-client/components/guide-link.js.map +1 -0
  22. package/dist-client/components/invention-report-form.d.ts +30 -0
  23. package/dist-client/components/invention-report-form.js +188 -0
  24. package/dist-client/components/invention-report-form.js.map +1 -0
  25. package/dist-client/components/legal-todo.d.ts +10 -0
  26. package/dist-client/components/legal-todo.js +43 -0
  27. package/dist-client/components/legal-todo.js.map +1 -0
  28. package/dist-client/components/my-trainings.d.ts +18 -0
  29. package/dist-client/components/my-trainings.js +149 -0
  30. package/dist-client/components/my-trainings.js.map +1 -0
  31. package/dist-client/components/regulation-form.d.ts +26 -0
  32. package/dist-client/components/regulation-form.js +161 -0
  33. package/dist-client/components/regulation-form.js.map +1 -0
  34. package/dist-client/components/seal-use-form.d.ts +47 -0
  35. package/dist-client/components/seal-use-form.js +300 -0
  36. package/dist-client/components/seal-use-form.js.map +1 -0
  37. package/dist-client/components/training-attendance-form.d.ts +37 -0
  38. package/dist-client/components/training-attendance-form.js +186 -0
  39. package/dist-client/components/training-attendance-form.js.map +1 -0
  40. package/dist-client/components/training-certificate-form.d.ts +41 -0
  41. package/dist-client/components/training-certificate-form.js +198 -0
  42. package/dist-client/components/training-certificate-form.js.map +1 -0
  43. package/dist-client/components/training-session-form.d.ts +39 -0
  44. package/dist-client/components/training-session-form.js +270 -0
  45. package/dist-client/components/training-session-form.js.map +1 -0
  46. package/dist-client/components/training-setting-form.d.ts +45 -0
  47. package/dist-client/components/training-setting-form.js +175 -0
  48. package/dist-client/components/training-setting-form.js.map +1 -0
  49. package/dist-client/index.d.ts +4 -0
  50. package/dist-client/index.js +8 -0
  51. package/dist-client/index.js.map +1 -0
  52. package/dist-client/legal-record/dispute-calendar-source.d.ts +1 -0
  53. package/dist-client/legal-record/dispute-calendar-source.js +51 -0
  54. package/dist-client/legal-record/dispute-calendar-source.js.map +1 -0
  55. package/dist-client/legal-record/legal-child-grid.d.ts +31 -0
  56. package/dist-client/legal-record/legal-child-grid.js +76 -0
  57. package/dist-client/legal-record/legal-child-grid.js.map +1 -0
  58. package/dist-client/legal-record/legal-codes.d.ts +3 -0
  59. package/dist-client/legal-record/legal-codes.js +5 -0
  60. package/dist-client/legal-record/legal-codes.js.map +1 -0
  61. package/dist-client/legal-record/legal-grid.d.ts +59 -0
  62. package/dist-client/legal-record/legal-grid.js +68 -0
  63. package/dist-client/legal-record/legal-grid.js.map +1 -0
  64. package/dist-client/legal-record/legal-record-files.d.ts +26 -0
  65. package/dist-client/legal-record/legal-record-files.js +162 -0
  66. package/dist-client/legal-record/legal-record-files.js.map +1 -0
  67. package/dist-client/pages/compliance-case-list.d.ts +35 -0
  68. package/dist-client/pages/compliance-case-list.js +112 -0
  69. package/dist-client/pages/compliance-case-list.js.map +1 -0
  70. package/dist-client/pages/dispute-list.d.ts +57 -0
  71. package/dist-client/pages/dispute-list.js +156 -0
  72. package/dist-client/pages/dispute-list.js.map +1 -0
  73. package/dist-client/pages/invention-list.d.ts +57 -0
  74. package/dist-client/pages/invention-list.js +166 -0
  75. package/dist-client/pages/invention-list.js.map +1 -0
  76. package/dist-client/pages/legal-registration-list.d.ts +63 -0
  77. package/dist-client/pages/legal-registration-list.js +206 -0
  78. package/dist-client/pages/legal-registration-list.js.map +1 -0
  79. package/dist-client/pages/privacy-record-list.d.ts +52 -0
  80. package/dist-client/pages/privacy-record-list.js +225 -0
  81. package/dist-client/pages/privacy-record-list.js.map +1 -0
  82. package/dist-client/pages/regulation-detail.d.ts +43 -0
  83. package/dist-client/pages/regulation-detail.js +370 -0
  84. package/dist-client/pages/regulation-detail.js.map +1 -0
  85. package/dist-client/pages/regulation-list.d.ts +52 -0
  86. package/dist-client/pages/regulation-list.js +144 -0
  87. package/dist-client/pages/regulation-list.js.map +1 -0
  88. package/dist-client/pages/regulations.d.ts +49 -0
  89. package/dist-client/pages/regulations.js +412 -0
  90. package/dist-client/pages/regulations.js.map +1 -0
  91. package/dist-client/pages/seal-use-list.d.ts +57 -0
  92. package/dist-client/pages/seal-use-list.js +168 -0
  93. package/dist-client/pages/seal-use-list.js.map +1 -0
  94. package/dist-client/pages/training-list.d.ts +51 -0
  95. package/dist-client/pages/training-list.js +333 -0
  96. package/dist-client/pages/training-list.js.map +1 -0
  97. package/dist-client/regulation/regulation-fragments.d.ts +1 -0
  98. package/dist-client/regulation/regulation-fragments.js +37 -0
  99. package/dist-client/regulation/regulation-fragments.js.map +1 -0
  100. package/dist-client/regulation/regulation-guide.d.ts +19 -0
  101. package/dist-client/regulation/regulation-guide.js +48 -0
  102. package/dist-client/regulation/regulation-guide.js.map +1 -0
  103. package/dist-client/route.d.ts +1 -0
  104. package/dist-client/route.js +36 -0
  105. package/dist-client/route.js.map +1 -0
  106. package/dist-client/training-words.d.ts +11 -0
  107. package/dist-client/training-words.js +11 -0
  108. package/dist-client/training-words.js.map +1 -0
  109. package/dist-client/tsconfig.tsbuildinfo +1 -0
  110. package/dist-client/words.d.ts +15 -0
  111. package/dist-client/words.js +20 -0
  112. package/dist-client/words.js.map +1 -0
  113. package/dist-server/activities/index.d.ts +6 -0
  114. package/dist-server/activities/index.js +37 -0
  115. package/dist-server/activities/index.js.map +1 -0
  116. package/dist-server/activities/legal-todo-activity-names.d.ts +1 -0
  117. package/dist-server/activities/legal-todo-activity-names.js +5 -0
  118. package/dist-server/activities/legal-todo-activity-names.js.map +1 -0
  119. package/dist-server/activities/legal-todo-activity.d.ts +37 -0
  120. package/dist-server/activities/legal-todo-activity.js +41 -0
  121. package/dist-server/activities/legal-todo-activity.js.map +1 -0
  122. package/dist-server/activities/regulation-activity-names.d.ts +1 -0
  123. package/dist-server/activities/regulation-activity-names.js +5 -0
  124. package/dist-server/activities/regulation-activity-names.js.map +1 -0
  125. package/dist-server/activities/regulation-activity.d.ts +48 -0
  126. package/dist-server/activities/regulation-activity.js +47 -0
  127. package/dist-server/activities/regulation-activity.js.map +1 -0
  128. package/dist-server/activities/seal-use-activity-names.d.ts +2 -0
  129. package/dist-server/activities/seal-use-activity-names.js +6 -0
  130. package/dist-server/activities/seal-use-activity-names.js.map +1 -0
  131. package/dist-server/activities/seal-use-activity.d.ts +48 -0
  132. package/dist-server/activities/seal-use-activity.js +47 -0
  133. package/dist-server/activities/seal-use-activity.js.map +1 -0
  134. package/dist-server/index.d.ts +2 -0
  135. package/dist-server/index.js +21 -0
  136. package/dist-server/index.js.map +1 -0
  137. package/dist-server/role-tasks.d.ts +2 -0
  138. package/dist-server/role-tasks.js +28 -0
  139. package/dist-server/role-tasks.js.map +1 -0
  140. package/dist-server/service/common/correction.d.ts +32 -0
  141. package/dist-server/service/common/correction.js +98 -0
  142. package/dist-server/service/common/correction.js.map +1 -0
  143. package/dist-server/service/common/employee-reader.d.ts +11 -0
  144. package/dist-server/service/common/employee-reader.js +46 -0
  145. package/dist-server/service/common/employee-reader.js.map +1 -0
  146. package/dist-server/service/common/legal-todo.d.ts +19 -0
  147. package/dist-server/service/common/legal-todo.js +37 -0
  148. package/dist-server/service/common/legal-todo.js.map +1 -0
  149. package/dist-server/service/compliance-case/compliance-case-mutation.d.ts +9 -0
  150. package/dist-server/service/compliance-case/compliance-case-mutation.js +73 -0
  151. package/dist-server/service/compliance-case/compliance-case-mutation.js.map +1 -0
  152. package/dist-server/service/compliance-case/compliance-case-query.d.ts +28 -0
  153. package/dist-server/service/compliance-case/compliance-case-query.js +212 -0
  154. package/dist-server/service/compliance-case/compliance-case-query.js.map +1 -0
  155. package/dist-server/service/compliance-case/compliance-case-rules.d.ts +71 -0
  156. package/dist-server/service/compliance-case/compliance-case-rules.js +111 -0
  157. package/dist-server/service/compliance-case/compliance-case-rules.js.map +1 -0
  158. package/dist-server/service/compliance-case/compliance-case-service.d.ts +76 -0
  159. package/dist-server/service/compliance-case/compliance-case-service.js +425 -0
  160. package/dist-server/service/compliance-case/compliance-case-service.js.map +1 -0
  161. package/dist-server/service/compliance-case/compliance-case-type.d.ts +56 -0
  162. package/dist-server/service/compliance-case/compliance-case-type.js +200 -0
  163. package/dist-server/service/compliance-case/compliance-case-type.js.map +1 -0
  164. package/dist-server/service/compliance-case/compliance-case.d.ts +76 -0
  165. package/dist-server/service/compliance-case/compliance-case.js +260 -0
  166. package/dist-server/service/compliance-case/compliance-case.js.map +1 -0
  167. package/dist-server/service/compliance-case/index.d.ts +7 -0
  168. package/dist-server/service/compliance-case/index.js +17 -0
  169. package/dist-server/service/compliance-case/index.js.map +1 -0
  170. package/dist-server/service/dispute/dispute-mutation.d.ts +9 -0
  171. package/dist-server/service/dispute/dispute-mutation.js +64 -0
  172. package/dist-server/service/dispute/dispute-mutation.js.map +1 -0
  173. package/dist-server/service/dispute/dispute-query.d.ts +16 -0
  174. package/dist-server/service/dispute/dispute-query.js +124 -0
  175. package/dist-server/service/dispute/dispute-query.js.map +1 -0
  176. package/dist-server/service/dispute/dispute-rules.d.ts +20 -0
  177. package/dist-server/service/dispute/dispute-rules.js +42 -0
  178. package/dist-server/service/dispute/dispute-rules.js.map +1 -0
  179. package/dist-server/service/dispute/dispute-service.d.ts +17 -0
  180. package/dist-server/service/dispute/dispute-service.js +96 -0
  181. package/dist-server/service/dispute/dispute-service.js.map +1 -0
  182. package/dist-server/service/dispute/dispute-type.d.ts +39 -0
  183. package/dist-server/service/dispute/dispute-type.js +149 -0
  184. package/dist-server/service/dispute/dispute-type.js.map +1 -0
  185. package/dist-server/service/dispute/dispute.d.ts +48 -0
  186. package/dist-server/service/dispute/dispute.js +198 -0
  187. package/dist-server/service/dispute/dispute.js.map +1 -0
  188. package/dist-server/service/dispute/index.d.ts +5 -0
  189. package/dist-server/service/dispute/index.js +9 -0
  190. package/dist-server/service/dispute/index.js.map +1 -0
  191. package/dist-server/service/index.d.ts +46 -0
  192. package/dist-server/service/index.js +112 -0
  193. package/dist-server/service/index.js.map +1 -0
  194. package/dist-server/service/invention/index.d.ts +5 -0
  195. package/dist-server/service/invention/index.js +9 -0
  196. package/dist-server/service/invention/index.js.map +1 -0
  197. package/dist-server/service/invention/invention-mutation.d.ts +10 -0
  198. package/dist-server/service/invention/invention-mutation.js +79 -0
  199. package/dist-server/service/invention/invention-mutation.js.map +1 -0
  200. package/dist-server/service/invention/invention-query.d.ts +18 -0
  201. package/dist-server/service/invention/invention-query.js +141 -0
  202. package/dist-server/service/invention/invention-query.js.map +1 -0
  203. package/dist-server/service/invention/invention-rules.d.ts +28 -0
  204. package/dist-server/service/invention/invention-rules.js +54 -0
  205. package/dist-server/service/invention/invention-rules.js.map +1 -0
  206. package/dist-server/service/invention/invention-service.d.ts +25 -0
  207. package/dist-server/service/invention/invention-service.js +176 -0
  208. package/dist-server/service/invention/invention-service.js.map +1 -0
  209. package/dist-server/service/invention/invention-type.d.ts +34 -0
  210. package/dist-server/service/invention/invention-type.js +129 -0
  211. package/dist-server/service/invention/invention-type.js.map +1 -0
  212. package/dist-server/service/invention/invention.d.ts +55 -0
  213. package/dist-server/service/invention/invention.js +214 -0
  214. package/dist-server/service/invention/invention.js.map +1 -0
  215. package/dist-server/service/legal-record/attachment-readers.d.ts +1 -0
  216. package/dist-server/service/legal-record/attachment-readers.js +27 -0
  217. package/dist-server/service/legal-record/attachment-readers.js.map +1 -0
  218. package/dist-server/service/legal-record/days.d.ts +7 -0
  219. package/dist-server/service/legal-record/days.js +26 -0
  220. package/dist-server/service/legal-record/days.js.map +1 -0
  221. package/dist-server/service/legal-record/legal-record-support.d.ts +24 -0
  222. package/dist-server/service/legal-record/legal-record-support.js +51 -0
  223. package/dist-server/service/legal-record/legal-record-support.js.map +1 -0
  224. package/dist-server/service/legal-registration/centre-change-subscriber.d.ts +9 -0
  225. package/dist-server/service/legal-registration/centre-change-subscriber.js +50 -0
  226. package/dist-server/service/legal-registration/centre-change-subscriber.js.map +1 -0
  227. package/dist-server/service/legal-registration/index.d.ts +7 -0
  228. package/dist-server/service/legal-registration/index.js +11 -0
  229. package/dist-server/service/legal-registration/index.js.map +1 -0
  230. package/dist-server/service/legal-registration/legal-registration-mutation.d.ts +10 -0
  231. package/dist-server/service/legal-registration/legal-registration-mutation.js +77 -0
  232. package/dist-server/service/legal-registration/legal-registration-mutation.js.map +1 -0
  233. package/dist-server/service/legal-registration/legal-registration-query.d.ts +26 -0
  234. package/dist-server/service/legal-registration/legal-registration-query.js +199 -0
  235. package/dist-server/service/legal-registration/legal-registration-query.js.map +1 -0
  236. package/dist-server/service/legal-registration/legal-registration-rules.d.ts +80 -0
  237. package/dist-server/service/legal-registration/legal-registration-rules.js +106 -0
  238. package/dist-server/service/legal-registration/legal-registration-rules.js.map +1 -0
  239. package/dist-server/service/legal-registration/legal-registration-service.d.ts +37 -0
  240. package/dist-server/service/legal-registration/legal-registration-service.js +248 -0
  241. package/dist-server/service/legal-registration/legal-registration-service.js.map +1 -0
  242. package/dist-server/service/legal-registration/legal-registration-type.d.ts +55 -0
  243. package/dist-server/service/legal-registration/legal-registration-type.js +207 -0
  244. package/dist-server/service/legal-registration/legal-registration-type.js.map +1 -0
  245. package/dist-server/service/legal-registration/legal-registration.d.ts +76 -0
  246. package/dist-server/service/legal-registration/legal-registration.js +311 -0
  247. package/dist-server/service/legal-registration/legal-registration.js.map +1 -0
  248. package/dist-server/service/privacy-record/index.d.ts +5 -0
  249. package/dist-server/service/privacy-record/index.js +9 -0
  250. package/dist-server/service/privacy-record/index.js.map +1 -0
  251. package/dist-server/service/privacy-record/privacy-record-mutation.d.ts +7 -0
  252. package/dist-server/service/privacy-record/privacy-record-mutation.js +56 -0
  253. package/dist-server/service/privacy-record/privacy-record-mutation.js.map +1 -0
  254. package/dist-server/service/privacy-record/privacy-record-query.d.ts +18 -0
  255. package/dist-server/service/privacy-record/privacy-record-query.js +131 -0
  256. package/dist-server/service/privacy-record/privacy-record-query.js.map +1 -0
  257. package/dist-server/service/privacy-record/privacy-record-rules.d.ts +52 -0
  258. package/dist-server/service/privacy-record/privacy-record-rules.js +91 -0
  259. package/dist-server/service/privacy-record/privacy-record-rules.js.map +1 -0
  260. package/dist-server/service/privacy-record/privacy-record-service.d.ts +33 -0
  261. package/dist-server/service/privacy-record/privacy-record-service.js +133 -0
  262. package/dist-server/service/privacy-record/privacy-record-service.js.map +1 -0
  263. package/dist-server/service/privacy-record/privacy-record-type.d.ts +40 -0
  264. package/dist-server/service/privacy-record/privacy-record-type.js +153 -0
  265. package/dist-server/service/privacy-record/privacy-record-type.js.map +1 -0
  266. package/dist-server/service/privacy-record/privacy-record.d.ts +69 -0
  267. package/dist-server/service/privacy-record/privacy-record.js +245 -0
  268. package/dist-server/service/privacy-record/privacy-record.js.map +1 -0
  269. package/dist-server/service/regulation/index.d.ts +5 -0
  270. package/dist-server/service/regulation/index.js +9 -0
  271. package/dist-server/service/regulation/index.js.map +1 -0
  272. package/dist-server/service/regulation/regulation-mutation.d.ts +15 -0
  273. package/dist-server/service/regulation/regulation-mutation.js +152 -0
  274. package/dist-server/service/regulation/regulation-mutation.js.map +1 -0
  275. package/dist-server/service/regulation/regulation-query.d.ts +10 -0
  276. package/dist-server/service/regulation/regulation-query.js +109 -0
  277. package/dist-server/service/regulation/regulation-query.js.map +1 -0
  278. package/dist-server/service/regulation/regulation-read.d.ts +21 -0
  279. package/dist-server/service/regulation/regulation-read.js +111 -0
  280. package/dist-server/service/regulation/regulation-read.js.map +1 -0
  281. package/dist-server/service/regulation/regulation-rules.d.ts +83 -0
  282. package/dist-server/service/regulation/regulation-rules.js +170 -0
  283. package/dist-server/service/regulation/regulation-rules.js.map +1 -0
  284. package/dist-server/service/regulation/regulation-service.d.ts +63 -0
  285. package/dist-server/service/regulation/regulation-service.js +365 -0
  286. package/dist-server/service/regulation/regulation-service.js.map +1 -0
  287. package/dist-server/service/regulation/regulation-type.d.ts +61 -0
  288. package/dist-server/service/regulation/regulation-type.js +226 -0
  289. package/dist-server/service/regulation/regulation-type.js.map +1 -0
  290. package/dist-server/service/regulation/regulation.d.ts +113 -0
  291. package/dist-server/service/regulation/regulation.js +382 -0
  292. package/dist-server/service/regulation/regulation.js.map +1 -0
  293. package/dist-server/service/seal-use/index.d.ts +5 -0
  294. package/dist-server/service/seal-use/index.js +9 -0
  295. package/dist-server/service/seal-use/index.js.map +1 -0
  296. package/dist-server/service/seal-use/seal-use-mutation.d.ts +8 -0
  297. package/dist-server/service/seal-use/seal-use-mutation.js +69 -0
  298. package/dist-server/service/seal-use/seal-use-mutation.js.map +1 -0
  299. package/dist-server/service/seal-use/seal-use-query.d.ts +14 -0
  300. package/dist-server/service/seal-use/seal-use-query.js +100 -0
  301. package/dist-server/service/seal-use/seal-use-query.js.map +1 -0
  302. package/dist-server/service/seal-use/seal-use-rules.d.ts +35 -0
  303. package/dist-server/service/seal-use/seal-use-rules.js +64 -0
  304. package/dist-server/service/seal-use/seal-use-rules.js.map +1 -0
  305. package/dist-server/service/seal-use/seal-use-service.d.ts +20 -0
  306. package/dist-server/service/seal-use/seal-use-service.js +168 -0
  307. package/dist-server/service/seal-use/seal-use-service.js.map +1 -0
  308. package/dist-server/service/seal-use/seal-use-type.d.ts +24 -0
  309. package/dist-server/service/seal-use/seal-use-type.js +93 -0
  310. package/dist-server/service/seal-use/seal-use-type.js.map +1 -0
  311. package/dist-server/service/seal-use/seal-use.d.ts +57 -0
  312. package/dist-server/service/seal-use/seal-use.js +181 -0
  313. package/dist-server/service/seal-use/seal-use.js.map +1 -0
  314. package/dist-server/service/training/index.d.ts +5 -0
  315. package/dist-server/service/training/index.js +9 -0
  316. package/dist-server/service/training/index.js.map +1 -0
  317. package/dist-server/service/training/training-checks.d.ts +20 -0
  318. package/dist-server/service/training/training-checks.js +56 -0
  319. package/dist-server/service/training/training-checks.js.map +1 -0
  320. package/dist-server/service/training/training-kinds.d.ts +24 -0
  321. package/dist-server/service/training/training-kinds.js +42 -0
  322. package/dist-server/service/training/training-kinds.js.map +1 -0
  323. package/dist-server/service/training/training-mutation.d.ts +14 -0
  324. package/dist-server/service/training/training-mutation.js +140 -0
  325. package/dist-server/service/training/training-mutation.js.map +1 -0
  326. package/dist-server/service/training/training-query.d.ts +21 -0
  327. package/dist-server/service/training/training-query.js +196 -0
  328. package/dist-server/service/training/training-query.js.map +1 -0
  329. package/dist-server/service/training/training-read.d.ts +5 -0
  330. package/dist-server/service/training/training-read.js +35 -0
  331. package/dist-server/service/training/training-read.js.map +1 -0
  332. package/dist-server/service/training/training-register.d.ts +1 -0
  333. package/dist-server/service/training/training-register.js +27 -0
  334. package/dist-server/service/training/training-register.js.map +1 -0
  335. package/dist-server/service/training/training-rules.d.ts +72 -0
  336. package/dist-server/service/training/training-rules.js +143 -0
  337. package/dist-server/service/training/training-rules.js.map +1 -0
  338. package/dist-server/service/training/training-service.d.ts +98 -0
  339. package/dist-server/service/training/training-service.js +455 -0
  340. package/dist-server/service/training/training-service.js.map +1 -0
  341. package/dist-server/service/training/training-type.d.ts +94 -0
  342. package/dist-server/service/training/training-type.js +352 -0
  343. package/dist-server/service/training/training-type.js.map +1 -0
  344. package/dist-server/service/training/training.d.ts +127 -0
  345. package/dist-server/service/training/training.js +448 -0
  346. package/dist-server/service/training/training.js.map +1 -0
  347. package/dist-server/tsconfig.tsbuildinfo +1 -0
  348. package/package.json +61 -4
  349. package/things-factory.config.js +19 -0
  350. package/translations/en.json +612 -0
  351. package/translations/es.json +612 -0
  352. package/translations/ja.json +612 -0
  353. package/translations/ko.json +612 -0
  354. package/translations/ms.json +612 -0
  355. package/translations/zh.json +612 -0
  356. package/README.md +0 -3
@@ -0,0 +1,382 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegulationProcedure = exports.RegulationClause = exports.RegulationVersion = exports.Regulation = exports.RegulationProcedureKind = exports.RegulationVersionStatus = exports.RegulationKind = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const type_graphql_1 = require("type-graphql");
6
+ const typeorm_1 = require("typeorm");
7
+ const auth_base_1 = require("@things-factory/auth-base");
8
+ const shell_1 = require("@things-factory/shell");
9
+ /** What a rule is, and so which procedure its adoption needs (ADR-0187 decisions 2, 4). */
10
+ var RegulationKind;
11
+ (function (RegulationKind) {
12
+ /** 취업규칙 - filed with the labour office; the workers' majority opinion, their consent for a change against them. */
13
+ RegulationKind["WORK_RULES"] = "WORK_RULES";
14
+ /** 부속 규정 - rules of working conditions apart from the work rules: the use of the business systems, evaluation, travel. */
15
+ RegulationKind["WORK_RULES_ANNEX"] = "WORK_RULES_ANNEX";
16
+ /** 개인정보 처리방침 - published (개인정보보호법 §30). */
17
+ RegulationKind["PRIVACY_POLICY"] = "PRIVACY_POLICY";
18
+ /** 내부관리계획 */
19
+ RegulationKind["PRIVACY_PLAN"] = "PRIVACY_PLAN";
20
+ /** 그 밖의 규정 - none of the working conditions: the keeping of documents and the like. */
21
+ RegulationKind["OTHER"] = "OTHER";
22
+ })(RegulationKind || (exports.RegulationKind = RegulationKind = {}));
23
+ (0, type_graphql_1.registerEnumType)(RegulationKind, { name: 'RegulationKind', description: 'work rules, an annex of them, the privacy policy, the privacy plan, or another rule' });
24
+ /** Where a version stands. An adopted one is due, in force or past by its effective day - read on the day, never stored. */
25
+ var RegulationVersionStatus;
26
+ (function (RegulationVersionStatus) {
27
+ RegulationVersionStatus["DRAFT"] = "DRAFT";
28
+ RegulationVersionStatus["IN_APPROVAL"] = "IN_APPROVAL";
29
+ RegulationVersionStatus["ADOPTED"] = "ADOPTED";
30
+ })(RegulationVersionStatus || (exports.RegulationVersionStatus = RegulationVersionStatus = {}));
31
+ (0, type_graphql_1.registerEnumType)(RegulationVersionStatus, { name: 'RegulationVersionStatus', description: 'being written, in approval, or adopted' });
32
+ /** A step the law asks of a rule's change (근로기준법 §93, §94). */
33
+ var RegulationProcedureKind;
34
+ (function (RegulationProcedureKind) {
35
+ /** 의견 청취 - the opinion of the workers' majority, or of the union of the majority. */
36
+ RegulationProcedureKind["OPINION"] = "OPINION";
37
+ /** 동의 - the consent of the majority, for a change against the workers. */
38
+ RegulationProcedureKind["CONSENT"] = "CONSENT";
39
+ /** 신고 - filed with the labour office. */
40
+ RegulationProcedureKind["FILING"] = "FILING";
41
+ })(RegulationProcedureKind || (exports.RegulationProcedureKind = RegulationProcedureKind = {}));
42
+ (0, type_graphql_1.registerEnumType)(RegulationProcedureKind, { name: 'RegulationProcedureKind', description: 'the opinion heard, the consent given, or the filing' });
43
+ /**
44
+ * 규정 (ADR-0187 decision 2) - one rule of the company, by code: its name, kind and the topics of the guide it answers.
45
+ * Its text is in its versions.
46
+ */
47
+ let Regulation = class Regulation {
48
+ };
49
+ exports.Regulation = Regulation;
50
+ tslib_1.__decorate([
51
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
52
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { description: 'Regulation id' }),
53
+ tslib_1.__metadata("design:type", String)
54
+ ], Regulation.prototype, "id", void 0);
55
+ tslib_1.__decorate([
56
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
57
+ (0, type_graphql_1.Field)(type => shell_1.Domain, { nullable: true, description: 'The domain' }),
58
+ tslib_1.__metadata("design:type", shell_1.Domain)
59
+ ], Regulation.prototype, "domain", void 0);
60
+ tslib_1.__decorate([
61
+ (0, typeorm_1.RelationId)((row) => row.domain),
62
+ tslib_1.__metadata("design:type", String)
63
+ ], Regulation.prototype, "domainId", void 0);
64
+ tslib_1.__decorate([
65
+ (0, typeorm_1.Column)(),
66
+ (0, type_graphql_1.Field)({ description: 'The code, unique in the domain - `WORK`' }),
67
+ tslib_1.__metadata("design:type", String)
68
+ ], Regulation.prototype, "code", void 0);
69
+ tslib_1.__decorate([
70
+ (0, typeorm_1.Column)(),
71
+ (0, type_graphql_1.Field)({ description: 'The name - 취업규칙' }),
72
+ tslib_1.__metadata("design:type", String)
73
+ ], Regulation.prototype, "name", void 0);
74
+ tslib_1.__decorate([
75
+ (0, typeorm_1.Column)(),
76
+ (0, type_graphql_1.Field)(type => RegulationKind, { description: 'What it is, and so the procedure its adoption needs' }),
77
+ tslib_1.__metadata("design:type", String)
78
+ ], Regulation.prototype, "kind", void 0);
79
+ tslib_1.__decorate([
80
+ (0, typeorm_1.Column)('simple-json', { nullable: true }),
81
+ (0, type_graphql_1.Field)(type => [String], { nullable: true, description: "The guide's sections it answers - `severance`, `leave` (the section ids of the guide on the law)" }),
82
+ tslib_1.__metadata("design:type", Array)
83
+ ], Regulation.prototype, "topics", void 0);
84
+ tslib_1.__decorate([
85
+ (0, typeorm_1.Column)('int', { default: 0 }),
86
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: 'Its place in the list' }),
87
+ tslib_1.__metadata("design:type", Number)
88
+ ], Regulation.prototype, "rank", void 0);
89
+ tslib_1.__decorate([
90
+ (0, typeorm_1.CreateDateColumn)(),
91
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Creation timestamp' }),
92
+ tslib_1.__metadata("design:type", Date)
93
+ ], Regulation.prototype, "createdAt", void 0);
94
+ tslib_1.__decorate([
95
+ (0, typeorm_1.UpdateDateColumn)(),
96
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Last update timestamp' }),
97
+ tslib_1.__metadata("design:type", Date)
98
+ ], Regulation.prototype, "updatedAt", void 0);
99
+ tslib_1.__decorate([
100
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
101
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'Who wrote it' }),
102
+ tslib_1.__metadata("design:type", auth_base_1.User)
103
+ ], Regulation.prototype, "creator", void 0);
104
+ tslib_1.__decorate([
105
+ (0, typeorm_1.RelationId)((row) => row.creator),
106
+ tslib_1.__metadata("design:type", String)
107
+ ], Regulation.prototype, "creatorId", void 0);
108
+ tslib_1.__decorate([
109
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
110
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'Who changed it last' }),
111
+ tslib_1.__metadata("design:type", auth_base_1.User)
112
+ ], Regulation.prototype, "updater", void 0);
113
+ tslib_1.__decorate([
114
+ (0, typeorm_1.RelationId)((row) => row.updater),
115
+ tslib_1.__metadata("design:type", String)
116
+ ], Regulation.prototype, "updaterId", void 0);
117
+ exports.Regulation = Regulation = tslib_1.__decorate([
118
+ (0, typeorm_1.Entity)({ name: 'compliance_regulations' }),
119
+ (0, typeorm_1.Index)('ix_compliance_regulation_0', (row) => [row.domain, row.code], { unique: true }),
120
+ (0, type_graphql_1.ObjectType)({ description: 'A rule of the company - work rules, an annex, the privacy policy - with its versions (ADR-0187)' })
121
+ ], Regulation);
122
+ /**
123
+ * 판 (ADR-0187 decisions 2-6) - one text of a rule: written, put up for adoption, adopted to take effect on a day. Once
124
+ * adopted its text, day, whether it is against the workers and its procedure stay as they were; a correction is a new
125
+ * version.
126
+ */
127
+ let RegulationVersion = class RegulationVersion {
128
+ };
129
+ exports.RegulationVersion = RegulationVersion;
130
+ tslib_1.__decorate([
131
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
132
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { description: 'Version id' }),
133
+ tslib_1.__metadata("design:type", String)
134
+ ], RegulationVersion.prototype, "id", void 0);
135
+ tslib_1.__decorate([
136
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
137
+ (0, type_graphql_1.Field)(type => shell_1.Domain, { nullable: true, description: 'The domain' }),
138
+ tslib_1.__metadata("design:type", shell_1.Domain)
139
+ ], RegulationVersion.prototype, "domain", void 0);
140
+ tslib_1.__decorate([
141
+ (0, typeorm_1.RelationId)((row) => row.domain),
142
+ tslib_1.__metadata("design:type", String)
143
+ ], RegulationVersion.prototype, "domainId", void 0);
144
+ tslib_1.__decorate([
145
+ (0, typeorm_1.ManyToOne)(type => Regulation, { onDelete: 'CASCADE' }),
146
+ (0, type_graphql_1.Field)(type => Regulation, { nullable: true, description: 'The rule' }),
147
+ tslib_1.__metadata("design:type", Regulation)
148
+ ], RegulationVersion.prototype, "regulation", void 0);
149
+ tslib_1.__decorate([
150
+ (0, typeorm_1.RelationId)((row) => row.regulation),
151
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The rule' }),
152
+ tslib_1.__metadata("design:type", String)
153
+ ], RegulationVersion.prototype, "regulationId", void 0);
154
+ tslib_1.__decorate([
155
+ (0, typeorm_1.Column)('int'),
156
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: 'The version number - 1, 2 ...' }),
157
+ tslib_1.__metadata("design:type", Number)
158
+ ], RegulationVersion.prototype, "version", void 0);
159
+ tslib_1.__decorate([
160
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
161
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The text in Markdown; its articles begin `제n조(제목)`' }),
162
+ tslib_1.__metadata("design:type", String)
163
+ ], RegulationVersion.prototype, "body", void 0);
164
+ tslib_1.__decorate([
165
+ (0, typeorm_1.Column)({ nullable: true }),
166
+ (0, type_graphql_1.Field)({ nullable: true, description: 'YYYY-MM-DD it takes effect - on or after the day its approval ends' }),
167
+ tslib_1.__metadata("design:type", String)
168
+ ], RegulationVersion.prototype, "effectiveOn", void 0);
169
+ tslib_1.__decorate([
170
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
171
+ (0, type_graphql_1.Field)({ nullable: true, description: 'What changed, in the words of its writer' }),
172
+ tslib_1.__metadata("design:type", String)
173
+ ], RegulationVersion.prototype, "changeSummary", void 0);
174
+ tslib_1.__decorate([
175
+ (0, typeorm_1.Column)({ nullable: true }),
176
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Whether the change is against the workers (불이익 변경) - none until its writer says' }),
177
+ tslib_1.__metadata("design:type", Boolean)
178
+ ], RegulationVersion.prototype, "unfavourable", void 0);
179
+ tslib_1.__decorate([
180
+ (0, typeorm_1.Column)({ default: RegulationVersionStatus.DRAFT }),
181
+ (0, type_graphql_1.Field)(type => RegulationVersionStatus, { description: 'Being written, in approval, or adopted' }),
182
+ tslib_1.__metadata("design:type", String)
183
+ ], RegulationVersion.prototype, "status", void 0);
184
+ tslib_1.__decorate([
185
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
186
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true, description: 'How many workers the procedure is of - written by its keeper' }),
187
+ tslib_1.__metadata("design:type", Number)
188
+ ], RegulationVersion.prototype, "workersCount", void 0);
189
+ tslib_1.__decorate([
190
+ (0, typeorm_1.Column)({ nullable: true }),
191
+ (0, type_graphql_1.Field)({ nullable: true }),
192
+ tslib_1.__metadata("design:type", String)
193
+ ], RegulationVersion.prototype, "activityInstanceId", void 0);
194
+ tslib_1.__decorate([
195
+ (0, typeorm_1.Column)({ nullable: true }),
196
+ (0, type_graphql_1.Field)({ nullable: true, description: 'When it was adopted' }),
197
+ tslib_1.__metadata("design:type", Date)
198
+ ], RegulationVersion.prototype, "adoptedAt", void 0);
199
+ tslib_1.__decorate([
200
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
201
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'Who decided its adoption' }),
202
+ tslib_1.__metadata("design:type", auth_base_1.User)
203
+ ], RegulationVersion.prototype, "adoptedBy", void 0);
204
+ tslib_1.__decorate([
205
+ (0, typeorm_1.RelationId)((row) => row.adoptedBy),
206
+ tslib_1.__metadata("design:type", String)
207
+ ], RegulationVersion.prototype, "adoptedById", void 0);
208
+ tslib_1.__decorate([
209
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
210
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Why an approval did not adopt it - its effective day had passed' }),
211
+ tslib_1.__metadata("design:type", String)
212
+ ], RegulationVersion.prototype, "adoptionNote", void 0);
213
+ tslib_1.__decorate([
214
+ (0, typeorm_1.Column)({ nullable: true }),
215
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The announcement that told the employees of it' }),
216
+ tslib_1.__metadata("design:type", String)
217
+ ], RegulationVersion.prototype, "announcementId", void 0);
218
+ tslib_1.__decorate([
219
+ (0, typeorm_1.CreateDateColumn)(),
220
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Creation timestamp' }),
221
+ tslib_1.__metadata("design:type", Date)
222
+ ], RegulationVersion.prototype, "createdAt", void 0);
223
+ tslib_1.__decorate([
224
+ (0, typeorm_1.UpdateDateColumn)(),
225
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Last update timestamp' }),
226
+ tslib_1.__metadata("design:type", Date)
227
+ ], RegulationVersion.prototype, "updatedAt", void 0);
228
+ tslib_1.__decorate([
229
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
230
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'Who wrote it' }),
231
+ tslib_1.__metadata("design:type", auth_base_1.User)
232
+ ], RegulationVersion.prototype, "creator", void 0);
233
+ tslib_1.__decorate([
234
+ (0, typeorm_1.RelationId)((row) => row.creator),
235
+ tslib_1.__metadata("design:type", String)
236
+ ], RegulationVersion.prototype, "creatorId", void 0);
237
+ tslib_1.__decorate([
238
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
239
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'Who changed it last' }),
240
+ tslib_1.__metadata("design:type", auth_base_1.User)
241
+ ], RegulationVersion.prototype, "updater", void 0);
242
+ tslib_1.__decorate([
243
+ (0, typeorm_1.RelationId)((row) => row.updater),
244
+ tslib_1.__metadata("design:type", String)
245
+ ], RegulationVersion.prototype, "updaterId", void 0);
246
+ exports.RegulationVersion = RegulationVersion = tslib_1.__decorate([
247
+ (0, typeorm_1.Entity)({ name: 'compliance_regulation_versions' }),
248
+ (0, typeorm_1.Index)('ix_compliance_regulation_version_0', (row) => [row.regulation, row.version], { unique: true }),
249
+ (0, typeorm_1.Index)('ix_compliance_regulation_version_1', (row) => [row.domain, row.status, row.effectiveOn]),
250
+ (0, type_graphql_1.ObjectType)({ description: 'One version of a rule - its text, the day it takes effect, the procedure it went through (ADR-0187)' })
251
+ ], RegulationVersion);
252
+ /** 조문 (ADR-0187 decision 2) - one article of an adopted version, cut from its text at `제n조`. */
253
+ let RegulationClause = class RegulationClause {
254
+ };
255
+ exports.RegulationClause = RegulationClause;
256
+ tslib_1.__decorate([
257
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
258
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { description: 'Clause id' }),
259
+ tslib_1.__metadata("design:type", String)
260
+ ], RegulationClause.prototype, "id", void 0);
261
+ tslib_1.__decorate([
262
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
263
+ tslib_1.__metadata("design:type", shell_1.Domain)
264
+ ], RegulationClause.prototype, "domain", void 0);
265
+ tslib_1.__decorate([
266
+ (0, typeorm_1.ManyToOne)(type => RegulationVersion, { onDelete: 'CASCADE' }),
267
+ tslib_1.__metadata("design:type", RegulationVersion)
268
+ ], RegulationClause.prototype, "version", void 0);
269
+ tslib_1.__decorate([
270
+ (0, typeorm_1.RelationId)((row) => row.version),
271
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The version' }),
272
+ tslib_1.__metadata("design:type", String)
273
+ ], RegulationClause.prototype, "versionId", void 0);
274
+ tslib_1.__decorate([
275
+ (0, typeorm_1.Column)('int'),
276
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: 'Its place in the text' }),
277
+ tslib_1.__metadata("design:type", Number)
278
+ ], RegulationClause.prototype, "rank", void 0);
279
+ tslib_1.__decorate([
280
+ (0, typeorm_1.Column)(),
281
+ (0, type_graphql_1.Field)({ description: 'The article number as written - `3`, `3의2`' }),
282
+ tslib_1.__metadata("design:type", String)
283
+ ], RegulationClause.prototype, "number", void 0);
284
+ tslib_1.__decorate([
285
+ (0, typeorm_1.Column)({ nullable: true }),
286
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The heading in the brackets - 근로시간' }),
287
+ tslib_1.__metadata("design:type", String)
288
+ ], RegulationClause.prototype, "title", void 0);
289
+ tslib_1.__decorate([
290
+ (0, typeorm_1.Column)({ nullable: true }),
291
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The chapter it stands in - 제2장 근로시간' }),
292
+ tslib_1.__metadata("design:type", String)
293
+ ], RegulationClause.prototype, "chapter", void 0);
294
+ tslib_1.__decorate([
295
+ (0, typeorm_1.Column)({ type: 'text' }),
296
+ (0, type_graphql_1.Field)({ description: 'The words of the article' }),
297
+ tslib_1.__metadata("design:type", String)
298
+ ], RegulationClause.prototype, "text", void 0);
299
+ exports.RegulationClause = RegulationClause = tslib_1.__decorate([
300
+ (0, typeorm_1.Entity)({ name: 'compliance_regulation_clauses' }),
301
+ (0, typeorm_1.Index)('ix_compliance_regulation_clause_0', (row) => [row.version, row.rank]),
302
+ (0, type_graphql_1.ObjectType)({ description: 'One article of a version of a rule, cut from its text' })
303
+ ], RegulationClause);
304
+ /**
305
+ * 절차 기록 (ADR-0187 decision 4) - the evidence the law asks of a change: the majority's opinion heard, their consent,
306
+ * the filing. Its papers (opinion, consent, filing and receipt) hang on it as attachments.
307
+ */
308
+ let RegulationProcedure = class RegulationProcedure {
309
+ };
310
+ exports.RegulationProcedure = RegulationProcedure;
311
+ tslib_1.__decorate([
312
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
313
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { description: 'Procedure id' }),
314
+ tslib_1.__metadata("design:type", String)
315
+ ], RegulationProcedure.prototype, "id", void 0);
316
+ tslib_1.__decorate([
317
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
318
+ tslib_1.__metadata("design:type", shell_1.Domain)
319
+ ], RegulationProcedure.prototype, "domain", void 0);
320
+ tslib_1.__decorate([
321
+ (0, typeorm_1.RelationId)((row) => row.domain),
322
+ tslib_1.__metadata("design:type", String)
323
+ ], RegulationProcedure.prototype, "domainId", void 0);
324
+ tslib_1.__decorate([
325
+ (0, typeorm_1.ManyToOne)(type => RegulationVersion, { onDelete: 'CASCADE' }),
326
+ tslib_1.__metadata("design:type", RegulationVersion)
327
+ ], RegulationProcedure.prototype, "version", void 0);
328
+ tslib_1.__decorate([
329
+ (0, typeorm_1.RelationId)((row) => row.version),
330
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The version' }),
331
+ tslib_1.__metadata("design:type", String)
332
+ ], RegulationProcedure.prototype, "versionId", void 0);
333
+ tslib_1.__decorate([
334
+ (0, typeorm_1.Column)(),
335
+ (0, type_graphql_1.Field)(type => RegulationProcedureKind, { description: 'Opinion, consent or filing' }),
336
+ tslib_1.__metadata("design:type", String)
337
+ ], RegulationProcedure.prototype, "kind", void 0);
338
+ tslib_1.__decorate([
339
+ (0, typeorm_1.Column)(),
340
+ (0, type_graphql_1.Field)({ description: 'YYYY-MM-DD it was heard, given or filed' }),
341
+ tslib_1.__metadata("design:type", String)
342
+ ], RegulationProcedure.prototype, "day", void 0);
343
+ tslib_1.__decorate([
344
+ (0, typeorm_1.Column)({ nullable: true }),
345
+ (0, type_graphql_1.Field)({ nullable: true, description: 'How - a code of the module: the union of the majority, a meeting of the workers, signatures, online filing' }),
346
+ tslib_1.__metadata("design:type", String)
347
+ ], RegulationProcedure.prototype, "method", void 0);
348
+ tslib_1.__decorate([
349
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
350
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true, description: 'How many workers it was of' }),
351
+ tslib_1.__metadata("design:type", Number)
352
+ ], RegulationProcedure.prototype, "workersCount", void 0);
353
+ tslib_1.__decorate([
354
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
355
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true, description: 'How many consented - for a consent' }),
356
+ tslib_1.__metadata("design:type", Number)
357
+ ], RegulationProcedure.prototype, "consentCount", void 0);
358
+ tslib_1.__decorate([
359
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
360
+ (0, type_graphql_1.Field)({ nullable: true }),
361
+ tslib_1.__metadata("design:type", String)
362
+ ], RegulationProcedure.prototype, "notes", void 0);
363
+ tslib_1.__decorate([
364
+ (0, typeorm_1.CreateDateColumn)(),
365
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Creation timestamp' }),
366
+ tslib_1.__metadata("design:type", Date)
367
+ ], RegulationProcedure.prototype, "createdAt", void 0);
368
+ tslib_1.__decorate([
369
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
370
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'Who wrote it' }),
371
+ tslib_1.__metadata("design:type", auth_base_1.User)
372
+ ], RegulationProcedure.prototype, "creator", void 0);
373
+ tslib_1.__decorate([
374
+ (0, typeorm_1.RelationId)((row) => row.creator),
375
+ tslib_1.__metadata("design:type", String)
376
+ ], RegulationProcedure.prototype, "creatorId", void 0);
377
+ exports.RegulationProcedure = RegulationProcedure = tslib_1.__decorate([
378
+ (0, typeorm_1.Entity)({ name: 'compliance_regulation_procedures' }),
379
+ (0, typeorm_1.Index)('ix_compliance_regulation_procedure_0', (row) => [row.version, row.kind]),
380
+ (0, type_graphql_1.ObjectType)({ description: 'The opinion heard, the consent given or the filing of a version of a rule, with its papers' })
381
+ ], RegulationProcedure);
382
+ //# sourceMappingURL=regulation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regulation.js","sourceRoot":"","sources":["../../../server/service/regulation/regulation.ts"],"names":[],"mappings":";;;;AAAA,+CAA2E;AAC3E,qCAAkI;AAElI,yDAAgD;AAChD,iDAA8C;AAE9C,2FAA2F;AAC3F,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,mHAAmH;IACnH,2CAAyB,CAAA;IACzB,0HAA0H;IAC1H,uDAAqC,CAAA;IACrC,2CAA2C;IAC3C,mDAAiC,CAAA;IACjC,aAAa;IACb,+CAA6B,CAAA;IAC7B,uFAAuF;IACvF,iCAAe,CAAA;AACjB,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB;AAED,IAAA,+BAAgB,EAAC,cAAc,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,qFAAqF,EAAE,CAAC,CAAA;AAEhK,4HAA4H;AAC5H,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,0CAAe,CAAA;IACf,sDAA2B,CAAA;IAC3B,8CAAmB,CAAA;AACrB,CAAC,EAJW,uBAAuB,uCAAvB,uBAAuB,QAIlC;AAED,IAAA,+BAAgB,EAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC,CAAA;AAErI,+DAA+D;AAC/D,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,qFAAqF;IACrF,8CAAmB,CAAA;IACnB,0EAA0E;IAC1E,8CAAmB,CAAA;IACnB,yCAAyC;IACzC,4CAAiB,CAAA;AACnB,CAAC,EAPW,uBAAuB,uCAAvB,uBAAuB,QAOlC;AAED,IAAA,+BAAgB,EAAC,uBAAuB,EAAE,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I,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;sCAC3D,gBAAI;oDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,GAAwB,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC;;sDACpC;8BAnDP,mBAAmB;IAH/B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kCAAkC,EAAE,CAAC;IACpD,IAAA,eAAK,EAAC,sCAAsC,EAAE,CAAC,GAAwB,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IACpG,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,4FAA4F,EAAE,CAAC;GAC7G,mBAAmB,CAoD/B","sourcesContent":["import { Field, ID, Int, ObjectType, registerEnumType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\n/** What a rule is, and so which procedure its adoption needs (ADR-0187 decisions 2, 4). */\nexport enum RegulationKind {\n /** 취업규칙 - filed with the labour office; the workers' majority opinion, their consent for a change against them. */\n WORK_RULES = 'WORK_RULES',\n /** 부속 규정 - rules of working conditions apart from the work rules: the use of the business systems, evaluation, travel. */\n WORK_RULES_ANNEX = 'WORK_RULES_ANNEX',\n /** 개인정보 처리방침 - published (개인정보보호법 §30). */\n PRIVACY_POLICY = 'PRIVACY_POLICY',\n /** 내부관리계획 */\n PRIVACY_PLAN = 'PRIVACY_PLAN',\n /** 그 밖의 규정 - none of the working conditions: the keeping of documents and the like. */\n OTHER = 'OTHER'\n}\n\nregisterEnumType(RegulationKind, { name: 'RegulationKind', description: 'work rules, an annex of them, the privacy policy, the privacy plan, or another rule' })\n\n/** Where a version stands. An adopted one is due, in force or past by its effective day - read on the day, never stored. */\nexport enum RegulationVersionStatus {\n DRAFT = 'DRAFT',\n IN_APPROVAL = 'IN_APPROVAL',\n ADOPTED = 'ADOPTED'\n}\n\nregisterEnumType(RegulationVersionStatus, { name: 'RegulationVersionStatus', description: 'being written, in approval, or adopted' })\n\n/** A step the law asks of a rule's change (근로기준법 §93, §94). */\nexport enum RegulationProcedureKind {\n /** 의견 청취 - the opinion of the workers' majority, or of the union of the majority. */\n OPINION = 'OPINION',\n /** 동의 - the consent of the majority, for a change against the workers. */\n CONSENT = 'CONSENT',\n /** 신고 - filed with the labour office. */\n FILING = 'FILING'\n}\n\nregisterEnumType(RegulationProcedureKind, { name: 'RegulationProcedureKind', description: 'the opinion heard, the consent given, or the filing' })\n\n/**\n * 규정 (ADR-0187 decision 2) - one rule of the company, by code: its name, kind and the topics of the guide it answers.\n * Its text is in its versions.\n */\n@Entity({ name: 'compliance_regulations' })\n@Index('ix_compliance_regulation_0', (row: Regulation) => [row.domain, row.code], { unique: true })\n@ObjectType({ description: 'A rule of the company - work rules, an annex, the privacy policy - with its versions (ADR-0187)' })\nexport class Regulation {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Regulation id' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true, description: 'The domain' })\n domain?: Domain\n\n @RelationId((row: Regulation) => row.domain)\n domainId?: string\n\n @Column()\n @Field({ description: 'The code, unique in the domain - `WORK`' })\n code: string\n\n @Column()\n @Field({ description: 'The name - 취업규칙' })\n name: string\n\n @Column()\n @Field(type => RegulationKind, { description: 'What it is, and so the procedure its adoption needs' })\n kind: RegulationKind\n\n @Column('simple-json', { nullable: true })\n @Field(type => [String], { nullable: true, description: \"The guide's sections it answers - `severance`, `leave` (the section ids of the guide on the law)\" })\n topics?: string[]\n\n @Column('int', { default: 0 })\n @Field(type => Int, { description: 'Its place in the list' })\n rank: number\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'Creation timestamp' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'Last update timestamp' })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who wrote it' })\n creator?: User\n\n @RelationId((row: Regulation) => row.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who changed it last' })\n updater?: User\n\n @RelationId((row: Regulation) => row.updater)\n updaterId?: string\n}\n\n/**\n * 판 (ADR-0187 decisions 2-6) - one text of a rule: written, put up for adoption, adopted to take effect on a day. Once\n * adopted its text, day, whether it is against the workers and its procedure stay as they were; a correction is a new\n * version.\n */\n@Entity({ name: 'compliance_regulation_versions' })\n@Index('ix_compliance_regulation_version_0', (row: RegulationVersion) => [row.regulation, row.version], { unique: true })\n@Index('ix_compliance_regulation_version_1', (row: RegulationVersion) => [row.domain, row.status, row.effectiveOn])\n@ObjectType({ description: 'One version of a rule - its text, the day it takes effect, the procedure it went through (ADR-0187)' })\nexport class RegulationVersion {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Version id' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true, description: 'The domain' })\n domain?: Domain\n\n @RelationId((row: RegulationVersion) => row.domain)\n domainId?: string\n\n @ManyToOne(type => Regulation, { onDelete: 'CASCADE' })\n @Field(type => Regulation, { nullable: true, description: 'The rule' })\n regulation?: Regulation\n\n @RelationId((row: RegulationVersion) => row.regulation)\n @Field({ nullable: true, description: 'The rule' })\n regulationId?: string\n\n @Column('int')\n @Field(type => Int, { description: 'The version number - 1, 2 ...' })\n version: number\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'The text in Markdown; its articles begin `제n조(제목)`' })\n body?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'YYYY-MM-DD it takes effect - on or after the day its approval ends' })\n effectiveOn?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'What changed, in the words of its writer' })\n changeSummary?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Whether the change is against the workers (불이익 변경) - none until its writer says' })\n unfavourable?: boolean\n\n @Column({ default: RegulationVersionStatus.DRAFT })\n @Field(type => RegulationVersionStatus, { description: 'Being written, in approval, or adopted' })\n status: RegulationVersionStatus\n\n @Column({ type: 'int', nullable: true })\n @Field(type => Int, { nullable: true, description: 'How many workers the procedure is of - written by its keeper' })\n workersCount?: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n activityInstanceId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'When it was adopted' })\n adoptedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who decided its adoption' })\n adoptedBy?: User\n\n @RelationId((row: RegulationVersion) => row.adoptedBy)\n adoptedById?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'Why an approval did not adopt it - its effective day had passed' })\n adoptionNote?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The announcement that told the employees of it' })\n announcementId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'Creation timestamp' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'Last update timestamp' })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who wrote it' })\n creator?: User\n\n @RelationId((row: RegulationVersion) => row.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who changed it last' })\n updater?: User\n\n @RelationId((row: RegulationVersion) => row.updater)\n updaterId?: string\n}\n\n/** 조문 (ADR-0187 decision 2) - one article of an adopted version, cut from its text at `제n조`. */\n@Entity({ name: 'compliance_regulation_clauses' })\n@Index('ix_compliance_regulation_clause_0', (row: RegulationClause) => [row.version, row.rank])\n@ObjectType({ description: 'One article of a version of a rule, cut from its text' })\nexport class RegulationClause {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Clause id' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n domain?: Domain\n\n @ManyToOne(type => RegulationVersion, { onDelete: 'CASCADE' })\n version?: RegulationVersion\n\n @RelationId((row: RegulationClause) => row.version)\n @Field({ nullable: true, description: 'The version' })\n versionId?: string\n\n @Column('int')\n @Field(type => Int, { description: 'Its place in the text' })\n rank: number\n\n @Column()\n @Field({ description: 'The article number as written - `3`, `3의2`' })\n number: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The heading in the brackets - 근로시간' })\n title?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The chapter it stands in - 제2장 근로시간' })\n chapter?: string\n\n @Column({ type: 'text' })\n @Field({ description: 'The words of the article' })\n text: string\n}\n\n/**\n * 절차 기록 (ADR-0187 decision 4) - the evidence the law asks of a change: the majority's opinion heard, their consent,\n * the filing. Its papers (opinion, consent, filing and receipt) hang on it as attachments.\n */\n@Entity({ name: 'compliance_regulation_procedures' })\n@Index('ix_compliance_regulation_procedure_0', (row: RegulationProcedure) => [row.version, row.kind])\n@ObjectType({ description: 'The opinion heard, the consent given or the filing of a version of a rule, with its papers' })\nexport class RegulationProcedure {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Procedure id' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n domain?: Domain\n\n @RelationId((row: RegulationProcedure) => row.domain)\n domainId?: string\n\n @ManyToOne(type => RegulationVersion, { onDelete: 'CASCADE' })\n version?: RegulationVersion\n\n @RelationId((row: RegulationProcedure) => row.version)\n @Field({ nullable: true, description: 'The version' })\n versionId?: string\n\n @Column()\n @Field(type => RegulationProcedureKind, { description: 'Opinion, consent or filing' })\n kind: RegulationProcedureKind\n\n @Column()\n @Field({ description: 'YYYY-MM-DD it was heard, given or filed' })\n day: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'How - a code of the module: the union of the majority, a meeting of the workers, signatures, online filing' })\n method?: string\n\n @Column({ type: 'int', nullable: true })\n @Field(type => Int, { nullable: true, description: 'How many workers it was of' })\n workersCount?: number\n\n @Column({ type: 'int', nullable: true })\n @Field(type => Int, { nullable: true, description: 'How many consented - for a consent' })\n consentCount?: number\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true })\n notes?: string\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'Creation timestamp' })\n createdAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who wrote it' })\n creator?: User\n\n @RelationId((row: RegulationProcedure) => row.creator)\n creatorId?: string\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { SealUse } from './seal-use';
2
+ import { SealUseMutation } from './seal-use-mutation';
3
+ import { SealUseQuery } from './seal-use-query';
4
+ export declare const entities: (typeof SealUse)[];
5
+ export declare const resolvers: (typeof SealUseMutation | typeof SealUseQuery)[];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolvers = exports.entities = void 0;
4
+ const seal_use_1 = require("./seal-use");
5
+ const seal_use_mutation_1 = require("./seal-use-mutation");
6
+ const seal_use_query_1 = require("./seal-use-query");
7
+ exports.entities = [seal_use_1.SealUse];
8
+ exports.resolvers = [seal_use_query_1.SealUseQuery, seal_use_mutation_1.SealUseMutation];
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/seal-use/index.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,2DAAqD;AACrD,qDAA+C;AAElC,QAAA,QAAQ,GAAG,CAAC,kBAAO,CAAC,CAAA;AACpB,QAAA,SAAS,GAAG,CAAC,6BAAY,EAAE,mCAAe,CAAC,CAAA","sourcesContent":["import { SealUse } from './seal-use'\nimport { SealUseMutation } from './seal-use-mutation'\nimport { SealUseQuery } from './seal-use-query'\n\nexport const entities = [SealUse]\nexport const resolvers = [SealUseQuery, SealUseMutation]\n"]}
@@ -0,0 +1,8 @@
1
+ import { SealUse } from './seal-use';
2
+ import { NewSealUse, SealUsePatch } from './seal-use-type';
3
+ export declare class SealUseMutation {
4
+ recordSealUse(use: NewSealUse, context: ResolverContext): Promise<SealUse>;
5
+ withdrawSealUse(id: string, context: ResolverContext): Promise<SealUse>;
6
+ updateMultipleSealUse(patches: SealUsePatch[], context: ResolverContext): Promise<SealUse[]>;
7
+ deleteSealUses(ids: string[], context: ResolverContext): Promise<boolean>;
8
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SealUseMutation = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const type_graphql_1 = require("type-graphql");
6
+ const shell_1 = require("@things-factory/shell");
7
+ const seal_use_1 = require("./seal-use");
8
+ const seal_use_service_1 = require("./seal-use-service");
9
+ const seal_use_type_1 = require("./seal-use-type");
10
+ let SealUseMutation = class SealUseMutation {
11
+ async recordSealUse(use, context) {
12
+ return await (0, seal_use_service_1.recordSealUse)(use, context);
13
+ }
14
+ async withdrawSealUse(id, context) {
15
+ return await (0, seal_use_service_1.withdrawSealUse)(id, context);
16
+ }
17
+ async updateMultipleSealUse(patches, context) {
18
+ return await (0, seal_use_service_1.updateSealUses)(patches, context);
19
+ }
20
+ async deleteSealUses(ids, context) {
21
+ return await (0, seal_use_service_1.deleteSealUses)(ids, context);
22
+ }
23
+ };
24
+ exports.SealUseMutation = SealUseMutation;
25
+ tslib_1.__decorate([
26
+ (0, type_graphql_1.Directive)('@privilege(category: "seal-use", privilege: "mutation", domainOwnerGranted: true)'),
27
+ (0, type_graphql_1.Directive)('@transaction'),
28
+ (0, type_graphql_1.Mutation)(returns => seal_use_1.SealUse, { description: 'To write down a use of a seal - put up for approval when it is the corporate seal or a taking out (ADR-0188)' }),
29
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('use', type => seal_use_type_1.NewSealUse)),
30
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
31
+ tslib_1.__metadata("design:type", Function),
32
+ tslib_1.__metadata("design:paramtypes", [seal_use_type_1.NewSealUse, Object]),
33
+ tslib_1.__metadata("design:returntype", Promise)
34
+ ], SealUseMutation.prototype, "recordSealUse", null);
35
+ tslib_1.__decorate([
36
+ (0, type_graphql_1.Directive)('@privilege(category: "seal-use", privilege: "mutation", domainOwnerGranted: true)'),
37
+ (0, type_graphql_1.Directive)('@transaction'),
38
+ (0, type_graphql_1.Mutation)(returns => seal_use_1.SealUse, { description: 'To take back a use waiting on approval - only the one who put it up' }),
39
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('id')),
40
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
41
+ tslib_1.__metadata("design:type", Function),
42
+ tslib_1.__metadata("design:paramtypes", [String, Object]),
43
+ tslib_1.__metadata("design:returntype", Promise)
44
+ ], SealUseMutation.prototype, "withdrawSealUse", null);
45
+ tslib_1.__decorate([
46
+ (0, type_graphql_1.Directive)('@privilege(category: "seal-use", privilege: "mutation", domainOwnerGranted: true)'),
47
+ (0, type_graphql_1.Directive)('@transaction'),
48
+ (0, type_graphql_1.Mutation)(returns => [seal_use_1.SealUse], { description: 'To write the day a seal came back, and the notes' }),
49
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('patches', type => [seal_use_type_1.SealUsePatch])),
50
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
51
+ tslib_1.__metadata("design:type", Function),
52
+ tslib_1.__metadata("design:paramtypes", [Array, Object]),
53
+ tslib_1.__metadata("design:returntype", Promise)
54
+ ], SealUseMutation.prototype, "updateMultipleSealUse", null);
55
+ tslib_1.__decorate([
56
+ (0, type_graphql_1.Directive)('@privilege(category: "seal-use", privilege: "mutation", domainOwnerGranted: true)'),
57
+ (0, type_graphql_1.Directive)('@transaction'),
58
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete uses nobody approved' }),
59
+ tslib_1.__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
60
+ tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
61
+ tslib_1.__metadata("design:type", Function),
62
+ tslib_1.__metadata("design:paramtypes", [Array, Object]),
63
+ tslib_1.__metadata("design:returntype", Promise)
64
+ ], SealUseMutation.prototype, "deleteSealUses", null);
65
+ exports.SealUseMutation = SealUseMutation = tslib_1.__decorate([
66
+ (0, type_graphql_1.Resolver)(seal_use_1.SealUse),
67
+ (0, type_graphql_1.UseMiddleware)(shell_1.SpeakRefusals)
68
+ ], SealUseMutation);
69
+ //# sourceMappingURL=seal-use-mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seal-use-mutation.js","sourceRoot":"","sources":["../../../server/service/seal-use/seal-use-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAqF;AAErF,iDAAqD;AAErD,yCAAoC;AACpC,yDAAmG;AACnG,mDAA0D;AAInD,IAAM,eAAe,GAArB,MAAM,eAAe;IAIpB,AAAN,KAAK,CAAC,aAAa,CAAiC,GAAe,EAAS,OAAwB;QAClG,OAAO,MAAM,IAAA,gCAAa,EAAC,GAAG,EAAE,OAAO,CAAC,CAAA;IAC1C,CAAC;IAKK,AAAN,KAAK,CAAC,eAAe,CAAY,EAAU,EAAS,OAAwB;QAC1E,OAAO,MAAM,IAAA,kCAAe,EAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IAC3C,CAAC;IAKK,AAAN,KAAK,CAAC,qBAAqB,CAAyC,OAAuB,EAAS,OAAwB;QAC1H,OAAO,MAAM,IAAA,iCAAc,EAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IAC/C,CAAC;IAKK,AAAN,KAAK,CAAC,cAAc,CAA+B,GAAa,EAAS,OAAwB;QAC/F,OAAO,MAAM,IAAA,iCAAc,EAAC,GAAG,EAAE,OAAO,CAAC,CAAA;IAC3C,CAAC;CACF,CA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CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAiB,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;qDAEvE;0BA3BU,eAAe;IAF3B,IAAA,uBAAQ,EAAC,kBAAO,CAAC;IACjB,IAAA,4BAAa,EAAC,qBAAa,CAAC;GAChB,eAAe,CA4B3B","sourcesContent":["import { Arg, Ctx, Directive, Mutation, Resolver, UseMiddleware } from 'type-graphql'\n\nimport { SpeakRefusals } from '@things-factory/shell'\n\nimport { SealUse } from './seal-use'\nimport { deleteSealUses, recordSealUse, updateSealUses, withdrawSealUse } from './seal-use-service'\nimport { NewSealUse, SealUsePatch } from './seal-use-type'\n\n@Resolver(SealUse)\n@UseMiddleware(SpeakRefusals)\nexport class SealUseMutation {\n @Directive('@privilege(category: \"seal-use\", privilege: \"mutation\", domainOwnerGranted: true)')\n @Directive('@transaction')\n @Mutation(returns => SealUse, { description: 'To write down a use of a seal - put up for approval when it is the corporate seal or a taking out (ADR-0188)' })\n async recordSealUse(@Arg('use', type => NewSealUse) use: NewSealUse, @Ctx() context: ResolverContext): Promise<SealUse> {\n return await recordSealUse(use, context)\n }\n\n @Directive('@privilege(category: \"seal-use\", privilege: \"mutation\", domainOwnerGranted: true)')\n @Directive('@transaction')\n @Mutation(returns => SealUse, { description: 'To take back a use waiting on approval - only the one who put it up' })\n async withdrawSealUse(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<SealUse> {\n return await withdrawSealUse(id, context)\n }\n\n @Directive('@privilege(category: \"seal-use\", privilege: \"mutation\", domainOwnerGranted: true)')\n @Directive('@transaction')\n @Mutation(returns => [SealUse], { description: 'To write the day a seal came back, and the notes' })\n async updateMultipleSealUse(@Arg('patches', type => [SealUsePatch]) patches: SealUsePatch[], @Ctx() context: ResolverContext): Promise<SealUse[]> {\n return await updateSealUses(patches, context)\n }\n\n @Directive('@privilege(category: \"seal-use\", privilege: \"mutation\", domainOwnerGranted: true)')\n @Directive('@transaction')\n @Mutation(returns => Boolean, { description: 'To delete uses nobody approved' })\n async deleteSealUses(@Arg('ids', type => [String]) ids: string[], @Ctx() context: ResolverContext): Promise<boolean> {\n return await deleteSealUses(ids, context)\n }\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import { User } from '@things-factory/auth-base';
2
+ import { CompanySeal } from '@things-factory/biz-base';
3
+ import { Employee } from '@things-factory/organization';
4
+ import { ListParam } from '@things-factory/shell';
5
+ import { SealUse } from './seal-use';
6
+ import { SealUseList } from './seal-use-type';
7
+ export declare class SealUseQuery {
8
+ sealUses(params: ListParam, context: ResolverContext): Promise<SealUseList>;
9
+ seal(row: SealUse): Promise<CompanySeal | null>;
10
+ requester(row: SealUse): Promise<Employee | null>;
11
+ decidedBy(row: SealUse): Promise<User | null>;
12
+ creator(row: SealUse): Promise<User | null>;
13
+ updater(row: SealUse): Promise<User | null>;
14
+ }