@dolusoft/hirebase-mcp 1.1.8

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 (413) hide show
  1. package/README.md +261 -0
  2. package/dist/application/dto/candidate-summary.d.ts +10 -0
  3. package/dist/application/dto/candidate-summary.js +2 -0
  4. package/dist/application/dto/candidate-summary.js.map +1 -0
  5. package/dist/application/dto/extracted-cv.d.ts +46 -0
  6. package/dist/application/dto/extracted-cv.js +2 -0
  7. package/dist/application/dto/extracted-cv.js.map +1 -0
  8. package/dist/application/dto/filter-input.d.ts +7 -0
  9. package/dist/application/dto/filter-input.js +2 -0
  10. package/dist/application/dto/filter-input.js.map +1 -0
  11. package/dist/application/dto/index.d.ts +5 -0
  12. package/dist/application/dto/index.js +2 -0
  13. package/dist/application/dto/index.js.map +1 -0
  14. package/dist/application/dto/search-results.d.ts +13 -0
  15. package/dist/application/dto/search-results.js +2 -0
  16. package/dist/application/dto/search-results.js.map +1 -0
  17. package/dist/application/dto/stats.d.ts +10 -0
  18. package/dist/application/dto/stats.js +2 -0
  19. package/dist/application/dto/stats.js.map +1 -0
  20. package/dist/application/ports/document-parser.d.ts +8 -0
  21. package/dist/application/ports/document-parser.js +2 -0
  22. package/dist/application/ports/document-parser.js.map +1 -0
  23. package/dist/application/ports/embedding-service.d.ts +4 -0
  24. package/dist/application/ports/embedding-service.js +2 -0
  25. package/dist/application/ports/embedding-service.js.map +1 -0
  26. package/dist/application/ports/export-service.d.ts +5 -0
  27. package/dist/application/ports/export-service.js +2 -0
  28. package/dist/application/ports/export-service.js.map +1 -0
  29. package/dist/application/ports/index.d.ts +4 -0
  30. package/dist/application/ports/index.js +2 -0
  31. package/dist/application/ports/index.js.map +1 -0
  32. package/dist/application/ports/structured-extractor.d.ts +4 -0
  33. package/dist/application/ports/structured-extractor.js +2 -0
  34. package/dist/application/ports/structured-extractor.js.map +1 -0
  35. package/dist/application/use-cases/add-cv.d.ts +16 -0
  36. package/dist/application/use-cases/add-cv.js +113 -0
  37. package/dist/application/use-cases/add-cv.js.map +1 -0
  38. package/dist/application/use-cases/add-job-posting.d.ts +17 -0
  39. package/dist/application/use-cases/add-job-posting.js +27 -0
  40. package/dist/application/use-cases/add-job-posting.js.map +1 -0
  41. package/dist/application/use-cases/add-pipeline-note.d.ts +15 -0
  42. package/dist/application/use-cases/add-pipeline-note.js +34 -0
  43. package/dist/application/use-cases/add-pipeline-note.js.map +1 -0
  44. package/dist/application/use-cases/add-to-pipeline.d.ts +18 -0
  45. package/dist/application/use-cases/add-to-pipeline.js +54 -0
  46. package/dist/application/use-cases/add-to-pipeline.js.map +1 -0
  47. package/dist/application/use-cases/bulk-add-cvs.d.ts +14 -0
  48. package/dist/application/use-cases/bulk-add-cvs.js +32 -0
  49. package/dist/application/use-cases/bulk-add-cvs.js.map +1 -0
  50. package/dist/application/use-cases/delete-cv.d.ts +10 -0
  51. package/dist/application/use-cases/delete-cv.js +21 -0
  52. package/dist/application/use-cases/delete-cv.js.map +1 -0
  53. package/dist/application/use-cases/export-results.d.ts +9 -0
  54. package/dist/application/use-cases/export-results.js +21 -0
  55. package/dist/application/use-cases/export-results.js.map +1 -0
  56. package/dist/application/use-cases/filter-candidates.d.ts +9 -0
  57. package/dist/application/use-cases/filter-candidates.js +51 -0
  58. package/dist/application/use-cases/filter-candidates.js.map +1 -0
  59. package/dist/application/use-cases/get-candidate-history.d.ts +25 -0
  60. package/dist/application/use-cases/get-candidate-history.js +36 -0
  61. package/dist/application/use-cases/get-candidate-history.js.map +1 -0
  62. package/dist/application/use-cases/get-cv-chunks.d.ts +15 -0
  63. package/dist/application/use-cases/get-cv-chunks.js +18 -0
  64. package/dist/application/use-cases/get-cv-chunks.js.map +1 -0
  65. package/dist/application/use-cases/get-cv-detail.d.ts +7 -0
  66. package/dist/application/use-cases/get-cv-detail.js +15 -0
  67. package/dist/application/use-cases/get-cv-detail.js.map +1 -0
  68. package/dist/application/use-cases/get-cv-versions.d.ts +9 -0
  69. package/dist/application/use-cases/get-cv-versions.js +18 -0
  70. package/dist/application/use-cases/get-cv-versions.js.map +1 -0
  71. package/dist/application/use-cases/get-pending-actions.d.ts +23 -0
  72. package/dist/application/use-cases/get-pending-actions.js +50 -0
  73. package/dist/application/use-cases/get-pending-actions.js.map +1 -0
  74. package/dist/application/use-cases/get-pipeline.d.ts +27 -0
  75. package/dist/application/use-cases/get-pipeline.js +40 -0
  76. package/dist/application/use-cases/get-pipeline.js.map +1 -0
  77. package/dist/application/use-cases/get-stats.d.ts +13 -0
  78. package/dist/application/use-cases/get-stats.js +50 -0
  79. package/dist/application/use-cases/get-stats.js.map +1 -0
  80. package/dist/application/use-cases/index.d.ts +23 -0
  81. package/dist/application/use-cases/index.js +24 -0
  82. package/dist/application/use-cases/index.js.map +1 -0
  83. package/dist/application/use-cases/list-cvs.d.ts +8 -0
  84. package/dist/application/use-cases/list-cvs.js +20 -0
  85. package/dist/application/use-cases/list-cvs.js.map +1 -0
  86. package/dist/application/use-cases/list-job-postings.d.ts +7 -0
  87. package/dist/application/use-cases/list-job-postings.js +10 -0
  88. package/dist/application/use-cases/list-job-postings.js.map +1 -0
  89. package/dist/application/use-cases/manage-tags.d.ts +7 -0
  90. package/dist/application/use-cases/manage-tags.js +36 -0
  91. package/dist/application/use-cases/manage-tags.js.map +1 -0
  92. package/dist/application/use-cases/match-candidates.d.ts +27 -0
  93. package/dist/application/use-cases/match-candidates.js +92 -0
  94. package/dist/application/use-cases/match-candidates.js.map +1 -0
  95. package/dist/application/use-cases/semantic-search.d.ts +11 -0
  96. package/dist/application/use-cases/semantic-search.js +40 -0
  97. package/dist/application/use-cases/semantic-search.js.map +1 -0
  98. package/dist/application/use-cases/set-pending-action.d.ts +13 -0
  99. package/dist/application/use-cases/set-pending-action.js +24 -0
  100. package/dist/application/use-cases/set-pending-action.js.map +1 -0
  101. package/dist/application/use-cases/update-cv.d.ts +17 -0
  102. package/dist/application/use-cases/update-cv.js +103 -0
  103. package/dist/application/use-cases/update-cv.js.map +1 -0
  104. package/dist/application/use-cases/update-job-posting.d.ts +19 -0
  105. package/dist/application/use-cases/update-job-posting.js +28 -0
  106. package/dist/application/use-cases/update-job-posting.js.map +1 -0
  107. package/dist/application/use-cases/update-pipeline-status.d.ts +14 -0
  108. package/dist/application/use-cases/update-pipeline-status.js +38 -0
  109. package/dist/application/use-cases/update-pipeline-status.js.map +1 -0
  110. package/dist/domain/entities/application-event.d.ts +11 -0
  111. package/dist/domain/entities/application-event.js +2 -0
  112. package/dist/domain/entities/application-event.js.map +1 -0
  113. package/dist/domain/entities/application.d.ts +13 -0
  114. package/dist/domain/entities/application.js +2 -0
  115. package/dist/domain/entities/application.js.map +1 -0
  116. package/dist/domain/entities/candidate.d.ts +26 -0
  117. package/dist/domain/entities/candidate.js +2 -0
  118. package/dist/domain/entities/candidate.js.map +1 -0
  119. package/dist/domain/entities/cv-chunk.d.ts +10 -0
  120. package/dist/domain/entities/cv-chunk.js +2 -0
  121. package/dist/domain/entities/cv-chunk.js.map +1 -0
  122. package/dist/domain/entities/cv-version.d.ts +7 -0
  123. package/dist/domain/entities/cv-version.js +2 -0
  124. package/dist/domain/entities/cv-version.js.map +1 -0
  125. package/dist/domain/entities/index.d.ts +6 -0
  126. package/dist/domain/entities/index.js +2 -0
  127. package/dist/domain/entities/index.js.map +1 -0
  128. package/dist/domain/entities/job-posting.d.ts +14 -0
  129. package/dist/domain/entities/job-posting.js +2 -0
  130. package/dist/domain/entities/job-posting.js.map +1 -0
  131. package/dist/domain/repositories/application-event-repository.d.ts +7 -0
  132. package/dist/domain/repositories/application-event-repository.js +2 -0
  133. package/dist/domain/repositories/application-event-repository.js.map +1 -0
  134. package/dist/domain/repositories/application-repository.d.ts +12 -0
  135. package/dist/domain/repositories/application-repository.js +2 -0
  136. package/dist/domain/repositories/application-repository.js.map +1 -0
  137. package/dist/domain/repositories/candidate-repository.d.ts +12 -0
  138. package/dist/domain/repositories/candidate-repository.js +2 -0
  139. package/dist/domain/repositories/candidate-repository.js.map +1 -0
  140. package/dist/domain/repositories/chunk-repository.d.ts +13 -0
  141. package/dist/domain/repositories/chunk-repository.js +2 -0
  142. package/dist/domain/repositories/chunk-repository.js.map +1 -0
  143. package/dist/domain/repositories/index.d.ts +6 -0
  144. package/dist/domain/repositories/index.js +2 -0
  145. package/dist/domain/repositories/index.js.map +1 -0
  146. package/dist/domain/repositories/job-posting-repository.d.ts +9 -0
  147. package/dist/domain/repositories/job-posting-repository.js +2 -0
  148. package/dist/domain/repositories/job-posting-repository.js.map +1 -0
  149. package/dist/domain/repositories/version-repository.d.ts +6 -0
  150. package/dist/domain/repositories/version-repository.js +2 -0
  151. package/dist/domain/repositories/version-repository.js.map +1 -0
  152. package/dist/domain/value-objects/certification.d.ts +5 -0
  153. package/dist/domain/value-objects/certification.js +2 -0
  154. package/dist/domain/value-objects/certification.js.map +1 -0
  155. package/dist/domain/value-objects/contact-info.d.ts +5 -0
  156. package/dist/domain/value-objects/contact-info.js +2 -0
  157. package/dist/domain/value-objects/contact-info.js.map +1 -0
  158. package/dist/domain/value-objects/education.d.ts +7 -0
  159. package/dist/domain/value-objects/education.js +2 -0
  160. package/dist/domain/value-objects/education.js.map +1 -0
  161. package/dist/domain/value-objects/experience.d.ts +7 -0
  162. package/dist/domain/value-objects/experience.js +2 -0
  163. package/dist/domain/value-objects/experience.js.map +1 -0
  164. package/dist/domain/value-objects/index.d.ts +7 -0
  165. package/dist/domain/value-objects/index.js +2 -0
  166. package/dist/domain/value-objects/index.js.map +1 -0
  167. package/dist/domain/value-objects/language.d.ts +4 -0
  168. package/dist/domain/value-objects/language.js +2 -0
  169. package/dist/domain/value-objects/language.js.map +1 -0
  170. package/dist/domain/value-objects/links.d.ts +6 -0
  171. package/dist/domain/value-objects/links.js +2 -0
  172. package/dist/domain/value-objects/links.js.map +1 -0
  173. package/dist/domain/value-objects/project.d.ts +5 -0
  174. package/dist/domain/value-objects/project.js +2 -0
  175. package/dist/domain/value-objects/project.js.map +1 -0
  176. package/dist/infrastructure/ai/index.d.ts +2 -0
  177. package/dist/infrastructure/ai/index.js +3 -0
  178. package/dist/infrastructure/ai/index.js.map +1 -0
  179. package/dist/infrastructure/ai/openai-embedding-service.d.ts +8 -0
  180. package/dist/infrastructure/ai/openai-embedding-service.js +39 -0
  181. package/dist/infrastructure/ai/openai-embedding-service.js.map +1 -0
  182. package/dist/infrastructure/ai/openai-structured-extractor.d.ts +9 -0
  183. package/dist/infrastructure/ai/openai-structured-extractor.js +163 -0
  184. package/dist/infrastructure/ai/openai-structured-extractor.js.map +1 -0
  185. package/dist/infrastructure/config/app-config.d.ts +9 -0
  186. package/dist/infrastructure/config/app-config.js +15 -0
  187. package/dist/infrastructure/config/app-config.js.map +1 -0
  188. package/dist/infrastructure/export/csv-export-service.d.ts +6 -0
  189. package/dist/infrastructure/export/csv-export-service.js +24 -0
  190. package/dist/infrastructure/export/csv-export-service.js.map +1 -0
  191. package/dist/infrastructure/parsers/docx-parser.d.ts +5 -0
  192. package/dist/infrastructure/parsers/docx-parser.js +17 -0
  193. package/dist/infrastructure/parsers/docx-parser.js.map +1 -0
  194. package/dist/infrastructure/parsers/index.d.ts +3 -0
  195. package/dist/infrastructure/parsers/index.js +4 -0
  196. package/dist/infrastructure/parsers/index.js.map +1 -0
  197. package/dist/infrastructure/parsers/ocr-service.d.ts +8 -0
  198. package/dist/infrastructure/parsers/ocr-service.js +65 -0
  199. package/dist/infrastructure/parsers/ocr-service.js.map +1 -0
  200. package/dist/infrastructure/parsers/pdf-parser.d.ts +5 -0
  201. package/dist/infrastructure/parsers/pdf-parser.js +44 -0
  202. package/dist/infrastructure/parsers/pdf-parser.js.map +1 -0
  203. package/dist/infrastructure/persistence/database.d.ts +20 -0
  204. package/dist/infrastructure/persistence/database.js +156 -0
  205. package/dist/infrastructure/persistence/database.js.map +1 -0
  206. package/dist/infrastructure/persistence/index.d.ts +6 -0
  207. package/dist/infrastructure/persistence/index.js +7 -0
  208. package/dist/infrastructure/persistence/index.js.map +1 -0
  209. package/dist/infrastructure/persistence/lancedb-application-event-repository.d.ts +16 -0
  210. package/dist/infrastructure/persistence/lancedb-application-event-repository.js +85 -0
  211. package/dist/infrastructure/persistence/lancedb-application-event-repository.js.map +1 -0
  212. package/dist/infrastructure/persistence/lancedb-application-repository.d.ts +21 -0
  213. package/dist/infrastructure/persistence/lancedb-application-repository.js +151 -0
  214. package/dist/infrastructure/persistence/lancedb-application-repository.js.map +1 -0
  215. package/dist/infrastructure/persistence/lancedb-candidate-repository.d.ts +21 -0
  216. package/dist/infrastructure/persistence/lancedb-candidate-repository.js +169 -0
  217. package/dist/infrastructure/persistence/lancedb-candidate-repository.js.map +1 -0
  218. package/dist/infrastructure/persistence/lancedb-chunk-repository.d.ts +18 -0
  219. package/dist/infrastructure/persistence/lancedb-chunk-repository.js +105 -0
  220. package/dist/infrastructure/persistence/lancedb-chunk-repository.js.map +1 -0
  221. package/dist/infrastructure/persistence/lancedb-job-posting-repository.d.ts +21 -0
  222. package/dist/infrastructure/persistence/lancedb-job-posting-repository.js +128 -0
  223. package/dist/infrastructure/persistence/lancedb-job-posting-repository.js.map +1 -0
  224. package/dist/infrastructure/persistence/lancedb-version-repository.d.ts +13 -0
  225. package/dist/infrastructure/persistence/lancedb-version-repository.js +62 -0
  226. package/dist/infrastructure/persistence/lancedb-version-repository.js.map +1 -0
  227. package/dist/interface/cli/index.d.ts +2 -0
  228. package/dist/interface/cli/index.js +17 -0
  229. package/dist/interface/cli/index.js.map +1 -0
  230. package/dist/interface/dashboard/call-context.d.ts +4 -0
  231. package/dist/interface/dashboard/call-context.js +26 -0
  232. package/dist/interface/dashboard/call-context.js.map +1 -0
  233. package/dist/interface/dashboard/event-bus.d.ts +7 -0
  234. package/dist/interface/dashboard/event-bus.js +16 -0
  235. package/dist/interface/dashboard/event-bus.js.map +1 -0
  236. package/dist/interface/dashboard/events.d.ts +30 -0
  237. package/dist/interface/dashboard/events.js +2 -0
  238. package/dist/interface/dashboard/events.js.map +1 -0
  239. package/dist/interface/dashboard/html.d.ts +1 -0
  240. package/dist/interface/dashboard/html.js +1007 -0
  241. package/dist/interface/dashboard/html.js.map +1 -0
  242. package/dist/interface/dashboard/public/200.html +1 -0
  243. package/dist/interface/dashboard/public/404.html +1 -0
  244. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-8KeALpAu2nWJknvJhMk31fqE06iajfSeiM57lsZAo5g.woff +0 -0
  245. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-CAyrLGU3kauAbzcFnj2Cv_iAPV8wT2NEvNmrA_77Up0.woff +0 -0
  246. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-Cbq5YGF_nsoQo6qYm9EhA3p-oINRUqlXhACZ2Wh4BBE.woff +0 -0
  247. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-G1pKsfAhfeIECsLbuPUckyz92yuHFKi9rmiwlRl8Tb0.woff +0 -0
  248. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-OnaIl8fChu9Cb4bpYiOA4dK_W7eeMCjXQOWR8tUhXJ0.woff +0 -0
  249. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-kzEiBeXQ06q7fC06p1Y4RaOpLlRWCnHcCcSaqFMJ6fc.woff +0 -0
  250. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-rmd8_oLeTXCNUhiFyy1UYsogNo6QYBr9dQHrhl_hLbs.woff +0 -0
  251. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-wjJHhPsTzX4mZm37l7bbvLDtOEIT1R38DKPlwV_Z34A.woff +0 -0
  252. package/dist/interface/dashboard/public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2 +0 -0
  253. package/dist/interface/dashboard/public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2 +0 -0
  254. package/dist/interface/dashboard/public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2 +0 -0
  255. package/dist/interface/dashboard/public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2 +0 -0
  256. package/dist/interface/dashboard/public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2 +0 -0
  257. package/dist/interface/dashboard/public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2 +0 -0
  258. package/dist/interface/dashboard/public/_nuxt/BtFgTcXQ.js +30 -0
  259. package/dist/interface/dashboard/public/_nuxt/CdJZeyak.js +30 -0
  260. package/dist/interface/dashboard/public/_nuxt/D9vxbU2B.js +1 -0
  261. package/dist/interface/dashboard/public/_nuxt/DHg6ig_T.js +1 -0
  262. package/dist/interface/dashboard/public/_nuxt/DhFk2_Al.js +1 -0
  263. package/dist/interface/dashboard/public/_nuxt/DlAUqK2U.js +1 -0
  264. package/dist/interface/dashboard/public/_nuxt/DtX-aPBA.js +1 -0
  265. package/dist/interface/dashboard/public/_nuxt/DvCMYK3d.js +1 -0
  266. package/dist/interface/dashboard/public/_nuxt/builds/latest.json +1 -0
  267. package/dist/interface/dashboard/public/_nuxt/builds/meta/027020ec-4e7d-4fc7-8447-19800f7d0bac.json +1 -0
  268. package/dist/interface/dashboard/public/_nuxt/builds/meta/18e19101-a96b-41dc-b602-f9a8f013a036.json +1 -0
  269. package/dist/interface/dashboard/public/_nuxt/builds/meta/2fd3d0d3-6004-4659-9055-d27aa6656fd3.json +1 -0
  270. package/dist/interface/dashboard/public/_nuxt/builds/meta/54792d4b-ca55-4b5d-b0dd-1d7dc34de344.json +1 -0
  271. package/dist/interface/dashboard/public/_nuxt/builds/meta/5959a14b-2494-4e0d-be28-fef9adfd889d.json +1 -0
  272. package/dist/interface/dashboard/public/_nuxt/builds/meta/60cda583-d704-4d4e-b37e-7ab337e3b6cc.json +1 -0
  273. package/dist/interface/dashboard/public/_nuxt/builds/meta/64d05a43-99ec-4c22-934e-071b310b968f.json +1 -0
  274. package/dist/interface/dashboard/public/_nuxt/builds/meta/6c1632a5-f0af-41e3-9d88-12294e03a0b9.json +1 -0
  275. package/dist/interface/dashboard/public/_nuxt/builds/meta/6c80982c-5e2c-446c-aaf6-7000a976e493.json +1 -0
  276. package/dist/interface/dashboard/public/_nuxt/builds/meta/79161adb-748c-4d36-a031-a71899a56ecd.json +1 -0
  277. package/dist/interface/dashboard/public/_nuxt/builds/meta/84e5a87d-4ae5-48dd-8d5e-5b1fe89f7243.json +1 -0
  278. package/dist/interface/dashboard/public/_nuxt/builds/meta/86082677-a11d-4acf-ab04-c3c067a71622.json +1 -0
  279. package/dist/interface/dashboard/public/_nuxt/builds/meta/8892e611-c2b4-425b-a6a5-988314d8da4d.json +1 -0
  280. package/dist/interface/dashboard/public/_nuxt/builds/meta/9bfe6b22-73f8-4584-b13d-ed1df5600e12.json +1 -0
  281. package/dist/interface/dashboard/public/_nuxt/builds/meta/a39bf957-ddae-41a6-a183-08292363098b.json +1 -0
  282. package/dist/interface/dashboard/public/_nuxt/builds/meta/b0bf7fc4-02c1-46fd-acca-f4458feed978.json +1 -0
  283. package/dist/interface/dashboard/public/_nuxt/builds/meta/b2847d83-b695-45d4-9dca-d7498158a501.json +1 -0
  284. package/dist/interface/dashboard/public/_nuxt/builds/meta/c8382eda-1354-4f92-b6d0-5b5b9f43354a.json +1 -0
  285. package/dist/interface/dashboard/public/_nuxt/builds/meta/e707aa44-7202-413d-bcd5-1538b5b56570.json +1 -0
  286. package/dist/interface/dashboard/public/_nuxt/builds/meta/ea661002-05ab-4bfb-b02f-c91bb721c5e9.json +1 -0
  287. package/dist/interface/dashboard/public/_nuxt/builds/meta/f2f23a12-a792-480e-922a-ee8b73dc0310.json +1 -0
  288. package/dist/interface/dashboard/public/_nuxt/builds/meta/f6503b83-d731-40f8-9110-c1599663b3ba.json +1 -0
  289. package/dist/interface/dashboard/public/_nuxt/builds/meta/feac6d04-6bc5-4fa4-a241-79e897d7f8c1.json +1 -0
  290. package/dist/interface/dashboard/public/_nuxt/entry.BSUaoqsu.css +1 -0
  291. package/dist/interface/dashboard/public/_nuxt/entry.Bl31cpjT.css +1 -0
  292. package/dist/interface/dashboard/public/_nuxt/error-404.B6WzzNMA.css +1 -0
  293. package/dist/interface/dashboard/public/_nuxt/error-500.CVIcHofV.css +1 -0
  294. package/dist/interface/dashboard/public/_nuxt/index.BH5Gbe6q.css +1 -0
  295. package/dist/interface/dashboard/public/_nuxt/index.TQmbXYdV.css +1 -0
  296. package/dist/interface/dashboard/public/_nuxt/qq1iUjth.js +1 -0
  297. package/dist/interface/dashboard/public/favicon.ico +0 -0
  298. package/dist/interface/dashboard/public/index.html +1 -0
  299. package/dist/interface/dashboard/server.d.ts +11 -0
  300. package/dist/interface/dashboard/server.js +145 -0
  301. package/dist/interface/dashboard/server.js.map +1 -0
  302. package/dist/interface/dashboard/tool-wrapper.d.ts +4 -0
  303. package/dist/interface/dashboard/tool-wrapper.js +96 -0
  304. package/dist/interface/dashboard/tool-wrapper.js.map +1 -0
  305. package/dist/interface/mcp/server.d.ts +2 -0
  306. package/dist/interface/mcp/server.js +109 -0
  307. package/dist/interface/mcp/server.js.map +1 -0
  308. package/dist/interface/mcp/tools/add-cv.d.ts +3 -0
  309. package/dist/interface/mcp/tools/add-cv.js +21 -0
  310. package/dist/interface/mcp/tools/add-cv.js.map +1 -0
  311. package/dist/interface/mcp/tools/add-job-posting.d.ts +3 -0
  312. package/dist/interface/mcp/tools/add-job-posting.js +38 -0
  313. package/dist/interface/mcp/tools/add-job-posting.js.map +1 -0
  314. package/dist/interface/mcp/tools/add-pipeline-note.d.ts +3 -0
  315. package/dist/interface/mcp/tools/add-pipeline-note.js +32 -0
  316. package/dist/interface/mcp/tools/add-pipeline-note.js.map +1 -0
  317. package/dist/interface/mcp/tools/add-to-pipeline.d.ts +3 -0
  318. package/dist/interface/mcp/tools/add-to-pipeline.js +28 -0
  319. package/dist/interface/mcp/tools/add-to-pipeline.js.map +1 -0
  320. package/dist/interface/mcp/tools/bulk-add-cvs.d.ts +3 -0
  321. package/dist/interface/mcp/tools/bulk-add-cvs.js +28 -0
  322. package/dist/interface/mcp/tools/bulk-add-cvs.js.map +1 -0
  323. package/dist/interface/mcp/tools/delete-cv.d.ts +3 -0
  324. package/dist/interface/mcp/tools/delete-cv.js +20 -0
  325. package/dist/interface/mcp/tools/delete-cv.js.map +1 -0
  326. package/dist/interface/mcp/tools/delete-job-posting.d.ts +3 -0
  327. package/dist/interface/mcp/tools/delete-job-posting.js +27 -0
  328. package/dist/interface/mcp/tools/delete-job-posting.js.map +1 -0
  329. package/dist/interface/mcp/tools/export-results.d.ts +3 -0
  330. package/dist/interface/mcp/tools/export-results.js +23 -0
  331. package/dist/interface/mcp/tools/export-results.js.map +1 -0
  332. package/dist/interface/mcp/tools/filter-candidates.d.ts +3 -0
  333. package/dist/interface/mcp/tools/filter-candidates.js +32 -0
  334. package/dist/interface/mcp/tools/filter-candidates.js.map +1 -0
  335. package/dist/interface/mcp/tools/get-candidate-history.d.ts +3 -0
  336. package/dist/interface/mcp/tools/get-candidate-history.js +22 -0
  337. package/dist/interface/mcp/tools/get-candidate-history.js.map +1 -0
  338. package/dist/interface/mcp/tools/get-cv-chunks.d.ts +3 -0
  339. package/dist/interface/mcp/tools/get-cv-chunks.js +26 -0
  340. package/dist/interface/mcp/tools/get-cv-chunks.js.map +1 -0
  341. package/dist/interface/mcp/tools/get-cv-detail.d.ts +3 -0
  342. package/dist/interface/mcp/tools/get-cv-detail.js +23 -0
  343. package/dist/interface/mcp/tools/get-cv-detail.js.map +1 -0
  344. package/dist/interface/mcp/tools/get-cv-versions.d.ts +3 -0
  345. package/dist/interface/mcp/tools/get-cv-versions.js +20 -0
  346. package/dist/interface/mcp/tools/get-cv-versions.js.map +1 -0
  347. package/dist/interface/mcp/tools/get-job-posting.d.ts +3 -0
  348. package/dist/interface/mcp/tools/get-job-posting.js +26 -0
  349. package/dist/interface/mcp/tools/get-job-posting.js.map +1 -0
  350. package/dist/interface/mcp/tools/get-pending-actions.d.ts +3 -0
  351. package/dist/interface/mcp/tools/get-pending-actions.js +19 -0
  352. package/dist/interface/mcp/tools/get-pending-actions.js.map +1 -0
  353. package/dist/interface/mcp/tools/get-pipeline.d.ts +3 -0
  354. package/dist/interface/mcp/tools/get-pipeline.js +22 -0
  355. package/dist/interface/mcp/tools/get-pipeline.js.map +1 -0
  356. package/dist/interface/mcp/tools/get-server-status.d.ts +3 -0
  357. package/dist/interface/mcp/tools/get-server-status.js +38 -0
  358. package/dist/interface/mcp/tools/get-server-status.js.map +1 -0
  359. package/dist/interface/mcp/tools/get-stats.d.ts +3 -0
  360. package/dist/interface/mcp/tools/get-stats.js +19 -0
  361. package/dist/interface/mcp/tools/get-stats.js.map +1 -0
  362. package/dist/interface/mcp/tools/list-cvs.d.ts +3 -0
  363. package/dist/interface/mcp/tools/list-cvs.js +32 -0
  364. package/dist/interface/mcp/tools/list-cvs.js.map +1 -0
  365. package/dist/interface/mcp/tools/list-job-postings.d.ts +3 -0
  366. package/dist/interface/mcp/tools/list-job-postings.js +19 -0
  367. package/dist/interface/mcp/tools/list-job-postings.js.map +1 -0
  368. package/dist/interface/mcp/tools/manage-tags.d.ts +3 -0
  369. package/dist/interface/mcp/tools/manage-tags.js +24 -0
  370. package/dist/interface/mcp/tools/manage-tags.js.map +1 -0
  371. package/dist/interface/mcp/tools/match-candidates.d.ts +3 -0
  372. package/dist/interface/mcp/tools/match-candidates.js +23 -0
  373. package/dist/interface/mcp/tools/match-candidates.js.map +1 -0
  374. package/dist/interface/mcp/tools/reset-database.d.ts +3 -0
  375. package/dist/interface/mcp/tools/reset-database.js +35 -0
  376. package/dist/interface/mcp/tools/reset-database.js.map +1 -0
  377. package/dist/interface/mcp/tools/semantic-search.d.ts +3 -0
  378. package/dist/interface/mcp/tools/semantic-search.js +27 -0
  379. package/dist/interface/mcp/tools/semantic-search.js.map +1 -0
  380. package/dist/interface/mcp/tools/set-pending-action.d.ts +3 -0
  381. package/dist/interface/mcp/tools/set-pending-action.js +36 -0
  382. package/dist/interface/mcp/tools/set-pending-action.js.map +1 -0
  383. package/dist/interface/mcp/tools/update-cv.d.ts +3 -0
  384. package/dist/interface/mcp/tools/update-cv.js +23 -0
  385. package/dist/interface/mcp/tools/update-cv.js.map +1 -0
  386. package/dist/interface/mcp/tools/update-job-posting.d.ts +3 -0
  387. package/dist/interface/mcp/tools/update-job-posting.js +42 -0
  388. package/dist/interface/mcp/tools/update-job-posting.js.map +1 -0
  389. package/dist/interface/mcp/tools/update-pipeline-status.d.ts +3 -0
  390. package/dist/interface/mcp/tools/update-pipeline-status.js +41 -0
  391. package/dist/interface/mcp/tools/update-pipeline-status.js.map +1 -0
  392. package/dist/interface/mcp/types.d.ts +26 -0
  393. package/dist/interface/mcp/types.js +2 -0
  394. package/dist/interface/mcp/types.js.map +1 -0
  395. package/dist/shared/errors/index.d.ts +32 -0
  396. package/dist/shared/errors/index.js +56 -0
  397. package/dist/shared/errors/index.js.map +1 -0
  398. package/dist/shared/types/index.d.ts +19 -0
  399. package/dist/shared/types/index.js +2 -0
  400. package/dist/shared/types/index.js.map +1 -0
  401. package/dist/shared/utils/chunking.d.ts +3 -0
  402. package/dist/shared/utils/chunking.js +89 -0
  403. package/dist/shared/utils/chunking.js.map +1 -0
  404. package/dist/shared/utils/file-storage.d.ts +8 -0
  405. package/dist/shared/utils/file-storage.js +49 -0
  406. package/dist/shared/utils/file-storage.js.map +1 -0
  407. package/dist/shared/utils/index.d.ts +3 -0
  408. package/dist/shared/utils/index.js +4 -0
  409. package/dist/shared/utils/index.js.map +1 -0
  410. package/dist/shared/utils/text.d.ts +5 -0
  411. package/dist/shared/utils/text.js +21 -0
  412. package/dist/shared/utils/text.js.map +1 -0
  413. package/package.json +72 -0
