@cavuno/board 4.21.0 → 4.21.1
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 +8 -0
- package/dist/browser/cavuno-board.global.min.js +1 -1
- package/dist/{chunk-RORHD4WQ.mjs → chunk-LWJOSIXX.mjs} +6 -1
- package/dist/index.d.mts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +6 -1
- package/dist/index.mjs +4 -2
- package/dist/server.mjs +1 -1
- package/dist/sitemap.mjs +1 -1
- package/package.json +1 -1
- package/skills/manifest.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
This changelog records changes that affect Board API compatibility, exported
|
|
4
4
|
types, runtime behavior, or supported integration patterns.
|
|
5
5
|
|
|
6
|
+
## 4.21.1 — 2026-09-04
|
|
7
|
+
|
|
8
|
+
- **`BOARD_API_ERROR_CODES`**: adds `employer_free_email_website`, the 422
|
|
9
|
+
returned when creating or updating a company with a free-email provider
|
|
10
|
+
domain (gmail.com, outlook.com, and similar) as the website. Also exports
|
|
11
|
+
`isFreeEmailWebsiteError()` so clients can show a field error instead of a
|
|
12
|
+
generic failure. Ask for a real company website, or omit the website.
|
|
13
|
+
|
|
6
14
|
## 4.21.0 — 2026-09-03
|
|
7
15
|
|
|
8
16
|
- **`BOARD_API_ERROR_CODES`**: adds `candidate_paywall_access_required`, the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var CavunoBoard=(()=>{var J=Object.defineProperty;var Dt=Object.getOwnPropertyDescriptor;var jt=Object.getOwnPropertyNames;var Qt=Object.prototype.hasOwnProperty;var qt=(t,e,o)=>e in t?J(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var _=(t,e)=>{for(var o in e)J(t,o,{get:e[o],enumerable:!0})},Gt=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of jt(e))!Qt.call(t,r)&&r!==o&&J(t,r,{get:()=>e[r],enumerable:!(n=Dt(e,r))||n.enumerable});return t};var Ht=t=>Gt(J({},"__esModule",{value:!0}),t);var E=(t,e,o)=>qt(t,typeof e!="symbol"?e+"":e,o);var Do={};_(Do,{ACCESS_TOKEN_KEY:()=>T,BOARD_ACCESS_GRANT_KEY:()=>F,BOARD_API_ERROR_CODES:()=>de,BoardApiError:()=>A,BoardClient:()=>I,REFRESH_TOKEN_KEY:()=>L,SDK_VERSION:()=>N,createBoardClient:()=>Xt,filters:()=>te,format:()=>ce,isBoardApiError:()=>P,isBoardPasswordRequired:()=>fe,isColdRule:()=>Ke,isConflict:()=>Ce,isForbidden:()=>he,isNotFound:()=>ye,isOwnMessage:()=>Ve,isRateLimited:()=>Se,isSafeApplicationUrl:()=>X,isUnauthorized:()=>ge,isValidationError:()=>be,lastOwnMessageId:()=>Ye,paginate:()=>He,paths:()=>pe,resolveApplyAction:()=>ze,resolveApplyDecision:()=>ee,seo:()=>ue,suggest:()=>me});var de=["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_account_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","membership_required","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","candidate_paywall_access_required","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"],A=class extends Error{constructor(o){super(o.message);E(this,"status");E(this,"code");E(this,"details");E(this,"requestId");E(this,"raw");this.name="BoardApiError",this.status=o.status,this.code=o.code,this.details=o.details,this.requestId=o.requestId,this.raw=o.raw}};function P(t){return t instanceof Error&&t.name==="BoardApiError"&&typeof t.status=="number"&&typeof t.code=="string"}function ye(t){return P(t)&&t.status===404}function ge(t){return P(t)&&t.status===401}function fe(t){return P(t)&&t.status===401&&t.code==="board_password_required"}function he(t){return P(t)&&t.status===403}function be(t){return P(t)&&t.status===400&&t.code==="validation_bad_request"}function Se(t){return P(t)&&t.status===429}function Ce(t){return P(t)&&t.status===409}function Oe(t){let e=new URLSearchParams;if(!t)return e;for(let[o,n]of Object.entries(t))if(n!=null)if(Array.isArray(n))for(let r of n)r!=null&&e.append(o,String(r));else e.append(o,String(n));return e}function Ee(t){let e=5381;for(let n=0;n<t.length;n++)e=(e<<5)+e+t.charCodeAt(n)>>>0;return`${t.replace(/[^a-zA-Z0-9_-]/g,"_")}-${e.toString(36)}`}var T="cavuno_board_access_token",L="cavuno_board_refresh_token",F="cavuno_board_access_grant";function Pe(){return typeof globalThis.document<"u"}function Vt(){let t=new Map;return{getItem:e=>t.get(e)??null,setItem:(e,o)=>{t.set(e,o)},removeItem:e=>{t.delete(e)}}}function Kt(t,e){if(!Pe())throw new Error(`storage mode '${t}' is browser-only \u2014 use 'nostore' + per-call headers on the server`);let o;try{if(o=t==="local"?globalThis.localStorage:globalThis.sessionStorage,!o)throw new Error("unavailable")}catch{throw new Error(`storage mode '${t}' is unavailable in this browsing context (storage access is blocked \u2014 e.g. a sandboxed or third-party iframe). Use 'memory', or 'nostore' + per-call headers.`)}let n=e?`:${Ee(e)}`:"";return{getItem:r=>o.getItem(`${r}${n}`),setItem:(r,i)=>{o.setItem(`${r}${n}`,i)},removeItem:r=>{o.removeItem(`${r}${n}`)}}}var Yt=Symbol.for("@cavuno/board:nostore");var zt={[Yt]:!0,getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function ve(t,e){let o=t??(Pe()?"memory":"nostore");if(typeof o=="object")return o;switch(o){case"memory":return Vt();case"nostore":return zt;case"local":case"session":return Kt(o,e);default:throw new Error(`Unknown storage mode '${String(o)}'`)}}async function w(t,e){await t.setItem(T,e.accessToken),await t.setItem(L,e.refreshToken)}async function Be(t){await t.removeItem(T),await t.removeItem(L)}var N="4.21.0";function Wt(t){return typeof t=="string"||t instanceof URLSearchParams||typeof FormData<"u"&&t instanceof FormData||typeof Blob<"u"&&t instanceof Blob||t instanceof ArrayBuffer||typeof ReadableStream<"u"&&t instanceof ReadableStream}function Zt(t){try{let e=new URL(t);for(let o of new Set(e.searchParams.keys()))e.searchParams.delete(o),e.searchParams.set(o,"[REDACTED]");return e.toString()}catch{return t.replace(/([?&][^=&#]+)=([^&#]*)/g,"$1=[REDACTED]")}}var I=class{constructor(e){E(this,"storage");E(this,"basePath");E(this,"options");this.options=e,this.storage=e.storage;let o=e.baseUrl.replace(/\/+$/,"");this.basePath=`${o}/v1/boards/${encodeURIComponent(e.board)}`}async fetch(e,o={}){let{body:n,query:r,headers:i,...a}=o,s=(o.method??"GET").toUpperCase(),p=`${this.basePath}${e}`,u=Oe(r).toString();u&&(p+=`?${u}`);let d=n!==void 0&&!Wt(n),m=n===void 0?void 0:d?JSON.stringify(n):n,y=new Headers({accept:"application/json"});d&&y.set("content-type","application/json");for(let[B,Z]of Object.entries(this.options.globalHeaders??{}))y.set(B,Z);let g=await this.storage.getItem(T);g!==null&&y.set("authorization",`Bearer ${g}`);let C=await this.storage.getItem(F);C!==null&&y.set("x-board-access",C),i&&new Headers(i).forEach((B,Z)=>{y.set(Z,B)}),(s!=="GET"||y.has("authorization")||y.has("x-board-access"))&&!y.has("x-cavuno-sdk")&&y.set("x-cavuno-sdk",`board@${N}`);let f={url:p,init:{...a,method:s,headers:y,body:m}};this.options.onRequest&&(f=await this.options.onRequest(f));let v=Zt(f.url);this.options.logger?.debug(`${s} ${v}`);let c=await globalThis.fetch(f.url,f.init);if(this.options.logger?.debug(`${c.status} ${s} ${v}`),this.options.onResponse&&await this.options.onResponse(c.clone(),f),c.status===204)return;if(c.ok)return await c.json();let b;try{b=await c.json()}catch{b=void 0}let O=b?.error,R=O&&typeof O.code=="string"&&typeof O.message=="string"?new A({status:c.status,code:O.code,message:O.message,details:O.details,requestId:O.requestId,raw:b}):new A({status:c.status,code:"unknown_error",message:c.statusText||"Request failed",raw:b});throw this.options.logger?.error(`${R.status} ${R.code} ${s} ${v}`),R}};var Ae="https://api.cavuno.com";function Re(t){async function e(n){return await w(t.storage,n),n}async function o(n){if(n?.refreshToken)return n.refreshToken;let r=await t.storage.getItem(L);if(r===null)throw new Error("No refresh token available \u2014 pass { refreshToken } or configure auth.storage");return r}return{async register(n,r){let i=await t.fetch("/auth/register",{...r,method:"POST",body:n});return e(i)},async login(n,r){let i=await t.fetch("/auth/login",{...r,method:"POST",body:n});return e(i)},async refresh(n,r){let i=await o(n),a=await t.fetch("/auth/refresh",{...r,method:"POST",body:{refreshToken:i}});return e(a)},async logout(n,r){let i=await o(n);await t.fetch("/auth/logout",{...r,method:"POST",body:{refreshToken:i}}),await Be(t.storage)},verifyEmail(n,r){return t.fetch("/auth/verify-email",{...r,method:"POST",body:n})},verifyWorkEmail(n,r){return t.fetch("/auth/verify-work-email",{...r,method:"POST",body:n})},verifyEmailWithCode(n,r){return t.fetch("/auth/verify-email/otp",{...r,method:"POST",body:n})},resendVerification(n){return t.fetch("/auth/verify-email/resend",{...n,method:"POST"})},forgotPassword(n,r){return t.fetch("/auth/forgot-password",{...r,method:"POST",body:n})},resetPassword(n,r){return t.fetch("/auth/reset-password",{...r,method:"POST",body:n})},requestMagicLink(n,r){return t.fetch("/auth/magic-link",{...r,method:"POST",body:n})},async consumeMagicLink(n,r){let i=await t.fetch("/auth/magic-link/consume",{...r,method:"POST",body:n});return e(i)},getOAuthAuthorizationUrl(n,r,i){return t.fetch(`/auth/oauth/${n}`,{...i,method:"GET",query:r})},async exchangeOAuth(n,r){let i=await t.fetch("/auth/oauth/exchange",{...r,method:"POST",body:n});return e(i)}}}function _e(t){return{posts:{list(e,o){return t.fetch("/blog/posts",{...o,query:e})},retrieve(e,o,n){return t.fetch(`/blog/posts/${encodeURIComponent(e)}`,{...n,query:o})},adjacent(e,o){return t.fetch(`/blog/posts/${encodeURIComponent(e)}/adjacent`,o)},similar(e,o,n){return t.fetch(`/blog/posts/${encodeURIComponent(e)}/similar`,{...n,query:o})}},tags:{list(e,o){return t.fetch("/blog/tags",{...o,query:e})},retrieve(e,o,n){return t.fetch(`/blog/tags/${encodeURIComponent(e)}`,{...n,query:o})}},authors:{list(e,o){return t.fetch("/blog/authors",{...o,query:e})},retrieve(e,o,n){return t.fetch(`/blog/authors/${encodeURIComponent(e)}`,{...n,query:o})}},search(e,o,n){return t.fetch("/blog/search",{...n,method:"POST",body:e,query:o})}}}function Te(t){let e=Object.assign((n,r)=>t.fetch("/companies/markets",{...r,query:n}),{resolve(n,r){return t.fetch(`/companies/markets/${encodeURIComponent(n)}`,r)}}),o=Object.assign((n,r)=>t.fetch(`/companies/${encodeURIComponent(n)}/salaries`,r),{summary(n,r){return t.fetch(`/companies/${encodeURIComponent(n)}/salaries/summary`,r)},category(n,r,i,a){return t.fetch(`/companies/${encodeURIComponent(n)}/salaries/${encodeURIComponent(r)}`,{...a,query:i})}});return{list(n,r){return t.fetch("/companies",{...r,query:n})},retrieve(n,r,i){return t.fetch(`/companies/${encodeURIComponent(n)}`,{...i,query:r})},search(n,r,i){return t.fetch("/companies/search",{...i,method:"POST",body:n,query:r})},listJobs(n,r,i){return t.fetch(`/companies/${encodeURIComponent(n)}/jobs`,{...i,query:r})},similar(n,r,i){return t.fetch(`/companies/${encodeURIComponent(n)}/similar`,{...i,query:r})},markets:e,salaries:o}}function Le(t){return{jobs(e,o){return t.fetch("/embed/jobs",{...o,query:e})}}}function Fe(t){return{subscribe(e,o){return t.fetch("/job-alerts",{...o,method:"POST",body:e})},confirm(e,o){return t.fetch("/job-alerts/confirm",{...o,method:"POST",body:e})},resendConfirmation(e,o){return t.fetch("/job-alerts/resend-confirmation",{...o,method:"POST",body:e})},manage(e,o){return t.fetch("/job-alerts/manage",{...o,query:e})},unsubscribe(e,o){return t.fetch("/job-alerts/unsubscribe",{...o,method:"POST",body:e})},resubscribe(e,o){return t.fetch("/job-alerts/resubscribe",{...o,method:"POST",body:e})},updatePreference(e,o){return t.fetch("/job-alerts/preferences",{...o,method:"POST",body:e})},deletePreference(e,o){return t.fetch("/job-alerts/preferences",{...o,method:"DELETE",body:e})}}}function Ie(t){return{plans(e,o){return t.fetch("/job-postings/plans",{...o,query:e})},create(e,o){return t.fetch("/job-postings",{...o,method:"POST",body:e})},uploadLogo(e,o){let n=new FormData;return n.append("file",e),t.fetch("/job-postings/logo",{...o,method:"POST",body:n})},fetchLogoByDomain(e,o){return t.fetch("/job-postings/logo/fetch",{...o,query:{domain:e}})},sendBillingVerification(e,o){return t.fetch("/job-postings/send-verification",{...o,method:"POST",body:e})},getBillingOptions(e,o){return t.fetch("/job-postings/billing-options",{...o,method:"POST",body:e})}}}function xe(t){return{list(e,o){return t.fetch("/jobs",{...o,query:e})},retrieve(e,o,n){return t.fetch(`/jobs/${encodeURIComponent(e)}`,{...n,query:o})},search(e,o,n){return t.fetch("/jobs/search",{...n,method:"POST",body:e,query:o})},similar(e,o,n){return t.fetch(`/jobs/${encodeURIComponent(e)}/similar`,{...n,query:o})},apply(e,o,n){return t.fetch(`/jobs/${encodeURIComponent(e)}/apply`,{...n,method:"POST",body:o??{}})},createApplyIntent(e,o,n){return t.fetch(`/jobs/${encodeURIComponent(e)}/apply-intents`,{...n,method:"POST",body:o})},prepareApplyApproval(e,o,n){return t.fetch(`/jobs/${encodeURIComponent(e)}/apply-approvals`,{...n,method:"POST",body:o})},uploadApplicationResume(e,o,n,r){let i=new FormData;return i.append("file",o),n?.applicationId&&i.append("applicationId",n.applicationId),t.fetch(`/jobs/${encodeURIComponent(e)}/apply/resume`,{...r,method:"POST",body:i})},myApplication(e,o){return t.fetch(`/jobs/${encodeURIComponent(e)}/application`,o)}}}function ke(t){return{retrieve(e,o){return t.fetch("/me",{...o,query:e})},delete(e){return t.fetch("/me",{...e,method:"DELETE"})},async updatePassword(e,o){let n=await t.fetch("/me/password",{...o,method:"POST",body:e});return await w(t.storage,n),n},requestEmailChange(e,o){return t.fetch("/me/email",{...o,method:"POST",body:e})},confirmEmailChange(e,o){return t.fetch("/me/email/confirm",{...o,method:"POST",body:e})},acceptInvite(e,o){return t.fetch("/me/invites/accept",{...o,method:"POST",body:e})},profile:{retrieve(e,o){return t.fetch("/me/profile",{...o,query:e})},update(e,o,n){return t.fetch("/me/profile",{...n,method:"PATCH",body:e,query:o})},handleAvailable(e,o){return t.fetch("/me/profile/handle-available",{...o,query:{handle:e}})},listExperience(e){return t.fetch("/me/profile/experience",e)},createExperience(e,o){return t.fetch("/me/profile/experience",{...o,method:"POST",body:e})},updateExperience(e,o,n){return t.fetch(`/me/profile/experience/${encodeURIComponent(e)}`,{...n,method:"PATCH",body:o})},deleteExperience(e,o){return t.fetch(`/me/profile/experience/${encodeURIComponent(e)}`,{...o,method:"DELETE"})},listEducation(e){return t.fetch("/me/profile/education",e)},createEducation(e,o){return t.fetch("/me/profile/education",{...o,method:"POST",body:e})},updateEducation(e,o,n){return t.fetch(`/me/profile/education/${encodeURIComponent(e)}`,{...n,method:"PATCH",body:o})},deleteEducation(e,o){return t.fetch(`/me/profile/education/${encodeURIComponent(e)}`,{...o,method:"DELETE"})},listSkills(e){return t.fetch("/me/profile/skills",e)},updateSkills(e,o){return t.fetch("/me/profile/skills",{...o,method:"PUT",body:e})},listLanguages(e){return t.fetch("/me/profile/languages",e)},updateLanguages(e,o){return t.fetch("/me/profile/languages",{...o,method:"PUT",body:e})},uploadAvatar(e,o){let n=new FormData;return n.append("file",e),t.fetch("/me/profile/avatar",{...o,method:"POST",body:n})}},notificationPreferences:{retrieve(e){return t.fetch("/me/notification-preferences",e)},update(e,o){return t.fetch("/me/notification-preferences",{...o,method:"PUT",body:e})},unsubscribeWithToken(e,o){return t.fetch("/me/notification-preferences/unsubscribe",{...o,method:"POST",body:e})}},companies:{search(e,o){return t.fetch("/me/companies/search",{...o,query:e})},list(e){return t.fetch("/me/companies",e)},create(e,o){return t.fetch("/me/companies",{...o,method:"POST",body:e})},claim(e,o){return t.fetch(`/me/companies/${encodeURIComponent(e)}/claim`,{...o,method:"POST"})},cancelClaim(e,o){return t.fetch(`/me/companies/${encodeURIComponent(e)}/claim`,{...o,method:"DELETE"})},retrieve(e,o){return t.fetch(`/me/companies/${encodeURIComponent(e)}`,o)},update(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}`,{...n,method:"PATCH",body:o})},delete(e,o){return t.fetch(`/me/companies/${encodeURIComponent(e)}`,{...o,method:"DELETE"})},listMembers(e,o){return t.fetch(`/me/companies/${encodeURIComponent(e)}/members`,o)},updateMemberRole(e,o,n,r){return t.fetch(`/me/companies/${encodeURIComponent(e)}/members/${encodeURIComponent(o)}`,{...r,method:"PATCH",body:n})},removeMember(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/members/${encodeURIComponent(o)}`,{...n,method:"DELETE"})},leave(e,o){return t.fetch(`/me/companies/${encodeURIComponent(e)}/membership`,{...o,method:"DELETE"})},listInvites(e,o){return t.fetch(`/me/companies/${encodeURIComponent(e)}/invites`,o)},createInvite(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/invites`,{...n,method:"POST",body:o})},revokeInvite(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/invites/${encodeURIComponent(o)}`,{...n,method:"DELETE"})},uploadLogo(e,o,n){let r=new FormData;return r.append("file",o),t.fetch(`/me/companies/${encodeURIComponent(e)}/logo`,{...n,method:"POST",body:r})},workEmail:{verify(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/work-email/verify`,{...n,method:"POST",body:o})},confirm(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/work-email/confirm`,{...n,method:"POST",body:o})}},jobs:{list(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/jobs`,{...n,query:o})},retrieve(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/jobs/${encodeURIComponent(o)}`,n)},create(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/jobs`,{...n,method:"POST",body:o})},update(e,o,n,r){return t.fetch(`/me/companies/${encodeURIComponent(e)}/jobs/${encodeURIComponent(o)}`,{...r,method:"PATCH",body:n})},delete(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/jobs/${encodeURIComponent(o)}`,{...n,method:"DELETE"})},publish(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/jobs/${encodeURIComponent(o)}/publish`,{...n,method:"POST"})},unpublish(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/jobs/${encodeURIComponent(o)}/unpublish`,{...n,method:"POST"})},checkout(e,o,n,r){return t.fetch(`/me/companies/${encodeURIComponent(e)}/jobs/${encodeURIComponent(o)}/checkout`,{...r,method:"POST",body:n})}},billingOptions:{list(e,o){return t.fetch(`/me/companies/${encodeURIComponent(e)}/billing-options`,o)}},billingPortal:{create(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/billing-portal`,{...n,method:"POST",body:o})}},jobStats:{retrieve(e,o){return t.fetch(`/me/companies/${encodeURIComponent(e)}/job-stats`,o)},timeseries(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/job-stats/timeseries`,{...n,query:o})}},profileStats:{retrieve(e,o){return t.fetch(`/me/companies/${encodeURIComponent(e)}/profile-stats`,o)},timeseries(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/profile-stats/timeseries`,{...n,query:o})}},recommendedTalent:{list(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/recommended-talent`,{...n,query:o})}},talentLists:{list(e,o){return t.fetch(`/me/companies/${encodeURIComponent(e)}/talent-lists`,o)},create(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/talent-lists`,{...n,method:"POST",body:o})},update(e,o,n,r){return t.fetch(`/me/companies/${encodeURIComponent(e)}/talent-lists/${encodeURIComponent(o)}`,{...r,method:"PATCH",body:n})},remove(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/talent-lists/${encodeURIComponent(o)}`,{...n,method:"DELETE"})}},sourcedCandidates:{list(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/sourced-candidates`,{...n,query:o})},add(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/sourced-candidates`,{...n,method:"POST",body:o})},remove(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/sourced-candidates/${encodeURIComponent(o)}`,{...n,method:"DELETE"})},convert(e,o,n,r){return t.fetch(`/me/companies/${encodeURIComponent(e)}/sourced-candidates/${encodeURIComponent(o)}/convert`,{...r,method:"POST",body:n})}},applicants:{list(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/applicants`,{...n,query:o})},move(e,o,n,r){return t.fetch(`/me/companies/${encodeURIComponent(e)}/applicants/${encodeURIComponent(o)}/stage`,{...r,method:"PATCH",body:n})},bulkMove(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/applicants/bulk/move`,{...n,method:"POST",body:o})},bulkReject(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/applicants/bulk/reject`,{...n,method:"POST",body:o})},addNote(e,o,n,r){return t.fetch(`/me/companies/${encodeURIComponent(e)}/applicants/${encodeURIComponent(o)}/notes`,{...r,method:"POST",body:n})}},pipelineStages:{create(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/pipeline-stages`,{...n,method:"POST",body:o})},update(e,o,n,r){return t.fetch(`/me/companies/${encodeURIComponent(e)}/pipeline-stages/${encodeURIComponent(o)}`,{...r,method:"PATCH",body:n})},remove(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/pipeline-stages/${encodeURIComponent(o)}`,{...n,method:"DELETE"})},reorder(e,o,n){return t.fetch(`/me/companies/${encodeURIComponent(e)}/pipeline-stages/reorder`,{...n,method:"PUT",body:o})}}},talentAccess:{retrieve(e){return t.fetch("/me/talent-access",e)},retrieveCandidate(e,o){return t.fetch(`/me/talent-access/candidates/${encodeURIComponent(e)}`,o)},checkout(e,o){return t.fetch("/me/talent-access/checkout",{...o,method:"POST",body:e})},retrieveCheckout(e,o){return t.fetch(`/me/talent-access/checkout/${encodeURIComponent(e)}`,o)},unlock(e,o){return t.fetch("/me/talent-access/unlocks",{...o,method:"POST",body:e})},upgrade(e,o){return t.fetch("/me/talent-access/upgrade",{...o,method:"POST",body:e})}},alerts:{list(e){return t.fetch("/me/alerts",e)},create(e,o){return t.fetch("/me/alerts",{...o,method:"POST",body:e})},retrieve(e,o){return t.fetch(`/me/alerts/${encodeURIComponent(e)}`,o)},update(e,o,n){return t.fetch(`/me/alerts/${encodeURIComponent(e)}`,{...n,method:"PUT",body:o})},remove(e,o){return t.fetch(`/me/alerts/${encodeURIComponent(e)}`,{...o,method:"DELETE"})}},applications:{list(e,o){return t.fetch("/me/applications",{...o,query:e})},retrieve(e,o){return t.fetch(`/me/applications/${encodeURIComponent(e)}`,o)},updateFacts(e,o,n){return t.fetch(`/me/applications/${encodeURIComponent(e)}`,{...n,method:"PATCH",body:o})},withdraw(e,o){return t.fetch(`/me/applications/${encodeURIComponent(e)}/withdraw`,{...o,method:"POST"})}},resume:{upload(e,o,n){let r=new FormData;return r.append("resume",e),o?.keepResumeOnFile&&r.append("keepResumeOnFile","true"),o?.importMode&&r.append("importMode",o.importMode),o?.confirmReplaceAll&&r.append("confirmReplaceAll","true"),t.fetch("/me/resume",{...n,method:"POST",body:r})},retrieve(e){return t.fetch("/me/resume",e)},delete(e){return t.fetch("/me/resume",{...e,method:"DELETE"})}},recommendedJobs:{list(e,o){return t.fetch("/me/recommended-jobs",{...o,query:e})}},savedJobs:{list(e,o){return t.fetch("/me/saved-jobs",{...o,query:e})},save(e,o,n){return t.fetch("/me/saved-jobs",{...n,method:"POST",body:e,query:o})},unsave(e,o,n){return t.fetch(`/me/saved-jobs/${encodeURIComponent(e)}`,{...n,method:"DELETE",query:o})}},conversations:{list(e,o){return t.fetch("/me/conversations",{...o,query:e})},unreadCount(e){return t.fetch("/me/conversations/unread-count",e)},retrieve(e,o){return t.fetch(`/me/conversations/${encodeURIComponent(e)}`,o)},listMessages(e,o,n){return t.fetch(`/me/conversations/${encodeURIComponent(e)}/messages`,{...n,query:o})},start(e,o){return t.fetch("/me/conversations",{...o,method:"POST",body:e})},startAboutApplication(e,o){return t.fetch("/me/conversations/about-application",{...o,method:"POST",body:e})},reply(e,o,n){return t.fetch(`/me/conversations/${encodeURIComponent(e)}/reply`,{...n,method:"POST",body:o})},markRead(e,o){return t.fetch(`/me/conversations/${encodeURIComponent(e)}/read`,{...o,method:"POST"})},archive(e,o){return t.fetch(`/me/conversations/${encodeURIComponent(e)}/archive`,{...o,method:"POST"})},unarchive(e,o){return t.fetch(`/me/conversations/${encodeURIComponent(e)}/unarchive`,{...o,method:"POST"})},findExisting(e,o){return t.fetch("/me/conversations/find-existing",{...o,query:e})}},blocks:{list(e){return t.fetch("/me/blocks",e)},create(e,o){return t.fetch("/me/blocks",{...o,method:"POST",body:e})},remove(e,o){return t.fetch(`/me/blocks/${encodeURIComponent(e)}`,{...o,method:"DELETE"})},status(e,o){return t.fetch(`/me/blocks/${encodeURIComponent(e)}`,o)}},messages:{edit(e,o,n){return t.fetch(`/me/messages/${encodeURIComponent(e)}`,{...n,method:"PATCH",body:o})},unsend(e,o){return t.fetch(`/me/messages/${encodeURIComponent(e)}`,{...o,method:"DELETE"})},report(e,o,n){return t.fetch(`/me/messages/${encodeURIComponent(e)}/report`,{...n,method:"POST",body:o})}},marketingConsent:{retrieve(e){return t.fetch("/me/marketing-consent",e)},grant(e){return t.fetch("/me/marketing-consent/grant",{...e,method:"POST"})},withdraw(e){return t.fetch("/me/marketing-consent/withdraw",{...e,method:"POST"})}},access:{checkout(e,o){return t.fetch("/me/access/checkout",{...o,method:"POST",body:e})},retrieveCheckout(e,o){return t.fetch(`/me/access/checkout/${encodeURIComponent(e)}`,o)},grant(e){return t.fetch("/me/access/grant",e)},portal(e,o){return t.fetch("/me/access/portal",{...o,method:"POST",body:e})}}}}function Ue(t){return{async verify(e,o){let n=await t.fetch("/password/verify",{...o,method:"POST",body:{password:e}});return await t.storage.setItem(F,n.token),n}}}function Me(t){return{offers(e){return t.fetch("/paywall/offers/enabled",e)}}}function Je(t){return{list(e,o){return t.fetch("/plans",{...o,query:e})},salesLed(e){return t.fetch("/sales-led-plans",e)}}}function we(t){return{resolve(e,o){return t.fetch("/redirects/resolve",{...o,query:{path:e}})}}}function Ne(t){return{companies:{list(e){return t.fetch("/salaries/companies",e)}},titles:{list(e,o){return t.fetch("/salaries/titles",{...o,query:e})},retrieve(e,o,n){return t.fetch(`/salaries/titles/${encodeURIComponent(e)}`,{...n,query:o})},locations(e,o,n){return t.fetch(`/salaries/titles/${encodeURIComponent(e)}/locations`,{...n,query:o})},location(e,o,n,r){return t.fetch(`/salaries/titles/${encodeURIComponent(e)}/${encodeURIComponent(o)}`,{...r,query:n})}},skills:{list(e,o){return t.fetch("/salaries/skills",{...o,query:e})},retrieve(e,o,n){return t.fetch(`/salaries/skills/${encodeURIComponent(e)}`,{...n,query:o})},locations(e,o,n){return t.fetch(`/salaries/skills/${encodeURIComponent(e)}/locations`,{...n,query:o})},location(e,o,n,r){return t.fetch(`/salaries/skills/${encodeURIComponent(e)}/${encodeURIComponent(o)}`,{...r,query:n})}},locations:{list(e,o){return t.fetch("/salaries/locations",{...o,query:e})},retrieve(e,o,n){return t.fetch(`/salaries/locations/${encodeURIComponent(e)}`,{...n,query:o})},titles(e,o,n){return t.fetch(`/salaries/locations/${encodeURIComponent(e)}/titles`,{...n,query:o})},skills(e,o,n){return t.fetch(`/salaries/locations/${encodeURIComponent(e)}/skills`,{...n,query:o})}}}}function $e(t){return{suggest(e,o){return t.fetch("/search/suggest",{...o,query:e})}}}function De(t){return Object.assign(e=>t.fetch("/sitemap",e),{entries(e,o,n){return t.fetch(`/sitemap/${encodeURIComponent(e)}`,{...n,query:o})}})}function je(t){return{list(e,o){return t.fetch("/talent",{...o,query:e})},retrieve(e,o){return t.fetch(`/talent/${encodeURIComponent(e)}`,o)}}}function qe(t,e){return{resolve(o,n){return t.fetch(`/${e}/${encodeURIComponent(o)}`,n)}}}function Qe(t,e){return{...qe(t,e),list(o,n){return t.fetch(`/${e}`,{...n,query:o})}}}function Ge(t){return{categories:Qe(t,"categories"),skills:Qe(t,"skills"),remotePermits:{list(e){return t.fetch("/remote-permits",e)}},places:{...qe(t,"places"),list(e,o){return t.fetch("/places",{...o,query:e})}}}}function He(t,e,o){async function*n(){let r=e;for(;;){let i=await t(r,o);if(yield i,!i.hasMore||i.nextCursor===null)return;let{offset:a,...s}=r??{};r={...s,cursor:i.nextCursor}}}return{pages:n,async*[Symbol.asyncIterator](){for await(let r of n())yield*r.data},async toArray({limit:r}){let i=[];for await(let a of n())if(i.push(...a.data),i.length>=r)break;return i.slice(0,r)}}}function Ve(t,e){return t.authorBoardUserId!==e}function Ke(t,e){let o=t.some(r=>r.authorBoardUserId===e);return t.some(r=>r.authorBoardUserId!==e)&&!o}function Ye(t,e){for(let o=t.length-1;o>=0;o--){let n=t[o];if(n.authorBoardUserId!==e)return n.id}return null}function X(t){let e=t.replace(/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,"").replace(/[\t\n\r]/g,""),o=/^([a-z][a-z0-9+.-]*):/i.exec(e)?.[1]?.toLowerCase();return o===void 0?!0:o==="http"||o==="https"||o==="mailto"}function ee(t){let e=t.applicationUrl&&X(t.applicationUrl)?t.applicationUrl:null;return!e&&!t.jobSlug?{kind:"none"}:t.registrationWall&&!t.viewer?{kind:"sign-in",reason:"registration-wall"}:e?{kind:"external",url:e}:t.jobSlug?t.viewer?t.viewer.emailVerified?t.applied?{kind:"applied"}:{kind:"native",jobSlug:t.jobSlug}:{kind:"verify-email"}:t.allowGuestApply?{kind:"guest",jobSlug:t.jobSlug}:{kind:"sign-in",reason:"native-apply"}:{kind:"none"}}function ze(t){let e=ee({...t,registrationWall:!1,allowGuestApply:!1});return e.kind==="sign-in"?{kind:"sign-in"}:e}function Xt(t){let e=new I({baseUrl:t.baseUrl??Ae,board:t.board,storage:ve(t.auth?.storage,t.board),globalHeaders:t.globalHeaders,onRequest:t.onRequest,onResponse:t.onResponse,logger:t.logger});return{client:e,context(o){return e.fetch("",o)},seo(o){return e.fetch("/seo",o)},jobs:xe(e),embed:Le(e),companies:Te(e),blog:_e(e),auth:Re(e),me:ke(e),password:Ue(e),taxonomy:Ge(e),search:$e(e),redirects:we(e),jobAlerts:Fe(e),jobPosting:Ie(e),salaries:Ne(e),talent:je(e),plans:Je(e),paywall:Me(e),sitemap:De(e)}}var te={};_(te,{DEFAULT_SORT:()=>eo,EMPLOYMENT_TYPES:()=>Ze,JOB_SORTS:()=>et,REMOTE_OPTIONS:()=>We,SENIORITIES:()=>Xe,parseCompany:()=>ot,parseListingFilters:()=>oo,parseSeniority:()=>tt});var We=["on_site","hybrid","remote"],Ze=["full_time","part_time","contract","internship","temporary"],Xe=["entry_level","associate","mid_level","senior","lead","principal","director","executive"],et=["relevance","newest","salary_high"],eo="relevance";var to=new Set(Xe);function tt(t){let e=Array.isArray(t)?t:typeof t=="string"&&t?t.split(","):[],o=[],n=new Set;for(let r of e){if(typeof r!="string")continue;let i=r.trim().toLowerCase().normalize("NFC");!i||n.has(i)||to.has(i)&&(n.add(i),o.push(i))}return o.length>0?o:void 0}function ot(t){let e=Array.isArray(t)?t:typeof t=="string"&&t?t.split(","):[],o=[],n=new Set;for(let r of e){if(typeof r!="string")continue;let i=r.trim().toLowerCase().normalize("NFC");if(!(!i||n.has(i))&&(n.add(i),o.push(i),o.length>=10))break}return o.length>0?o:void 0}function oo(t){return{q:typeof t.q=="string"&&t.q?t.q:void 0,remoteOption:We.includes(t.remoteOption)?t.remoteOption:void 0,employmentType:Ze.includes(t.employmentType)?t.employmentType:void 0,seniority:tt(t.seniority),company:ot(t.company),sort:et.includes(t.sort)?t.sort:void 0}}var ce={};_(ce,{COUNTRY_CODES:()=>z,buildJobBreadcrumbs:()=>Y,countryOptions:()=>kt,formatDate:()=>st,formatMonthYear:()=>pt,formatPublishedRelativeDate:()=>lt,formatSalaryRange:()=>ct,formatSalaryStat:()=>j,formatSalaryStatRange:()=>x,normalizeWebsiteUrl:()=>U,resolveCustomFieldDisplay:()=>Ut});function S(t){let e=t.trim();if(!e)return null;try{let o=e.replace(/_/g,"-"),[n]=Intl.getCanonicalLocales(o);if(!n)return null;let[r]=Intl.NumberFormat.supportedLocalesOf([n]);return r??null}catch{return null}}var nt=new Map,rt=new Map,it=new Map,at=new Map;function no(t){let e=nt.get(t);return e||(e=new Intl.RelativeTimeFormat(t,{numeric:"always",style:"short"}),nt.set(t,e)),e}function ro(t){let e=rt.get(t);return e||(e=new Intl.RelativeTimeFormat(t,{numeric:"auto",style:"short"}),rt.set(t,e)),e}function io(t){let e=it.get(t);return e||(e=new Intl.DateTimeFormat(t,{dateStyle:"medium",timeZone:"UTC"}),it.set(t,e)),e}function ao(t){let e=at.get(t);return e||(e=new Intl.DateTimeFormat(t,{month:"short",year:"numeric",timeZone:"UTC"}),at.set(t,e)),e}function oe(t,e,o){try{return no(o).format(t,e)}catch{return null}}function st(t,e){if(!e)return null;let o=new Date(e);if(Number.isNaN(o.getTime()))return null;let n=S(t);if(!n)return null;try{return io(n).format(o)}catch{return o.toISOString().split("T")[0]}}function lt(t,e,o=Date.now()){if(!e)return null;let n=new Date(e);if(Number.isNaN(n.getTime()))return null;let r=S(t);if(!r)return null;let i=o-n.getTime(),a=Math.abs(i),s=60*1e3,p=60*s,l=24*p,u=7*l,d=30*l,m=365*l;if(a<s)try{return ro(r).format(0,"second")}catch{return oe(0,"second",r)}let y=[{unit:"year",ms:m},{unit:"month",ms:d},{unit:"week",ms:u},{unit:"day",ms:l},{unit:"hour",ms:p},{unit:"minute",ms:s}];for(let f of y)if(a>=f.ms){let v=Math.round(a/f.ms),c=i>=0?-v:v;return oe(c,f.unit,r)}let g=Math.round(a/1e3),C=i>=0?-g:g;return oe(C,"second",r)}function pt(t,e){if(!e)return null;let n=/^\d{4}-\d{2}(-\d{2})?$/.test(e)?new Date(e.length===7?`${e}-01T00:00:00.000Z`:`${e}T00:00:00.000Z`):new Date(e);if(Number.isNaN(n.getTime()))return null;let r=S(t);if(!r)return null;try{return ao(r).format(n)}catch{return null}}var $=new Map;function ne(t,e,o,n="symbol",r="compact"){let i=`${e}:${o}:${n}:${r}`,a=$.get(i);if(a===void 0){try{let s={style:"currency",currency:o,currencyDisplay:n,notation:r};r==="compact"&&(s.compactDisplay="short",s.maximumFractionDigits=1,s.minimumFractionDigits=0),a=new Intl.NumberFormat(e,s)}catch{a=null}$.set(i,a)}return a?a.format(t):null}function re(t,e,o){if(typeof t.formatRange=="function")try{return t.formatRange(e,o)}catch{}try{return`${t.format(e)}\u2013${t.format(o)}`}catch{return null}}function so(t,e,o,n,r="symbol",i="compact"){let a=`${o}:${n}:${r}:${i}:range`,s=$.get(a);if(s===void 0){try{let p={style:"currency",currency:n,currencyDisplay:r,notation:i};i==="compact"&&(p.compactDisplay="short",p.maximumFractionDigits=1,p.minimumFractionDigits=0),s=new Intl.NumberFormat(o,p)}catch{s=null}$.set(a,s)}return s?re(s,t,e):null}var lo=new Set(["per_year","per_month","per_week","per_day","per_hour"]);function po(...t){let e=!1;for(let o of t)if(!(o==null||!Number.isFinite(o))&&(e=!0,Math.abs(o)>=1e3))return"compact";return e?"standard":"compact"}function ct(t,e,o,n,r=null,i="symbol",a){let s=e==null||Number.isFinite(e),p=o==null||Number.isFinite(o);if(!s||!p||e==null&&o==null)return null;let l=r?.trim().toUpperCase()||null;if(!l)return null;let u=S(t);if(!u)return null;let d=a??po(e,o),m=typeof n=="string"&&lo.has(n)?n:null;if(e!=null&&o!=null){let g=e<=o?e:o,C=e<=o?o:e,f=g===C?ne(g,u,l,i,d):so(g,C,u,l,i,d);return f?{text:f,timeframe:m,bound:"range"}:null}if(e!=null){let g=ne(e,u,l,i,d);return g?{text:g,timeframe:m,bound:"from"}:null}let y=ne(o,u,l,i,d);return y?{text:y,timeframe:m,bound:"upTo"}:null}var ut=new Map;function mt(...t){let e=!1;for(let o of t)if(!(o==null||!Number.isFinite(o))&&(e=!0,Math.abs(o)>=1e3))return"compact";return e?"standard":"compact"}function dt(t,e,o){let n=`${t}:${e}:${o}`,r=ut.get(n);if(r!==void 0)return r;let i;try{let a={style:"currency",currency:e,notation:o};o==="compact"&&(a.compactDisplay="short",a.minimumFractionDigits=0,a.maximumFractionDigits=1),i=new Intl.NumberFormat(t,a)}catch{i=null}return ut.set(n,i),i}function j(t,e,o,n){if(!Number.isFinite(e))return null;let r=o?.trim().toUpperCase()||null;if(!r)return null;let i=S(t);if(!i)return null;let a=n??mt(e),s=dt(i,r,a);return s?s.format(e):null}function x(t,e,o,n,r){if(!Number.isFinite(e)||!Number.isFinite(o))return null;let i=n?.trim().toUpperCase()||null;if(!i)return null;let a=S(t);if(!a)return null;let s=r??mt(e,o),p=dt(a,i,s);if(!p)return null;let l=Math.min(e,o),u=Math.max(e,o);return l===u?p.format(l):re(p,l,u)}var D=["entry_level","associate","mid_level","senior","lead","principal","director","executive"];function yt(t){return[...t].sort((e,o)=>{let n=D.indexOf(e.seniority),r=D.indexOf(o.seniority);return(n===-1?999:n)-(r===-1?999:r)})}var co={unitText:"YEAR",duration:"P1Y"};function k(t,e,o,n,r={}){return{"@type":"MonetaryAmountDistribution",...t!==void 0?{name:t}:{},currency:e,minValue:o,maxValue:n,...r,...co}}function ie(t,e,o,n){return t.map(r=>{let i=n?.seniorityName?.({seniority:r.seniority,entity:o});return k(i,e,r.avgSalaryMin,r.avgSalaryMax)})}function Q(t,e,o,n){return{"@context":"https://schema.org","@type":t,name:e,...o,estimatedSalary:n}}function gt(t,e,o,n){if(!o)return[];let r=x(t,o.avgMin,o.avgMax,n);return[{kind:"average",label:e,range:r,avgMin:o.avgMin,avgMax:o.avgMax,currency:n,jobCount:o.jobCount},{kind:"methodology",label:e}]}function q(t){return t.length===0?null:{"@context":"https://schema.org","@type":"ItemList",numberOfItems:t.length,itemListElement:t.map((e,o)=>({"@type":"ListItem",position:o+1,name:e.name,url:e.url}))}}function ft(t){return t.length===0?null:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.map(e=>({"@type":"Question",name:e.q,acceptedAnswer:{"@type":"Answer",text:e.a}}))}}function ht(t,e){return t.overallSalary?Q("Occupation",t.categoryName,{},[k(t.categoryName,t.currency,t.overallSalary.avgMin,t.overallSalary.avgMax,{...t.boardP25Min?{percentile25:t.boardP25Min}:{},...t.boardP75Max?{percentile75:t.boardP75Max}:{}}),...ie(t.bySeniority,t.currency,t.categoryName,e)]):null}function bt(t){return t.overallSalary?Q("Occupation",t.skillName,{},[k(t.skillName,t.currency,t.overallSalary.avgMin,t.overallSalary.avgMax,{median:Math.round((t.overallSalary.medianMin+t.overallSalary.medianMax)/2)})]):null}function St(t,e){return!e?.occupationUrl||!(t.adminLevel==="city"||t.adminLevel==="locality")?null:q(t.topCategories.map(n=>({name:n.categoryName,url:e.occupationUrl(n)})))}function Ct(t,e){return t.overall?Q("Occupation",t.name,{occupationLocation:{"@type":"AdministrativeArea",name:t.placeName,address:{"@type":"PostalAddress",addressCountry:t.countryCode}}},[k(t.name,t.currency,t.overall.avgMin,t.overall.avgMax,{...t.overall.p25Min?{percentile25:t.overall.p25Min}:{},...t.overall.p75Max?{percentile75:t.overall.p75Max}:{}}),...ie(t.bySeniority,t.currency,t.name,e)]):null}function Ot(t,e){return e?.occupationUrl?q(t.byCategory.map(o=>({name:o.categoryName,url:e.occupationUrl(o)}))):null}function Et(t,e){return t.overallSalary?Q("Occupation",t.categoryName,{occupationalCategory:t.categoryName,hiringOrganization:{"@type":"Organization",name:t.companyName}},[k(t.categoryName,t.currency,t.overallSalary.avgMin,t.overallSalary.avgMax,{...t.boardCategoryP25Min?{percentile25:t.boardCategoryP25Min}:{},...t.boardCategoryP75Max?{percentile75:t.boardCategoryP75Max}:{}}),...ie(t.bySeniority,t.currency,t.categoryName,e)]):null}function Bt(t,e){return t.company?.name??e.legalName??e.contact?.legalName??e.name??null}var Pt={high_school:"high school",associate_degree:"associate degree",bachelor_degree:"bachelor degree",professional_certificate:"professional certificate",postgraduate_degree:"postgraduate degree"},uo={full_time:"FULL_TIME",part_time:"PART_TIME",contract:"CONTRACTOR",internship:"INTERN",temporary:"TEMPORARY",volunteer:"VOLUNTEER",other:"OTHER"},mo={per_year:"YEAR",per_month:"MONTH",per_week:"WEEK",per_day:"DAY",per_hour:"HOUR"},se=["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","VG","BN","BG","BF","BI","KH","CM","CA","CV","BQ","KY","CF","TD","CL","CN","CX","CC","CO","KM","CK","CR","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","CD","EC","EG","SV","GQ","ER","EE","SZ","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","CI","JM","JP","JE","JO","KZ","KE","KI","XK","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MK","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","CG","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","KR","SS","ES","LK","SD","SR","SJ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","VI","UY","UZ","VU","VA","VE","VN","WF","EH","YE","ZM","ZW"];function At({job:t,board:e,shareUrl:o}){let n=Co(t),r=Oo(t),i=ae({"@context":"https://schema.org/","@type":"JobPosting",title:t.title,description:t.description??"",identifier:yo(t,e),datePosted:vt(t.publishedAt),validThrough:vt(t.expiresAt),employmentType:t.employmentType?uo[t.employmentType]??"OTHER":"OTHER",hiringOrganization:go(t,e),jobLocation:ho(t),jobLocationType:t.remoteOption==="remote"?"TELECOMMUTE":void 0,applicantLocationRequirements:t.remoteOption==="remote"?So(t):null,baseSalary:fo(t),educationRequirements:n,experienceRequirements:r,experienceInPlaceOfEducation:t.experienceInPlaceOfEducation===!0&&n&&r?!0:void 0,url:o});return!i||Array.isArray(i)||Object.keys(i).length===0?null:i}function yo(t,e){let o=Bt(t,e),n={"@type":"PropertyValue",value:t.id};return o&&(n.name=o),n}function go(t,e){let o=Bt(t,e);if(!o)return null;let n={"@type":"Organization",name:o},r=t.company?.website??null,i=r?U(r):null;i&&(n.sameAs=i);let a=t.company?.logoUrl??e.logoUrl??null;return a&&(n.logo=a),n}function U(t){let e=t.trim();return e?/^https?:\/\//i.test(e)?e:`https://${e}`:null}function fo(t){let e=t.salaryCurrency?.trim(),o=typeof t.salaryMin=="number",n=typeof t.salaryMax=="number";if(!e||!o&&!n)return null;let r={"@type":"QuantitativeValue"};o&&(r.minValue=t.salaryMin),n&&(r.maxValue=t.salaryMax);let i=t.salaryTimeframe?mo[t.salaryTimeframe]:void 0;return i&&(r.unitText=i),!o&&n&&typeof t.salaryMax=="number"?(r.value=t.salaryMax,r.minValue=t.salaryMax):!n&&o&&typeof t.salaryMin=="number"&&(r.value=t.salaryMin,r.maxValue=t.salaryMin),{"@type":"MonetaryAmount",currency:e.toUpperCase(),value:r}}function ho(t){let e=t.officeLocations.map(o=>bo({countryCode:o.countryCode,region:o.region,locality:o.city??o.locality,postalCode:o.postalCode,name:o.displayName})).filter(o=>o!==null);return e.length===0?null:e.length===1?e[0]:e}function bo({countryCode:t,region:e,locality:o,postalCode:n,name:r}){let i={"@type":"PostalAddress"},a=t?.trim(),s=e?.trim(),p=o?.trim(),l=n?.trim(),u=r?.trim();a&&(i.addressCountry=a.toUpperCase()),s&&(i.addressRegion=s),p&&(i.addressLocality=p),l&&(i.postalCode=l);let d=Object.keys(i).length>1;if(!d&&!u)return null;let m={"@type":"Place"};return u&&(m.name=u),d&&(m.address=i),m}function So(t){if(t.remoteWorldwide)return se.map(n=>({"@type":"Country",name:n}));let e=[],o=new Set;for(let n of t.remoteWorkPermitCountryCodes??[]){let r=n?.trim().toUpperCase();!r||o.has(r)||(o.add(r),e.push({"@type":"Country",name:r}))}for(let n of t.remoteWorkPermitSubdivisionCodes??[]){let r=n?.split("-")[0]?.trim().toUpperCase();!r||o.has(r)||(o.add(r),e.push({"@type":"Country",name:r}))}return e.length===0?null:e.length===1?e[0]:e}function Co(t){let e=t.educationRequirements;if(!e||e.length===0)return null;if(e.includes("no_requirements"))return"no requirements";let o=e.filter(n=>n in Pt).map(n=>({"@type":"EducationalOccupationalCredential",credentialCategory:Pt[n]}));return o.length>0?o:null}function Oo(t){let e=t.experienceMonths;return typeof e!="number"?null:e===0?"no requirements":{"@type":"OccupationalExperienceRequirements",monthsOfExperience:e}}function vt(t){if(!t)return null;let e=new Date(t);return Number.isNaN(e.getTime())?null:e.toISOString()}function ae(t){let e=o=>o==null?!1:Array.isArray(o)?o.length>0:typeof o=="object"?Object.keys(o).length>0:!0;if(Array.isArray(t))return t.map(o=>ae(o)).filter(e);if(t&&typeof t=="object"){let o=Object.entries(t).map(([n,r])=>[n,ae(r)]).filter(([,n])=>e(n));return Object.fromEntries(o)}return t}var pe={};_(pe,{BOARD_PATHS:()=>V,blogAuthorPath:()=>Ro,blogPostPath:()=>Ft,blogTagPath:()=>It,boardUrl:()=>K,companyMarketPath:()=>Lt,companyPath:()=>Tt,companySalaryPath:()=>Po,encodePathSegment:()=>h,goAlertsConfirmPath:()=>Lo,goAlertsManagePath:()=>To,goJobPath:()=>_o,jobDetailPath:()=>le,jobsCategoryPath:()=>G,jobsLocationCategoryPath:()=>H,jobsLocationPath:()=>M,jobsLocationSkillPath:()=>_t,jobsSkillPath:()=>Rt,salaryLocationPath:()=>Ao,salarySkillPath:()=>Bo,salaryTitlePath:()=>vo,suggestionPath:()=>Eo});function h(t){try{return encodeURIComponent(decodeURIComponent(t)).replace(/%3A/gi,":")}catch{return encodeURIComponent(t).replace(/%3A/gi,":")}}function le(t,e){return`/companies/${h(t)}/jobs/${h(e)}`}function G(t){return`/jobs/${h(t)}`}function Rt(t){return`/jobs/skills/${h(t)}`}function M(t){return`/jobs/locations/${h(t)}`}function H(t,e){return`${M(t)}/${h(e)}`}function _t(t,e){return`${M(t)}/skills/${h(e)}`}function Tt(t){return`/companies/${h(t)}`}function Lt(t){return`/companies/markets/${h(t)}`}function Eo(t,e){let o=e.location?.trim()||void 0;return e.scope==="blog"?t.type==="post"?Ft(t.slug):t.type==="tag"?It(t.slug):null:e.scope==="jobs"?t.type==="company"||t.type==="market"||t.type==="post"||t.type==="tag"?null:t.termType==="skill"?o?_t(o,t.canonicalSlug):Rt(t.canonicalSlug):o?H(o,t.canonicalSlug):G(t.canonicalSlug):t.type==="company"?Tt(t.slug):t.type==="market"?Lt(t.slug):null}function Po(t){return`/companies/${h(t)}/salaries`}function vo(t){return`/salaries/titles/${h(t)}`}function Bo(t){return`/salaries/skills/${h(t)}`}function Ao(t){return`/salaries/locations/${h(t)}`}function Ft(t){return`/blog/${h(t)}`}function It(t){return`/blog/tag/${h(t)}`}function Ro(t){return`/blog/author/${h(t)}`}var V={home:"/",jobs:"/jobs",companies:"/companies",salaries:"/salaries",salaryCompanies:"/salaries/companies",salaryTitles:"/salaries/titles",salarySkills:"/salaries/skills",salaryLocations:"/salaries/locations",blog:"/blog",about:"/about",privacyPolicy:"/privacy-policy",termsOfService:"/terms-of-service",cookiePolicy:"/cookie-policy",impressum:"/impressum",talent:"/talent",employers:"/employers",alertsManage:"/alerts/manage",alertsConfirm:"/alerts/confirm"};function _o(t){return`/go/job/${t}`}function To(){return"/go/alerts-manage"}function Lo(){return"/go/alerts-confirm"}function K(t,e){return`${t.replace(/\/+$/,"")}${e}`}function xt(t,e={}){let o=t.map(r=>{let i=r.label?.trim();return i?{name:i,href:r.href?.trim()??null}:null}).filter(r=>!!r);return o.length<2?null:{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:o.map((r,i)=>{let a=r.href?Fo(r.href,e.origin??null):null,s={"@type":"ListItem",position:i+1,name:r.name};return a&&(s.item=a),s})}}function Fo(t,e){if(Io(t))return t;if(!e)return null;let o=t.startsWith("/")?t:`/${t}`;return`${e}${o}`}function Io(t){return/^https?:\/\//i.test(t)}function Y(t){let e=[{kind:"home",path:V.home},{kind:"jobs",path:V.jobs}],o=null;for(let r of t.placeHierarchy)o=r.slug,e.push({kind:"place",name:r.name,path:M(r.slug)});let n=t.categories[0];return n&&e.push({kind:"category",name:n.name,path:o?H(o,n.slug):G(n.slug)}),e.push({kind:"job",name:t.title}),e}var z=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"];function xo(t){try{return new Intl.DisplayNames([t],{type:"region"})}catch{return null}}function ko(t){try{return new Intl.Collator(t)}catch{return new Intl.Collator}}function kt(t){let e=S(t);if(!e)return z.map(r=>({code:r,name:r})).sort((r,i)=>r.code<i.code?-1:r.code>i.code?1:0);let o=xo(e),n=ko(e).compare;return z.map(r=>({code:r,name:o?.of(r)??r})).sort((r,i)=>n(r.name,i.name))}function Uo(t,e){if(!Array.isArray(e)||e.length===0)return null;let o=e.map(n=>t.options?.find(r=>r.key===n)?.label).filter(n=>!!n);return o.length>0?o:null}function Mo(t,e){switch(t.type){case"number":return null;case"multi_select":return null;case"single_select":return typeof e!="string"?null:t.options?.find(o=>o.key===e)?.label??null;default:return typeof e=="string"&&e.trim()!==""?e:null}}function Ut(t,e,o){let n=[];for(let r of e??[]){let i=o?.[r.key];if(r.type==="boolean"){typeof i=="boolean"&&n.push({key:r.key,label:r.label,kind:"boolean",value:i});continue}if(r.type==="number"){typeof i=="number"&&Number.isFinite(i)&&n.push({key:r.key,label:r.label,kind:"number",value:i});continue}if(r.type==="multi_select"){let s=Uo(r,i);s&&n.push({key:r.key,label:r.label,kind:"multi_select",values:s});continue}let a=Mo(r,i);a!==null&&n.push({key:r.key,label:r.label,kind:"text",value:a})}return n}var ue={};_(ue,{ALL_COUNTRY_CODES:()=>se,SENIORITY_ORDER:()=>D,buildJobBreadcrumbs:()=>Y,buildSalaryFaq:()=>gt,companyCategorySalaryJsonLd:()=>Et,companySalaryJsonLd:()=>Ot,createAuthorProfileJsonLd:()=>Jt,createBlogArticleJsonLd:()=>Mt,createBreadcrumbJsonLd:()=>xt,createJobPostingJsonLd:()=>At,crossAxisSalaryJsonLd:()=>Ct,faqJsonLd:()=>ft,formatSalaryStat:()=>j,formatSalaryStatRange:()=>x,itemListJsonLd:()=>q,listingHead:()=>wt,listingJsonLd:()=>Nt,locationSalaryJsonLd:()=>St,normalizeWebsiteUrl:()=>U,skillSalaryJsonLd:()=>bt,sortBySeniority:()=>yt,titleSalaryJsonLd:()=>ht});function Mt({post:t,boardName:e,permalink:o,ogImageUrl:n}){let r={"@context":"https://schema.org","@type":"Article",headline:t.title,url:o,mainEntityOfPage:{"@type":"WebPage","@id":o},publisher:{"@type":"Organization",name:e}};t.customExcerpt&&(r.description=t.customExcerpt),t.publishedAt&&(r.datePublished=t.publishedAt);let i=t.coverUrl??n;i&&(r.image=i);let a=t.authors[0];return a&&(r.author={"@type":"Person",name:a.name,...a.websiteUrl?{url:a.websiteUrl}:{}}),r}function Jt({author:t,canonical:e,description:o,origin:n,posts:r,totalPosts:i}){if(!t.name)return null;let a=o.trim(),s=[W(t.websiteUrl),W(t.twitterUrl),W(t.linkedinUrl),W(t.githubUrl)].filter(m=>!!m),p=`${e}#profile`,l=r.slice(0,5).map(m=>{let y=Jo(n,`/blog/${m.slug}`);return y?{"@type":"Article",headline:m.title,url:y,datePublished:m.publishedAt,author:{"@id":p}}:null}).filter(m=>m!==null),u=i>0?{"@type":"InteractionCounter",interactionType:"https://schema.org/WriteAction",userInteractionCount:i}:void 0,d={"@context":"https://schema.org","@type":"ProfilePage",url:e,mainEntity:{"@type":"Person","@id":p,name:t.name,alternateName:t.slug??void 0,identifier:t.id??void 0,description:a||void 0,image:t.avatarUrl??void 0,sameAs:s.length>0?s:void 0,url:e,mainEntityOfPage:e,agentInteractionStatistic:u}};return l.length>0&&(d.hasPart=l),d}function W(t){if(!t)return null;let e=t.trim();if(!e)return null;try{let o=e.startsWith("http://")||e.startsWith("https://")?e:`https://${e}`;return new URL(o).toString()}catch{return null}}function Jo(t,e){if(!t||!e)return null;try{return new URL(e,t).toString()}catch{return null}}function wt(t){let e=t.title,o=t.description,n=`${t.origin}${t.path}`;return{meta:[{title:e},{name:"description",content:o},{property:"og:title",content:e},{property:"og:description",content:o},{property:"og:type",content:"website"},{property:"og:url",content:n}],links:[{rel:"canonical",href:n}]}}function Nt(t){let e=[];t.breadcrumbs.length>=2&&e.push({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t.breadcrumbs.map((n,r)=>({"@type":"ListItem",position:r+1,name:n.name,...n.path?{item:K(t.origin,n.path)}:{}}))});let o=(t.jobs??[]).filter(n=>n.company!=null&&!!n.company.slug);return o.length>0&&e.push({"@context":"https://schema.org","@type":"ItemList",itemListElement:o.map((n,r)=>({"@type":"ListItem",position:r+1,url:K(t.origin,le(n.company.slug,n.slug))}))}),e}var me={};_(me,{createSuggestController:()=>$o});function wo(t){return typeof DOMException<"u"&&t instanceof DOMException&&t.name==="AbortError"||t instanceof Error&&t.name==="AbortError"}function No(t){try{let e=0;for(let o of new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t))e+=1;return e}catch{return[...t].length}}function $t(t,e){return e.size===0?t.slice():t.filter(o=>!(o.type==="company"&&e.has(o.slug.toLowerCase().normalize("NFC"))))}function $o(t,e){let o=e?.minChars??2,n=e?.debounceMs??250,r=e?.limit,i=!1,a={query:"",items:[],status:"idle",error:null},s=[],p=new Set,l=0,u=null,d=null,m=new Set;function y(){for(let c of m)c()}function g(c){a=c,y()}function C(){u!==null&&(globalThis.clearTimeout(u),u=null)}function f(){d&&(d.abort(),d=null)}function v(c){let b=++l;f();let O=new AbortController;d=O;let R={q:c};r!==void 0&&(R.limit=r),t.search.suggest(R,{signal:O.signal}).then(B=>{i||b!==l||(d=null,s=B.items,g({query:a.query,items:$t(s,p),status:"ready",error:null}))}).catch(B=>{i||b!==l||wo(B)||(d=null,g({query:a.query,items:a.items,status:"error",error:B}))})}return{setQuery(c){if(i)return;let b=c.trim();if(C(),No(b)<o){l+=1,f(),s=[],g({query:c,items:[],status:"idle",error:null});return}l+=1,f(),g({query:c,items:a.items,status:"loading",error:null}),u=globalThis.setTimeout(()=>{u=null,!i&&v(b)},n)},setExcludedCompanySlugs(c){i||(p=new Set(c.map(b=>b.trim().toLowerCase().normalize("NFC")).filter(Boolean)),g({query:a.query,items:$t(s,p),status:a.status,error:a.error}))},getState(){return a},subscribe(c){return i?()=>{}:(m.add(c),()=>{m.delete(c)})},dispose(){i||(i=!0,C(),f(),l+=1,m.clear())}}}return Ht(Do);})();
|
|
1
|
+
"use strict";var CavunoBoard=(()=>{var J=Object.defineProperty;var jt=Object.getOwnPropertyDescriptor;var Qt=Object.getOwnPropertyNames;var qt=Object.prototype.hasOwnProperty;var Gt=(e,t,o)=>t in e?J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var _=(e,t)=>{for(var o in t)J(e,o,{get:t[o],enumerable:!0})},Ht=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Qt(t))!qt.call(e,r)&&r!==o&&J(e,r,{get:()=>t[r],enumerable:!(n=jt(t,r))||n.enumerable});return e};var Vt=e=>Ht(J({},"__esModule",{value:!0}),e);var E=(e,t,o)=>Gt(e,typeof t!="symbol"?t+"":t,o);var jo={};_(jo,{ACCESS_TOKEN_KEY:()=>T,BOARD_ACCESS_GRANT_KEY:()=>F,BOARD_API_ERROR_CODES:()=>de,BoardApiError:()=>A,BoardClient:()=>I,REFRESH_TOKEN_KEY:()=>L,SDK_VERSION:()=>N,createBoardClient:()=>eo,filters:()=>te,format:()=>ce,isBoardApiError:()=>P,isBoardPasswordRequired:()=>fe,isColdRule:()=>Ye,isConflict:()=>Ce,isForbidden:()=>he,isFreeEmailWebsiteError:()=>Oe,isNotFound:()=>ye,isOwnMessage:()=>Ke,isRateLimited:()=>Se,isSafeApplicationUrl:()=>X,isUnauthorized:()=>ge,isValidationError:()=>be,lastOwnMessageId:()=>We,paginate:()=>Ve,paths:()=>pe,resolveApplyAction:()=>ze,resolveApplyDecision:()=>ee,seo:()=>ue,suggest:()=>me});var de=["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_account_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_free_email_website","employer_company_name_taken","employer_company_not_found","employer_job_not_found","employer_job_slug_taken","employer_jobs_quota_exceeded","membership_required","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","candidate_paywall_access_required","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"],A=class extends Error{constructor(o){super(o.message);E(this,"status");E(this,"code");E(this,"details");E(this,"requestId");E(this,"raw");this.name="BoardApiError",this.status=o.status,this.code=o.code,this.details=o.details,this.requestId=o.requestId,this.raw=o.raw}};function P(e){return e instanceof Error&&e.name==="BoardApiError"&&typeof e.status=="number"&&typeof e.code=="string"}function ye(e){return P(e)&&e.status===404}function ge(e){return P(e)&&e.status===401}function fe(e){return P(e)&&e.status===401&&e.code==="board_password_required"}function he(e){return P(e)&&e.status===403}function be(e){return P(e)&&e.status===400&&e.code==="validation_bad_request"}function Se(e){return P(e)&&e.status===429}function Ce(e){return P(e)&&e.status===409}function Oe(e){return P(e)&&e.status===422&&e.code==="employer_free_email_website"}function Ee(e){let t=new URLSearchParams;if(!e)return t;for(let[o,n]of Object.entries(e))if(n!=null)if(Array.isArray(n))for(let r of n)r!=null&&t.append(o,String(r));else t.append(o,String(n));return t}function Pe(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)>>>0;return`${e.replace(/[^a-zA-Z0-9_-]/g,"_")}-${t.toString(36)}`}var T="cavuno_board_access_token",L="cavuno_board_refresh_token",F="cavuno_board_access_grant";function ve(){return typeof globalThis.document<"u"}function Kt(){let e=new Map;return{getItem:t=>e.get(t)??null,setItem:(t,o)=>{e.set(t,o)},removeItem:t=>{e.delete(t)}}}function Yt(e,t){if(!ve())throw new Error(`storage mode '${e}' is browser-only \u2014 use 'nostore' + per-call headers on the server`);let o;try{if(o=e==="local"?globalThis.localStorage:globalThis.sessionStorage,!o)throw new Error("unavailable")}catch{throw new Error(`storage mode '${e}' is unavailable in this browsing context (storage access is blocked \u2014 e.g. a sandboxed or third-party iframe). Use 'memory', or 'nostore' + per-call headers.`)}let n=t?`:${Pe(t)}`:"";return{getItem:r=>o.getItem(`${r}${n}`),setItem:(r,i)=>{o.setItem(`${r}${n}`,i)},removeItem:r=>{o.removeItem(`${r}${n}`)}}}var Wt=Symbol.for("@cavuno/board:nostore");var zt={[Wt]:!0,getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function Be(e,t){let o=e??(ve()?"memory":"nostore");if(typeof o=="object")return o;switch(o){case"memory":return Kt();case"nostore":return zt;case"local":case"session":return Yt(o,t);default:throw new Error(`Unknown storage mode '${String(o)}'`)}}async function w(e,t){await e.setItem(T,t.accessToken),await e.setItem(L,t.refreshToken)}async function Ae(e){await e.removeItem(T),await e.removeItem(L)}var N="4.21.1";function Zt(e){return typeof e=="string"||e instanceof URLSearchParams||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob||e instanceof ArrayBuffer||typeof ReadableStream<"u"&&e instanceof ReadableStream}function Xt(e){try{let t=new URL(e);for(let o of new Set(t.searchParams.keys()))t.searchParams.delete(o),t.searchParams.set(o,"[REDACTED]");return t.toString()}catch{return e.replace(/([?&][^=&#]+)=([^&#]*)/g,"$1=[REDACTED]")}}var I=class{constructor(t){E(this,"storage");E(this,"basePath");E(this,"options");this.options=t,this.storage=t.storage;let o=t.baseUrl.replace(/\/+$/,"");this.basePath=`${o}/v1/boards/${encodeURIComponent(t.board)}`}async fetch(t,o={}){let{body:n,query:r,headers:i,...a}=o,s=(o.method??"GET").toUpperCase(),p=`${this.basePath}${t}`,u=Ee(r).toString();u&&(p+=`?${u}`);let d=n!==void 0&&!Zt(n),m=n===void 0?void 0:d?JSON.stringify(n):n,y=new Headers({accept:"application/json"});d&&y.set("content-type","application/json");for(let[B,Z]of Object.entries(this.options.globalHeaders??{}))y.set(B,Z);let g=await this.storage.getItem(T);g!==null&&y.set("authorization",`Bearer ${g}`);let C=await this.storage.getItem(F);C!==null&&y.set("x-board-access",C),i&&new Headers(i).forEach((B,Z)=>{y.set(Z,B)}),(s!=="GET"||y.has("authorization")||y.has("x-board-access"))&&!y.has("x-cavuno-sdk")&&y.set("x-cavuno-sdk",`board@${N}`);let f={url:p,init:{...a,method:s,headers:y,body:m}};this.options.onRequest&&(f=await this.options.onRequest(f));let v=Xt(f.url);this.options.logger?.debug(`${s} ${v}`);let c=await globalThis.fetch(f.url,f.init);if(this.options.logger?.debug(`${c.status} ${s} ${v}`),this.options.onResponse&&await this.options.onResponse(c.clone(),f),c.status===204)return;if(c.ok)return await c.json();let b;try{b=await c.json()}catch{b=void 0}let O=b?.error,R=O&&typeof O.code=="string"&&typeof O.message=="string"?new A({status:c.status,code:O.code,message:O.message,details:O.details,requestId:O.requestId,raw:b}):new A({status:c.status,code:"unknown_error",message:c.statusText||"Request failed",raw:b});throw this.options.logger?.error(`${R.status} ${R.code} ${s} ${v}`),R}};var Re="https://api.cavuno.com";function _e(e){async function t(n){return await w(e.storage,n),n}async function o(n){if(n?.refreshToken)return n.refreshToken;let r=await e.storage.getItem(L);if(r===null)throw new Error("No refresh token available \u2014 pass { refreshToken } or configure auth.storage");return r}return{async register(n,r){let i=await e.fetch("/auth/register",{...r,method:"POST",body:n});return t(i)},async login(n,r){let i=await e.fetch("/auth/login",{...r,method:"POST",body:n});return t(i)},async refresh(n,r){let i=await o(n),a=await e.fetch("/auth/refresh",{...r,method:"POST",body:{refreshToken:i}});return t(a)},async logout(n,r){let i=await o(n);await e.fetch("/auth/logout",{...r,method:"POST",body:{refreshToken:i}}),await Ae(e.storage)},verifyEmail(n,r){return e.fetch("/auth/verify-email",{...r,method:"POST",body:n})},verifyWorkEmail(n,r){return e.fetch("/auth/verify-work-email",{...r,method:"POST",body:n})},verifyEmailWithCode(n,r){return e.fetch("/auth/verify-email/otp",{...r,method:"POST",body:n})},resendVerification(n){return e.fetch("/auth/verify-email/resend",{...n,method:"POST"})},forgotPassword(n,r){return e.fetch("/auth/forgot-password",{...r,method:"POST",body:n})},resetPassword(n,r){return e.fetch("/auth/reset-password",{...r,method:"POST",body:n})},requestMagicLink(n,r){return e.fetch("/auth/magic-link",{...r,method:"POST",body:n})},async consumeMagicLink(n,r){let i=await e.fetch("/auth/magic-link/consume",{...r,method:"POST",body:n});return t(i)},getOAuthAuthorizationUrl(n,r,i){return e.fetch(`/auth/oauth/${n}`,{...i,method:"GET",query:r})},async exchangeOAuth(n,r){let i=await e.fetch("/auth/oauth/exchange",{...r,method:"POST",body:n});return t(i)}}}function Te(e){return{posts:{list(t,o){return e.fetch("/blog/posts",{...o,query:t})},retrieve(t,o,n){return e.fetch(`/blog/posts/${encodeURIComponent(t)}`,{...n,query:o})},adjacent(t,o){return e.fetch(`/blog/posts/${encodeURIComponent(t)}/adjacent`,o)},similar(t,o,n){return e.fetch(`/blog/posts/${encodeURIComponent(t)}/similar`,{...n,query:o})}},tags:{list(t,o){return e.fetch("/blog/tags",{...o,query:t})},retrieve(t,o,n){return e.fetch(`/blog/tags/${encodeURIComponent(t)}`,{...n,query:o})}},authors:{list(t,o){return e.fetch("/blog/authors",{...o,query:t})},retrieve(t,o,n){return e.fetch(`/blog/authors/${encodeURIComponent(t)}`,{...n,query:o})}},search(t,o,n){return e.fetch("/blog/search",{...n,method:"POST",body:t,query:o})}}}function Le(e){let t=Object.assign((n,r)=>e.fetch("/companies/markets",{...r,query:n}),{resolve(n,r){return e.fetch(`/companies/markets/${encodeURIComponent(n)}`,r)}}),o=Object.assign((n,r)=>e.fetch(`/companies/${encodeURIComponent(n)}/salaries`,r),{summary(n,r){return e.fetch(`/companies/${encodeURIComponent(n)}/salaries/summary`,r)},category(n,r,i,a){return e.fetch(`/companies/${encodeURIComponent(n)}/salaries/${encodeURIComponent(r)}`,{...a,query:i})}});return{list(n,r){return e.fetch("/companies",{...r,query:n})},retrieve(n,r,i){return e.fetch(`/companies/${encodeURIComponent(n)}`,{...i,query:r})},search(n,r,i){return e.fetch("/companies/search",{...i,method:"POST",body:n,query:r})},listJobs(n,r,i){return e.fetch(`/companies/${encodeURIComponent(n)}/jobs`,{...i,query:r})},similar(n,r,i){return e.fetch(`/companies/${encodeURIComponent(n)}/similar`,{...i,query:r})},markets:t,salaries:o}}function Fe(e){return{jobs(t,o){return e.fetch("/embed/jobs",{...o,query:t})}}}function Ie(e){return{subscribe(t,o){return e.fetch("/job-alerts",{...o,method:"POST",body:t})},confirm(t,o){return e.fetch("/job-alerts/confirm",{...o,method:"POST",body:t})},resendConfirmation(t,o){return e.fetch("/job-alerts/resend-confirmation",{...o,method:"POST",body:t})},manage(t,o){return e.fetch("/job-alerts/manage",{...o,query:t})},unsubscribe(t,o){return e.fetch("/job-alerts/unsubscribe",{...o,method:"POST",body:t})},resubscribe(t,o){return e.fetch("/job-alerts/resubscribe",{...o,method:"POST",body:t})},updatePreference(t,o){return e.fetch("/job-alerts/preferences",{...o,method:"POST",body:t})},deletePreference(t,o){return e.fetch("/job-alerts/preferences",{...o,method:"DELETE",body:t})}}}function xe(e){return{plans(t,o){return e.fetch("/job-postings/plans",{...o,query:t})},create(t,o){return e.fetch("/job-postings",{...o,method:"POST",body:t})},uploadLogo(t,o){let n=new FormData;return n.append("file",t),e.fetch("/job-postings/logo",{...o,method:"POST",body:n})},fetchLogoByDomain(t,o){return e.fetch("/job-postings/logo/fetch",{...o,query:{domain:t}})},sendBillingVerification(t,o){return e.fetch("/job-postings/send-verification",{...o,method:"POST",body:t})},getBillingOptions(t,o){return e.fetch("/job-postings/billing-options",{...o,method:"POST",body:t})}}}function ke(e){return{list(t,o){return e.fetch("/jobs",{...o,query:t})},retrieve(t,o,n){return e.fetch(`/jobs/${encodeURIComponent(t)}`,{...n,query:o})},search(t,o,n){return e.fetch("/jobs/search",{...n,method:"POST",body:t,query:o})},similar(t,o,n){return e.fetch(`/jobs/${encodeURIComponent(t)}/similar`,{...n,query:o})},apply(t,o,n){return e.fetch(`/jobs/${encodeURIComponent(t)}/apply`,{...n,method:"POST",body:o??{}})},createApplyIntent(t,o,n){return e.fetch(`/jobs/${encodeURIComponent(t)}/apply-intents`,{...n,method:"POST",body:o})},prepareApplyApproval(t,o,n){return e.fetch(`/jobs/${encodeURIComponent(t)}/apply-approvals`,{...n,method:"POST",body:o})},uploadApplicationResume(t,o,n,r){let i=new FormData;return i.append("file",o),n?.applicationId&&i.append("applicationId",n.applicationId),e.fetch(`/jobs/${encodeURIComponent(t)}/apply/resume`,{...r,method:"POST",body:i})},myApplication(t,o){return e.fetch(`/jobs/${encodeURIComponent(t)}/application`,o)}}}function Ue(e){return{retrieve(t,o){return e.fetch("/me",{...o,query:t})},delete(t){return e.fetch("/me",{...t,method:"DELETE"})},async updatePassword(t,o){let n=await e.fetch("/me/password",{...o,method:"POST",body:t});return await w(e.storage,n),n},requestEmailChange(t,o){return e.fetch("/me/email",{...o,method:"POST",body:t})},confirmEmailChange(t,o){return e.fetch("/me/email/confirm",{...o,method:"POST",body:t})},acceptInvite(t,o){return e.fetch("/me/invites/accept",{...o,method:"POST",body:t})},profile:{retrieve(t,o){return e.fetch("/me/profile",{...o,query:t})},update(t,o,n){return e.fetch("/me/profile",{...n,method:"PATCH",body:t,query:o})},handleAvailable(t,o){return e.fetch("/me/profile/handle-available",{...o,query:{handle:t}})},listExperience(t){return e.fetch("/me/profile/experience",t)},createExperience(t,o){return e.fetch("/me/profile/experience",{...o,method:"POST",body:t})},updateExperience(t,o,n){return e.fetch(`/me/profile/experience/${encodeURIComponent(t)}`,{...n,method:"PATCH",body:o})},deleteExperience(t,o){return e.fetch(`/me/profile/experience/${encodeURIComponent(t)}`,{...o,method:"DELETE"})},listEducation(t){return e.fetch("/me/profile/education",t)},createEducation(t,o){return e.fetch("/me/profile/education",{...o,method:"POST",body:t})},updateEducation(t,o,n){return e.fetch(`/me/profile/education/${encodeURIComponent(t)}`,{...n,method:"PATCH",body:o})},deleteEducation(t,o){return e.fetch(`/me/profile/education/${encodeURIComponent(t)}`,{...o,method:"DELETE"})},listSkills(t){return e.fetch("/me/profile/skills",t)},updateSkills(t,o){return e.fetch("/me/profile/skills",{...o,method:"PUT",body:t})},listLanguages(t){return e.fetch("/me/profile/languages",t)},updateLanguages(t,o){return e.fetch("/me/profile/languages",{...o,method:"PUT",body:t})},uploadAvatar(t,o){let n=new FormData;return n.append("file",t),e.fetch("/me/profile/avatar",{...o,method:"POST",body:n})}},notificationPreferences:{retrieve(t){return e.fetch("/me/notification-preferences",t)},update(t,o){return e.fetch("/me/notification-preferences",{...o,method:"PUT",body:t})},unsubscribeWithToken(t,o){return e.fetch("/me/notification-preferences/unsubscribe",{...o,method:"POST",body:t})}},companies:{search(t,o){return e.fetch("/me/companies/search",{...o,query:t})},list(t){return e.fetch("/me/companies",t)},create(t,o){return e.fetch("/me/companies",{...o,method:"POST",body:t})},claim(t,o){return e.fetch(`/me/companies/${encodeURIComponent(t)}/claim`,{...o,method:"POST"})},cancelClaim(t,o){return e.fetch(`/me/companies/${encodeURIComponent(t)}/claim`,{...o,method:"DELETE"})},retrieve(t,o){return e.fetch(`/me/companies/${encodeURIComponent(t)}`,o)},update(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}`,{...n,method:"PATCH",body:o})},delete(t,o){return e.fetch(`/me/companies/${encodeURIComponent(t)}`,{...o,method:"DELETE"})},listMembers(t,o){return e.fetch(`/me/companies/${encodeURIComponent(t)}/members`,o)},updateMemberRole(t,o,n,r){return e.fetch(`/me/companies/${encodeURIComponent(t)}/members/${encodeURIComponent(o)}`,{...r,method:"PATCH",body:n})},removeMember(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/members/${encodeURIComponent(o)}`,{...n,method:"DELETE"})},leave(t,o){return e.fetch(`/me/companies/${encodeURIComponent(t)}/membership`,{...o,method:"DELETE"})},listInvites(t,o){return e.fetch(`/me/companies/${encodeURIComponent(t)}/invites`,o)},createInvite(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/invites`,{...n,method:"POST",body:o})},revokeInvite(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/invites/${encodeURIComponent(o)}`,{...n,method:"DELETE"})},uploadLogo(t,o,n){let r=new FormData;return r.append("file",o),e.fetch(`/me/companies/${encodeURIComponent(t)}/logo`,{...n,method:"POST",body:r})},workEmail:{verify(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/work-email/verify`,{...n,method:"POST",body:o})},confirm(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/work-email/confirm`,{...n,method:"POST",body:o})}},jobs:{list(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/jobs`,{...n,query:o})},retrieve(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/jobs/${encodeURIComponent(o)}`,n)},create(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/jobs`,{...n,method:"POST",body:o})},update(t,o,n,r){return e.fetch(`/me/companies/${encodeURIComponent(t)}/jobs/${encodeURIComponent(o)}`,{...r,method:"PATCH",body:n})},delete(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/jobs/${encodeURIComponent(o)}`,{...n,method:"DELETE"})},publish(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/jobs/${encodeURIComponent(o)}/publish`,{...n,method:"POST"})},unpublish(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/jobs/${encodeURIComponent(o)}/unpublish`,{...n,method:"POST"})},checkout(t,o,n,r){return e.fetch(`/me/companies/${encodeURIComponent(t)}/jobs/${encodeURIComponent(o)}/checkout`,{...r,method:"POST",body:n})}},billingOptions:{list(t,o){return e.fetch(`/me/companies/${encodeURIComponent(t)}/billing-options`,o)}},billingPortal:{create(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/billing-portal`,{...n,method:"POST",body:o})}},jobStats:{retrieve(t,o){return e.fetch(`/me/companies/${encodeURIComponent(t)}/job-stats`,o)},timeseries(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/job-stats/timeseries`,{...n,query:o})}},profileStats:{retrieve(t,o){return e.fetch(`/me/companies/${encodeURIComponent(t)}/profile-stats`,o)},timeseries(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/profile-stats/timeseries`,{...n,query:o})}},recommendedTalent:{list(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/recommended-talent`,{...n,query:o})}},talentLists:{list(t,o){return e.fetch(`/me/companies/${encodeURIComponent(t)}/talent-lists`,o)},create(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/talent-lists`,{...n,method:"POST",body:o})},update(t,o,n,r){return e.fetch(`/me/companies/${encodeURIComponent(t)}/talent-lists/${encodeURIComponent(o)}`,{...r,method:"PATCH",body:n})},remove(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/talent-lists/${encodeURIComponent(o)}`,{...n,method:"DELETE"})}},sourcedCandidates:{list(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/sourced-candidates`,{...n,query:o})},add(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/sourced-candidates`,{...n,method:"POST",body:o})},remove(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/sourced-candidates/${encodeURIComponent(o)}`,{...n,method:"DELETE"})},convert(t,o,n,r){return e.fetch(`/me/companies/${encodeURIComponent(t)}/sourced-candidates/${encodeURIComponent(o)}/convert`,{...r,method:"POST",body:n})}},applicants:{list(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/applicants`,{...n,query:o})},move(t,o,n,r){return e.fetch(`/me/companies/${encodeURIComponent(t)}/applicants/${encodeURIComponent(o)}/stage`,{...r,method:"PATCH",body:n})},bulkMove(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/applicants/bulk/move`,{...n,method:"POST",body:o})},bulkReject(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/applicants/bulk/reject`,{...n,method:"POST",body:o})},addNote(t,o,n,r){return e.fetch(`/me/companies/${encodeURIComponent(t)}/applicants/${encodeURIComponent(o)}/notes`,{...r,method:"POST",body:n})}},pipelineStages:{create(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/pipeline-stages`,{...n,method:"POST",body:o})},update(t,o,n,r){return e.fetch(`/me/companies/${encodeURIComponent(t)}/pipeline-stages/${encodeURIComponent(o)}`,{...r,method:"PATCH",body:n})},remove(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/pipeline-stages/${encodeURIComponent(o)}`,{...n,method:"DELETE"})},reorder(t,o,n){return e.fetch(`/me/companies/${encodeURIComponent(t)}/pipeline-stages/reorder`,{...n,method:"PUT",body:o})}}},talentAccess:{retrieve(t){return e.fetch("/me/talent-access",t)},retrieveCandidate(t,o){return e.fetch(`/me/talent-access/candidates/${encodeURIComponent(t)}`,o)},checkout(t,o){return e.fetch("/me/talent-access/checkout",{...o,method:"POST",body:t})},retrieveCheckout(t,o){return e.fetch(`/me/talent-access/checkout/${encodeURIComponent(t)}`,o)},unlock(t,o){return e.fetch("/me/talent-access/unlocks",{...o,method:"POST",body:t})},upgrade(t,o){return e.fetch("/me/talent-access/upgrade",{...o,method:"POST",body:t})}},alerts:{list(t){return e.fetch("/me/alerts",t)},create(t,o){return e.fetch("/me/alerts",{...o,method:"POST",body:t})},retrieve(t,o){return e.fetch(`/me/alerts/${encodeURIComponent(t)}`,o)},update(t,o,n){return e.fetch(`/me/alerts/${encodeURIComponent(t)}`,{...n,method:"PUT",body:o})},remove(t,o){return e.fetch(`/me/alerts/${encodeURIComponent(t)}`,{...o,method:"DELETE"})}},applications:{list(t,o){return e.fetch("/me/applications",{...o,query:t})},retrieve(t,o){return e.fetch(`/me/applications/${encodeURIComponent(t)}`,o)},updateFacts(t,o,n){return e.fetch(`/me/applications/${encodeURIComponent(t)}`,{...n,method:"PATCH",body:o})},withdraw(t,o){return e.fetch(`/me/applications/${encodeURIComponent(t)}/withdraw`,{...o,method:"POST"})}},resume:{upload(t,o,n){let r=new FormData;return r.append("resume",t),o?.keepResumeOnFile&&r.append("keepResumeOnFile","true"),o?.importMode&&r.append("importMode",o.importMode),o?.confirmReplaceAll&&r.append("confirmReplaceAll","true"),e.fetch("/me/resume",{...n,method:"POST",body:r})},retrieve(t){return e.fetch("/me/resume",t)},delete(t){return e.fetch("/me/resume",{...t,method:"DELETE"})}},recommendedJobs:{list(t,o){return e.fetch("/me/recommended-jobs",{...o,query:t})}},savedJobs:{list(t,o){return e.fetch("/me/saved-jobs",{...o,query:t})},save(t,o,n){return e.fetch("/me/saved-jobs",{...n,method:"POST",body:t,query:o})},unsave(t,o,n){return e.fetch(`/me/saved-jobs/${encodeURIComponent(t)}`,{...n,method:"DELETE",query:o})}},conversations:{list(t,o){return e.fetch("/me/conversations",{...o,query:t})},unreadCount(t){return e.fetch("/me/conversations/unread-count",t)},retrieve(t,o){return e.fetch(`/me/conversations/${encodeURIComponent(t)}`,o)},listMessages(t,o,n){return e.fetch(`/me/conversations/${encodeURIComponent(t)}/messages`,{...n,query:o})},start(t,o){return e.fetch("/me/conversations",{...o,method:"POST",body:t})},startAboutApplication(t,o){return e.fetch("/me/conversations/about-application",{...o,method:"POST",body:t})},reply(t,o,n){return e.fetch(`/me/conversations/${encodeURIComponent(t)}/reply`,{...n,method:"POST",body:o})},markRead(t,o){return e.fetch(`/me/conversations/${encodeURIComponent(t)}/read`,{...o,method:"POST"})},archive(t,o){return e.fetch(`/me/conversations/${encodeURIComponent(t)}/archive`,{...o,method:"POST"})},unarchive(t,o){return e.fetch(`/me/conversations/${encodeURIComponent(t)}/unarchive`,{...o,method:"POST"})},findExisting(t,o){return e.fetch("/me/conversations/find-existing",{...o,query:t})}},blocks:{list(t){return e.fetch("/me/blocks",t)},create(t,o){return e.fetch("/me/blocks",{...o,method:"POST",body:t})},remove(t,o){return e.fetch(`/me/blocks/${encodeURIComponent(t)}`,{...o,method:"DELETE"})},status(t,o){return e.fetch(`/me/blocks/${encodeURIComponent(t)}`,o)}},messages:{edit(t,o,n){return e.fetch(`/me/messages/${encodeURIComponent(t)}`,{...n,method:"PATCH",body:o})},unsend(t,o){return e.fetch(`/me/messages/${encodeURIComponent(t)}`,{...o,method:"DELETE"})},report(t,o,n){return e.fetch(`/me/messages/${encodeURIComponent(t)}/report`,{...n,method:"POST",body:o})}},marketingConsent:{retrieve(t){return e.fetch("/me/marketing-consent",t)},grant(t){return e.fetch("/me/marketing-consent/grant",{...t,method:"POST"})},withdraw(t){return e.fetch("/me/marketing-consent/withdraw",{...t,method:"POST"})}},access:{checkout(t,o){return e.fetch("/me/access/checkout",{...o,method:"POST",body:t})},retrieveCheckout(t,o){return e.fetch(`/me/access/checkout/${encodeURIComponent(t)}`,o)},grant(t){return e.fetch("/me/access/grant",t)},portal(t,o){return e.fetch("/me/access/portal",{...o,method:"POST",body:t})}}}}function Me(e){return{async verify(t,o){let n=await e.fetch("/password/verify",{...o,method:"POST",body:{password:t}});return await e.storage.setItem(F,n.token),n}}}function Je(e){return{offers(t){return e.fetch("/paywall/offers/enabled",t)}}}function we(e){return{list(t,o){return e.fetch("/plans",{...o,query:t})},salesLed(t){return e.fetch("/sales-led-plans",t)}}}function Ne(e){return{resolve(t,o){return e.fetch("/redirects/resolve",{...o,query:{path:t}})}}}function $e(e){return{companies:{list(t){return e.fetch("/salaries/companies",t)}},titles:{list(t,o){return e.fetch("/salaries/titles",{...o,query:t})},retrieve(t,o,n){return e.fetch(`/salaries/titles/${encodeURIComponent(t)}`,{...n,query:o})},locations(t,o,n){return e.fetch(`/salaries/titles/${encodeURIComponent(t)}/locations`,{...n,query:o})},location(t,o,n,r){return e.fetch(`/salaries/titles/${encodeURIComponent(t)}/${encodeURIComponent(o)}`,{...r,query:n})}},skills:{list(t,o){return e.fetch("/salaries/skills",{...o,query:t})},retrieve(t,o,n){return e.fetch(`/salaries/skills/${encodeURIComponent(t)}`,{...n,query:o})},locations(t,o,n){return e.fetch(`/salaries/skills/${encodeURIComponent(t)}/locations`,{...n,query:o})},location(t,o,n,r){return e.fetch(`/salaries/skills/${encodeURIComponent(t)}/${encodeURIComponent(o)}`,{...r,query:n})}},locations:{list(t,o){return e.fetch("/salaries/locations",{...o,query:t})},retrieve(t,o,n){return e.fetch(`/salaries/locations/${encodeURIComponent(t)}`,{...n,query:o})},titles(t,o,n){return e.fetch(`/salaries/locations/${encodeURIComponent(t)}/titles`,{...n,query:o})},skills(t,o,n){return e.fetch(`/salaries/locations/${encodeURIComponent(t)}/skills`,{...n,query:o})}}}}function De(e){return{suggest(t,o){return e.fetch("/search/suggest",{...o,query:t})}}}function je(e){return Object.assign(t=>e.fetch("/sitemap",t),{entries(t,o,n){return e.fetch(`/sitemap/${encodeURIComponent(t)}`,{...n,query:o})}})}function Qe(e){return{list(t,o){return e.fetch("/talent",{...o,query:t})},retrieve(t,o){return e.fetch(`/talent/${encodeURIComponent(t)}`,o)}}}function Ge(e,t){return{resolve(o,n){return e.fetch(`/${t}/${encodeURIComponent(o)}`,n)}}}function qe(e,t){return{...Ge(e,t),list(o,n){return e.fetch(`/${t}`,{...n,query:o})}}}function He(e){return{categories:qe(e,"categories"),skills:qe(e,"skills"),remotePermits:{list(t){return e.fetch("/remote-permits",t)}},places:{...Ge(e,"places"),list(t,o){return e.fetch("/places",{...o,query:t})}}}}function Ve(e,t,o){async function*n(){let r=t;for(;;){let i=await e(r,o);if(yield i,!i.hasMore||i.nextCursor===null)return;let{offset:a,...s}=r??{};r={...s,cursor:i.nextCursor}}}return{pages:n,async*[Symbol.asyncIterator](){for await(let r of n())yield*r.data},async toArray({limit:r}){let i=[];for await(let a of n())if(i.push(...a.data),i.length>=r)break;return i.slice(0,r)}}}function Ke(e,t){return e.authorBoardUserId!==t}function Ye(e,t){let o=e.some(r=>r.authorBoardUserId===t);return e.some(r=>r.authorBoardUserId!==t)&&!o}function We(e,t){for(let o=e.length-1;o>=0;o--){let n=e[o];if(n.authorBoardUserId!==t)return n.id}return null}function X(e){let t=e.replace(/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,"").replace(/[\t\n\r]/g,""),o=/^([a-z][a-z0-9+.-]*):/i.exec(t)?.[1]?.toLowerCase();return o===void 0?!0:o==="http"||o==="https"||o==="mailto"}function ee(e){let t=e.applicationUrl&&X(e.applicationUrl)?e.applicationUrl:null;return!t&&!e.jobSlug?{kind:"none"}:e.registrationWall&&!e.viewer?{kind:"sign-in",reason:"registration-wall"}:t?{kind:"external",url:t}:e.jobSlug?e.viewer?e.viewer.emailVerified?e.applied?{kind:"applied"}:{kind:"native",jobSlug:e.jobSlug}:{kind:"verify-email"}:e.allowGuestApply?{kind:"guest",jobSlug:e.jobSlug}:{kind:"sign-in",reason:"native-apply"}:{kind:"none"}}function ze(e){let t=ee({...e,registrationWall:!1,allowGuestApply:!1});return t.kind==="sign-in"?{kind:"sign-in"}:t}function eo(e){let t=new I({baseUrl:e.baseUrl??Re,board:e.board,storage:Be(e.auth?.storage,e.board),globalHeaders:e.globalHeaders,onRequest:e.onRequest,onResponse:e.onResponse,logger:e.logger});return{client:t,context(o){return t.fetch("",o)},seo(o){return t.fetch("/seo",o)},jobs:ke(t),embed:Fe(t),companies:Le(t),blog:Te(t),auth:_e(t),me:Ue(t),password:Me(t),taxonomy:He(t),search:De(t),redirects:Ne(t),jobAlerts:Ie(t),jobPosting:xe(t),salaries:$e(t),talent:Qe(t),plans:we(t),paywall:Je(t),sitemap:je(t)}}var te={};_(te,{DEFAULT_SORT:()=>to,EMPLOYMENT_TYPES:()=>Xe,JOB_SORTS:()=>tt,REMOTE_OPTIONS:()=>Ze,SENIORITIES:()=>et,parseCompany:()=>nt,parseListingFilters:()=>no,parseSeniority:()=>ot});var Ze=["on_site","hybrid","remote"],Xe=["full_time","part_time","contract","internship","temporary"],et=["entry_level","associate","mid_level","senior","lead","principal","director","executive"],tt=["relevance","newest","salary_high"],to="relevance";var oo=new Set(et);function ot(e){let t=Array.isArray(e)?e:typeof e=="string"&&e?e.split(","):[],o=[],n=new Set;for(let r of t){if(typeof r!="string")continue;let i=r.trim().toLowerCase().normalize("NFC");!i||n.has(i)||oo.has(i)&&(n.add(i),o.push(i))}return o.length>0?o:void 0}function nt(e){let t=Array.isArray(e)?e:typeof e=="string"&&e?e.split(","):[],o=[],n=new Set;for(let r of t){if(typeof r!="string")continue;let i=r.trim().toLowerCase().normalize("NFC");if(!(!i||n.has(i))&&(n.add(i),o.push(i),o.length>=10))break}return o.length>0?o:void 0}function no(e){return{q:typeof e.q=="string"&&e.q?e.q:void 0,remoteOption:Ze.includes(e.remoteOption)?e.remoteOption:void 0,employmentType:Xe.includes(e.employmentType)?e.employmentType:void 0,seniority:ot(e.seniority),company:nt(e.company),sort:tt.includes(e.sort)?e.sort:void 0}}var ce={};_(ce,{COUNTRY_CODES:()=>W,buildJobBreadcrumbs:()=>Y,countryOptions:()=>Ut,formatDate:()=>lt,formatMonthYear:()=>ct,formatPublishedRelativeDate:()=>pt,formatSalaryRange:()=>ut,formatSalaryStat:()=>j,formatSalaryStatRange:()=>x,normalizeWebsiteUrl:()=>U,resolveCustomFieldDisplay:()=>Mt});function S(e){let t=e.trim();if(!t)return null;try{let o=t.replace(/_/g,"-"),[n]=Intl.getCanonicalLocales(o);if(!n)return null;let[r]=Intl.NumberFormat.supportedLocalesOf([n]);return r??null}catch{return null}}var rt=new Map,it=new Map,at=new Map,st=new Map;function ro(e){let t=rt.get(e);return t||(t=new Intl.RelativeTimeFormat(e,{numeric:"always",style:"short"}),rt.set(e,t)),t}function io(e){let t=it.get(e);return t||(t=new Intl.RelativeTimeFormat(e,{numeric:"auto",style:"short"}),it.set(e,t)),t}function ao(e){let t=at.get(e);return t||(t=new Intl.DateTimeFormat(e,{dateStyle:"medium",timeZone:"UTC"}),at.set(e,t)),t}function so(e){let t=st.get(e);return t||(t=new Intl.DateTimeFormat(e,{month:"short",year:"numeric",timeZone:"UTC"}),st.set(e,t)),t}function oe(e,t,o){try{return ro(o).format(e,t)}catch{return null}}function lt(e,t){if(!t)return null;let o=new Date(t);if(Number.isNaN(o.getTime()))return null;let n=S(e);if(!n)return null;try{return ao(n).format(o)}catch{return o.toISOString().split("T")[0]}}function pt(e,t,o=Date.now()){if(!t)return null;let n=new Date(t);if(Number.isNaN(n.getTime()))return null;let r=S(e);if(!r)return null;let i=o-n.getTime(),a=Math.abs(i),s=60*1e3,p=60*s,l=24*p,u=7*l,d=30*l,m=365*l;if(a<s)try{return io(r).format(0,"second")}catch{return oe(0,"second",r)}let y=[{unit:"year",ms:m},{unit:"month",ms:d},{unit:"week",ms:u},{unit:"day",ms:l},{unit:"hour",ms:p},{unit:"minute",ms:s}];for(let f of y)if(a>=f.ms){let v=Math.round(a/f.ms),c=i>=0?-v:v;return oe(c,f.unit,r)}let g=Math.round(a/1e3),C=i>=0?-g:g;return oe(C,"second",r)}function ct(e,t){if(!t)return null;let n=/^\d{4}-\d{2}(-\d{2})?$/.test(t)?new Date(t.length===7?`${t}-01T00:00:00.000Z`:`${t}T00:00:00.000Z`):new Date(t);if(Number.isNaN(n.getTime()))return null;let r=S(e);if(!r)return null;try{return so(r).format(n)}catch{return null}}var $=new Map;function ne(e,t,o,n="symbol",r="compact"){let i=`${t}:${o}:${n}:${r}`,a=$.get(i);if(a===void 0){try{let s={style:"currency",currency:o,currencyDisplay:n,notation:r};r==="compact"&&(s.compactDisplay="short",s.maximumFractionDigits=1,s.minimumFractionDigits=0),a=new Intl.NumberFormat(t,s)}catch{a=null}$.set(i,a)}return a?a.format(e):null}function re(e,t,o){if(typeof e.formatRange=="function")try{return e.formatRange(t,o)}catch{}try{return`${e.format(t)}\u2013${e.format(o)}`}catch{return null}}function lo(e,t,o,n,r="symbol",i="compact"){let a=`${o}:${n}:${r}:${i}:range`,s=$.get(a);if(s===void 0){try{let p={style:"currency",currency:n,currencyDisplay:r,notation:i};i==="compact"&&(p.compactDisplay="short",p.maximumFractionDigits=1,p.minimumFractionDigits=0),s=new Intl.NumberFormat(o,p)}catch{s=null}$.set(a,s)}return s?re(s,e,t):null}var po=new Set(["per_year","per_month","per_week","per_day","per_hour"]);function co(...e){let t=!1;for(let o of e)if(!(o==null||!Number.isFinite(o))&&(t=!0,Math.abs(o)>=1e3))return"compact";return t?"standard":"compact"}function ut(e,t,o,n,r=null,i="symbol",a){let s=t==null||Number.isFinite(t),p=o==null||Number.isFinite(o);if(!s||!p||t==null&&o==null)return null;let l=r?.trim().toUpperCase()||null;if(!l)return null;let u=S(e);if(!u)return null;let d=a??co(t,o),m=typeof n=="string"&&po.has(n)?n:null;if(t!=null&&o!=null){let g=t<=o?t:o,C=t<=o?o:t,f=g===C?ne(g,u,l,i,d):lo(g,C,u,l,i,d);return f?{text:f,timeframe:m,bound:"range"}:null}if(t!=null){let g=ne(t,u,l,i,d);return g?{text:g,timeframe:m,bound:"from"}:null}let y=ne(o,u,l,i,d);return y?{text:y,timeframe:m,bound:"upTo"}:null}var mt=new Map;function dt(...e){let t=!1;for(let o of e)if(!(o==null||!Number.isFinite(o))&&(t=!0,Math.abs(o)>=1e3))return"compact";return t?"standard":"compact"}function yt(e,t,o){let n=`${e}:${t}:${o}`,r=mt.get(n);if(r!==void 0)return r;let i;try{let a={style:"currency",currency:t,notation:o};o==="compact"&&(a.compactDisplay="short",a.minimumFractionDigits=0,a.maximumFractionDigits=1),i=new Intl.NumberFormat(e,a)}catch{i=null}return mt.set(n,i),i}function j(e,t,o,n){if(!Number.isFinite(t))return null;let r=o?.trim().toUpperCase()||null;if(!r)return null;let i=S(e);if(!i)return null;let a=n??dt(t),s=yt(i,r,a);return s?s.format(t):null}function x(e,t,o,n,r){if(!Number.isFinite(t)||!Number.isFinite(o))return null;let i=n?.trim().toUpperCase()||null;if(!i)return null;let a=S(e);if(!a)return null;let s=r??dt(t,o),p=yt(a,i,s);if(!p)return null;let l=Math.min(t,o),u=Math.max(t,o);return l===u?p.format(l):re(p,l,u)}var D=["entry_level","associate","mid_level","senior","lead","principal","director","executive"];function gt(e){return[...e].sort((t,o)=>{let n=D.indexOf(t.seniority),r=D.indexOf(o.seniority);return(n===-1?999:n)-(r===-1?999:r)})}var uo={unitText:"YEAR",duration:"P1Y"};function k(e,t,o,n,r={}){return{"@type":"MonetaryAmountDistribution",...e!==void 0?{name:e}:{},currency:t,minValue:o,maxValue:n,...r,...uo}}function ie(e,t,o,n){return e.map(r=>{let i=n?.seniorityName?.({seniority:r.seniority,entity:o});return k(i,t,r.avgSalaryMin,r.avgSalaryMax)})}function Q(e,t,o,n){return{"@context":"https://schema.org","@type":e,name:t,...o,estimatedSalary:n}}function ft(e,t,o,n){if(!o)return[];let r=x(e,o.avgMin,o.avgMax,n);return[{kind:"average",label:t,range:r,avgMin:o.avgMin,avgMax:o.avgMax,currency:n,jobCount:o.jobCount},{kind:"methodology",label:t}]}function q(e){return e.length===0?null:{"@context":"https://schema.org","@type":"ItemList",numberOfItems:e.length,itemListElement:e.map((t,o)=>({"@type":"ListItem",position:o+1,name:t.name,url:t.url}))}}function ht(e){return e.length===0?null:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.q,acceptedAnswer:{"@type":"Answer",text:t.a}}))}}function bt(e,t){return e.overallSalary?Q("Occupation",e.categoryName,{},[k(e.categoryName,e.currency,e.overallSalary.avgMin,e.overallSalary.avgMax,{...e.boardP25Min?{percentile25:e.boardP25Min}:{},...e.boardP75Max?{percentile75:e.boardP75Max}:{}}),...ie(e.bySeniority,e.currency,e.categoryName,t)]):null}function St(e){return e.overallSalary?Q("Occupation",e.skillName,{},[k(e.skillName,e.currency,e.overallSalary.avgMin,e.overallSalary.avgMax,{median:Math.round((e.overallSalary.medianMin+e.overallSalary.medianMax)/2)})]):null}function Ct(e,t){return!t?.occupationUrl||!(e.adminLevel==="city"||e.adminLevel==="locality")?null:q(e.topCategories.map(n=>({name:n.categoryName,url:t.occupationUrl(n)})))}function Ot(e,t){return e.overall?Q("Occupation",e.name,{occupationLocation:{"@type":"AdministrativeArea",name:e.placeName,address:{"@type":"PostalAddress",addressCountry:e.countryCode}}},[k(e.name,e.currency,e.overall.avgMin,e.overall.avgMax,{...e.overall.p25Min?{percentile25:e.overall.p25Min}:{},...e.overall.p75Max?{percentile75:e.overall.p75Max}:{}}),...ie(e.bySeniority,e.currency,e.name,t)]):null}function Et(e,t){return t?.occupationUrl?q(e.byCategory.map(o=>({name:o.categoryName,url:t.occupationUrl(o)}))):null}function Pt(e,t){return e.overallSalary?Q("Occupation",e.categoryName,{occupationalCategory:e.categoryName,hiringOrganization:{"@type":"Organization",name:e.companyName}},[k(e.categoryName,e.currency,e.overallSalary.avgMin,e.overallSalary.avgMax,{...e.boardCategoryP25Min?{percentile25:e.boardCategoryP25Min}:{},...e.boardCategoryP75Max?{percentile75:e.boardCategoryP75Max}:{}}),...ie(e.bySeniority,e.currency,e.categoryName,t)]):null}function At(e,t){return e.company?.name??t.legalName??t.contact?.legalName??t.name??null}var vt={high_school:"high school",associate_degree:"associate degree",bachelor_degree:"bachelor degree",professional_certificate:"professional certificate",postgraduate_degree:"postgraduate degree"},mo={full_time:"FULL_TIME",part_time:"PART_TIME",contract:"CONTRACTOR",internship:"INTERN",temporary:"TEMPORARY",volunteer:"VOLUNTEER",other:"OTHER"},yo={per_year:"YEAR",per_month:"MONTH",per_week:"WEEK",per_day:"DAY",per_hour:"HOUR"},se=["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","VG","BN","BG","BF","BI","KH","CM","CA","CV","BQ","KY","CF","TD","CL","CN","CX","CC","CO","KM","CK","CR","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","CD","EC","EG","SV","GQ","ER","EE","SZ","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","CI","JM","JP","JE","JO","KZ","KE","KI","XK","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MK","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","CG","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","KR","SS","ES","LK","SD","SR","SJ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","VI","UY","UZ","VU","VA","VE","VN","WF","EH","YE","ZM","ZW"];function Rt({job:e,board:t,shareUrl:o}){let n=Oo(e),r=Eo(e),i=ae({"@context":"https://schema.org/","@type":"JobPosting",title:e.title,description:e.description??"",identifier:go(e,t),datePosted:Bt(e.publishedAt),validThrough:Bt(e.expiresAt),employmentType:e.employmentType?mo[e.employmentType]??"OTHER":"OTHER",hiringOrganization:fo(e,t),jobLocation:bo(e),jobLocationType:e.remoteOption==="remote"?"TELECOMMUTE":void 0,applicantLocationRequirements:e.remoteOption==="remote"?Co(e):null,baseSalary:ho(e),educationRequirements:n,experienceRequirements:r,experienceInPlaceOfEducation:e.experienceInPlaceOfEducation===!0&&n&&r?!0:void 0,url:o});return!i||Array.isArray(i)||Object.keys(i).length===0?null:i}function go(e,t){let o=At(e,t),n={"@type":"PropertyValue",value:e.id};return o&&(n.name=o),n}function fo(e,t){let o=At(e,t);if(!o)return null;let n={"@type":"Organization",name:o},r=e.company?.website??null,i=r?U(r):null;i&&(n.sameAs=i);let a=e.company?.logoUrl??t.logoUrl??null;return a&&(n.logo=a),n}function U(e){let t=e.trim();return t?/^https?:\/\//i.test(t)?t:`https://${t}`:null}function ho(e){let t=e.salaryCurrency?.trim(),o=typeof e.salaryMin=="number",n=typeof e.salaryMax=="number";if(!t||!o&&!n)return null;let r={"@type":"QuantitativeValue"};o&&(r.minValue=e.salaryMin),n&&(r.maxValue=e.salaryMax);let i=e.salaryTimeframe?yo[e.salaryTimeframe]:void 0;return i&&(r.unitText=i),!o&&n&&typeof e.salaryMax=="number"?(r.value=e.salaryMax,r.minValue=e.salaryMax):!n&&o&&typeof e.salaryMin=="number"&&(r.value=e.salaryMin,r.maxValue=e.salaryMin),{"@type":"MonetaryAmount",currency:t.toUpperCase(),value:r}}function bo(e){let t=e.officeLocations.map(o=>So({countryCode:o.countryCode,region:o.region,locality:o.city??o.locality,postalCode:o.postalCode,name:o.displayName})).filter(o=>o!==null);return t.length===0?null:t.length===1?t[0]:t}function So({countryCode:e,region:t,locality:o,postalCode:n,name:r}){let i={"@type":"PostalAddress"},a=e?.trim(),s=t?.trim(),p=o?.trim(),l=n?.trim(),u=r?.trim();a&&(i.addressCountry=a.toUpperCase()),s&&(i.addressRegion=s),p&&(i.addressLocality=p),l&&(i.postalCode=l);let d=Object.keys(i).length>1;if(!d&&!u)return null;let m={"@type":"Place"};return u&&(m.name=u),d&&(m.address=i),m}function Co(e){if(e.remoteWorldwide)return se.map(n=>({"@type":"Country",name:n}));let t=[],o=new Set;for(let n of e.remoteWorkPermitCountryCodes??[]){let r=n?.trim().toUpperCase();!r||o.has(r)||(o.add(r),t.push({"@type":"Country",name:r}))}for(let n of e.remoteWorkPermitSubdivisionCodes??[]){let r=n?.split("-")[0]?.trim().toUpperCase();!r||o.has(r)||(o.add(r),t.push({"@type":"Country",name:r}))}return t.length===0?null:t.length===1?t[0]:t}function Oo(e){let t=e.educationRequirements;if(!t||t.length===0)return null;if(t.includes("no_requirements"))return"no requirements";let o=t.filter(n=>n in vt).map(n=>({"@type":"EducationalOccupationalCredential",credentialCategory:vt[n]}));return o.length>0?o:null}function Eo(e){let t=e.experienceMonths;return typeof t!="number"?null:t===0?"no requirements":{"@type":"OccupationalExperienceRequirements",monthsOfExperience:t}}function Bt(e){if(!e)return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString()}function ae(e){let t=o=>o==null?!1:Array.isArray(o)?o.length>0:typeof o=="object"?Object.keys(o).length>0:!0;if(Array.isArray(e))return e.map(o=>ae(o)).filter(t);if(e&&typeof e=="object"){let o=Object.entries(e).map(([n,r])=>[n,ae(r)]).filter(([,n])=>t(n));return Object.fromEntries(o)}return e}var pe={};_(pe,{BOARD_PATHS:()=>V,blogAuthorPath:()=>_o,blogPostPath:()=>It,blogTagPath:()=>xt,boardUrl:()=>K,companyMarketPath:()=>Ft,companyPath:()=>Lt,companySalaryPath:()=>vo,encodePathSegment:()=>h,goAlertsConfirmPath:()=>Fo,goAlertsManagePath:()=>Lo,goJobPath:()=>To,jobDetailPath:()=>le,jobsCategoryPath:()=>G,jobsLocationCategoryPath:()=>H,jobsLocationPath:()=>M,jobsLocationSkillPath:()=>Tt,jobsSkillPath:()=>_t,salaryLocationPath:()=>Ro,salarySkillPath:()=>Ao,salaryTitlePath:()=>Bo,suggestionPath:()=>Po});function h(e){try{return encodeURIComponent(decodeURIComponent(e)).replace(/%3A/gi,":")}catch{return encodeURIComponent(e).replace(/%3A/gi,":")}}function le(e,t){return`/companies/${h(e)}/jobs/${h(t)}`}function G(e){return`/jobs/${h(e)}`}function _t(e){return`/jobs/skills/${h(e)}`}function M(e){return`/jobs/locations/${h(e)}`}function H(e,t){return`${M(e)}/${h(t)}`}function Tt(e,t){return`${M(e)}/skills/${h(t)}`}function Lt(e){return`/companies/${h(e)}`}function Ft(e){return`/companies/markets/${h(e)}`}function Po(e,t){let o=t.location?.trim()||void 0;return t.scope==="blog"?e.type==="post"?It(e.slug):e.type==="tag"?xt(e.slug):null:t.scope==="jobs"?e.type==="company"||e.type==="market"||e.type==="post"||e.type==="tag"?null:e.termType==="skill"?o?Tt(o,e.canonicalSlug):_t(e.canonicalSlug):o?H(o,e.canonicalSlug):G(e.canonicalSlug):e.type==="company"?Lt(e.slug):e.type==="market"?Ft(e.slug):null}function vo(e){return`/companies/${h(e)}/salaries`}function Bo(e){return`/salaries/titles/${h(e)}`}function Ao(e){return`/salaries/skills/${h(e)}`}function Ro(e){return`/salaries/locations/${h(e)}`}function It(e){return`/blog/${h(e)}`}function xt(e){return`/blog/tag/${h(e)}`}function _o(e){return`/blog/author/${h(e)}`}var V={home:"/",jobs:"/jobs",companies:"/companies",salaries:"/salaries",salaryCompanies:"/salaries/companies",salaryTitles:"/salaries/titles",salarySkills:"/salaries/skills",salaryLocations:"/salaries/locations",blog:"/blog",about:"/about",privacyPolicy:"/privacy-policy",termsOfService:"/terms-of-service",cookiePolicy:"/cookie-policy",impressum:"/impressum",talent:"/talent",employers:"/employers",alertsManage:"/alerts/manage",alertsConfirm:"/alerts/confirm"};function To(e){return`/go/job/${e}`}function Lo(){return"/go/alerts-manage"}function Fo(){return"/go/alerts-confirm"}function K(e,t){return`${e.replace(/\/+$/,"")}${t}`}function kt(e,t={}){let o=e.map(r=>{let i=r.label?.trim();return i?{name:i,href:r.href?.trim()??null}:null}).filter(r=>!!r);return o.length<2?null:{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:o.map((r,i)=>{let a=r.href?Io(r.href,t.origin??null):null,s={"@type":"ListItem",position:i+1,name:r.name};return a&&(s.item=a),s})}}function Io(e,t){if(xo(e))return e;if(!t)return null;let o=e.startsWith("/")?e:`/${e}`;return`${t}${o}`}function xo(e){return/^https?:\/\//i.test(e)}function Y(e){let t=[{kind:"home",path:V.home},{kind:"jobs",path:V.jobs}],o=null;for(let r of e.placeHierarchy)o=r.slug,t.push({kind:"place",name:r.name,path:M(r.slug)});let n=e.categories[0];return n&&t.push({kind:"category",name:n.name,path:o?H(o,n.slug):G(n.slug)}),t.push({kind:"job",name:e.title}),t}var W=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"];function ko(e){try{return new Intl.DisplayNames([e],{type:"region"})}catch{return null}}function Uo(e){try{return new Intl.Collator(e)}catch{return new Intl.Collator}}function Ut(e){let t=S(e);if(!t)return W.map(r=>({code:r,name:r})).sort((r,i)=>r.code<i.code?-1:r.code>i.code?1:0);let o=ko(t),n=Uo(t).compare;return W.map(r=>({code:r,name:o?.of(r)??r})).sort((r,i)=>n(r.name,i.name))}function Mo(e,t){if(!Array.isArray(t)||t.length===0)return null;let o=t.map(n=>e.options?.find(r=>r.key===n)?.label).filter(n=>!!n);return o.length>0?o:null}function Jo(e,t){switch(e.type){case"number":return null;case"multi_select":return null;case"single_select":return typeof t!="string"?null:e.options?.find(o=>o.key===t)?.label??null;default:return typeof t=="string"&&t.trim()!==""?t:null}}function Mt(e,t,o){let n=[];for(let r of t??[]){let i=o?.[r.key];if(r.type==="boolean"){typeof i=="boolean"&&n.push({key:r.key,label:r.label,kind:"boolean",value:i});continue}if(r.type==="number"){typeof i=="number"&&Number.isFinite(i)&&n.push({key:r.key,label:r.label,kind:"number",value:i});continue}if(r.type==="multi_select"){let s=Mo(r,i);s&&n.push({key:r.key,label:r.label,kind:"multi_select",values:s});continue}let a=Jo(r,i);a!==null&&n.push({key:r.key,label:r.label,kind:"text",value:a})}return n}var ue={};_(ue,{ALL_COUNTRY_CODES:()=>se,SENIORITY_ORDER:()=>D,buildJobBreadcrumbs:()=>Y,buildSalaryFaq:()=>ft,companyCategorySalaryJsonLd:()=>Pt,companySalaryJsonLd:()=>Et,createAuthorProfileJsonLd:()=>wt,createBlogArticleJsonLd:()=>Jt,createBreadcrumbJsonLd:()=>kt,createJobPostingJsonLd:()=>Rt,crossAxisSalaryJsonLd:()=>Ot,faqJsonLd:()=>ht,formatSalaryStat:()=>j,formatSalaryStatRange:()=>x,itemListJsonLd:()=>q,listingHead:()=>Nt,listingJsonLd:()=>$t,locationSalaryJsonLd:()=>Ct,normalizeWebsiteUrl:()=>U,skillSalaryJsonLd:()=>St,sortBySeniority:()=>gt,titleSalaryJsonLd:()=>bt});function Jt({post:e,boardName:t,permalink:o,ogImageUrl:n}){let r={"@context":"https://schema.org","@type":"Article",headline:e.title,url:o,mainEntityOfPage:{"@type":"WebPage","@id":o},publisher:{"@type":"Organization",name:t}};e.customExcerpt&&(r.description=e.customExcerpt),e.publishedAt&&(r.datePublished=e.publishedAt);let i=e.coverUrl??n;i&&(r.image=i);let a=e.authors[0];return a&&(r.author={"@type":"Person",name:a.name,...a.websiteUrl?{url:a.websiteUrl}:{}}),r}function wt({author:e,canonical:t,description:o,origin:n,posts:r,totalPosts:i}){if(!e.name)return null;let a=o.trim(),s=[z(e.websiteUrl),z(e.twitterUrl),z(e.linkedinUrl),z(e.githubUrl)].filter(m=>!!m),p=`${t}#profile`,l=r.slice(0,5).map(m=>{let y=wo(n,`/blog/${m.slug}`);return y?{"@type":"Article",headline:m.title,url:y,datePublished:m.publishedAt,author:{"@id":p}}:null}).filter(m=>m!==null),u=i>0?{"@type":"InteractionCounter",interactionType:"https://schema.org/WriteAction",userInteractionCount:i}:void 0,d={"@context":"https://schema.org","@type":"ProfilePage",url:t,mainEntity:{"@type":"Person","@id":p,name:e.name,alternateName:e.slug??void 0,identifier:e.id??void 0,description:a||void 0,image:e.avatarUrl??void 0,sameAs:s.length>0?s:void 0,url:t,mainEntityOfPage:t,agentInteractionStatistic:u}};return l.length>0&&(d.hasPart=l),d}function z(e){if(!e)return null;let t=e.trim();if(!t)return null;try{let o=t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`;return new URL(o).toString()}catch{return null}}function wo(e,t){if(!e||!t)return null;try{return new URL(t,e).toString()}catch{return null}}function Nt(e){let t=e.title,o=e.description,n=`${e.origin}${e.path}`;return{meta:[{title:t},{name:"description",content:o},{property:"og:title",content:t},{property:"og:description",content:o},{property:"og:type",content:"website"},{property:"og:url",content:n}],links:[{rel:"canonical",href:n}]}}function $t(e){let t=[];e.breadcrumbs.length>=2&&t.push({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.breadcrumbs.map((n,r)=>({"@type":"ListItem",position:r+1,name:n.name,...n.path?{item:K(e.origin,n.path)}:{}}))});let o=(e.jobs??[]).filter(n=>n.company!=null&&!!n.company.slug);return o.length>0&&t.push({"@context":"https://schema.org","@type":"ItemList",itemListElement:o.map((n,r)=>({"@type":"ListItem",position:r+1,url:K(e.origin,le(n.company.slug,n.slug))}))}),t}var me={};_(me,{createSuggestController:()=>Do});function No(e){return typeof DOMException<"u"&&e instanceof DOMException&&e.name==="AbortError"||e instanceof Error&&e.name==="AbortError"}function $o(e){try{let t=0;for(let o of new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(e))t+=1;return t}catch{return[...e].length}}function Dt(e,t){return t.size===0?e.slice():e.filter(o=>!(o.type==="company"&&t.has(o.slug.toLowerCase().normalize("NFC"))))}function Do(e,t){let o=t?.minChars??2,n=t?.debounceMs??250,r=t?.limit,i=!1,a={query:"",items:[],status:"idle",error:null},s=[],p=new Set,l=0,u=null,d=null,m=new Set;function y(){for(let c of m)c()}function g(c){a=c,y()}function C(){u!==null&&(globalThis.clearTimeout(u),u=null)}function f(){d&&(d.abort(),d=null)}function v(c){let b=++l;f();let O=new AbortController;d=O;let R={q:c};r!==void 0&&(R.limit=r),e.search.suggest(R,{signal:O.signal}).then(B=>{i||b!==l||(d=null,s=B.items,g({query:a.query,items:Dt(s,p),status:"ready",error:null}))}).catch(B=>{i||b!==l||No(B)||(d=null,g({query:a.query,items:a.items,status:"error",error:B}))})}return{setQuery(c){if(i)return;let b=c.trim();if(C(),$o(b)<o){l+=1,f(),s=[],g({query:c,items:[],status:"idle",error:null});return}l+=1,f(),g({query:c,items:a.items,status:"loading",error:null}),u=globalThis.setTimeout(()=>{u=null,!i&&v(b)},n)},setExcludedCompanySlugs(c){i||(p=new Set(c.map(b=>b.trim().toLowerCase().normalize("NFC")).filter(Boolean)),g({query:a.query,items:Dt(s,p),status:a.status,error:a.error}))},getState(){return a},subscribe(c){return i?()=>{}:(m.add(c),()=>{m.delete(c)})},dispose(){i||(i=!0,C(),f(),l+=1,m.clear())}}}return Vt(jo);})();
|
|
@@ -104,6 +104,7 @@ var BOARD_API_ERROR_CODES = [
|
|
|
104
104
|
"employer_ats_unprocessable",
|
|
105
105
|
"employer_checkout_failed",
|
|
106
106
|
"employer_company_exists",
|
|
107
|
+
"employer_free_email_website",
|
|
107
108
|
"employer_company_name_taken",
|
|
108
109
|
"employer_company_not_found",
|
|
109
110
|
"employer_job_not_found",
|
|
@@ -194,6 +195,9 @@ function isRateLimited(e) {
|
|
|
194
195
|
function isConflict(e) {
|
|
195
196
|
return isBoardApiError(e) && e.status === 409;
|
|
196
197
|
}
|
|
198
|
+
function isFreeEmailWebsiteError(e) {
|
|
199
|
+
return isBoardApiError(e) && e.status === 422 && e.code === "employer_free_email_website";
|
|
200
|
+
}
|
|
197
201
|
|
|
198
202
|
export {
|
|
199
203
|
BOARD_API_ERROR_CODES,
|
|
@@ -205,5 +209,6 @@ export {
|
|
|
205
209
|
isForbidden,
|
|
206
210
|
isValidationError,
|
|
207
211
|
isRateLimited,
|
|
208
|
-
isConflict
|
|
212
|
+
isConflict,
|
|
213
|
+
isFreeEmailWebsiteError
|
|
209
214
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -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_account_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", "membership_required", "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", "candidate_paywall_access_required", "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_account_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_free_email_website", "employer_company_name_taken", "employer_company_not_found", "employer_job_not_found", "employer_job_slug_taken", "employer_jobs_quota_exceeded", "membership_required", "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", "candidate_paywall_access_required", "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.
|
|
@@ -80,6 +80,13 @@ declare function isForbidden(e: unknown): e is BoardApiError;
|
|
|
80
80
|
declare function isValidationError(e: unknown): e is BoardApiError;
|
|
81
81
|
declare function isRateLimited(e: unknown): e is BoardApiError;
|
|
82
82
|
declare function isConflict(e: unknown): e is BoardApiError;
|
|
83
|
+
/**
|
|
84
|
+
* Create/update rejected because the company website is a free / consumer
|
|
85
|
+
* email provider domain (`employer_free_email_website`). Distinct from a
|
|
86
|
+
* generic 409 conflict — callers should prompt for a real company website
|
|
87
|
+
* (or omit website), not retry the same domain.
|
|
88
|
+
*/
|
|
89
|
+
declare function isFreeEmailWebsiteError(e: unknown): e is BoardApiError;
|
|
83
90
|
|
|
84
91
|
/** The minimal page shape every v1 list/search envelope satisfies. */
|
|
85
92
|
interface PageShape {
|
|
@@ -143,7 +150,7 @@ declare function paginate<Q extends Record<string, unknown>, P extends PageShape
|
|
|
143
150
|
* constant because the package is platform-neutral and cannot read
|
|
144
151
|
* package.json at runtime.
|
|
145
152
|
*/
|
|
146
|
-
declare const SDK_VERSION = "4.21.
|
|
153
|
+
declare const SDK_VERSION = "4.21.1";
|
|
147
154
|
|
|
148
155
|
type SavedJob = Schemas['SavedJob'];
|
|
149
156
|
type SavedJobsListQuery = {
|
|
@@ -3504,4 +3511,4 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
3504
3511
|
};
|
|
3505
3512
|
type BoardSdk = ReturnType<typeof createBoardClient>;
|
|
3506
3513
|
|
|
3507
|
-
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 BoardSitemapBucketSummary, type BoardSitemapIndex, 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 SitemapEntriesEnvelope, type SitemapEntriesQuery, type SitemapEntry, 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 };
|
|
3514
|
+
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 BoardSitemapBucketSummary, type BoardSitemapIndex, 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 SitemapEntriesEnvelope, type SitemapEntriesQuery, type SitemapEntry, 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, isFreeEmailWebsiteError, isNotFound, isOwnMessage, isRateLimited, isSafeApplicationUrl, isUnauthorized, isValidationError, lastOwnMessageId, paginate, resolveApplyAction, resolveApplyDecision };
|
package/dist/index.d.ts
CHANGED
|
@@ -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_account_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", "membership_required", "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", "candidate_paywall_access_required", "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_account_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_free_email_website", "employer_company_name_taken", "employer_company_not_found", "employer_job_not_found", "employer_job_slug_taken", "employer_jobs_quota_exceeded", "membership_required", "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", "candidate_paywall_access_required", "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.
|
|
@@ -80,6 +80,13 @@ declare function isForbidden(e: unknown): e is BoardApiError;
|
|
|
80
80
|
declare function isValidationError(e: unknown): e is BoardApiError;
|
|
81
81
|
declare function isRateLimited(e: unknown): e is BoardApiError;
|
|
82
82
|
declare function isConflict(e: unknown): e is BoardApiError;
|
|
83
|
+
/**
|
|
84
|
+
* Create/update rejected because the company website is a free / consumer
|
|
85
|
+
* email provider domain (`employer_free_email_website`). Distinct from a
|
|
86
|
+
* generic 409 conflict — callers should prompt for a real company website
|
|
87
|
+
* (or omit website), not retry the same domain.
|
|
88
|
+
*/
|
|
89
|
+
declare function isFreeEmailWebsiteError(e: unknown): e is BoardApiError;
|
|
83
90
|
|
|
84
91
|
/** The minimal page shape every v1 list/search envelope satisfies. */
|
|
85
92
|
interface PageShape {
|
|
@@ -143,7 +150,7 @@ declare function paginate<Q extends Record<string, unknown>, P extends PageShape
|
|
|
143
150
|
* constant because the package is platform-neutral and cannot read
|
|
144
151
|
* package.json at runtime.
|
|
145
152
|
*/
|
|
146
|
-
declare const SDK_VERSION = "4.21.
|
|
153
|
+
declare const SDK_VERSION = "4.21.1";
|
|
147
154
|
|
|
148
155
|
type SavedJob = Schemas['SavedJob'];
|
|
149
156
|
type SavedJobsListQuery = {
|
|
@@ -3504,4 +3511,4 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
3504
3511
|
};
|
|
3505
3512
|
type BoardSdk = ReturnType<typeof createBoardClient>;
|
|
3506
3513
|
|
|
3507
|
-
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 BoardSitemapBucketSummary, type BoardSitemapIndex, 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 SitemapEntriesEnvelope, type SitemapEntriesQuery, type SitemapEntry, 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 };
|
|
3514
|
+
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 BoardSitemapBucketSummary, type BoardSitemapIndex, 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 SitemapEntriesEnvelope, type SitemapEntriesQuery, type SitemapEntry, 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, isFreeEmailWebsiteError, isNotFound, isOwnMessage, isRateLimited, isSafeApplicationUrl, isUnauthorized, isValidationError, lastOwnMessageId, paginate, resolveApplyAction, resolveApplyDecision };
|
package/dist/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __export(src_exports, {
|
|
|
33
33
|
isColdRule: () => isColdRule,
|
|
34
34
|
isConflict: () => isConflict,
|
|
35
35
|
isForbidden: () => isForbidden,
|
|
36
|
+
isFreeEmailWebsiteError: () => isFreeEmailWebsiteError,
|
|
36
37
|
isNotFound: () => isNotFound,
|
|
37
38
|
isOwnMessage: () => isOwnMessage,
|
|
38
39
|
isRateLimited: () => isRateLimited,
|
|
@@ -152,6 +153,7 @@ var BOARD_API_ERROR_CODES = [
|
|
|
152
153
|
"employer_ats_unprocessable",
|
|
153
154
|
"employer_checkout_failed",
|
|
154
155
|
"employer_company_exists",
|
|
156
|
+
"employer_free_email_website",
|
|
155
157
|
"employer_company_name_taken",
|
|
156
158
|
"employer_company_not_found",
|
|
157
159
|
"employer_job_not_found",
|
|
@@ -242,6 +244,9 @@ function isRateLimited(e) {
|
|
|
242
244
|
function isConflict(e) {
|
|
243
245
|
return isBoardApiError(e) && e.status === 409;
|
|
244
246
|
}
|
|
247
|
+
function isFreeEmailWebsiteError(e) {
|
|
248
|
+
return isBoardApiError(e) && e.status === 422 && e.code === "employer_free_email_website";
|
|
249
|
+
}
|
|
245
250
|
|
|
246
251
|
// src/query.ts
|
|
247
252
|
function toSearchParams(query) {
|
|
@@ -350,7 +355,7 @@ async function clearSession(storage) {
|
|
|
350
355
|
}
|
|
351
356
|
|
|
352
357
|
// src/version.ts
|
|
353
|
-
var SDK_VERSION = "4.21.
|
|
358
|
+
var SDK_VERSION = "4.21.1";
|
|
354
359
|
|
|
355
360
|
// src/client.ts
|
|
356
361
|
function isRawBody(body) {
|
package/dist/index.mjs
CHANGED
|
@@ -16,11 +16,12 @@ import {
|
|
|
16
16
|
isBoardPasswordRequired,
|
|
17
17
|
isConflict,
|
|
18
18
|
isForbidden,
|
|
19
|
+
isFreeEmailWebsiteError,
|
|
19
20
|
isNotFound,
|
|
20
21
|
isRateLimited,
|
|
21
22
|
isUnauthorized,
|
|
22
23
|
isValidationError
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-LWJOSIXX.mjs";
|
|
24
25
|
|
|
25
26
|
// src/query.ts
|
|
26
27
|
function toSearchParams(query) {
|
|
@@ -41,7 +42,7 @@ function toSearchParams(query) {
|
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
// src/version.ts
|
|
44
|
-
var SDK_VERSION = "4.21.
|
|
45
|
+
var SDK_VERSION = "4.21.1";
|
|
45
46
|
|
|
46
47
|
// src/client.ts
|
|
47
48
|
function isRawBody(body) {
|
|
@@ -3144,6 +3145,7 @@ export {
|
|
|
3144
3145
|
isColdRule,
|
|
3145
3146
|
isConflict,
|
|
3146
3147
|
isForbidden,
|
|
3148
|
+
isFreeEmailWebsiteError,
|
|
3147
3149
|
isNotFound,
|
|
3148
3150
|
isOwnMessage,
|
|
3149
3151
|
isRateLimited,
|
package/dist/server.mjs
CHANGED
package/dist/sitemap.mjs
CHANGED
package/package.json
CHANGED
package/skills/manifest.json
CHANGED