@cavuno/board 1.11.0 → 1.12.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
@@ -577,6 +577,90 @@ interface components {
577
577
  */
578
578
  status?: "draft" | "published";
579
579
  };
580
+ CreateJobPostingBody: {
581
+ submission: {
582
+ companyName: string;
583
+ companyWebsite?: string;
584
+ contactName: string;
585
+ contactEmail: string;
586
+ title: string;
587
+ description: string;
588
+ employmentType: string;
589
+ remoteOption: string;
590
+ officeLocations: {
591
+ /** @enum {string} */
592
+ provider?: "mapbox";
593
+ providerPlaceId?: string;
594
+ displayName: string;
595
+ countryCode?: string;
596
+ region?: string;
597
+ locality?: string;
598
+ city?: string;
599
+ latitude?: number;
600
+ longitude?: number;
601
+ boundingBox?: number[];
602
+ raw?: {
603
+ suggestion?: {
604
+ [key: string]: unknown;
605
+ };
606
+ retrieve?: {
607
+ [key: string]: unknown;
608
+ };
609
+ };
610
+ }[];
611
+ inOfficePeriod?: string;
612
+ inOfficeFrequency?: number;
613
+ seniority?: string;
614
+ applicationUrl: string;
615
+ salaryRangeEnabled: boolean;
616
+ salaryMin?: number;
617
+ salaryMax?: number;
618
+ salaryTimeframe?: string;
619
+ salaryCurrency?: string;
620
+ selectedPlan?: string;
621
+ isFeatured?: boolean;
622
+ remoteWorkingPermits?: {
623
+ type: string;
624
+ value: string;
625
+ label: string;
626
+ }[];
627
+ remoteTimezones?: {
628
+ type: string;
629
+ value: string;
630
+ label: string;
631
+ plusMinus: number;
632
+ offset?: number;
633
+ }[];
634
+ /** @enum {string} */
635
+ remoteSponsorship?: "yes" | "no" | "unknown";
636
+ customFieldValues?: {
637
+ [key: string]: string | string[] | boolean | number;
638
+ };
639
+ };
640
+ remoteAllowedTzOffsets?: number[];
641
+ remoteWorkPermitCountryCodes?: string[];
642
+ logoUrl?: string;
643
+ selectedBilling?: {
644
+ type: string;
645
+ id?: string;
646
+ planId: string;
647
+ };
648
+ invoiceBilling?: {
649
+ billingName?: string;
650
+ address: {
651
+ line1?: string;
652
+ city?: string;
653
+ postalCode?: string;
654
+ country?: string;
655
+ };
656
+ taxId?: string;
657
+ detailFields?: {
658
+ name: string;
659
+ value: string;
660
+ }[];
661
+ };
662
+ colorMode?: string;
663
+ };
580
664
  CreateTagBody: {
581
665
  /** @description URL-friendly slug for the tag. Auto-generated from `name` when omitted. */
582
666
  slug?: string;
@@ -807,6 +891,60 @@ interface components {
807
891
  /** @description Free-form location string (e.g. `"Berlin, Germany"`, `"Mountain View, California, USA"`). Mapbox parses + ranks candidates server-side; rejects on low confidence. */
808
892
  query: string;
809
893
  };
894
+ JobPostingPlan: {
895
+ /** @enum {string} */
896
+ object: "job_posting_plan";
897
+ id: string;
898
+ name: string;
899
+ description: string | null;
900
+ kind: string;
901
+ /** @enum {string|null} */
902
+ billingInterval: "month" | "year" | null;
903
+ /** @enum {string|null} */
904
+ purpose: "job_posting" | "talent_access" | null;
905
+ isRecommended: boolean;
906
+ displayOrder: number | null;
907
+ invoiceOnly: boolean;
908
+ /** @enum {string|null} */
909
+ publishTiming: "on_issue" | "on_payment" | null;
910
+ netTermsDays: number | null;
911
+ prices: {
912
+ currency: string;
913
+ amountCents: number;
914
+ isActive: boolean;
915
+ }[];
916
+ features: {
917
+ key: string | null;
918
+ value: string | null;
919
+ }[];
920
+ };
921
+ JobPostingResult: {
922
+ /** @enum {string} */
923
+ object: "job_posting_result";
924
+ /** @enum {string} */
925
+ status: "checkout";
926
+ checkoutUrl: string;
927
+ jobId: string;
928
+ } | {
929
+ /** @enum {string} */
930
+ object: "job_posting_result";
931
+ /** @enum {string} */
932
+ status: "published";
933
+ jobId: string;
934
+ jobSlug: string;
935
+ } | {
936
+ /** @enum {string} */
937
+ object: "job_posting_result";
938
+ /** @enum {string} */
939
+ status: "pending_approval";
940
+ jobId: string;
941
+ } | {
942
+ /** @enum {string} */
943
+ object: "job_posting_result";
944
+ /** @enum {string} */
945
+ status: "invoice_sent";
946
+ jobId: string;
947
+ };
810
948
  JobSummary: {
811
949
  /** @description Unique identifier for the object. Use this value as the `{id}` path parameter for the job endpoints (e.g. `GET /v1/jobs/{id}`). */
812
950
  id: string;
@@ -2548,7 +2686,7 @@ declare function isConflict(e: unknown): e is BoardApiError;
2548
2686
  * constant because the package is platform-neutral and cannot read
2549
2687
  * package.json at runtime.
2550
2688
  */
2551
- declare const SDK_VERSION = "1.11.0";
2689
+ declare const SDK_VERSION = "1.12.0";
2552
2690
 
2553
2691
  type BoardUser = Schemas['BoardUser'];
2554
2692
  type BoardAuthSession = Schemas['BoardAuthSession'];
@@ -2746,6 +2884,17 @@ type JobAlertDeletePreferenceInput = {
2746
2884
  token: string;
2747
2885
  };
2748
2886
 
2887
+ /** A board plan for the job-submission wizard. The `id` is the `selectedPlan`. */
2888
+ type JobPostingPlan = Schemas['JobPostingPlan'];
2889
+ /** The body of `board.jobPosting.create(...)` — mirrors the Convex submitJob args. */
2890
+ type CreateJobPostingInput = Schemas['CreateJobPostingBody'];
2891
+ /**
2892
+ * The status-discriminated outcome of a submission: `checkout` (a Stripe
2893
+ * Checkout URL to redirect to), `published`, `pending_approval`, or
2894
+ * `invoice_sent`. A rejected submission throws a `BoardApiError` instead.
2895
+ */
2896
+ type JobPostingResult = Schemas['JobPostingResult'];
2897
+
2749
2898
  type TaxonomyGeo = Schemas['TaxonomyGeo'];
2750
2899
  type TaxonomyResolution = Schemas['PublicTaxonomyResolution'];
2751
2900
  type PublicPlace = Schemas['PublicPlace'];
@@ -3406,6 +3555,52 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
3406
3555
  success: boolean;
3407
3556
  }>;
3408
3557
  };