@@ -0,0 +1,103 @@
1
+ import { nanoid } from 'nanoid';
2
+ import { detectFileType } from '../../shared/utils/text.js';
3
+ import { createChunks } from '../../shared/utils/chunking.js';
4
+ import { CandidateNotFoundError, UnsupportedFileTypeError, DocumentParseError } from '../../shared/errors/index.js';
5
+ import { resolveFilePath } from '../../shared/utils/file-storage.js';
6
+ export class UpdateCvUseCase {
7
+ candidateRepo;
8
+ chunkRepo;
9
+ versionRepo;
10
+ parsers;
11
+ embeddingService;
12
+ extractor;
13
+ constructor(candidateRepo, chunkRepo, versionRepo, parsers, embeddingService, extractor) {
14
+ this.candidateRepo = candidateRepo;
15
+ this.chunkRepo = chunkRepo;
16
+ this.versionRepo = versionRepo;
17
+ this.parsers = parsers;
18
+ this.embeddingService = embeddingService;
19
+ this.extractor = extractor;
20
+ }
21
+ async execute(candidateId, filePath) {
22
+ const existing = await this.candidateRepo.findById(candidateId);
23
+ if (!existing) {
24
+ throw new CandidateNotFoundError(candidateId);
25
+ }
26
+ await this.versionRepo.save({
27
+ id: nanoid(),
28
+ candidateId,
29
+ version: existing.version,
30
+ data: JSON.stringify(existing),
31
+ createdAt: new Date().toISOString(),
32
+ });
33
+ await this.chunkRepo.deleteByCandidateId(candidateId);
34
+ // Resolve Unicode NFC/NFD filename normalization differences
35
+ const resolvedPath = await resolveFilePath(filePath);
36
+ const fileType = detectFileType(resolvedPath);
37
+ const parser = this.parsers.find((p) => p.supports(fileType));
38
+ if (!parser) {
39
+ throw new UnsupportedFileTypeError(fileType);
40
+ }
41
+ const { text: rawText } = await parser.parse(resolvedPath);
42
+ if (!rawText || rawText.trim().length < 50) {
43
+ throw new DocumentParseError(`No extractable text found in ${resolvedPath}. The file may contain images that could not be processed.`);
44
+ }
45
+ const extracted = await this.extractor.extract(rawText);
46
+ const chunkInputs = createChunks(extracted, rawText);
47
+ const vectors = await this.embeddingService.embedBatch(chunkInputs.map((c) => c.content));
48
+ const now = new Date().toISOString();
49
+ const updated = {
50
+ id: candidateId,
51
+ name: extracted.name,
52
+ contact: {
53
+ email: extracted.email,
54
+ phone: extracted.phone,
55
+ location: extracted.location,
56
+ },
57
+ summary: extracted.summary,
58
+ experience: extracted.experience.map((e) => ({
59
+ company: e.company,
60
+ position: e.position,
61
+ startDate: e.startDate,
62
+ endDate: e.endDate,
63
+ description: e.description,
64
+ })),
65
+ education: extracted.education.map((e) => ({
66
+ institution: e.institution,
67
+ degree: e.degree,
68
+ field: e.field,
69
+ startDate: e.startDate,
70
+ endDate: e.endDate,
71
+ })),
72
+ skills: extracted.skills,
73
+ languages: extracted.languages,
74
+ certifications: extracted.certifications,
75
+ projects: extracted.projects,
76
+ links: extracted.links,
77
+ tags: existing.tags,
78
+ experienceYears: extracted.totalExperienceYears,
79
+ avgTenureMonths: extracted.avgTenureMonths,
80
+ shortStintCount: extracted.shortStintCount,
81
+ loyaltyScore: extracted.loyaltyScore,
82
+ sourceFile: resolvedPath,
83
+ fileType,
84
+ rawText,
85
+ createdAt: existing.createdAt,
86
+ updatedAt: now,
87
+ version: existing.version + 1,
88
+ };
89
+ const chunks = chunkInputs.map((input, i) => ({
90
+ id: nanoid(),
91
+ candidateId,
92
+ sectionType: input.sectionType,
93
+ content: input.content,
94
+ vector: vectors[i],
95
+ metadata: input.metadata,
96
+ createdAt: now,
97
+ }));
98
+ await this.candidateRepo.update(updated);
99
+ await this.chunkRepo.saveMany(chunks);
100
+ return updated;
101
+ }
102
+ }
103
+ //# sourceMappingURL=update-cv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-cv.js","sourceRoot":"","sources":["../../../src/application/use-cases/update-cv.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,19 @@
1
+ import type { IJobPostingRepository } from '../../domain/repositories/job-posting-repository.js';
2
+ import type { JobPosting } from '../../domain/entities/job-posting.js';
3
+ export interface UpdateJobPostingInput {
4
+ id: string;
5
+ title?: string;
6
+ description?: string;
7
+ rawText?: string;
8
+ requirements?: string;
9
+ requiredSkills?: string[];
10
+ preferredSkills?: string[];
11
+ location?: string;
12
+ salaryRange?: string;
13
+ status?: 'open' | 'closed';
14
+ }
15
+ export declare class UpdateJobPostingUseCase {
16
+ private jobPostingRepo;
17
+ constructor(jobPostingRepo: IJobPostingRepository);
18
+ execute(input: UpdateJobPostingInput): Promise<JobPosting>;
19
+ }
@@ -0,0 +1,28 @@
1
+ export class UpdateJobPostingUseCase {
2
+ jobPostingRepo;
3
+ constructor(jobPostingRepo) {
4
+ this.jobPostingRepo = jobPostingRepo;
5
+ }
6
+ async execute(input) {
7
+ const existing = await this.jobPostingRepo.findById(input.id);
8
+ if (!existing) {
9
+ throw new Error(`Job posting not found: ${input.id}`);
10
+ }
11
+ const updated = {
12
+ ...existing,
13
+ title: input.title ?? existing.title,
14
+ description: input.description ?? existing.description,
15
+ rawText: input.rawText ?? existing.rawText,
16
+ requirements: input.requirements ?? existing.requirements,
17
+ requiredSkills: input.requiredSkills ?? existing.requiredSkills,
18
+ preferredSkills: input.preferredSkills ?? existing.preferredSkills,
19
+ location: input.location ?? existing.location,
20
+ salaryRange: input.salaryRange ?? existing.salaryRange,
21
+ status: input.status ?? existing.status,
22
+ updatedAt: new Date().toISOString(),
23
+ };
24
+ await this.jobPostingRepo.update(updated);
25
+ return updated;
26
+ }
27
+ }
28
+ //# sourceMappingURL=update-job-posting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-job-posting.js","sourceRoot":"","sources":["../../../src/application/use-cases/update-job-posting.ts"],"names":[],"mappings":"AAgBA,MAAM,OAAO,uBAAuB;IACd;IAApB,YAAoB,cAAqC;QAArC,mBAAc,GAAd,cAAc,CAAuB;IAAG,CAAC;IAE7D,KAAK,CAAC,OAAO,CAAC,KAA4B;QACxC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC9D,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,0BAA0B,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;QACxD,CAAC;QAED,MAAM,OAAO,GAAe;YAC1B,GAAG,QAAQ;YACX,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC,KAAK;YACpC,WAAW,EAAE,KAAK,CAAC,WAAW,IAAI,QAAQ,CAAC,WAAW;YACtD,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO;YAC1C,YAAY,EAAE,KAAK,CAAC,YAAY,IAAI,QAAQ,CAAC,YAAY;YACzD,cAAc,EAAE,KAAK,CAAC,cAAc,IAAI,QAAQ,CAAC,cAAc;YAC/D,eAAe,EAAE,KAAK,CAAC,eAAe,IAAI,QAAQ,CAAC,eAAe;YAClE,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ;YAC7C,WAAW,EAAE,KAAK,CAAC,WAAW,IAAI,QAAQ,CAAC,WAAW;YACtD,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM;YACvC,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACpC,CAAC;QAEF,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC1C,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
@@ -0,0 +1,14 @@
1
+ import type { IApplicationRepository } from '../../domain/repositories/application-repository.js';
2
+ import type { IApplicationEventRepository } from '../../domain/repositories/application-event-repository.js';
3
+ import type { Application, ApplicationStatus } from '../../domain/entities/application.js';
4
+ export interface UpdatePipelineStatusInput {
5
+ applicationId: string;
6
+ newStatus: ApplicationStatus;
7
+ note?: string;
8
+ }
9
+ export declare class UpdatePipelineStatusUseCase {
10
+ private applicationRepo;
11
+ private eventRepo;
12
+ constructor(applicationRepo: IApplicationRepository, eventRepo: IApplicationEventRepository);
13
+ execute(input: UpdatePipelineStatusInput): Promise<Application>;
14
+ }
@@ -0,0 +1,38 @@
1
+ import { nanoid } from 'nanoid';
2
+ export class UpdatePipelineStatusUseCase {
3
+ applicationRepo;
4
+ eventRepo;
5
+ constructor(applicationRepo, eventRepo) {
6
+ this.applicationRepo = applicationRepo;
7
+ this.eventRepo = eventRepo;
8
+ }
9
+ async execute(input) {
10
+ const application = await this.applicationRepo.findById(input.applicationId);
11
+ if (!application) {
12
+ throw new Error(`Application not found: ${input.applicationId}`);
13
+ }
14
+ if (application.status === input.newStatus) {
15
+ throw new Error(`Application is already in "${input.newStatus}" status`);
16
+ }
17
+ const now = new Date().toISOString();
18
+ const updated = {
19
+ ...application,
20
+ status: input.newStatus,
21
+ notes: input.note ? `${application.notes}\n[${now}] ${input.note}`.trim() : application.notes,
22
+ updatedAt: now,
23
+ };
24
+ await this.applicationRepo.update(updated);
25
+ const event = {
26
+ id: nanoid(),
27
+ applicationId: input.applicationId,
28
+ eventType: 'status_change',
29
+ fromStatus: application.status,
30
+ toStatus: input.newStatus,
31
+ note: input.note ?? `Status changed from ${application.status} to ${input.newStatus}`,
32
+ createdAt: now,
33
+ };
34
+ await this.eventRepo.save(event);
35
+ return updated;
36
+ }
37
+ }
38
+ //# sourceMappingURL=update-pipeline-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-pipeline-status.js","sourceRoot":"","sources":["../../../src/application/use-cases/update-pipeline-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAYhC,MAAM,OAAO,2BAA2B;IAE5B;IACA;IAFV,YACU,eAAuC,EACvC,SAAsC;QADtC,oBAAe,GAAf,eAAe,CAAwB;QACvC,cAAS,GAAT,SAAS,CAA6B;IAC7C,CAAC;IAEJ,KAAK,CAAC,OAAO,CAAC,KAAgC;QAC5C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAC7E,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,0BAA0B,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC;QACnE,CAAC;QAED,IAAI,WAAW,CAAC,MAAM,KAAK,KAAK,CAAC,SAAS,EAAE,CAAC;YAC3C,MAAM,IAAI,KAAK,CAAC,8BAA8B,KAAK,CAAC,SAAS,UAAU,CAAC,CAAC;QAC3E,CAAC;QAED,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAErC,MAAM,OAAO,GAAgB;YAC3B,GAAG,WAAW;YACd,MAAM,EAAE,KAAK,CAAC,SAAS;YACvB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,KAAK,MAAM,GAAG,KAAK,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK;YAC7F,SAAS,EAAE,GAAG;SACf,CAAC;QAEF,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAE3C,MAAM,KAAK,GAAqB;YAC9B,EAAE,EAAE,MAAM,EAAE;YACZ,aAAa,EAAE,KAAK,CAAC,aAAa;YAClC,SAAS,EAAE,eAAe;YAC1B,UAAU,EAAE,WAAW,CAAC,MAAM;YAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS;YACzB,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,uBAAuB,WAAW,CAAC,MAAM,OAAO,KAAK,CAAC,SAAS,EAAE;YACrF,SAAS,EAAE,GAAG;SACf,CAAC;QAEF,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEjC,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
@@ -0,0 +1,11 @@
1
+ export type ApplicationEventType = 'status_change' | 'note' | 'call_attempt' | 'interview';
2
+ export interface ApplicationEvent {
3
+ readonly id: string;
4
+ readonly applicationId: string;
5
+ readonly eventType: ApplicationEventType;
6
+ readonly fromStatus?: string;
7
+ readonly toStatus?: string;
8
+ readonly note: string;
9
+ readonly scheduledAt?: string;
10
+ readonly createdAt: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=application-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-event.js","sourceRoot":"","sources":["../../../src/domain/entities/application-event.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ export type ApplicationStatus = 'new' | 'contacted' | 'unreachable' | 'not_interested' | 'interview_scheduled' | 'no_show' | 'interviewed' | 'rejected' | 'offer_sent' | 'hired';
2
+ export interface Application {
3
+ readonly id: string;
4
+ readonly jobPostingId: string;
5
+ readonly candidateId: string;
6
+ readonly status: ApplicationStatus;
7
+ readonly notes: string;
8
+ readonly pendingAction?: string;
9
+ readonly pendingActionDue?: string;
10
+ readonly pendingActionOwner?: 'us' | 'candidate';
11
+ readonly createdAt: string;
12
+ readonly updatedAt: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=application.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.js","sourceRoot":"","sources":["../../../src/domain/entities/application.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import type { ContactInfo, Experience, Education, Language, Certification, Project, Links } from '../value-objects/index.js';
2
+ export interface Candidate {
3
+ readonly id: string;
4
+ readonly name: string;
5
+ readonly contact: ContactInfo;
6
+ readonly summary?: string;
7
+ readonly experience: Experience[];
8
+ readonly education: Education[];
9
+ readonly skills: string[];
10
+ readonly languages: Language[];
11
+ readonly certifications: Certification[];
12
+ readonly projects: Project[];
13
+ readonly links?: Links;
14
+ readonly tags: string[];
15
+ readonly experienceYears?: number;
16
+ readonly avgTenureMonths?: number;
17
+ readonly shortStintCount?: number;
18
+ readonly loyaltyScore?: 'stable' | 'moderate' | 'flight_risk';
19
+ readonly originalFilePath?: string;
20
+ readonly sourceFile: string;
21
+ readonly fileType: string;
22
+ readonly rawText: string;
23
+ readonly createdAt: string;
24
+ readonly updatedAt: string;
25
+ readonly version: number;
26
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=candidate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"candidate.js","sourceRoot":"","sources":["../../../src/domain/entities/candidate.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import type { SectionType } from '../../shared/types/index.js';
2
+ export interface CvChunk {
3
+ readonly id: string;
4
+ readonly candidateId: string;
5
+ readonly sectionType: SectionType;
6
+ readonly content: string;
7
+ readonly vector: number[];
8
+ readonly metadata: Record<string, unknown>;
9
+ readonly createdAt: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cv-chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cv-chunk.js","sourceRoot":"","sources":["../../../src/domain/entities/cv-chunk.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface CvVersion {
2
+ readonly id: string;
3
+ readonly candidateId: string;
4
+ readonly version: number;
5
+ readonly data: string;
6
+ readonly createdAt: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cv-version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cv-version.js","sourceRoot":"","sources":["../../../src/domain/entities/cv-version.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type { Candidate } from './candidate.js';
2
+ export type { CvChunk } from './cv-chunk.js';
3
+ export type { CvVersion } from './cv-version.js';
4
+ export type { JobPosting } from './job-posting.js';
5
+ export type { Application, ApplicationStatus } from './application.js';
6
+ export type { ApplicationEvent, ApplicationEventType } from './application-event.js';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/entities/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export interface JobPosting {
2
+ readonly id: string;
3
+ readonly title: string;
4
+ readonly description: string;
5
+ readonly rawText?: string;
6
+ readonly requirements?: string;
7
+ readonly requiredSkills: string[];
8
+ readonly preferredSkills: string[];
9
+ readonly location?: string;
10
+ readonly salaryRange?: string;
11
+ readonly status: 'open' | 'closed';
12
+ readonly createdAt: string;
13
+ readonly updatedAt: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=job-posting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"job-posting.js","sourceRoot":"","sources":["../../../src/domain/entities/job-posting.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { ApplicationEvent } from '../entities/application-event.js';
2
+ export interface IApplicationEventRepository {
3
+ save(event: ApplicationEvent): Promise<void>;
4
+ findByApplicationId(applicationId: string): Promise<ApplicationEvent[]>;
5
+ deleteByApplicationId(applicationId: string): Promise<void>;
6
+ count(): Promise<number>;
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=application-event-repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-event-repository.js","sourceRoot":"","sources":["../../../src/domain/repositories/application-event-repository.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { Application } from '../entities/application.js';
2
+ export interface IApplicationRepository {
3
+ save(application: Application): Promise<void>;
4
+ findById(id: string): Promise<Application | null>;
5
+ findByJobPostingId(jobPostingId: string): Promise<Application[]>;
6
+ findByCandidateId(candidateId: string): Promise<Application[]>;
7
+ findByJobAndCandidate(jobPostingId: string, candidateId: string): Promise<Application | null>;
8
+ findPendingActions(): Promise<Application[]>;
9
+ update(application: Application): Promise<void>;
10
+ delete(id: string): Promise<void>;
11
+ count(): Promise<number>;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=application-repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-repository.js","sourceRoot":"","sources":["../../../src/domain/repositories/application-repository.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { Candidate } from '../entities/candidate.js';
2
+ import type { PaginationOptions, SortOptions } from '../../shared/types/index.js';
3
+ export interface ICandidateRepository {
4
+ save(candidate: Candidate): Promise<void>;
5
+ findById(id: string): Promise<Candidate | null>;
6
+ findByEmail(email: string): Promise<Candidate | null>;
7
+ findAll(pagination?: PaginationOptions, sort?: SortOptions): Promise<Candidate[]>;
8
+ update(candidate: Candidate): Promise<void>;
9
+ delete(id: string): Promise<void>;
10
+ count(): Promise<number>;
11
+ filter(whereClause: string): Promise<Candidate[]>;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=candidate-repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"candidate-repository.js","sourceRoot":"","sources":["../../../src/domain/repositories/candidate-repository.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import type { CvChunk } from '../entities/cv-chunk.js';
2
+ import type { SectionType } from '../../shared/types/index.js';
3
+ export interface SearchResult {
4
+ chunk: CvChunk;
5
+ score: number;
6
+ }
7
+ export interface IChunkRepository {
8
+ saveMany(chunks: CvChunk[]): Promise<void>;
9
+ findByCandidateId(candidateId: string, sectionType?: SectionType): Promise<CvChunk[]>;
10
+ deleteByCandidateId(candidateId: string): Promise<void>;
11
+ semanticSearch(queryVector: number[], limit: number, filter?: string): Promise<SearchResult[]>;
12
+ count(): Promise<number>;
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=chunk-repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-repository.js","sourceRoot":"","sources":["../../../src/domain/repositories/chunk-repository.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type { ICandidateRepository } from './candidate-repository.js';
2
+ export type { IChunkRepository, SearchResult } from './chunk-repository.js';
3
+ export type { IVersionRepository } from './version-repository.js';
4
+ export type { IJobPostingRepository } from './job-posting-repository.js';
5
+ export type { IApplicationRepository } from './application-repository.js';
6
+ export type { IApplicationEventRepository } from './application-event-repository.js';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/repositories/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import type { JobPosting } from '../entities/job-posting.js';
2
+ export interface IJobPostingRepository {
3
+ save(jobPosting: JobPosting): Promise<void>;
4
+ findById(id: string): Promise<JobPosting | null>;
5
+ findAll(): Promise<JobPosting[]>;
6
+ update(jobPosting: JobPosting): Promise<void>;
7
+ delete(id: string): Promise<void>;
8
+ count(): Promise<number>;
9
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=job-posting-repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"job-posting-repository.js","sourceRoot":"","sources":["../../../src/domain/repositories/job-posting-repository.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { CvVersion } from '../entities/cv-version.js';
2
+ export interface IVersionRepository {
3
+ save(version: CvVersion): Promise<void>;
4
+ findByCandidateId(candidateId: string): Promise<CvVersion[]>;
5
+ deleteByCandidateId(candidateId: string): Promise<void>;
6
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=version-repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-repository.js","sourceRoot":"","sources":["../../../src/domain/repositories/version-repository.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface Certification {
2
+ readonly name: string;
3
+ readonly issuer?: string;
4
+ readonly date?: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=certification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certification.js","sourceRoot":"","sources":["../../../src/domain/value-objects/certification.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface ContactInfo {
2
+ readonly email?: string;
3
+ readonly phone?: string;
4
+ readonly location?: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=contact-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact-info.js","sourceRoot":"","sources":["../../../src/domain/value-objects/contact-info.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface Education {
2
+ readonly institution: string;
3
+ readonly degree?: string;
4
+ readonly field?: string;
5
+ readonly startDate?: string;
6
+ readonly endDate?: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=education.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"education.js","sourceRoot":"","sources":["../../../src/domain/value-objects/education.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface Experience {
2
+ readonly company: string;
3
+ readonly position: string;
4
+ readonly startDate?: string;
5
+ readonly endDate?: string;
6
+ readonly description?: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=experience.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experience.js","sourceRoot":"","sources":["../../../src/domain/value-objects/experience.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export type { ContactInfo } from './contact-info.js';
2
+ export type { Experience } from './experience.js';
3
+ export type { Education } from './education.js';
4
+ export type { Language } from './language.js';
5
+ export type { Certification } from './certification.js';
6
+ export type { Project } from './project.js';
7
+ export type { Links } from './links.js';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/value-objects/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface Language {
2
+ readonly language: string;
3
+ readonly level?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=language.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"language.js","sourceRoot":"","sources":["../../../src/domain/value-objects/language.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface Links {
2
+ readonly linkedin?: string;
3
+ readonly github?: string;
4
+ readonly portfolio?: string;
5
+ readonly other?: string[];
6
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=links.js.map