@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.
- package/dist-client/bootstrap.d.ts +2 -0
- package/dist-client/bootstrap.js +28 -0
- package/dist-client/bootstrap.js.map +1 -0
- package/dist-client/components/compliance-case-form.d.ts +42 -0
- package/dist-client/components/compliance-case-form.js +313 -0
- package/dist-client/components/compliance-case-form.js.map +1 -0
- package/dist-client/components/compliance-case-sheet.d.ts +35 -0
- package/dist-client/components/compliance-case-sheet.js +335 -0
- package/dist-client/components/compliance-case-sheet.js.map +1 -0
- package/dist-client/components/compliance-my-inventions.d.ts +17 -0
- package/dist-client/components/compliance-my-inventions.js +133 -0
- package/dist-client/components/compliance-my-inventions.js.map +1 -0
- package/dist-client/components/compliance-my-privacy-requests.d.ts +34 -0
- package/dist-client/components/compliance-my-privacy-requests.js +232 -0
- package/dist-client/components/compliance-my-privacy-requests.js.map +1 -0
- package/dist-client/components/compliance-my-reports.d.ts +19 -0
- package/dist-client/components/compliance-my-reports.js +137 -0
- package/dist-client/components/compliance-my-reports.js.map +1 -0
- package/dist-client/components/guide-link.d.ts +13 -0
- package/dist-client/components/guide-link.js +55 -0
- package/dist-client/components/guide-link.js.map +1 -0
- package/dist-client/components/invention-report-form.d.ts +30 -0
- package/dist-client/components/invention-report-form.js +188 -0
- package/dist-client/components/invention-report-form.js.map +1 -0
- package/dist-client/components/legal-todo.d.ts +10 -0
- package/dist-client/components/legal-todo.js +43 -0
- package/dist-client/components/legal-todo.js.map +1 -0
- package/dist-client/components/my-trainings.d.ts +18 -0
- package/dist-client/components/my-trainings.js +149 -0
- package/dist-client/components/my-trainings.js.map +1 -0
- package/dist-client/components/regulation-form.d.ts +26 -0
- package/dist-client/components/regulation-form.js +161 -0
- package/dist-client/components/regulation-form.js.map +1 -0
- package/dist-client/components/seal-use-form.d.ts +47 -0
- package/dist-client/components/seal-use-form.js +300 -0
- package/dist-client/components/seal-use-form.js.map +1 -0
- package/dist-client/components/training-attendance-form.d.ts +37 -0
- package/dist-client/components/training-attendance-form.js +186 -0
- package/dist-client/components/training-attendance-form.js.map +1 -0
- package/dist-client/components/training-certificate-form.d.ts +41 -0
- package/dist-client/components/training-certificate-form.js +198 -0
- package/dist-client/components/training-certificate-form.js.map +1 -0
- package/dist-client/components/training-session-form.d.ts +39 -0
- package/dist-client/components/training-session-form.js +270 -0
- package/dist-client/components/training-session-form.js.map +1 -0
- package/dist-client/components/training-setting-form.d.ts +45 -0
- package/dist-client/components/training-setting-form.js +175 -0
- package/dist-client/components/training-setting-form.js.map +1 -0
- package/dist-client/index.d.ts +4 -0
- package/dist-client/index.js +8 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/legal-record/dispute-calendar-source.d.ts +1 -0
- package/dist-client/legal-record/dispute-calendar-source.js +51 -0
- package/dist-client/legal-record/dispute-calendar-source.js.map +1 -0
- package/dist-client/legal-record/legal-child-grid.d.ts +31 -0
- package/dist-client/legal-record/legal-child-grid.js +76 -0
- package/dist-client/legal-record/legal-child-grid.js.map +1 -0
- package/dist-client/legal-record/legal-codes.d.ts +3 -0
- package/dist-client/legal-record/legal-codes.js +5 -0
- package/dist-client/legal-record/legal-codes.js.map +1 -0
- package/dist-client/legal-record/legal-grid.d.ts +59 -0
- package/dist-client/legal-record/legal-grid.js +68 -0
- package/dist-client/legal-record/legal-grid.js.map +1 -0
- package/dist-client/legal-record/legal-record-files.d.ts +26 -0
- package/dist-client/legal-record/legal-record-files.js +162 -0
- package/dist-client/legal-record/legal-record-files.js.map +1 -0
- package/dist-client/pages/compliance-case-list.d.ts +35 -0
- package/dist-client/pages/compliance-case-list.js +112 -0
- package/dist-client/pages/compliance-case-list.js.map +1 -0
- package/dist-client/pages/dispute-list.d.ts +57 -0
- package/dist-client/pages/dispute-list.js +156 -0
- package/dist-client/pages/dispute-list.js.map +1 -0
- package/dist-client/pages/invention-list.d.ts +57 -0
- package/dist-client/pages/invention-list.js +166 -0
- package/dist-client/pages/invention-list.js.map +1 -0
- package/dist-client/pages/legal-registration-list.d.ts +63 -0
- package/dist-client/pages/legal-registration-list.js +206 -0
- package/dist-client/pages/legal-registration-list.js.map +1 -0
- package/dist-client/pages/privacy-record-list.d.ts +52 -0
- package/dist-client/pages/privacy-record-list.js +225 -0
- package/dist-client/pages/privacy-record-list.js.map +1 -0
- package/dist-client/pages/regulation-detail.d.ts +43 -0
- package/dist-client/pages/regulation-detail.js +370 -0
- package/dist-client/pages/regulation-detail.js.map +1 -0
- package/dist-client/pages/regulation-list.d.ts +52 -0
- package/dist-client/pages/regulation-list.js +144 -0
- package/dist-client/pages/regulation-list.js.map +1 -0
- package/dist-client/pages/regulations.d.ts +49 -0
- package/dist-client/pages/regulations.js +412 -0
- package/dist-client/pages/regulations.js.map +1 -0
- package/dist-client/pages/seal-use-list.d.ts +57 -0
- package/dist-client/pages/seal-use-list.js +168 -0
- package/dist-client/pages/seal-use-list.js.map +1 -0
- package/dist-client/pages/training-list.d.ts +51 -0
- package/dist-client/pages/training-list.js +333 -0
- package/dist-client/pages/training-list.js.map +1 -0
- package/dist-client/regulation/regulation-fragments.d.ts +1 -0
- package/dist-client/regulation/regulation-fragments.js +37 -0
- package/dist-client/regulation/regulation-fragments.js.map +1 -0
- package/dist-client/regulation/regulation-guide.d.ts +19 -0
- package/dist-client/regulation/regulation-guide.js +48 -0
- package/dist-client/regulation/regulation-guide.js.map +1 -0
- package/dist-client/route.d.ts +1 -0
- package/dist-client/route.js +36 -0
- package/dist-client/route.js.map +1 -0
- package/dist-client/training-words.d.ts +11 -0
- package/dist-client/training-words.js +11 -0
- package/dist-client/training-words.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-client/words.d.ts +15 -0
- package/dist-client/words.js +20 -0
- package/dist-client/words.js.map +1 -0
- package/dist-server/activities/index.d.ts +6 -0
- package/dist-server/activities/index.js +37 -0
- package/dist-server/activities/index.js.map +1 -0
- package/dist-server/activities/legal-todo-activity-names.d.ts +1 -0
- package/dist-server/activities/legal-todo-activity-names.js +5 -0
- package/dist-server/activities/legal-todo-activity-names.js.map +1 -0
- package/dist-server/activities/legal-todo-activity.d.ts +37 -0
- package/dist-server/activities/legal-todo-activity.js +41 -0
- package/dist-server/activities/legal-todo-activity.js.map +1 -0
- package/dist-server/activities/regulation-activity-names.d.ts +1 -0
- package/dist-server/activities/regulation-activity-names.js +5 -0
- package/dist-server/activities/regulation-activity-names.js.map +1 -0
- package/dist-server/activities/regulation-activity.d.ts +48 -0
- package/dist-server/activities/regulation-activity.js +47 -0
- package/dist-server/activities/regulation-activity.js.map +1 -0
- package/dist-server/activities/seal-use-activity-names.d.ts +2 -0
- package/dist-server/activities/seal-use-activity-names.js +6 -0
- package/dist-server/activities/seal-use-activity-names.js.map +1 -0
- package/dist-server/activities/seal-use-activity.d.ts +48 -0
- package/dist-server/activities/seal-use-activity.js +47 -0
- package/dist-server/activities/seal-use-activity.js.map +1 -0
- package/dist-server/index.d.ts +2 -0
- package/dist-server/index.js +21 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/role-tasks.d.ts +2 -0
- package/dist-server/role-tasks.js +28 -0
- package/dist-server/role-tasks.js.map +1 -0
- package/dist-server/service/common/correction.d.ts +32 -0
- package/dist-server/service/common/correction.js +98 -0
- package/dist-server/service/common/correction.js.map +1 -0
- package/dist-server/service/common/employee-reader.d.ts +11 -0
- package/dist-server/service/common/employee-reader.js +46 -0
- package/dist-server/service/common/employee-reader.js.map +1 -0
- package/dist-server/service/common/legal-todo.d.ts +19 -0
- package/dist-server/service/common/legal-todo.js +37 -0
- package/dist-server/service/common/legal-todo.js.map +1 -0
- package/dist-server/service/compliance-case/compliance-case-mutation.d.ts +9 -0
- package/dist-server/service/compliance-case/compliance-case-mutation.js +73 -0
- package/dist-server/service/compliance-case/compliance-case-mutation.js.map +1 -0
- package/dist-server/service/compliance-case/compliance-case-query.d.ts +28 -0
- package/dist-server/service/compliance-case/compliance-case-query.js +212 -0
- package/dist-server/service/compliance-case/compliance-case-query.js.map +1 -0
- package/dist-server/service/compliance-case/compliance-case-rules.d.ts +71 -0
- package/dist-server/service/compliance-case/compliance-case-rules.js +111 -0
- package/dist-server/service/compliance-case/compliance-case-rules.js.map +1 -0
- package/dist-server/service/compliance-case/compliance-case-service.d.ts +76 -0
- package/dist-server/service/compliance-case/compliance-case-service.js +425 -0
- package/dist-server/service/compliance-case/compliance-case-service.js.map +1 -0
- package/dist-server/service/compliance-case/compliance-case-type.d.ts +56 -0
- package/dist-server/service/compliance-case/compliance-case-type.js +200 -0
- package/dist-server/service/compliance-case/compliance-case-type.js.map +1 -0
- package/dist-server/service/compliance-case/compliance-case.d.ts +76 -0
- package/dist-server/service/compliance-case/compliance-case.js +260 -0
- package/dist-server/service/compliance-case/compliance-case.js.map +1 -0
- package/dist-server/service/compliance-case/index.d.ts +7 -0
- package/dist-server/service/compliance-case/index.js +17 -0
- package/dist-server/service/compliance-case/index.js.map +1 -0
- package/dist-server/service/dispute/dispute-mutation.d.ts +9 -0
- package/dist-server/service/dispute/dispute-mutation.js +64 -0
- package/dist-server/service/dispute/dispute-mutation.js.map +1 -0
- package/dist-server/service/dispute/dispute-query.d.ts +16 -0
- package/dist-server/service/dispute/dispute-query.js +124 -0
- package/dist-server/service/dispute/dispute-query.js.map +1 -0
- package/dist-server/service/dispute/dispute-rules.d.ts +20 -0
- package/dist-server/service/dispute/dispute-rules.js +42 -0
- package/dist-server/service/dispute/dispute-rules.js.map +1 -0
- package/dist-server/service/dispute/dispute-service.d.ts +17 -0
- package/dist-server/service/dispute/dispute-service.js +96 -0
- package/dist-server/service/dispute/dispute-service.js.map +1 -0
- package/dist-server/service/dispute/dispute-type.d.ts +39 -0
- package/dist-server/service/dispute/dispute-type.js +149 -0
- package/dist-server/service/dispute/dispute-type.js.map +1 -0
- package/dist-server/service/dispute/dispute.d.ts +48 -0
- package/dist-server/service/dispute/dispute.js +198 -0
- package/dist-server/service/dispute/dispute.js.map +1 -0
- package/dist-server/service/dispute/index.d.ts +5 -0
- package/dist-server/service/dispute/index.js +9 -0
- package/dist-server/service/dispute/index.js.map +1 -0
- package/dist-server/service/index.d.ts +46 -0
- package/dist-server/service/index.js +112 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/service/invention/index.d.ts +5 -0
- package/dist-server/service/invention/index.js +9 -0
- package/dist-server/service/invention/index.js.map +1 -0
- package/dist-server/service/invention/invention-mutation.d.ts +10 -0
- package/dist-server/service/invention/invention-mutation.js +79 -0
- package/dist-server/service/invention/invention-mutation.js.map +1 -0
- package/dist-server/service/invention/invention-query.d.ts +18 -0
- package/dist-server/service/invention/invention-query.js +141 -0
- package/dist-server/service/invention/invention-query.js.map +1 -0
- package/dist-server/service/invention/invention-rules.d.ts +28 -0
- package/dist-server/service/invention/invention-rules.js +54 -0
- package/dist-server/service/invention/invention-rules.js.map +1 -0
- package/dist-server/service/invention/invention-service.d.ts +25 -0
- package/dist-server/service/invention/invention-service.js +176 -0
- package/dist-server/service/invention/invention-service.js.map +1 -0
- package/dist-server/service/invention/invention-type.d.ts +34 -0
- package/dist-server/service/invention/invention-type.js +129 -0
- package/dist-server/service/invention/invention-type.js.map +1 -0
- package/dist-server/service/invention/invention.d.ts +55 -0
- package/dist-server/service/invention/invention.js +214 -0
- package/dist-server/service/invention/invention.js.map +1 -0
- package/dist-server/service/legal-record/attachment-readers.d.ts +1 -0
- package/dist-server/service/legal-record/attachment-readers.js +27 -0
- package/dist-server/service/legal-record/attachment-readers.js.map +1 -0
- package/dist-server/service/legal-record/days.d.ts +7 -0
- package/dist-server/service/legal-record/days.js +26 -0
- package/dist-server/service/legal-record/days.js.map +1 -0
- package/dist-server/service/legal-record/legal-record-support.d.ts +24 -0
- package/dist-server/service/legal-record/legal-record-support.js +51 -0
- package/dist-server/service/legal-record/legal-record-support.js.map +1 -0
- package/dist-server/service/legal-registration/centre-change-subscriber.d.ts +9 -0
- package/dist-server/service/legal-registration/centre-change-subscriber.js +50 -0
- package/dist-server/service/legal-registration/centre-change-subscriber.js.map +1 -0
- package/dist-server/service/legal-registration/index.d.ts +7 -0
- package/dist-server/service/legal-registration/index.js +11 -0
- package/dist-server/service/legal-registration/index.js.map +1 -0
- package/dist-server/service/legal-registration/legal-registration-mutation.d.ts +10 -0
- package/dist-server/service/legal-registration/legal-registration-mutation.js +77 -0
- package/dist-server/service/legal-registration/legal-registration-mutation.js.map +1 -0
- package/dist-server/service/legal-registration/legal-registration-query.d.ts +26 -0
- package/dist-server/service/legal-registration/legal-registration-query.js +199 -0
- package/dist-server/service/legal-registration/legal-registration-query.js.map +1 -0
- package/dist-server/service/legal-registration/legal-registration-rules.d.ts +80 -0
- package/dist-server/service/legal-registration/legal-registration-rules.js +106 -0
- package/dist-server/service/legal-registration/legal-registration-rules.js.map +1 -0
- package/dist-server/service/legal-registration/legal-registration-service.d.ts +37 -0
- package/dist-server/service/legal-registration/legal-registration-service.js +248 -0
- package/dist-server/service/legal-registration/legal-registration-service.js.map +1 -0
- package/dist-server/service/legal-registration/legal-registration-type.d.ts +55 -0
- package/dist-server/service/legal-registration/legal-registration-type.js +207 -0
- package/dist-server/service/legal-registration/legal-registration-type.js.map +1 -0
- package/dist-server/service/legal-registration/legal-registration.d.ts +76 -0
- package/dist-server/service/legal-registration/legal-registration.js +311 -0
- package/dist-server/service/legal-registration/legal-registration.js.map +1 -0
- package/dist-server/service/privacy-record/index.d.ts +5 -0
- package/dist-server/service/privacy-record/index.js +9 -0
- package/dist-server/service/privacy-record/index.js.map +1 -0
- package/dist-server/service/privacy-record/privacy-record-mutation.d.ts +7 -0
- package/dist-server/service/privacy-record/privacy-record-mutation.js +56 -0
- package/dist-server/service/privacy-record/privacy-record-mutation.js.map +1 -0
- package/dist-server/service/privacy-record/privacy-record-query.d.ts +18 -0
- package/dist-server/service/privacy-record/privacy-record-query.js +131 -0
- package/dist-server/service/privacy-record/privacy-record-query.js.map +1 -0
- package/dist-server/service/privacy-record/privacy-record-rules.d.ts +52 -0
- package/dist-server/service/privacy-record/privacy-record-rules.js +91 -0
- package/dist-server/service/privacy-record/privacy-record-rules.js.map +1 -0
- package/dist-server/service/privacy-record/privacy-record-service.d.ts +33 -0
- package/dist-server/service/privacy-record/privacy-record-service.js +133 -0
- package/dist-server/service/privacy-record/privacy-record-service.js.map +1 -0
- package/dist-server/service/privacy-record/privacy-record-type.d.ts +40 -0
- package/dist-server/service/privacy-record/privacy-record-type.js +153 -0
- package/dist-server/service/privacy-record/privacy-record-type.js.map +1 -0
- package/dist-server/service/privacy-record/privacy-record.d.ts +69 -0
- package/dist-server/service/privacy-record/privacy-record.js +245 -0
- package/dist-server/service/privacy-record/privacy-record.js.map +1 -0
- package/dist-server/service/regulation/index.d.ts +5 -0
- package/dist-server/service/regulation/index.js +9 -0
- package/dist-server/service/regulation/index.js.map +1 -0
- package/dist-server/service/regulation/regulation-mutation.d.ts +15 -0
- package/dist-server/service/regulation/regulation-mutation.js +152 -0
- package/dist-server/service/regulation/regulation-mutation.js.map +1 -0
- package/dist-server/service/regulation/regulation-query.d.ts +10 -0
- package/dist-server/service/regulation/regulation-query.js +109 -0
- package/dist-server/service/regulation/regulation-query.js.map +1 -0
- package/dist-server/service/regulation/regulation-read.d.ts +21 -0
- package/dist-server/service/regulation/regulation-read.js +111 -0
- package/dist-server/service/regulation/regulation-read.js.map +1 -0
- package/dist-server/service/regulation/regulation-rules.d.ts +83 -0
- package/dist-server/service/regulation/regulation-rules.js +170 -0
- package/dist-server/service/regulation/regulation-rules.js.map +1 -0
- package/dist-server/service/regulation/regulation-service.d.ts +63 -0
- package/dist-server/service/regulation/regulation-service.js +365 -0
- package/dist-server/service/regulation/regulation-service.js.map +1 -0
- package/dist-server/service/regulation/regulation-type.d.ts +61 -0
- package/dist-server/service/regulation/regulation-type.js +226 -0
- package/dist-server/service/regulation/regulation-type.js.map +1 -0
- package/dist-server/service/regulation/regulation.d.ts +113 -0
- package/dist-server/service/regulation/regulation.js +382 -0
- package/dist-server/service/regulation/regulation.js.map +1 -0
- package/dist-server/service/seal-use/index.d.ts +5 -0
- package/dist-server/service/seal-use/index.js +9 -0
- package/dist-server/service/seal-use/index.js.map +1 -0
- package/dist-server/service/seal-use/seal-use-mutation.d.ts +8 -0
- package/dist-server/service/seal-use/seal-use-mutation.js +69 -0
- package/dist-server/service/seal-use/seal-use-mutation.js.map +1 -0
- package/dist-server/service/seal-use/seal-use-query.d.ts +14 -0
- package/dist-server/service/seal-use/seal-use-query.js +100 -0
- package/dist-server/service/seal-use/seal-use-query.js.map +1 -0
- package/dist-server/service/seal-use/seal-use-rules.d.ts +35 -0
- package/dist-server/service/seal-use/seal-use-rules.js +64 -0
- package/dist-server/service/seal-use/seal-use-rules.js.map +1 -0
- package/dist-server/service/seal-use/seal-use-service.d.ts +20 -0
- package/dist-server/service/seal-use/seal-use-service.js +168 -0
- package/dist-server/service/seal-use/seal-use-service.js.map +1 -0
- package/dist-server/service/seal-use/seal-use-type.d.ts +24 -0
- package/dist-server/service/seal-use/seal-use-type.js +93 -0
- package/dist-server/service/seal-use/seal-use-type.js.map +1 -0
- package/dist-server/service/seal-use/seal-use.d.ts +57 -0
- package/dist-server/service/seal-use/seal-use.js +181 -0
- package/dist-server/service/seal-use/seal-use.js.map +1 -0
- package/dist-server/service/training/index.d.ts +5 -0
- package/dist-server/service/training/index.js +9 -0
- package/dist-server/service/training/index.js.map +1 -0
- package/dist-server/service/training/training-checks.d.ts +20 -0
- package/dist-server/service/training/training-checks.js +56 -0
- package/dist-server/service/training/training-checks.js.map +1 -0
- package/dist-server/service/training/training-kinds.d.ts +24 -0
- package/dist-server/service/training/training-kinds.js +42 -0
- package/dist-server/service/training/training-kinds.js.map +1 -0
- package/dist-server/service/training/training-mutation.d.ts +14 -0
- package/dist-server/service/training/training-mutation.js +140 -0
- package/dist-server/service/training/training-mutation.js.map +1 -0
- package/dist-server/service/training/training-query.d.ts +21 -0
- package/dist-server/service/training/training-query.js +196 -0
- package/dist-server/service/training/training-query.js.map +1 -0
- package/dist-server/service/training/training-read.d.ts +5 -0
- package/dist-server/service/training/training-read.js +35 -0
- package/dist-server/service/training/training-read.js.map +1 -0
- package/dist-server/service/training/training-register.d.ts +1 -0
- package/dist-server/service/training/training-register.js +27 -0
- package/dist-server/service/training/training-register.js.map +1 -0
- package/dist-server/service/training/training-rules.d.ts +72 -0
- package/dist-server/service/training/training-rules.js +143 -0
- package/dist-server/service/training/training-rules.js.map +1 -0
- package/dist-server/service/training/training-service.d.ts +98 -0
- package/dist-server/service/training/training-service.js +455 -0
- package/dist-server/service/training/training-service.js.map +1 -0
- package/dist-server/service/training/training-type.d.ts +94 -0
- package/dist-server/service/training/training-type.js +352 -0
- package/dist-server/service/training/training-type.js.map +1 -0
- package/dist-server/service/training/training.d.ts +127 -0
- package/dist-server/service/training/training.js +448 -0
- package/dist-server/service/training/training.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +61 -4
- package/things-factory.config.js +19 -0
- package/translations/en.json +612 -0
- package/translations/es.json +612 -0
- package/translations/ja.json +612 -0
- package/translations/ko.json +612 -0
- package/translations/ms.json +612 -0
- package/translations/zh.json +612 -0
- package/README.md +0 -3
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComplianceCasePerson = exports.ComplianceReportView = exports.ComplianceCaseList = exports.ComplianceCaseHandling = exports.NewComplianceCase = exports.NewComplianceCaseReport = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
7
|
+
const compliance_case_1 = require("./compliance-case");
|
|
8
|
+
let NewComplianceCaseReport = class NewComplianceCaseReport {
|
|
9
|
+
};
|
|
10
|
+
exports.NewComplianceCaseReport = NewComplianceCaseReport;
|
|
11
|
+
tslib_1.__decorate([
|
|
12
|
+
(0, type_graphql_1.Field)(type => compliance_case_1.ComplianceCaseKind),
|
|
13
|
+
tslib_1.__metadata("design:type", String)
|
|
14
|
+
], NewComplianceCaseReport.prototype, "kind", void 0);
|
|
15
|
+
tslib_1.__decorate([
|
|
16
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The employee it happened to - left empty when it is the reporter, or the reporter will not say' }),
|
|
17
|
+
tslib_1.__metadata("design:type", String)
|
|
18
|
+
], NewComplianceCaseReport.prototype, "victimId", void 0);
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, type_graphql_1.Field)(type => [String], { description: 'The employees reported against' }),
|
|
21
|
+
tslib_1.__metadata("design:type", Array)
|
|
22
|
+
], NewComplianceCaseReport.prototype, "accusedIds", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'YYYY-MM-DD it happened' }),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], NewComplianceCaseReport.prototype, "occurredOn", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, type_graphql_1.Field)({ description: 'What happened' }),
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
30
|
+
], NewComplianceCaseReport.prototype, "description", void 0);
|
|
31
|
+
exports.NewComplianceCaseReport = NewComplianceCaseReport = tslib_1.__decorate([
|
|
32
|
+
(0, type_graphql_1.InputType)({ description: 'A report as an employee makes it - 「회사 규정과 안내 › 신고하기」' })
|
|
33
|
+
], NewComplianceCaseReport);
|
|
34
|
+
let NewComplianceCase = class NewComplianceCase extends NewComplianceCaseReport {
|
|
35
|
+
};
|
|
36
|
+
exports.NewComplianceCase = NewComplianceCase;
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The employee who reported it' }),
|
|
39
|
+
tslib_1.__metadata("design:type", String)
|
|
40
|
+
], NewComplianceCase.prototype, "reporterId", void 0);
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
(0, type_graphql_1.Field)({ description: 'YYYY-MM-DD it was received' }),
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
44
|
+
], NewComplianceCase.prototype, "receivedOn", void 0);
|
|
45
|
+
exports.NewComplianceCase = NewComplianceCase = tslib_1.__decorate([
|
|
46
|
+
(0, type_graphql_1.InputType)({ description: 'A report the case handler received and writes down' })
|
|
47
|
+
], NewComplianceCase);
|
|
48
|
+
let ComplianceCaseHandling = class ComplianceCaseHandling {
|
|
49
|
+
};
|
|
50
|
+
exports.ComplianceCaseHandling = ComplianceCaseHandling;
|
|
51
|
+
tslib_1.__decorate([
|
|
52
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
53
|
+
tslib_1.__metadata("design:type", String)
|
|
54
|
+
], ComplianceCaseHandling.prototype, "id", void 0);
|
|
55
|
+
tslib_1.__decorate([
|
|
56
|
+
(0, type_graphql_1.Field)(type => [String], { nullable: true, description: 'The users who investigate it' }),
|
|
57
|
+
tslib_1.__metadata("design:type", Array)
|
|
58
|
+
], ComplianceCaseHandling.prototype, "investigatorIds", void 0);
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'YYYY-MM-DD' }),
|
|
61
|
+
tslib_1.__metadata("design:type", String)
|
|
62
|
+
], ComplianceCaseHandling.prototype, "investigationStartedOn", void 0);
|
|
63
|
+
tslib_1.__decorate([
|
|
64
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
65
|
+
tslib_1.__metadata("design:type", String)
|
|
66
|
+
], ComplianceCaseHandling.prototype, "protectionMeasures", void 0);
|
|
67
|
+
tslib_1.__decorate([
|
|
68
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
69
|
+
tslib_1.__metadata("design:type", String)
|
|
70
|
+
], ComplianceCaseHandling.prototype, "victimOpinion", void 0);
|
|
71
|
+
tslib_1.__decorate([
|
|
72
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
73
|
+
tslib_1.__metadata("design:type", String)
|
|
74
|
+
], ComplianceCaseHandling.prototype, "finding", void 0);
|
|
75
|
+
tslib_1.__decorate([
|
|
76
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
+
tslib_1.__metadata("design:type", String)
|
|
78
|
+
], ComplianceCaseHandling.prototype, "actionOnAccused", void 0);
|
|
79
|
+
tslib_1.__decorate([
|
|
80
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The result as told to the reporter and the victim' }),
|
|
81
|
+
tslib_1.__metadata("design:type", String)
|
|
82
|
+
], ComplianceCaseHandling.prototype, "resultNotice", void 0);
|
|
83
|
+
tslib_1.__decorate([
|
|
84
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'YYYY-MM-DD' }),
|
|
85
|
+
tslib_1.__metadata("design:type", String)
|
|
86
|
+
], ComplianceCaseHandling.prototype, "resultToldOn", void 0);
|
|
87
|
+
tslib_1.__decorate([
|
|
88
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'YYYY-MM-DD' }),
|
|
89
|
+
tslib_1.__metadata("design:type", String)
|
|
90
|
+
], ComplianceCaseHandling.prototype, "closedOn", void 0);
|
|
91
|
+
exports.ComplianceCaseHandling = ComplianceCaseHandling = tslib_1.__decorate([
|
|
92
|
+
(0, type_graphql_1.InputType)({ description: 'What the case handler writes on a case as it goes - a value already written is changed with a correction kept' })
|
|
93
|
+
], ComplianceCaseHandling);
|
|
94
|
+
let ComplianceCaseList = class ComplianceCaseList {
|
|
95
|
+
};
|
|
96
|
+
exports.ComplianceCaseList = ComplianceCaseList;
|
|
97
|
+
tslib_1.__decorate([
|
|
98
|
+
(0, type_graphql_1.Field)(type => [compliance_case_1.ComplianceCase]),
|
|
99
|
+
tslib_1.__metadata("design:type", Array)
|
|
100
|
+
], ComplianceCaseList.prototype, "items", void 0);
|
|
101
|
+
tslib_1.__decorate([
|
|
102
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
103
|
+
tslib_1.__metadata("design:type", Number)
|
|
104
|
+
], ComplianceCaseList.prototype, "total", void 0);
|
|
105
|
+
exports.ComplianceCaseList = ComplianceCaseList = tslib_1.__decorate([
|
|
106
|
+
(0, type_graphql_1.ObjectType)({ description: 'A page of cases' })
|
|
107
|
+
], ComplianceCaseList);
|
|
108
|
+
/**
|
|
109
|
+
* A case as the reporter or the victim reads it - where it stands, the protection measures and the result told; the
|
|
110
|
+
* reporter also what they reported. No investigation is on this type, so no door answering it can hand one out.
|
|
111
|
+
*/
|
|
112
|
+
let ComplianceReportView = class ComplianceReportView {
|
|
113
|
+
};
|
|
114
|
+
exports.ComplianceReportView = ComplianceReportView;
|
|
115
|
+
tslib_1.__decorate([
|
|
116
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
117
|
+
tslib_1.__metadata("design:type", String)
|
|
118
|
+
], ComplianceReportView.prototype, "id", void 0);
|
|
119
|
+
tslib_1.__decorate([
|
|
120
|
+
(0, type_graphql_1.Field)(type => compliance_case_1.ComplianceCaseKind),
|
|
121
|
+
tslib_1.__metadata("design:type", String)
|
|
122
|
+
], ComplianceReportView.prototype, "kind", void 0);
|
|
123
|
+
tslib_1.__decorate([
|
|
124
|
+
(0, type_graphql_1.Field)(type => compliance_case_1.ComplianceCaseStatus),
|
|
125
|
+
tslib_1.__metadata("design:type", String)
|
|
126
|
+
], ComplianceReportView.prototype, "status", void 0);
|
|
127
|
+
tslib_1.__decorate([
|
|
128
|
+
(0, type_graphql_1.Field)({ description: 'REPORTER or VICTIM - why the reader reads it' }),
|
|
129
|
+
tslib_1.__metadata("design:type", String)
|
|
130
|
+
], ComplianceReportView.prototype, "standing", void 0);
|
|
131
|
+
tslib_1.__decorate([
|
|
132
|
+
(0, type_graphql_1.Field)(),
|
|
133
|
+
tslib_1.__metadata("design:type", String)
|
|
134
|
+
], ComplianceReportView.prototype, "receivedOn", void 0);
|
|
135
|
+
tslib_1.__decorate([
|
|
136
|
+
(0, type_graphql_1.Field)({ description: 'Nobody inside the company investigates it - every case handler is among those reported against' }),
|
|
137
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
138
|
+
], ComplianceReportView.prototype, "noInsideHandler", void 0);
|
|
139
|
+
tslib_1.__decorate([
|
|
140
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The reporter\'s own: YYYY-MM-DD it happened' }),
|
|
141
|
+
tslib_1.__metadata("design:type", String)
|
|
142
|
+
], ComplianceReportView.prototype, "occurredOn", void 0);
|
|
143
|
+
tslib_1.__decorate([
|
|
144
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The reporter\'s own: what they reported' }),
|
|
145
|
+
tslib_1.__metadata("design:type", String)
|
|
146
|
+
], ComplianceReportView.prototype, "description", void 0);
|
|
147
|
+
tslib_1.__decorate([
|
|
148
|
+
(0, type_graphql_1.Field)(type => [String], { nullable: true, description: 'The reporter\'s own: the names they reported against' }),
|
|
149
|
+
tslib_1.__metadata("design:type", Array)
|
|
150
|
+
], ComplianceReportView.prototype, "accusedNames", void 0);
|
|
151
|
+
tslib_1.__decorate([
|
|
152
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The reporter\'s own: the name of the victim they gave' }),
|
|
153
|
+
tslib_1.__metadata("design:type", String)
|
|
154
|
+
], ComplianceReportView.prototype, "victimName", void 0);
|
|
155
|
+
tslib_1.__decorate([
|
|
156
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
157
|
+
tslib_1.__metadata("design:type", String)
|
|
158
|
+
], ComplianceReportView.prototype, "protectionMeasures", void 0);
|
|
159
|
+
tslib_1.__decorate([
|
|
160
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
161
|
+
tslib_1.__metadata("design:type", String)
|
|
162
|
+
], ComplianceReportView.prototype, "victimOpinion", void 0);
|
|
163
|
+
tslib_1.__decorate([
|
|
164
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
165
|
+
tslib_1.__metadata("design:type", String)
|
|
166
|
+
], ComplianceReportView.prototype, "resultNotice", void 0);
|
|
167
|
+
tslib_1.__decorate([
|
|
168
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
169
|
+
tslib_1.__metadata("design:type", String)
|
|
170
|
+
], ComplianceReportView.prototype, "resultToldOn", void 0);
|
|
171
|
+
tslib_1.__decorate([
|
|
172
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
173
|
+
tslib_1.__metadata("design:type", String)
|
|
174
|
+
], ComplianceReportView.prototype, "closedOn", void 0);
|
|
175
|
+
tslib_1.__decorate([
|
|
176
|
+
(0, type_graphql_1.Field)(type => [attachment_base_1.Attachment], { nullable: true, description: 'The reporter\'s own files' }),
|
|
177
|
+
tslib_1.__metadata("design:type", Array)
|
|
178
|
+
], ComplianceReportView.prototype, "attachments", void 0);
|
|
179
|
+
exports.ComplianceReportView = ComplianceReportView = tslib_1.__decorate([
|
|
180
|
+
(0, type_graphql_1.ObjectType)({ description: 'A case as the reporter or the victim reads it - its progress, protection and result, never the investigation' })
|
|
181
|
+
], ComplianceReportView);
|
|
182
|
+
let ComplianceCasePerson = class ComplianceCasePerson {
|
|
183
|
+
};
|
|
184
|
+
exports.ComplianceCasePerson = ComplianceCasePerson;
|
|
185
|
+
tslib_1.__decorate([
|
|
186
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
187
|
+
tslib_1.__metadata("design:type", String)
|
|
188
|
+
], ComplianceCasePerson.prototype, "id", void 0);
|
|
189
|
+
tslib_1.__decorate([
|
|
190
|
+
(0, type_graphql_1.Field)(),
|
|
191
|
+
tslib_1.__metadata("design:type", String)
|
|
192
|
+
], ComplianceCasePerson.prototype, "name", void 0);
|
|
193
|
+
tslib_1.__decorate([
|
|
194
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'What tells two of one name apart - the control number, the mail' }),
|
|
195
|
+
tslib_1.__metadata("design:type", String)
|
|
196
|
+
], ComplianceCasePerson.prototype, "note", void 0);
|
|
197
|
+
exports.ComplianceCasePerson = ComplianceCasePerson = tslib_1.__decorate([
|
|
198
|
+
(0, type_graphql_1.ObjectType)({ description: 'One person a report names or a case is given to - an employee, or a user as investigator' })
|
|
199
|
+
], ComplianceCasePerson);
|
|
200
|
+
//# sourceMappingURL=compliance-case-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compliance-case-type.js","sourceRoot":"","sources":["../../../server/service/compliance-case/compliance-case-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AAEpE,qEAA4D;AAE5D,uDAA4F;AAGrF,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAMnC,CAAA;AANY,0DAAuB;AACC;IAAlC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oCAAkB,CAAC;;qDAAyB;AAC+E;IAAzI,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,gGAAgG,EAAE,CAAC;;yDAAkB;AAC/E;IAA3E,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;;2DAAqB;AAC9B;IAAjE,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;;2DAAoB;AAC5C;IAAxC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;;4DAAoB;kCALjD,uBAAuB;IADnC,IAAA,wBAAS,EAAC,EAAE,WAAW,EAAE,uDAAuD,EAAE,CAAC;GACvE,uBAAuB,CAMnC;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,uBAAuB;CAG7D,CAAA;AAHY,8CAAiB;AAC4C;IAAvE,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;;qDAAoB;AACrC;IAArD,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;;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n\nimport { Attachment } from '@things-factory/attachment-base'\n\nimport { ComplianceCase, ComplianceCaseKind, ComplianceCaseStatus } from './compliance-case'\n\n@InputType({ description: 'A report as an employee makes it - 「회사 규정과 안내 › 신고하기」' })\nexport class NewComplianceCaseReport {\n @Field(type => ComplianceCaseKind) kind: ComplianceCaseKind\n @Field({ nullable: true, description: 'The employee it happened to - left empty when it is the reporter, or the reporter will not say' }) victimId?: string\n @Field(type => [String], { description: 'The employees reported against' }) accusedIds: string[]\n @Field({ nullable: true, description: 'YYYY-MM-DD it happened' }) occurredOn?: string\n @Field({ description: 'What happened' }) description: string\n}\n\n@InputType({ description: 'A report the case handler received and writes down' })\nexport class NewComplianceCase extends NewComplianceCaseReport {\n @Field({ nullable: true, description: 'The employee who reported it' }) reporterId?: string\n @Field({ description: 'YYYY-MM-DD it was received' }) receivedOn: string\n}\n\n@InputType({ description: 'What the case handler writes on a case as it goes - a value already written is changed with a correction kept' })\nexport class ComplianceCaseHandling {\n @Field(type => ID) id: string\n @Field(type => [String], { nullable: true, description: 'The users who investigate it' }) investigatorIds?: string[]\n @Field({ nullable: true, description: 'YYYY-MM-DD' }) investigationStartedOn?: string\n @Field({ nullable: true }) protectionMeasures?: string\n @Field({ nullable: true }) victimOpinion?: string\n @Field({ nullable: true }) finding?: string\n @Field({ nullable: true }) actionOnAccused?: string\n @Field({ nullable: true, description: 'The result as told to the reporter and the victim' }) resultNotice?: string\n @Field({ nullable: true, description: 'YYYY-MM-DD' }) resultToldOn?: string\n @Field({ nullable: true, description: 'YYYY-MM-DD' }) closedOn?: string\n}\n\n@ObjectType({ description: 'A page of cases' })\nexport class ComplianceCaseList {\n @Field(type => [ComplianceCase]) items: ComplianceCase[]\n @Field(type => Int) total: number\n}\n\n/**\n * A case as the reporter or the victim reads it - where it stands, the protection measures and the result told; the\n * reporter also what they reported. No investigation is on this type, so no door answering it can hand one out.\n */\n@ObjectType({ description: 'A case as the reporter or the victim reads it - its progress, protection and result, never the investigation' })\nexport class ComplianceReportView {\n @Field(type => ID) id: string\n @Field(type => ComplianceCaseKind) kind: ComplianceCaseKind\n @Field(type => ComplianceCaseStatus) status: ComplianceCaseStatus\n @Field({ description: 'REPORTER or VICTIM - why the reader reads it' }) standing: string\n @Field() receivedOn: string\n @Field({ description: 'Nobody inside the company investigates it - every case handler is among those reported against' }) noInsideHandler: boolean\n @Field({ nullable: true, description: 'The reporter\\'s own: YYYY-MM-DD it happened' }) occurredOn?: string\n @Field({ nullable: true, description: 'The reporter\\'s own: what they reported' }) description?: string\n @Field(type => [String], { nullable: true, description: 'The reporter\\'s own: the names they reported against' }) accusedNames?: string[]\n @Field({ nullable: true, description: 'The reporter\\'s own: the name of the victim they gave' }) victimName?: string\n @Field({ nullable: true }) protectionMeasures?: string\n @Field({ nullable: true }) victimOpinion?: string\n @Field({ nullable: true }) resultNotice?: string\n @Field({ nullable: true }) resultToldOn?: string\n @Field({ nullable: true }) closedOn?: string\n @Field(type => [Attachment], { nullable: true, description: 'The reporter\\'s own files' }) attachments?: Attachment[]\n}\n\n@ObjectType({ description: 'One person a report names or a case is given to - an employee, or a user as investigator' })\nexport class ComplianceCasePerson {\n @Field(type => ID) id: string\n @Field() name: string\n @Field({ nullable: true, description: 'What tells two of one name apart - the control number, the mail' }) note?: string\n}\n"]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { User } from '@things-factory/auth-base';
|
|
2
|
+
import { Employee } from '@things-factory/organization';
|
|
3
|
+
import { Domain } from '@things-factory/shell';
|
|
4
|
+
/** What was reported. */
|
|
5
|
+
export declare enum ComplianceCaseKind {
|
|
6
|
+
/** 직장 내 괴롭힘 - 근로기준법 §76의2 · §76의3. */
|
|
7
|
+
HARASSMENT = "HARASSMENT",
|
|
8
|
+
/** 직장 내 성희롱 - 남녀고용평등법 §14. */
|
|
9
|
+
SEXUAL_HARASSMENT = "SEXUAL_HARASSMENT"
|
|
10
|
+
}
|
|
11
|
+
/** Where a case stands - read from what is written on it, kept for the list's filter. */
|
|
12
|
+
export declare enum ComplianceCaseStatus {
|
|
13
|
+
RECEIVED = "RECEIVED",
|
|
14
|
+
INVESTIGATING = "INVESTIGATING",
|
|
15
|
+
/** The finding is written. */
|
|
16
|
+
DECIDED = "DECIDED",
|
|
17
|
+
/** The result is told to the reporter and the victim. */
|
|
18
|
+
TOLD = "TOLD",
|
|
19
|
+
CLOSED = "CLOSED"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 신고 사건 (ADR-0187 decision 21) - one report of workplace harassment or sexual harassment: who reported it, who it
|
|
23
|
+
* happened to, who it is against, when and what; who investigates it, what the investigation found, how the victim was
|
|
24
|
+
* protected and what was done to those reported against. Read only by the reporter, the case handlers and the case's
|
|
25
|
+
* investigators - never by one reported against. Nothing of it goes into a notice, an AI read or a search.
|
|
26
|
+
*/
|
|
27
|
+
export declare class ComplianceCase {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
domain?: Domain;
|
|
30
|
+
domainId?: string;
|
|
31
|
+
kind: ComplianceCaseKind;
|
|
32
|
+
reporter?: Employee;
|
|
33
|
+
reporterId?: string;
|
|
34
|
+
reporterUser?: User;
|
|
35
|
+
reporterUserId?: string;
|
|
36
|
+
victim?: Employee;
|
|
37
|
+
victimId?: string;
|
|
38
|
+
accused?: Employee[];
|
|
39
|
+
occurredOn?: string;
|
|
40
|
+
description: string;
|
|
41
|
+
receivedOn: string;
|
|
42
|
+
investigationDueOn?: string;
|
|
43
|
+
noInsideHandler: boolean;
|
|
44
|
+
investigators?: User[];
|
|
45
|
+
investigationStartedOn?: string;
|
|
46
|
+
protectionMeasures?: string;
|
|
47
|
+
victimOpinion?: string;
|
|
48
|
+
finding?: string;
|
|
49
|
+
actionOnAccused?: string;
|
|
50
|
+
resultNotice?: string;
|
|
51
|
+
resultToldOn?: string;
|
|
52
|
+
closedOn?: string;
|
|
53
|
+
status: ComplianceCaseStatus;
|
|
54
|
+
createdAt?: Date;
|
|
55
|
+
updatedAt?: Date;
|
|
56
|
+
creator?: User;
|
|
57
|
+
creatorId?: string;
|
|
58
|
+
updater?: User;
|
|
59
|
+
updaterId?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* 조사 기록 - one entry of a case's investigation: an interview, a statement, what was looked at. Written and never
|
|
63
|
+
* changed; a mistake is set right by the next entry. Read only by those who read the whole case.
|
|
64
|
+
*/
|
|
65
|
+
export declare class ComplianceCaseEntry {
|
|
66
|
+
readonly id: string;
|
|
67
|
+
domain?: Domain;
|
|
68
|
+
domainId?: string;
|
|
69
|
+
complianceCase?: ComplianceCase;
|
|
70
|
+
complianceCaseId?: string;
|
|
71
|
+
writtenOn: string;
|
|
72
|
+
body: string;
|
|
73
|
+
createdAt?: Date;
|
|
74
|
+
creator?: User;
|
|
75
|
+
creatorId?: string;
|
|
76
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComplianceCaseEntry = exports.ComplianceCase = exports.ComplianceCaseStatus = exports.ComplianceCaseKind = 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 organization_1 = require("@things-factory/organization");
|
|
9
|
+
const shell_1 = require("@things-factory/shell");
|
|
10
|
+
/** What was reported. */
|
|
11
|
+
var ComplianceCaseKind;
|
|
12
|
+
(function (ComplianceCaseKind) {
|
|
13
|
+
/** 직장 내 괴롭힘 - 근로기준법 §76의2 · §76의3. */
|
|
14
|
+
ComplianceCaseKind["HARASSMENT"] = "HARASSMENT";
|
|
15
|
+
/** 직장 내 성희롱 - 남녀고용평등법 §14. */
|
|
16
|
+
ComplianceCaseKind["SEXUAL_HARASSMENT"] = "SEXUAL_HARASSMENT";
|
|
17
|
+
})(ComplianceCaseKind || (exports.ComplianceCaseKind = ComplianceCaseKind = {}));
|
|
18
|
+
(0, type_graphql_1.registerEnumType)(ComplianceCaseKind, { name: 'ComplianceCaseKind', description: 'workplace harassment or sexual harassment' });
|
|
19
|
+
/** Where a case stands - read from what is written on it, kept for the list's filter. */
|
|
20
|
+
var ComplianceCaseStatus;
|
|
21
|
+
(function (ComplianceCaseStatus) {
|
|
22
|
+
ComplianceCaseStatus["RECEIVED"] = "RECEIVED";
|
|
23
|
+
ComplianceCaseStatus["INVESTIGATING"] = "INVESTIGATING";
|
|
24
|
+
/** The finding is written. */
|
|
25
|
+
ComplianceCaseStatus["DECIDED"] = "DECIDED";
|
|
26
|
+
/** The result is told to the reporter and the victim. */
|
|
27
|
+
ComplianceCaseStatus["TOLD"] = "TOLD";
|
|
28
|
+
ComplianceCaseStatus["CLOSED"] = "CLOSED";
|
|
29
|
+
})(ComplianceCaseStatus || (exports.ComplianceCaseStatus = ComplianceCaseStatus = {}));
|
|
30
|
+
(0, type_graphql_1.registerEnumType)(ComplianceCaseStatus, { name: 'ComplianceCaseStatus', description: 'received, investigating, decided, told, closed' });
|
|
31
|
+
/**
|
|
32
|
+
* 신고 사건 (ADR-0187 decision 21) - one report of workplace harassment or sexual harassment: who reported it, who it
|
|
33
|
+
* happened to, who it is against, when and what; who investigates it, what the investigation found, how the victim was
|
|
34
|
+
* protected and what was done to those reported against. Read only by the reporter, the case handlers and the case's
|
|
35
|
+
* investigators - never by one reported against. Nothing of it goes into a notice, an AI read or a search.
|
|
36
|
+
*/
|
|
37
|
+
let ComplianceCase = class ComplianceCase {
|
|
38
|
+
};
|
|
39
|
+
exports.ComplianceCase = ComplianceCase;
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
42
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
44
|
+
], ComplianceCase.prototype, "id", void 0);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
47
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain, { nullable: true }),
|
|
48
|
+
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
49
|
+
], ComplianceCase.prototype, "domain", void 0);
|
|
50
|
+
tslib_1.__decorate([
|
|
51
|
+
(0, typeorm_1.RelationId)((row) => row.domain),
|
|
52
|
+
tslib_1.__metadata("design:type", String)
|
|
53
|
+
], ComplianceCase.prototype, "domainId", void 0);
|
|
54
|
+
tslib_1.__decorate([
|
|
55
|
+
(0, typeorm_1.Column)(),
|
|
56
|
+
(0, type_graphql_1.Field)(type => ComplianceCaseKind),
|
|
57
|
+
tslib_1.__metadata("design:type", String)
|
|
58
|
+
], ComplianceCase.prototype, "kind", void 0);
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, typeorm_1.ManyToOne)(type => organization_1.Employee, { nullable: true }),
|
|
61
|
+
(0, type_graphql_1.Field)(type => organization_1.Employee, { nullable: true, description: 'The employee who reported it' }),
|
|
62
|
+
tslib_1.__metadata("design:type", organization_1.Employee)
|
|
63
|
+
], ComplianceCase.prototype, "reporter", void 0);
|
|
64
|
+
tslib_1.__decorate([
|
|
65
|
+
(0, typeorm_1.RelationId)((row) => row.reporter),
|
|
66
|
+
tslib_1.__metadata("design:type", String)
|
|
67
|
+
], ComplianceCase.prototype, "reporterId", void 0);
|
|
68
|
+
tslib_1.__decorate([
|
|
69
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
70
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'The account of the reporter - the one who reads its progress' }),
|
|
71
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
72
|
+
], ComplianceCase.prototype, "reporterUser", void 0);
|
|
73
|
+
tslib_1.__decorate([
|
|
74
|
+
(0, typeorm_1.RelationId)((row) => row.reporterUser),
|
|
75
|
+
tslib_1.__metadata("design:type", String)
|
|
76
|
+
], ComplianceCase.prototype, "reporterUserId", void 0);
|
|
77
|
+
tslib_1.__decorate([
|
|
78
|
+
(0, typeorm_1.ManyToOne)(type => organization_1.Employee, { nullable: true }),
|
|
79
|
+
(0, type_graphql_1.Field)(type => organization_1.Employee, { nullable: true, description: 'The employee it happened to, when the reporter says' }),
|
|
80
|
+
tslib_1.__metadata("design:type", organization_1.Employee)
|
|
81
|
+
], ComplianceCase.prototype, "victim", void 0);
|
|
82
|
+
tslib_1.__decorate([
|
|
83
|
+
(0, typeorm_1.RelationId)((row) => row.victim),
|
|
84
|
+
tslib_1.__metadata("design:type", String)
|
|
85
|
+
], ComplianceCase.prototype, "victimId", void 0);
|
|
86
|
+
tslib_1.__decorate([
|
|
87
|
+
(0, typeorm_1.ManyToMany)(type => organization_1.Employee),
|
|
88
|
+
(0, typeorm_1.JoinTable)({ name: 'compliance_cases_accused' }),
|
|
89
|
+
(0, type_graphql_1.Field)(type => [organization_1.Employee], { nullable: true, description: 'The employees reported against' }),
|
|
90
|
+
tslib_1.__metadata("design:type", Array)
|
|
91
|
+
], ComplianceCase.prototype, "accused", void 0);
|
|
92
|
+
tslib_1.__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
94
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'YYYY-MM-DD it happened, when the reporter knows' }),
|
|
95
|
+
tslib_1.__metadata("design:type", String)
|
|
96
|
+
], ComplianceCase.prototype, "occurredOn", void 0);
|
|
97
|
+
tslib_1.__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
99
|
+
(0, type_graphql_1.Field)({ description: 'What happened, in the reporter\'s words' }),
|
|
100
|
+
tslib_1.__metadata("design:type", String)
|
|
101
|
+
], ComplianceCase.prototype, "description", void 0);
|
|
102
|
+
tslib_1.__decorate([
|
|
103
|
+
(0, typeorm_1.Column)(),
|
|
104
|
+
(0, type_graphql_1.Field)({ description: 'YYYY-MM-DD it was received' }),
|
|
105
|
+
tslib_1.__metadata("design:type", String)
|
|
106
|
+
], ComplianceCase.prototype, "receivedOn", void 0);
|
|
107
|
+
tslib_1.__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
109
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'YYYY-MM-DD the investigation is to start by - the domain\'s days from receipt' }),
|
|
110
|
+
tslib_1.__metadata("design:type", String)
|
|
111
|
+
], ComplianceCase.prototype, "investigationDueOn", void 0);
|
|
112
|
+
tslib_1.__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
114
|
+
(0, type_graphql_1.Field)({ description: 'Every case handler was among those reported against when it came in - nobody inside the company investigates it' }),
|
|
115
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
116
|
+
], ComplianceCase.prototype, "noInsideHandler", void 0);
|
|
117
|
+
tslib_1.__decorate([
|
|
118
|
+
(0, typeorm_1.ManyToMany)(type => auth_base_1.User),
|
|
119
|
+
(0, typeorm_1.JoinTable)({ name: 'compliance_cases_investigators' }),
|
|
120
|
+
(0, type_graphql_1.Field)(type => [auth_base_1.User], { nullable: true, description: 'Who investigates it - set by the handler for this case, an outside labour attorney among them' }),
|
|
121
|
+
tslib_1.__metadata("design:type", Array)
|
|
122
|
+
], ComplianceCase.prototype, "investigators", void 0);
|
|
123
|
+
tslib_1.__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
125
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'YYYY-MM-DD the investigation started' }),
|
|
126
|
+
tslib_1.__metadata("design:type", String)
|
|
127
|
+
], ComplianceCase.prototype, "investigationStartedOn", void 0);
|
|
128
|
+
tslib_1.__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
130
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'What was done to protect the victim - leave, a move of place, keeping apart' }),
|
|
131
|
+
tslib_1.__metadata("design:type", String)
|
|
132
|
+
], ComplianceCase.prototype, "protectionMeasures", void 0);
|
|
133
|
+
tslib_1.__decorate([
|
|
134
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
135
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'What the victim said of the protection measures' }),
|
|
136
|
+
tslib_1.__metadata("design:type", String)
|
|
137
|
+
], ComplianceCase.prototype, "victimOpinion", void 0);
|
|
138
|
+
tslib_1.__decorate([
|
|
139
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
140
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'What the investigation found' }),
|
|
141
|
+
tslib_1.__metadata("design:type", String)
|
|
142
|
+
], ComplianceCase.prototype, "finding", void 0);
|
|
143
|
+
tslib_1.__decorate([
|
|
144
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
145
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'What was done to those reported against' }),
|
|
146
|
+
tslib_1.__metadata("design:type", String)
|
|
147
|
+
], ComplianceCase.prototype, "actionOnAccused", void 0);
|
|
148
|
+
tslib_1.__decorate([
|
|
149
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
150
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The result as told to the reporter and the victim' }),
|
|
151
|
+
tslib_1.__metadata("design:type", String)
|
|
152
|
+
], ComplianceCase.prototype, "resultNotice", void 0);
|
|
153
|
+
tslib_1.__decorate([
|
|
154
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
155
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'YYYY-MM-DD the result was told' }),
|
|
156
|
+
tslib_1.__metadata("design:type", String)
|
|
157
|
+
], ComplianceCase.prototype, "resultToldOn", void 0);
|
|
158
|
+
tslib_1.__decorate([
|
|
159
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
160
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'YYYY-MM-DD it was closed' }),
|
|
161
|
+
tslib_1.__metadata("design:type", String)
|
|
162
|
+
], ComplianceCase.prototype, "closedOn", void 0);
|
|
163
|
+
tslib_1.__decorate([
|
|
164
|
+
(0, typeorm_1.Column)({ default: ComplianceCaseStatus.RECEIVED }),
|
|
165
|
+
(0, type_graphql_1.Field)(type => ComplianceCaseStatus),
|
|
166
|
+
tslib_1.__metadata("design:type", String)
|
|
167
|
+
], ComplianceCase.prototype, "status", void 0);
|
|
168
|
+
tslib_1.__decorate([
|
|
169
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
170
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
171
|
+
tslib_1.__metadata("design:type", Date)
|
|
172
|
+
], ComplianceCase.prototype, "createdAt", void 0);
|
|
173
|
+
tslib_1.__decorate([
|
|
174
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
175
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
176
|
+
tslib_1.__metadata("design:type", Date)
|
|
177
|
+
], ComplianceCase.prototype, "updatedAt", void 0);
|
|
178
|
+
tslib_1.__decorate([
|
|
179
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
180
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
181
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
182
|
+
], ComplianceCase.prototype, "creator", void 0);
|
|
183
|
+
tslib_1.__decorate([
|
|
184
|
+
(0, typeorm_1.RelationId)((row) => row.creator),
|
|
185
|
+
tslib_1.__metadata("design:type", String)
|
|
186
|
+
], ComplianceCase.prototype, "creatorId", void 0);
|
|
187
|
+
tslib_1.__decorate([
|
|
188
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
189
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
190
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
191
|
+
], ComplianceCase.prototype, "updater", void 0);
|
|
192
|
+
tslib_1.__decorate([
|
|
193
|
+
(0, typeorm_1.RelationId)((row) => row.updater),
|
|
194
|
+
tslib_1.__metadata("design:type", String)
|
|
195
|
+
], ComplianceCase.prototype, "updaterId", void 0);
|
|
196
|
+
exports.ComplianceCase = ComplianceCase = tslib_1.__decorate([
|
|
197
|
+
(0, typeorm_1.Entity)({ name: 'compliance_cases' }),
|
|
198
|
+
(0, typeorm_1.Index)('ix_compliance_case_0', (row) => [row.domain, row.receivedOn]),
|
|
199
|
+
(0, type_graphql_1.ObjectType)({ description: 'Entity for ComplianceCase - a report of workplace harassment or sexual harassment and its handling' })
|
|
200
|
+
], ComplianceCase);
|
|
201
|
+
/**
|
|
202
|
+
* 조사 기록 - one entry of a case's investigation: an interview, a statement, what was looked at. Written and never
|
|
203
|
+
* changed; a mistake is set right by the next entry. Read only by those who read the whole case.
|
|
204
|
+
*/
|
|
205
|
+
let ComplianceCaseEntry = class ComplianceCaseEntry {
|
|
206
|
+
};
|
|
207
|
+
exports.ComplianceCaseEntry = ComplianceCaseEntry;
|
|
208
|
+
tslib_1.__decorate([
|
|
209
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
210
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
211
|
+
tslib_1.__metadata("design:type", String)
|
|
212
|
+
], ComplianceCaseEntry.prototype, "id", void 0);
|
|
213
|
+
tslib_1.__decorate([
|
|
214
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
215
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain, { nullable: true }),
|
|
216
|
+
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
217
|
+
], ComplianceCaseEntry.prototype, "domain", void 0);
|
|
218
|
+
tslib_1.__decorate([
|
|
219
|
+
(0, typeorm_1.RelationId)((row) => row.domain),
|
|
220
|
+
tslib_1.__metadata("design:type", String)
|
|
221
|
+
], ComplianceCaseEntry.prototype, "domainId", void 0);
|
|
222
|
+
tslib_1.__decorate([
|
|
223
|
+
(0, typeorm_1.ManyToOne)(type => ComplianceCase),
|
|
224
|
+
tslib_1.__metadata("design:type", ComplianceCase)
|
|
225
|
+
], ComplianceCaseEntry.prototype, "complianceCase", void 0);
|
|
226
|
+
tslib_1.__decorate([
|
|
227
|
+
(0, typeorm_1.RelationId)((row) => row.complianceCase),
|
|
228
|
+
(0, type_graphql_1.Field)({ description: 'The case it is of' }),
|
|
229
|
+
tslib_1.__metadata("design:type", String)
|
|
230
|
+
], ComplianceCaseEntry.prototype, "complianceCaseId", void 0);
|
|
231
|
+
tslib_1.__decorate([
|
|
232
|
+
(0, typeorm_1.Column)(),
|
|
233
|
+
(0, type_graphql_1.Field)({ description: 'YYYY-MM-DD of what it records' }),
|
|
234
|
+
tslib_1.__metadata("design:type", String)
|
|
235
|
+
], ComplianceCaseEntry.prototype, "writtenOn", void 0);
|
|
236
|
+
tslib_1.__decorate([
|
|
237
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
238
|
+
(0, type_graphql_1.Field)({ description: 'What it records' }),
|
|
239
|
+
tslib_1.__metadata("design:type", String)
|
|
240
|
+
], ComplianceCaseEntry.prototype, "body", void 0);
|
|
241
|
+
tslib_1.__decorate([
|
|
242
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
243
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
244
|
+
tslib_1.__metadata("design:type", Date)
|
|
245
|
+
], ComplianceCaseEntry.prototype, "createdAt", void 0);
|
|
246
|
+
tslib_1.__decorate([
|
|
247
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
248
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
249
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
250
|
+
], ComplianceCaseEntry.prototype, "creator", void 0);
|
|
251
|
+
tslib_1.__decorate([
|
|
252
|
+
(0, typeorm_1.RelationId)((row) => row.creator),
|
|
253
|
+
tslib_1.__metadata("design:type", String)
|
|
254
|
+
], ComplianceCaseEntry.prototype, "creatorId", void 0);
|
|
255
|
+
exports.ComplianceCaseEntry = ComplianceCaseEntry = tslib_1.__decorate([
|
|
256
|
+
(0, typeorm_1.Entity)({ name: 'compliance_case_entries' }),
|
|
257
|
+
(0, typeorm_1.Index)('ix_compliance_case_entry_0', (row) => [row.domain, row.complianceCase]),
|
|
258
|
+
(0, type_graphql_1.ObjectType)({ description: 'Entity for ComplianceCaseEntry - one entry of the investigation record of a case' })
|
|
259
|
+
], ComplianceCaseEntry);
|
|
260
|
+
//# sourceMappingURL=compliance-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compliance-case.js","sourceRoot":"","sources":["../../../server/service/compliance-case/compliance-case.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAAyJ;AAEzJ,yDAAgD;AAChD,+DAAuD;AACvD,iDAA8C;AAE9C,yBAAyB;AACzB,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,sCAAsC;IACtC,+CAAyB,CAAA;IACzB,8BAA8B;IAC9B,6DAAuC,CAAA;AACzC,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAED,IAAA,+BAAgB,EAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,2CAA2C,EAAE,CAAC,CAAA;AAE9H,yFAAyF;AACzF,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,6CAAqB,CAAA;IACrB,uDAA+B,CAAA;IAC/B,8BAA8B;IAC9B,2CAAmB,CAAA;IACnB,yDAAyD;IACzD,qCAAa,CAAA;IACb,yCAAiB,CAAA;AACnB,CAAC,EARW,oBAAoB,oCAApB,oBAAoB,QAQ/B;AAED,IAAA,+BAAgB,EAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,WAAW,EAAE,gDAAgD,EAAE,CAAC,CAAA;AAEvI;;;;;GAKG;AAII,IAAM,cAAc,GAApB,MAAM,cAAc;CA4H1B,CAAA;AA5H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ObjectType, registerEnumType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, JoinTable, ManyToMany, ManyToOne, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Employee } from '@things-factory/organization'\nimport { Domain } from '@things-factory/shell'\n\n/** What was reported. */\nexport enum ComplianceCaseKind {\n /** 직장 내 괴롭힘 - 근로기준법 §76의2 · §76의3. */\n HARASSMENT = 'HARASSMENT',\n /** 직장 내 성희롱 - 남녀고용평등법 §14. */\n SEXUAL_HARASSMENT = 'SEXUAL_HARASSMENT'\n}\n\nregisterEnumType(ComplianceCaseKind, { name: 'ComplianceCaseKind', description: 'workplace harassment or sexual harassment' })\n\n/** Where a case stands - read from what is written on it, kept for the list's filter. */\nexport enum ComplianceCaseStatus {\n RECEIVED = 'RECEIVED',\n INVESTIGATING = 'INVESTIGATING',\n /** The finding is written. */\n DECIDED = 'DECIDED',\n /** The result is told to the reporter and the victim. */\n TOLD = 'TOLD',\n CLOSED = 'CLOSED'\n}\n\nregisterEnumType(ComplianceCaseStatus, { name: 'ComplianceCaseStatus', description: 'received, investigating, decided, told, closed' })\n\n/**\n * 신고 사건 (ADR-0187 decision 21) - one report of workplace harassment or sexual harassment: who reported it, who it\n * happened to, who it is against, when and what; who investigates it, what the investigation found, how the victim was\n * protected and what was done to those reported against. Read only by the reporter, the case handlers and the case's\n * investigators - never by one reported against. Nothing of it goes into a notice, an AI read or a search.\n */\n@Entity({ name: 'compliance_cases' })\n@Index('ix_compliance_case_0', (row: ComplianceCase) => [row.domain, row.receivedOn])\n@ObjectType({ description: 'Entity for ComplianceCase - a report of workplace harassment or sexual harassment and its handling' })\nexport class ComplianceCase {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true })\n domain?: Domain\n\n @RelationId((row: ComplianceCase) => row.domain)\n domainId?: string\n\n @Column()\n @Field(type => ComplianceCaseKind)\n kind: ComplianceCaseKind\n\n @ManyToOne(type => Employee, { nullable: true })\n @Field(type => Employee, { nullable: true, description: 'The employee who reported it' })\n reporter?: Employee\n\n @RelationId((row: ComplianceCase) => row.reporter)\n reporterId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'The account of the reporter - the one who reads its progress' })\n reporterUser?: User\n\n @RelationId((row: ComplianceCase) => row.reporterUser)\n reporterUserId?: string\n\n @ManyToOne(type => Employee, { nullable: true })\n @Field(type => Employee, { nullable: true, description: 'The employee it happened to, when the reporter says' })\n victim?: Employee\n\n @RelationId((row: ComplianceCase) => row.victim)\n victimId?: string\n\n @ManyToMany(type => Employee)\n @JoinTable({ name: 'compliance_cases_accused' })\n @Field(type => [Employee], { nullable: true, description: 'The employees reported against' })\n accused?: Employee[]\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'YYYY-MM-DD it happened, when the reporter knows' })\n occurredOn?: string\n\n @Column({ type: 'text' })\n @Field({ description: 'What happened, in the reporter\\'s words' })\n description: string\n\n @Column()\n @Field({ description: 'YYYY-MM-DD it was received' })\n receivedOn: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'YYYY-MM-DD the investigation is to start by - the domain\\'s days from receipt' })\n investigationDueOn?: string\n\n @Column({ default: false })\n @Field({ description: 'Every case handler was among those reported against when it came in - nobody inside the company investigates it' })\n noInsideHandler: boolean\n\n @ManyToMany(type => User)\n @JoinTable({ name: 'compliance_cases_investigators' })\n @Field(type => [User], { nullable: true, description: 'Who investigates it - set by the handler for this case, an outside labour attorney among them' })\n investigators?: User[]\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'YYYY-MM-DD the investigation started' })\n investigationStartedOn?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'What was done to protect the victim - leave, a move of place, keeping apart' })\n protectionMeasures?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'What the victim said of the protection measures' })\n victimOpinion?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'What the investigation found' })\n finding?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'What was done to those reported against' })\n actionOnAccused?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'The result as told to the reporter and the victim' })\n resultNotice?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'YYYY-MM-DD the result was told' })\n resultToldOn?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'YYYY-MM-DD it was closed' })\n closedOn?: string\n\n @Column({ default: ComplianceCaseStatus.RECEIVED })\n @Field(type => ComplianceCaseStatus)\n status: ComplianceCaseStatus\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((row: ComplianceCase) => row.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((row: ComplianceCase) => row.updater)\n updaterId?: string\n}\n\n/**\n * 조사 기록 - one entry of a case's investigation: an interview, a statement, what was looked at. Written and never\n * changed; a mistake is set right by the next entry. Read only by those who read the whole case.\n */\n@Entity({ name: 'compliance_case_entries' })\n@Index('ix_compliance_case_entry_0', (row: ComplianceCaseEntry) => [row.domain, row.complianceCase])\n@ObjectType({ description: 'Entity for ComplianceCaseEntry - one entry of the investigation record of a case' })\nexport class ComplianceCaseEntry {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true })\n domain?: Domain\n\n @RelationId((row: ComplianceCaseEntry) => row.domain)\n domainId?: string\n\n @ManyToOne(type => ComplianceCase)\n complianceCase?: ComplianceCase\n\n @RelationId((row: ComplianceCaseEntry) => row.complianceCase)\n @Field({ description: 'The case it is of' })\n complianceCaseId?: string\n\n @Column()\n @Field({ description: 'YYYY-MM-DD of what it records' })\n writtenOn: string\n\n @Column({ type: 'text' })\n @Field({ description: 'What it records' })\n body: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((row: ComplianceCaseEntry) => row.creator)\n creatorId?: string\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComplianceCase, ComplianceCaseEntry } from './compliance-case';
|
|
2
|
+
import { ComplianceCaseMutation } from './compliance-case-mutation';
|
|
3
|
+
import { ComplianceCaseEntryQuery, ComplianceCaseQuery } from './compliance-case-query';
|
|
4
|
+
export declare const entities: (typeof ComplianceCase | typeof ComplianceCaseEntry)[];
|
|
5
|
+
export declare const resolvers: (typeof ComplianceCaseMutation | typeof ComplianceCaseQuery | typeof ComplianceCaseEntryQuery)[];
|
|
6
|
+
/** Only those who read a case open its files - the report's and the investigation's (attachment-base). */
|
|
7
|
+
export declare function registerComplianceCaseFiles(): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
exports.registerComplianceCaseFiles = registerComplianceCaseFiles;
|
|
5
|
+
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
6
|
+
const compliance_case_1 = require("./compliance-case");
|
|
7
|
+
const compliance_case_mutation_1 = require("./compliance-case-mutation");
|
|
8
|
+
const compliance_case_query_1 = require("./compliance-case-query");
|
|
9
|
+
const compliance_case_service_1 = require("./compliance-case-service");
|
|
10
|
+
exports.entities = [compliance_case_1.ComplianceCase, compliance_case_1.ComplianceCaseEntry];
|
|
11
|
+
exports.resolvers = [compliance_case_query_1.ComplianceCaseQuery, compliance_case_query_1.ComplianceCaseEntryQuery, compliance_case_mutation_1.ComplianceCaseMutation];
|
|
12
|
+
/** Only those who read a case open its files - the report's and the investigation's (attachment-base). */
|
|
13
|
+
function registerComplianceCaseFiles() {
|
|
14
|
+
(0, attachment_base_1.registerAttachmentReader)(compliance_case_service_1.CASE_REF_TYPE, compliance_case_service_1.mayReadCaseFile);
|
|
15
|
+
(0, attachment_base_1.registerAttachmentReader)(compliance_case_service_1.CASE_ENTRY_REF_TYPE, compliance_case_service_1.mayReadCaseFile);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/compliance-case/index.ts"],"names":[],"mappings":";;;AAWA,kEAGC;AAdD,qEAA0E;AAE1E,uDAAuE;AACvE,yEAAmE;AACnE,mEAAuF;AACvF,uEAA+F;AAElF,QAAA,QAAQ,GAAG,CAAC,gCAAc,EAAE,qCAAmB,CAAC,CAAA;AAChD,QAAA,SAAS,GAAG,CAAC,2CAAmB,EAAE,gDAAwB,EAAE,iDAAsB,CAAC,CAAA;AAEhG,0GAA0G;AAC1G,SAAgB,2BAA2B;IACzC,IAAA,0CAAwB,EAAC,uCAAa,EAAE,yCAAe,CAAC,CAAA;IACxD,IAAA,0CAAwB,EAAC,6CAAmB,EAAE,yCAAe,CAAC,CAAA;AAChE,CAAC","sourcesContent":["import { registerAttachmentReader } from '@things-factory/attachment-base'\n\nimport { ComplianceCase, ComplianceCaseEntry } from './compliance-case'\nimport { ComplianceCaseMutation } from './compliance-case-mutation'\nimport { ComplianceCaseEntryQuery, ComplianceCaseQuery } from './compliance-case-query'\nimport { CASE_ENTRY_REF_TYPE, CASE_REF_TYPE, mayReadCaseFile } from './compliance-case-service'\n\nexport const entities = [ComplianceCase, ComplianceCaseEntry]\nexport const resolvers = [ComplianceCaseQuery, ComplianceCaseEntryQuery, ComplianceCaseMutation]\n\n/** Only those who read a case open its files - the report's and the investigation's (attachment-base). */\nexport function registerComplianceCaseFiles(): void {\n registerAttachmentReader(CASE_REF_TYPE, mayReadCaseFile)\n registerAttachmentReader(CASE_ENTRY_REF_TYPE, mayReadCaseFile)\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FileUpload } from 'graphql-upload/GraphQLUpload.js';
|
|
2
|
+
import { Attachment } from '@things-factory/attachment-base';
|
|
3
|
+
import { Dispute, DisputeHearing } from './dispute';
|
|
4
|
+
import { DisputeHearingPatch, DisputePatch } from './dispute-type';
|
|
5
|
+
export declare class DisputeMutation {
|
|
6
|
+
updateMultipleDispute(patches: DisputePatch[], context: ResolverContext): Promise<Dispute[]>;
|
|
7
|
+
updateMultipleDisputeHearing(disputeId: string, patches: DisputeHearingPatch[], context: ResolverContext): Promise<DisputeHearing[]>;
|
|
8
|
+
attachDisputeFiles(id: string, files: FileUpload[], context: ResolverContext): Promise<Attachment[]>;
|
|
9
|
+
}
|