@cavuno/board 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -930,6 +930,11 @@ interface components {
930
930
  /** Format: email */
931
931
  email: string;
932
932
  };
933
+ JobPostingLogo: {
934
+ /** @enum {string} */
935
+ object: "job_posting_logo";
936
+ publicUrl: string;
937
+ };
933
938
  JobPostingPlan: {
934
939
  /** @enum {string} */
935
940
  object: "job_posting_plan";
@@ -2746,7 +2751,7 @@ declare function isConflict(e: unknown): e is BoardApiError;
2746
2751
  * constant because the package is platform-neutral and cannot read
2747
2752
  * package.json at runtime.
2748
2753
  */
2749
- declare const SDK_VERSION = "1.13.0";
2754
+ declare const SDK_VERSION = "1.14.0";
2750
2755
 
2751
2756
  type BoardUser = Schemas['BoardUser'];
2752
2757
  type BoardAuthSession = Schemas['BoardAuthSession'];
@@ -2954,6 +2959,11 @@ type CreateJobPostingInput = Schemas['CreateJobPostingBody'];
2954
2959
  * `invoice_sent`. A rejected submission throws a `BoardApiError` instead.
2955
2960
  */
2956
2961
  type JobPostingResult = Schemas['JobPostingResult'];
2962
+ /**
2963
+ * The result of `uploadLogo()` / `fetchLogoByDomain()`: a stored logo whose
2964
+ * `publicUrl` you pass back as `submission.logoUrl` on `create(...)`.
2965
+ */
2966
+ type JobPostingLogoResult = Schemas['JobPostingLogo'];
2957
2967
  type JobPostingBillingCheck = Schemas['JobPostingBillingCheck'];
2958
2968
  type JobPostingBillingVerification = Schemas['JobPostingBillingVerification'];
2959
2969
  type JobPostingBillingOptions = Schemas['JobPostingBillingOptions'];
@@ -3664,6 +3674,14 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
3664
3674
  status: "invoice_sent";
3665
3675
  jobId: string;
3666
3676
  }>;
3677
+ uploadLogo(file: Blob, options?: FetchOptions): Promise<{
3678
+ object: "job_posting_logo";
3679
+ publicUrl: string;
3680
+ }>;
3681
+ fetchLogoByDomain(domain: string, options?: FetchOptions): Promise<{
3682
+ object: "job_posting_logo";
3683
+ publicUrl: string;
3684
+ }>;
3667
3685
  checkBilling(input: {
3668
3686
  email: string;
3669
3687
  }, options?: FetchOptions): Promise<{
@@ -4146,4 +4164,4 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
4146
4164
  };
4147
4165
  type BoardSdk = ReturnType<typeof createBoardClient>;
4148
4166
 