3558
+ jobPosting: {
3559
+ plans(query?: {
3560
+ purpose?: "job_posting" | "talent_access";
3561
+ }, options?: FetchOptions): Promise<ListEnvelope<{
3562
+ object: "job_posting_plan";
3563
+ id: string;
3564
+ name: string;
3565
+ description: string | null;
3566
+ kind: string;
3567
+ billingInterval: "month" | "year" | null;
3568
+ purpose: "job_posting" | "talent_access" | null;
3569
+ isRecommended: boolean;
3570
+ displayOrder: number | null;
3571
+ invoiceOnly: boolean;
3572
+ publishTiming: "on_issue" | "on_payment" | null;
3573
+ netTermsDays: number | null;
3574
+ prices: {
3575
+ currency: string;
3576
+ amountCents: number;
3577
+ isActive: boolean;
3578
+ }[];
3579
+ features: {
3580
+ key: string | null;
3581
+ value: string | null;
3582
+ }[];
3583
+ }>>;
3584
+ create(input: CreateJobPostingInput, options?: FetchOptions): Promise<{
3585
+ object: "job_posting_result";
3586
+ status: "checkout";
3587
+ checkoutUrl: string;
3588
+ jobId: string;
3589
+ } | {
3590
+ object: "job_posting_result";
3591
+ status: "published";
3592
+ jobId: string;
3593
+ jobSlug: string;
3594
+ } | {
3595
+ object: "job_posting_result";
3596
+ status: "pending_approval";
3597
+ jobId: string;
3598
+ } | {
3599
+ object: "job_posting_result";
3600
+ status: "invoice_sent";
3601
+ jobId: string;
3602
+ }>;
3603
+ };
3409
3604
  salaries: {
3410
3605
  companies: {
3411
3606
  list(options?: FetchOptions): Promise<ListEnvelope<{
@@ -3838,4 +4033,4 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
3838
4033
  };
3839
4034
  type BoardSdk = ReturnType<typeof createBoardClient>;
3840
4035
 
3841
- 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 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 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 };
4036
+ 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 JobPostingPlan, type JobPostingResult, 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
@@ -577,6 +577,90 @@ interface components {
577
577
  */
578
578
  status?: "draft" | "published";
579
579
  };
580
+ CreateJobPostingBody: {
581
+ submission: {
582
+ companyName: string;
583
+ companyWebsite?: string;
584
+ contactName: string;
585
+ contactEmail: string;
586
+ title: string;
587
+ description: string;
588
+ employmentType: string;
589
+ remoteOption: string;
590
+ officeLocations: {
591
+ /** @enum {string} */
592
+ provider?: "mapbox";
593
+ providerPlaceId?: string;
594
+ displayName: string;
595
+ countryCode?: string;
596
+ region?: string;
597
+ locality?: string;
598
+ city?: string;
599
+ latitude?: number;
600
+ longitude?: number;
601
+ boundingBox?: number[];
602
+ raw?: {
603
+ suggestion?: {
604
+ [key: string]: unknown;
605
+ };
606
+ retrieve?: {
607
+ [key: string]: unknown;
608
+ };
609
+ };
610
+ }[];
611
+ inOfficePeriod?: string;
612
+ inOfficeFrequency?: number;
613
+ seniority?: string;
614
+ applicationUrl: string;
615
+ salaryRangeEnabled: boolean;
616
+ salaryMin?: number;
617
+ salaryMax?: number;
618
+ salaryTimeframe?: string;
619
+ salaryCurrency?: string;
620
+ selectedPlan?: string;
621
+ isFeatured?: boolean;
622
+ remoteWorkingPermits?: {
623
+ type: string;
624
+ value: string;
625
+ label: string;
626
+ }[];
627
+ remoteTimezones?: {
628
+ type: string;
629
+ value: string;
630
+ label: string;
631
+ plusMinus: number;
632
+ offset?: number;
633
+ }[];
634
+ /** @enum {string} */
635
+ remoteSponsorship?: "yes" | "no" | "unknown";
636
+ customFieldValues?: {
637
+ [key: string]: string | string[] | boolean | number;
638
+ };
639
+ };
640
+ remoteAllowedTzOffsets?: number[];
641
+ remoteWorkPermitCountryCodes?: string[];
642
+ logoUrl?: string;
643
+ selectedBilling?: {
644
+ type: string;
645
+ id?: string;
646
+ planId: string;
647
+ };
648
+ invoiceBilling?: {
649
+ billingName?: string;
650
+ address: {
651
+ line1?: string;
652
+ city?: string;
653
+ postalCode?: string;
654
+ country?: string;
655
+ };
656
+ taxId?: string;
657
+ detailFields?: {
658
+ name: string;
659
+ value: string;
660
+ }[];
661
+ };
662
+ colorMode?: string;
663
+ };
580
664
  CreateTagBody: {
581
665
  /** @description URL-friendly slug for the tag. Auto-generated from `name` when omitted. */
582
666
  slug?: string;
@@ -807,6 +891,60 @@ interface components {
807
891
  /** @description Free-form location string (e.g. `"Berlin, Germany"`, `"Mountain View, California, USA"`). Mapbox parses + ranks candidates server-side; rejects on low confidence. */
808
892
  query: string;
809
893
  };
894
+ JobPostingPlan: {
895
+ /** @enum {string} */
896
+ object: "job_posting_plan";
897
+ id: string;
898
+ name: string;
899
+ description: string | null;
900
+ kind: string;
901
+ /** @enum {string|null} */
902
+ billingInterval: "month" | "year" | null;
903
+ /** @enum {string|null} */
904
+ purpose: "job_posting" | "talent_access" | null;
905
+ isRecommended: boolean;
906
+ displayOrder: number | null;
907
+ invoiceOnly: boolean;
908
+ /** @enum {string|null} */
909
+ publishTiming: "on_issue" | "on_payment" | null;
910
+ netTermsDays: number | null;
911
+ prices: {
912
+ currency: string;
913
+ amountCents: number;
914
+ isActive: boolean;
915
+ }[];
916
+ features: {
917
+ key: string | null;
918
+ value: string | null;
919
+ }[];
920
+ };
921
+ JobPostingResult: {
922
+ /** @enum {string} */
923
+ object: "job_posting_result";
924
+ /** @enum {string} */
925
+ status: "checkout";
926
+ checkoutUrl: string;
927
+ jobId: string;
928
+ } | {
929
+ /** @enum {string} */
930
+ object: "job_posting_result";
931
+ /** @enum {string} */
932
+ status: "published";
933
+ jobId: string;
934
+ jobSlug: string;
935
+ } | {
936
+ /** @enum {string} */
937
+ object: "job_posting_result";
938
+ /** @enum {string} */
939
+ status: "pending_approval";
940
+ jobId: string;
941
+ } | {
942
+ /** @enum {string} */
943
+ object: "job_posting_result";
944
+ /** @enum {string} */
945
+ status: "invoice_sent";
946
+ jobId: string;
947
+ };
810
948
  JobSummary: {
811
949
  /** @description Unique identifier for the object. Use this value as the `{id}` path parameter for the job endpoints (e.g. `GET /v1/jobs/{id}`). */
812
950
  id: string;
@@ -2548,7 +2686,7 @@ declare function isConflict(e: unknown): e is BoardApiError;
2548
2686
  * constant because the package is platform-neutral and cannot read
2549
2687
  * package.json at runtime.
2550
2688
  */
2551
- declare const SDK_VERSION = "1.11.0";
2689
+ declare const SDK_VERSION = "1.12.0";
2552
2690
 
2553
2691
  type BoardUser = Schemas['BoardUser'];
2554
2692
  type BoardAuthSession = Schemas['BoardAuthSession'];
@@ -2746,6 +2884,17 @@ type JobAlertDeletePreferenceInput = {
2746
2884
  token: string;
2747
2885
  };
2748
2886
 
2887
+ /** A board plan for the job-submission wizard. The `id` is the `selectedPlan`. */
2888
+ type JobPostingPlan = Schemas['JobPostingPlan'];
2889
+ /** The body of `board.jobPosting.create(...)` — mirrors the Convex submitJob args. */
2890
+ type CreateJobPostingInput = Schemas['CreateJobPostingBody'];
2891
+ /**
2892
+ * The status-discriminated outcome of a submission: `checkout` (a Stripe
2893
+ * Checkout URL to redirect to), `published`, `pending_approval`, or
2894
+ * `invoice_sent`. A rejected submission throws a `BoardApiError` instead.
2895
+ */
2896
+ type JobPostingResult = Schemas['JobPostingResult'];
2897
+
2749
2898
  type TaxonomyGeo = Schemas['TaxonomyGeo'];
2750
2899
  type TaxonomyResolution = Schemas['PublicTaxonomyResolution'];
2751
2900
  type PublicPlace = Schemas['PublicPlace'];
@@ -3406,6 +3555,52 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
3406
3555
  success: boolean;
3407
3556
  }>;
3408
3557
  };
3558
+ jobPosting: {
3559
+ plans(query?: {
3560
+ purpose?: "job_posting" | "talent_access";
3561
+ }, options?: FetchOptions): Promise<ListEnvelope<{
3562
+ object: "job_posting_plan";
3563
+ id: string;
3564
+ name: string;
3565
+ description: string | null;
3566
+ kind: string;
3567
+ billingInterval: "month" | "year" | null;
3568
+ purpose: "job_posting" | "talent_access" | null;
3569
+ isRecommended: boolean;
3570
+ displayOrder: number | null;
3571
+ invoiceOnly: boolean;
3572
+ publishTiming: "on_issue" | "on_payment" | null;
3573
+ netTermsDays: number | null;
3574
+ prices: {
3575
+ currency: string;
3576
+ amountCents: number;
3577
+ isActive: boolean;
3578
+ }[];
3579
+ features: {
3580
+ key: string | null;
3581
+ value: string | null;
3582
+ }[];
3583
+ }>>;
3584
+ create(input: CreateJobPostingInput, options?: FetchOptions): Promise<{
3585
+ object: "job_posting_result";
3586
+ status: "checkout";
3587
+ checkoutUrl: string;
3588
+ jobId: string;
3589
+ } | {
3590
+ object: "job_posting_result";
3591
+ status: "published";
3592
+ jobId: string;
3593
+ jobSlug: string;
3594
+ } | {
3595
+ object: "job_posting_result";
3596
+ status: "pending_approval";
3597
+ jobId: string;
3598
+ } | {
3599
+ object: "job_posting_result";
3600
+ status: "invoice_sent";
3601
+ jobId: string;
3602
+ }>;
3603
+ };
3409
3604
  salaries: {
3410
3605
  companies: {
3411
3606
  list(options?: FetchOptions): Promise<ListEnvelope<{
@@ -3838,4 +4033,4 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
3838
4033
  };
3839
4034
  type BoardSdk = ReturnType<typeof createBoardClient>;
3840
4035
 
3841
- 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 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 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 };
4036
+ 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 JobPostingPlan, type JobPostingResult, 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.11.0";
152
+ var SDK_VERSION = "1.12.0";
153
153
 
154
154
  // src/client.ts
155
155
  function isRawBody(body) {
@@ -653,6 +653,27 @@ function jobAlertsNamespace(client) {
653
653
  };
654
654
  }
655
655
 
656
+ // src/namespaces/job-posting.ts
657
+ function jobPostingNamespace(client) {
658
+ return {
659
+ /** List the board's job-posting plans (defaults to the `job_posting` purpose). */
660
+ plans(query, options) {
661
+ return client.fetch("/job-postings/plans", {
662
+ ...options,
663
+ query
664
+ });
665
+ },
666
+ /** Submit a job posting. Returns the status-discriminated outcome. */
667
+ create(input, options) {
668
+ return client.fetch("/job-postings", {
669
+ ...options,
670
+ method: "POST",
671
+ body: input
672
+ });
673
+ }
674
+ };
675
+ }
676
+
656
677
  // src/namespaces/jobs.ts
657
678
  function jobsNamespace(client) {
658
679
  return {
@@ -1028,6 +1049,7 @@ function createBoardClient(options) {
1028
1049
  taxonomy: taxonomyNamespace(client),
1029
1050
  redirects: redirectsNamespace(client),
1030
1051
  jobAlerts: jobAlertsNamespace(client),
1052
+ jobPosting: jobPostingNamespace(client),
1031
1053
  salaries: salariesNamespace(client)
1032
1054
  };
1033
1055
  }
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.11.0";
112
+ var SDK_VERSION = "1.12.0";
113
113
 
114
114
  // src/client.ts
115
115
  function isRawBody(body) {
@@ -613,6 +613,27 @@ function jobAlertsNamespace(client) {
613
613
  };
614
614
  }
615
615
 
616
+ // src/namespaces/job-posting.ts
617
+ function jobPostingNamespace(client) {
618
+ return {
619
+ /** List the board's job-posting plans (defaults to the `job_posting` purpose). */
620
+ plans(query, options) {
621
+ return client.fetch("/job-postings/plans", {
622
+ ...options,
623
+ query
624
+ });
625
+ },
626
+ /** Submit a job posting. Returns the status-discriminated outcome. */
627
+ create(input, options) {
628
+ return client.fetch("/job-postings", {
629
+ ...options,
630
+ method: "POST",
631
+ body: input
632
+ });
633
+ }
634
+ };
635
+ }
636
+
616
637
  // src/namespaces/jobs.ts
617
638
  function jobsNamespace(client) {
618
639
  return {
@@ -988,6 +1009,7 @@ function createBoardClient(options) {
988
1009
  taxonomy: taxonomyNamespace(client),
989
1010
  redirects: redirectsNamespace(client),
990
1011
  jobAlerts: jobAlertsNamespace(client),
1012
+ jobPosting: jobPostingNamespace(client),
991
1013
  salaries: salariesNamespace(client)
992
1014
  };
993
1015
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cavuno/board",
3
- "version": "1.11.0",
3
+ "version": "1.12.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.11.0",
2
+ "version": "1.12.0",
3
3
  "skills": [
4
4
  {
5
5
  "name": "cavuno-board-auth",