@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.
- package/README.md +261 -0
- package/dist/application/dto/candidate-summary.d.ts +10 -0
- package/dist/application/dto/candidate-summary.js +2 -0
- package/dist/application/dto/candidate-summary.js.map +1 -0
- package/dist/application/dto/extracted-cv.d.ts +46 -0
- package/dist/application/dto/extracted-cv.js +2 -0
- package/dist/application/dto/extracted-cv.js.map +1 -0
- package/dist/application/dto/filter-input.d.ts +7 -0
- package/dist/application/dto/filter-input.js +2 -0
- package/dist/application/dto/filter-input.js.map +1 -0
- package/dist/application/dto/index.d.ts +5 -0
- package/dist/application/dto/index.js +2 -0
- package/dist/application/dto/index.js.map +1 -0
- package/dist/application/dto/search-results.d.ts +13 -0
- package/dist/application/dto/search-results.js +2 -0
- package/dist/application/dto/search-results.js.map +1 -0
- package/dist/application/dto/stats.d.ts +10 -0
- package/dist/application/dto/stats.js +2 -0
- package/dist/application/dto/stats.js.map +1 -0
- package/dist/application/ports/document-parser.d.ts +8 -0
- package/dist/application/ports/document-parser.js +2 -0
- package/dist/application/ports/document-parser.js.map +1 -0
- package/dist/application/ports/embedding-service.d.ts +4 -0
- package/dist/application/ports/embedding-service.js +2 -0
- package/dist/application/ports/embedding-service.js.map +1 -0
- package/dist/application/ports/export-service.d.ts +5 -0
- package/dist/application/ports/export-service.js +2 -0
- package/dist/application/ports/export-service.js.map +1 -0
- package/dist/application/ports/index.d.ts +4 -0
- package/dist/application/ports/index.js +2 -0
- package/dist/application/ports/index.js.map +1 -0
- package/dist/application/ports/structured-extractor.d.ts +4 -0
- package/dist/application/ports/structured-extractor.js +2 -0
- package/dist/application/ports/structured-extractor.js.map +1 -0
- package/dist/application/use-cases/add-cv.d.ts +16 -0
- package/dist/application/use-cases/add-cv.js +113 -0
- package/dist/application/use-cases/add-cv.js.map +1 -0
- package/dist/application/use-cases/add-job-posting.d.ts +17 -0
- package/dist/application/use-cases/add-job-posting.js +27 -0
- package/dist/application/use-cases/add-job-posting.js.map +1 -0
- package/dist/application/use-cases/add-pipeline-note.d.ts +15 -0
- package/dist/application/use-cases/add-pipeline-note.js +34 -0
- package/dist/application/use-cases/add-pipeline-note.js.map +1 -0
- package/dist/application/use-cases/add-to-pipeline.d.ts +18 -0
- package/dist/application/use-cases/add-to-pipeline.js +54 -0
- package/dist/application/use-cases/add-to-pipeline.js.map +1 -0
- package/dist/application/use-cases/bulk-add-cvs.d.ts +14 -0
- package/dist/application/use-cases/bulk-add-cvs.js +32 -0
- package/dist/application/use-cases/bulk-add-cvs.js.map +1 -0
- package/dist/application/use-cases/delete-cv.d.ts +10 -0
- package/dist/application/use-cases/delete-cv.js +21 -0
- package/dist/application/use-cases/delete-cv.js.map +1 -0
- package/dist/application/use-cases/export-results.d.ts +9 -0
- package/dist/application/use-cases/export-results.js +21 -0
- package/dist/application/use-cases/export-results.js.map +1 -0
- package/dist/application/use-cases/filter-candidates.d.ts +9 -0
- package/dist/application/use-cases/filter-candidates.js +51 -0
- package/dist/application/use-cases/filter-candidates.js.map +1 -0
- package/dist/application/use-cases/get-candidate-history.d.ts +25 -0
- package/dist/application/use-cases/get-candidate-history.js +36 -0
- package/dist/application/use-cases/get-candidate-history.js.map +1 -0
- package/dist/application/use-cases/get-cv-chunks.d.ts +15 -0
- package/dist/application/use-cases/get-cv-chunks.js +18 -0
- package/dist/application/use-cases/get-cv-chunks.js.map +1 -0
- package/dist/application/use-cases/get-cv-detail.d.ts +7 -0
- package/dist/application/use-cases/get-cv-detail.js +15 -0
- package/dist/application/use-cases/get-cv-detail.js.map +1 -0
- package/dist/application/use-cases/get-cv-versions.d.ts +9 -0
- package/dist/application/use-cases/get-cv-versions.js +18 -0
- package/dist/application/use-cases/get-cv-versions.js.map +1 -0
- package/dist/application/use-cases/get-pending-actions.d.ts +23 -0
- package/dist/application/use-cases/get-pending-actions.js +50 -0
- package/dist/application/use-cases/get-pending-actions.js.map +1 -0
- package/dist/application/use-cases/get-pipeline.d.ts +27 -0
- package/dist/application/use-cases/get-pipeline.js +40 -0
- package/dist/application/use-cases/get-pipeline.js.map +1 -0
- package/dist/application/use-cases/get-stats.d.ts +13 -0
- package/dist/application/use-cases/get-stats.js +50 -0
- package/dist/application/use-cases/get-stats.js.map +1 -0
- package/dist/application/use-cases/index.d.ts +23 -0
- package/dist/application/use-cases/index.js +24 -0
- package/dist/application/use-cases/index.js.map +1 -0
- package/dist/application/use-cases/list-cvs.d.ts +8 -0
- package/dist/application/use-cases/list-cvs.js +20 -0
- package/dist/application/use-cases/list-cvs.js.map +1 -0
- package/dist/application/use-cases/list-job-postings.d.ts +7 -0
- package/dist/application/use-cases/list-job-postings.js +10 -0
- package/dist/application/use-cases/list-job-postings.js.map +1 -0
- package/dist/application/use-cases/manage-tags.d.ts +7 -0
- package/dist/application/use-cases/manage-tags.js +36 -0
- package/dist/application/use-cases/manage-tags.js.map +1 -0
- package/dist/application/use-cases/match-candidates.d.ts +27 -0
- package/dist/application/use-cases/match-candidates.js +92 -0
- package/dist/application/use-cases/match-candidates.js.map +1 -0
- package/dist/application/use-cases/semantic-search.d.ts +11 -0
- package/dist/application/use-cases/semantic-search.js +40 -0
- package/dist/application/use-cases/semantic-search.js.map +1 -0
- package/dist/application/use-cases/set-pending-action.d.ts +13 -0
- package/dist/application/use-cases/set-pending-action.js +24 -0
- package/dist/application/use-cases/set-pending-action.js.map +1 -0
- package/dist/application/use-cases/update-cv.d.ts +17 -0
- package/dist/application/use-cases/update-cv.js +103 -0
- package/dist/application/use-cases/update-cv.js.map +1 -0
- package/dist/application/use-cases/update-job-posting.d.ts +19 -0
- package/dist/application/use-cases/update-job-posting.js +28 -0
- package/dist/application/use-cases/update-job-posting.js.map +1 -0
- package/dist/application/use-cases/update-pipeline-status.d.ts +14 -0
- package/dist/application/use-cases/update-pipeline-status.js +38 -0
- package/dist/application/use-cases/update-pipeline-status.js.map +1 -0
- package/dist/domain/entities/application-event.d.ts +11 -0
- package/dist/domain/entities/application-event.js +2 -0
- package/dist/domain/entities/application-event.js.map +1 -0
- package/dist/domain/entities/application.d.ts +13 -0
- package/dist/domain/entities/application.js +2 -0
- package/dist/domain/entities/application.js.map +1 -0
- package/dist/domain/entities/candidate.d.ts +26 -0
- package/dist/domain/entities/candidate.js +2 -0
- package/dist/domain/entities/candidate.js.map +1 -0
- package/dist/domain/entities/cv-chunk.d.ts +10 -0
- package/dist/domain/entities/cv-chunk.js +2 -0
- package/dist/domain/entities/cv-chunk.js.map +1 -0
- package/dist/domain/entities/cv-version.d.ts +7 -0
- package/dist/domain/entities/cv-version.js +2 -0
- package/dist/domain/entities/cv-version.js.map +1 -0
- package/dist/domain/entities/index.d.ts +6 -0
- package/dist/domain/entities/index.js +2 -0
- package/dist/domain/entities/index.js.map +1 -0
- package/dist/domain/entities/job-posting.d.ts +14 -0
- package/dist/domain/entities/job-posting.js +2 -0
- package/dist/domain/entities/job-posting.js.map +1 -0
- package/dist/domain/repositories/application-event-repository.d.ts +7 -0
- package/dist/domain/repositories/application-event-repository.js +2 -0
- package/dist/domain/repositories/application-event-repository.js.map +1 -0
- package/dist/domain/repositories/application-repository.d.ts +12 -0
- package/dist/domain/repositories/application-repository.js +2 -0
- package/dist/domain/repositories/application-repository.js.map +1 -0
- package/dist/domain/repositories/candidate-repository.d.ts +12 -0
- package/dist/domain/repositories/candidate-repository.js +2 -0
- package/dist/domain/repositories/candidate-repository.js.map +1 -0
- package/dist/domain/repositories/chunk-repository.d.ts +13 -0
- package/dist/domain/repositories/chunk-repository.js +2 -0
- package/dist/domain/repositories/chunk-repository.js.map +1 -0
- package/dist/domain/repositories/index.d.ts +6 -0
- package/dist/domain/repositories/index.js +2 -0
- package/dist/domain/repositories/index.js.map +1 -0
- package/dist/domain/repositories/job-posting-repository.d.ts +9 -0
- package/dist/domain/repositories/job-posting-repository.js +2 -0
- package/dist/domain/repositories/job-posting-repository.js.map +1 -0
- package/dist/domain/repositories/version-repository.d.ts +6 -0
- package/dist/domain/repositories/version-repository.js +2 -0
- package/dist/domain/repositories/version-repository.js.map +1 -0
- package/dist/domain/value-objects/certification.d.ts +5 -0
- package/dist/domain/value-objects/certification.js +2 -0
- package/dist/domain/value-objects/certification.js.map +1 -0
- package/dist/domain/value-objects/contact-info.d.ts +5 -0
- package/dist/domain/value-objects/contact-info.js +2 -0
- package/dist/domain/value-objects/contact-info.js.map +1 -0
- package/dist/domain/value-objects/education.d.ts +7 -0
- package/dist/domain/value-objects/education.js +2 -0
- package/dist/domain/value-objects/education.js.map +1 -0
- package/dist/domain/value-objects/experience.d.ts +7 -0
- package/dist/domain/value-objects/experience.js +2 -0
- package/dist/domain/value-objects/experience.js.map +1 -0
- package/dist/domain/value-objects/index.d.ts +7 -0
- package/dist/domain/value-objects/index.js +2 -0
- package/dist/domain/value-objects/index.js.map +1 -0
- package/dist/domain/value-objects/language.d.ts +4 -0
- package/dist/domain/value-objects/language.js +2 -0
- package/dist/domain/value-objects/language.js.map +1 -0
- package/dist/domain/value-objects/links.d.ts +6 -0
- package/dist/domain/value-objects/links.js +2 -0
- package/dist/domain/value-objects/links.js.map +1 -0
- package/dist/domain/value-objects/project.d.ts +5 -0
- package/dist/domain/value-objects/project.js +2 -0
- package/dist/domain/value-objects/project.js.map +1 -0
- package/dist/infrastructure/ai/index.d.ts +2 -0
- package/dist/infrastructure/ai/index.js +3 -0
- package/dist/infrastructure/ai/index.js.map +1 -0
- package/dist/infrastructure/ai/openai-embedding-service.d.ts +8 -0
- package/dist/infrastructure/ai/openai-embedding-service.js +39 -0
- package/dist/infrastructure/ai/openai-embedding-service.js.map +1 -0
- package/dist/infrastructure/ai/openai-structured-extractor.d.ts +9 -0
- package/dist/infrastructure/ai/openai-structured-extractor.js +163 -0
- package/dist/infrastructure/ai/openai-structured-extractor.js.map +1 -0
- package/dist/infrastructure/config/app-config.d.ts +9 -0
- package/dist/infrastructure/config/app-config.js +15 -0
- package/dist/infrastructure/config/app-config.js.map +1 -0
- package/dist/infrastructure/export/csv-export-service.d.ts +6 -0
- package/dist/infrastructure/export/csv-export-service.js +24 -0
- package/dist/infrastructure/export/csv-export-service.js.map +1 -0
- package/dist/infrastructure/parsers/docx-parser.d.ts +5 -0
- package/dist/infrastructure/parsers/docx-parser.js +17 -0
- package/dist/infrastructure/parsers/docx-parser.js.map +1 -0
- package/dist/infrastructure/parsers/index.d.ts +3 -0
- package/dist/infrastructure/parsers/index.js +4 -0
- package/dist/infrastructure/parsers/index.js.map +1 -0
- package/dist/infrastructure/parsers/ocr-service.d.ts +8 -0
- package/dist/infrastructure/parsers/ocr-service.js +65 -0
- package/dist/infrastructure/parsers/ocr-service.js.map +1 -0
- package/dist/infrastructure/parsers/pdf-parser.d.ts +5 -0
- package/dist/infrastructure/parsers/pdf-parser.js +44 -0
- package/dist/infrastructure/parsers/pdf-parser.js.map +1 -0
- package/dist/infrastructure/persistence/database.d.ts +20 -0
- package/dist/infrastructure/persistence/database.js +156 -0
- package/dist/infrastructure/persistence/database.js.map +1 -0
- package/dist/infrastructure/persistence/index.d.ts +6 -0
- package/dist/infrastructure/persistence/index.js +7 -0
- package/dist/infrastructure/persistence/index.js.map +1 -0
- package/dist/infrastructure/persistence/lancedb-application-event-repository.d.ts +16 -0
- package/dist/infrastructure/persistence/lancedb-application-event-repository.js +85 -0
- package/dist/infrastructure/persistence/lancedb-application-event-repository.js.map +1 -0
- package/dist/infrastructure/persistence/lancedb-application-repository.d.ts +21 -0
- package/dist/infrastructure/persistence/lancedb-application-repository.js +151 -0
- package/dist/infrastructure/persistence/lancedb-application-repository.js.map +1 -0
- package/dist/infrastructure/persistence/lancedb-candidate-repository.d.ts +21 -0
- package/dist/infrastructure/persistence/lancedb-candidate-repository.js +169 -0
- package/dist/infrastructure/persistence/lancedb-candidate-repository.js.map +1 -0
- package/dist/infrastructure/persistence/lancedb-chunk-repository.d.ts +18 -0
- package/dist/infrastructure/persistence/lancedb-chunk-repository.js +105 -0
- package/dist/infrastructure/persistence/lancedb-chunk-repository.js.map +1 -0
- package/dist/infrastructure/persistence/lancedb-job-posting-repository.d.ts +21 -0
- package/dist/infrastructure/persistence/lancedb-job-posting-repository.js +128 -0
- package/dist/infrastructure/persistence/lancedb-job-posting-repository.js.map +1 -0
- package/dist/infrastructure/persistence/lancedb-version-repository.d.ts +13 -0
- package/dist/infrastructure/persistence/lancedb-version-repository.js +62 -0
- package/dist/infrastructure/persistence/lancedb-version-repository.js.map +1 -0
- package/dist/interface/cli/index.d.ts +2 -0
- package/dist/interface/cli/index.js +17 -0
- package/dist/interface/cli/index.js.map +1 -0
- package/dist/interface/dashboard/call-context.d.ts +4 -0
- package/dist/interface/dashboard/call-context.js +26 -0
- package/dist/interface/dashboard/call-context.js.map +1 -0
- package/dist/interface/dashboard/event-bus.d.ts +7 -0
- package/dist/interface/dashboard/event-bus.js +16 -0
- package/dist/interface/dashboard/event-bus.js.map +1 -0
- package/dist/interface/dashboard/events.d.ts +30 -0
- package/dist/interface/dashboard/events.js +2 -0
- package/dist/interface/dashboard/events.js.map +1 -0
- package/dist/interface/dashboard/html.d.ts +1 -0
- package/dist/interface/dashboard/html.js +1007 -0
- package/dist/interface/dashboard/html.js.map +1 -0
- package/dist/interface/dashboard/public/200.html +1 -0
- package/dist/interface/dashboard/public/404.html +1 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-8KeALpAu2nWJknvJhMk31fqE06iajfSeiM57lsZAo5g.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-CAyrLGU3kauAbzcFnj2Cv_iAPV8wT2NEvNmrA_77Up0.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-Cbq5YGF_nsoQo6qYm9EhA3p-oINRUqlXhACZ2Wh4BBE.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-G1pKsfAhfeIECsLbuPUckyz92yuHFKi9rmiwlRl8Tb0.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-OnaIl8fChu9Cb4bpYiOA4dK_W7eeMCjXQOWR8tUhXJ0.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-kzEiBeXQ06q7fC06p1Y4RaOpLlRWCnHcCcSaqFMJ6fc.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-rmd8_oLeTXCNUhiFyy1UYsogNo6QYBr9dQHrhl_hLbs.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-wjJHhPsTzX4mZm37l7bbvLDtOEIT1R38DKPlwV_Z34A.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2 +0 -0
- package/dist/interface/dashboard/public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2 +0 -0
- package/dist/interface/dashboard/public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2 +0 -0
- package/dist/interface/dashboard/public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2 +0 -0
- package/dist/interface/dashboard/public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2 +0 -0
- package/dist/interface/dashboard/public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2 +0 -0
- package/dist/interface/dashboard/public/_nuxt/BtFgTcXQ.js +30 -0
- package/dist/interface/dashboard/public/_nuxt/CdJZeyak.js +30 -0
- package/dist/interface/dashboard/public/_nuxt/D9vxbU2B.js +1 -0
- package/dist/interface/dashboard/public/_nuxt/DHg6ig_T.js +1 -0
- package/dist/interface/dashboard/public/_nuxt/DhFk2_Al.js +1 -0
- package/dist/interface/dashboard/public/_nuxt/DlAUqK2U.js +1 -0
- package/dist/interface/dashboard/public/_nuxt/DtX-aPBA.js +1 -0
- package/dist/interface/dashboard/public/_nuxt/DvCMYK3d.js +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/latest.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/027020ec-4e7d-4fc7-8447-19800f7d0bac.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/18e19101-a96b-41dc-b602-f9a8f013a036.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/2fd3d0d3-6004-4659-9055-d27aa6656fd3.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/54792d4b-ca55-4b5d-b0dd-1d7dc34de344.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/5959a14b-2494-4e0d-be28-fef9adfd889d.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/60cda583-d704-4d4e-b37e-7ab337e3b6cc.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/64d05a43-99ec-4c22-934e-071b310b968f.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/6c1632a5-f0af-41e3-9d88-12294e03a0b9.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/6c80982c-5e2c-446c-aaf6-7000a976e493.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/79161adb-748c-4d36-a031-a71899a56ecd.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/84e5a87d-4ae5-48dd-8d5e-5b1fe89f7243.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/86082677-a11d-4acf-ab04-c3c067a71622.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/8892e611-c2b4-425b-a6a5-988314d8da4d.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/9bfe6b22-73f8-4584-b13d-ed1df5600e12.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/a39bf957-ddae-41a6-a183-08292363098b.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/b0bf7fc4-02c1-46fd-acca-f4458feed978.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/b2847d83-b695-45d4-9dca-d7498158a501.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/c8382eda-1354-4f92-b6d0-5b5b9f43354a.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/e707aa44-7202-413d-bcd5-1538b5b56570.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/ea661002-05ab-4bfb-b02f-c91bb721c5e9.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/f2f23a12-a792-480e-922a-ee8b73dc0310.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/f6503b83-d731-40f8-9110-c1599663b3ba.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/feac6d04-6bc5-4fa4-a241-79e897d7f8c1.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/entry.BSUaoqsu.css +1 -0
- package/dist/interface/dashboard/public/_nuxt/entry.Bl31cpjT.css +1 -0
- package/dist/interface/dashboard/public/_nuxt/error-404.B6WzzNMA.css +1 -0
- package/dist/interface/dashboard/public/_nuxt/error-500.CVIcHofV.css +1 -0
- package/dist/interface/dashboard/public/_nuxt/index.BH5Gbe6q.css +1 -0
- package/dist/interface/dashboard/public/_nuxt/index.TQmbXYdV.css +1 -0
- package/dist/interface/dashboard/public/_nuxt/qq1iUjth.js +1 -0
- package/dist/interface/dashboard/public/favicon.ico +0 -0
- package/dist/interface/dashboard/public/index.html +1 -0
- package/dist/interface/dashboard/server.d.ts +11 -0
- package/dist/interface/dashboard/server.js +145 -0
- package/dist/interface/dashboard/server.js.map +1 -0
- package/dist/interface/dashboard/tool-wrapper.d.ts +4 -0
- package/dist/interface/dashboard/tool-wrapper.js +96 -0
- package/dist/interface/dashboard/tool-wrapper.js.map +1 -0
- package/dist/interface/mcp/server.d.ts +2 -0
- package/dist/interface/mcp/server.js +109 -0
- package/dist/interface/mcp/server.js.map +1 -0
- package/dist/interface/mcp/tools/add-cv.d.ts +3 -0
- package/dist/interface/mcp/tools/add-cv.js +21 -0
- package/dist/interface/mcp/tools/add-cv.js.map +1 -0
- package/dist/interface/mcp/tools/add-job-posting.d.ts +3 -0
- package/dist/interface/mcp/tools/add-job-posting.js +38 -0
- package/dist/interface/mcp/tools/add-job-posting.js.map +1 -0
- package/dist/interface/mcp/tools/add-pipeline-note.d.ts +3 -0
- package/dist/interface/mcp/tools/add-pipeline-note.js +32 -0
- package/dist/interface/mcp/tools/add-pipeline-note.js.map +1 -0
- package/dist/interface/mcp/tools/add-to-pipeline.d.ts +3 -0
- package/dist/interface/mcp/tools/add-to-pipeline.js +28 -0
- package/dist/interface/mcp/tools/add-to-pipeline.js.map +1 -0
- package/dist/interface/mcp/tools/bulk-add-cvs.d.ts +3 -0
- package/dist/interface/mcp/tools/bulk-add-cvs.js +28 -0
- package/dist/interface/mcp/tools/bulk-add-cvs.js.map +1 -0
- package/dist/interface/mcp/tools/delete-cv.d.ts +3 -0
- package/dist/interface/mcp/tools/delete-cv.js +20 -0
- package/dist/interface/mcp/tools/delete-cv.js.map +1 -0
- package/dist/interface/mcp/tools/delete-job-posting.d.ts +3 -0
- package/dist/interface/mcp/tools/delete-job-posting.js +27 -0
- package/dist/interface/mcp/tools/delete-job-posting.js.map +1 -0
- package/dist/interface/mcp/tools/export-results.d.ts +3 -0
- package/dist/interface/mcp/tools/export-results.js +23 -0
- package/dist/interface/mcp/tools/export-results.js.map +1 -0
- package/dist/interface/mcp/tools/filter-candidates.d.ts +3 -0
- package/dist/interface/mcp/tools/filter-candidates.js +32 -0
- package/dist/interface/mcp/tools/filter-candidates.js.map +1 -0
- package/dist/interface/mcp/tools/get-candidate-history.d.ts +3 -0
- package/dist/interface/mcp/tools/get-candidate-history.js +22 -0
- package/dist/interface/mcp/tools/get-candidate-history.js.map +1 -0
- package/dist/interface/mcp/tools/get-cv-chunks.d.ts +3 -0
- package/dist/interface/mcp/tools/get-cv-chunks.js +26 -0
- package/dist/interface/mcp/tools/get-cv-chunks.js.map +1 -0
- package/dist/interface/mcp/tools/get-cv-detail.d.ts +3 -0
- package/dist/interface/mcp/tools/get-cv-detail.js +23 -0
- package/dist/interface/mcp/tools/get-cv-detail.js.map +1 -0
- package/dist/interface/mcp/tools/get-cv-versions.d.ts +3 -0
- package/dist/interface/mcp/tools/get-cv-versions.js +20 -0
- package/dist/interface/mcp/tools/get-cv-versions.js.map +1 -0
- package/dist/interface/mcp/tools/get-job-posting.d.ts +3 -0
- package/dist/interface/mcp/tools/get-job-posting.js +26 -0
- package/dist/interface/mcp/tools/get-job-posting.js.map +1 -0
- package/dist/interface/mcp/tools/get-pending-actions.d.ts +3 -0
- package/dist/interface/mcp/tools/get-pending-actions.js +19 -0
- package/dist/interface/mcp/tools/get-pending-actions.js.map +1 -0
- package/dist/interface/mcp/tools/get-pipeline.d.ts +3 -0
- package/dist/interface/mcp/tools/get-pipeline.js +22 -0
- package/dist/interface/mcp/tools/get-pipeline.js.map +1 -0
- package/dist/interface/mcp/tools/get-server-status.d.ts +3 -0
- package/dist/interface/mcp/tools/get-server-status.js +38 -0
- package/dist/interface/mcp/tools/get-server-status.js.map +1 -0
- package/dist/interface/mcp/tools/get-stats.d.ts +3 -0
- package/dist/interface/mcp/tools/get-stats.js +19 -0
- package/dist/interface/mcp/tools/get-stats.js.map +1 -0
- package/dist/interface/mcp/tools/list-cvs.d.ts +3 -0
- package/dist/interface/mcp/tools/list-cvs.js +32 -0
- package/dist/interface/mcp/tools/list-cvs.js.map +1 -0
- package/dist/interface/mcp/tools/list-job-postings.d.ts +3 -0
- package/dist/interface/mcp/tools/list-job-postings.js +19 -0
- package/dist/interface/mcp/tools/list-job-postings.js.map +1 -0
- package/dist/interface/mcp/tools/manage-tags.d.ts +3 -0
- package/dist/interface/mcp/tools/manage-tags.js +24 -0
- package/dist/interface/mcp/tools/manage-tags.js.map +1 -0
- package/dist/interface/mcp/tools/match-candidates.d.ts +3 -0
- package/dist/interface/mcp/tools/match-candidates.js +23 -0
- package/dist/interface/mcp/tools/match-candidates.js.map +1 -0
- package/dist/interface/mcp/tools/reset-database.d.ts +3 -0
- package/dist/interface/mcp/tools/reset-database.js +35 -0
- package/dist/interface/mcp/tools/reset-database.js.map +1 -0
- package/dist/interface/mcp/tools/semantic-search.d.ts +3 -0
- package/dist/interface/mcp/tools/semantic-search.js +27 -0
- package/dist/interface/mcp/tools/semantic-search.js.map +1 -0
- package/dist/interface/mcp/tools/set-pending-action.d.ts +3 -0
- package/dist/interface/mcp/tools/set-pending-action.js +36 -0
- package/dist/interface/mcp/tools/set-pending-action.js.map +1 -0
- package/dist/interface/mcp/tools/update-cv.d.ts +3 -0
- package/dist/interface/mcp/tools/update-cv.js +23 -0
- package/dist/interface/mcp/tools/update-cv.js.map +1 -0
- package/dist/interface/mcp/tools/update-job-posting.d.ts +3 -0
- package/dist/interface/mcp/tools/update-job-posting.js +42 -0
- package/dist/interface/mcp/tools/update-job-posting.js.map +1 -0
- package/dist/interface/mcp/tools/update-pipeline-status.d.ts +3 -0
- package/dist/interface/mcp/tools/update-pipeline-status.js +41 -0
- package/dist/interface/mcp/tools/update-pipeline-status.js.map +1 -0
- package/dist/interface/mcp/types.d.ts +26 -0
- package/dist/interface/mcp/types.js +2 -0
- package/dist/interface/mcp/types.js.map +1 -0
- package/dist/shared/errors/index.d.ts +32 -0
- package/dist/shared/errors/index.js +56 -0
- package/dist/shared/errors/index.js.map +1 -0
- package/dist/shared/types/index.d.ts +19 -0
- package/dist/shared/types/index.js +2 -0
- package/dist/shared/types/index.js.map +1 -0
- package/dist/shared/utils/chunking.d.ts +3 -0
- package/dist/shared/utils/chunking.js +89 -0
- package/dist/shared/utils/chunking.js.map +1 -0
- package/dist/shared/utils/file-storage.d.ts +8 -0
- package/dist/shared/utils/file-storage.js +49 -0
- package/dist/shared/utils/file-storage.js.map +1 -0
- package/dist/shared/utils/index.d.ts +3 -0
- package/dist/shared/utils/index.js +4 -0
- package/dist/shared/utils/index.js.map +1 -0
- package/dist/shared/utils/text.d.ts +5 -0
- package/dist/shared/utils/text.js +21 -0
- package/dist/shared/utils/text.js.map +1 -0
- 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":"AAAA,OAAO,EAAE,MAAM,EAA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,EAAE,MAAM,EAAE;YACZ,WAAW;YACX,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;YAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,SAAS,EAAE,GAAG;SACf,CAAC,CAAC,CAAC;QAEJ,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACzC,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAEtC,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
|
|
@@ -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,O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C;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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"cv-chunk.js","sourceRoot":"","sources":["../../../src/domain/entities/cv-chunk.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"job-posting-repository.js","sourceRoot":"","sources":["../../../src/domain/repositories/job-posting-repository.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version-repository.js","sourceRoot":"","sources":["../../../src/domain/repositories/version-repository.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"certification.js","sourceRoot":"","sources":["../../../src/domain/value-objects/certification.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-info.js","sourceRoot":"","sources":["../../../src/domain/value-objects/contact-info.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"education.js","sourceRoot":"","sources":["../../../src/domain/value-objects/education.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/value-objects/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language.js","sourceRoot":"","sources":["../../../src/domain/value-objects/language.ts"],"names":[],"mappings":""}
|