4149
- export { ACCESS_TOKEN_KEY, type Awaitable, BOARD_ACCESS_GRANT_KEY, type BlogAuthorEmbed, type BlogPostsListQuery, type BlogSearchBody, type BlogSimilarQuery, type BlogTagEmbed, type BoardAccessGrant, BoardApiError, type BoardAuthSession, BoardClient, type BoardRequest, type BoardSdk, type BoardSeo, type BoardUser, type CompaniesListQuery, type CompaniesSearchBody, type CompanyJobsListQuery, type CompanyListEnvelope, type CompanyMarket, type CompanyMarketRef, type CompanyMarketsListQuery, type CompanySimilarQuery, type CreateBoardClientOptions, type CreateJobPostingInput, type CustomStorage, type EducationRequirement, type EmbedJobsQuery, type EmploymentType, type FetchOptions, type ForgotPasswordBody, 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, type JobCardListEnvelope, type JobCardSearchEnvelope, type JobCompany, type JobPostingBillingCheck, type JobPostingBillingOptions, type JobPostingBillingVerification, type JobPostingPlan, type JobPostingResult, type JobPostingSubscriptionEntitlements, type JobsListQuery, type JobsSearchBody, type LegalEntity, type LegalPageType, type ListEnvelope, type LocationSalaryDetail, type LocationSkillsIndex, type LocationTitlesIndex, type Logger, type LoginBody, type LogoutBody, type OfficeLocation, type PlacesListQuery, type PublicBlogAdjacentPosts, type PublicBlogAuthor, type PublicBlogPost, type PublicBlogPostSummary, type PublicBlogTag, type PublicBoard, type PublicBoardAnalytics, type PublicBoardFeatures, type PublicBoardTheme, type PublicCompany, type PublicCompanyDetail, type PublicJob, type PublicJobCard, type PublicLegalPage, type PublicPlace, REFRESH_TOKEN_KEY, type RedirectResolution, type RefreshBody, type RegisterBody, type RelatedSearch, type RemoteOption, type RemotePermit, type RemoteTimezone, type ResetPasswordBody, SDK_VERSION, type SalaryCompany, type SalaryDetailQuery, type SalaryLocation, type SalarySkill, type SalaryTitle, type SaveJobBody, type SavedJob, type SavedJobsListQuery, type SearchEnvelope, type Seniority, type SkillLocationSalary, type SkillLocationsIndex, type SkillSalaryDetail, type StorageMode, type StorefrontPagination, type TaxonomyGeo, type TaxonomyResolution, type TitleLocationSalary, type TitleLocationsIndex, type TitleSalaryDetail, type VerifyEmailBody, createBoardClient, isBoardApiError, isBoardPasswordRequired, isConflict, isForbidden, isNotFound, isRateLimited, isUnauthorized, isValidationError };
4167
+ export { ACCESS_TOKEN_KEY, type Awaitable, BOARD_ACCESS_GRANT_KEY, type BlogAuthorEmbed, type BlogPostsListQuery, type BlogSearchBody, type BlogSimilarQuery, type BlogTagEmbed, type BoardAccessGrant, BoardApiError, type BoardAuthSession, BoardClient, type BoardRequest, type BoardSdk, type BoardSeo, type BoardUser, type CompaniesListQuery, type CompaniesSearchBody, type CompanyJobsListQuery, type CompanyListEnvelope, type CompanyMarket, type CompanyMarketRef, type CompanyMarketsListQuery, type CompanySimilarQuery, type CreateBoardClientOptions, type CreateJobPostingInput, type CustomStorage, type EducationRequirement, type EmbedJobsQuery, type EmploymentType, type FetchOptions, type ForgotPasswordBody, 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, type JobCardListEnvelope, type JobCardSearchEnvelope, type JobCompany, type JobPostingBillingCheck, type JobPostingBillingOptions, type JobPostingBillingVerification, type JobPostingLogoResult, type JobPostingPlan, type JobPostingResult, type JobPostingSubscriptionEntitlements, type JobsListQuery, type JobsSearchBody, type LegalEntity, type LegalPageType, type ListEnvelope, type LocationSalaryDetail, type LocationSkillsIndex, type LocationTitlesIndex, type Logger, type LoginBody, type LogoutBody, type OfficeLocation, type PlacesListQuery, type PublicBlogAdjacentPosts, type PublicBlogAuthor, type PublicBlogPost, type PublicBlogPostSummary, type PublicBlogTag, type PublicBoard, type PublicBoardAnalytics, type PublicBoardFeatures, type PublicBoardTheme, type PublicCompany, type PublicCompanyDetail, type PublicJob, type PublicJobCard, type PublicLegalPage, type PublicPlace, REFRESH_TOKEN_KEY, type RedirectResolution, type RefreshBody, type RegisterBody, type RelatedSearch, type RemoteOption, type RemotePermit, type RemoteTimezone, type ResetPasswordBody, SDK_VERSION, type SalaryCompany, type SalaryDetailQuery, type SalaryLocation, type SalarySkill, type SalaryTitle, type SaveJobBody, type SavedJob, type SavedJobsListQuery, type SearchEnvelope, type Seniority, type SkillLocationSalary, type SkillLocationsIndex, type SkillSalaryDetail, type StorageMode, type StorefrontPagination, type TaxonomyGeo, type TaxonomyResolution, type TitleLocationSalary, type TitleLocationsIndex, type TitleSalaryDetail, type VerifyEmailBody, createBoardClient, isBoardApiError, isBoardPasswordRequired, isConflict, isForbidden, isNotFound, isRateLimited, isUnauthorized, isValidationError };
package/dist/index.d.ts CHANGED
@@ -930,6 +930,11 @@ interface components {
930
930
  /** Format: email */
931
931
  email: string;
932
932
  };
