@things-factory/compliance 0.0.0-stage → 10.1.254
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 +35 -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 +610 -0
- package/translations/es.json +610 -0
- package/translations/ja.json +610 -0
- package/translations/ko.json +610 -0
- package/translations/ms.json +610 -0
- package/translations/zh.json +610 -0
- package/README.md +0 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const USE_KINDS: string[];
|
|
2
|
+
export declare const USE_STATUSES: string[];
|
|
3
|
+
export declare const SEAL_KINDS: string[];
|
|
4
|
+
export declare const REGULATION_KINDS: string[];
|
|
5
|
+
export declare const PROCEDURE_KINDS: string[];
|
|
6
|
+
export declare const PROCEDURE_METHODS: Record<string, string[]>;
|
|
7
|
+
/** The word for a code of a set - `text.seal-use-kind-stamp`. */
|
|
8
|
+
export declare const wordOf: (set: string, code?: string | null) => string;
|
|
9
|
+
/** A grid's select options for a set. */
|
|
10
|
+
export declare const optionsOf: (set: string, codes: string[]) => {
|
|
11
|
+
value: string;
|
|
12
|
+
display: string;
|
|
13
|
+
}[];
|
|
14
|
+
/** What a failed call says, in the server's words. */
|
|
15
|
+
export declare const failureOf: (error: any) => any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { i18next } from '@operato/i18n';
|
|
2
|
+
/* What the seal use codes read as, in the reader's words. */
|
|
3
|
+
export const USE_KINDS = ['STAMP', 'TAKE_OUT', 'CERTIFICATE'];
|
|
4
|
+
export const USE_STATUSES = ['RECORDED', 'SUBMITTED', 'APPROVED', 'REJECTED', 'WITHDRAWN'];
|
|
5
|
+
export const SEAL_KINDS = ['CORPORATE', 'USE', 'OFFICIAL'];
|
|
6
|
+
export const REGULATION_KINDS = ['WORK_RULES', 'WORK_RULES_ANNEX', 'PRIVACY_POLICY', 'PRIVACY_PLAN', 'OTHER'];
|
|
7
|
+
export const PROCEDURE_KINDS = ['OPINION', 'CONSENT', 'FILING'];
|
|
8
|
+
export const PROCEDURE_METHODS = {
|
|
9
|
+
OPINION: ['MAJORITY_UNION', 'WORKERS_MEETING', 'SIGNATURES'],
|
|
10
|
+
CONSENT: ['MAJORITY_UNION', 'WORKERS_MEETING', 'SIGNATURES'],
|
|
11
|
+
FILING: ['ONLINE', 'VISIT', 'MAIL']
|
|
12
|
+
};
|
|
13
|
+
const kebab = (code) => code.toLowerCase().replace(/_/g, '-');
|
|
14
|
+
/** The word for a code of a set - `text.seal-use-kind-stamp`. */
|
|
15
|
+
export const wordOf = (set, code) => (code ? i18next.t(`text.${set}-${kebab(code)}`) : '');
|
|
16
|
+
/** A grid's select options for a set. */
|
|
17
|
+
export const optionsOf = (set, codes) => codes.map(value => ({ value, display: wordOf(set, value) }));
|
|
18
|
+
/** What a failed call says, in the server's words. */
|
|
19
|
+
export const failureOf = (error) => error?.graphQLErrors?.[0]?.message ?? error?.errors?.[0]?.message ?? error?.message ?? String(error);
|
|
20
|
+
//# sourceMappingURL=words.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"words.js","sourceRoot":"","sources":["../client/words.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,6DAA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,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAA;AAEvH,sDAAsD;AACtD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,IAAI,KAAK,EAAE,OAAO,IAAI,MAAM,CAAC,KAAK,CAAC,CAAA","sourcesContent":["import { i18next } from '@operato/i18n'\n\n/* What the seal use codes read as, in the reader's words. */\nexport const USE_KINDS = ['STAMP', 'TAKE_OUT', 'CERTIFICATE']\nexport const USE_STATUSES = ['RECORDED', 'SUBMITTED', 'APPROVED', 'REJECTED', 'WITHDRAWN']\nexport const SEAL_KINDS = ['CORPORATE', 'USE', 'OFFICIAL']\nexport const REGULATION_KINDS = ['WORK_RULES', 'WORK_RULES_ANNEX', 'PRIVACY_POLICY', 'PRIVACY_PLAN', 'OTHER']\nexport const PROCEDURE_KINDS = ['OPINION', 'CONSENT', 'FILING']\nexport const PROCEDURE_METHODS: Record<string, string[]> = {\n OPINION: ['MAJORITY_UNION', 'WORKERS_MEETING', 'SIGNATURES'],\n CONSENT: ['MAJORITY_UNION', 'WORKERS_MEETING', 'SIGNATURES'],\n FILING: ['ONLINE', 'VISIT', 'MAIL']\n}\n\nconst kebab = (code: string) => code.toLowerCase().replace(/_/g, '-')\n/** The word for a code of a set - `text.seal-use-kind-stamp`. */\nexport const wordOf = (set: string, code?: string | null) => (code ? i18next.t(`text.${set}-${kebab(code)}`) : '')\n/** A grid's select options for a set. */\nexport const optionsOf = (set: string, codes: string[]) => codes.map(value => ({ value, display: wordOf(set, value) }))\n\n/** What a failed call says, in the server's words. */\nexport const failureOf = (error: any) => error?.graphQLErrors?.[0]?.message ?? error?.errors?.[0]?.message ?? error?.message ?? String(error)\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './seal-use-activity-names';
|
|
2
|
+
export { SEAL_USE_ACTIVITIES } from './seal-use-activity';
|
|
3
|
+
export * from './legal-todo-activity-names';
|
|
4
|
+
export { LEGAL_TODO_ACTIVITIES } from './legal-todo-activity';
|
|
5
|
+
export * from './regulation-activity-names';
|
|
6
|
+
export { REGULATION_ACTIVITIES } from './regulation-activity';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REGULATION_ACTIVITIES = exports.LEGAL_TODO_ACTIVITIES = exports.SEAL_USE_ACTIVITIES = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const worklist_1 = require("@things-factory/worklist");
|
|
6
|
+
const legal_todo_activity_1 = require("./legal-todo-activity");
|
|
7
|
+
const regulation_activity_1 = require("./regulation-activity");
|
|
8
|
+
const seal_use_activity_1 = require("./seal-use-activity");
|
|
9
|
+
tslib_1.__exportStar(require("./seal-use-activity-names"), exports);
|
|
10
|
+
var seal_use_activity_2 = require("./seal-use-activity");
|
|
11
|
+
Object.defineProperty(exports, "SEAL_USE_ACTIVITIES", { enumerable: true, get: function () { return seal_use_activity_2.SEAL_USE_ACTIVITIES; } });
|
|
12
|
+
tslib_1.__exportStar(require("./legal-todo-activity-names"), exports);
|
|
13
|
+
var legal_todo_activity_2 = require("./legal-todo-activity");
|
|
14
|
+
Object.defineProperty(exports, "LEGAL_TODO_ACTIVITIES", { enumerable: true, get: function () { return legal_todo_activity_2.LEGAL_TODO_ACTIVITIES; } });
|
|
15
|
+
tslib_1.__exportStar(require("./regulation-activity-names"), exports);
|
|
16
|
+
var regulation_activity_2 = require("./regulation-activity");
|
|
17
|
+
Object.defineProperty(exports, "REGULATION_ACTIVITIES", { enumerable: true, get: function () { return regulation_activity_2.REGULATION_ACTIVITIES; } });
|
|
18
|
+
/*
|
|
19
|
+
* **Importing this file registers the approval template** - a bootstrap hook would be too late for worklist to find the
|
|
20
|
+
* callback. Which domains have it is the application's call: it installs `SEAL_USE_ACTIVITIES`.
|
|
21
|
+
*/
|
|
22
|
+
legal_todo_activity_1.LEGAL_TODO_ACTIVITIES.forEach(template => worklist_1.ActivityInstallations.installActivityTemplate(template));
|
|
23
|
+
seal_use_activity_1.SEAL_USE_ACTIVITIES.forEach(template => worklist_1.ActivityInstallations.installActivityTemplate(template));
|
|
24
|
+
regulation_activity_1.REGULATION_ACTIVITIES.forEach(template => worklist_1.ActivityInstallations.installActivityTemplate(template));
|
|
25
|
+
/* Using the corporate seal is what the approval decides, so with no approver named it is refused (ADR-0077, ADR-0188). */
|
|
26
|
+
(0, worklist_1.registerWorkDoors)({
|
|
27
|
+
module: 'compliance',
|
|
28
|
+
doors: seal_use_activity_1.SEAL_USE_ACTIVITIES.map(one => ({ name: one.name, kind: 'approval', whenNoLine: 'refuse', because: 'approval-is-the-act' }))
|
|
29
|
+
});
|
|
30
|
+
/* Adopting a version where nobody approves adopts it, and the worklist writes down it ran without a line (ADR-0187 decision 5). */
|
|
31
|
+
(0, worklist_1.registerWorkDoors)({
|
|
32
|
+
module: 'compliance',
|
|
33
|
+
doors: regulation_activity_1.REGULATION_ACTIVITIES.map(one => ({ name: one.name, kind: 'approval', whenNoLine: 'run' }))
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/activities/index.ts"],"names":[],"mappings":";;;;AAAA,uDAAmF;AAEnF,+DAA6D;AAC7D,+DAA6D;AAC7D,2DAAyD;AAEzD,oEAAyC;AACzC,yDAAyD;AAAhD,wHAAA,mBAAmB,OAAA;AAC5B,sEAA2C;AAC3C,6DAA6D;AAApD,4HAAA,qBAAqB,OAAA;AAC9B,sEAA2C;AAC3C,6DAA6D;AAApD,4HAAA,qBAAqB,OAAA;AAE9B;;;GAGG;AACH,2CAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,gCAAqB,CAAC,uBAAuB,CAAC,QAAe,CAAC,CAAC,CAAA;AACzG,uCAAmB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,gCAAqB,CAAC,uBAAuB,CAAC,QAAe,CAAC,CAAC,CAAA;AACvG,2CAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,gCAAqB,CAAC,uBAAuB,CAAC,QAAe,CAAC,CAAC,CAAA;AAEzG,0HAA0H;AAC1H,IAAA,4BAAiB,EAAC;IAChB,MAAM,EAAE,YAAY;IACpB,KAAK,EAAE,uCAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,UAAmB,EAAE,UAAU,EAAE,QAAiB,EAAE,OAAO,EAAE,qBAA8B,EAAE,CAAC,CAAC;CAC/J,CAAC,CAAA;AAEF,mIAAmI;AACnI,IAAA,4BAAiB,EAAC;IAChB,MAAM,EAAE,YAAY;IACpB,KAAK,EAAE,2CAAqB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,UAAmB,EAAE,UAAU,EAAE,KAAc,EAAE,CAAC,CAAC;CACrH,CAAC,CAAA","sourcesContent":["import { ActivityInstallations, registerWorkDoors } from '@things-factory/worklist'\n\nimport { LEGAL_TODO_ACTIVITIES } from './legal-todo-activity'\nimport { REGULATION_ACTIVITIES } from './regulation-activity'\nimport { SEAL_USE_ACTIVITIES } from './seal-use-activity'\n\nexport * from './seal-use-activity-names'\nexport { SEAL_USE_ACTIVITIES } from './seal-use-activity'\nexport * from './legal-todo-activity-names'\nexport { LEGAL_TODO_ACTIVITIES } from './legal-todo-activity'\nexport * from './regulation-activity-names'\nexport { REGULATION_ACTIVITIES } from './regulation-activity'\n\n/*\n * **Importing this file registers the approval template** - a bootstrap hook would be too late for worklist to find the\n * callback. Which domains have it is the application's call: it installs `SEAL_USE_ACTIVITIES`.\n */\nLEGAL_TODO_ACTIVITIES.forEach(template => ActivityInstallations.installActivityTemplate(template as any))\nSEAL_USE_ACTIVITIES.forEach(template => ActivityInstallations.installActivityTemplate(template as any))\nREGULATION_ACTIVITIES.forEach(template => ActivityInstallations.installActivityTemplate(template as any))\n\n/* Using the corporate seal is what the approval decides, so with no approver named it is refused (ADR-0077, ADR-0188). */\nregisterWorkDoors({\n module: 'compliance',\n doors: SEAL_USE_ACTIVITIES.map(one => ({ name: one.name, kind: 'approval' as const, whenNoLine: 'refuse' as const, because: 'approval-is-the-act' as const }))\n})\n\n/* Adopting a version where nobody approves adopts it, and the worklist writes down it ran without a line (ADR-0187 decision 5). */\nregisterWorkDoors({\n module: 'compliance',\n doors: REGULATION_ACTIVITIES.map(one => ({ name: one.name, kind: 'approval' as const, whenNoLine: 'run' as const }))\n})\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LEGAL_TODO_ACTIVITY = "Compliance Legal To-Do";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legal-todo-activity-names.js","sourceRoot":"","sources":["../../server/activities/legal-todo-activity-names.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,wBAAwB,CAAA","sourcesContent":["export const LEGAL_TODO_ACTIVITY = 'Compliance Legal To-Do'\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const LEGAL_TODO_ACTIVITIES: {
|
|
2
|
+
name: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description: string;
|
|
5
|
+
guide: string[];
|
|
6
|
+
release: string;
|
|
7
|
+
provider: string;
|
|
8
|
+
category: string;
|
|
9
|
+
activityType: string;
|
|
10
|
+
priority: number;
|
|
11
|
+
startingType: string;
|
|
12
|
+
multiple: string;
|
|
13
|
+
uiType: string;
|
|
14
|
+
uiSource: string;
|
|
15
|
+
searchKeys: {
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
inputKey: string;
|
|
19
|
+
tKey: string;
|
|
20
|
+
}[];
|
|
21
|
+
viewType: string;
|
|
22
|
+
viewSource: string;
|
|
23
|
+
model: {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
tag: string;
|
|
27
|
+
hidden: boolean;
|
|
28
|
+
mandatory: boolean;
|
|
29
|
+
inout: string;
|
|
30
|
+
type: string;
|
|
31
|
+
options: {};
|
|
32
|
+
unit: any;
|
|
33
|
+
quantifier: number[];
|
|
34
|
+
spec: {};
|
|
35
|
+
}[];
|
|
36
|
+
standardTime: number;
|
|
37
|
+
}[];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LEGAL_TODO_ACTIVITIES = void 0;
|
|
4
|
+
const legal_todo_activity_names_1 = require("./legal-todo-activity-names");
|
|
5
|
+
/*
|
|
6
|
+
* 법무 할 일 (ADR-0187 decisions 18, 23 · ADR-0147 decision 9) - not an approval: one person is asked to do one thing the
|
|
7
|
+
* law sets a day for - finish a training, file a change of the research centre - and it shows what and by when, with
|
|
8
|
+
* the way to the record (`compliance-todo`). Recording what was asked closes it; nothing is answered on the to-do.
|
|
9
|
+
*/
|
|
10
|
+
exports.LEGAL_TODO_ACTIVITIES = [
|
|
11
|
+
{
|
|
12
|
+
name: legal_todo_activity_names_1.LEGAL_TODO_ACTIVITY,
|
|
13
|
+
label: 'legal to-do',
|
|
14
|
+
description: 'A thing the law asks of the company or a person by a day',
|
|
15
|
+
guide: [
|
|
16
|
+
'the compliance records hand it out - a training not finished this year, a change of the research centre to file.',
|
|
17
|
+
'it opens the record it is about; recording what was asked there closes it.',
|
|
18
|
+
'a to-do past its day is reminded as every overdue to-do is.'
|
|
19
|
+
],
|
|
20
|
+
release: '1.0.0',
|
|
21
|
+
provider: 'hatiolab.com',
|
|
22
|
+
category: 'compliance',
|
|
23
|
+
activityType: 'user',
|
|
24
|
+
priority: 1,
|
|
25
|
+
startingType: 'issue',
|
|
26
|
+
multiple: 'single',
|
|
27
|
+
uiType: 'custom-element',
|
|
28
|
+
uiSource: 'compliance-todo',
|
|
29
|
+
searchKeys: [{ name: 'headline', description: 'What is asked', inputKey: 'headline', tKey: 'field.subject' }],
|
|
30
|
+
viewType: '',
|
|
31
|
+
viewSource: '',
|
|
32
|
+
model: [
|
|
33
|
+
{ name: 'subjectKind', description: 'The kind of record it is about', tag: 'subjectKind', hidden: true, mandatory: true, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} },
|
|
34
|
+
{ name: 'subjectId', description: 'The record it is about', tag: 'subjectId', hidden: true, mandatory: true, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} },
|
|
35
|
+
{ name: 'headline', description: 'What is asked, by when', tag: 'headline', hidden: true, mandatory: true, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} },
|
|
36
|
+
{ name: 'address', description: 'The screen that records it', tag: 'address', hidden: true, mandatory: true, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} }
|
|
37
|
+
],
|
|
38
|
+
standardTime: 7 * 24 * 60 * 60
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
//# sourceMappingURL=legal-todo-activity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legal-todo-activity.js","sourceRoot":"","sources":["../../server/activities/legal-todo-activity.ts"],"names":[],"mappings":";;;AAAA,2EAAiE;AAEjE;;;;GAIG;AACU,QAAA,qBAAqB,GAAG;IACnC;QACE,IAAI,EAAE,+CAAmB;QACzB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,0DAA0D;QACvE,KAAK,EAAE;YACL,kHAAkH;YAClH,4EAA4E;YAC5E,6DAA6D;SAC9D;QACD,OAAO,EAAE,OAAO;QAChB,QA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,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;YAC5L,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,4BAA4B,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;SAC/L;QACD,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;KAC/B;CACF,CAAA","sourcesContent":["import { LEGAL_TODO_ACTIVITY } from './legal-todo-activity-names'\n\n/*\n * 법무 할 일 (ADR-0187 decisions 18, 23 · ADR-0147 decision 9) - not an approval: one person is asked to do one thing the\n * law sets a day for - finish a training, file a change of the research centre - and it shows what and by when, with\n * the way to the record (`compliance-todo`). Recording what was asked closes it; nothing is answered on the to-do.\n */\nexport const LEGAL_TODO_ACTIVITIES = [\n {\n name: LEGAL_TODO_ACTIVITY,\n label: 'legal to-do',\n description: 'A thing the law asks of the company or a person by a day',\n guide: [\n 'the compliance records hand it out - a training not finished this year, a change of the research centre to file.',\n 'it opens the record it is about; recording what was asked there closes it.',\n 'a to-do past its day is reminded as every overdue to-do is.'\n ],\n release: '1.0.0',\n provider: 'hatiolab.com',\n category: 'compliance',\n activityType: 'user',\n priority: 1,\n startingType: 'issue',\n multiple: 'single',\n uiType: 'custom-element',\n uiSource: 'compliance-todo',\n searchKeys: [{ name: 'headline', description: 'What is asked', inputKey: 'headline', tKey: 'field.subject' }],\n viewType: '',\n viewSource: '',\n model: [\n { name: 'subjectKind', description: 'The kind of record it is about', tag: 'subjectKind', hidden: true, mandatory: true, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} },\n { name: 'subjectId', description: 'The record it is about', tag: 'subjectId', hidden: true, mandatory: true, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} },\n { name: 'headline', description: 'What is asked, by when', tag: 'headline', hidden: true, mandatory: true, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} },\n { name: 'address', description: 'The screen that records it', tag: 'address', hidden: true, mandatory: true, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} }\n ],\n standardTime: 7 * 24 * 60 * 60\n }\n]\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const REGULATION_ADOPT_ACTIVITY = "Compliance Regulation Adopt";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regulation-activity-names.js","sourceRoot":"","sources":["../../server/activities/regulation-activity-names.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG,6BAA6B,CAAA","sourcesContent":["export const REGULATION_ADOPT_ACTIVITY = 'Compliance Regulation Adopt'\n"]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** 규정 채택 - a version of a company rule adopted, to take effect on its day (ADR-0187 decision 5). */
|
|
2
|
+
export declare const REGULATION_ACTIVITIES: {
|
|
3
|
+
name: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description: string;
|
|
6
|
+
guide: string[];
|
|
7
|
+
release: string;
|
|
8
|
+
provider: string;
|
|
9
|
+
category: string;
|
|
10
|
+
activityType: string;
|
|
11
|
+
priority: number;
|
|
12
|
+
startingType: string;
|
|
13
|
+
multiple: string;
|
|
14
|
+
viewType: string;
|
|
15
|
+
viewSource: string;
|
|
16
|
+
searchKeys: {
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
inputKey: string;
|
|
20
|
+
tKey: string;
|
|
21
|
+
}[];
|
|
22
|
+
decisionKeys: ({
|
|
23
|
+
role: string;
|
|
24
|
+
inputPath: string;
|
|
25
|
+
name: string;
|
|
26
|
+
tKey?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
role: string;
|
|
29
|
+
inputPath: string;
|
|
30
|
+
tKey: string;
|
|
31
|
+
name: string;
|
|
32
|
+
})[];
|
|
33
|
+
model: {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
tag: string;
|
|
37
|
+
hidden: boolean;
|
|
38
|
+
mandatory: boolean;
|
|
39
|
+
inout: string;
|
|
40
|
+
type: string;
|
|
41
|
+
options: {};
|
|
42
|
+
unit: any;
|
|
43
|
+
quantifier: number[];
|
|
44
|
+
spec: {};
|
|
45
|
+
}[];
|
|
46
|
+
standardTime: number;
|
|
47
|
+
callback: (instance: any, addendum: any, context: any) => Promise<void>;
|
|
48
|
+
}[];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REGULATION_ACTIVITIES = void 0;
|
|
4
|
+
const shell_1 = require("@things-factory/shell");
|
|
5
|
+
const regulation_service_1 = require("../service/regulation/regulation-service");
|
|
6
|
+
const regulation_activity_names_1 = require("./regulation-activity-names");
|
|
7
|
+
const MODEL = [
|
|
8
|
+
{ name: 'versionId', description: 'The version this approval adopts', tag: 'versionId', hidden: true, mandatory: true, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} },
|
|
9
|
+
{ name: 'regulation', description: 'The rule', tag: 'regulation', hidden: true, mandatory: false, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} }
|
|
10
|
+
];
|
|
11
|
+
/** 규정 채택 - a version of a company rule adopted, to take effect on its day (ADR-0187 decision 5). */
|
|
12
|
+
exports.REGULATION_ACTIVITIES = [
|
|
13
|
+
{
|
|
14
|
+
name: regulation_activity_names_1.REGULATION_ADOPT_ACTIVITY,
|
|
15
|
+
label: 'regulation adoption',
|
|
16
|
+
description: 'Approval of adopting a version of a company rule',
|
|
17
|
+
guide: [
|
|
18
|
+
'a version of a company rule - work rules, an annex, the privacy policy - is adopted to take effect on its day.',
|
|
19
|
+
'the approver reads its text, what changed of the version before, and the procedure the law asks with its papers.',
|
|
20
|
+
'approving adopts it; an approval that ends after its effective day leaves it unadopted, to be put up again with a new day.',
|
|
21
|
+
'with no approver named for this domain the version is adopted as the work door says.'
|
|
22
|
+
],
|
|
23
|
+
release: '1.0.0',
|
|
24
|
+
provider: 'hatiolab.com',
|
|
25
|
+
category: 'compliance',
|
|
26
|
+
activityType: 'user',
|
|
27
|
+
priority: 1,
|
|
28
|
+
startingType: 'post',
|
|
29
|
+
multiple: 'single',
|
|
30
|
+
viewType: '',
|
|
31
|
+
viewSource: '',
|
|
32
|
+
searchKeys: [{ name: 'regulation', description: 'The rule', inputKey: 'regulation', tKey: 'field.name' }],
|
|
33
|
+
decisionKeys: [
|
|
34
|
+
{ role: 'headline', inputPath: 'headline', name: 'which rule, which version, from when' },
|
|
35
|
+
{ role: 'subject', inputPath: 'regulation', tKey: 'field.name', name: 'the rule' },
|
|
36
|
+
{ role: 'reason', inputPath: 'reason', name: 'what changed and the procedure taken' },
|
|
37
|
+
{ role: 'consequence', inputPath: 'consequence', name: 'what approving does' }
|
|
38
|
+
],
|
|
39
|
+
model: MODEL,
|
|
40
|
+
standardTime: 3 * 24 * 60 * 60,
|
|
41
|
+
/* Runs inside worklist's mutation, where no resolver's `SpeakRefusals` reaches. */
|
|
42
|
+
callback: (0, shell_1.speaksRefusals)(async (instance, addendum, context) => {
|
|
43
|
+
await (0, regulation_service_1.decideRegulationVersion)(instance, (addendum?.causedBy ?? []), context);
|
|
44
|
+
})
|
|
45
|
+
}
|
|
46
|
+
];
|
|
47
|
+
//# sourceMappingURL=regulation-activity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regulation-activity.js","sourceRoot":"","sources":["../../server/activities/regulation-activity.ts"],"names":[],"mappings":";;;AAAA,iDAAsD;AAGtD,iFAAkF;AAClF,2EAAuE;AAEvE,MAAM,KAAK,GAAG;IACZ,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,kCAAkC,EAAE,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AE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE;YAClF,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,sCAAsC,EAAE;YACrF,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,qBAAqB,EAAE;SAC/E;QACD,KAAK,EAAE,KAAK;QACZ,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;QAC9B,mFAAmF;QACnF,QAAQ,EAAE,IAAA,sBAAc,EAAC,KAAK,EAAE,QAA0B,EAAE,QAA6C,EAAE,OAAwB,EAAE,EAAE;YACrI,MAAM,IAAA,4CAAuB,EAAC,QAAe,EAAE,CAAC,QAAQ,EAAE,QAAQ,IAAI,EAAE,CAAQ,EAAE,OAAO,CAAC,CAAA;QAC5F,CAAC,CAAC;KACH;CACF,CAAA","sourcesContent":["import { speaksRefusals } from '@things-factory/shell'\nimport { ActivityInstance, UpdateActivityInstanceStateAddendum } from '@things-factory/worklist'\n\nimport { decideRegulationVersion } from '../service/regulation/regulation-service'\nimport { REGULATION_ADOPT_ACTIVITY } from './regulation-activity-names'\n\nconst MODEL = [\n { name: 'versionId', description: 'The version this approval adopts', tag: 'versionId', hidden: true, mandatory: true, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} },\n { name: 'regulation', description: 'The rule', tag: 'regulation', hidden: true, mandatory: false, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} }\n]\n\n/** 규정 채택 - a version of a company rule adopted, to take effect on its day (ADR-0187 decision 5). */\nexport const REGULATION_ACTIVITIES = [\n {\n name: REGULATION_ADOPT_ACTIVITY,\n label: 'regulation adoption',\n description: 'Approval of adopting a version of a company rule',\n guide: [\n 'a version of a company rule - work rules, an annex, the privacy policy - is adopted to take effect on its day.',\n 'the approver reads its text, what changed of the version before, and the procedure the law asks with its papers.',\n 'approving adopts it; an approval that ends after its effective day leaves it unadopted, to be put up again with a new day.',\n 'with no approver named for this domain the version is adopted as the work door says.'\n ],\n release: '1.0.0',\n provider: 'hatiolab.com',\n category: 'compliance',\n activityType: 'user',\n priority: 1,\n startingType: 'post',\n multiple: 'single',\n viewType: '',\n viewSource: '',\n searchKeys: [{ name: 'regulation', description: 'The rule', inputKey: 'regulation', tKey: 'field.name' }],\n decisionKeys: [\n { role: 'headline', inputPath: 'headline', name: 'which rule, which version, from when' },\n { role: 'subject', inputPath: 'regulation', tKey: 'field.name', name: 'the rule' },\n { role: 'reason', inputPath: 'reason', name: 'what changed and the procedure taken' },\n { role: 'consequence', inputPath: 'consequence', name: 'what approving does' }\n ],\n model: MODEL,\n standardTime: 3 * 24 * 60 * 60,\n /* Runs inside worklist's mutation, where no resolver's `SpeakRefusals` reaches. */\n callback: speaksRefusals(async (instance: ActivityInstance, addendum: UpdateActivityInstanceStateAddendum, context: ResolverContext) => {\n await decideRegulationVersion(instance as any, (addendum?.causedBy ?? []) as any, context)\n })\n }\n]\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SEAL_USE_ACTIVITY = void 0;
|
|
4
|
+
/** The approval form of a seal's use - worklist finds its callback by this name, and the work door is declared under it. */
|
|
5
|
+
exports.SEAL_USE_ACTIVITY = 'Compliance Seal Use';
|
|
6
|
+
//# sourceMappingURL=seal-use-activity-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seal-use-activity-names.js","sourceRoot":"","sources":["../../server/activities/seal-use-activity-names.ts"],"names":[],"mappings":";;;AAAA,4HAA4H;AAC/G,QAAA,iBAAiB,GAAG,qBAAqB,CAAA","sourcesContent":["/** The approval form of a seal's use - worklist finds its callback by this name, and the work door is declared under it. */\nexport const SEAL_USE_ACTIVITY = 'Compliance Seal Use'\n"]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** 인감 사용 - the corporate seal stamped, a seal taken out, or a certificate of the corporate seal issued (ADR-0188). */
|
|
2
|
+
export declare const SEAL_USE_ACTIVITIES: {
|
|
3
|
+
name: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description: string;
|
|
6
|
+
guide: string[];
|
|
7
|
+
release: string;
|
|
8
|
+
provider: string;
|
|
9
|
+
category: string;
|
|
10
|
+
activityType: string;
|
|
11
|
+
priority: number;
|
|
12
|
+
startingType: string;
|
|
13
|
+
multiple: string;
|
|
14
|
+
viewType: string;
|
|
15
|
+
viewSource: string;
|
|
16
|
+
searchKeys: {
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
inputKey: string;
|
|
20
|
+
tKey: string;
|
|
21
|
+
}[];
|
|
22
|
+
decisionKeys: ({
|
|
23
|
+
role: string;
|
|
24
|
+
inputPath: string;
|
|
25
|
+
name: string;
|
|
26
|
+
tKey?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
role: string;
|
|
29
|
+
inputPath: string;
|
|
30
|
+
tKey: string;
|
|
31
|
+
name: string;
|
|
32
|
+
})[];
|
|
33
|
+
model: {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
tag: string;
|
|
37
|
+
hidden: boolean;
|
|
38
|
+
mandatory: boolean;
|
|
39
|
+
inout: string;
|
|
40
|
+
type: string;
|
|
41
|
+
options: {};
|
|
42
|
+
unit: any;
|
|
43
|
+
quantifier: number[];
|
|
44
|
+
spec: {};
|
|
45
|
+
}[];
|
|
46
|
+
standardTime: number;
|
|
47
|
+
callback: (instance: any, addendum: any, context: any) => Promise<void>;
|
|
48
|
+
}[];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SEAL_USE_ACTIVITIES = void 0;
|
|
4
|
+
const shell_1 = require("@things-factory/shell");
|
|
5
|
+
const seal_use_service_1 = require("../service/seal-use/seal-use-service");
|
|
6
|
+
const seal_use_activity_names_1 = require("./seal-use-activity-names");
|
|
7
|
+
const MODEL = [
|
|
8
|
+
{ name: 'sealUseId', description: 'The use this approval decides', tag: 'sealUseId', hidden: true, mandatory: true, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} },
|
|
9
|
+
{ name: 'requester', description: 'Who asked for it', tag: 'requester', hidden: true, mandatory: false, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} }
|
|
10
|
+
];
|
|
11
|
+
/** 인감 사용 - the corporate seal stamped, a seal taken out, or a certificate of the corporate seal issued (ADR-0188). */
|
|
12
|
+
exports.SEAL_USE_ACTIVITIES = [
|
|
13
|
+
{
|
|
14
|
+
name: seal_use_activity_names_1.SEAL_USE_ACTIVITY,
|
|
15
|
+
label: 'seal use',
|
|
16
|
+
description: "Approval of using the company's corporate seal, or of taking a seal out",
|
|
17
|
+
guide: [
|
|
18
|
+
'the corporate seal is stamped on a paper, a seal goes out of the office, or a certificate of the corporate seal is issued.',
|
|
19
|
+
'approving lets it happen; a seal taken out is written back in when it returns.',
|
|
20
|
+
'a use seal or the official stamp stamped in the office needs no approval - it is written down.',
|
|
21
|
+
'with no approver named for this domain the use cannot be put up.'
|
|
22
|
+
],
|
|
23
|
+
release: '1.0.0',
|
|
24
|
+
provider: 'hatiolab.com',
|
|
25
|
+
category: 'compliance',
|
|
26
|
+
activityType: 'user',
|
|
27
|
+
priority: 1,
|
|
28
|
+
startingType: 'post',
|
|
29
|
+
multiple: 'single',
|
|
30
|
+
viewType: '',
|
|
31
|
+
viewSource: '',
|
|
32
|
+
searchKeys: [{ name: 'requester', description: 'Who asked for it', inputKey: 'requester', tKey: 'field.requester' }],
|
|
33
|
+
decisionKeys: [
|
|
34
|
+
{ role: 'headline', inputPath: 'headline', name: 'which seal, for what' },
|
|
35
|
+
{ role: 'subject', inputPath: 'requester', tKey: 'field.requester', name: 'who asks' },
|
|
36
|
+
{ role: 'reason', inputPath: 'reason', name: 'what the approver should know' },
|
|
37
|
+
{ role: 'consequence', inputPath: 'consequence', name: 'what approving does' }
|
|
38
|
+
],
|
|
39
|
+
model: MODEL,
|
|
40
|
+
standardTime: 24 * 60 * 60,
|
|
41
|
+
/* Runs inside worklist's mutation, where no resolver's `SpeakRefusals` reaches. */
|
|
42
|
+
callback: (0, shell_1.speaksRefusals)(async (instance, addendum, context) => {
|
|
43
|
+
await (0, seal_use_service_1.decideSealUse)(instance, (addendum?.causedBy ?? []), context);
|
|
44
|
+
})
|
|
45
|
+
}
|
|
46
|
+
];
|
|
47
|
+
//# sourceMappingURL=seal-use-activity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seal-use-activity.js","sourceRoot":"","sources":["../../server/activities/seal-use-activity.ts"],"names":[],"mappings":";;;AAAA,iDAAsD;AAGtD,2EAAoE;AACpE,uEAA6D;AAE7D,MAAM,KAAK,GAAG;IACZ,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,+BAA+B,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACrM,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;CAC1L,CAAA;AAED,sHAAsH;AACzG,QAAA,mBAAmB,GAAG;IAC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;KACH;CACF,CAAA","sourcesContent":["import { speaksRefusals } from '@things-factory/shell'\nimport { ActivityInstance, UpdateActivityInstanceStateAddendum } from '@things-factory/worklist'\n\nimport { decideSealUse } from '../service/seal-use/seal-use-service'\nimport { SEAL_USE_ACTIVITY } from './seal-use-activity-names'\n\nconst MODEL = [\n { name: 'sealUseId', description: 'The use this approval decides', tag: 'sealUseId', hidden: true, mandatory: true, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} },\n { name: 'requester', description: 'Who asked for it', tag: 'requester', hidden: true, mandatory: false, inout: 'in', type: 'string', options: {}, unit: null, quantifier: [1], spec: {} }\n]\n\n/** 인감 사용 - the corporate seal stamped, a seal taken out, or a certificate of the corporate seal issued (ADR-0188). */\nexport const SEAL_USE_ACTIVITIES = [\n {\n name: SEAL_USE_ACTIVITY,\n label: 'seal use',\n description: \"Approval of using the company's corporate seal, or of taking a seal out\",\n guide: [\n 'the corporate seal is stamped on a paper, a seal goes out of the office, or a certificate of the corporate seal is issued.',\n 'approving lets it happen; a seal taken out is written back in when it returns.',\n 'a use seal or the official stamp stamped in the office needs no approval - it is written down.',\n 'with no approver named for this domain the use cannot be put up.'\n ],\n release: '1.0.0',\n provider: 'hatiolab.com',\n category: 'compliance',\n activityType: 'user',\n priority: 1,\n startingType: 'post',\n multiple: 'single',\n viewType: '',\n viewSource: '',\n searchKeys: [{ name: 'requester', description: 'Who asked for it', inputKey: 'requester', tKey: 'field.requester' }],\n decisionKeys: [\n { role: 'headline', inputPath: 'headline', name: 'which seal, for what' },\n { role: 'subject', inputPath: 'requester', tKey: 'field.requester', name: 'who asks' },\n { role: 'reason', inputPath: 'reason', name: 'what the approver should know' },\n { role: 'consequence', inputPath: 'consequence', name: 'what approving does' }\n ],\n model: MODEL,\n standardTime: 24 * 60 * 60,\n /* Runs inside worklist's mutation, where no resolver's `SpeakRefusals` reaches. */\n callback: speaksRefusals(async (instance: ActivityInstance, addendum: UpdateActivityInstanceStateAddendum, context: ResolverContext) => {\n await decideSealUse(instance as any, (addendum?.causedBy ?? []) as any, context)\n })\n }\n]\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./service"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./activities"), exports);
|
|
6
|
+
const announcement_1 = require("@things-factory/announcement");
|
|
7
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
8
|
+
const role_tasks_1 = require("./role-tasks");
|
|
9
|
+
const training_register_1 = require("./service/training/training-register");
|
|
10
|
+
const compliance_case_1 = require("./service/compliance-case");
|
|
11
|
+
const attachment_readers_1 = require("./service/legal-record/attachment-readers");
|
|
12
|
+
const regulation_read_1 = require("./service/regulation/regulation-read");
|
|
13
|
+
const regulation_service_1 = require("./service/regulation/regulation-service");
|
|
14
|
+
for (const task of role_tasks_1.ROLE_TASKS)
|
|
15
|
+
(0, auth_base_1.registerRoleTask)(task);
|
|
16
|
+
(0, regulation_read_1.registerRegulationReaders)();
|
|
17
|
+
(0, announcement_1.registerAnnouncementTrigger)({ name: regulation_service_1.REGULATION_ADOPTED_TRIGGER, description: 'a version of a company rule adopted - its employees are told and asked to acknowledge they read it (ADR-0187 decision 6)' });
|
|
18
|
+
(0, training_register_1.registerTrainings)();
|
|
19
|
+
(0, compliance_case_1.registerComplianceCaseFiles)();
|
|
20
|
+
(0, attachment_readers_1.registerLegalRecordFiles)();
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,uDAA4B;AAE5B,+DAA0E;AAC1E,yDAA4D;AAE5D,6CAAyC;AACzC,4EAAwE;AACxE,+DAAuE;AACvE,kFAAoF;AACpF,0EAAgF;AAChF,gFAAoF;AAEpF,KAAK,MAAM,IAAI,IAAI,uBAAU;IAAE,IAAA,4BAAgB,EAAC,IAAI,CAAC,CAAA;AAErD,IAAA,2CAAyB,GAAE,CAAA;AAC3B,IAAA,0CAA2B,EAAC,EAAE,IAAI,EAAE,+CAA0B,EAAE,WAAW,EAAE,0HAA0H,EAAE,CAAC,CAAA;AAC1M,IAAA,qCAAiB,GAAE,CAAA;AACnB,IAAA,6CAA2B,GAAE,CAAA;AAC7B,IAAA,6CAAwB,GAAE,CAAA","sourcesContent":["export * from './service'\nexport * from './activities'\n\nimport { registerAnnouncementTrigger } from '@things-factory/announcement'\nimport { registerRoleTask } from '@things-factory/auth-base'\n\nimport { ROLE_TASKS } from './role-tasks'\nimport { registerTrainings } from './service/training/training-register'\nimport { registerComplianceCaseFiles } from './service/compliance-case'\nimport { registerLegalRecordFiles } from './service/legal-record/attachment-readers'\nimport { registerRegulationReaders } from './service/regulation/regulation-read'\nimport { REGULATION_ADOPTED_TRIGGER } from './service/regulation/regulation-service'\n\nfor (const task of ROLE_TASKS) registerRoleTask(task)\n\nregisterRegulationReaders()\nregisterAnnouncementTrigger({ name: REGULATION_ADOPTED_TRIGGER, description: 'a version of a company rule adopted - its employees are told and asked to acknowledge they read it (ADR-0187 decision 6)' })\nregisterTrainings()\nregisterComplianceCaseFiles()\nregisterLegalRecordFiles()\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* The work this module names, for the seats applications build (ADR-0139 decision 11, ADR-0187 decision 27).
|
|
4
|
+
*
|
|
5
|
+
* `compliance.managing` keeps the company's legal records (ADR-0187 decision 8): the use of its seals (ADR-0188 decision 2),
|
|
6
|
+
* the company rules and the records that follow.
|
|
7
|
+
*
|
|
8
|
+
* Data only - `server/index.ts` registers it - so an application's tests read it without starting the framework.
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.ROLE_TASKS = void 0;
|
|
12
|
+
exports.ROLE_TASKS = [
|
|
13
|
+
{
|
|
14
|
+
id: 'compliance.managing',
|
|
15
|
+
grants: [
|
|
16
|
+
{ category: 'seal-use', axes: ['query', 'mutation'] },
|
|
17
|
+
{ category: 'regulation', axes: ['query', 'mutation'] },
|
|
18
|
+
{ category: 'training', axes: ['query', 'mutation'] },
|
|
19
|
+
{ category: 'privacy-record', axes: ['query', 'mutation'] },
|
|
20
|
+
{ category: 'legal-registration', axes: ['query', 'mutation'] },
|
|
21
|
+
{ category: 'invention', axes: ['query', 'mutation'] },
|
|
22
|
+
{ category: 'dispute', axes: ['query', 'mutation'] }
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
/* 신고 사건 is apart: an application gives it to two seats, so one reported against is never the only handler (ADR-0187 decision 21). */
|
|
26
|
+
{ id: 'compliance.case-handling', grants: [{ category: 'compliance-case', axes: ['query', 'mutation'] }] }
|
|
27
|
+
];
|
|
28
|
+
//# sourceMappingURL=role-tasks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-tasks.js","sourceRoot":"","sources":["../server/role-tasks.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAIU,QAAA,UAAU,GAAe;IACpC;QACE,EAAE,EAAE,qBAAqB;QACzB,MAAM,EAAE;YACN,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YACrD,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YACvD,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YACrD,EAAE,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YAC3D,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YAC/D,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YACtD,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;SACrD;KACF;IACD,qIAAqI;IACrI,EAAE,EAAE,EAAE,0BAA0B,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE;CAC3G,CAAA","sourcesContent":["/*\n * The work this module names, for the seats applications build (ADR-0139 decision 11, ADR-0187 decision 27).\n *\n * `compliance.managing` keeps the company's legal records (ADR-0187 decision 8): the use of its seals (ADR-0188 decision 2),\n * the company rules and the records that follow.\n *\n * Data only - `server/index.ts` registers it - so an application's tests read it without starting the framework.\n */\n\nimport type { RoleTask } from '@things-factory/auth-base'\n\nexport const ROLE_TASKS: RoleTask[] = [\n {\n id: 'compliance.managing',\n grants: [\n { category: 'seal-use', axes: ['query', 'mutation'] },\n { category: 'regulation', axes: ['query', 'mutation'] },\n { category: 'training', axes: ['query', 'mutation'] },\n { category: 'privacy-record', axes: ['query', 'mutation'] },\n { category: 'legal-registration', axes: ['query', 'mutation'] },\n { category: 'invention', axes: ['query', 'mutation'] },\n { category: 'dispute', axes: ['query', 'mutation'] }\n ]\n },\n /* 신고 사건 is apart: an application gives it to two seats, so one reported against is never the only handler (ADR-0187 decision 21). */\n { id: 'compliance.case-handling', grants: [{ category: 'compliance-case', axes: ['query', 'mutation'] }] }\n]\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EntityManager } from 'typeorm';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { Domain } from '@things-factory/shell';
|
|
4
|
+
export declare class ComplianceCorrection {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
domain?: Domain;
|
|
7
|
+
domainId?: string;
|
|
8
|
+
subjectKind: string;
|
|
9
|
+
subjectId: string;
|
|
10
|
+
field: string;
|
|
11
|
+
before?: string;
|
|
12
|
+
after?: string;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
creator?: User;
|
|
15
|
+
creatorId?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Writes one correction for each of `fields` whose written value `after` changes. A value written for the first time
|
|
19
|
+
* - empty before - is no correction.
|
|
20
|
+
*/
|
|
21
|
+
export declare function recordCorrections(tx: EntityManager, domain: Domain, user: User, subject: {
|
|
22
|
+
kind: string;
|
|
23
|
+
id: string;
|
|
24
|
+
}, before: Record<string, any>, after: Record<string, any>, fields: readonly string[]): Promise<number>;
|
|
25
|
+
/** The corrections of one record, oldest first. */
|
|
26
|
+
export declare function correctionsOf(tx: EntityManager, domain: {
|
|
27
|
+
id: string;
|
|
28
|
+
}, subject: {
|
|
29
|
+
kind: string;
|
|
30
|
+
id: string;
|
|
31
|
+
}): Promise<ComplianceCorrection[]>;
|
|
32
|
+
export declare const entities: (typeof ComplianceCorrection)[];
|