@cavuno/board 4.12.0 → 4.14.0
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/CHANGELOG.md +39 -0
- package/dist/{_spec-ChuT3QX8.d.mts → _spec-CzS_E61o.d.mts} +52 -0
- package/dist/{_spec-ChuT3QX8.d.ts → _spec-CzS_E61o.d.ts} +52 -0
- package/dist/{blog-VbcrwKk9.d.ts → blog-CtRz0ZlI.d.ts} +1 -1
- package/dist/{blog-BB_l6xes.d.mts → blog-D4R04cZP.d.mts} +1 -1
- package/dist/{board-CWQjFHWJ.d.ts → board-CXE7dnk9.d.mts} +2 -2
- package/dist/{board-BJCKz-Is.d.mts → board-MqLMXY48.d.ts} +2 -2
- package/dist/{breadcrumbs-6TB8Lw-C.d.ts → breadcrumbs-DdEy2bpQ.d.ts} +18 -6
- package/dist/{breadcrumbs-BoIXFh0q.d.mts → breadcrumbs-bbEYB2CD.d.mts} +18 -6
- package/dist/browser/cavuno-board.global.min.js +1 -1
- package/dist/{chunk-6454IFHS.mjs → chunk-OPMJ6YH5.mjs} +6 -3
- package/dist/{chunk-XEJWXRLK.mjs → chunk-W73BOGOQ.mjs} +4 -0
- package/dist/filters.d.mts +2 -2
- package/dist/filters.d.ts +2 -2
- package/dist/format.d.mts +4 -4
- package/dist/format.d.ts +4 -4
- package/dist/format.mjs +1 -1
- package/dist/index.d.mts +113 -13
- package/dist/index.d.ts +113 -13
- package/dist/index.js +145 -1
- package/dist/index.mjs +142 -2
- package/dist/{jobs-CV41Msa7.d.mts → jobs-CsrNGyvS.d.mts} +1 -1
- package/dist/{jobs-CsoxD0mU.d.ts → jobs-DDJDUH3q.d.ts} +1 -1
- package/dist/{search-ACYoyhh3.d.ts → search-B3nCRBqd.d.ts} +1 -1
- package/dist/{search-DEVb6pdX.d.mts → search-Bnx30Fe2.d.mts} +1 -1
- package/dist/{seo-BrC9ue1U.d.ts → seo-BUDWv2pv.d.ts} +1 -1
- package/dist/{seo-DvS9_GxS.d.mts → seo-aSJ3zVx9.d.mts} +1 -1
- package/dist/seo-files.d.mts +2 -2
- package/dist/seo-files.d.ts +2 -2
- package/dist/seo.d.mts +6 -6
- package/dist/seo.d.ts +6 -6
- package/dist/seo.js +6 -3
- package/dist/seo.mjs +1 -1
- package/dist/server.d.mts +6 -6
- package/dist/server.d.ts +6 -6
- package/dist/server.mjs +1 -1
- package/dist/sitemap.d.mts +6 -6
- package/dist/sitemap.d.ts +6 -6
- package/dist/suggest.d.mts +2 -2
- package/dist/suggest.d.ts +2 -2
- package/package.json +1 -1
- package/skills/cavuno-board-seo/JOB_AND_BREADCRUMBS.md +5 -2
- package/skills/manifest.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { S as Schemas, c as components } from './_spec-
|
|
2
|
-
import { F as FetchOptions, S as StorageMode, B as BoardRequest, A as Awaitable, L as Logger, a as BoardClient, b as SearchSuggestQuery } from './search-
|
|
3
|
-
export { c as ACCESS_TOKEN_KEY, d as BOARD_ACCESS_GRANT_KEY, C as CompanySuggestion, e as CustomStorage, M as MarketSuggestion, R as REFRESH_TOKEN_KEY, f as SearchSuggestType, g as SuggestResult, h as SuggestionItem, T as TermSuggestion } from './search-
|
|
4
|
-
import { c as CompaniesListQuery, d as CompanyListEnvelope, e as CompaniesSearchBody, f as CompanyJobsListQuery, g as CompanySimilarQuery, h as CompanyMarketsListQuery, i as SalaryDetailQuery } from './board-
|
|
5
|
-
export { a as CompanyCategorySalary, j as CompanyMarket, k as CompanyMarketRef, b as CompanySalary, l as CompanySalarySummary, C as CustomFieldDefinition, m as CustomFieldOption, n as CustomFieldType, L as LocationSalaryDetail, o as LocationSkillsIndex, p as LocationTitlesIndex, P as PublicBoard, q as PublicBoardAds, r as PublicBoardAnalytics, s as PublicBoardFeatures, t as PublicBoardJobForm, u as PublicCompany, v as PublicCompanyDetail, w as SalaryCompany, x as SalaryLocation, y as SalarySkill, z as SalaryTitle, A as SkillLocationSalary, B as SkillLocationsIndex, S as SkillSalaryDetail, D as TitleLocationSalary, E as TitleLocationsIndex, T as TitleSalaryDetail } from './board-
|
|
6
|
-
export { B as BoardSeo } from './seo-
|
|
7
|
-
import { R as RemoteOption, E as EmploymentType, S as Seniority, L as ListEnvelope, a as JobsListQuery, b as JobCardListEnvelope, c as JobsSearchBody, d as JobCardSearchEnvelope, e as JobsSimilarQuery, f as SearchEnvelope } from './jobs-
|
|
8
|
-
export { g as CustomFieldValue, C as CustomFieldValues, h as EducationRequirement, i as JobCatalogPagination, j as JobCompany, J as JobSort, O as OfficeLocation, k as OffsetPagination, P as PublicJob, l as PublicJobCard, m as RelatedSearch, n as RemotePermit, o as RemoteTimezone, p as StorefrontPagination } from './jobs-
|
|
9
|
-
import { a as BlogPostsListQuery, b as BlogSimilarQuery, c as BlogSearchBody } from './blog-
|
|
10
|
-
export { B as BlogAuthorEmbed, d as BlogTagEmbed, e as PublicBlogAdjacentPosts, f as PublicBlogAuthor, g as PublicBlogPost, P as PublicBlogPostSummary, h as PublicBlogTag } from './blog-
|
|
1
|
+
import { S as Schemas, c as components } from './_spec-CzS_E61o.mjs';
|
|
2
|
+
import { F as FetchOptions, S as StorageMode, B as BoardRequest, A as Awaitable, L as Logger, a as BoardClient, b as SearchSuggestQuery } from './search-Bnx30Fe2.mjs';
|
|
3
|
+
export { c as ACCESS_TOKEN_KEY, d as BOARD_ACCESS_GRANT_KEY, C as CompanySuggestion, e as CustomStorage, M as MarketSuggestion, R as REFRESH_TOKEN_KEY, f as SearchSuggestType, g as SuggestResult, h as SuggestionItem, T as TermSuggestion } from './search-Bnx30Fe2.mjs';
|
|
4
|
+
import { c as CompaniesListQuery, d as CompanyListEnvelope, e as CompaniesSearchBody, f as CompanyJobsListQuery, g as CompanySimilarQuery, h as CompanyMarketsListQuery, i as SalaryDetailQuery } from './board-CXE7dnk9.mjs';
|
|
5
|
+
export { a as CompanyCategorySalary, j as CompanyMarket, k as CompanyMarketRef, b as CompanySalary, l as CompanySalarySummary, C as CustomFieldDefinition, m as CustomFieldOption, n as CustomFieldType, L as LocationSalaryDetail, o as LocationSkillsIndex, p as LocationTitlesIndex, P as PublicBoard, q as PublicBoardAds, r as PublicBoardAnalytics, s as PublicBoardFeatures, t as PublicBoardJobForm, u as PublicCompany, v as PublicCompanyDetail, w as SalaryCompany, x as SalaryLocation, y as SalarySkill, z as SalaryTitle, A as SkillLocationSalary, B as SkillLocationsIndex, S as SkillSalaryDetail, D as TitleLocationSalary, E as TitleLocationsIndex, T as TitleSalaryDetail } from './board-CXE7dnk9.mjs';
|
|
6
|
+
export { B as BoardSeo } from './seo-aSJ3zVx9.mjs';
|
|
7
|
+
import { R as RemoteOption, E as EmploymentType, S as Seniority, L as ListEnvelope, a as JobsListQuery, b as JobCardListEnvelope, c as JobsSearchBody, d as JobCardSearchEnvelope, e as JobsSimilarQuery, f as SearchEnvelope } from './jobs-CsrNGyvS.mjs';
|
|
8
|
+
export { g as CustomFieldValue, C as CustomFieldValues, h as EducationRequirement, i as JobCatalogPagination, j as JobCompany, J as JobSort, O as OfficeLocation, k as OffsetPagination, P as PublicJob, l as PublicJobCard, m as RelatedSearch, n as RemotePermit, o as RemoteTimezone, p as StorefrontPagination } from './jobs-CsrNGyvS.mjs';
|
|
9
|
+
import { a as BlogPostsListQuery, b as BlogSimilarQuery, c as BlogSearchBody } from './blog-D4R04cZP.mjs';
|
|
10
|
+
export { B as BlogAuthorEmbed, d as BlogTagEmbed, e as PublicBlogAdjacentPosts, f as PublicBlogAuthor, g as PublicBlogPost, P as PublicBlogPostSummary, h as PublicBlogTag } from './blog-D4R04cZP.mjs';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Well-known `<domain>_<snake_reason>` codes the Board API sends, grouped by
|
|
@@ -20,7 +20,7 @@ export { B as BlogAuthorEmbed, d as BlogTagEmbed, e as PublicBlogAdjacentPosts,
|
|
|
20
20
|
* `unknown_error` is SDK-synthesized when a response carries no parseable
|
|
21
21
|
* envelope.
|
|
22
22
|
*/
|
|
23
|
-
declare const BOARD_API_ERROR_CODES: readonly ["internal_error", "validation_bad_request", "validation_payload_too_large", "rate_limited", "rate_limit_unavailable", "search_unavailable", "too_many_filter_values", "pagination_invalid_cursor", "pagination_offset_too_large", "auth_unauthenticated", "auth_forbidden", "plan_upgrade_required", "unknown_error", "boards_not_found", "board_page_not_found", "board_auth_email_taken", "board_auth_invalid_credentials", "board_auth_invalid_token", "board_auth_registration_disabled", "board_auth_token_expired", "invalid_current_password", "no_password", "same_email", "email_taken", "invalid_token", "board_password_required", "board_password_invalid", "jobs_not_found", "jobs_invalid_filter", "categories_not_found", "skills_not_found", "places_not_found", "companies_not_found", "company_markets_not_found", "company_salary_not_found", "company_category_salary_not_found", "salaries_title_not_found", "salaries_skill_not_found", "salaries_location_not_found", "salaries_title_location_not_found", "salaries_skill_location_not_found", "blog_post_not_found", "blog_author_not_found", "blog_tag_not_found", "talent_not_found", "talent_directory_not_found", "talent_directory_restricted", "job_recommendations_not_found", "recommended_talent_not_found", "job_alert_not_found", "job_alerts_disabled", "candidate_alert_limit_reached", "candidate_alert_not_found", "candidate_entry_not_found", "candidate_handle_taken", "candidate_job_not_found", "candidate_notification_preference_paused", "resume_invalid_file", "resume_upload_forbidden", "applications_external_apply_only", "applications_country_not_allowed", "applications_guest_not_allowed", "applications_job_not_found", "applications_not_found", "applications_resume_invalid_file", "applications_unprocessable", "messaging_application_not_found", "messaging_application_not_linked", "messaging_blocked", "messaging_cannot_block_self", "messaging_cold_rule", "messaging_conversation_not_found", "messaging_disabled", "messaging_edit_window_expired", "messaging_message_deleted", "messaging_message_not_found", "messaging_not_author", "messaging_not_participant", "messaging_not_permitted", "messaging_not_recipient", "messaging_rate_limited", "messaging_recipient_not_found", "messaging_recipient_not_open", "messaging_unsend_window_expired", "employer_applicant_not_found", "employer_ats_unprocessable", "employer_checkout_failed", "employer_company_exists", "employer_company_name_taken", "employer_company_not_found", "employer_job_not_found", "employer_job_slug_taken", "employer_jobs_quota_exceeded", "employer_not_member", "employer_payment_required", "employer_pipeline_stage_not_found", "employer_member_not_found", "employer_invite_not_found", "not_company_admin", "not_company_member", "company_deletion_disabled", "last_admin", "already_member", "already_invited", "invalid_email", "invite_email_mismatch", "candidate_role", "job_not_published", "paywall_already_active", "paywall_disabled", "paywall_invalid_checkout_session", "paywall_no_candidate_profile", "paywall_no_recurring_subscription", "paywall_offer_not_found", "talent_access_unavailable", "company_required", "already_on_plan", "talent_access_required", "messaging_talent_access_required", "stripe_not_connected", "job_posting_logo_lookup_unavailable", "job_posting_logo_not_found", "job_posting_rejected"];
|
|
23
|
+
declare const BOARD_API_ERROR_CODES: readonly ["internal_error", "validation_bad_request", "validation_payload_too_large", "rate_limited", "rate_limit_unavailable", "search_unavailable", "too_many_filter_values", "pagination_invalid_cursor", "pagination_offset_too_large", "auth_unauthenticated", "auth_forbidden", "plan_upgrade_required", "unknown_error", "boards_not_found", "board_page_not_found", "board_auth_email_taken", "board_auth_invalid_credentials", "board_auth_invalid_token", "board_auth_registration_disabled", "board_auth_token_expired", "invalid_current_password", "no_password", "same_email", "email_taken", "invalid_token", "board_password_required", "board_password_invalid", "jobs_not_found", "jobs_invalid_filter", "categories_not_found", "skills_not_found", "places_not_found", "companies_not_found", "company_markets_not_found", "company_salary_not_found", "company_category_salary_not_found", "salaries_title_not_found", "salaries_skill_not_found", "salaries_location_not_found", "salaries_title_location_not_found", "salaries_skill_location_not_found", "blog_post_not_found", "blog_author_not_found", "blog_tag_not_found", "talent_not_found", "talent_directory_not_found", "talent_directory_restricted", "job_recommendations_not_found", "recommended_talent_not_found", "job_alert_not_found", "job_alerts_disabled", "candidate_alert_limit_reached", "candidate_alert_not_found", "candidate_entry_not_found", "candidate_handle_taken", "candidate_job_not_found", "candidate_notification_preference_paused", "resume_invalid_file", "resume_upload_forbidden", "applications_external_apply_only", "applications_country_not_allowed", "applications_guest_not_allowed", "applications_job_not_found", "applications_not_found", "applications_resume_invalid_file", "applications_unprocessable", "messaging_application_not_found", "messaging_application_not_linked", "messaging_blocked", "messaging_cannot_block_self", "messaging_cold_rule", "messaging_conversation_not_found", "messaging_disabled", "messaging_edit_window_expired", "messaging_message_deleted", "messaging_message_not_found", "messaging_not_author", "messaging_not_participant", "messaging_not_permitted", "messaging_not_recipient", "messaging_rate_limited", "messaging_recipient_not_found", "messaging_recipient_not_open", "messaging_unsend_window_expired", "employer_applicant_not_found", "employer_ats_unprocessable", "employer_checkout_failed", "employer_company_exists", "employer_company_name_taken", "employer_company_not_found", "employer_job_not_found", "employer_job_slug_taken", "employer_jobs_quota_exceeded", "employer_not_member", "employer_payment_required", "employer_pipeline_stage_not_found", "employer_member_not_found", "employer_invite_not_found", "not_company_admin", "not_company_member", "company_deletion_disabled", "last_admin", "already_member", "already_invited", "invalid_email", "invite_email_mismatch", "candidate_role", "job_not_published", "talent_list_not_found", "sourced_candidate_not_found", "sourced_convert_unavailable", "paywall_already_active", "paywall_disabled", "paywall_invalid_checkout_session", "paywall_no_candidate_profile", "paywall_no_recurring_subscription", "paywall_offer_not_found", "talent_access_unavailable", "company_required", "already_on_plan", "talent_access_required", "messaging_talent_access_required", "stripe_not_connected", "job_posting_logo_lookup_unavailable", "job_posting_logo_not_found", "job_posting_rejected"];
|
|
24
24
|
/**
|
|
25
25
|
* The known code set plus open string — new codes ship additively within v1,
|
|
26
26
|
* so exhaustive narrowing is intentionally impossible.
|
|
@@ -143,7 +143,7 @@ declare function paginate<Q extends Record<string, unknown>, P extends PageShape
|
|
|
143
143
|
* constant because the package is platform-neutral and cannot read
|
|
144
144
|
* package.json at runtime.
|
|
145
145
|
*/
|
|
146
|
-
declare const SDK_VERSION = "4.
|
|
146
|
+
declare const SDK_VERSION = "4.14.0";
|
|
147
147
|
|
|
148
148
|
type SavedJob = Schemas['SavedJob'];
|
|
149
149
|
type SavedJobsListQuery = {
|
|
@@ -177,6 +177,52 @@ type RecommendedTalentListQuery = {
|
|
|
177
177
|
/** 1–100. */
|
|
178
178
|
limit?: number;
|
|
179
179
|
};
|
|
180
|
+
type TalentListFilters = {
|
|
181
|
+
q?: string;
|
|
182
|
+
skill?: string;
|
|
183
|
+
jobSearchStatus?: 'actively_looking' | 'open_to_offers' | 'not_looking';
|
|
184
|
+
languages?: string[];
|
|
185
|
+
openToRelocate?: boolean;
|
|
186
|
+
place?: string;
|
|
187
|
+
sort?: 'relevance' | 'newest';
|
|
188
|
+
seniority?: string;
|
|
189
|
+
permitCountry?: string;
|
|
190
|
+
interestedRole?: string;
|
|
191
|
+
};
|
|
192
|
+
type TalentList = {
|
|
193
|
+
id: string;
|
|
194
|
+
object: 'talent_list';
|
|
195
|
+
name: string;
|
|
196
|
+
filters: TalentListFilters;
|
|
197
|
+
jobId: string | null;
|
|
198
|
+
createdBy: string;
|
|
199
|
+
createdAt: number;
|
|
200
|
+
updatedAt: number;
|
|
201
|
+
};
|
|
202
|
+
type CreateTalentListBody = {
|
|
203
|
+
name: string;
|
|
204
|
+
filters?: TalentListFilters;
|
|
205
|
+
job?: string;
|
|
206
|
+
};
|
|
207
|
+
type UpdateTalentListBody = {
|
|
208
|
+
name?: string;
|
|
209
|
+
filters?: TalentListFilters;
|
|
210
|
+
job?: string | null;
|
|
211
|
+
};
|
|
212
|
+
type SourcedCandidate = {
|
|
213
|
+
id: string;
|
|
214
|
+
object: 'sourced_candidate';
|
|
215
|
+
candidate: Schemas['TalentDirectoryEntry'];
|
|
216
|
+
sourcedAt: number;
|
|
217
|
+
sourcedBy: string;
|
|
218
|
+
};
|
|
219
|
+
type AddSourcedCandidateBody = {
|
|
220
|
+
job: string;
|
|
221
|
+
candidateBoardUserId: string;
|
|
222
|
+
};
|
|
223
|
+
type ConvertSourcedCandidateBody = {
|
|
224
|
+
stage: string;
|
|
225
|
+
};
|
|
180
226
|
type SaveJobBody = Schemas['SaveJobBody'];
|
|
181
227
|
/** The authenticated user's lean candidate profile singleton. */
|
|
182
228
|
type CandidateProfile = Schemas['CandidateProfile'];
|
|
@@ -545,6 +591,12 @@ type ConsumeMagicLinkBody = Schemas['BoardAuthConsumeMagicLinkBody'];
|
|
|
545
591
|
type OAuthProvider = 'google' | 'linkedin';
|
|
546
592
|
type OAuthAuthorizationQuery = {
|
|
547
593
|
returnTo?: string;
|
|
594
|
+
/**
|
|
595
|
+
* Role profile to create when the handshake signs up a NEW user; defaults
|
|
596
|
+
* to `candidate`. Pass `employer` from an employer sign-up surface — the
|
|
597
|
+
* role is fixed at authorize time and cannot be changed on the callback.
|
|
598
|
+
*/
|
|
599
|
+
role?: 'candidate' | 'employer';
|
|
548
600
|
};
|
|
549
601
|
type OAuthAuthorizationUrl = Schemas['BoardAuthOAuthAuthorizationUrl'];
|
|
550
602
|
type OAuthExchangeBody = Schemas['BoardAuthOAuthExchangeBody'];
|
|
@@ -628,6 +680,16 @@ type TalentDirectoryQuery = {
|
|
|
628
680
|
* `cursor`. Pair with the response `count` to page in parallel.
|
|
629
681
|
*/
|
|
630
682
|
offset?: number;
|
|
683
|
+
jobSearchStatus?: 'actively_looking' | 'open_to_offers' | 'not_looking';
|
|
684
|
+
/** Comma-separated language names. */
|
|
685
|
+
languages?: string;
|
|
686
|
+
openToRelocate?: 'true' | 'false';
|
|
687
|
+
/** English source place slug. No-op until place ids ship. */
|
|
688
|
+
place?: string;
|
|
689
|
+
sort?: 'relevance' | 'newest';
|
|
690
|
+
seniority?: string;
|
|
691
|
+
permitCountry?: string;
|
|
692
|
+
interestedRole?: string;
|
|
631
693
|
};
|
|
632
694
|
type TalentDirectoryListEnvelope = ListEnvelope<TalentDirectoryEntry>;
|
|
633
695
|
|
|
@@ -897,6 +959,7 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
897
959
|
};
|
|
898
960
|
contact: {
|
|
899
961
|
email: string | null;
|
|
962
|
+
legalName: string | null;
|
|
900
963
|
websiteUrl: string | null;
|
|
901
964
|
xUrl: string | null;
|
|
902
965
|
facebookUrl: string | null;
|
|
@@ -1483,6 +1546,21 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
1483
1546
|
}>;
|
|
1484
1547
|
logout(body?: LogoutBody, options?: FetchOptions): Promise<void>;
|
|
1485
1548
|
verifyEmail(body: VerifyEmailBody, options?: FetchOptions): Promise<void>;
|
|
1549
|
+
verifyWorkEmail(body: ConfirmWorkEmailBody, options?: FetchOptions): Promise<{
|
|
1550
|
+
id: string;
|
|
1551
|
+
object: "company_membership";
|
|
1552
|
+
status: "approved" | "pending_work_email" | "awaiting_admin" | "rejected";
|
|
1553
|
+
role: string;
|
|
1554
|
+
workEmail: string | null;
|
|
1555
|
+
workEmailVerifiedAt: string | null;
|
|
1556
|
+
company: {
|
|
1557
|
+
id: string;
|
|
1558
|
+
name: string;
|
|
1559
|
+
slug: string | null;
|
|
1560
|
+
website: string | null;
|
|
1561
|
+
logoUrl: string | null;
|
|
1562
|
+
};
|
|
1563
|
+
}>;
|
|
1486
1564
|
verifyEmailWithCode(body: {
|
|
1487
1565
|
code: string;
|
|
1488
1566
|
}, options?: FetchOptions): Promise<void>;
|
|
@@ -2173,6 +2251,28 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
2173
2251
|
candidate: components["schemas"]["TalentDirectoryEntry"];
|
|
2174
2252
|
}>>;
|
|
2175
2253
|
};
|
|
2254
|
+
talentLists: {
|
|
2255
|
+
list(slug: string, options?: FetchOptions): Promise<ListEnvelope<TalentList>>;
|
|
2256
|
+
create(slug: string, body: CreateTalentListBody, options?: FetchOptions): Promise<TalentList>;
|
|
2257
|
+
update(slug: string, listId: string, body: UpdateTalentListBody, options?: FetchOptions): Promise<TalentList>;
|
|
2258
|
+
remove(slug: string, listId: string, options?: FetchOptions): Promise<void>;
|
|
2259
|
+
};
|
|
2260
|
+
sourcedCandidates: {
|
|
2261
|
+
list(slug: string, query: {
|
|
2262
|
+
job: string;
|
|
2263
|
+
}, options?: FetchOptions): Promise<ListEnvelope<SourcedCandidate>>;
|
|
2264
|
+
add(slug: string, body: AddSourcedCandidateBody, options?: FetchOptions): Promise<{
|
|
2265
|
+
id: string;
|
|
2266
|
+
object: "sourced_candidate";
|
|
2267
|
+
created: boolean;
|
|
2268
|
+
}>;
|
|
2269
|
+
remove(slug: string, sourcedId: string, options?: FetchOptions): Promise<void>;
|
|
2270
|
+
convert(slug: string, sourcedId: string, body: ConvertSourcedCandidateBody, options?: FetchOptions): Promise<{
|
|
2271
|
+
id: string;
|
|
2272
|
+
object: "application";
|
|
2273
|
+
created: boolean;
|
|
2274
|
+
}>;
|
|
2275
|
+
};
|
|
2176
2276
|
applicants: {
|
|
2177
2277
|
list(slug: string, query: EmployerPipelineQuery, options?: FetchOptions): Promise<{
|
|
2178
2278
|
object: "employer_pipeline";
|
|
@@ -3354,4 +3454,4 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
3354
3454
|
};
|
|
3355
3455
|
type BoardSdk = ReturnType<typeof createBoardClient>;
|
|
3356
3456
|
|
|
3357
|
-
export { type AcceptCompanyMemberInviteBody, type AccessCheckoutBody, type AccessCheckoutSession, type AccessCheckoutSessionState, type AccessGrant, type AccessPortalBody, type AccessPortalSession, type AddApplicantNoteBody, type Alert, type AlertBody, type Application, type ApplicationsListQuery, type ApplyAction, type ApplyApprovalPlan, type ApplyApprovalReceipt, type ApplyBody, type ApplyDecisionState, type ApplyIntent, Awaitable, BOARD_API_ERROR_CODES, type Block, type BlockStatus, type BlockUserBody, type BlockedUser, BlogPostsListQuery, BlogSearchBody, BlogSimilarQuery, type BoardAccessGrant, BoardApiError, type BoardApiErrorCode, type BoardAuthSession, BoardClient, BoardRequest, type BoardSdk, type BoardUser, type BulkMoveApplicantsBody, type BulkRejectApplicantsBody, type CandidateAvatar, type CandidateEducation, type CandidateExperience, type CandidateLanguage, type CandidateProfile, type CandidateSkill, type ClaimableCompany, CompaniesListQuery, CompaniesSearchBody, type CompanyBillingPortalBody, type CompanyBillingPortalSession, CompanyJobsListQuery, CompanyListEnvelope, CompanyMarketsListQuery, type CompanyMember, type CompanyMemberInvite, type CompanyMemberInviteAcceptance, type CompanyMembership, CompanySimilarQuery, type ConfirmEmailChangeBody, type ConfirmWorkEmailBody, type ConsumeMagicLinkBody, type Conversation, type ConversationArchive, type ConversationDetail, type ConversationRef, type ConversationsListQuery, type CreateApplyApprovalBody, type CreateApplyIntentBody, type CreateBoardClientOptions, type CreateCompanyBody, type CreateCompanyMemberInviteBody, type CreateEducationBody, type CreateEmployerJobBody, type CreateExperienceBody, type CreateJobPostingInput, type CreatePipelineStageBody, type EditMessageBody, type EmbedJobsQuery, type EmployerApplicant, type EmployerBillingOption, type EmployerCheckout, type EmployerCheckoutBody, type EmployerCompany, type EmployerCompanySearchQuery, type EmployerJob, type EmployerJobStat, type EmployerJobStatsPoint, type EmployerJobStatsTimeseriesQuery, type EmployerJobSummary, type EmployerJobsListQuery, type EmployerPipeline, type EmployerPipelineQuery, type EmployerPipelineStage, type EmployerProfileStats, type EmployerProfileViewsPoint, type EmployerProfileViewsTimeseriesQuery, EmploymentType, FetchOptions, type FindExistingConversationQuery, type ForgotPasswordBody, type HandleAvailability, type JobAlertConfirmation, type JobAlertDeletePreferenceInput, type JobAlertFiltersInput, type JobAlertFrequency, type JobAlertManageQuery, type JobAlertManageResult, type JobAlertManageState, type JobAlertManageTokenInput, type JobAlertPreference, type JobAlertRemoteOption, type JobAlertResendResult, type JobAlertStoredFilters, type JobAlertSubscribeInput, type JobAlertSubscription, type JobAlertUpdatePreferenceInput, JobCardListEnvelope, JobCardSearchEnvelope, type JobPostingBillingOptions, type JobPostingBillingVerification, type JobPostingLogoResult, type JobPostingPlan, type JobPostingResult, JobsListQuery, JobsSearchBody, JobsSimilarQuery, ListEnvelope, Logger, type LoginBody, type LogoutBody, type MarketingConsent, type Message, type ModerationReport, type MoveApplicantStageBody, type NotificationPreference, type OAuthAuthorizationQuery, type OAuthAuthorizationUrl, type OAuthExchangeBody, type OAuthProvider, type Paginator, type PaywallOffer, type PaywallOfferListEnvelope, type PlacesListQuery, type Plan, type PlanListEnvelope, type PlansListQuery, type PublicPlace, type PublicTaxonomyTerm, type ReadReceipt, type RecommendedJob, type RecommendedJobsListQuery, type RecommendedTalent, type RecommendedTalentListQuery, type RedirectResolution, type RefreshBody, type RegisterBody, RemoteOption, type RemotePermitTaxonomyEntry, type ReorderPipelineStagesBody, type ReplyBody, type ReportBody, type RequestEmailChangeBody, type RequestMagicLinkBody, type ResetPasswordBody, type Resume, type ResumeUploadOptions, SDK_VERSION, SalaryDetailQuery, type SalesLedPlan, type SalesLedPlanListEnvelope, type SaveJobBody, type SavedJob, type SavedJobsListQuery, SearchEnvelope, SearchSuggestQuery, type SendWorkEmailBody, Seniority, type StartAboutApplicationBody, type StartConversationBody, StorageMode, type TalentAccess, type TalentAccessCheckoutBody, type TalentAccessCheckoutSession, type TalentAccessCheckoutSessionState, type TalentAccessUpgrade, type TalentAccessUpgradeBody, type TalentCandidateAccess, type TalentDirectoryEntry, type TalentDirectoryListEnvelope, type TalentDirectoryQuery, type TalentProfile, type TalentUnlock, type TalentUnlockBody, type TaxonomyGeo, type TaxonomyListQuery, type TaxonomyResolution, type ThreadMessagesQuery, type UnreadCount, type UnsubscribeBody, type UpdateApplicationFactsBody, type UpdateCandidateProfileBody, type UpdateCompanyMemberRoleBody, type UpdateEducationBody, type UpdateEmployerCompanyBody, type UpdateEmployerJobBody, type UpdateExperienceBody, type UpdateLanguagesBody, type UpdateNotificationPreferenceBody, type UpdatePasswordBody, type UpdatePipelineStageBody, type UpdateSkillsBody, type VerifyEmailBody, createBoardClient, isBoardApiError, isBoardPasswordRequired, isColdRule, isConflict, isForbidden, isNotFound, isOwnMessage, isRateLimited, isSafeApplicationUrl, isUnauthorized, isValidationError, lastOwnMessageId, paginate, resolveApplyAction, resolveApplyDecision };
|
|
3457
|
+
export { type AcceptCompanyMemberInviteBody, type AccessCheckoutBody, type AccessCheckoutSession, type AccessCheckoutSessionState, type AccessGrant, type AccessPortalBody, type AccessPortalSession, type AddApplicantNoteBody, type AddSourcedCandidateBody, type Alert, type AlertBody, type Application, type ApplicationsListQuery, type ApplyAction, type ApplyApprovalPlan, type ApplyApprovalReceipt, type ApplyBody, type ApplyDecisionState, type ApplyIntent, Awaitable, BOARD_API_ERROR_CODES, type Block, type BlockStatus, type BlockUserBody, type BlockedUser, BlogPostsListQuery, BlogSearchBody, BlogSimilarQuery, type BoardAccessGrant, BoardApiError, type BoardApiErrorCode, type BoardAuthSession, BoardClient, BoardRequest, type BoardSdk, type BoardUser, type BulkMoveApplicantsBody, type BulkRejectApplicantsBody, type CandidateAvatar, type CandidateEducation, type CandidateExperience, type CandidateLanguage, type CandidateProfile, type CandidateSkill, type ClaimableCompany, CompaniesListQuery, CompaniesSearchBody, type CompanyBillingPortalBody, type CompanyBillingPortalSession, CompanyJobsListQuery, CompanyListEnvelope, CompanyMarketsListQuery, type CompanyMember, type CompanyMemberInvite, type CompanyMemberInviteAcceptance, type CompanyMembership, CompanySimilarQuery, type ConfirmEmailChangeBody, type ConfirmWorkEmailBody, type ConsumeMagicLinkBody, type Conversation, type ConversationArchive, type ConversationDetail, type ConversationRef, type ConversationsListQuery, type ConvertSourcedCandidateBody, type CreateApplyApprovalBody, type CreateApplyIntentBody, type CreateBoardClientOptions, type CreateCompanyBody, type CreateCompanyMemberInviteBody, type CreateEducationBody, type CreateEmployerJobBody, type CreateExperienceBody, type CreateJobPostingInput, type CreatePipelineStageBody, type CreateTalentListBody, type EditMessageBody, type EmbedJobsQuery, type EmployerApplicant, type EmployerBillingOption, type EmployerCheckout, type EmployerCheckoutBody, type EmployerCompany, type EmployerCompanySearchQuery, type EmployerJob, type EmployerJobStat, type EmployerJobStatsPoint, type EmployerJobStatsTimeseriesQuery, type EmployerJobSummary, type EmployerJobsListQuery, type EmployerPipeline, type EmployerPipelineQuery, type EmployerPipelineStage, type EmployerProfileStats, type EmployerProfileViewsPoint, type EmployerProfileViewsTimeseriesQuery, EmploymentType, FetchOptions, type FindExistingConversationQuery, type ForgotPasswordBody, type HandleAvailability, type JobAlertConfirmation, type JobAlertDeletePreferenceInput, type JobAlertFiltersInput, type JobAlertFrequency, type JobAlertManageQuery, type JobAlertManageResult, type JobAlertManageState, type JobAlertManageTokenInput, type JobAlertPreference, type JobAlertRemoteOption, type JobAlertResendResult, type JobAlertStoredFilters, type JobAlertSubscribeInput, type JobAlertSubscription, type JobAlertUpdatePreferenceInput, JobCardListEnvelope, JobCardSearchEnvelope, type JobPostingBillingOptions, type JobPostingBillingVerification, type JobPostingLogoResult, type JobPostingPlan, type JobPostingResult, JobsListQuery, JobsSearchBody, JobsSimilarQuery, ListEnvelope, Logger, type LoginBody, type LogoutBody, type MarketingConsent, type Message, type ModerationReport, type MoveApplicantStageBody, type NotificationPreference, type OAuthAuthorizationQuery, type OAuthAuthorizationUrl, type OAuthExchangeBody, type OAuthProvider, type Paginator, type PaywallOffer, type PaywallOfferListEnvelope, type PlacesListQuery, type Plan, type PlanListEnvelope, type PlansListQuery, type PublicPlace, type PublicTaxonomyTerm, type ReadReceipt, type RecommendedJob, type RecommendedJobsListQuery, type RecommendedTalent, type RecommendedTalentListQuery, type RedirectResolution, type RefreshBody, type RegisterBody, RemoteOption, type RemotePermitTaxonomyEntry, type ReorderPipelineStagesBody, type ReplyBody, type ReportBody, type RequestEmailChangeBody, type RequestMagicLinkBody, type ResetPasswordBody, type Resume, type ResumeUploadOptions, SDK_VERSION, SalaryDetailQuery, type SalesLedPlan, type SalesLedPlanListEnvelope, type SaveJobBody, type SavedJob, type SavedJobsListQuery, SearchEnvelope, SearchSuggestQuery, type SendWorkEmailBody, Seniority, type SourcedCandidate, type StartAboutApplicationBody, type StartConversationBody, StorageMode, type TalentAccess, type TalentAccessCheckoutBody, type TalentAccessCheckoutSession, type TalentAccessCheckoutSessionState, type TalentAccessUpgrade, type TalentAccessUpgradeBody, type TalentCandidateAccess, type TalentDirectoryEntry, type TalentDirectoryListEnvelope, type TalentDirectoryQuery, type TalentList, type TalentListFilters, type TalentProfile, type TalentUnlock, type TalentUnlockBody, type TaxonomyGeo, type TaxonomyListQuery, type TaxonomyResolution, type ThreadMessagesQuery, type UnreadCount, type UnsubscribeBody, type UpdateApplicationFactsBody, type UpdateCandidateProfileBody, type UpdateCompanyMemberRoleBody, type UpdateEducationBody, type UpdateEmployerCompanyBody, type UpdateEmployerJobBody, type UpdateExperienceBody, type UpdateLanguagesBody, type UpdateNotificationPreferenceBody, type UpdatePasswordBody, type UpdatePipelineStageBody, type UpdateSkillsBody, type UpdateTalentListBody, type VerifyEmailBody, createBoardClient, isBoardApiError, isBoardPasswordRequired, isColdRule, isConflict, isForbidden, isNotFound, isOwnMessage, isRateLimited, isSafeApplicationUrl, isUnauthorized, isValidationError, lastOwnMessageId, paginate, resolveApplyAction, resolveApplyDecision };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { S as Schemas, c as components } from './_spec-
|
|
2
|
-
import { F as FetchOptions, S as StorageMode, B as BoardRequest, A as Awaitable, L as Logger, a as BoardClient, b as SearchSuggestQuery } from './search-
|
|
3
|
-
export { c as ACCESS_TOKEN_KEY, d as BOARD_ACCESS_GRANT_KEY, C as CompanySuggestion, e as CustomStorage, M as MarketSuggestion, R as REFRESH_TOKEN_KEY, f as SearchSuggestType, g as SuggestResult, h as SuggestionItem, T as TermSuggestion } from './search-
|
|
4
|
-
import { c as CompaniesListQuery, d as CompanyListEnvelope, e as CompaniesSearchBody, f as CompanyJobsListQuery, g as CompanySimilarQuery, h as CompanyMarketsListQuery, i as SalaryDetailQuery } from './board-
|
|
5
|
-
export { a as CompanyCategorySalary, j as CompanyMarket, k as CompanyMarketRef, b as CompanySalary, l as CompanySalarySummary, C as CustomFieldDefinition, m as CustomFieldOption, n as CustomFieldType, L as LocationSalaryDetail, o as LocationSkillsIndex, p as LocationTitlesIndex, P as PublicBoard, q as PublicBoardAds, r as PublicBoardAnalytics, s as PublicBoardFeatures, t as PublicBoardJobForm, u as PublicCompany, v as PublicCompanyDetail, w as SalaryCompany, x as SalaryLocation, y as SalarySkill, z as SalaryTitle, A as SkillLocationSalary, B as SkillLocationsIndex, S as SkillSalaryDetail, D as TitleLocationSalary, E as TitleLocationsIndex, T as TitleSalaryDetail } from './board-
|
|
6
|
-
export { B as BoardSeo } from './seo-
|
|
7
|
-
import { R as RemoteOption, E as EmploymentType, S as Seniority, L as ListEnvelope, a as JobsListQuery, b as JobCardListEnvelope, c as JobsSearchBody, d as JobCardSearchEnvelope, e as JobsSimilarQuery, f as SearchEnvelope } from './jobs-
|
|
8
|
-
export { g as CustomFieldValue, C as CustomFieldValues, h as EducationRequirement, i as JobCatalogPagination, j as JobCompany, J as JobSort, O as OfficeLocation, k as OffsetPagination, P as PublicJob, l as PublicJobCard, m as RelatedSearch, n as RemotePermit, o as RemoteTimezone, p as StorefrontPagination } from './jobs-
|
|
9
|
-
import { a as BlogPostsListQuery, b as BlogSimilarQuery, c as BlogSearchBody } from './blog-
|
|
10
|
-
export { B as BlogAuthorEmbed, d as BlogTagEmbed, e as PublicBlogAdjacentPosts, f as PublicBlogAuthor, g as PublicBlogPost, P as PublicBlogPostSummary, h as PublicBlogTag } from './blog-
|
|
1
|
+
import { S as Schemas, c as components } from './_spec-CzS_E61o.js';
|
|
2
|
+
import { F as FetchOptions, S as StorageMode, B as BoardRequest, A as Awaitable, L as Logger, a as BoardClient, b as SearchSuggestQuery } from './search-B3nCRBqd.js';
|
|
3
|
+
export { c as ACCESS_TOKEN_KEY, d as BOARD_ACCESS_GRANT_KEY, C as CompanySuggestion, e as CustomStorage, M as MarketSuggestion, R as REFRESH_TOKEN_KEY, f as SearchSuggestType, g as SuggestResult, h as SuggestionItem, T as TermSuggestion } from './search-B3nCRBqd.js';
|
|
4
|
+
import { c as CompaniesListQuery, d as CompanyListEnvelope, e as CompaniesSearchBody, f as CompanyJobsListQuery, g as CompanySimilarQuery, h as CompanyMarketsListQuery, i as SalaryDetailQuery } from './board-MqLMXY48.js';
|
|
5
|
+
export { a as CompanyCategorySalary, j as CompanyMarket, k as CompanyMarketRef, b as CompanySalary, l as CompanySalarySummary, C as CustomFieldDefinition, m as CustomFieldOption, n as CustomFieldType, L as LocationSalaryDetail, o as LocationSkillsIndex, p as LocationTitlesIndex, P as PublicBoard, q as PublicBoardAds, r as PublicBoardAnalytics, s as PublicBoardFeatures, t as PublicBoardJobForm, u as PublicCompany, v as PublicCompanyDetail, w as SalaryCompany, x as SalaryLocation, y as SalarySkill, z as SalaryTitle, A as SkillLocationSalary, B as SkillLocationsIndex, S as SkillSalaryDetail, D as TitleLocationSalary, E as TitleLocationsIndex, T as TitleSalaryDetail } from './board-MqLMXY48.js';
|
|
6
|
+
export { B as BoardSeo } from './seo-BUDWv2pv.js';
|
|
7
|
+
import { R as RemoteOption, E as EmploymentType, S as Seniority, L as ListEnvelope, a as JobsListQuery, b as JobCardListEnvelope, c as JobsSearchBody, d as JobCardSearchEnvelope, e as JobsSimilarQuery, f as SearchEnvelope } from './jobs-DDJDUH3q.js';
|
|
8
|
+
export { g as CustomFieldValue, C as CustomFieldValues, h as EducationRequirement, i as JobCatalogPagination, j as JobCompany, J as JobSort, O as OfficeLocation, k as OffsetPagination, P as PublicJob, l as PublicJobCard, m as RelatedSearch, n as RemotePermit, o as RemoteTimezone, p as StorefrontPagination } from './jobs-DDJDUH3q.js';
|
|
9
|
+
import { a as BlogPostsListQuery, b as BlogSimilarQuery, c as BlogSearchBody } from './blog-CtRz0ZlI.js';
|
|
10
|
+
export { B as BlogAuthorEmbed, d as BlogTagEmbed, e as PublicBlogAdjacentPosts, f as PublicBlogAuthor, g as PublicBlogPost, P as PublicBlogPostSummary, h as PublicBlogTag } from './blog-CtRz0ZlI.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Well-known `<domain>_<snake_reason>` codes the Board API sends, grouped by
|
|
@@ -20,7 +20,7 @@ export { B as BlogAuthorEmbed, d as BlogTagEmbed, e as PublicBlogAdjacentPosts,
|
|
|
20
20
|
* `unknown_error` is SDK-synthesized when a response carries no parseable
|
|
21
21
|
* envelope.
|
|
22
22
|
*/
|
|
23
|
-
declare const BOARD_API_ERROR_CODES: readonly ["internal_error", "validation_bad_request", "validation_payload_too_large", "rate_limited", "rate_limit_unavailable", "search_unavailable", "too_many_filter_values", "pagination_invalid_cursor", "pagination_offset_too_large", "auth_unauthenticated", "auth_forbidden", "plan_upgrade_required", "unknown_error", "boards_not_found", "board_page_not_found", "board_auth_email_taken", "board_auth_invalid_credentials", "board_auth_invalid_token", "board_auth_registration_disabled", "board_auth_token_expired", "invalid_current_password", "no_password", "same_email", "email_taken", "invalid_token", "board_password_required", "board_password_invalid", "jobs_not_found", "jobs_invalid_filter", "categories_not_found", "skills_not_found", "places_not_found", "companies_not_found", "company_markets_not_found", "company_salary_not_found", "company_category_salary_not_found", "salaries_title_not_found", "salaries_skill_not_found", "salaries_location_not_found", "salaries_title_location_not_found", "salaries_skill_location_not_found", "blog_post_not_found", "blog_author_not_found", "blog_tag_not_found", "talent_not_found", "talent_directory_not_found", "talent_directory_restricted", "job_recommendations_not_found", "recommended_talent_not_found", "job_alert_not_found", "job_alerts_disabled", "candidate_alert_limit_reached", "candidate_alert_not_found", "candidate_entry_not_found", "candidate_handle_taken", "candidate_job_not_found", "candidate_notification_preference_paused", "resume_invalid_file", "resume_upload_forbidden", "applications_external_apply_only", "applications_country_not_allowed", "applications_guest_not_allowed", "applications_job_not_found", "applications_not_found", "applications_resume_invalid_file", "applications_unprocessable", "messaging_application_not_found", "messaging_application_not_linked", "messaging_blocked", "messaging_cannot_block_self", "messaging_cold_rule", "messaging_conversation_not_found", "messaging_disabled", "messaging_edit_window_expired", "messaging_message_deleted", "messaging_message_not_found", "messaging_not_author", "messaging_not_participant", "messaging_not_permitted", "messaging_not_recipient", "messaging_rate_limited", "messaging_recipient_not_found", "messaging_recipient_not_open", "messaging_unsend_window_expired", "employer_applicant_not_found", "employer_ats_unprocessable", "employer_checkout_failed", "employer_company_exists", "employer_company_name_taken", "employer_company_not_found", "employer_job_not_found", "employer_job_slug_taken", "employer_jobs_quota_exceeded", "employer_not_member", "employer_payment_required", "employer_pipeline_stage_not_found", "employer_member_not_found", "employer_invite_not_found", "not_company_admin", "not_company_member", "company_deletion_disabled", "last_admin", "already_member", "already_invited", "invalid_email", "invite_email_mismatch", "candidate_role", "job_not_published", "paywall_already_active", "paywall_disabled", "paywall_invalid_checkout_session", "paywall_no_candidate_profile", "paywall_no_recurring_subscription", "paywall_offer_not_found", "talent_access_unavailable", "company_required", "already_on_plan", "talent_access_required", "messaging_talent_access_required", "stripe_not_connected", "job_posting_logo_lookup_unavailable", "job_posting_logo_not_found", "job_posting_rejected"];
|
|
23
|
+
declare const BOARD_API_ERROR_CODES: readonly ["internal_error", "validation_bad_request", "validation_payload_too_large", "rate_limited", "rate_limit_unavailable", "search_unavailable", "too_many_filter_values", "pagination_invalid_cursor", "pagination_offset_too_large", "auth_unauthenticated", "auth_forbidden", "plan_upgrade_required", "unknown_error", "boards_not_found", "board_page_not_found", "board_auth_email_taken", "board_auth_invalid_credentials", "board_auth_invalid_token", "board_auth_registration_disabled", "board_auth_token_expired", "invalid_current_password", "no_password", "same_email", "email_taken", "invalid_token", "board_password_required", "board_password_invalid", "jobs_not_found", "jobs_invalid_filter", "categories_not_found", "skills_not_found", "places_not_found", "companies_not_found", "company_markets_not_found", "company_salary_not_found", "company_category_salary_not_found", "salaries_title_not_found", "salaries_skill_not_found", "salaries_location_not_found", "salaries_title_location_not_found", "salaries_skill_location_not_found", "blog_post_not_found", "blog_author_not_found", "blog_tag_not_found", "talent_not_found", "talent_directory_not_found", "talent_directory_restricted", "job_recommendations_not_found", "recommended_talent_not_found", "job_alert_not_found", "job_alerts_disabled", "candidate_alert_limit_reached", "candidate_alert_not_found", "candidate_entry_not_found", "candidate_handle_taken", "candidate_job_not_found", "candidate_notification_preference_paused", "resume_invalid_file", "resume_upload_forbidden", "applications_external_apply_only", "applications_country_not_allowed", "applications_guest_not_allowed", "applications_job_not_found", "applications_not_found", "applications_resume_invalid_file", "applications_unprocessable", "messaging_application_not_found", "messaging_application_not_linked", "messaging_blocked", "messaging_cannot_block_self", "messaging_cold_rule", "messaging_conversation_not_found", "messaging_disabled", "messaging_edit_window_expired", "messaging_message_deleted", "messaging_message_not_found", "messaging_not_author", "messaging_not_participant", "messaging_not_permitted", "messaging_not_recipient", "messaging_rate_limited", "messaging_recipient_not_found", "messaging_recipient_not_open", "messaging_unsend_window_expired", "employer_applicant_not_found", "employer_ats_unprocessable", "employer_checkout_failed", "employer_company_exists", "employer_company_name_taken", "employer_company_not_found", "employer_job_not_found", "employer_job_slug_taken", "employer_jobs_quota_exceeded", "employer_not_member", "employer_payment_required", "employer_pipeline_stage_not_found", "employer_member_not_found", "employer_invite_not_found", "not_company_admin", "not_company_member", "company_deletion_disabled", "last_admin", "already_member", "already_invited", "invalid_email", "invite_email_mismatch", "candidate_role", "job_not_published", "talent_list_not_found", "sourced_candidate_not_found", "sourced_convert_unavailable", "paywall_already_active", "paywall_disabled", "paywall_invalid_checkout_session", "paywall_no_candidate_profile", "paywall_no_recurring_subscription", "paywall_offer_not_found", "talent_access_unavailable", "company_required", "already_on_plan", "talent_access_required", "messaging_talent_access_required", "stripe_not_connected", "job_posting_logo_lookup_unavailable", "job_posting_logo_not_found", "job_posting_rejected"];
|
|
24
24
|
/**
|
|
25
25
|
* The known code set plus open string — new codes ship additively within v1,
|
|
26
26
|
* so exhaustive narrowing is intentionally impossible.
|
|
@@ -143,7 +143,7 @@ declare function paginate<Q extends Record<string, unknown>, P extends PageShape
|
|
|
143
143
|
* constant because the package is platform-neutral and cannot read
|
|
144
144
|
* package.json at runtime.
|
|
145
145
|
*/
|
|
146
|
-
declare const SDK_VERSION = "4.
|
|
146
|
+
declare const SDK_VERSION = "4.14.0";
|
|
147
147
|
|
|
148
148
|
type SavedJob = Schemas['SavedJob'];
|
|
149
149
|
type SavedJobsListQuery = {
|
|
@@ -177,6 +177,52 @@ type RecommendedTalentListQuery = {
|
|
|
177
177
|
/** 1–100. */
|
|
178
178
|
limit?: number;
|
|
179
179
|
};
|
|
180
|
+
type TalentListFilters = {
|
|
181
|
+
q?: string;
|
|
182
|
+
skill?: string;
|
|
183
|
+
jobSearchStatus?: 'actively_looking' | 'open_to_offers' | 'not_looking';
|
|
184
|
+
languages?: string[];
|
|
185
|
+
openToRelocate?: boolean;
|
|
186
|
+
place?: string;
|
|
187
|
+
sort?: 'relevance' | 'newest';
|
|
188
|
+
seniority?: string;
|
|
189
|
+
permitCountry?: string;
|
|
190
|
+
interestedRole?: string;
|
|
191
|
+
};
|
|
192
|
+
type TalentList = {
|
|
193
|
+
id: string;
|
|
194
|
+
object: 'talent_list';
|
|
195
|
+
name: string;
|
|
196
|
+
filters: TalentListFilters;
|
|
197
|
+
jobId: string | null;
|
|
198
|
+
createdBy: string;
|
|
199
|
+
createdAt: number;
|
|
200
|
+
updatedAt: number;
|
|
201
|
+
};
|
|
202
|
+
type CreateTalentListBody = {
|
|
203
|
+
name: string;
|
|
204
|
+
filters?: TalentListFilters;
|
|
205
|
+
job?: string;
|
|
206
|
+
};
|
|
207
|
+
type UpdateTalentListBody = {
|
|
208
|
+
name?: string;
|
|
209
|
+
filters?: TalentListFilters;
|
|
210
|
+
job?: string | null;
|
|
211
|
+
};
|
|
212
|
+
type SourcedCandidate = {
|
|
213
|
+
id: string;
|
|
214
|
+
object: 'sourced_candidate';
|
|
215
|
+
candidate: Schemas['TalentDirectoryEntry'];
|
|
216
|
+
sourcedAt: number;
|
|
217
|
+
sourcedBy: string;
|
|
218
|
+
};
|
|
219
|
+
type AddSourcedCandidateBody = {
|
|
220
|
+
job: string;
|
|
221
|
+
candidateBoardUserId: string;
|
|
222
|
+
};
|
|
223
|
+
type ConvertSourcedCandidateBody = {
|
|
224
|
+
stage: string;
|
|
225
|
+
};
|
|
180
226
|
type SaveJobBody = Schemas['SaveJobBody'];
|
|
181
227
|
/** The authenticated user's lean candidate profile singleton. */
|
|
182
228
|
type CandidateProfile = Schemas['CandidateProfile'];
|
|
@@ -545,6 +591,12 @@ type ConsumeMagicLinkBody = Schemas['BoardAuthConsumeMagicLinkBody'];
|
|
|
545
591
|
type OAuthProvider = 'google' | 'linkedin';
|
|
546
592
|
type OAuthAuthorizationQuery = {
|
|
547
593
|
returnTo?: string;
|
|
594
|
+
/**
|
|
595
|
+
* Role profile to create when the handshake signs up a NEW user; defaults
|
|
596
|
+
* to `candidate`. Pass `employer` from an employer sign-up surface — the
|
|
597
|
+
* role is fixed at authorize time and cannot be changed on the callback.
|
|
598
|
+
*/
|
|
599
|
+
role?: 'candidate' | 'employer';
|
|
548
600
|
};
|
|
549
601
|
type OAuthAuthorizationUrl = Schemas['BoardAuthOAuthAuthorizationUrl'];
|
|
550
602
|
type OAuthExchangeBody = Schemas['BoardAuthOAuthExchangeBody'];
|
|
@@ -628,6 +680,16 @@ type TalentDirectoryQuery = {
|
|
|
628
680
|
* `cursor`. Pair with the response `count` to page in parallel.
|
|
629
681
|
*/
|
|
630
682
|
offset?: number;
|
|
683
|
+
jobSearchStatus?: 'actively_looking' | 'open_to_offers' | 'not_looking';
|
|
684
|
+
/** Comma-separated language names. */
|
|
685
|
+
languages?: string;
|
|
686
|
+
openToRelocate?: 'true' | 'false';
|
|
687
|
+
/** English source place slug. No-op until place ids ship. */
|
|
688
|
+
place?: string;
|
|
689
|
+
sort?: 'relevance' | 'newest';
|
|
690
|
+
seniority?: string;
|
|
691
|
+
permitCountry?: string;
|
|
692
|
+
interestedRole?: string;
|
|
631
693
|
};
|
|
632
694
|
type TalentDirectoryListEnvelope = ListEnvelope<TalentDirectoryEntry>;
|
|
633
695
|
|
|
@@ -897,6 +959,7 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
897
959
|
};
|
|
898
960
|
contact: {
|
|
899
961
|
email: string | null;
|
|
962
|
+
legalName: string | null;
|
|
900
963
|
websiteUrl: string | null;
|
|
901
964
|
xUrl: string | null;
|
|
902
965
|
facebookUrl: string | null;
|
|
@@ -1483,6 +1546,21 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
1483
1546
|
}>;
|
|
1484
1547
|
logout(body?: LogoutBody, options?: FetchOptions): Promise<void>;
|
|
1485
1548
|
verifyEmail(body: VerifyEmailBody, options?: FetchOptions): Promise<void>;
|
|
1549
|
+
verifyWorkEmail(body: ConfirmWorkEmailBody, options?: FetchOptions): Promise<{
|
|
1550
|
+
id: string;
|
|
1551
|
+
object: "company_membership";
|
|
1552
|
+
status: "approved" | "pending_work_email" | "awaiting_admin" | "rejected";
|
|
1553
|
+
role: string;
|
|
1554
|
+
workEmail: string | null;
|
|
1555
|
+
workEmailVerifiedAt: string | null;
|
|
1556
|
+
company: {
|
|
1557
|
+
id: string;
|
|
1558
|
+
name: string;
|
|
1559
|
+
slug: string | null;
|
|
1560
|
+
website: string | null;
|
|
1561
|
+
logoUrl: string | null;
|
|
1562
|
+
};
|
|
1563
|
+
}>;
|
|
1486
1564
|
verifyEmailWithCode(body: {
|
|
1487
1565
|
code: string;
|
|
1488
1566
|
}, options?: FetchOptions): Promise<void>;
|
|
@@ -2173,6 +2251,28 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
2173
2251
|
candidate: components["schemas"]["TalentDirectoryEntry"];
|
|
2174
2252
|
}>>;
|
|
2175
2253
|
};
|
|
2254
|
+
talentLists: {
|
|
2255
|
+
list(slug: string, options?: FetchOptions): Promise<ListEnvelope<TalentList>>;
|
|
2256
|
+
create(slug: string, body: CreateTalentListBody, options?: FetchOptions): Promise<TalentList>;
|
|
2257
|
+
update(slug: string, listId: string, body: UpdateTalentListBody, options?: FetchOptions): Promise<TalentList>;
|
|
2258
|
+
remove(slug: string, listId: string, options?: FetchOptions): Promise<void>;
|
|
2259
|
+
};
|
|
2260
|
+
sourcedCandidates: {
|
|
2261
|
+
list(slug: string, query: {
|
|
2262
|
+
job: string;
|
|
2263
|
+
}, options?: FetchOptions): Promise<ListEnvelope<SourcedCandidate>>;
|
|
2264
|
+
add(slug: string, body: AddSourcedCandidateBody, options?: FetchOptions): Promise<{
|
|
2265
|
+
id: string;
|
|
2266
|
+
object: "sourced_candidate";
|
|
2267
|
+
created: boolean;
|
|
2268
|
+
}>;
|
|
2269
|
+
remove(slug: string, sourcedId: string, options?: FetchOptions): Promise<void>;
|
|
2270
|
+
convert(slug: string, sourcedId: string, body: ConvertSourcedCandidateBody, options?: FetchOptions): Promise<{
|
|
2271
|
+
id: string;
|
|
2272
|
+
object: "application";
|
|
2273
|
+
created: boolean;
|
|
2274
|
+
}>;
|
|
2275
|
+
};
|
|
2176
2276
|
applicants: {
|
|
2177
2277
|
list(slug: string, query: EmployerPipelineQuery, options?: FetchOptions): Promise<{
|
|
2178
2278
|
object: "employer_pipeline";
|
|
@@ -3354,4 +3454,4 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
3354
3454
|
};
|
|
3355
3455
|
type BoardSdk = ReturnType<typeof createBoardClient>;
|
|
3356
3456
|
|
|
3357
|
-
export { type AcceptCompanyMemberInviteBody, type AccessCheckoutBody, type AccessCheckoutSession, type AccessCheckoutSessionState, type AccessGrant, type AccessPortalBody, type AccessPortalSession, type AddApplicantNoteBody, type Alert, type AlertBody, type Application, type ApplicationsListQuery, type ApplyAction, type ApplyApprovalPlan, type ApplyApprovalReceipt, type ApplyBody, type ApplyDecisionState, type ApplyIntent, Awaitable, BOARD_API_ERROR_CODES, type Block, type BlockStatus, type BlockUserBody, type BlockedUser, BlogPostsListQuery, BlogSearchBody, BlogSimilarQuery, type BoardAccessGrant, BoardApiError, type BoardApiErrorCode, type BoardAuthSession, BoardClient, BoardRequest, type BoardSdk, type BoardUser, type BulkMoveApplicantsBody, type BulkRejectApplicantsBody, type CandidateAvatar, type CandidateEducation, type CandidateExperience, type CandidateLanguage, type CandidateProfile, type CandidateSkill, type ClaimableCompany, CompaniesListQuery, CompaniesSearchBody, type CompanyBillingPortalBody, type CompanyBillingPortalSession, CompanyJobsListQuery, CompanyListEnvelope, CompanyMarketsListQuery, type CompanyMember, type CompanyMemberInvite, type CompanyMemberInviteAcceptance, type CompanyMembership, CompanySimilarQuery, type ConfirmEmailChangeBody, type ConfirmWorkEmailBody, type ConsumeMagicLinkBody, type Conversation, type ConversationArchive, type ConversationDetail, type ConversationRef, type ConversationsListQuery, type CreateApplyApprovalBody, type CreateApplyIntentBody, type CreateBoardClientOptions, type CreateCompanyBody, type CreateCompanyMemberInviteBody, type CreateEducationBody, type CreateEmployerJobBody, type CreateExperienceBody, type CreateJobPostingInput, type CreatePipelineStageBody, type EditMessageBody, type EmbedJobsQuery, type EmployerApplicant, type EmployerBillingOption, type EmployerCheckout, type EmployerCheckoutBody, type EmployerCompany, type EmployerCompanySearchQuery, type EmployerJob, type EmployerJobStat, type EmployerJobStatsPoint, type EmployerJobStatsTimeseriesQuery, type EmployerJobSummary, type EmployerJobsListQuery, type EmployerPipeline, type EmployerPipelineQuery, type EmployerPipelineStage, type EmployerProfileStats, type EmployerProfileViewsPoint, type EmployerProfileViewsTimeseriesQuery, EmploymentType, FetchOptions, type FindExistingConversationQuery, type ForgotPasswordBody, type HandleAvailability, type JobAlertConfirmation, type JobAlertDeletePreferenceInput, type JobAlertFiltersInput, type JobAlertFrequency, type JobAlertManageQuery, type JobAlertManageResult, type JobAlertManageState, type JobAlertManageTokenInput, type JobAlertPreference, type JobAlertRemoteOption, type JobAlertResendResult, type JobAlertStoredFilters, type JobAlertSubscribeInput, type JobAlertSubscription, type JobAlertUpdatePreferenceInput, JobCardListEnvelope, JobCardSearchEnvelope, type JobPostingBillingOptions, type JobPostingBillingVerification, type JobPostingLogoResult, type JobPostingPlan, type JobPostingResult, JobsListQuery, JobsSearchBody, JobsSimilarQuery, ListEnvelope, Logger, type LoginBody, type LogoutBody, type MarketingConsent, type Message, type ModerationReport, type MoveApplicantStageBody, type NotificationPreference, type OAuthAuthorizationQuery, type OAuthAuthorizationUrl, type OAuthExchangeBody, type OAuthProvider, type Paginator, type PaywallOffer, type PaywallOfferListEnvelope, type PlacesListQuery, type Plan, type PlanListEnvelope, type PlansListQuery, type PublicPlace, type PublicTaxonomyTerm, type ReadReceipt, type RecommendedJob, type RecommendedJobsListQuery, type RecommendedTalent, type RecommendedTalentListQuery, type RedirectResolution, type RefreshBody, type RegisterBody, RemoteOption, type RemotePermitTaxonomyEntry, type ReorderPipelineStagesBody, type ReplyBody, type ReportBody, type RequestEmailChangeBody, type RequestMagicLinkBody, type ResetPasswordBody, type Resume, type ResumeUploadOptions, SDK_VERSION, SalaryDetailQuery, type SalesLedPlan, type SalesLedPlanListEnvelope, type SaveJobBody, type SavedJob, type SavedJobsListQuery, SearchEnvelope, SearchSuggestQuery, type SendWorkEmailBody, Seniority, type StartAboutApplicationBody, type StartConversationBody, StorageMode, type TalentAccess, type TalentAccessCheckoutBody, type TalentAccessCheckoutSession, type TalentAccessCheckoutSessionState, type TalentAccessUpgrade, type TalentAccessUpgradeBody, type TalentCandidateAccess, type TalentDirectoryEntry, type TalentDirectoryListEnvelope, type TalentDirectoryQuery, type TalentProfile, type TalentUnlock, type TalentUnlockBody, type TaxonomyGeo, type TaxonomyListQuery, type TaxonomyResolution, type ThreadMessagesQuery, type UnreadCount, type UnsubscribeBody, type UpdateApplicationFactsBody, type UpdateCandidateProfileBody, type UpdateCompanyMemberRoleBody, type UpdateEducationBody, type UpdateEmployerCompanyBody, type UpdateEmployerJobBody, type UpdateExperienceBody, type UpdateLanguagesBody, type UpdateNotificationPreferenceBody, type UpdatePasswordBody, type UpdatePipelineStageBody, type UpdateSkillsBody, type VerifyEmailBody, createBoardClient, isBoardApiError, isBoardPasswordRequired, isColdRule, isConflict, isForbidden, isNotFound, isOwnMessage, isRateLimited, isSafeApplicationUrl, isUnauthorized, isValidationError, lastOwnMessageId, paginate, resolveApplyAction, resolveApplyDecision };
|
|
3457
|
+
export { type AcceptCompanyMemberInviteBody, type AccessCheckoutBody, type AccessCheckoutSession, type AccessCheckoutSessionState, type AccessGrant, type AccessPortalBody, type AccessPortalSession, type AddApplicantNoteBody, type AddSourcedCandidateBody, type Alert, type AlertBody, type Application, type ApplicationsListQuery, type ApplyAction, type ApplyApprovalPlan, type ApplyApprovalReceipt, type ApplyBody, type ApplyDecisionState, type ApplyIntent, Awaitable, BOARD_API_ERROR_CODES, type Block, type BlockStatus, type BlockUserBody, type BlockedUser, BlogPostsListQuery, BlogSearchBody, BlogSimilarQuery, type BoardAccessGrant, BoardApiError, type BoardApiErrorCode, type BoardAuthSession, BoardClient, BoardRequest, type BoardSdk, type BoardUser, type BulkMoveApplicantsBody, type BulkRejectApplicantsBody, type CandidateAvatar, type CandidateEducation, type CandidateExperience, type CandidateLanguage, type CandidateProfile, type CandidateSkill, type ClaimableCompany, CompaniesListQuery, CompaniesSearchBody, type CompanyBillingPortalBody, type CompanyBillingPortalSession, CompanyJobsListQuery, CompanyListEnvelope, CompanyMarketsListQuery, type CompanyMember, type CompanyMemberInvite, type CompanyMemberInviteAcceptance, type CompanyMembership, CompanySimilarQuery, type ConfirmEmailChangeBody, type ConfirmWorkEmailBody, type ConsumeMagicLinkBody, type Conversation, type ConversationArchive, type ConversationDetail, type ConversationRef, type ConversationsListQuery, type ConvertSourcedCandidateBody, type CreateApplyApprovalBody, type CreateApplyIntentBody, type CreateBoardClientOptions, type CreateCompanyBody, type CreateCompanyMemberInviteBody, type CreateEducationBody, type CreateEmployerJobBody, type CreateExperienceBody, type CreateJobPostingInput, type CreatePipelineStageBody, type CreateTalentListBody, type EditMessageBody, type EmbedJobsQuery, type EmployerApplicant, type EmployerBillingOption, type EmployerCheckout, type EmployerCheckoutBody, type EmployerCompany, type EmployerCompanySearchQuery, type EmployerJob, type EmployerJobStat, type EmployerJobStatsPoint, type EmployerJobStatsTimeseriesQuery, type EmployerJobSummary, type EmployerJobsListQuery, type EmployerPipeline, type EmployerPipelineQuery, type EmployerPipelineStage, type EmployerProfileStats, type EmployerProfileViewsPoint, type EmployerProfileViewsTimeseriesQuery, EmploymentType, FetchOptions, type FindExistingConversationQuery, type ForgotPasswordBody, type HandleAvailability, type JobAlertConfirmation, type JobAlertDeletePreferenceInput, type JobAlertFiltersInput, type JobAlertFrequency, type JobAlertManageQuery, type JobAlertManageResult, type JobAlertManageState, type JobAlertManageTokenInput, type JobAlertPreference, type JobAlertRemoteOption, type JobAlertResendResult, type JobAlertStoredFilters, type JobAlertSubscribeInput, type JobAlertSubscription, type JobAlertUpdatePreferenceInput, JobCardListEnvelope, JobCardSearchEnvelope, type JobPostingBillingOptions, type JobPostingBillingVerification, type JobPostingLogoResult, type JobPostingPlan, type JobPostingResult, JobsListQuery, JobsSearchBody, JobsSimilarQuery, ListEnvelope, Logger, type LoginBody, type LogoutBody, type MarketingConsent, type Message, type ModerationReport, type MoveApplicantStageBody, type NotificationPreference, type OAuthAuthorizationQuery, type OAuthAuthorizationUrl, type OAuthExchangeBody, type OAuthProvider, type Paginator, type PaywallOffer, type PaywallOfferListEnvelope, type PlacesListQuery, type Plan, type PlanListEnvelope, type PlansListQuery, type PublicPlace, type PublicTaxonomyTerm, type ReadReceipt, type RecommendedJob, type RecommendedJobsListQuery, type RecommendedTalent, type RecommendedTalentListQuery, type RedirectResolution, type RefreshBody, type RegisterBody, RemoteOption, type RemotePermitTaxonomyEntry, type ReorderPipelineStagesBody, type ReplyBody, type ReportBody, type RequestEmailChangeBody, type RequestMagicLinkBody, type ResetPasswordBody, type Resume, type ResumeUploadOptions, SDK_VERSION, SalaryDetailQuery, type SalesLedPlan, type SalesLedPlanListEnvelope, type SaveJobBody, type SavedJob, type SavedJobsListQuery, SearchEnvelope, SearchSuggestQuery, type SendWorkEmailBody, Seniority, type SourcedCandidate, type StartAboutApplicationBody, type StartConversationBody, StorageMode, type TalentAccess, type TalentAccessCheckoutBody, type TalentAccessCheckoutSession, type TalentAccessCheckoutSessionState, type TalentAccessUpgrade, type TalentAccessUpgradeBody, type TalentCandidateAccess, type TalentDirectoryEntry, type TalentDirectoryListEnvelope, type TalentDirectoryQuery, type TalentList, type TalentListFilters, type TalentProfile, type TalentUnlock, type TalentUnlockBody, type TaxonomyGeo, type TaxonomyListQuery, type TaxonomyResolution, type ThreadMessagesQuery, type UnreadCount, type UnsubscribeBody, type UpdateApplicationFactsBody, type UpdateCandidateProfileBody, type UpdateCompanyMemberRoleBody, type UpdateEducationBody, type UpdateEmployerCompanyBody, type UpdateEmployerJobBody, type UpdateExperienceBody, type UpdateLanguagesBody, type UpdateNotificationPreferenceBody, type UpdatePasswordBody, type UpdatePipelineStageBody, type UpdateSkillsBody, type UpdateTalentListBody, type VerifyEmailBody, createBoardClient, isBoardApiError, isBoardPasswordRequired, isColdRule, isConflict, isForbidden, isNotFound, isOwnMessage, isRateLimited, isSafeApplicationUrl, isUnauthorized, isValidationError, lastOwnMessageId, paginate, resolveApplyAction, resolveApplyDecision };
|
package/dist/index.js
CHANGED
|
@@ -173,6 +173,10 @@ var BOARD_API_ERROR_CODES = [
|
|
|
173
173
|
// Employer recommended talent — a draft job carries no vectors,
|
|
174
174
|
// so it cannot be matched at all. Distinct from `jobs_not_published`.
|
|
175
175
|
"job_not_published",
|
|
176
|
+
// Employer talent lists + sourced convert
|
|
177
|
+
"talent_list_not_found",
|
|
178
|
+
"sourced_candidate_not_found",
|
|
179
|
+
"sourced_convert_unavailable",
|
|
176
180
|
// Candidate job-access paywall
|
|
177
181
|
"paywall_already_active",
|
|
178
182
|
"paywall_disabled",
|
|
@@ -343,7 +347,7 @@ async function clearSession(storage) {
|
|
|
343
347
|
}
|
|
344
348
|
|
|
345
349
|
// src/version.ts
|
|
346
|
-
var SDK_VERSION = "4.
|
|
350
|
+
var SDK_VERSION = "4.14.0";
|
|
347
351
|
|
|
348
352
|
// src/client.ts
|
|
349
353
|
function isRawBody(body) {
|
|
@@ -557,6 +561,23 @@ function authNamespace(client) {
|
|
|
557
561
|
body
|
|
558
562
|
});
|
|
559
563
|
},
|
|
564
|
+
/**
|
|
565
|
+
* Confirm an employer work-email verification token (from the link in the
|
|
566
|
+
* work-email verification email) and promote the pending company claim —
|
|
567
|
+
* approved on domain match, otherwise `awaiting_admin`. No session needed:
|
|
568
|
+
* the single-use token IS the authorization, and it alone identifies the
|
|
569
|
+
* membership. Returns the membership in its new state.
|
|
570
|
+
*
|
|
571
|
+
* @example
|
|
572
|
+
* const membership = await board.auth.verifyWorkEmail({ token });
|
|
573
|
+
*/
|
|
574
|
+
verifyWorkEmail(body, options) {
|
|
575
|
+
return client.fetch("/auth/verify-work-email", {
|
|
576
|
+
...options,
|
|
577
|
+
method: "POST",
|
|
578
|
+
body
|
|
579
|
+
});
|
|
580
|
+
},
|
|
560
581
|
/**
|
|
561
582
|
* Verify the signed-in board user's email with the 6-digit code from the
|
|
562
583
|
* verification email (requires the bearer). Resolves void (204); an
|
|
@@ -1701,6 +1722,10 @@ function meNamespace(client) {
|
|
|
1701
1722
|
* required, the token IS the authorization. Returns the membership in
|
|
1702
1723
|
* its new state.
|
|
1703
1724
|
*
|
|
1725
|
+
* @deprecated Use `board.auth.verifyWorkEmail({ token })`. `slug` is
|
|
1726
|
+
* ignored by the server — the token alone identifies the membership,
|
|
1727
|
+
* and a caller following an email link has no slug to supply.
|
|
1728
|
+
*
|
|
1704
1729
|
* @example
|
|
1705
1730
|
* await board.me.companies.workEmail.confirm('acme', { token });
|
|
1706
1731
|
*/
|
|
@@ -1985,6 +2010,125 @@ function meNamespace(client) {
|
|
|
1985
2010
|
);
|
|
1986
2011
|
}
|
|
1987
2012
|
},
|
|
2013
|
+
/**
|
|
2014
|
+
* Company-owned saved predicates over the talent directory.
|
|
2015
|
+
* Approved members share the same lists. Optional `job` binds a list
|
|
2016
|
+
* to one company job; pass `job: null` on update to unbind.
|
|
2017
|
+
*/
|
|
2018
|
+
talentLists: {
|
|
2019
|
+
/**
|
|
2020
|
+
* List talent lists for a company I am an approved member of.
|
|
2021
|
+
*
|
|
2022
|
+
* @example
|
|
2023
|
+
* const { data } = await board.me.companies.talentLists.list('acme');
|
|
2024
|
+
*/
|
|
2025
|
+
list(slug, options) {
|
|
2026
|
+
return client.fetch(
|
|
2027
|
+
`/me/companies/${encodeURIComponent(slug)}/talent-lists`,
|
|
2028
|
+
options
|
|
2029
|
+
);
|
|
2030
|
+
},
|
|
2031
|
+
/**
|
|
2032
|
+
* Create a talent list. `filters` reuse the frozen `/talent` query.
|
|
2033
|
+
*
|
|
2034
|
+
* @example
|
|
2035
|
+
* const list = await board.me.companies.talentLists.create('acme', {
|
|
2036
|
+
* name: 'Berlin React',
|
|
2037
|
+
* filters: { skill: 'react', sort: 'newest' },
|
|
2038
|
+
* job: jobId,
|
|
2039
|
+
* });
|
|
2040
|
+
*/
|
|
2041
|
+
create(slug, body, options) {
|
|
2042
|
+
return client.fetch(
|
|
2043
|
+
`/me/companies/${encodeURIComponent(slug)}/talent-lists`,
|
|
2044
|
+
{ ...options, method: "POST", body }
|
|
2045
|
+
);
|
|
2046
|
+
},
|
|
2047
|
+
/**
|
|
2048
|
+
* Merge-patch a talent list. Pass `job: null` to unbind it from a job.
|
|
2049
|
+
*/
|
|
2050
|
+
update(slug, listId, body, options) {
|
|
2051
|
+
return client.fetch(
|
|
2052
|
+
`/me/companies/${encodeURIComponent(slug)}/talent-lists/${encodeURIComponent(listId)}`,
|
|
2053
|
+
{ ...options, method: "PATCH", body }
|
|
2054
|
+
);
|
|
2055
|
+
},
|
|
2056
|
+
/** Delete a talent list. Sourced membership is unaffected. */
|
|
2057
|
+
remove(slug, listId, options) {
|
|
2058
|
+
return client.fetch(
|
|
2059
|
+
`/me/companies/${encodeURIComponent(slug)}/talent-lists/${encodeURIComponent(listId)}`,
|
|
2060
|
+
{ ...options, method: "DELETE" }
|
|
2061
|
+
);
|
|
2062
|
+
}
|
|
2063
|
+
},
|
|
2064
|
+
/**
|
|
2065
|
+
* Per-job sourced membership — the unstaged kanban rail.
|
|
2066
|
+
* Saving a candidate always writes here. Convert-on-drop creates a
|
|
2067
|
+
* pipeline application with source `sourced` (hidden from the
|
|
2068
|
+
* candidate until they apply themselves).
|
|
2069
|
+
*/
|
|
2070
|
+
sourcedCandidates: {
|
|
2071
|
+
/**
|
|
2072
|
+
* List sourced candidates still on the rail for a job. Anyone who
|
|
2073
|
+
* already has a pipeline application for that job is omitted.
|
|
2074
|
+
*
|
|
2075
|
+
* @example
|
|
2076
|
+
* const { data } = await board.me.companies.sourcedCandidates.list(
|
|
2077
|
+
* 'acme',
|
|
2078
|
+
* { job: jobId },
|
|
2079
|
+
* );
|
|
2080
|
+
*/
|
|
2081
|
+
list(slug, query, options) {
|
|
2082
|
+
return client.fetch(
|
|
2083
|
+
`/me/companies/${encodeURIComponent(slug)}/sourced-candidates`,
|
|
2084
|
+
{ ...options, query }
|
|
2085
|
+
);
|
|
2086
|
+
},
|
|
2087
|
+
/**
|
|
2088
|
+
* Save a candidate onto a job's sourced rail. Idempotent: a second
|
|
2089
|
+
* add for the same pair returns `created: false`.
|
|
2090
|
+
*
|
|
2091
|
+
* @example
|
|
2092
|
+
* const saved = await board.me.companies.sourcedCandidates.add(
|
|
2093
|
+
* 'acme',
|
|
2094
|
+
* { job: jobId, candidateBoardUserId: candidateId },
|
|
2095
|
+
* );
|
|
2096
|
+
*/
|
|
2097
|
+
add(slug, body, options) {
|
|
2098
|
+
return client.fetch(`/me/companies/${encodeURIComponent(slug)}/sourced-candidates`, {
|
|
2099
|
+
...options,
|
|
2100
|
+
method: "POST",
|
|
2101
|
+
body
|
|
2102
|
+
});
|
|
2103
|
+
},
|
|
2104
|
+
/** Remove a sourced membership. Does not touch pipeline applications. */
|
|
2105
|
+
remove(slug, sourcedId, options) {
|
|
2106
|
+
return client.fetch(
|
|
2107
|
+
`/me/companies/${encodeURIComponent(slug)}/sourced-candidates/${encodeURIComponent(sourcedId)}`,
|
|
2108
|
+
{ ...options, method: "DELETE" }
|
|
2109
|
+
);
|
|
2110
|
+
},
|
|
2111
|
+
/**
|
|
2112
|
+
* Convert a sourced candidate into the job pipeline. Writes
|
|
2113
|
+
* `source: 'sourced'` so the candidate does not see the application
|
|
2114
|
+
* until they apply themselves. `stage: 'applied'` aliases to
|
|
2115
|
+
* `review`. A board without a native pipeline raises
|
|
2116
|
+
* `sourced_convert_unavailable` (409).
|
|
2117
|
+
*
|
|
2118
|
+
* @example
|
|
2119
|
+
* const result = await board.me.companies.sourcedCandidates.convert(
|
|
2120
|
+
* 'acme',
|
|
2121
|
+
* sourcedId,
|
|
2122
|
+
* { stage: 'review' },
|
|
2123
|
+
* );
|
|
2124
|
+
*/
|
|
2125
|
+
convert(slug, sourcedId, body, options) {
|
|
2126
|
+
return client.fetch(
|
|
2127
|
+
`/me/companies/${encodeURIComponent(slug)}/sourced-candidates/${encodeURIComponent(sourcedId)}/convert`,
|
|
2128
|
+
{ ...options, method: "POST", body }
|
|
2129
|
+
);
|
|
2130
|
+
}
|
|
2131
|
+
},
|
|
1988
2132
|
/**
|
|
1989
2133
|
* The applicant pipeline (ATS) for a company I am an approved member of
|
|
1990
2134
|
* Reads return the full pipeline (job
|