933
+ JobPostingLogo: {
934
+ /** @enum {string} */
935
+ object: "job_posting_logo";
936
+ publicUrl: string;
937
+ };
933
938
  JobPostingPlan: {
934
939
  /** @enum {string} */
935
940
  object: "job_posting_plan";
@@ -2746,7 +2751,7 @@ declare function isConflict(e: unknown): e is BoardApiError;
2746
2751
  * constant because the package is platform-neutral and cannot read
2747
2752
  * package.json at runtime.
2748
2753
  */
2749
- declare const SDK_VERSION = "1.13.0";
2754
+ declare const SDK_VERSION = "1.14.0";
2750
2755
 
2751
2756
  type BoardUser = Schemas['BoardUser'];
2752
2757
  type BoardAuthSession = Schemas['BoardAuthSession'];
@@ -2954,6 +2959,11 @@ type CreateJobPostingInput = Schemas['CreateJobPostingBody'];
2954
2959
  * `invoice_sent`. A rejected submission throws a `BoardApiError` instead.
2955
2960
  */
2956
2961
  type JobPostingResult = Schemas['JobPostingResult'];
2962
+ /**
2963
+ * The result of `uploadLogo()` / `fetchLogoByDomain()`: a stored logo whose
2964
+ * `publicUrl` you pass back as `submission.logoUrl` on `create(...)`.
2965
+ */
2966
+ type JobPostingLogoResult = Schemas['JobPostingLogo'];
2957
2967
  type JobPostingBillingCheck = Schemas['JobPostingBillingCheck'];
2958
2968
  type JobPostingBillingVerification = Schemas['JobPostingBillingVerification'];
2959
2969
  type JobPostingBillingOptions = Schemas['JobPostingBillingOptions'];
@@ -3664,6 +3674,14 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
3664
3674
  status: "invoice_sent";
3665
3675
  jobId: string;
3666
3676
  }>;
3677
+ uploadLogo(file: Blob, options?: FetchOptions): Promise<{
3678
+ object: "job_posting_logo";
3679
+ publicUrl: string;
3680
+ }>;
3681
+ fetchLogoByDomain(domain: string, options?: FetchOptions): Promise<{
3682
+ object: "job_posting_logo";
3683
+ publicUrl: string;
3684
+ }>;
3667
3685
  checkBilling(input: {
3668
3686
  email: string;
3669
3687
  }, options?: FetchOptions): Promise<{
@@ -4146,4 +4164,4 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
4146
4164
  };
4147
4165
  type BoardSdk = ReturnType<typeof createBoardClient>;
4148
4166
 
