@things-factory/organization 10.1.278 → 10.1.280

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/package.json +24 -8
  2. package/CHANGELOG.md +0 -8
  3. package/dist-client/bootstrap.js.map +0 -1
  4. package/dist-client/component/approval-line-brief.js.map +0 -1
  5. package/dist-client/component/approval-line-edit.js.map +0 -1
  6. package/dist-client/component/approval-line-items-editor-popup.js.map +0 -1
  7. package/dist-client/component/approval-line-items-editor.js.map +0 -1
  8. package/dist-client/component/approval-line-selector.js.map +0 -1
  9. package/dist-client/component/approval-line-templates-manager.js.map +0 -1
  10. package/dist-client/component/approval-line-view.js.map +0 -1
  11. package/dist-client/component/assignees-editor-popup.js.map +0 -1
  12. package/dist-client/component/assignees-editor.js.map +0 -1
  13. package/dist-client/component/assignees-view.js.map +0 -1
  14. package/dist-client/component/copy-from.js.map +0 -1
  15. package/dist-client/component/department-selector.js.map +0 -1
  16. package/dist-client/component/department-view.js.map +0 -1
  17. package/dist-client/component/index.js.map +0 -1
  18. package/dist-client/component/popup-actions-row.test.d.ts +0 -1
  19. package/dist-client/component/popup-actions-row.test.js +0 -42
  20. package/dist-client/component/popup-actions-row.test.js.map +0 -1
  21. package/dist-client/component/recipients-editor-popup.js.map +0 -1
  22. package/dist-client/component/recipients-editor.js.map +0 -1
  23. package/dist-client/component/recipients-view.js.map +0 -1
  24. package/dist-client/entity360/department-360.js.map +0 -1
  25. package/dist-client/entity360/person-membership-section.js.map +0 -1
  26. package/dist-client/filters-form/filter-department-object.js.map +0 -1
  27. package/dist-client/filters-form/ox-filter-department-object.js.map +0 -1
  28. package/dist-client/grist-editor/grist-editor-approval-line.js.map +0 -1
  29. package/dist-client/grist-editor/grist-editor-assignees.js.map +0 -1
  30. package/dist-client/grist-editor/grist-editor-department-object.js.map +0 -1
  31. package/dist-client/grist-editor/grist-editor-recipients.js.map +0 -1
  32. package/dist-client/grist-editor/grist-renderer-approval-line.js.map +0 -1
  33. package/dist-client/grist-editor/grist-renderer-assignees.js.map +0 -1
  34. package/dist-client/grist-editor/grist-renderer-department-object.js.map +0 -1
  35. package/dist-client/grist-editor/grist-renderer-recipients.js.map +0 -1
  36. package/dist-client/index.js.map +0 -1
  37. package/dist-client/my-picture-model.js.map +0 -1
  38. package/dist-client/my-picture.js.map +0 -1
  39. package/dist-client/pages/approval-line/approval-line-list-page.js.map +0 -1
  40. package/dist-client/pages/approval-line/common-approval-line-templates-page.js.map +0 -1
  41. package/dist-client/pages/approval-line/my-approval-line-templates-page.js.map +0 -1
  42. package/dist-client/pages/department/department-importer.js.map +0 -1
  43. package/dist-client/pages/department/department-list-page.js.map +0 -1
  44. package/dist-client/pages/department/department-patch.js.map +0 -1
  45. package/dist-client/pages/employee/employee-importer.js.map +0 -1
  46. package/dist-client/pages/employee/employee-list-page.js.map +0 -1
  47. package/dist-client/pages/employee-profile/employee-profile-files.js.map +0 -1
  48. package/dist-client/pages/employee-profile/employee-profile-form.js.map +0 -1
  49. package/dist-client/pages/employee-profile/employee-profile-list-page.js.map +0 -1
  50. package/dist-client/pages/employee-profile/employee-profile-preview.js.map +0 -1
  51. package/dist-client/pages/employee-profile/my-employee-profile-page.js.map +0 -1
  52. package/dist-client/route.js.map +0 -1
  53. package/dist-client/tsconfig.tsbuildinfo +0 -1
  54. package/dist-client/types/approval-line.js.map +0 -1
  55. package/dist-client/types/contact.js.map +0 -1
  56. package/dist-client/types/department.js.map +0 -1
  57. package/dist-client/types/employee.js.map +0 -1
  58. package/dist-client/types/index.js.map +0 -1
  59. package/dist-client/types/org-member.js.map +0 -1
  60. package/dist-server/ai-entry/employee-profile-entry.js.map +0 -1
  61. package/dist-server/ai-entry/entry-target-shape.js.map +0 -1
  62. package/dist-server/ai-entry/organization-entry-rules.js.map +0 -1
  63. package/dist-server/ai-entry/organization-entry-targets.js.map +0 -1
  64. package/dist-server/controllers/register-employee-as-system-user.js.map +0 -1
  65. package/dist-server/index.js.map +0 -1
  66. package/dist-server/migrations/1723861013111-seed-organization-codes.js.map +0 -1
  67. package/dist-server/migrations/index.js.map +0 -1
  68. package/dist-server/role-tasks.js.map +0 -1
  69. package/dist-server/routes.js.map +0 -1
  70. package/dist-server/service/approval-line/approval-line-item.js.map +0 -1
  71. package/dist-server/service/approval-line/approval-line-mutation.js.map +0 -1
  72. package/dist-server/service/approval-line/approval-line-query.js.map +0 -1
  73. package/dist-server/service/approval-line/approval-line-type.js.map +0 -1
  74. package/dist-server/service/approval-line/approval-line.js.map +0 -1
  75. package/dist-server/service/approval-line/index.js.map +0 -1
  76. package/dist-server/service/audience/audience-member.js.map +0 -1
  77. package/dist-server/service/audience/audience.js.map +0 -1
  78. package/dist-server/service/certificate/employment-certificate-rules.js.map +0 -1
  79. package/dist-server/service/certificate/employment-certificate-templates.js.map +0 -1
  80. package/dist-server/service/certificate/employment-certificates.js.map +0 -1
  81. package/dist-server/service/department/department-history.js.map +0 -1
  82. package/dist-server/service/department/department-mutation.js.map +0 -1
  83. package/dist-server/service/department/department-parent.js.map +0 -1
  84. package/dist-server/service/department/department-query.js.map +0 -1
  85. package/dist-server/service/department/department-type.js.map +0 -1
  86. package/dist-server/service/department/department.js.map +0 -1
  87. package/dist-server/service/department/event-subscriber.js.map +0 -1
  88. package/dist-server/service/department/index.js.map +0 -1
  89. package/dist-server/service/domain-reference.js.map +0 -1
  90. package/dist-server/service/employee/employee-control-no.js.map +0 -1
  91. package/dist-server/service/employee/employee-day.js.map +0 -1
  92. package/dist-server/service/employee/employee-history.js.map +0 -1
  93. package/dist-server/service/employee/employee-mutation.js.map +0 -1
  94. package/dist-server/service/employee/employee-private.js.map +0 -1
  95. package/dist-server/service/employee/employee-query.js.map +0 -1
  96. package/dist-server/service/employee/employee-type.js.map +0 -1
  97. package/dist-server/service/employee/employee.js.map +0 -1
  98. package/dist-server/service/employee/event-subscriber.js.map +0 -1
  99. package/dist-server/service/employee/index.js.map +0 -1
  100. package/dist-server/service/employee/my-employee-refusal.js.map +0 -1
  101. package/dist-server/service/employee/my-employee.js.map +0 -1
  102. package/dist-server/service/employee/working-employees.js.map +0 -1
  103. package/dist-server/service/employee-profile/employee-profile-document.js.map +0 -1
  104. package/dist-server/service/employee-profile/employee-profile-mutation.js.map +0 -1
  105. package/dist-server/service/employee-profile/employee-profile-query.js.map +0 -1
  106. package/dist-server/service/employee-profile/employee-profile-rows.js.map +0 -1
  107. package/dist-server/service/employee-profile/employee-profile-rules.js.map +0 -1
  108. package/dist-server/service/employee-profile/employee-profile-type.js.map +0 -1
  109. package/dist-server/service/employee-profile/employee-profile.js.map +0 -1
  110. package/dist-server/service/employee-profile/index.js.map +0 -1
  111. package/dist-server/service/index.js.map +0 -1
  112. package/dist-server/tsconfig.tsbuildinfo +0 -1
  113. package/dist-server/work-doors.js.map +0 -1
  114. package/spec/unit/approval-line.spec.ts +0 -329
  115. package/spec/unit/department.spec.ts +0 -253
  116. package/spec/unit/employee.spec.ts +0 -271
  117. package/spec/unit/my-employee.spec.ts +0 -102
  118. package/tests/approval-line-brief-plan.test.ts +0 -35
  119. package/tests/approval-line-edit.test.ts +0 -78
  120. package/tests/approval-line-mark.test.ts +0 -68
  121. package/tests/approval-line-step-fields.test.ts +0 -108
  122. package/tests/assignees-editor-no-role.test.ts +0 -32
  123. package/tests/audience.test.ts +0 -85
  124. package/tests/copy-from.test.ts +0 -17
  125. package/tests/department-open-fields.test.ts +0 -72
  126. package/tests/department-parent.test.ts +0 -187
  127. package/tests/department-patch.test.ts +0 -52
  128. package/tests/department-query-shape.test.ts +0 -130
  129. package/tests/department-selector.test.ts +0 -32
  130. package/tests/domain-reference.test.ts +0 -186
  131. package/tests/employee-day.test.ts +0 -165
  132. package/tests/employee-private.test.ts +0 -37
  133. package/tests/employee-profile-db.test.ts +0 -261
  134. package/tests/employee-profile-document.test.ts +0 -282
  135. package/tests/employee-profile-entry.test.ts +0 -72
  136. package/tests/employee-profile-rules.test.ts +0 -103
  137. package/tests/entity360.test.ts +0 -36
  138. package/tests/my-picture.test.ts +0 -21
  139. package/tests/organization-entry-targets.test.ts +0 -236
  140. package/tests/refusals-in-korean.test.ts +0 -48
  141. package/tests/register-employee-role.test.ts +0 -97
