@cavuno/board 4.4.1 → 4.5.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 +21 -0
- package/dist/{_spec-COlkrizX.d.mts → _spec-BJah6GIZ.d.mts} +55 -0
- package/dist/{_spec-COlkrizX.d.ts → _spec-BJah6GIZ.d.ts} +55 -0
- package/dist/{blog-DO8Yn21_.d.mts → blog-4Owyo4U_.d.mts} +1 -1
- package/dist/{blog-CgA_ljHa.d.ts → blog-DJi_1n7W.d.ts} +1 -1
- package/dist/{board-JgFR-2UW.d.mts → board-CpR7o9bL.d.mts} +2 -2
- package/dist/{board-D51C3gB5.d.ts → board-KDx9U0nw.d.ts} +2 -2
- package/dist/{breadcrumbs-_QzN4nEk.d.ts → breadcrumbs-CJ-NpA-V.d.ts} +2 -2
- package/dist/{breadcrumbs-zAN2biAq.d.mts → breadcrumbs-DOJH_7nO.d.mts} +2 -2
- package/dist/browser/cavuno-board.global.min.js +1 -1
- package/dist/{chunk-2ETP5UH4.mjs → chunk-GC5QWN7Y.mjs} +16 -0
- package/dist/{chunk-YEAQ3JEI.mjs → chunk-VWGF4I5C.mjs} +143 -4
- 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.js +15 -2
- package/dist/format.mjs +2 -126
- package/dist/index.d.mts +75 -12
- package/dist/index.d.ts +75 -12
- package/dist/index.js +187 -1
- package/dist/index.mjs +172 -2
- package/dist/{jobs-DOF3QXdq.d.ts → jobs-Ay-V6Q6y.d.ts} +1 -1
- package/dist/{jobs-C1Mxty1n.d.mts → jobs-C27qlt6o.d.mts} +1 -1
- package/dist/{search-Cx_dsVUb.d.mts → search-CC-rlMgk.d.mts} +1 -1
- package/dist/{search-_QDaN6Um.d.ts → search-fG_K9J8x.d.ts} +1 -1
- package/dist/seo.d.mts +6 -6
- package/dist/seo.d.ts +6 -6
- package/dist/seo.js +16 -1
- package/dist/seo.mjs +1 -1
- package/dist/server.d.mts +5 -5
- package/dist/server.d.ts +5 -5
- package/dist/server.mjs +1 -1
- package/dist/sitemap.d.mts +5 -5
- package/dist/sitemap.d.ts +5 -5
- package/dist/suggest.d.mts +2 -2
- package/dist/suggest.d.ts +2 -2
- package/package.json +1 -1
- package/skills/cavuno-board-account/SKILL.md +11 -1
- package/skills/cavuno-board-companies/SKILL.md +21 -0
- package/skills/cavuno-board-seo/SALARY.md +2 -1
- package/skills/manifest.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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 PublicBoardAnalytics, r as PublicBoardFeatures, s as PublicCompany, t as PublicCompanyDetail, u as SalaryCompany, v as SalaryLocation, w as SalarySkill, x as SalaryTitle, y as SkillLocationSalary, z as SkillLocationsIndex, S as SkillSalaryDetail, A as TitleLocationSalary, B as TitleLocationsIndex, T as TitleSalaryDetail } from './board-
|
|
6
|
-
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-
|
|
7
|
-
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-
|
|
8
|
-
import { a as BlogPostsListQuery, b as BlogSimilarQuery, c as BlogSearchBody } from './blog-
|
|
9
|
-
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-BJah6GIZ.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-fG_K9J8x.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-fG_K9J8x.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-KDx9U0nw.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 PublicBoardAnalytics, r as PublicBoardFeatures, s as PublicCompany, t as PublicCompanyDetail, u as SalaryCompany, v as SalaryLocation, w as SalarySkill, x as SalaryTitle, y as SkillLocationSalary, z as SkillLocationsIndex, S as SkillSalaryDetail, A as TitleLocationSalary, B as TitleLocationsIndex, T as TitleSalaryDetail } from './board-KDx9U0nw.js';
|
|
6
|
+
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-Ay-V6Q6y.js';
|
|
7
|
+
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-Ay-V6Q6y.js';
|
|
8
|
+
import { a as BlogPostsListQuery, b as BlogSimilarQuery, c as BlogSearchBody } from './blog-DJi_1n7W.js';
|
|
9
|
+
export { B as BlogAuthorEmbed, d as BlogTagEmbed, e as PublicBlogAdjacentPosts, f as PublicBlogAuthor, g as PublicBlogPost, P as PublicBlogPostSummary, h as PublicBlogTag } from './blog-DJi_1n7W.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Well-known `<domain>_<snake_reason>` codes the Board API sends, grouped by
|
|
@@ -19,7 +19,7 @@ export { B as BlogAuthorEmbed, d as BlogTagEmbed, e as PublicBlogAdjacentPosts,
|
|
|
19
19
|
* `unknown_error` is SDK-synthesized when a response carries no parseable
|
|
20
20
|
* envelope.
|
|
21
21
|
*/
|
|
22
|
-
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", "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_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", "resume_invalid_file", "resume_upload_forbidden", "applications_external_apply_only", "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", "paywall_already_active", "paywall_disabled", "paywall_invalid_checkout_session", "paywall_no_candidate_profile", "paywall_no_recurring_subscription", "paywall_offer_not_found", "job_posting_logo_lookup_unavailable", "job_posting_logo_not_found", "job_posting_rejected"];
|
|
22
|
+
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_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", "resume_invalid_file", "resume_upload_forbidden", "applications_external_apply_only", "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", "paywall_already_active", "paywall_disabled", "paywall_invalid_checkout_session", "paywall_no_candidate_profile", "paywall_no_recurring_subscription", "paywall_offer_not_found", "job_posting_logo_lookup_unavailable", "job_posting_logo_not_found", "job_posting_rejected"];
|
|
23
23
|
/**
|
|
24
24
|
* The known code set plus open string — new codes ship additively within v1,
|
|
25
25
|
* so exhaustive narrowing is intentionally impossible.
|
|
@@ -142,7 +142,7 @@ declare function paginate<Q extends Record<string, unknown>, P extends PageShape
|
|
|
142
142
|
* constant because the package is platform-neutral and cannot read
|
|
143
143
|
* package.json at runtime.
|
|
144
144
|
*/
|
|
145
|
-
declare const SDK_VERSION = "4.
|
|
145
|
+
declare const SDK_VERSION = "4.5.0";
|
|
146
146
|
|
|
147
147
|
type SavedJob = Schemas['SavedJob'];
|
|
148
148
|
type SavedJobsListQuery = {
|
|
@@ -258,6 +258,24 @@ type CreateCompanyBody = Schemas['CreateCompanyBody'];
|
|
|
258
258
|
type UpdateEmployerCompanyBody = Schemas['UpdateEmployerCompanyBody'];
|
|
259
259
|
type SendWorkEmailBody = Schemas['SendWorkEmailBody'];
|
|
260
260
|
type ConfirmWorkEmailBody = Schemas['ConfirmWorkEmailBody'];
|
|
261
|
+
/** Body for `board.me.updatePassword`. */
|
|
262
|
+
type UpdatePasswordBody = Schemas['UpdatePasswordBody'];
|
|
263
|
+
/** Body for `board.me.requestEmailChange`. */
|
|
264
|
+
type RequestEmailChangeBody = Schemas['RequestEmailChangeBody'];
|
|
265
|
+
/** Body for `board.me.confirmEmailChange`. */
|
|
266
|
+
type ConfirmEmailChangeBody = Schemas['ConfirmEmailChangeBody'];
|
|
267
|
+
/** One approved company member from `board.me.companies.listMembers`. */
|
|
268
|
+
type CompanyMember = Schemas['CompanyMember'];
|
|
269
|
+
/** Body for `board.me.companies.updateMemberRole`. */
|
|
270
|
+
type UpdateCompanyMemberRoleBody = Schemas['UpdateCompanyMemberRoleBody'];
|
|
271
|
+
/** One pending company member invite from `board.me.companies.listInvites`. */
|
|
272
|
+
type CompanyMemberInvite = Schemas['CompanyMemberInvite'];
|
|
273
|
+
/** Body for `board.me.companies.createInvite`. */
|
|
274
|
+
type CreateCompanyMemberInviteBody = Schemas['CreateCompanyMemberInviteBody'];
|
|
275
|
+
/** Result of `board.me.acceptInvite`. */
|
|
276
|
+
type CompanyMemberInviteAcceptance = Schemas['CompanyMemberInviteAcceptance'];
|
|
277
|
+
/** Body for `board.me.acceptInvite`. */
|
|
278
|
+
type AcceptCompanyMemberInviteBody = Schemas['AcceptCompanyMemberInviteBody'];
|
|
261
279
|
/**
|
|
262
280
|
* The viewer's per-employer talent entitlement from
|
|
263
281
|
* `board.me.talentAccess.retrieve` — the talent-CTA signal (sourced from the
|
|
@@ -830,6 +848,7 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
830
848
|
salaryCurrency: string | null;
|
|
831
849
|
salaryTimeframe: string | null;
|
|
832
850
|
isFeatured: boolean;
|
|
851
|
+
isSponsored: boolean;
|
|
833
852
|
summary: string | null;
|
|
834
853
|
locationLabel: string | null;
|
|
835
854
|
company: {
|
|
@@ -930,6 +949,7 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
930
949
|
salaryCurrency: string | null;
|
|
931
950
|
salaryTimeframe: string | null;
|
|
932
951
|
isFeatured: boolean;
|
|
952
|
+
isSponsored: boolean;
|
|
933
953
|
summary: string | null;
|
|
934
954
|
locationLabel: string | null;
|
|
935
955
|
company: {
|
|
@@ -1327,8 +1347,22 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
1327
1347
|
email: string;
|
|
1328
1348
|
displayName: string | null;
|
|
1329
1349
|
emailVerified: boolean;
|
|
1350
|
+
hasPassword: boolean;
|
|
1330
1351
|
}>;
|
|
1331
1352
|
delete(options?: FetchOptions): Promise<void>;
|
|
1353
|
+
updatePassword(body: UpdatePasswordBody, options?: FetchOptions): Promise<{
|
|
1354
|
+
object: "board_auth_session";
|
|
1355
|
+
accessToken: string;
|
|
1356
|
+
refreshToken: string;
|
|
1357
|
+
expiresAt: number;
|
|
1358
|
+
boardUser: components["schemas"]["BoardUser"];
|
|
1359
|
+
}>;
|
|
1360
|
+
requestEmailChange(body: RequestEmailChangeBody, options?: FetchOptions): Promise<void>;
|
|
1361
|
+
confirmEmailChange(body: ConfirmEmailChangeBody, options?: FetchOptions): Promise<void>;
|
|
1362
|
+
acceptInvite(body: AcceptCompanyMemberInviteBody, options?: FetchOptions): Promise<{
|
|
1363
|
+
object: "company_member_invite_acceptance";
|
|
1364
|
+
companySlug: string;
|
|
1365
|
+
}>;
|
|
1332
1366
|
profile: {
|
|
1333
1367
|
retrieve(query?: Record<string, never>, options?: FetchOptions): Promise<{
|
|
1334
1368
|
id: string;
|
|
@@ -1575,6 +1609,35 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
1575
1609
|
facebookUrl: string | null;
|
|
1576
1610
|
logoUrl: string | null;
|
|
1577
1611
|
}>;
|
|
1612
|
+
delete(slug: string, options?: FetchOptions): Promise<void>;
|
|
1613
|
+
listMembers(slug: string, options?: FetchOptions): Promise<ListEnvelope<{
|
|
1614
|
+
id: string;
|
|
1615
|
+
object: "company_member";
|
|
1616
|
+
boardUserId: string;
|
|
1617
|
+
displayName: string | null;
|
|
1618
|
+
email: string;
|
|
1619
|
+
role: "admin" | "member";
|
|
1620
|
+
approvedBy: string | null;
|
|
1621
|
+
createdAt: string;
|
|
1622
|
+
}>>;
|
|
1623
|
+
updateMemberRole(slug: string, memberId: string, body: UpdateCompanyMemberRoleBody, options?: FetchOptions): Promise<void>;
|
|
1624
|
+
removeMember(slug: string, memberId: string, options?: FetchOptions): Promise<void>;
|
|
1625
|
+
leave(slug: string, options?: FetchOptions): Promise<void>;
|
|
1626
|
+
listInvites(slug: string, options?: FetchOptions): Promise<ListEnvelope<{
|
|
1627
|
+
id: string;
|
|
1628
|
+
object: "company_member_invite";
|
|
1629
|
+
email: string;
|
|
1630
|
+
createdAt: string;
|
|
1631
|
+
expiresAt: string;
|
|
1632
|
+
}>>;
|
|
1633
|
+
createInvite(slug: string, body: CreateCompanyMemberInviteBody, options?: FetchOptions): Promise<{
|
|
1634
|
+
id: string;
|
|
1635
|
+
object: "company_member_invite";
|
|
1636
|
+
email: string;
|
|
1637
|
+
createdAt: string;
|
|
1638
|
+
expiresAt: string;
|
|
1639
|
+
}>;
|
|
1640
|
+
revokeInvite(slug: string, inviteId: string, options?: FetchOptions): Promise<void>;
|
|
1578
1641
|
uploadLogo(slug: string, file: Blob, options?: FetchOptions): Promise<{
|
|
1579
1642
|
id: string;
|
|
1580
1643
|
object: "employer_company";
|
|
@@ -3051,4 +3114,4 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
3051
3114
|
};
|
|
3052
3115
|
type BoardSdk = ReturnType<typeof createBoardClient>;
|
|
3053
3116
|
|
|
3054
|
-
export { 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 ApplyBody, 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 BoardSeo, type BoardUser, type BulkMoveApplicantsBody, type BulkRejectApplicantsBody, type CandidateAvatar, type CandidateEducation, type CandidateExperience, type CandidateLanguage, type CandidateProfile, type CandidateSkill, type ClaimableCompany, CompaniesListQuery, CompaniesSearchBody, CompanyJobsListQuery, CompanyListEnvelope, CompanyMarketsListQuery, type CompanyMembership, CompanySimilarQuery, type ConfirmWorkEmailBody, type ConsumeMagicLinkBody, type Conversation, type ConversationArchive, type ConversationDetail, type ConversationRef, type ConversationsListQuery, type CreateBoardClientOptions, type CreateCompanyBody, 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 RedirectResolution, type RefreshBody, type RegisterBody, RemoteOption, type RemotePermitTaxonomyEntry, type ReorderPipelineStagesBody, type ReplyBody, type ReportBody, 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 TalentDirectoryEntry, type TalentDirectoryListEnvelope, type TalentDirectoryQuery, type TalentProfile, type TaxonomyGeo, type TaxonomyListQuery, type TaxonomyResolution, type ThreadMessagesQuery, type UnreadCount, type UnsubscribeBody, type UpdateApplicationFactsBody, type UpdateCandidateProfileBody, type UpdateEducationBody, type UpdateEmployerCompanyBody, type UpdateEmployerJobBody, type UpdateExperienceBody, type UpdateLanguagesBody, type UpdateNotificationPreferenceBody, type UpdatePipelineStageBody, type UpdateSkillsBody, type VerifyEmailBody, createBoardClient, isBoardApiError, isBoardPasswordRequired, isColdRule, isConflict, isForbidden, isNotFound, isOwnMessage, isRateLimited, isSafeApplicationUrl, isUnauthorized, isValidationError, lastOwnMessageId, paginate, resolveApplyAction };
|
|
3117
|
+
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 ApplyBody, 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 BoardSeo, type BoardUser, type BulkMoveApplicantsBody, type BulkRejectApplicantsBody, type CandidateAvatar, type CandidateEducation, type CandidateExperience, type CandidateLanguage, type CandidateProfile, type CandidateSkill, type ClaimableCompany, CompaniesListQuery, CompaniesSearchBody, 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 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 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 TalentDirectoryEntry, type TalentDirectoryListEnvelope, type TalentDirectoryQuery, type TalentProfile, 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 };
|
package/dist/index.js
CHANGED
|
@@ -70,6 +70,11 @@ var BOARD_API_ERROR_CODES = [
|
|
|
70
70
|
"board_auth_invalid_token",
|
|
71
71
|
"board_auth_registration_disabled",
|
|
72
72
|
"board_auth_token_expired",
|
|
73
|
+
"invalid_current_password",
|
|
74
|
+
"no_password",
|
|
75
|
+
"same_email",
|
|
76
|
+
"email_taken",
|
|
77
|
+
"invalid_token",
|
|
73
78
|
// Board password gate
|
|
74
79
|
"board_password_required",
|
|
75
80
|
"board_password_invalid",
|
|
@@ -149,6 +154,17 @@ var BOARD_API_ERROR_CODES = [
|
|
|
149
154
|
"employer_not_member",
|
|
150
155
|
"employer_payment_required",
|
|
151
156
|
"employer_pipeline_stage_not_found",
|
|
157
|
+
"employer_member_not_found",
|
|
158
|
+
"employer_invite_not_found",
|
|
159
|
+
"not_company_admin",
|
|
160
|
+
"not_company_member",
|
|
161
|
+
"company_deletion_disabled",
|
|
162
|
+
"last_admin",
|
|
163
|
+
"already_member",
|
|
164
|
+
"already_invited",
|
|
165
|
+
"invalid_email",
|
|
166
|
+
"invite_email_mismatch",
|
|
167
|
+
"candidate_role",
|
|
152
168
|
// Candidate job-access paywall
|
|
153
169
|
"paywall_already_active",
|
|
154
170
|
"paywall_disabled",
|
|
@@ -312,7 +328,7 @@ async function clearSession(storage) {
|
|
|
312
328
|
}
|
|
313
329
|
|
|
314
330
|
// src/version.ts
|
|
315
|
-
var SDK_VERSION = "4.
|
|
331
|
+
var SDK_VERSION = "4.5.0";
|
|
316
332
|
|
|
317
333
|
// src/client.ts
|
|
318
334
|
function isRawBody(body) {
|
|
@@ -1146,6 +1162,70 @@ function meNamespace(client) {
|
|
|
1146
1162
|
delete(options) {
|
|
1147
1163
|
return client.fetch("/me", { ...options, method: "DELETE" });
|
|
1148
1164
|
},
|
|
1165
|
+
/**
|
|
1166
|
+
* Change my password. Requires the current password. Persists the
|
|
1167
|
+
* returned bearer pair (the server bumped `authVersion` and killed
|
|
1168
|
+
* every other session). Passwordless accounts get 400 `no_password`
|
|
1169
|
+
* — use `auth.forgotPassword` to set one.
|
|
1170
|
+
*
|
|
1171
|
+
* @example
|
|
1172
|
+
* await board.me.updatePassword({
|
|
1173
|
+
* currentPassword: 'oldpass99',
|
|
1174
|
+
* newPassword: 'newpass99',
|
|
1175
|
+
* });
|
|
1176
|
+
*/
|
|
1177
|
+
async updatePassword(body, options) {
|
|
1178
|
+
const session = await client.fetch("/me/password", {
|
|
1179
|
+
...options,
|
|
1180
|
+
method: "POST",
|
|
1181
|
+
body
|
|
1182
|
+
});
|
|
1183
|
+
await writeSession(client.storage, session);
|
|
1184
|
+
return session;
|
|
1185
|
+
},
|
|
1186
|
+
/**
|
|
1187
|
+
* Request an email change. A verification link is mailed to the new
|
|
1188
|
+
* address; the email swaps only after `confirmEmailChange`.
|
|
1189
|
+
*
|
|
1190
|
+
* @example
|
|
1191
|
+
* await board.me.requestEmailChange({ email: 'new@example.com' });
|
|
1192
|
+
*/
|
|
1193
|
+
requestEmailChange(body, options) {
|
|
1194
|
+
return client.fetch("/me/email", {
|
|
1195
|
+
...options,
|
|
1196
|
+
method: "POST",
|
|
1197
|
+
body
|
|
1198
|
+
});
|
|
1199
|
+
},
|
|
1200
|
+
/**
|
|
1201
|
+
* Confirm an email-change token (from the verification email) — no
|
|
1202
|
+
* session required. Resolves void (204).
|
|
1203
|
+
*
|
|
1204
|
+
* @example
|
|
1205
|
+
* await board.me.confirmEmailChange({ token });
|
|
1206
|
+
*/
|
|
1207
|
+
confirmEmailChange(body, options) {
|
|
1208
|
+
return client.fetch("/me/email/confirm", {
|
|
1209
|
+
...options,
|
|
1210
|
+
method: "POST",
|
|
1211
|
+
body
|
|
1212
|
+
});
|
|
1213
|
+
},
|
|
1214
|
+
/**
|
|
1215
|
+
* Accept a company member invite. Session-gated — the signed-in
|
|
1216
|
+
* board user's email must match the invite. Returns the company
|
|
1217
|
+
* slug the caller now belongs to.
|
|
1218
|
+
*
|
|
1219
|
+
* @example
|
|
1220
|
+
* const { companySlug } = await board.me.acceptInvite({ token });
|
|
1221
|
+
*/
|
|
1222
|
+
acceptInvite(body, options) {
|
|
1223
|
+
return client.fetch("/me/invites/accept", {
|
|
1224
|
+
...options,
|
|
1225
|
+
method: "POST",
|
|
1226
|
+
body
|
|
1227
|
+
});
|
|
1228
|
+
},
|
|
1149
1229
|
/**
|
|
1150
1230
|
* The authenticated candidate's own account self-service.
|
|
1151
1231
|
* `profile.*` is the lean profile singleton + its
|
|
@@ -1422,6 +1502,112 @@ function meNamespace(client) {
|
|
|
1422
1502
|
{ ...options, method: "PATCH", body }
|
|
1423
1503
|
);
|
|
1424
1504
|
},
|
|
1505
|
+
/**
|
|
1506
|
+
* Delete a company I admin (soft-delete cascade + Forager
|
|
1507
|
+
* exclusion). Resolves void on success (204).
|
|
1508
|
+
*
|
|
1509
|
+
* @example
|
|
1510
|
+
* await board.me.companies.delete('acme');
|
|
1511
|
+
*/
|
|
1512
|
+
delete(slug, options) {
|
|
1513
|
+
return client.fetch(`/me/companies/${encodeURIComponent(slug)}`, {
|
|
1514
|
+
...options,
|
|
1515
|
+
method: "DELETE"
|
|
1516
|
+
});
|
|
1517
|
+
},
|
|
1518
|
+
/**
|
|
1519
|
+
* List approved members of a company I belong to.
|
|
1520
|
+
*
|
|
1521
|
+
* @example
|
|
1522
|
+
* const { data } = await board.me.companies.listMembers('acme');
|
|
1523
|
+
*/
|
|
1524
|
+
listMembers(slug, options) {
|
|
1525
|
+
return client.fetch(
|
|
1526
|
+
`/me/companies/${encodeURIComponent(slug)}/members`,
|
|
1527
|
+
options
|
|
1528
|
+
);
|
|
1529
|
+
},
|
|
1530
|
+
/**
|
|
1531
|
+
* Set a member's role (`admin` | `member`). Admin-only. Demoting
|
|
1532
|
+
* the last admin is 409 `last_admin`. Resolves void (204).
|
|
1533
|
+
*
|
|
1534
|
+
* @example
|
|
1535
|
+
* await board.me.companies.updateMemberRole('acme', memberId, {
|
|
1536
|
+
* role: 'admin',
|
|
1537
|
+
* });
|
|
1538
|
+
*/
|
|
1539
|
+
updateMemberRole(slug, memberId, body, options) {
|
|
1540
|
+
return client.fetch(
|
|
1541
|
+
`/me/companies/${encodeURIComponent(slug)}/members/${encodeURIComponent(memberId)}`,
|
|
1542
|
+
{ ...options, method: "PATCH", body }
|
|
1543
|
+
);
|
|
1544
|
+
},
|
|
1545
|
+
/**
|
|
1546
|
+
* Remove a member. Admin-only. Removing the last admin is 409
|
|
1547
|
+
* `last_admin`. Resolves void (204).
|
|
1548
|
+
*
|
|
1549
|
+
* @example
|
|
1550
|
+
* await board.me.companies.removeMember('acme', memberId);
|
|
1551
|
+
*/
|
|
1552
|
+
removeMember(slug, memberId, options) {
|
|
1553
|
+
return client.fetch(
|
|
1554
|
+
`/me/companies/${encodeURIComponent(slug)}/members/${encodeURIComponent(memberId)}`,
|
|
1555
|
+
{ ...options, method: "DELETE" }
|
|
1556
|
+
);
|
|
1557
|
+
},
|
|
1558
|
+
/**
|
|
1559
|
+
* Leave a company I belong to. Leaving as the last admin is 409
|
|
1560
|
+
* `last_admin`. Resolves void (204).
|
|
1561
|
+
*
|
|
1562
|
+
* @example
|
|
1563
|
+
* await board.me.companies.leave('acme');
|
|
1564
|
+
*/
|
|
1565
|
+
leave(slug, options) {
|
|
1566
|
+
return client.fetch(
|
|
1567
|
+
`/me/companies/${encodeURIComponent(slug)}/membership`,
|
|
1568
|
+
{ ...options, method: "DELETE" }
|
|
1569
|
+
);
|
|
1570
|
+
},
|
|
1571
|
+
/**
|
|
1572
|
+
* List pending member invites for a company I belong to.
|
|
1573
|
+
*
|
|
1574
|
+
* @example
|
|
1575
|
+
* const { data } = await board.me.companies.listInvites('acme');
|
|
1576
|
+
*/
|
|
1577
|
+
listInvites(slug, options) {
|
|
1578
|
+
return client.fetch(
|
|
1579
|
+
`/me/companies/${encodeURIComponent(slug)}/invites`,
|
|
1580
|
+
options
|
|
1581
|
+
);
|
|
1582
|
+
},
|
|
1583
|
+
/**
|
|
1584
|
+
* Invite an email to join a company I admin. Returns the pending
|
|
1585
|
+
* invite. Duplicate members/invites are 400
|
|
1586
|
+
* `already_member` / `already_invited`.
|
|
1587
|
+
*
|
|
1588
|
+
* @example
|
|
1589
|
+
* await board.me.companies.createInvite('acme', {
|
|
1590
|
+
* email: 'ada@acme.test',
|
|
1591
|
+
* });
|
|
1592
|
+
*/
|
|
1593
|
+
createInvite(slug, body, options) {
|
|
1594
|
+
return client.fetch(
|
|
1595
|
+
`/me/companies/${encodeURIComponent(slug)}/invites`,
|
|
1596
|
+
{ ...options, method: "POST", body }
|
|
1597
|
+
);
|
|
1598
|
+
},
|
|
1599
|
+
/**
|
|
1600
|
+
* Revoke a pending invite. Admin-only. Resolves void (204).
|
|
1601
|
+
*
|
|
1602
|
+
* @example
|
|
1603
|
+
* await board.me.companies.revokeInvite('acme', inviteId);
|
|
1604
|
+
*/
|
|
1605
|
+
revokeInvite(slug, inviteId, options) {
|
|
1606
|
+
return client.fetch(
|
|
1607
|
+
`/me/companies/${encodeURIComponent(slug)}/invites/${encodeURIComponent(inviteId)}`,
|
|
1608
|
+
{ ...options, method: "DELETE" }
|
|
1609
|
+
);
|
|
1610
|
+
},
|
|
1425
1611
|
/**
|
|
1426
1612
|
* Upload + attach my company logo (JPEG/PNG/WebP/GIF, ≤2 MB) via a single
|
|
1427
1613
|
* multipart POST. Requires an approved membership. Returns the updated
|
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
isValidationError,
|
|
16
16
|
resolveStorage,
|
|
17
17
|
writeSession
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GC5QWN7Y.mjs";
|
|
19
19
|
import {
|
|
20
20
|
paginate
|
|
21
21
|
} from "./chunk-DLSO6XXY.mjs";
|
|
@@ -39,7 +39,7 @@ function toSearchParams(query) {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// src/version.ts
|
|
42
|
-
var SDK_VERSION = "4.
|
|
42
|
+
var SDK_VERSION = "4.5.0";
|
|
43
43
|
|
|
44
44
|
// src/client.ts
|
|
45
45
|
function isRawBody(body) {
|
|
@@ -873,6 +873,70 @@ function meNamespace(client) {
|
|
|
873
873
|
delete(options) {
|
|
874
874
|
return client.fetch("/me", { ...options, method: "DELETE" });
|
|
875
875
|
},
|
|
876
|
+
/**
|
|
877
|
+
* Change my password. Requires the current password. Persists the
|
|
878
|
+
* returned bearer pair (the server bumped `authVersion` and killed
|
|
879
|
+
* every other session). Passwordless accounts get 400 `no_password`
|
|
880
|
+
* — use `auth.forgotPassword` to set one.
|
|
881
|
+
*
|
|
882
|
+
* @example
|
|
883
|
+
* await board.me.updatePassword({
|
|
884
|
+
* currentPassword: 'oldpass99',
|
|
885
|
+
* newPassword: 'newpass99',
|
|
886
|
+
* });
|
|
887
|
+
*/
|
|
888
|
+
async updatePassword(body, options) {
|
|
889
|
+
const session = await client.fetch("/me/password", {
|
|
890
|
+
...options,
|
|
891
|
+
method: "POST",
|
|
892
|
+
body
|
|
893
|
+
});
|
|
894
|
+
await writeSession(client.storage, session);
|
|
895
|
+
return session;
|
|
896
|
+
},
|
|
897
|
+
/**
|
|
898
|
+
* Request an email change. A verification link is mailed to the new
|
|
899
|
+
* address; the email swaps only after `confirmEmailChange`.
|
|
900
|
+
*
|
|
901
|
+
* @example
|
|
902
|
+
* await board.me.requestEmailChange({ email: 'new@example.com' });
|
|
903
|
+
*/
|
|
904
|
+
requestEmailChange(body, options) {
|
|
905
|
+
return client.fetch("/me/email", {
|
|
906
|
+
...options,
|
|
907
|
+
method: "POST",
|
|
908
|
+
body
|
|
909
|
+
});
|
|
910
|
+
},
|
|
911
|
+
/**
|
|
912
|
+
* Confirm an email-change token (from the verification email) — no
|
|
913
|
+
* session required. Resolves void (204).
|
|
914
|
+
*
|
|
915
|
+
* @example
|
|
916
|
+
* await board.me.confirmEmailChange({ token });
|
|
917
|
+
*/
|
|
918
|
+
confirmEmailChange(body, options) {
|
|
919
|
+
return client.fetch("/me/email/confirm", {
|
|
920
|
+
...options,
|
|
921
|
+
method: "POST",
|
|
922
|
+
body
|
|
923
|
+
});
|
|
924
|
+
},
|
|
925
|
+
/**
|
|
926
|
+
* Accept a company member invite. Session-gated — the signed-in
|
|
927
|
+
* board user's email must match the invite. Returns the company
|
|
928
|
+
* slug the caller now belongs to.
|
|
929
|
+
*
|
|
930
|
+
* @example
|
|
931
|
+
* const { companySlug } = await board.me.acceptInvite({ token });
|
|
932
|
+
*/
|
|
933
|
+
acceptInvite(body, options) {
|
|
934
|
+
return client.fetch("/me/invites/accept", {
|
|
935
|
+
...options,
|
|
936
|
+
method: "POST",
|
|
937
|
+
body
|
|
938
|
+
});
|
|
939
|
+
},
|
|
876
940
|
/**
|
|
877
941
|
* The authenticated candidate's own account self-service.
|
|
878
942
|
* `profile.*` is the lean profile singleton + its
|
|
@@ -1149,6 +1213,112 @@ function meNamespace(client) {
|
|
|
1149
1213
|
{ ...options, method: "PATCH", body }
|
|
1150
1214
|
);
|
|
1151
1215
|
},
|
|
1216
|
+
/**
|
|
1217
|
+
* Delete a company I admin (soft-delete cascade + Forager
|
|
1218
|
+
* exclusion). Resolves void on success (204).
|
|
1219
|
+
*
|
|
1220
|
+
* @example
|
|
1221
|
+
* await board.me.companies.delete('acme');
|
|
1222
|
+
*/
|
|
1223
|
+
delete(slug, options) {
|
|
1224
|
+
return client.fetch(`/me/companies/${encodeURIComponent(slug)}`, {
|
|
1225
|
+
...options,
|
|
1226
|
+
method: "DELETE"
|
|
1227
|
+
});
|
|
1228
|
+
},
|
|
1229
|
+
/**
|
|
1230
|
+
* List approved members of a company I belong to.
|
|
1231
|
+
*
|
|
1232
|
+
* @example
|
|
1233
|
+
* const { data } = await board.me.companies.listMembers('acme');
|
|
1234
|
+
*/
|
|
1235
|
+
listMembers(slug, options) {
|
|
1236
|
+
return client.fetch(
|
|
1237
|
+
`/me/companies/${encodeURIComponent(slug)}/members`,
|
|
1238
|
+
options
|
|
1239
|
+
);
|
|
1240
|
+
},
|
|
1241
|
+
/**
|
|
1242
|
+
* Set a member's role (`admin` | `member`). Admin-only. Demoting
|
|
1243
|
+
* the last admin is 409 `last_admin`. Resolves void (204).
|
|
1244
|
+
*
|
|
1245
|
+
* @example
|
|
1246
|
+
* await board.me.companies.updateMemberRole('acme', memberId, {
|
|
1247
|
+
* role: 'admin',
|
|
1248
|
+
* });
|
|
1249
|
+
*/
|
|
1250
|
+
updateMemberRole(slug, memberId, body, options) {
|
|
1251
|
+
return client.fetch(
|
|
1252
|
+
`/me/companies/${encodeURIComponent(slug)}/members/${encodeURIComponent(memberId)}`,
|
|
1253
|
+
{ ...options, method: "PATCH", body }
|
|
1254
|
+
);
|
|
1255
|
+
},
|
|
1256
|
+
/**
|
|
1257
|
+
* Remove a member. Admin-only. Removing the last admin is 409
|
|
1258
|
+
* `last_admin`. Resolves void (204).
|
|
1259
|
+
*
|
|
1260
|
+
* @example
|
|
1261
|
+
* await board.me.companies.removeMember('acme', memberId);
|
|
1262
|
+
*/
|
|
1263
|
+
removeMember(slug, memberId, options) {
|
|
1264
|
+
return client.fetch(
|
|
1265
|
+
`/me/companies/${encodeURIComponent(slug)}/members/${encodeURIComponent(memberId)}`,
|
|
1266
|
+
{ ...options, method: "DELETE" }
|
|
1267
|
+
);
|
|
1268
|
+
},
|
|
1269
|
+
/**
|
|
1270
|
+
* Leave a company I belong to. Leaving as the last admin is 409
|
|
1271
|
+
* `last_admin`. Resolves void (204).
|
|
1272
|
+
*
|
|
1273
|
+
* @example
|
|
1274
|
+
* await board.me.companies.leave('acme');
|
|
1275
|
+
*/
|
|
1276
|
+
leave(slug, options) {
|
|
1277
|
+
return client.fetch(
|
|
1278
|
+
`/me/companies/${encodeURIComponent(slug)}/membership`,
|
|
1279
|
+
{ ...options, method: "DELETE" }
|
|
1280
|
+
);
|
|
1281
|
+
},
|
|
1282
|
+
/**
|
|
1283
|
+
* List pending member invites for a company I belong to.
|
|
1284
|
+
*
|
|
1285
|
+
* @example
|
|
1286
|
+
* const { data } = await board.me.companies.listInvites('acme');
|
|
1287
|
+
*/
|
|
1288
|
+
listInvites(slug, options) {
|
|
1289
|
+
return client.fetch(
|
|
1290
|
+
`/me/companies/${encodeURIComponent(slug)}/invites`,
|
|
1291
|
+
options
|
|
1292
|
+
);
|
|
1293
|
+
},
|
|
1294
|
+
/**
|
|
1295
|
+
* Invite an email to join a company I admin. Returns the pending
|
|
1296
|
+
* invite. Duplicate members/invites are 400
|
|
1297
|
+
* `already_member` / `already_invited`.
|
|
1298
|
+
*
|
|
1299
|
+
* @example
|
|
1300
|
+
* await board.me.companies.createInvite('acme', {
|
|
1301
|
+
* email: 'ada@acme.test',
|
|
1302
|
+
* });
|
|
1303
|
+
*/
|
|
1304
|
+
createInvite(slug, body, options) {
|
|
1305
|
+
return client.fetch(
|
|
1306
|
+
`/me/companies/${encodeURIComponent(slug)}/invites`,
|
|
1307
|
+
{ ...options, method: "POST", body }
|
|
1308
|
+
);
|
|
1309
|
+
},
|
|
1310
|
+
/**
|
|
1311
|
+
* Revoke a pending invite. Admin-only. Resolves void (204).
|
|
1312
|
+
*
|
|
1313
|
+
* @example
|
|
1314
|
+
* await board.me.companies.revokeInvite('acme', inviteId);
|
|
1315
|
+
*/
|
|
1316
|
+
revokeInvite(slug, inviteId, options) {
|
|
1317
|
+
return client.fetch(
|
|
1318
|
+
`/me/companies/${encodeURIComponent(slug)}/invites/${encodeURIComponent(inviteId)}`,
|
|
1319
|
+
{ ...options, method: "DELETE" }
|
|
1320
|
+
);
|
|
1321
|
+
},
|
|
1152
1322
|
/**
|
|
1153
1323
|
* Upload + attach my company logo (JPEG/PNG/WebP/GIF, ≤2 MB) via a single
|
|
1154
1324
|
* multipart POST. Requires an approved membership. Returns the updated
|
package/dist/seo.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as PublicBlogPostSummary, B as BlogAuthorEmbed } from './blog-
|
|
2
|
-
import { e as JsonLdObject } from './breadcrumbs-
|
|
3
|
-
export { A as ALL_COUNTRY_CODES, B as BreadcrumbItemInput, g as FaqItem, J as JobBreadcrumb, h as JsonLdBoard, N as NumberNotation, i as SENIORITY_ORDER, j as SalaryFaqEntry, k as SalaryJsonLdOptions, l as SalaryOccupationListOptions, b as buildJobBreadcrumbs, m as buildSalaryFaq, o as companyCategorySalaryJsonLd, p as companySalaryJsonLd, q as createBreadcrumbJsonLd, r as createJobPostingJsonLd, s as crossAxisSalaryJsonLd, t as faqJsonLd, c as formatSalaryStat, d as formatSalaryStatRange, u as itemListJsonLd, v as locationSalaryJsonLd, n as normalizeWebsiteUrl, w as skillSalaryJsonLd, x as sortBySeniority, y as titleSalaryJsonLd } from './breadcrumbs-
|
|
4
|
-
import './_spec-
|
|
5
|
-
import './board-
|
|
6
|
-
import './jobs-
|
|
1
|
+
import { P as PublicBlogPostSummary, B as BlogAuthorEmbed } from './blog-4Owyo4U_.mjs';
|
|
2
|
+
import { e as JsonLdObject } from './breadcrumbs-DOJH_7nO.mjs';
|
|
3
|
+
export { A as ALL_COUNTRY_CODES, B as BreadcrumbItemInput, g as FaqItem, J as JobBreadcrumb, h as JsonLdBoard, N as NumberNotation, i as SENIORITY_ORDER, j as SalaryFaqEntry, k as SalaryJsonLdOptions, l as SalaryOccupationListOptions, b as buildJobBreadcrumbs, m as buildSalaryFaq, o as companyCategorySalaryJsonLd, p as companySalaryJsonLd, q as createBreadcrumbJsonLd, r as createJobPostingJsonLd, s as crossAxisSalaryJsonLd, t as faqJsonLd, c as formatSalaryStat, d as formatSalaryStatRange, u as itemListJsonLd, v as locationSalaryJsonLd, n as normalizeWebsiteUrl, w as skillSalaryJsonLd, x as sortBySeniority, y as titleSalaryJsonLd } from './breadcrumbs-DOJH_7nO.mjs';
|
|
4
|
+
import './_spec-BJah6GIZ.mjs';
|
|
5
|
+
import './board-CpR7o9bL.mjs';
|
|
6
|
+
import './jobs-C27qlt6o.mjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Blog structured data on the `@cavuno/board` wire types, transcribed from
|
package/dist/seo.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as PublicBlogPostSummary, B as BlogAuthorEmbed } from './blog-
|
|
2
|
-
import { e as JsonLdObject } from './breadcrumbs-
|
|
3
|
-
export { A as ALL_COUNTRY_CODES, B as BreadcrumbItemInput, g as FaqItem, J as JobBreadcrumb, h as JsonLdBoard, N as NumberNotation, i as SENIORITY_ORDER, j as SalaryFaqEntry, k as SalaryJsonLdOptions, l as SalaryOccupationListOptions, b as buildJobBreadcrumbs, m as buildSalaryFaq, o as companyCategorySalaryJsonLd, p as companySalaryJsonLd, q as createBreadcrumbJsonLd, r as createJobPostingJsonLd, s as crossAxisSalaryJsonLd, t as faqJsonLd, c as formatSalaryStat, d as formatSalaryStatRange, u as itemListJsonLd, v as locationSalaryJsonLd, n as normalizeWebsiteUrl, w as skillSalaryJsonLd, x as sortBySeniority, y as titleSalaryJsonLd } from './breadcrumbs-
|
|
4
|
-
import './_spec-
|
|
5
|
-
import './board-
|
|
6
|
-
import './jobs-
|
|
1
|
+
import { P as PublicBlogPostSummary, B as BlogAuthorEmbed } from './blog-DJi_1n7W.js';
|
|
2
|
+
import { e as JsonLdObject } from './breadcrumbs-CJ-NpA-V.js';
|
|
3
|
+
export { A as ALL_COUNTRY_CODES, B as BreadcrumbItemInput, g as FaqItem, J as JobBreadcrumb, h as JsonLdBoard, N as NumberNotation, i as SENIORITY_ORDER, j as SalaryFaqEntry, k as SalaryJsonLdOptions, l as SalaryOccupationListOptions, b as buildJobBreadcrumbs, m as buildSalaryFaq, o as companyCategorySalaryJsonLd, p as companySalaryJsonLd, q as createBreadcrumbJsonLd, r as createJobPostingJsonLd, s as crossAxisSalaryJsonLd, t as faqJsonLd, c as formatSalaryStat, d as formatSalaryStatRange, u as itemListJsonLd, v as locationSalaryJsonLd, n as normalizeWebsiteUrl, w as skillSalaryJsonLd, x as sortBySeniority, y as titleSalaryJsonLd } from './breadcrumbs-CJ-NpA-V.js';
|
|
4
|
+
import './_spec-BJah6GIZ.js';
|
|
5
|
+
import './board-KDx9U0nw.js';
|
|
6
|
+
import './jobs-Ay-V6Q6y.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Blog structured data on the `@cavuno/board` wire types, transcribed from
|