4149
- export { ACCESS_TOKEN_KEY, type Awaitable, BOARD_ACCESS_GRANT_KEY, type BlogAuthorEmbed, type BlogPostsListQuery, type BlogSearchBody, type BlogSimilarQuery, type BlogTagEmbed, type BoardAccessGrant, BoardApiError, type BoardAuthSession, BoardClient, type BoardRequest, type BoardSdk, type BoardSeo, type BoardUser, type CompaniesListQuery, type CompaniesSearchBody, type CompanyJobsListQuery, type CompanyListEnvelope, type CompanyMarket, type CompanyMarketRef, type CompanyMarketsListQuery, type CompanySimilarQuery, type CreateBoardClientOptions, type CreateJobPostingInput, type CustomStorage, type EducationRequirement, type EmbedJobsQuery, type EmploymentType, type FetchOptions, type ForgotPasswordBody, 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, type JobCardListEnvelope, type JobCardSearchEnvelope, type JobCompany, type JobPostingBillingCheck, type JobPostingBillingOptions, type JobPostingBillingVerification, type JobPostingPlan, type JobPostingResult, type JobPostingSubscriptionEntitlements, type JobsListQuery, type JobsSearchBody, type LegalEntity, type LegalPageType, type ListEnvelope, type LocationSalaryDetail, type LocationSkillsIndex, type LocationTitlesIndex, type Logger, type LoginBody, type LogoutBody, type OfficeLocation, type PlacesListQuery, type PublicBlogAdjacentPosts, type PublicBlogAuthor, type PublicBlogPost, type PublicBlogPostSummary, type PublicBlogTag, type PublicBoard, type PublicBoardAnalytics, type PublicBoardFeatures, type PublicBoardTheme, type PublicCompany, type PublicCompanyDetail, type PublicJob, type PublicJobCard, type PublicLegalPage, type PublicPlace, REFRESH_TOKEN_KEY, type RedirectResolution, type RefreshBody, type RegisterBody, type RelatedSearch, type RemoteOption, type RemotePermit, type RemoteTimezone, type ResetPasswordBody, SDK_VERSION, type SalaryCompany, type SalaryDetailQuery, type SalaryLocation, type SalarySkill, type SalaryTitle, type SaveJobBody, type SavedJob, type SavedJobsListQuery, type SearchEnvelope, type Seniority, type SkillLocationSalary, type SkillLocationsIndex, type SkillSalaryDetail, type StorageMode, type StorefrontPagination, type TaxonomyGeo, type TaxonomyResolution, type TitleLocationSalary, type TitleLocationsIndex, type TitleSalaryDetail, type VerifyEmailBody, createBoardClient, isBoardApiError, isBoardPasswordRequired, isConflict, isForbidden, isNotFound, isRateLimited, isUnauthorized, isValidationError };
4167
+ export { ACCESS_TOKEN_KEY, type Awaitable, BOARD_ACCESS_GRANT_KEY, type BlogAuthorEmbed, type BlogPostsListQuery, type BlogSearchBody, type BlogSimilarQuery, type BlogTagEmbed, type BoardAccessGrant, BoardApiError, type BoardAuthSession, BoardClient, type BoardRequest, type BoardSdk, type BoardSeo, type BoardUser, type CompaniesListQuery, type CompaniesSearchBody, type CompanyJobsListQuery, type CompanyListEnvelope, type CompanyMarket, type CompanyMarketRef, type CompanyMarketsListQuery, type CompanySimilarQuery, type CreateBoardClientOptions, type CreateJobPostingInput, type CustomStorage, type EducationRequirement, type EmbedJobsQuery, type EmploymentType, type FetchOptions, type ForgotPasswordBody, 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, type JobCardListEnvelope, type JobCardSearchEnvelope, type JobCompany, type JobPostingBillingCheck, type JobPostingBillingOptions, type JobPostingBillingVerification, type JobPostingLogoResult, type JobPostingPlan, type JobPostingResult, type JobPostingSubscriptionEntitlements, type JobsListQuery, type JobsSearchBody, type LegalEntity, type LegalPageType, type ListEnvelope, type LocationSalaryDetail, type LocationSkillsIndex, type LocationTitlesIndex, type Logger, type LoginBody, type LogoutBody, type OfficeLocation, type PlacesListQuery, type PublicBlogAdjacentPosts, type PublicBlogAuthor, type PublicBlogPost, type PublicBlogPostSummary, type PublicBlogTag, type PublicBoard, type PublicBoardAnalytics, type PublicBoardFeatures, type PublicBoardTheme, type PublicCompany, type PublicCompanyDetail, type PublicJob, type PublicJobCard, type PublicLegalPage, type PublicPlace, REFRESH_TOKEN_KEY, type RedirectResolution, type RefreshBody, type RegisterBody, type RelatedSearch, type RemoteOption, type RemotePermit, type RemoteTimezone, type ResetPasswordBody, SDK_VERSION, type SalaryCompany, type SalaryDetailQuery, type SalaryLocation, type SalarySkill, type SalaryTitle, type SaveJobBody, type SavedJob, type SavedJobsListQuery, type SearchEnvelope, type Seniority, type SkillLocationSalary, type SkillLocationsIndex, type SkillSalaryDetail, type StorageMode, type StorefrontPagination, type TaxonomyGeo, type TaxonomyResolution, type TitleLocationSalary, type TitleLocationsIndex, type TitleSalaryDetail, type VerifyEmailBody, createBoardClient, isBoardApiError, isBoardPasswordRequired, isConflict, isForbidden, isNotFound, isRateLimited, isUnauthorized, isValidationError };
package/dist/index.js CHANGED
@@ -149,7 +149,7 @@ async function clearSession(storage) {
149
149
  }
