@cavuno/board 1.11.0 → 1.13.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 +310 -2
- package/dist/index.d.ts +310 -2
- package/dist/index.js +51 -1
- package/dist/index.mjs +51 -1
- package/package.json +1 -1
- package/skills/manifest.json +1 -1
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,120 @@ 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
|
+
JobPostingBillingCheck: {
|
|
895
|
+
/** @enum {string} */
|
|
896
|
+
object: "job_posting_billing_check";
|
|
897
|
+
hasActiveBilling: boolean;
|
|
898
|
+
};
|
|
899
|
+
JobPostingBillingOptions: {
|
|
900
|
+
/** @enum {string} */
|
|
901
|
+
object: "job_posting_billing_options";
|
|
902
|
+
options: {
|
|
903
|
+
id: string;
|
|
904
|
+
type: string;
|
|
905
|
+
planId: string;
|
|
906
|
+
planName: string;
|
|
907
|
+
planKind: string;
|
|
908
|
+
capacities: {
|
|
909
|
+
key: string;
|
|
910
|
+
total: number;
|
|
911
|
+
used: number;
|
|
912
|
+
remaining: number;
|
|
913
|
+
}[];
|
|
914
|
+
jobsRemaining: number;
|
|
915
|
+
jobsTotal: number;
|
|
916
|
+
featuredRemaining: number;
|
|
917
|
+
featuredTotal: number;
|
|
918
|
+
renewsAt: string | null;
|
|
919
|
+
}[];
|
|
920
|
+
};
|
|
921
|
+
JobPostingBillingOptionsBody: {
|
|
922
|
+
verificationToken: string;
|
|
923
|
+
};
|
|
924
|
+
JobPostingBillingVerification: {
|
|
925
|
+
/** @enum {string} */
|
|
926
|
+
object: "job_posting_billing_verification";
|
|
927
|
+
success: boolean;
|
|
928
|
+
};
|
|
929
|
+
JobPostingCheckBillingBody: {
|
|
930
|
+
/** Format: email */
|
|
931
|
+
email: string;
|
|
932
|
+
};
|
|
933
|
+
JobPostingPlan: {
|
|
934
|
+
/** @enum {string} */
|
|
935
|
+
object: "job_posting_plan";
|
|
936
|
+
id: string;
|
|
937
|
+
name: string;
|
|
938
|
+
description: string | null;
|
|
939
|
+
kind: string;
|
|
940
|
+
/** @enum {string|null} */
|
|
941
|
+
billingInterval: "month" | "year" | null;
|
|
942
|
+
/** @enum {string|null} */
|
|
943
|
+
purpose: "job_posting" | "talent_access" | null;
|
|
944
|
+
isRecommended: boolean;
|
|
945
|
+
displayOrder: number | null;
|
|
946
|
+
invoiceOnly: boolean;
|
|
947
|
+
/** @enum {string|null} */
|
|
948
|
+
publishTiming: "on_issue" | "on_payment" | null;
|
|
949
|
+
netTermsDays: number | null;
|
|
950
|
+
prices: {
|
|
951
|
+
currency: string;
|
|
952
|
+
amountCents: number;
|
|
953
|
+
isActive: boolean;
|
|
954
|
+
}[];
|
|
955
|
+
features: {
|
|
956
|
+
key: string | null;
|
|
957
|
+
value: string | null;
|
|
958
|
+
}[];
|
|
959
|
+
};
|
|
960
|
+
JobPostingResult: {
|
|
961
|
+
/** @enum {string} */
|
|
962
|
+
object: "job_posting_result";
|
|
963
|
+
/** @enum {string} */
|
|
964
|
+
status: "checkout";
|
|
965
|
+
checkoutUrl: string;
|
|
966
|
+
jobId: string;
|
|
967
|
+
} | {
|
|
968
|
+
/** @enum {string} */
|
|
969
|
+
object: "job_posting_result";
|
|
970
|
+
/** @enum {string} */
|
|
971
|
+
status: "published";
|
|
972
|
+
jobId: string;
|
|
973
|
+
jobSlug: string;
|
|
974
|
+
} | {
|
|
975
|
+
/** @enum {string} */
|
|
976
|
+
object: "job_posting_result";
|
|
977
|
+
/** @enum {string} */
|
|
978
|
+
status: "pending_approval";
|
|
979
|
+
jobId: string;
|
|
980
|
+
} | {
|
|
981
|
+
/** @enum {string} */
|
|
982
|
+
object: "job_posting_result";
|
|
983
|
+
/** @enum {string} */
|
|
984
|
+
status: "invoice_sent";
|
|
985
|
+
jobId: string;
|
|
986
|
+
};
|
|
987
|
+
JobPostingSendVerificationBody: {
|
|
988
|
+
/** Format: email */
|
|
989
|
+
email: string;
|
|
990
|
+
};
|
|
991
|
+
JobPostingSubscriptionEntitlements: {
|
|
992
|
+
/** @enum {string} */
|
|
993
|
+
object: "job_posting_subscription_entitlements";
|
|
994
|
+
hasSubscription: boolean;
|
|
995
|
+
subscriptionId: string | null;
|
|
996
|
+
canFeature: boolean | null;
|
|
997
|
+
featuredSlotsRemaining: number | null;
|
|
998
|
+
featuredSlotsTotal: number | null;
|
|
999
|
+
maxActiveRemaining: number | null;
|
|
1000
|
+
maxActiveTotal: number | null;
|
|
1001
|
+
featureSelectionMode: string | null;
|
|
1002
|
+
};
|
|
1003
|
+
JobPostingSubscriptionEntitlementsBody: {
|
|
1004
|
+
/** Format: email */
|
|
1005
|
+
email: string;
|
|
1006
|
+
planId: string;
|
|
1007
|
+
};
|
|
810
1008
|
JobSummary: {
|
|
811
1009
|
/** @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
1010
|
id: string;
|
|
@@ -2548,7 +2746,7 @@ declare function isConflict(e: unknown): e is BoardApiError;
|
|
|
2548
2746
|
* constant because the package is platform-neutral and cannot read
|
|
2549
2747
|
* package.json at runtime.
|
|
2550
2748
|
*/
|
|
2551
|
-
declare const SDK_VERSION = "1.
|
|
2749
|
+
declare const SDK_VERSION = "1.13.0";
|
|
2552
2750
|
|
|
2553
2751
|
type BoardUser = Schemas['BoardUser'];
|
|
2554
2752
|
type BoardAuthSession = Schemas['BoardAuthSession'];
|
|
@@ -2746,6 +2944,21 @@ type JobAlertDeletePreferenceInput = {
|
|
|
2746
2944
|
token: string;
|
|
2747
2945
|
};
|
|
2748
2946
|
|
|
2947
|
+
/** A board plan for the job-submission wizard. The `id` is the `selectedPlan`. */
|
|
2948
|
+
type JobPostingPlan = Schemas['JobPostingPlan'];
|
|
2949
|
+
/** The body of `board.jobPosting.create(...)` — mirrors the Convex submitJob args. */
|
|
2950
|
+
type CreateJobPostingInput = Schemas['CreateJobPostingBody'];
|
|
2951
|
+
/**
|
|
2952
|
+
* The status-discriminated outcome of a submission: `checkout` (a Stripe
|
|
2953
|
+
* Checkout URL to redirect to), `published`, `pending_approval`, or
|
|
2954
|
+
* `invoice_sent`. A rejected submission throws a `BoardApiError` instead.
|
|
2955
|
+
*/
|
|
2956
|
+
type JobPostingResult = Schemas['JobPostingResult'];
|
|
2957
|
+
type JobPostingBillingCheck = Schemas['JobPostingBillingCheck'];
|
|
2958
|
+
type JobPostingBillingVerification = Schemas['JobPostingBillingVerification'];
|
|
2959
|
+
type JobPostingBillingOptions = Schemas['JobPostingBillingOptions'];
|
|
2960
|
+
type JobPostingSubscriptionEntitlements = Schemas['JobPostingSubscriptionEntitlements'];
|
|
2961
|
+
|
|
2749
2962
|
type TaxonomyGeo = Schemas['TaxonomyGeo'];
|
|
2750
2963
|
type TaxonomyResolution = Schemas['PublicTaxonomyResolution'];
|
|
2751
2964
|
type PublicPlace = Schemas['PublicPlace'];
|
|
@@ -3406,6 +3619,101 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
3406
3619
|
success: boolean;
|
|
3407
3620
|
}>;
|
|
3408
3621
|
};
|
|
3622
|
+
jobPosting: {
|
|
3623
|
+
plans(query?: {
|
|
3624
|
+
purpose?: "job_posting" | "talent_access";
|
|
3625
|
+
}, options?: FetchOptions): Promise<ListEnvelope<{
|
|
3626
|
+
object: "job_posting_plan";
|
|
3627
|
+
id: string;
|
|
3628
|
+
name: string;
|
|
3629
|
+
description: string | null;
|
|
3630
|
+
kind: string;
|
|
3631
|
+
billingInterval: "month" | "year" | null;
|
|
3632
|
+
purpose: "job_posting" | "talent_access" | null;
|
|
3633
|
+
isRecommended: boolean;
|
|
3634
|
+
displayOrder: number | null;
|
|
3635
|
+
invoiceOnly: boolean;
|
|
3636
|
+
publishTiming: "on_issue" | "on_payment" | null;
|
|
3637
|
+
netTermsDays: number | null;
|
|
3638
|
+
prices: {
|
|
3639
|
+
currency: string;
|
|
3640
|
+
amountCents: number;
|
|
3641
|
+
isActive: boolean;
|
|
3642
|
+
}[];
|
|
3643
|
+
features: {
|
|
3644
|
+
key: string | null;
|
|
3645
|
+
value: string | null;
|
|
3646
|
+
}[];
|
|
3647
|
+
}>>;
|
|
3648
|
+
create(input: CreateJobPostingInput, options?: FetchOptions): Promise<{
|
|
3649
|
+
object: "job_posting_result";
|
|
3650
|
+
status: "checkout";
|
|
3651
|
+
checkoutUrl: string;
|
|
3652
|
+
jobId: string;
|
|
3653
|
+
} | {
|
|
3654
|
+
object: "job_posting_result";
|
|
3655
|
+
status: "published";
|
|
3656
|
+
jobId: string;
|
|
3657
|
+
jobSlug: string;
|
|
3658
|
+
} | {
|
|
3659
|
+
object: "job_posting_result";
|
|
3660
|
+
status: "pending_approval";
|
|
3661
|
+
jobId: string;
|
|
3662
|
+
} | {
|
|
3663
|
+
object: "job_posting_result";
|
|
3664
|
+
status: "invoice_sent";
|
|
3665
|
+
jobId: string;
|
|
3666
|
+
}>;
|
|
3667
|
+
checkBilling(input: {
|
|
3668
|
+
email: string;
|
|
3669
|
+
}, options?: FetchOptions): Promise<{
|
|
3670
|
+
object: "job_posting_billing_check";
|
|
3671
|
+
hasActiveBilling: boolean;
|
|
3672
|
+
}>;
|
|
3673
|
+
sendBillingVerification(input: {
|
|
3674
|
+
email: string;
|
|
3675
|
+
}, options?: FetchOptions): Promise<{
|
|
3676
|
+
object: "job_posting_billing_verification";
|
|
3677
|
+
success: boolean;
|
|
3678
|
+
}>;
|
|
3679
|
+
getBillingOptions(input: {
|
|
3680
|
+
verificationToken: string;
|
|
3681
|
+
}, options?: FetchOptions): Promise<{
|
|
3682
|
+
object: "job_posting_billing_options";
|
|
3683
|
+
options: {
|
|
3684
|
+
id: string;
|
|
3685
|
+
type: string;
|
|
3686
|
+
planId: string;
|
|
3687
|
+
planName: string;
|
|
3688
|
+
planKind: string;
|
|
3689
|
+
capacities: {
|
|
3690
|
+
key: string;
|
|
3691
|
+
total: number;
|
|
3692
|
+
used: number;
|
|
3693
|
+
remaining: number;
|
|
3694
|
+
}[];
|
|
3695
|
+
jobsRemaining: number;
|
|
3696
|
+
jobsTotal: number;
|
|
3697
|
+
featuredRemaining: number;
|
|
3698
|
+
featuredTotal: number;
|
|
3699
|
+
renewsAt: string | null;
|
|
3700
|
+
}[];
|
|
3701
|
+
}>;
|
|
3702
|
+
checkSubscriptionEntitlements(input: {
|
|
3703
|
+
email: string;
|
|
3704
|
+
planId: string;
|
|
3705
|
+
}, options?: FetchOptions): Promise<{
|
|
3706
|
+
object: "job_posting_subscription_entitlements";
|
|
3707
|
+
hasSubscription: boolean;
|
|
3708
|
+
subscriptionId: string | null;
|
|
3709
|
+
canFeature: boolean | null;
|
|
3710
|
+
featuredSlotsRemaining: number | null;
|
|
3711
|
+
featuredSlotsTotal: number | null;
|
|
3712
|
+
maxActiveRemaining: number | null;
|
|
3713
|
+
maxActiveTotal: number | null;
|
|
3714
|
+
featureSelectionMode: string | null;
|
|
3715
|
+
}>;
|
|
3716
|
+
};
|
|
3409
3717
|
salaries: {
|
|
3410
3718
|
companies: {
|
|
3411
3719
|
list(options?: FetchOptions): Promise<ListEnvelope<{
|
|
@@ -3838,4 +4146,4 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
3838
4146
|
};
|
|
3839
4147
|
type BoardSdk = ReturnType<typeof createBoardClient>;
|
|
3840
4148
|
|
|
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 };
|
|
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 };
|
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,120 @@ 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
|
+
JobPostingBillingCheck: {
|
|
895
|
+
/** @enum {string} */
|
|
896
|
+
object: "job_posting_billing_check";
|
|
897
|
+
hasActiveBilling: boolean;
|
|
898
|
+
};
|
|
899
|
+
JobPostingBillingOptions: {
|
|
900
|
+
/** @enum {string} */
|
|
901
|
+
object: "job_posting_billing_options";
|
|
902
|
+
options: {
|
|
903
|
+
id: string;
|
|
904
|
+
type: string;
|
|
905
|
+
planId: string;
|
|
906
|
+
planName: string;
|
|
907
|
+
planKind: string;
|
|
908
|
+
capacities: {
|
|
909
|
+
key: string;
|
|
910
|
+
total: number;
|
|
911
|
+
used: number;
|
|
912
|
+
remaining: number;
|
|
913
|
+
}[];
|
|
914
|
+
jobsRemaining: number;
|
|
915
|
+
jobsTotal: number;
|
|
916
|
+
featuredRemaining: number;
|
|
917
|
+
featuredTotal: number;
|
|
918
|
+
renewsAt: string | null;
|
|
919
|
+
}[];
|
|
920
|
+
};
|
|
921
|
+
JobPostingBillingOptionsBody: {
|
|
922
|
+
verificationToken: string;
|
|
923
|
+
};
|
|
924
|
+
JobPostingBillingVerification: {
|
|
925
|
+
/** @enum {string} */
|
|
926
|
+
object: "job_posting_billing_verification";
|
|
927
|
+
success: boolean;
|
|
928
|
+
};
|
|
929
|
+
JobPostingCheckBillingBody: {
|
|
930
|
+
/** Format: email */
|
|
931
|
+
email: string;
|
|
932
|
+
};
|
|
933
|
+
JobPostingPlan: {
|
|
934
|
+
/** @enum {string} */
|
|
935
|
+
object: "job_posting_plan";
|
|
936
|
+
id: string;
|
|
937
|
+
name: string;
|
|
938
|
+
description: string | null;
|
|
939
|
+
kind: string;
|
|
940
|
+
/** @enum {string|null} */
|
|
941
|
+
billingInterval: "month" | "year" | null;
|
|
942
|
+
/** @enum {string|null} */
|
|
943
|
+
purpose: "job_posting" | "talent_access" | null;
|
|
944
|
+
isRecommended: boolean;
|
|
945
|
+
displayOrder: number | null;
|
|
946
|
+
invoiceOnly: boolean;
|
|
947
|
+
/** @enum {string|null} */
|
|
948
|
+
publishTiming: "on_issue" | "on_payment" | null;
|
|
949
|
+
netTermsDays: number | null;
|
|
950
|
+
prices: {
|
|
951
|
+
currency: string;
|
|
952
|
+
amountCents: number;
|
|
953
|
+
isActive: boolean;
|
|
954
|
+
}[];
|
|
955
|
+
features: {
|
|
956
|
+
key: string | null;
|
|
957
|
+
value: string | null;
|
|
958
|
+
}[];
|
|
959
|
+
};
|
|
960
|
+
JobPostingResult: {
|
|
961
|
+
/** @enum {string} */
|
|
962
|
+
object: "job_posting_result";
|
|
963
|
+
/** @enum {string} */
|
|
964
|
+
status: "checkout";
|
|
965
|
+
checkoutUrl: string;
|
|
966
|
+
jobId: string;
|
|
967
|
+
} | {
|
|
968
|
+
/** @enum {string} */
|
|
969
|
+
object: "job_posting_result";
|
|
970
|
+
/** @enum {string} */
|
|
971
|
+
status: "published";
|
|
972
|
+
jobId: string;
|
|
973
|
+
jobSlug: string;
|
|
974
|
+
} | {
|
|
975
|
+
/** @enum {string} */
|
|
976
|
+
object: "job_posting_result";
|
|
977
|
+
/** @enum {string} */
|
|
978
|
+
status: "pending_approval";
|
|
979
|
+
jobId: string;
|
|
980
|
+
} | {
|
|
981
|
+
/** @enum {string} */
|
|
982
|
+
object: "job_posting_result";
|
|
983
|
+
/** @enum {string} */
|
|
984
|
+
status: "invoice_sent";
|
|
985
|
+
jobId: string;
|
|
986
|
+
};
|
|
987
|
+
JobPostingSendVerificationBody: {
|
|
988
|
+
/** Format: email */
|
|
989
|
+
email: string;
|
|
990
|
+
};
|
|
991
|
+
JobPostingSubscriptionEntitlements: {
|
|
992
|
+
/** @enum {string} */
|
|
993
|
+
object: "job_posting_subscription_entitlements";
|
|
994
|
+
hasSubscription: boolean;
|
|
995
|
+
subscriptionId: string | null;
|
|
996
|
+
canFeature: boolean | null;
|
|
997
|
+
featuredSlotsRemaining: number | null;
|
|
998
|
+
featuredSlotsTotal: number | null;
|
|
999
|
+
maxActiveRemaining: number | null;
|
|
1000
|
+
maxActiveTotal: number | null;
|
|
1001
|
+
featureSelectionMode: string | null;
|
|
1002
|
+
};
|
|
1003
|
+
JobPostingSubscriptionEntitlementsBody: {
|
|
1004
|
+
/** Format: email */
|
|
1005
|
+
email: string;
|
|
1006
|
+
planId: string;
|
|
1007
|
+
};
|
|
810
1008
|
JobSummary: {
|
|
811
1009
|
/** @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
1010
|
id: string;
|
|
@@ -2548,7 +2746,7 @@ declare function isConflict(e: unknown): e is BoardApiError;
|
|
|
2548
2746
|
* constant because the package is platform-neutral and cannot read
|
|
2549
2747
|
* package.json at runtime.
|
|
2550
2748
|
*/
|
|
2551
|
-
declare const SDK_VERSION = "1.
|
|
2749
|
+
declare const SDK_VERSION = "1.13.0";
|
|
2552
2750
|
|
|
2553
2751
|
type BoardUser = Schemas['BoardUser'];
|
|
2554
2752
|
type BoardAuthSession = Schemas['BoardAuthSession'];
|
|
@@ -2746,6 +2944,21 @@ type JobAlertDeletePreferenceInput = {
|
|
|
2746
2944
|
token: string;
|
|
2747
2945
|
};
|
|
2748
2946
|
|
|
2947
|
+
/** A board plan for the job-submission wizard. The `id` is the `selectedPlan`. */
|
|
2948
|
+
type JobPostingPlan = Schemas['JobPostingPlan'];
|
|
2949
|
+
/** The body of `board.jobPosting.create(...)` — mirrors the Convex submitJob args. */
|
|
2950
|
+
type CreateJobPostingInput = Schemas['CreateJobPostingBody'];
|
|
2951
|
+
/**
|
|
2952
|
+
* The status-discriminated outcome of a submission: `checkout` (a Stripe
|
|
2953
|
+
* Checkout URL to redirect to), `published`, `pending_approval`, or
|
|
2954
|
+
* `invoice_sent`. A rejected submission throws a `BoardApiError` instead.
|
|
2955
|
+
*/
|
|
2956
|
+
type JobPostingResult = Schemas['JobPostingResult'];
|
|
2957
|
+
type JobPostingBillingCheck = Schemas['JobPostingBillingCheck'];
|
|
2958
|
+
type JobPostingBillingVerification = Schemas['JobPostingBillingVerification'];
|
|
2959
|
+
type JobPostingBillingOptions = Schemas['JobPostingBillingOptions'];
|
|
2960
|
+
type JobPostingSubscriptionEntitlements = Schemas['JobPostingSubscriptionEntitlements'];
|
|
2961
|
+
|
|
2749
2962
|
type TaxonomyGeo = Schemas['TaxonomyGeo'];
|
|
2750
2963
|
type TaxonomyResolution = Schemas['PublicTaxonomyResolution'];
|
|
2751
2964
|
type PublicPlace = Schemas['PublicPlace'];
|
|
@@ -3406,6 +3619,101 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
3406
3619
|
success: boolean;
|
|
3407
3620
|
}>;
|
|
3408
3621
|
};
|
|
3622
|
+
jobPosting: {
|
|
3623
|
+
plans(query?: {
|
|
3624
|
+
purpose?: "job_posting" | "talent_access";
|
|
3625
|
+
}, options?: FetchOptions): Promise<ListEnvelope<{
|
|
3626
|
+
object: "job_posting_plan";
|
|
3627
|
+
id: string;
|
|
3628
|
+
name: string;
|
|
3629
|
+
description: string | null;
|
|
3630
|
+
kind: string;
|
|
3631
|
+
billingInterval: "month" | "year" | null;
|
|
3632
|
+
purpose: "job_posting" | "talent_access" | null;
|
|
3633
|
+
isRecommended: boolean;
|
|
3634
|
+
displayOrder: number | null;
|
|
3635
|
+
invoiceOnly: boolean;
|
|
3636
|
+
publishTiming: "on_issue" | "on_payment" | null;
|
|
3637
|
+
netTermsDays: number | null;
|
|
3638
|
+
prices: {
|
|
3639
|
+
currency: string;
|
|
3640
|
+
amountCents: number;
|
|
3641
|
+
isActive: boolean;
|
|
3642
|
+
}[];
|
|
3643
|
+
features: {
|
|
3644
|
+
key: string | null;
|
|
3645
|
+
value: string | null;
|
|
3646
|
+
}[];
|
|
3647
|
+
}>>;
|
|
3648
|
+
create(input: CreateJobPostingInput, options?: FetchOptions): Promise<{
|
|
3649
|
+
object: "job_posting_result";
|
|
3650
|
+
status: "checkout";
|
|
3651
|
+
checkoutUrl: string;
|
|
3652
|
+
jobId: string;
|
|
3653
|
+
} | {
|
|
3654
|
+
object: "job_posting_result";
|
|
3655
|
+
status: "published";
|
|
3656
|
+
jobId: string;
|
|
3657
|
+
jobSlug: string;
|
|
3658
|
+
} | {
|
|
3659
|
+
object: "job_posting_result";
|
|
3660
|
+
status: "pending_approval";
|
|
3661
|
+
jobId: string;
|
|
3662
|
+
} | {
|
|
3663
|
+
object: "job_posting_result";
|
|
3664
|
+
status: "invoice_sent";
|
|
3665
|
+
jobId: string;
|
|
3666
|
+
}>;
|
|
3667
|
+
checkBilling(input: {
|
|
3668
|
+
email: string;
|
|
3669
|
+
}, options?: FetchOptions): Promise<{
|
|
3670
|
+
object: "job_posting_billing_check";
|
|
3671
|
+
hasActiveBilling: boolean;
|
|
3672
|
+
}>;
|
|
3673
|
+
sendBillingVerification(input: {
|
|
3674
|
+
email: string;
|
|
3675
|
+
}, options?: FetchOptions): Promise<{
|
|
3676
|
+
object: "job_posting_billing_verification";
|
|
3677
|
+
success: boolean;
|
|
3678
|
+
}>;
|
|
3679
|
+
getBillingOptions(input: {
|
|
3680
|
+
verificationToken: string;
|
|
3681
|
+
}, options?: FetchOptions): Promise<{
|
|
3682
|
+
object: "job_posting_billing_options";
|
|
3683
|
+
options: {
|
|
3684
|
+
id: string;
|
|
3685
|
+
type: string;
|
|
3686
|
+
planId: string;
|
|
3687
|
+
planName: string;
|
|
3688
|
+
planKind: string;
|
|
3689
|
+
capacities: {
|
|
3690
|
+
key: string;
|
|
3691
|
+
total: number;
|
|
3692
|
+
used: number;
|
|
3693
|
+
remaining: number;
|
|
3694
|
+
}[];
|
|
3695
|
+
jobsRemaining: number;
|
|
3696
|
+
jobsTotal: number;
|
|
3697
|
+
featuredRemaining: number;
|
|
3698
|
+
featuredTotal: number;
|
|
3699
|
+
renewsAt: string | null;
|
|
3700
|
+
}[];
|
|
3701
|
+
}>;
|
|
3702
|
+
checkSubscriptionEntitlements(input: {
|
|
3703
|
+
email: string;
|
|
3704
|
+
planId: string;
|
|
3705
|
+
}, options?: FetchOptions): Promise<{
|
|
3706
|
+
object: "job_posting_subscription_entitlements";
|
|
3707
|
+
hasSubscription: boolean;
|
|
3708
|
+
subscriptionId: string | null;
|
|
3709
|
+
canFeature: boolean | null;
|
|
3710
|
+
featuredSlotsRemaining: number | null;
|
|
3711
|
+
featuredSlotsTotal: number | null;
|
|
3712
|
+
maxActiveRemaining: number | null;
|
|
3713
|
+
maxActiveTotal: number | null;
|
|
3714
|
+
featureSelectionMode: string | null;
|
|
3715
|
+
}>;
|
|
3716
|
+
};
|
|
3409
3717
|
salaries: {
|
|
3410
3718
|
companies: {
|
|
3411
3719
|
list(options?: FetchOptions): Promise<ListEnvelope<{
|
|
@@ -3838,4 +4146,4 @@ declare function createBoardClient(options: CreateBoardClientOptions): {
|
|
|
3838
4146
|
};
|
|
3839
4147
|
type BoardSdk = ReturnType<typeof createBoardClient>;
|
|
3840
4148
|
|
|
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 };
|
|
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 };
|
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.
|
|
152
|
+
var SDK_VERSION = "1.13.0";
|
|
153
153
|
|
|
154
154
|
// src/client.ts
|
|
155
155
|
function isRawBody(body) {
|
|
@@ -653,6 +653,55 @@ 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
|
+
/** Does this email already have billing credit on the board? */
|
|
675
|
+
checkBilling(input, options) {
|
|
676
|
+
return client.fetch(
|
|
677
|
+
"/job-postings/check-billing",
|
|
678
|
+
{ ...options, method: "POST", body: input }
|
|
679
|
+
);
|
|
680
|
+
},
|
|
681
|
+
/** Email a billing-verification token (then pass it to `getBillingOptions`). */
|
|
682
|
+
sendBillingVerification(input, options) {
|
|
683
|
+
return client.fetch(
|
|
684
|
+
"/job-postings/send-verification",
|
|
685
|
+
{ ...options, method: "POST", body: input }
|
|
686
|
+
);
|
|
687
|
+
},
|
|
688
|
+
/** List the credit options for a verified email (an option → `selectedBilling`). */
|
|
689
|
+
getBillingOptions(input, options) {
|
|
690
|
+
return client.fetch(
|
|
691
|
+
"/job-postings/billing-options",
|
|
692
|
+
{ ...options, method: "POST", body: input }
|
|
693
|
+
);
|
|
694
|
+
},
|
|
695
|
+
/** The featured/active entitlements a verified email's subscription grants. */
|
|
696
|
+
checkSubscriptionEntitlements(input, options) {
|
|
697
|
+
return client.fetch(
|
|
698
|
+
"/job-postings/subscription-entitlements",
|
|
699
|
+
{ ...options, method: "POST", body: input }
|
|
700
|
+
);
|
|
701
|
+
}
|
|
702
|
+
};
|
|
703
|
+
}
|
|
704
|
+
|
|
656
705
|
// src/namespaces/jobs.ts
|
|
657
706
|
function jobsNamespace(client) {
|
|
658
707
|
return {
|
|
@@ -1028,6 +1077,7 @@ function createBoardClient(options) {
|
|
|
1028
1077
|
taxonomy: taxonomyNamespace(client),
|
|
1029
1078
|
redirects: redirectsNamespace(client),
|
|
1030
1079
|
jobAlerts: jobAlertsNamespace(client),
|
|
1080
|
+
jobPosting: jobPostingNamespace(client),
|
|
1031
1081
|
salaries: salariesNamespace(client)
|
|
1032
1082
|
};
|
|
1033
1083
|
}
|
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.
|
|
112
|
+
var SDK_VERSION = "1.13.0";
|
|
113
113
|
|
|
114
114
|
// src/client.ts
|
|
115
115
|
function isRawBody(body) {
|
|
@@ -613,6 +613,55 @@ 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
|
+
/** Does this email already have billing credit on the board? */
|
|
635
|
+
checkBilling(input, options) {
|
|
636
|
+
return client.fetch(
|
|
637
|
+
"/job-postings/check-billing",
|
|
638
|
+
{ ...options, method: "POST", body: input }
|
|
639
|
+
);
|
|
640
|
+
},
|
|
641
|
+
/** Email a billing-verification token (then pass it to `getBillingOptions`). */
|
|
642
|
+
sendBillingVerification(input, options) {
|
|
643
|
+
return client.fetch(
|
|
644
|
+
"/job-postings/send-verification",
|
|
645
|
+
{ ...options, method: "POST", body: input }
|
|
646
|
+
);
|
|
647
|
+
},
|
|
648
|
+
/** List the credit options for a verified email (an option → `selectedBilling`). */
|
|
649
|
+
getBillingOptions(input, options) {
|
|
650
|
+
return client.fetch(
|
|
651
|
+
"/job-postings/billing-options",
|
|
652
|
+
{ ...options, method: "POST", body: input }
|
|
653
|
+
);
|
|
654
|
+
},
|
|
655
|
+
/** The featured/active entitlements a verified email's subscription grants. */
|
|
656
|
+
checkSubscriptionEntitlements(input, options) {
|
|
657
|
+
return client.fetch(
|
|
658
|
+
"/job-postings/subscription-entitlements",
|
|
659
|
+
{ ...options, method: "POST", body: input }
|
|
660
|
+
);
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
|
|
616
665
|
// src/namespaces/jobs.ts
|
|
617
666
|
function jobsNamespace(client) {
|
|
618
667
|
return {
|
|
@@ -988,6 +1037,7 @@ function createBoardClient(options) {
|
|
|
988
1037
|
taxonomy: taxonomyNamespace(client),
|
|
989
1038
|
redirects: redirectsNamespace(client),
|
|
990
1039
|
jobAlerts: jobAlertsNamespace(client),
|
|
1040
|
+
jobPosting: jobPostingNamespace(client),
|
|
991
1041
|
salaries: salariesNamespace(client)
|
|
992
1042
|
};
|
|
993
1043
|
}
|
package/package.json
CHANGED
package/skills/manifest.json
CHANGED