@@ -1 +0,0 @@
1
- {"version":3,"file":"employee-profile-rules.js","sourceRoot":"","sources":["../../../server/service/employee-profile/employee-profile-rules.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAwCH,8CAUC;AAaD,wCAYC;AAeD,4CAGC;AAMD,sDAeC;AAGD,0BAGC;AAOD,kCASC;AAGD,wCAGC;AAjID,qFAAqF;AACxE,QAAA,kBAAkB,GAAG;IAChC,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,CAAC;IACjE,YAAY,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,CAAC;IAC9C,OAAO,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,CAAC;IAChF,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC;CAC9E,CAAA;AAEV,MAAM,IAAI,GAAG,CAAC,KAAc,EAAU,EAAE,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;AAExF,sGAAsG;AACtG,SAAS,MAAM,CAAC,IAAa,EAAE,MAAyB;IACtD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,CAAA;IACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACxB,MAAM,IAAI,GAAQ,EAAE,CAAA;QACpB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,MAAM,KAAK,GAAG,IAAI,CAAE,GAAk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,CAAC,CAAC,IAAI,CAAC,CAAA;QACxD,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;IACzE,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,uHAAuH;AACvH,SAAgB,cAAc,CAAkG,OAAU;IACxI,KAAK,MAAM,IAAI,IAAI,CAAC,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,CAAU;QAAE,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAAG,OAAe,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;IACxK,OAAO,OAAO,CAAA;AAChB,CAAC","sourcesContent":["/*\n * The judgements of the profile's doors (ADR-0169) - pure, apart from the store, so the tests read them without the\n * entities (the employee record pulls in contact, which reads the configuration when it is loaded).\n */\n\ntype Row = Record<string, unknown>\n\nexport type ProfileDocument = {\n summary: string | null\n skills: string[]\n educations: Row[]\n certificates: Row[]\n careers: Row[]\n projects: Row[]\n}\n\n/** The fields each kind of row keeps; anything else a caller sends is not stored. */\nexport const PROFILE_ROW_FIELDS = {\n educations: ['school', 'major', 'degree', 'startedOn', 'endedOn'],\n certificates: ['name', 'issuer', 'acquiredOn'],\n careers: ['company', 'department', 'position', 'startedOn', 'endedOn', 'duties'],\n projects: ['name', 'client', 'startedOn', 'endedOn', 'role', 'duties', 'technologies']\n} as const\n\nconst text = (value: unknown): string => (typeof value === 'string' ? value.trim() : '')\n\n/** A row as kept: its own fields trimmed, empty ones left out. A row with nothing in it is no row. */\nfunction rowsOf(rows: unknown, fields: readonly string[]): Row[] {\n if (!Array.isArray(rows)) return []\n return rows.flatMap(row => {\n const kept: Row = {}\n for (const field of fields) {\n const value = text((row as Row | null)?.[field])\n if (value) kept[field] = value\n }\n return Object.keys(kept).length ? [kept] : []\n })\n}\n\n/**\n * The profile as it is saved - whole, as the screen sent it (ADR-0169 decision 2). Blank rows the screen added and did\n * not fill go, and a skill written twice is kept once.\n */\nexport function profileDocumentOf(input: any): ProfileDocument {\n const skills = [...new Set((Array.isArray(input?.skills) ? input.skills : []).map(text).filter(Boolean))] as string[]\n return {\n summary: text(input?.summary) || null,\n skills,\n educations: rowsOf(input?.educations, PROFILE_ROW_FIELDS.educations),\n certificates: rowsOf(input?.certificates, PROFILE_ROW_FIELDS.certificates),\n careers: rowsOf(input?.careers, PROFILE_ROW_FIELDS.careers),\n projects: rowsOf(input?.projects, PROFILE_ROW_FIELDS.projects)\n }\n}\n\n/** Two rows are the same entry when every field they keep is the same - spacing and letter case aside. */\nconst sameRow = (a: Row, b: Row) => {\n const keys = new Set([...Object.keys(a), ...Object.keys(b)])\n return [...keys].every(key => text(a[key]).toLowerCase() === text(b[key]).toLowerCase())\n}\n\n/**\n * What is added to a profile kept so far (ADR-0169 decision 10 - the assistant's 입력안 from a résumé): a summary given\n * takes the place of the one kept, skills are added after those held (a skill already held is not added twice), and\n * rows are added after those of their section unless the very same row is there. Nothing kept is taken away.\n */\nexport function addedProfileOf(held: Partial<ProfileDocument> | null | undefined, addition: any): ProfileDocument {\n const kept = profileDocumentOf(held ?? {})\n const added = profileDocumentOf(addition)\n const rows = (key: keyof typeof PROFILE_ROW_FIELDS) => [...kept[key], ...added[key].filter(row => !kept[key].some(one => sameRow(one, row)))]\n return {\n summary: added.summary ?? kept.summary,\n skills: [...kept.skills, ...added.skills.filter(skill => !kept.skills.some(one => one.toLowerCase() === skill.toLowerCase()))],\n educations: rows('educations'),\n certificates: rows('certificates'),\n careers: rows('careers'),\n projects: rows('projects')\n }\n}\n\nexport type ProfileEmployee = {\n id: string\n controlNo?: string\n name?: string\n active?: boolean | null\n retiredOn?: string | null\n jobPosition?: string\n jobResponsibility?: string\n hiredOn?: string\n department?: { name?: string } | null\n}\n\n/** Still working here: not marked inactive, and no retire day that has come. `today` is YYYY-MM-DD. */\nexport function isActiveEmployee(employee: ProfileEmployee, today: string): boolean {\n if (employee.active === false) return false\n return !employee.retiredOn || employee.retiredOn > today\n}\n\n/**\n * Every active employee with their profile, by name (ADR-0169 decision 4) - an employee who has written none is listed\n * with an empty one, so the list says who has not written it rather than leaving them out.\n */\nexport function employeesWithProfiles<P extends { employeeId?: string }>(employees: ProfileEmployee[], profiles: P[], today: string) {\n const byEmployee = new Map(profiles.map(profile => [profile.employeeId, profile]))\n return employees\n .filter(employee => isActiveEmployee(employee, today))\n .map(employee => ({\n employeeId: employee.id,\n controlNo: employee.controlNo,\n name: employee.name,\n departmentName: employee.department?.name,\n jobPosition: employee.jobPosition,\n jobResponsibility: employee.jobResponsibility,\n hiredOn: employee.hiredOn,\n profile: byEmployee.get(employee.id) ?? null\n }))\n .sort((a, b) => (a.name ?? '').localeCompare(b.name ?? '', 'ko') || (a.controlNo ?? '').localeCompare(b.controlNo ?? ''))\n}\n\n/** Today in the server's calendar, YYYY-MM-DD - the form `retiredOn` is kept in. */\nexport function todayOf(now = new Date()): string {\n const pad = (n: number) => String(n).padStart(2, '0')\n return `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())}`\n}\n\n/**\n * Newest first, as a résumé reads. A period is ordered by its end - one still going (no end) on top - and two that ended\n * together by the later start; a day (a certificate's) by the day. A row with no date keeps its place, after the dated\n * ones. Only the document is ordered; the profile keeps the rows as they were written.\n */\nexport function newestFirst<R extends { startedOn?: string; endedOn?: string; acquiredOn?: string }>(rows: R[] | null | undefined): R[] {\n const ONGOING = '9999-99'\n const endOf = (row: R) => (row.acquiredOn ?? row.endedOn ?? (row.startedOn ? ONGOING : '')).trim()\n const startOf = (row: R) => (row.acquiredOn ?? row.startedOn ?? '').trim()\n return [...(rows ?? [])].sort((a, b) => {\n const [endA, endB] = [endOf(a), endOf(b)]\n if (!endA || !endB) return Number(!endA) - Number(!endB)\n return endB.localeCompare(endA) || startOf(b).localeCompare(startOf(a))\n })\n}\n\n/** A profile's dated rows newest first, as every reader is shown them - the screen, the document and the assistant. */\nexport function inShowingOrder<P extends Partial<Record<'educations' | 'certificates' | 'careers' | 'projects', any[] | null>>>(profile: P): P {\n for (const kind of ['educations', 'certificates', 'careers', 'projects'] as const) if (Array.isArray(profile[kind])) (profile as any)[kind] = newestFirst(profile[kind])\n return profile\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"employee-profile-type.js","sourceRoot":"","sources":["../../../server/service/employee-profile/employee-profile-type.ts"],"names":[],"mappings":";;;;AAAA,iFAAiF;AACjF,+CAA6E;AAE7E,yDAAoD;AACpD,mEAA6I;AAE7I,kHAAkH;AAClH,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,oCAAW,CAAA;IACX,sCAAa,CAAA;AACf,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAED,IAAA,+BAAgB,EAAC,qBAAqB,EAAE;IACtC,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,uHAAuH;CACrI,CAAC,CAAA;AAGK,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAS/B,CAAA;AATY,kDAAmB;AAE9B;IADC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,oCAAoC,EAAE,CAAC;;qDAC7C;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;;qDAC1B;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;;oDAC1C;8BARJ,mBAAmB;IAD/B,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,6FAA6F,EAAE,CAAC;GAC9G,mBAAmB,CAS/B;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAkBhC,CAAA;AAlBY,oDAAoB;AAE/B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,iCAAiC,EAAE,CA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EAAE,CAAC;;iDACvC;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;;2DAC/C;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;;wDAC3C;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;;8DAC5C;AAG1B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;;oDACpD;AAGhB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kCAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,yDAAyD,EAAE,CAAC;sCACjH,kCAAe;oDAAA;8BAvBd,mBAAmB;IAD/B,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,0FAA0F,EAAE,CAAC;GAC3G,mBAAmB,CAwB/B","sourcesContent":["/* The documents the profile's doors take and give (ADR-0169 decisions 2 · 4). */\nimport { Field, InputType, ObjectType, registerEnumType } from 'type-graphql'\n\nimport { EmployeeProfile } from './employee-profile'\nimport { EmployeeProfileCareer, EmployeeProfileCertificate, EmployeeProfileEducation, EmployeeProfileProject } from './employee-profile-rows'\n\n/** The two forms the profiles are handed in as, and the page they are previewed on (ADR-0169 decisions 5 · 9). */\nexport enum EmployeeProfileFormat {\n XLSX = 'XLSX',\n PDF = 'PDF',\n HTML = 'HTML'\n}\n\nregisterEnumType(EmployeeProfileFormat, {\n name: 'EmployeeProfileFormat',\n description: 'The form of the employee profiles: an Excel workbook or a PDF to download, or an HTML page to preview them on screen.'\n})\n\n@ObjectType({ description: 'A file of employee profiles to download - its name, its media type and its bytes in base64.' })\nexport class EmployeeProfileFile {\n @Field({ description: 'The file name, with its extension.' })\n fileName: string\n\n @Field({ description: 'The media type.' })\n mimeType: string\n\n @Field({ description: 'The bytes of the file, base64.' })\n content: string\n}\n\n@InputType({ description: \"The caller's own profile, whole - what is left out is emptied (ADR-0169 decision 2).\" })\nexport class EmployeeProfileInput {\n @Field({ nullable: true, description: 'A few lines about the employee.' })\n summary?: string\n\n @Field(type => [String], { nullable: true, description: 'The skills, each a word or two.' })\n skills?: string[]\n\n @Field(type => [EmployeeProfileEducation], { nullable: true, description: 'The schools.' })\n educations?: EmployeeProfileEducation[]\n\n @Field(type => [EmployeeProfileCertificate], { nullable: true, description: 'The certificates and licences.' })\n certificates?: EmployeeProfileCertificate[]\n\n @Field(type => [EmployeeProfileCareer], { nullable: true, description: 'The jobs held before, at other companies.' })\n careers?: EmployeeProfileCareer[]\n\n @Field(type => [EmployeeProfileProject], { nullable: true, description: 'The projects worked on.' })\n projects?: EmployeeProfileProject[]\n}\n\n/**\n * One active employee with their profile, for the list a quotation's profiles are taken from (ADR-0169 decisions 1 · 4).\n * The basics are read from the employee record and nothing else of it - no contact, address, birthday, account or pay.\n */\n@ObjectType({ description: 'An active employee of the domain with their profile - empty when they have written none.' })\nexport class EmployeeWithProfile {\n @Field({ description: 'The employee id.' })\n employeeId: string\n\n @Field({ nullable: true, description: 'The employee control number.' })\n controlNo?: string\n\n @Field({ nullable: true, description: 'The name.' })\n name?: string\n\n @Field({ nullable: true, description: 'The name of the department.' })\n departmentName?: string\n\n @Field({ nullable: true, description: 'The position (rank).' })\n jobPosition?: string\n\n @Field({ nullable: true, description: 'The responsibility (title).' })\n jobResponsibility?: string\n\n @Field({ nullable: true, description: 'The hire day, YYYY-MM-DD.' })\n hiredOn?: string\n\n @Field(type => EmployeeProfile, { nullable: true, description: 'The profile - empty when the employee has written none.' })\n profile?: EmployeeProfile\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"employee-profile.js","sourceRoot":"","sources":["../../../server/service/employee-profile/employee-profile.ts"],"names":[],"mappings":";;;;AAAA;;;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gDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,GAAoB,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC;;kDAChC;AAGlB;IADC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAClC,gBAAI;gDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,GAAoB,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC;;kDAChC;AAIlB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;sCAClD,IAAI;kDAAA;AAIhB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;sCACrD,IAAI;kDAAA;AAIhB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;sCACrD,IAAI;IAEhB,uHAAuH;;kDAFvG;AAIhB;IADC,IAAA,mBAAS,GAAE;;;;sDAGX;0BAvEU,eAAe;IAH3B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,uBAAuB,EAAE,CAAC,GAAoB,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC;IACrI,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,oGAAoG,EAAE,CAAC;GACrH,eAAe,CAwE3B","sourcesContent":["/*\n * An employee's profile - what they studied, hold, did before and worked on - written by the employee and taken by sales\n * to attach to a quotation (ADR-0169).\n *\n * Its own table beside the employee record, one per employee: the record holds contact, address and the pay account,\n * and the people who read profiles (sales) must not read those. Name, department, position and hire day are read from\n * the record, never copied here. So neither the employee nor the writers are fields of this type - only their ids -\n * and reaching a profile does not reach the record behind it.\n */\nimport { AfterLoad, Column, CreateDateColumn, DeleteDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\nimport { Field, ID, ObjectType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\n\nimport { Employee } from '../employee/employee'\nimport { EmployeeProfileCareer, EmployeeProfileCertificate, EmployeeProfileEducation, EmployeeProfileProject } from './employee-profile-rows'\nimport { inShowingOrder } from './employee-profile-rules'\n\n@Entity()\n@Index('ix_employee_profile_0', (one: EmployeeProfile) => [one.domain, one.employee], { unique: true, where: '\"deleted_at\" IS NULL' })\n@ObjectType({ description: \"An employee's profile - summary, skills, schools, certificates, past jobs and projects (ADR-0169).\" })\nexport class EmployeeProfile {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Profile id.' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true, description: 'The domain the profile is in.' })\n domain?: Domain\n\n @RelationId((one: EmployeeProfile) => one.domain)\n domainId?: string\n\n @ManyToOne(type => Employee)\n employee?: Employee\n\n @RelationId((one: EmployeeProfile) => one.employee)\n @Field({ nullable: true, description: 'The employee whose profile it is.' })\n employeeId?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'A few lines about the employee.' })\n summary?: string\n\n @Column('simple-json', { nullable: true })\n @Field(type => [String], { nullable: true, description: 'The skills, each a word or two.' })\n skills?: string[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => [EmployeeProfileEducation], { nullable: true, description: 'The schools.' })\n educations?: EmployeeProfileEducation[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => [EmployeeProfileCertificate], { nullable: true, description: 'The certificates and licences.' })\n certificates?: EmployeeProfileCertificate[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => [EmployeeProfileCareer], { nullable: true, description: 'The jobs held before, at other companies.' })\n careers?: EmployeeProfileCareer[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => [EmployeeProfileProject], { nullable: true, description: 'The projects worked on.' })\n projects?: EmployeeProfileProject[]\n\n @ManyToOne(type => User, { nullable: true })\n creator?: User\n\n @RelationId((one: EmployeeProfile) => one.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n updater?: User\n\n @RelationId((one: EmployeeProfile) => one.updater)\n updaterId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'Creation timestamp.' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'Last update timestamp.' })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true, description: 'Soft delete timestamp.' })\n deletedAt?: Date\n\n /* Shown newest first wherever it is read (2026-10-29, the user: 「보여줄 때 정렬해서」); the stored order is the one written. */\n @AfterLoad()\n showNewestFirst() {\n inShowingOrder(this)\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/employee-profile/index.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AACpD,2EAAqE;AACrE,qEAA+D;AAElD,QAAA,QAAQ,GAAG,CAAC,kCAAe,CAAC,CAAA;AAC5B,QAAA,SAAS,GAAG,CAAC,6CAAoB,EAAE,mDAAuB,CAAC,CAAA","sourcesContent":["import { EmployeeProfile } from './employee-profile'\nimport { EmployeeProfileMutation } from './employee-profile-mutation'\nimport { EmployeeProfileQuery } from './employee-profile-query'\n\nexport const entities = [EmployeeProfile]\nexport const resolvers = [EmployeeProfileQuery, EmployeeProfileMutation]\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,wEAA6C;AAC7C,kEAAuC;AACvC,8DAAmC;AACnC,qGAAqG;AACrG,uEAA4C;AAC5C,8EAAmD;AACnD,8DAAmC;AACnC,qEAA0C;AAE1C,mCAAmC;AACnC,mDAAsG;AACtG,6CAIqB;AACrB,yCAImB;AACnB,yDAA+G;AAElG,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,wBAAoB;IACvB,GAAG,qBAAkB;IACrB,GAAG,mBAAgB;IACnB,GAAG,2BAAuB;CAC3B,CAAA;AAEY,QAAA,WAAW,GAAG;IACzB,iBAAiB;IACjB,GAAG,wBAAqB;IACxB,GAAG,sBAAmB;CACvB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACtB,GAAG,yBAAqB;QACxB,GAAG,sBAAmB;QACtB,GAAG,oBAAiB;QACpB,GAAG,4BAAwB;KAC5B;CACF,CAAA","sourcesContent":["/* EXPORT ENTITY TYPES */\nexport * from './approval-line/approval-line'\nexport * from './department/department'\nexport * from './employee/employee'\n/* Who works here today - those who address the employees narrow their people to these (ADR-0197). */\nexport * from './employee/working-employees'\nexport * from './employee-profile/employee-profile'\nexport * from './audience/audience'\nexport * from './audience/audience-member'\n\n/* IMPORT ENTITIES AND RESOLVERS */\nimport { entities as ApprovalLineEntities, resolvers as ApprovalLineResolvers } from './approval-line'\nimport {\n entities as DepartmentEntities,\n resolvers as DepartmentResolvers,\n subscribers as DepartmentSubscribers\n} from './department'\nimport {\n entities as EmployeeEntities,\n resolvers as EmployeeResolvers,\n subscribers as EmployeeSubscribers\n} from './employee'\nimport { entities as EmployeeProfileEntities, resolvers as EmployeeProfileResolvers } from './employee-profile'\n\nexport const entities = [\n /* ENTITIES */\n ...ApprovalLineEntities,\n ...DepartmentEntities,\n ...EmployeeEntities,\n ...EmployeeProfileEntities\n]\n\nexport const subscribers = [\n /* SUBSCRIBERS */\n ...DepartmentSubscribers,\n ...EmployeeSubscribers\n]\n\nexport const schema = {\n resolverClasses: [\n /* RESOLVER CLASSES */\n ...ApprovalLineResolvers,\n ...DepartmentResolvers,\n ...EmployeeResolvers,\n ...EmployeeProfileResolvers\n ]\n}\n"]}