150
150
 
151
151
  // src/version.ts
152
- var SDK_VERSION = "1.13.0";
152
+ var SDK_VERSION = "1.14.0";
153
153
 
154
154
  // src/client.ts
155
155
  function isRawBody(body) {
@@ -671,6 +671,30 @@ function jobPostingNamespace(client) {
671
671
  body: input
672
672
  });
673
673
  },
674
+ /**
675
+ * Upload a company logo (JPEG/PNG/WebP/GIF, ≤2 MB). Returns the stored
676
+ * `publicUrl` — pass it back as `submission.logoUrl` on `create(...)`.
677
+ */
678
+ uploadLogo(file, options) {
679
+ const form = new FormData();
680
+ form.append("file", file);
681
+ return client.fetch("/job-postings/logo", {
682
+ ...options,
683
+ method: "POST",
684
+ body: form
685
+ });
686
+ },
687
+ /**
688
+ * Look up a company logo by domain via Brandfetch, store it, and return its
689
+ * `publicUrl` — pass it back as `submission.logoUrl` on `create(...)`. A
690
+ * `BoardApiError` (`job_posting_logo_not_found`) means no usable logo.
691
+ */
692
+ fetchLogoByDomain(domain, options) {
693
+ return client.fetch("/job-postings/logo/fetch", {
694
+ ...options,
695
+ query: { domain }
696
+ });
697
+ },
674
698
  /** Does this email already have billing credit on the board? */
675
699
  checkBilling(input, options) {
676
700
  return client.fetch(
package/dist/index.mjs CHANGED
@@ -109,7 +109,7 @@ async function clearSession(storage) {
109
109
  }
110
110
 
111
111
  // src/version.ts
112
- var SDK_VERSION = "1.13.0";
112
+ var SDK_VERSION = "1.14.0";
113
113
 
114
114
  // src/client.ts
115
115
  function isRawBody(body) {
@@ -631,6 +631,30 @@ function jobPostingNamespace(client) {
631
631
  body: input
632
632
  });
633
633
  },
634
+ /**
635
+ * Upload a company logo (JPEG/PNG/WebP/GIF, ≤2 MB). Returns the stored
636
+ * `publicUrl` — pass it back as `submission.logoUrl` on `create(...)`.
637
+ */
638
+ uploadLogo(file, options) {
639
+ const form = new FormData();
640
+ form.append("file", file);
641
+ return client.fetch("/job-postings/logo", {
642
+ ...options,
643
+ method: "POST",
644
+ body: form
645
+ });
646
+ },
647
+ /**
648
+ * Look up a company logo by domain via Brandfetch, store it, and return its
649
+ * `publicUrl` — pass it back as `submission.logoUrl` on `create(...)`. A
650
+ * `BoardApiError` (`job_posting_logo_not_found`) means no usable logo.
651
+ */
652
+ fetchLogoByDomain(domain, options) {
653
+ return client.fetch("/job-postings/logo/fetch", {
654
+ ...options,
655
+ query: { domain }
656
+ });
657
+ },
634
658
  /** Does this email already have billing credit on the board? */
635
659
  checkBilling(input, options) {
636
660
  return client.fetch(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cavuno/board",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "Typed isomorphic client for the Cavuno Board API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.13.0",
2
+ "version": "1.14.0",
3
3
  "skills": [
4
4
  {
5
5
  "name": "cavuno-board-auth",