Skip to content

Commit d5120f1

Browse files
authored
Merge pull request #122 from polarsquad/add-keywordsearch
Add keyword search
2 parents 870bf5f + aef8459 commit d5120f1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/api.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
CompanyUserProfileSkill,
1818
CompanyUserProjectAssignment,
1919
CompanyUserSkill,
20+
Keyword,
2021
Project,
2122
ProjectAssignment,
2223
ProjectAssignmentEdit,
@@ -441,4 +442,10 @@ export class Api {
441442
)
442443
.json<void>();
443444
}
445+
446+
keywordSearch(term: string) {
447+
return this.client
448+
.get(`v0.1/companies/${this.company.id}/keywords/search/${term}`)
449+
.json<Keyword[]>();
450+
}
444451
}

src/service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,4 +483,8 @@ export class CinodeService {
483483
skillId
484484
);
485485
}
486+
487+
async keywordSearch(term: string) {
488+
return await this.api.keywordSearch(term);
489+
}
486490
}

0 commit comments

Comments
 (0)