@next-degree/pickle-shared-js 0.9.5 → 0.10.7
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/{company_service_sanity-B5FBDl-4.d.ts → company_service_sanity-BZtdt7Df.d.ts} +1743 -1743
- package/dist/{company_service_sanity--Aw-Y3Us.d.cts → company_service_sanity-Bedw6Mhk.d.cts} +1743 -1743
- package/dist/components/buttons/BackButton.cjs +1 -1
- package/dist/components/buttons/BackButton.cjs.map +1 -1
- package/dist/components/buttons/BackButton.js +1 -1
- package/dist/components/buttons/BackButton.js.map +1 -1
- package/dist/components/jobPost/JobDescription.cjs.map +1 -1
- package/dist/components/jobPost/JobDescription.js.map +1 -1
- package/dist/components/jobPost/JobHeader.cjs +1 -1
- package/dist/components/jobPost/JobHeader.cjs.map +1 -1
- package/dist/components/jobPost/JobHeader.js +1 -1
- package/dist/components/jobPost/JobHeader.js.map +1 -1
- package/dist/components/jobPost/JobPost.cjs +358 -12
- package/dist/components/jobPost/JobPost.cjs.map +1 -1
- package/dist/components/jobPost/JobPost.d.cts +3 -2
- package/dist/components/jobPost/JobPost.d.ts +3 -2
- package/dist/components/jobPost/JobPost.js +363 -12
- package/dist/components/jobPost/JobPost.js.map +1 -1
- package/dist/components/ui/Button.cjs +4 -2
- package/dist/components/ui/Button.cjs.map +1 -1
- package/dist/components/ui/Button.d.cts +2 -2
- package/dist/components/ui/Button.d.ts +2 -2
- package/dist/components/ui/Button.js +2 -1
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/Combobox.cjs +20 -20
- package/dist/components/ui/Combobox.cjs.map +1 -1
- package/dist/components/ui/Combobox.d.cts +1 -0
- package/dist/components/ui/Combobox.d.ts +1 -0
- package/dist/components/ui/Combobox.js +18 -18
- package/dist/components/ui/Combobox.js.map +1 -1
- package/dist/components/ui/InputOtp.cjs +8 -1
- package/dist/components/ui/InputOtp.cjs.map +1 -1
- package/dist/components/ui/InputOtp.js +8 -1
- package/dist/components/ui/InputOtp.js.map +1 -1
- package/dist/components/ui/ReadMore.cjs.map +1 -1
- package/dist/components/ui/ReadMore.js.map +1 -1
- package/dist/components/ui/buttonShadcn.d.cts +1 -1
- package/dist/components/ui/buttonShadcn.d.ts +1 -1
- package/dist/{displayText-4cJ7-3Mw.d.cts → displayText-BIzvCN9H.d.cts} +1 -1
- package/dist/{displayText-CBIWVZVw.d.ts → displayText-BtujjCCA.d.ts} +1 -1
- package/dist/hooks/useDisplayText.d.cts +2 -2
- package/dist/hooks/useDisplayText.d.ts +2 -2
- package/dist/index.cjs +587 -167
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +587 -167
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_sanity-CeX9tlpb.d.ts → job_posting_service_sanity-B6APEfOO.d.ts} +1795 -1795
- package/dist/{job_posting_service_sanity-D5Znr6Ba.d.cts → job_posting_service_sanity-CLQAVXTy.d.cts} +1795 -1795
- package/dist/lib/locations.d.cts +1 -1
- package/dist/lib/locations.d.ts +1 -1
- package/dist/lib/mappings.d.cts +2 -2
- package/dist/lib/mappings.d.ts +2 -2
- package/dist/lib/salaryRange.cjs +355 -11
- package/dist/lib/salaryRange.cjs.map +1 -1
- package/dist/lib/salaryRange.d.cts +2 -1
- package/dist/lib/salaryRange.d.ts +2 -1
- package/dist/lib/salaryRange.js +361 -11
- package/dist/lib/salaryRange.js.map +1 -1
- package/dist/services/displayText.d.cts +2 -2
- package/dist/services/displayText.d.ts +2 -2
- package/dist/styles/globals.css +9 -0
- package/dist/styles/globals.css.map +1 -1
- package/dist/types/data/job_posting_service_latest.d.cts +1 -1
- package/dist/types/data/job_posting_service_latest.d.ts +1 -1
- package/dist/types/index.d.cts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/types/latest/company_service_latest.d.cts +1 -1
- package/dist/types/latest/company_service_latest.d.ts +1 -1
- package/dist/types/latest/custom/company_service_sanity.d.cts +3 -3
- package/dist/types/latest/custom/company_service_sanity.d.ts +3 -3
- package/dist/types/latest/custom/custom_sanity_models.d.cts +2 -2
- package/dist/types/latest/custom/custom_sanity_models.d.ts +2 -2
- package/dist/types/latest/custom/job_posting_service_sanity.d.cts +3 -3
- package/dist/types/latest/custom/job_posting_service_sanity.d.ts +3 -3
- package/dist/types/latest/job_posting_service_latest.d.cts +1 -1
- package/dist/types/latest/job_posting_service_latest.d.ts +1 -1
- package/dist/types/latest/shared_pickle_output_latest.d.cts +1 -1
- package/dist/types/latest/shared_pickle_output_latest.d.ts +1 -1
- package/package.json +1 -1
- package/dist/{company_service_latest-DFxfjA2x.d.cts → company_service_latest-BmiEQ4dO.d.cts} +1001 -1001
- package/dist/{company_service_latest-DFxfjA2x.d.ts → company_service_latest-BmiEQ4dO.d.ts} +1001 -1001
- package/dist/{job_posting_service_latest-B5tqLSgo.d.cts → job_posting_service_latest-C6TSGfcJ.d.cts} +986 -986
- package/dist/{job_posting_service_latest-B5tqLSgo.d.ts → job_posting_service_latest-C6TSGfcJ.d.ts} +986 -986
- package/dist/{job_posting_service_latest-DOGQ9tEu.d.cts → job_posting_service_latest-duSSyFvo.d.cts} +1 -1
- package/dist/{job_posting_service_latest-DOGQ9tEu.d.ts → job_posting_service_latest-duSSyFvo.d.ts} +1 -1
- package/dist/{shared_pickle_output_latest-Bwfg5B4p.d.cts → shared_pickle_output_latest--XZhOUyE.d.cts} +48 -48
- package/dist/{shared_pickle_output_latest-Bwfg5B4p.d.ts → shared_pickle_output_latest--XZhOUyE.d.ts} +48 -48
package/dist/index.js
CHANGED
|
@@ -1118,6 +1118,7 @@ var Combobox = forwardRef11((props, ref) => {
|
|
|
1118
1118
|
classNames,
|
|
1119
1119
|
multiselect,
|
|
1120
1120
|
placeholder,
|
|
1121
|
+
error,
|
|
1121
1122
|
variant = "default",
|
|
1122
1123
|
size,
|
|
1123
1124
|
icon,
|
|
@@ -1268,7 +1269,8 @@ var Combobox = forwardRef11((props, ref) => {
|
|
|
1268
1269
|
children: /* @__PURE__ */ jsx19(CircleX2, { className: "h-4 w-4 text-green-100" })
|
|
1269
1270
|
}
|
|
1270
1271
|
)
|
|
1271
|
-
] })
|
|
1272
|
+
] }),
|
|
1273
|
+
/* @__PURE__ */ jsx19(ErrorMessage_default, { message: error })
|
|
1272
1274
|
] });
|
|
1273
1275
|
});
|
|
1274
1276
|
Combobox.displayName = "Combobox";
|
|
@@ -1693,7 +1695,14 @@ var InputOtp = forwardRef18(
|
|
|
1693
1695
|
maxLength: digits,
|
|
1694
1696
|
"data-testid": `input-otp-element-${props.id}`,
|
|
1695
1697
|
...props,
|
|
1696
|
-
children: [...Array(digits)].map((_, index) => /* @__PURE__ */ jsx26(InputOTPGroup, { children: /* @__PURE__ */ jsx26(
|
|
1698
|
+
children: [...Array(digits)].map((_, index) => /* @__PURE__ */ jsx26(InputOTPGroup, { children: /* @__PURE__ */ jsx26(
|
|
1699
|
+
InputOTPSlot,
|
|
1700
|
+
{
|
|
1701
|
+
"data-testid": `input-otp-slot-${index}`,
|
|
1702
|
+
index,
|
|
1703
|
+
error: Boolean(error)
|
|
1704
|
+
}
|
|
1705
|
+
) }, index))
|
|
1697
1706
|
}
|
|
1698
1707
|
) }),
|
|
1699
1708
|
/* @__PURE__ */ jsx26(ErrorMessage_default, { message: error })
|
|
@@ -2081,7 +2090,7 @@ import { jsx as jsx37 } from "react/jsx-runtime";
|
|
|
2081
2090
|
function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
2082
2091
|
const { history } = useWindowHistory();
|
|
2083
2092
|
const router = useRouter();
|
|
2084
|
-
const isAcceptedRoute = (r) => !!acceptedRoutes?.find((route) => new RegExp("^" + route + "$", "i").test(r));
|
|
2093
|
+
const isAcceptedRoute = (r) => !!acceptedRoutes?.find((route) => new RegExp("^" + route + "$", "i").test(new URL(r).pathname));
|
|
2085
2094
|
const goBack = () => {
|
|
2086
2095
|
const previous = history[history.length - 2];
|
|
2087
2096
|
if (history.length > 1 && isAcceptedRoute(previous)) {
|
|
@@ -2786,7 +2795,10 @@ function formattedJobLocation(job) {
|
|
|
2786
2795
|
return [address, remote].filter(Boolean).join(" | ");
|
|
2787
2796
|
}
|
|
2788
2797
|
|
|
2789
|
-
// src/types/
|
|
2798
|
+
// src/types/latest/company_service_latest.ts
|
|
2799
|
+
import { z as z2 } from "zod";
|
|
2800
|
+
|
|
2801
|
+
// src/types/latest/shared_pickle_output_latest.ts
|
|
2790
2802
|
var shared_pickle_output_latest_exports = {};
|
|
2791
2803
|
__export(shared_pickle_output_latest_exports, {
|
|
2792
2804
|
CurrencyEnum: () => CurrencyEnum,
|
|
@@ -2862,148 +2874,7 @@ var imageSchema = z.object({
|
|
|
2862
2874
|
asset: z.optional(imageAssetSchema).describe("The asset for the image")
|
|
2863
2875
|
});
|
|
2864
2876
|
|
|
2865
|
-
// src/
|
|
2866
|
-
function salaryRange(salary) {
|
|
2867
|
-
if (!salary) return null;
|
|
2868
|
-
const min = salary.minValue;
|
|
2869
|
-
const max = salary.maxValue;
|
|
2870
|
-
const single = salary.singleValue;
|
|
2871
|
-
const signs = {
|
|
2872
|
-
[CurrencyEnum.Values.USD]: "$",
|
|
2873
|
-
[CurrencyEnum.Values.GBP]: "\xA3",
|
|
2874
|
-
[CurrencyEnum.Values.EUR]: "\u20AC"
|
|
2875
|
-
};
|
|
2876
|
-
const sign = signs[salary.currency ?? CurrencyEnum.Values.USD];
|
|
2877
|
-
if (min == null && max == null && single == null) return null;
|
|
2878
|
-
if (single != null) return sign + single.toLocaleString();
|
|
2879
|
-
if (min === max) return sign + min?.toLocaleString();
|
|
2880
|
-
if (min != null && max != null)
|
|
2881
|
-
return sign + min?.toLocaleString() + " - " + sign + max?.toLocaleString();
|
|
2882
|
-
return null;
|
|
2883
|
-
}
|
|
2884
|
-
|
|
2885
|
-
// src/components/jobPost/JobPost.tsx
|
|
2886
|
-
import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2887
|
-
function JobPost({
|
|
2888
|
-
job,
|
|
2889
|
-
bannerSrc,
|
|
2890
|
-
avatarSrc,
|
|
2891
|
-
standalone,
|
|
2892
|
-
avatarHref,
|
|
2893
|
-
fallbackHref,
|
|
2894
|
-
actions
|
|
2895
|
-
}) {
|
|
2896
|
-
const formattedEmploymentType = useDisplayText("employmentType", job.employmentType);
|
|
2897
|
-
const formattedEmploymentLevel = useDisplayText("employmentLevel", job.employmentLevel);
|
|
2898
|
-
const formattedJobFunction = useDisplayText("jobFunction", job.jobFunction);
|
|
2899
|
-
const formattedLocation = formattedJobLocation(job);
|
|
2900
|
-
const formattedSalary = salaryRange(job.estimatedSalary);
|
|
2901
|
-
const formattedDate = DateFns.formatDistanceToNow(new Date(job.datePosted), {
|
|
2902
|
-
addSuffix: true
|
|
2903
|
-
});
|
|
2904
|
-
const tags = [
|
|
2905
|
-
!!formattedSalary && {
|
|
2906
|
-
icon: "banknote",
|
|
2907
|
-
name: "salary",
|
|
2908
|
-
label: `${formattedSalary} a year`
|
|
2909
|
-
},
|
|
2910
|
-
!!formattedEmploymentType && {
|
|
2911
|
-
icon: "briefcase-business",
|
|
2912
|
-
name: "employmentType",
|
|
2913
|
-
label: formattedEmploymentType
|
|
2914
|
-
},
|
|
2915
|
-
!!formattedEmploymentLevel && {
|
|
2916
|
-
icon: "circle-user",
|
|
2917
|
-
name: "level",
|
|
2918
|
-
label: formattedEmploymentLevel
|
|
2919
|
-
},
|
|
2920
|
-
!!formattedJobFunction && {
|
|
2921
|
-
icon: "briefcase-business",
|
|
2922
|
-
name: "jobFunction",
|
|
2923
|
-
label: formattedJobFunction
|
|
2924
|
-
},
|
|
2925
|
-
!!formattedLocation && {
|
|
2926
|
-
icon: "map-pin",
|
|
2927
|
-
name: "location",
|
|
2928
|
-
label: formattedLocation
|
|
2929
|
-
}
|
|
2930
|
-
].filter((t) => !!t);
|
|
2931
|
-
return /* @__PURE__ */ jsxs24(
|
|
2932
|
-
"div",
|
|
2933
|
-
{
|
|
2934
|
-
className: cn(
|
|
2935
|
-
"flex flex-col gap-10 pb-4",
|
|
2936
|
-
!standalone && "border-1 rounded-3xl border-grey-5"
|
|
2937
|
-
),
|
|
2938
|
-
children: [
|
|
2939
|
-
/* @__PURE__ */ jsx39(
|
|
2940
|
-
JobHeader,
|
|
2941
|
-
{
|
|
2942
|
-
title: job.title,
|
|
2943
|
-
bannerSrc,
|
|
2944
|
-
avatarName: job.hiringOrganization?.companyName,
|
|
2945
|
-
avatarSrc: job.hiringOrganization?.logo?.asset?.url,
|
|
2946
|
-
subtitles: [job.hiringOrganization?.companyName ?? "", `Posted ${formattedDate}`],
|
|
2947
|
-
actions,
|
|
2948
|
-
standalone,
|
|
2949
|
-
avatarHref,
|
|
2950
|
-
backFallbackHref: fallbackHref,
|
|
2951
|
-
tags
|
|
2952
|
-
}
|
|
2953
|
-
),
|
|
2954
|
-
/* @__PURE__ */ jsxs24("div", { className: "flex flex-col gap-8 px-6", children: [
|
|
2955
|
-
/* @__PURE__ */ jsx39(JobDescription, { description: job.description }),
|
|
2956
|
-
/* @__PURE__ */ jsx39(
|
|
2957
|
-
CompanyTake,
|
|
2958
|
-
{
|
|
2959
|
-
avatarSrc,
|
|
2960
|
-
content: job.hiringOrganization?.companyNDG?.companyNDGTake
|
|
2961
|
-
}
|
|
2962
|
-
),
|
|
2963
|
-
/* @__PURE__ */ jsx39(
|
|
2964
|
-
CompanyInformation,
|
|
2965
|
-
{
|
|
2966
|
-
name: job.hiringOrganization?.companyName ?? "",
|
|
2967
|
-
how: job.hiringOrganization?.companyPhilosophy?.companyHow,
|
|
2968
|
-
mission: job.hiringOrganization?.companyPhilosophy?.companyMission,
|
|
2969
|
-
wow: job.hiringOrganization?.companyNDG?.companyWow,
|
|
2970
|
-
website: job.hiringOrganization?.companyWebsite
|
|
2971
|
-
}
|
|
2972
|
-
),
|
|
2973
|
-
/* @__PURE__ */ jsx39(
|
|
2974
|
-
CompanyBenefits,
|
|
2975
|
-
{
|
|
2976
|
-
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
|
|
2977
|
-
}
|
|
2978
|
-
)
|
|
2979
|
-
] })
|
|
2980
|
-
]
|
|
2981
|
-
}
|
|
2982
|
-
);
|
|
2983
|
-
}
|
|
2984
|
-
|
|
2985
|
-
// src/types/data/company_service_latest.ts
|
|
2986
|
-
var company_service_latest_exports = {};
|
|
2987
|
-
__export(company_service_latest_exports, {
|
|
2988
|
-
CategoryEnum: () => CategoryEnum,
|
|
2989
|
-
OfficeTypeEnum: () => OfficeTypeEnum,
|
|
2990
|
-
PublishStatusEnum: () => PublishStatusEnum,
|
|
2991
|
-
TitleEnum: () => TitleEnum,
|
|
2992
|
-
TypeEnum: () => TypeEnum2,
|
|
2993
|
-
companyBenefitsSchema: () => companyBenefitsSchema,
|
|
2994
|
-
companyCareersSchema: () => companyCareersSchema,
|
|
2995
|
-
companyNdgSchema: () => companyNdgSchema,
|
|
2996
|
-
companyPhilosophySchema: () => companyPhilosophySchema,
|
|
2997
|
-
companySchema: () => companySchema,
|
|
2998
|
-
foundingInformationSchema: () => foundingInformationSchema,
|
|
2999
|
-
industrySchema: () => industrySchema,
|
|
3000
|
-
jobBoardSchema: () => jobBoardSchema,
|
|
3001
|
-
ngdMetadataSchema: () => ngdMetadataSchema,
|
|
3002
|
-
officeSchema: () => officeSchema,
|
|
3003
|
-
personSchema: () => personSchema,
|
|
3004
|
-
socialMediaSchema: () => socialMediaSchema
|
|
3005
|
-
});
|
|
3006
|
-
import { z as z2 } from "zod";
|
|
2877
|
+
// src/types/latest/company_service_latest.ts
|
|
3007
2878
|
var TypeEnum2 = z2.enum(["OFFICE"]);
|
|
3008
2879
|
var CategoryEnum = z2.enum(["FINANCIAL", "HEALTH", "PROFESSIONAL_DEVELOPMENT", "WORK_LIFE_BALANCE"]);
|
|
3009
2880
|
var TitleEnum = z2.enum(["DMD", "JD", "MBA", "MD", "MHA", "MPH", "PT", "PH_D", "RN"]);
|
|
@@ -3074,7 +2945,7 @@ var companyNdgSchema = z2.object({
|
|
|
3074
2945
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
3075
2946
|
type: z2.string().describe("Document type used for schema"),
|
|
3076
2947
|
companyWow: z2.optional(z2.string()).describe("What is the wow of this company?"),
|
|
3077
|
-
|
|
2948
|
+
companyNdgTake: z2.optional(z2.string()).describe("What is the NDG POV on this company?"),
|
|
3078
2949
|
companyBestFit: z2.optional(z2.array(z2.string())),
|
|
3079
2950
|
companyInterests: z2.optional(z2.array(z2.string()))
|
|
3080
2951
|
});
|
|
@@ -3110,7 +2981,7 @@ var companySchema = z2.object({
|
|
|
3110
2981
|
brandColor: z2.optional(z2.string()).describe("The brand color of the company"),
|
|
3111
2982
|
companyCareers: z2.optional(companyCareersSchema).describe("Career Specific Information for the company."),
|
|
3112
2983
|
companyPhilosophy: z2.optional(companyPhilosophySchema).describe("Company mission,values and how the company achieves its mission."),
|
|
3113
|
-
|
|
2984
|
+
companyNdg: z2.optional(companyNdgSchema).describe("Next Degree specific information for the company."),
|
|
3114
2985
|
foundingInfo: z2.optional(foundingInformationSchema),
|
|
3115
2986
|
headquartersLocation: z2.optional(placeSchema),
|
|
3116
2987
|
employeeEstimate: z2.optional(z2.string()),
|
|
@@ -3128,22 +2999,7 @@ var officeSchema = z2.object({
|
|
|
3128
2999
|
updatedAt: z2.optional(z2.string())
|
|
3129
3000
|
});
|
|
3130
3001
|
|
|
3131
|
-
// src/types/
|
|
3132
|
-
var job_posting_service_latest_exports = {};
|
|
3133
|
-
__export(job_posting_service_latest_exports, {
|
|
3134
|
-
BestFitEnum: () => BestFitEnum,
|
|
3135
|
-
ClinicalLicenseEnum: () => ClinicalLicenseEnum,
|
|
3136
|
-
ClinicalSettingEnum: () => ClinicalSettingEnum,
|
|
3137
|
-
ClinicalSpecialtyEnum: () => ClinicalSpecialtyEnum,
|
|
3138
|
-
EmploymentLevelEnum: () => EmploymentLevelEnum,
|
|
3139
|
-
EmploymentTypeEnum: () => EmploymentTypeEnum,
|
|
3140
|
-
JobFunctionEnum: () => JobFunctionEnum,
|
|
3141
|
-
JobLocationTypeEnum: () => JobLocationTypeEnum,
|
|
3142
|
-
PublishStatusEnum: () => PublishStatusEnum2,
|
|
3143
|
-
ShiftEnum: () => ShiftEnum,
|
|
3144
|
-
TypeEnum: () => TypeEnum3,
|
|
3145
|
-
jobPostSchema: () => jobPostSchema
|
|
3146
|
-
});
|
|
3002
|
+
// src/types/latest/job_posting_service_latest.ts
|
|
3147
3003
|
import { z as z3 } from "zod";
|
|
3148
3004
|
var TypeEnum3 = z3.enum(["JOB_POST"]);
|
|
3149
3005
|
var JobLocationTypeEnum = z3.enum(["FLOAT", "HYBRID", "ONSITE", "REMOTE"]);
|
|
@@ -3192,6 +3048,570 @@ var jobPostSchema = z3.object({
|
|
|
3192
3048
|
applicantLocationRequirements: z3.optional(z3.array(placeSchema)).describe("The geographic location(s) in which employees may be located for to be eligible for the job. The job description must clearly state that the applicant may be located in certain geographical location(s). This property is required if applicants may be located in one or more geographic locations and the job is 100% remote."),
|
|
3193
3049
|
hiringOrganization: z3.optional(companySchema).describe("The organization that is hiring for the role")
|
|
3194
3050
|
});
|
|
3051
|
+
|
|
3052
|
+
// src/types/latest/custom/company_service_sanity.ts
|
|
3053
|
+
import { z as z5 } from "zod";
|
|
3054
|
+
|
|
3055
|
+
// src/types/latest/custom/custom_sanity_models.ts
|
|
3056
|
+
import { z as z4 } from "zod";
|
|
3057
|
+
var sanityReferenceSchema = z4.object({
|
|
3058
|
+
_ref: z4.string(),
|
|
3059
|
+
_type: z4.string(),
|
|
3060
|
+
_key: z4.optional(z4.string())
|
|
3061
|
+
});
|
|
3062
|
+
var sanitySlugSchema = z4.object({
|
|
3063
|
+
current: z4.string(),
|
|
3064
|
+
_type: z4.string(),
|
|
3065
|
+
_key: z4.optional(z4.string())
|
|
3066
|
+
});
|
|
3067
|
+
|
|
3068
|
+
// src/types/latest/custom/company_service_sanity.ts
|
|
3069
|
+
var foundingInformationSchema2 = foundingInformationSchema.extend({
|
|
3070
|
+
_type: z5.string().describe("Document type used within sanity").default("companyFounding"),
|
|
3071
|
+
founders: z5.optional(z5.union([z5.array(personSchema), z5.array(sanityReferenceSchema)])).nullable(),
|
|
3072
|
+
founderList: z5.optional(z5.union([z5.array(personSchema), z5.array(sanityReferenceSchema)])).nullable()
|
|
3073
|
+
}).omit({ type: true }).strict().transform((data) => ({
|
|
3074
|
+
...data,
|
|
3075
|
+
type: data._type,
|
|
3076
|
+
founders: data.founders || data.founderList || void 0
|
|
3077
|
+
})).transform(({ _type, founderList, ...rest }) => rest);
|
|
3078
|
+
var companyNdgSchema2 = companyNdgSchema.extend({
|
|
3079
|
+
_type: z5.string().describe("Document type used within sanity").default("companyNDG"),
|
|
3080
|
+
companyNDGTake: z5.string().nullable().describe("What is the NDG POV on this company?")
|
|
3081
|
+
}).omit({ type: true }).strict().transform((data) => ({
|
|
3082
|
+
...data,
|
|
3083
|
+
type: data._type,
|
|
3084
|
+
companyNdgTake: data.companyNDGTake
|
|
3085
|
+
})).transform(({ _type, companyNDGTake, ...rest }) => rest);
|
|
3086
|
+
var ngdMetadataSchema2 = ngdMetadataSchema.extend({
|
|
3087
|
+
_type: z5.string().describe("Document type used within sanity").default("ndgMetadata")
|
|
3088
|
+
}).omit({ type: true }).transform((data) => ({
|
|
3089
|
+
...data,
|
|
3090
|
+
type: data._type
|
|
3091
|
+
})).transform(({ _type, ...rest }) => rest);
|
|
3092
|
+
var companyPhilosophySchema2 = companyPhilosophySchema.extend({
|
|
3093
|
+
_type: z5.string().describe("Document type used within sanity").default("companyPhilosophy")
|
|
3094
|
+
}).omit({ type: true }).strict().transform((data) => ({
|
|
3095
|
+
...data,
|
|
3096
|
+
type: data._type
|
|
3097
|
+
})).transform(({ _type, ...rest }) => rest);
|
|
3098
|
+
var companyCareersSchema2 = companyCareersSchema.extend({
|
|
3099
|
+
_type: z5.string().describe("Document type used within sanity").default("companyCareers"),
|
|
3100
|
+
companyBenefits: z5.optional(z5.array(
|
|
3101
|
+
z5.union([companyBenefitsSchema, sanityReferenceSchema])
|
|
3102
|
+
)).nullable().describe("What are the specific benefits of that company. The benefit is generic."),
|
|
3103
|
+
jobBoard: z5.union([jobBoardSchema, sanityReferenceSchema]).nullable(),
|
|
3104
|
+
jobBoardSlug: z5.optional(z5.union([z5.array(z5.string()), z5.array(sanitySlugSchema)]))
|
|
3105
|
+
}).omit({ type: true }).strict().transform((data) => ({
|
|
3106
|
+
...data,
|
|
3107
|
+
type: data._type
|
|
3108
|
+
})).transform(({ _type, ...rest }) => rest);
|
|
3109
|
+
var companySchema2 = companySchema.extend({
|
|
3110
|
+
_id: z5.string().describe("The NDG specific id for a job posting in form of ndg-<company_slug>-<unique-job-id>. Serves as unique identifier. Cannot be changed."),
|
|
3111
|
+
_rev: z5.string().nullable().describe("Revision number"),
|
|
3112
|
+
_type: z5.string().describe("Document type used within sanity").default("company"),
|
|
3113
|
+
_createdAt: z5.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
3114
|
+
_updatedAt: z5.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
3115
|
+
companyCareers: companyCareersSchema2.nullable().describe("Career Specific Information for the company."),
|
|
3116
|
+
companyPhilosophy: companyPhilosophySchema2.nullable().describe("Company mission,values and how the company achieves its mission."),
|
|
3117
|
+
companyNDG: companyNdgSchema2.nullable().describe("Next Degree specific information for the company."),
|
|
3118
|
+
foundingInfo: foundingInformationSchema2.nullable(),
|
|
3119
|
+
slug: z5.union([z5.string(), sanitySlugSchema]).describe("The NDG specific slug for a company."),
|
|
3120
|
+
ndgMetadata: ngdMetadataSchema2.nullable(),
|
|
3121
|
+
logo: z5.union([imageSchema, z5.record(z5.any())]).nullable().describe("The logo of the company"),
|
|
3122
|
+
//Deprecated Models
|
|
3123
|
+
logoImageURL: z5.optional(z5.string()).describe("The logo of the company"),
|
|
3124
|
+
industryList: z5.optional(z5.array(sanityReferenceSchema)).describe("The industry of the company")
|
|
3125
|
+
}).omit({ type: true, id: true, createdAt: true, updatedAt: true }).strict().transform((data) => ({
|
|
3126
|
+
...data,
|
|
3127
|
+
type: data._type,
|
|
3128
|
+
id: data._id,
|
|
3129
|
+
createdAt: data._createdAt,
|
|
3130
|
+
updatedAt: data._updatedAt,
|
|
3131
|
+
rev: data._rev
|
|
3132
|
+
})).transform(({ _type, _id, _rev, _createdAt, _updatedAt, ...rest }) => rest);
|
|
3133
|
+
|
|
3134
|
+
// src/types/latest/custom/job_posting_service_sanity.ts
|
|
3135
|
+
import { z as z6 } from "zod";
|
|
3136
|
+
var JobPostTypeEnum = z6.enum(["jobPost"]);
|
|
3137
|
+
var MonetaryAmountTypeEnum = z6.enum(["monetaryAmount"]);
|
|
3138
|
+
var postalAddressSchema2 = postalAddressSchema.extend({
|
|
3139
|
+
_type: z6.string().describe("Document type used within sanity").default("address")
|
|
3140
|
+
}).omit({ type: true }).strict().transform((data) => ({
|
|
3141
|
+
...data,
|
|
3142
|
+
type: data._type
|
|
3143
|
+
})).transform(({ _type, ...rest }) => rest);
|
|
3144
|
+
var quantitativeValueSchema2 = quantitativeValueSchema.extend({
|
|
3145
|
+
_type: z6.string().describe("Document type used within sanity").default("quantitativeValue")
|
|
3146
|
+
}).omit({ type: true }).strict().transform((data) => ({
|
|
3147
|
+
...data,
|
|
3148
|
+
type: data._type
|
|
3149
|
+
})).transform(({ _type, ...rest }) => rest);
|
|
3150
|
+
var monetaryAmountSchema2 = monetaryAmountSchema.extend({
|
|
3151
|
+
_type: z6.string().describe("Document type used within sanity").default("monetaryAmount"),
|
|
3152
|
+
value: quantitativeValueSchema2.optional().describe("The quantitative_value for a given salary")
|
|
3153
|
+
}).omit({ type: true }).strict().transform((data) => ({
|
|
3154
|
+
...data,
|
|
3155
|
+
type: data._type
|
|
3156
|
+
})).transform(({ _type, ...rest }) => rest);
|
|
3157
|
+
var jobPostSchema2 = jobPostSchema.extend({
|
|
3158
|
+
// Override base fields with Sanity-specific fields
|
|
3159
|
+
_id: z6.string().describe("The NDG specific id for a job posting in form of ndg-<company_slug>-<unique-job-id>. Serves as unique identifier. Cannot be changed.").regex(/^ndg-.*-.*$/),
|
|
3160
|
+
_rev: z6.string().optional().describe("Revision number"),
|
|
3161
|
+
_type: z6.string().describe("Document type used within sanity").default("jobPost"),
|
|
3162
|
+
_createdAt: z6.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
3163
|
+
_updatedAt: z6.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
3164
|
+
// Override fields with new schemas
|
|
3165
|
+
estimatedSalary: monetaryAmountSchema2.optional().describe("Determines the estimated salary for a given job posting"),
|
|
3166
|
+
jobLocation: postalAddressSchema2.optional().describe("Determines the primary physical location where the job is to be performed. For remote roles, use applicantLocationRequirements"),
|
|
3167
|
+
// Add Sanity-specific fields
|
|
3168
|
+
ndgMetadata: z6.record(z6.any()).optional(),
|
|
3169
|
+
ndgID: z6.string().optional(),
|
|
3170
|
+
hiringOrganization: z6.optional(z6.union([sanityReferenceSchema, companySchema])),
|
|
3171
|
+
raw: z6.record(z6.any()).optional(),
|
|
3172
|
+
isLoaded: z6.boolean().default(false),
|
|
3173
|
+
isVerified: z6.boolean().default(false),
|
|
3174
|
+
needsReview: z6.boolean().default(false),
|
|
3175
|
+
schema_version: z6.string().optional(),
|
|
3176
|
+
origin: z6.string().optional(),
|
|
3177
|
+
temp: z6.record(z6.any()).optional(),
|
|
3178
|
+
applicationType: z6.string().optional(),
|
|
3179
|
+
// Override clientId to use Sanity naming convention
|
|
3180
|
+
clientID: z6.string()
|
|
3181
|
+
}).omit({ type: true, id: true, createdAt: true, updatedAt: true, clientId: true }).transform((data) => ({
|
|
3182
|
+
...data,
|
|
3183
|
+
type: data._type,
|
|
3184
|
+
id: data._id,
|
|
3185
|
+
createdAt: data._createdAt,
|
|
3186
|
+
updatedAt: data._updatedAt,
|
|
3187
|
+
rev: data._rev
|
|
3188
|
+
})).transform(({ _type, _id, _rev, _createdAt, _updatedAt, ...rest }) => rest);
|
|
3189
|
+
|
|
3190
|
+
// src/lib/salaryRange.ts
|
|
3191
|
+
var CurrencyEnum2 = shared_pickle_output_latest_exports.CurrencyEnum;
|
|
3192
|
+
function salaryRange(salary) {
|
|
3193
|
+
if (!salary) return null;
|
|
3194
|
+
let min = salary.minValue;
|
|
3195
|
+
let max = salary.maxValue;
|
|
3196
|
+
let single = salary.singleValue;
|
|
3197
|
+
let value = salary.value;
|
|
3198
|
+
let unitText = "YEAR";
|
|
3199
|
+
const signs = {
|
|
3200
|
+
[CurrencyEnum2.Values.USD]: "$",
|
|
3201
|
+
[CurrencyEnum2.Values.GBP]: "\xA3",
|
|
3202
|
+
[CurrencyEnum2.Values.EUR]: "\u20AC"
|
|
3203
|
+
};
|
|
3204
|
+
const sign = signs[salary.currency ?? CurrencyEnum2.Values.USD];
|
|
3205
|
+
if (value != null && typeof value === "object") {
|
|
3206
|
+
min = value.minValue;
|
|
3207
|
+
max = value.maxValue;
|
|
3208
|
+
single = value.value;
|
|
3209
|
+
unitText = value.unitText;
|
|
3210
|
+
}
|
|
3211
|
+
if (unitText === "YEAR") unitText = "per year";
|
|
3212
|
+
if (unitText === "MONTH") unitText = "per month";
|
|
3213
|
+
if (unitText === "WEEK") unitText = "per week";
|
|
3214
|
+
if (unitText === "DAY") unitText = "per day";
|
|
3215
|
+
if (unitText === "PER_ACTIVITY") unitText = "per activity";
|
|
3216
|
+
if (unitText === "HOUR") unitText = "per hour";
|
|
3217
|
+
if (min == null && max == null && single == null) return null;
|
|
3218
|
+
if (single != null) return sign + single.toLocaleString() + " " + unitText;
|
|
3219
|
+
if (min === max) return sign + min?.toLocaleString() + " " + unitText;
|
|
3220
|
+
if (min != null && max != null)
|
|
3221
|
+
return sign + min?.toLocaleString() + " - " + sign + max?.toLocaleString() + " " + unitText;
|
|
3222
|
+
return null;
|
|
3223
|
+
}
|
|
3224
|
+
|
|
3225
|
+
// src/components/jobPost/JobPost.tsx
|
|
3226
|
+
import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3227
|
+
function JobPost({
|
|
3228
|
+
job,
|
|
3229
|
+
bannerSrc,
|
|
3230
|
+
avatarSrc,
|
|
3231
|
+
standalone,
|
|
3232
|
+
avatarHref,
|
|
3233
|
+
fallbackHref,
|
|
3234
|
+
backAcceptedRoutes,
|
|
3235
|
+
actions
|
|
3236
|
+
}) {
|
|
3237
|
+
const formattedEmploymentType = useDisplayText("employmentType", job.employmentType);
|
|
3238
|
+
const formattedEmploymentLevel = useDisplayText("employmentLevel", job.employmentLevel);
|
|
3239
|
+
const formattedJobFunction = useDisplayText("jobFunction", job.jobFunction);
|
|
3240
|
+
const formattedLocation = formattedJobLocation(job);
|
|
3241
|
+
const formattedSalary = salaryRange(job.estimatedSalary);
|
|
3242
|
+
const formattedDate = DateFns.formatDistanceToNow(new Date(job.datePosted), {
|
|
3243
|
+
addSuffix: true
|
|
3244
|
+
});
|
|
3245
|
+
const tags = [
|
|
3246
|
+
!!formattedSalary && {
|
|
3247
|
+
icon: "banknote",
|
|
3248
|
+
name: "salary",
|
|
3249
|
+
label: `${formattedSalary} a year`
|
|
3250
|
+
},
|
|
3251
|
+
!!formattedEmploymentType && {
|
|
3252
|
+
icon: "briefcase-business",
|
|
3253
|
+
name: "employmentType",
|
|
3254
|
+
label: formattedEmploymentType
|
|
3255
|
+
},
|
|
3256
|
+
!!formattedEmploymentLevel && {
|
|
3257
|
+
icon: "circle-user",
|
|
3258
|
+
name: "level",
|
|
3259
|
+
label: formattedEmploymentLevel
|
|
3260
|
+
},
|
|
3261
|
+
!!formattedJobFunction && {
|
|
3262
|
+
icon: "briefcase-business",
|
|
3263
|
+
name: "jobFunction",
|
|
3264
|
+
label: formattedJobFunction
|
|
3265
|
+
},
|
|
3266
|
+
!!formattedLocation && {
|
|
3267
|
+
icon: "map-pin",
|
|
3268
|
+
name: "location",
|
|
3269
|
+
label: formattedLocation
|
|
3270
|
+
}
|
|
3271
|
+
].filter((t) => !!t);
|
|
3272
|
+
return /* @__PURE__ */ jsxs24(
|
|
3273
|
+
"div",
|
|
3274
|
+
{
|
|
3275
|
+
className: cn(
|
|
3276
|
+
"flex flex-col gap-10 pb-4",
|
|
3277
|
+
!standalone && "border-1 rounded-3xl border-grey-5"
|
|
3278
|
+
),
|
|
3279
|
+
children: [
|
|
3280
|
+
/* @__PURE__ */ jsx39(
|
|
3281
|
+
JobHeader,
|
|
3282
|
+
{
|
|
3283
|
+
title: job.title,
|
|
3284
|
+
bannerSrc,
|
|
3285
|
+
avatarName: job.hiringOrganization?.companyName,
|
|
3286
|
+
avatarSrc: job.hiringOrganization?.logo?.asset?.url,
|
|
3287
|
+
subtitles: [job.hiringOrganization?.companyName ?? "", `Posted ${formattedDate}`],
|
|
3288
|
+
actions,
|
|
3289
|
+
standalone,
|
|
3290
|
+
avatarHref,
|
|
3291
|
+
backFallbackHref: fallbackHref,
|
|
3292
|
+
backAcceptedRoutes,
|
|
3293
|
+
tags
|
|
3294
|
+
}
|
|
3295
|
+
),
|
|
3296
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex flex-col gap-8 px-6", children: [
|
|
3297
|
+
/* @__PURE__ */ jsx39(JobDescription, { description: job.description }),
|
|
3298
|
+
/* @__PURE__ */ jsx39(
|
|
3299
|
+
CompanyTake,
|
|
3300
|
+
{
|
|
3301
|
+
avatarSrc,
|
|
3302
|
+
content: job.hiringOrganization?.companyNDG?.companyNDGTake
|
|
3303
|
+
}
|
|
3304
|
+
),
|
|
3305
|
+
/* @__PURE__ */ jsx39(
|
|
3306
|
+
CompanyInformation,
|
|
3307
|
+
{
|
|
3308
|
+
name: job.hiringOrganization?.companyName ?? "",
|
|
3309
|
+
how: job.hiringOrganization?.companyPhilosophy?.companyHow,
|
|
3310
|
+
mission: job.hiringOrganization?.companyPhilosophy?.companyMission,
|
|
3311
|
+
wow: job.hiringOrganization?.companyNDG?.companyWow,
|
|
3312
|
+
website: job.hiringOrganization?.companyWebsite
|
|
3313
|
+
}
|
|
3314
|
+
),
|
|
3315
|
+
/* @__PURE__ */ jsx39(
|
|
3316
|
+
CompanyBenefits,
|
|
3317
|
+
{
|
|
3318
|
+
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
|
|
3319
|
+
}
|
|
3320
|
+
)
|
|
3321
|
+
] })
|
|
3322
|
+
]
|
|
3323
|
+
}
|
|
3324
|
+
);
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3327
|
+
// src/types/data/company_service_latest.ts
|
|
3328
|
+
var company_service_latest_exports2 = {};
|
|
3329
|
+
__export(company_service_latest_exports2, {
|
|
3330
|
+
CategoryEnum: () => CategoryEnum2,
|
|
3331
|
+
OfficeTypeEnum: () => OfficeTypeEnum2,
|
|
3332
|
+
PublishStatusEnum: () => PublishStatusEnum3,
|
|
3333
|
+
TitleEnum: () => TitleEnum2,
|
|
3334
|
+
TypeEnum: () => TypeEnum5,
|
|
3335
|
+
companyBenefitsSchema: () => companyBenefitsSchema2,
|
|
3336
|
+
companyCareersSchema: () => companyCareersSchema3,
|
|
3337
|
+
companyNdgSchema: () => companyNdgSchema3,
|
|
3338
|
+
companyPhilosophySchema: () => companyPhilosophySchema3,
|
|
3339
|
+
companySchema: () => companySchema3,
|
|
3340
|
+
foundingInformationSchema: () => foundingInformationSchema3,
|
|
3341
|
+
industrySchema: () => industrySchema2,
|
|
3342
|
+
jobBoardSchema: () => jobBoardSchema2,
|
|
3343
|
+
ngdMetadataSchema: () => ngdMetadataSchema3,
|
|
3344
|
+
officeSchema: () => officeSchema2,
|
|
3345
|
+
personSchema: () => personSchema2,
|
|
3346
|
+
socialMediaSchema: () => socialMediaSchema2
|
|
3347
|
+
});
|
|
3348
|
+
import { z as z8 } from "zod";
|
|
3349
|
+
|
|
3350
|
+
// src/types/data/shared_pickle_output_latest.ts
|
|
3351
|
+
var shared_pickle_output_latest_exports2 = {};
|
|
3352
|
+
__export(shared_pickle_output_latest_exports2, {
|
|
3353
|
+
CurrencyEnum: () => CurrencyEnum3,
|
|
3354
|
+
DetailLevelEnum: () => DetailLevelEnum2,
|
|
3355
|
+
TypeEnum: () => TypeEnum4,
|
|
3356
|
+
UnitTextEnum: () => UnitTextEnum2,
|
|
3357
|
+
imageAssetSchema: () => imageAssetSchema2,
|
|
3358
|
+
imageSchema: () => imageSchema2,
|
|
3359
|
+
monetaryAmountSchema: () => monetaryAmountSchema3,
|
|
3360
|
+
placeSchema: () => placeSchema2,
|
|
3361
|
+
postalAddressSchema: () => postalAddressSchema3,
|
|
3362
|
+
quantitativeValueSchema: () => quantitativeValueSchema3
|
|
3363
|
+
});
|
|
3364
|
+
import { z as z7 } from "zod";
|
|
3365
|
+
var TypeEnum4 = z7.enum(["IMAGE"]);
|
|
3366
|
+
var DetailLevelEnum2 = z7.enum(["COUNTRY", "GEO", "LOCALITY", "POSTAL_CODE", "REGION"]);
|
|
3367
|
+
var UnitTextEnum2 = z7.enum(["DAY", "HOUR", "MONTH", "PER_ACTIVITY", "WEEK", "YEAR"]);
|
|
3368
|
+
var CurrencyEnum3 = z7.enum(["EUR", "GBP", "USD"]);
|
|
3369
|
+
var postalAddressSchema3 = z7.object({
|
|
3370
|
+
version: z7.literal("1.0.0").default("1.0.0"),
|
|
3371
|
+
type: z7.string().describe("Document type used for schema"),
|
|
3372
|
+
addressCountry: z7.string().describe("The physical country as defined in ISO 3166 Alpha-2"),
|
|
3373
|
+
addressRegion: z7.optional(z7.string()).describe("The region in which the locality is, and which is in the country."),
|
|
3374
|
+
addressLocality: z7.optional(z7.string()).describe("The locality in which the street address is, and which is in the region. In the US this would be city."),
|
|
3375
|
+
streetAddress: z7.optional(z7.string()).describe("The street name of the address within the locality."),
|
|
3376
|
+
streetNumber: z7.optional(z7.string()).describe("The house of building number within the street."),
|
|
3377
|
+
postalCode: z7.optional(z7.string()).describe("The postal code"),
|
|
3378
|
+
description: z7.optional(z7.string()).describe("A descriptive string containing the full address.")
|
|
3379
|
+
});
|
|
3380
|
+
var placeSchema2 = z7.object({
|
|
3381
|
+
version: z7.literal("1.0.0").default("1.0.0"),
|
|
3382
|
+
detailLevel: z7.optional(DetailLevelEnum2),
|
|
3383
|
+
latitude: z7.optional(z7.number()).describe("The latitude of a location."),
|
|
3384
|
+
longitude: z7.optional(z7.number()).describe("The longitude of a location."),
|
|
3385
|
+
address: z7.optional(postalAddressSchema3).describe("The physical place of the location")
|
|
3386
|
+
});
|
|
3387
|
+
var quantitativeValueSchema3 = z7.object({
|
|
3388
|
+
version: z7.literal("1.0.0").default("1.0.0"),
|
|
3389
|
+
type: z7.string().describe("Document type used for schema"),
|
|
3390
|
+
value: z7.optional(z7.number()).describe("The single value for some quantity e.g 5000, if a range is needed use minValue and maxValue. Typically used for a single salary."),
|
|
3391
|
+
minValue: z7.optional(z7.number()).describe("The single minium value in a range for a quantitative_value, requires a maximum value."),
|
|
3392
|
+
maxValue: z7.optional(z7.number()).describe("The maximum value in a range for a quantitative_value, requires a minimum value."),
|
|
3393
|
+
unitText: UnitTextEnum2
|
|
3394
|
+
});
|
|
3395
|
+
var monetaryAmountSchema3 = z7.object({
|
|
3396
|
+
version: z7.literal("1.0.0").default("1.0.0"),
|
|
3397
|
+
type: z7.string().describe("Document type used for schema"),
|
|
3398
|
+
singleValue: z7.optional(z7.number()).describe("The annualized single value for some quantity e.g 5000, if a range is needed use minValue and maxValue. Deprecated - use value.value instead."),
|
|
3399
|
+
minValue: z7.optional(z7.number()).describe("The annualized single minium value in a range for a quantitative_value. Deprecated use value.minValue"),
|
|
3400
|
+
maxValue: z7.optional(z7.number()).describe("The annualized maximum value in a range for a quantitative_value. Deprecated use value.maxValue"),
|
|
3401
|
+
value: z7.optional(quantitativeValueSchema3).describe("The quantitative_value for a given salary"),
|
|
3402
|
+
currency: z7.optional(CurrencyEnum3)
|
|
3403
|
+
});
|
|
3404
|
+
var imageAssetSchema2 = z7.object({
|
|
3405
|
+
version: z7.literal("1.0.0").default("1.0.0"),
|
|
3406
|
+
altText: z7.optional(z7.string()).describe("The alt text for the image"),
|
|
3407
|
+
assetId: z7.optional(z7.string()).describe("The asset ID for the image"),
|
|
3408
|
+
description: z7.optional(z7.string()).describe("The description for the image"),
|
|
3409
|
+
extension: z7.optional(z7.string()).describe("The extension for the image"),
|
|
3410
|
+
label: z7.optional(z7.string()).describe("The label for the image"),
|
|
3411
|
+
mimeType: z7.optional(z7.string()).describe("The mime type for the image"),
|
|
3412
|
+
originalFilename: z7.optional(z7.string()).describe("The original filename for the image"),
|
|
3413
|
+
path: z7.optional(z7.string()).describe("The path for the image"),
|
|
3414
|
+
sha1Hash: z7.optional(z7.string()).describe("The SHA1 hash for the image"),
|
|
3415
|
+
size: z7.optional(z7.number()).describe("The size for the image"),
|
|
3416
|
+
title: z7.optional(z7.string()).describe("The title for the image"),
|
|
3417
|
+
uploadId: z7.optional(z7.string()).describe("The upload ID for the image"),
|
|
3418
|
+
url: z7.optional(z7.string()).describe("The URL for the image")
|
|
3419
|
+
});
|
|
3420
|
+
var imageSchema2 = z7.object({
|
|
3421
|
+
version: z7.literal("1.0.0").default("1.0.0"),
|
|
3422
|
+
type: z7.string().describe("Document type used for schema"),
|
|
3423
|
+
asset: z7.optional(imageAssetSchema2).describe("The asset for the image")
|
|
3424
|
+
});
|
|
3425
|
+
|
|
3426
|
+
// src/types/data/company_service_latest.ts
|
|
3427
|
+
var TypeEnum5 = z8.enum(["OFFICE"]);
|
|
3428
|
+
var CategoryEnum2 = z8.enum(["FINANCIAL", "HEALTH", "PROFESSIONAL_DEVELOPMENT", "WORK_LIFE_BALANCE"]);
|
|
3429
|
+
var TitleEnum2 = z8.enum(["DMD", "JD", "MBA", "MD", "MHA", "MPH", "PT", "PH_D", "RN"]);
|
|
3430
|
+
var PublishStatusEnum3 = z8.enum(["DRAFT", "IN_REVIEW", "PUBLISHED", "REMOVED"]);
|
|
3431
|
+
var OfficeTypeEnum2 = z8.enum(["BRANCH", "HEADQUARTERS", "SATELLITE"]);
|
|
3432
|
+
var socialMediaSchema2 = z8.object({
|
|
3433
|
+
version: z8.literal("1.0.0").default("1.0.0"),
|
|
3434
|
+
url: z8.string().describe("The link to the social media platform"),
|
|
3435
|
+
type: z8.string().describe("The type of social media link")
|
|
3436
|
+
});
|
|
3437
|
+
var companyBenefitsSchema2 = z8.object({
|
|
3438
|
+
version: z8.literal("1.0.0").default("1.0.0"),
|
|
3439
|
+
type: z8.string().describe("Document type used for schema"),
|
|
3440
|
+
title: z8.string(),
|
|
3441
|
+
description: z8.optional(z8.string()),
|
|
3442
|
+
category: CategoryEnum2
|
|
3443
|
+
});
|
|
3444
|
+
var industrySchema2 = z8.lazy(() => z8.object({
|
|
3445
|
+
version: z8.literal("1.0.0").default("1.0.0"),
|
|
3446
|
+
type: z8.string().describe("Document type used for schema"),
|
|
3447
|
+
name: z8.string(),
|
|
3448
|
+
description: z8.optional(z8.string()).describe("A brief description of the industry"),
|
|
3449
|
+
onetIndustryId: z8.optional(z8.string()).describe("ONET industry ID"),
|
|
3450
|
+
parent: z8.optional(industrySchema2)
|
|
3451
|
+
}));
|
|
3452
|
+
var jobBoardSchema2 = z8.object({
|
|
3453
|
+
version: z8.literal("1.0.0").default("1.0.0"),
|
|
3454
|
+
type: z8.string().describe("Document type used for schema"),
|
|
3455
|
+
name: z8.string().describe("The name of the job board"),
|
|
3456
|
+
description: z8.string().describe("A brief description of the job board"),
|
|
3457
|
+
logo: z8.optional(imageSchema2).describe("The logo of the job board"),
|
|
3458
|
+
baseUrl: z8.optional(z8.string()).describe("The base URL of the job board")
|
|
3459
|
+
});
|
|
3460
|
+
var personSchema2 = z8.object({
|
|
3461
|
+
version: z8.literal("1.0.0").default("1.0.0"),
|
|
3462
|
+
type: z8.string().describe("Document type used for schema"),
|
|
3463
|
+
firstName: z8.string().describe("The first name of the person"),
|
|
3464
|
+
lastName: z8.string().describe("The last name of the person"),
|
|
3465
|
+
title: z8.optional(z8.array(z8.string())).describe("The titles of the degree of the person"),
|
|
3466
|
+
slug: z8.string().describe("person slug - should be familyname-givenname-title(s)"),
|
|
3467
|
+
jobTitle: z8.optional(z8.string()).describe("The job title of the person"),
|
|
3468
|
+
isDoctor: z8.optional(z8.boolean()).describe("Is the person a doctor"),
|
|
3469
|
+
isMedical: z8.optional(z8.boolean()).describe("Are they of a medical background?"),
|
|
3470
|
+
isScientist: z8.optional(z8.boolean()).describe("Are they a scientist?"),
|
|
3471
|
+
image: z8.optional(imageSchema2).describe("The image of the person"),
|
|
3472
|
+
email: z8.optional(z8.string()).describe("The email of the person"),
|
|
3473
|
+
socialMedia: z8.optional(z8.array(socialMediaSchema2)).describe("The social media links of the person"),
|
|
3474
|
+
telephone: z8.optional(z8.string()).describe("The telephone number of the person"),
|
|
3475
|
+
url: z8.optional(z8.string()).describe("The URL of the person"),
|
|
3476
|
+
address: z8.optional(placeSchema2).describe("The address of the person")
|
|
3477
|
+
});
|
|
3478
|
+
var companyCareersSchema3 = z8.object({
|
|
3479
|
+
version: z8.literal("1.0.0").default("1.0.0"),
|
|
3480
|
+
type: z8.string().describe("Document type used for schema"),
|
|
3481
|
+
careersUrl: z8.string().describe("The URL of the company careers page"),
|
|
3482
|
+
jobBoard: z8.optional(jobBoardSchema2),
|
|
3483
|
+
jobBoardSlug: z8.optional(z8.array(z8.string())),
|
|
3484
|
+
companyBenefits: z8.optional(z8.array(companyBenefitsSchema2)).describe("What are the specific benefits of that company. The benefit is generic.")
|
|
3485
|
+
});
|
|
3486
|
+
var companyPhilosophySchema3 = z8.object({
|
|
3487
|
+
version: z8.literal("1.0.0").default("1.0.0"),
|
|
3488
|
+
type: z8.string().describe("Document type used for schema"),
|
|
3489
|
+
companyMission: z8.optional(z8.string()).describe("The mission statement of the company."),
|
|
3490
|
+
companyHow: z8.optional(z8.string()).describe("How does the company achieve its mission"),
|
|
3491
|
+
companyCulture: z8.optional(z8.array(z8.string())).describe("What are some of the culture aspects of this company?")
|
|
3492
|
+
});
|
|
3493
|
+
var companyNdgSchema3 = z8.object({
|
|
3494
|
+
version: z8.literal("1.0.0").default("1.0.0"),
|
|
3495
|
+
type: z8.string().describe("Document type used for schema"),
|
|
3496
|
+
companyWow: z8.optional(z8.string()).describe("What is the wow of this company?"),
|
|
3497
|
+
companyNDGTake: z8.optional(z8.string()).describe("What is the NDG POV on this company?"),
|
|
3498
|
+
companyBestFit: z8.optional(z8.array(z8.string())),
|
|
3499
|
+
companyInterests: z8.optional(z8.array(z8.string()))
|
|
3500
|
+
});
|
|
3501
|
+
var foundingInformationSchema3 = z8.object({
|
|
3502
|
+
version: z8.literal("1.0.0").default("1.0.0"),
|
|
3503
|
+
type: z8.string().describe("Document type used for schema"),
|
|
3504
|
+
foundedDate: z8.optional(z8.string()),
|
|
3505
|
+
foundedCountry: z8.optional(z8.string()),
|
|
3506
|
+
foundedCity: z8.optional(z8.string()),
|
|
3507
|
+
founders: z8.optional(z8.array(personSchema2))
|
|
3508
|
+
});
|
|
3509
|
+
var ngdMetadataSchema3 = z8.object({
|
|
3510
|
+
version: z8.literal("1.0.0").default("1.0.0"),
|
|
3511
|
+
type: z8.string().describe("Document type used for schema"),
|
|
3512
|
+
lastScraped: z8.optional(z8.string()).describe("Date the last entity was scraped, if applicable"),
|
|
3513
|
+
scraperVersion: z8.optional(z8.string()),
|
|
3514
|
+
postProcessorVersion: z8.optional(z8.string()),
|
|
3515
|
+
uniqueRunId: z8.optional(z8.string()),
|
|
3516
|
+
postProcessorUniqueRunId: z8.optional(z8.string()),
|
|
3517
|
+
isScrapeManaged: z8.optional(z8.boolean()).default(true)
|
|
3518
|
+
});
|
|
3519
|
+
var companySchema3 = z8.object({
|
|
3520
|
+
version: z8.literal("1.0.0").default("1.0.0"),
|
|
3521
|
+
id: z8.string().describe("The NDG specific id for a company. Cannot be changed."),
|
|
3522
|
+
createdAt: z8.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
3523
|
+
updatedAt: z8.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
3524
|
+
companyName: z8.string().describe("The name of the company"),
|
|
3525
|
+
slug: z8.string().describe("The NDG specific slug for a company."),
|
|
3526
|
+
type: z8.string().describe("Document type used for schema"),
|
|
3527
|
+
logo: z8.optional(imageSchema2).describe("The logo of the company"),
|
|
3528
|
+
companyWebsite: z8.optional(z8.string()).describe("The website of the company"),
|
|
3529
|
+
socialMedia: z8.optional(z8.array(socialMediaSchema2)).describe("The social media links of the company"),
|
|
3530
|
+
brandColor: z8.optional(z8.string()).describe("The brand color of the company"),
|
|
3531
|
+
companyCareers: z8.optional(companyCareersSchema3).describe("Career Specific Information for the company."),
|
|
3532
|
+
companyPhilosophy: z8.optional(companyPhilosophySchema3).describe("Company mission,values and how the company achieves its mission."),
|
|
3533
|
+
companyNDG: z8.optional(companyNdgSchema3).describe("Next Degree specific information for the company."),
|
|
3534
|
+
foundingInfo: z8.optional(foundingInformationSchema3),
|
|
3535
|
+
headquartersLocation: z8.optional(placeSchema2),
|
|
3536
|
+
employeeEstimate: z8.optional(z8.string()),
|
|
3537
|
+
publishStatus: z8.optional(z8.string()),
|
|
3538
|
+
ngdMetadata: z8.optional(ngdMetadataSchema3)
|
|
3539
|
+
});
|
|
3540
|
+
var officeSchema2 = z8.object({
|
|
3541
|
+
version: z8.literal("1.0.0").default("1.0.0"),
|
|
3542
|
+
type: z8.string().describe("Document type used for schema"),
|
|
3543
|
+
name: z8.string().describe("Name or nickname for the office (e.g., 'NYC HQ', 'West Coast Branch')"),
|
|
3544
|
+
officeType: OfficeTypeEnum2,
|
|
3545
|
+
companyId: z8.optional(companySchema3),
|
|
3546
|
+
geoLocation: z8.optional(placeSchema2).describe("Geographical location details: coordinates + postal address"),
|
|
3547
|
+
createdAt: z8.optional(z8.string()),
|
|
3548
|
+
updatedAt: z8.optional(z8.string())
|
|
3549
|
+
});
|
|
3550
|
+
|
|
3551
|
+
// src/types/data/job_posting_service_latest.ts
|
|
3552
|
+
var job_posting_service_latest_exports2 = {};
|
|
3553
|
+
__export(job_posting_service_latest_exports2, {
|
|
3554
|
+
BestFitEnum: () => BestFitEnum2,
|
|
3555
|
+
ClinicalLicenseEnum: () => ClinicalLicenseEnum2,
|
|
3556
|
+
ClinicalSettingEnum: () => ClinicalSettingEnum2,
|
|
3557
|
+
ClinicalSpecialtyEnum: () => ClinicalSpecialtyEnum2,
|
|
3558
|
+
EmploymentLevelEnum: () => EmploymentLevelEnum2,
|
|
3559
|
+
EmploymentTypeEnum: () => EmploymentTypeEnum2,
|
|
3560
|
+
JobFunctionEnum: () => JobFunctionEnum2,
|
|
3561
|
+
JobLocationTypeEnum: () => JobLocationTypeEnum2,
|
|
3562
|
+
PublishStatusEnum: () => PublishStatusEnum4,
|
|
3563
|
+
ShiftEnum: () => ShiftEnum2,
|
|
3564
|
+
TypeEnum: () => TypeEnum6,
|
|
3565
|
+
jobPostSchema: () => jobPostSchema3
|
|
3566
|
+
});
|
|
3567
|
+
import { z as z9 } from "zod";
|
|
3568
|
+
var TypeEnum6 = z9.enum(["JOB_POST"]);
|
|
3569
|
+
var JobLocationTypeEnum2 = z9.enum(["FLOAT", "HYBRID", "ONSITE", "REMOTE"]);
|
|
3570
|
+
var EmploymentTypeEnum2 = z9.enum(["CONTRACT", "FULL_TIME", "INTERNSHIP", "OTHER", "PART_TIME", "PER_DIEM", "TEMPORARY"]);
|
|
3571
|
+
var EmploymentLevelEnum2 = z9.enum(["DIRECTOR", "ENTRY_LEVEL", "EXECUTIVE", "EXPERIENCED", "INTERN", "MANAGER"]);
|
|
3572
|
+
var JobFunctionEnum2 = z9.enum(["CLINICAL_RESEARCH", "CUSTOMER_SUCCESS", "DATA_ANALYTICS", "FINANCE_AND_AUDIT", "MARKETING", "OPERATIONS", "PEOPLE_HUMAN_RESOURCES", "PRODUCT_AND_TECH", "QUALITY_ASSURANCE_AND_OUTCOMES", "SALES_AND_BUSINESS_DEVELOPMENT", "STRATEGY_AND_CONSULTING"]);
|
|
3573
|
+
var PublishStatusEnum4 = z9.enum(["DRAFT", "IN_REVIEW", "PUBLISHED", "REMOVED"]);
|
|
3574
|
+
var BestFitEnum2 = z9.enum(["DENTIST", "DIETICIAN", "DOULA", "MEDICAL_ASSISTANT", "MIDWIFE", "NURSE", "OCCUPATIONAL_THERAPIST", "PHARMACIST", "PHYSICAL_THERAPIST", "PHYSICIAN", "PHYSICIAN_ASSISTANT", "PSYCHOLOGIST", "RADIOLOGIST", "SOCIAL_WORKER", "SPEECH_LANGUAGE_PATHOLOGIST", "SURGEON"]);
|
|
3575
|
+
var ClinicalLicenseEnum2 = z9.enum(["CNA", "CNM", "CNS", "COTA", "CRNA", "LPN", "LVN", "NP", "OT", "PT", "PTA", "RN"]);
|
|
3576
|
+
var ShiftEnum2 = z9.enum(["DAY", "EIGHT_HOUR", "EVENING", "FLEXIBLE", "MID_SHIFT", "MONDAY_TO_FRIDAY", "NIGHT", "ON_CALL", "TEN_HOUR", "TWELVE_HOUR", "WEEKENDS"]);
|
|
3577
|
+
var ClinicalSettingEnum2 = z9.enum(["ACUTE_CARE", "AMBULATORY_SURGERY_CENTER", "CLINIC", "HOME_HEALTH", "HOSPITAL", "INPATIENT", "LONG_TERM_CARE", "MED_SPA", "NURSING_HOME", "OFFICE", "OUTPATIENT", "PRIVATE_PRACTICE", "REHAB_CENTER", "SCHOOL", "SKILLED_NURSING_FACILITY"]);
|
|
3578
|
+
var ClinicalSpecialtyEnum2 = z9.enum(["ANESTHESIOLOGY", "CARDIOLOGY", "CASE_MANAGEMENT", "CHRONIC_PAIN", "CLINICAL_ELECTROPHYSIOLOGY", "CRITICAL_AND_ACUTE_CARE", "DERMATOLOGY", "DIALYSIS", "EMERGENCY_MEDICINE", "ENDOCRINOLOGY", "ERGONOMICS", "FEEDING_EATING_AND_SWALLOWING", "GASTROENTEROLOGY", "GERIATRICS", "HAND_THERAPY", "HEMATOLOGY", "HOLISTIC_MEDICINE", "INFORMATICS", "INTERNAL_MEDICINE", "LABOR_AND_DELIVERY", "MANUAL_THERAPY", "MED_SURG", "MENTAL_HEALTH", "NEPHROLOGY", "NEUROLOGY", "ONCOLOGY", "ORTHOPEDICS", "OTOLARYNGOLOGY", "PEDIATRICS", "PHYSICAL_AND_REHABILITATION_MEDICINE", "PLASTIC_SURGERY", "PRIMARY_CARE", "PSYCHIATRY", "PULMONOLOGY", "RADIOLOGY", "SENSORY", "SPORTS", "SURGERY", "TRAUMA_MEDICINE", "URGENT_CARE", "UROLOGY", "VISION", "WOMENS_HEALTH", "WOUND_AND_BURN_CARE"]);
|
|
3579
|
+
var jobPostSchema3 = z9.object({
|
|
3580
|
+
version: z9.literal("1.0.0").default("1.0.0"),
|
|
3581
|
+
id: z9.string().describe("The NDG specific id for a job posting in form of ndg-<company_slug>-<unique-job-id>. Serves as unique identifier. Cannot be changed."),
|
|
3582
|
+
type: z9.string().describe("Document type used for schema"),
|
|
3583
|
+
createdAt: z9.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
3584
|
+
updatedAt: z9.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
3585
|
+
dateAdded: z9.optional(z9.string().datetime()).describe("The date the job was added to the platform"),
|
|
3586
|
+
datePosted: z9.optional(z9.string().datetime()).describe("The date the job was published for public viewing"),
|
|
3587
|
+
dateRemoved: z9.optional(z9.string().datetime()).describe("The date the job was removed from public viewing"),
|
|
3588
|
+
validThrough: z9.optional(z9.string().datetime()).describe("The date the job posting is valid through. After this date it will be removed from public viewing"),
|
|
3589
|
+
vacancyCount: z9.optional(z9.number().int()).describe("The number of vacancies for a given job posting"),
|
|
3590
|
+
clientId: z9.string().describe("The ID assigned by the client to a job - normally the same as the GH / Lever / Ashby ID or internal ID"),
|
|
3591
|
+
url: z9.string().describe("The URL of the job to be displayed for users to apply with. Direct job link."),
|
|
3592
|
+
title: z9.string().describe("The title of the job post"),
|
|
3593
|
+
description: z9.string().describe("The description of the job post saved as markdown. Used for rendering the job description."),
|
|
3594
|
+
richTextDescription: z9.optional(z9.string()).describe("The description of the job post saved as rich text"),
|
|
3595
|
+
isClinical: z9.boolean().default(false).describe("Denotes if a job posting is clinical in nature or not. A role is clinical if it requires direct clinical patient care."),
|
|
3596
|
+
isRemote: z9.boolean().default(false).describe("Denotes if a job posting is remote in nature. For a posting to be 'remote' it must be 100% remote (e.g hybrid roles would denote this to false)."),
|
|
3597
|
+
isVerified: z9.boolean().default(false).describe("Denotes if a job posting has been manually verified - and thus ALL fields can be considered accurate. Can be used for DS training."),
|
|
3598
|
+
isDirectApply: z9.boolean().default(false).describe("Denotes if a job posting url is direct apply. To be direct apply a user must be able to apply to the role without logging in and under 2 clicks."),
|
|
3599
|
+
jobLocationType: z9.optional(z9.array(JobLocationTypeEnum2)),
|
|
3600
|
+
employmentType: z9.optional(z9.array(EmploymentTypeEnum2)),
|
|
3601
|
+
employmentLevel: z9.optional(EmploymentLevelEnum2),
|
|
3602
|
+
jobFunction: z9.optional(JobFunctionEnum2),
|
|
3603
|
+
publishStatus: PublishStatusEnum4,
|
|
3604
|
+
bestFit: z9.optional(z9.array(BestFitEnum2)),
|
|
3605
|
+
clinicalLicense: z9.optional(z9.array(ClinicalLicenseEnum2)),
|
|
3606
|
+
shift: z9.optional(z9.array(ShiftEnum2)),
|
|
3607
|
+
clinicalSetting: z9.optional(z9.array(ClinicalSettingEnum2)),
|
|
3608
|
+
clinicalSpecialty: z9.optional(z9.array(ClinicalSpecialtyEnum2)),
|
|
3609
|
+
estimatedSalary: z9.optional(monetaryAmountSchema3).describe("Determines the estimated salary for a given job posting"),
|
|
3610
|
+
jobLocation: z9.optional(postalAddressSchema3).describe("Determines the primary physical location where the job is to be performed. For remote roles, use applicantLocationRequirements"),
|
|
3611
|
+
applicableOffices: z9.optional(z9.array(officeSchema2)).describe("The physical location(s) in which employees may be located for to be eligible for the job. Used in conjunction with job_location_type."),
|
|
3612
|
+
applicantLocationRequirements: z9.optional(z9.array(placeSchema2)).describe("The geographic location(s) in which employees may be located for to be eligible for the job. The job description must clearly state that the applicant may be located in certain geographical location(s). This property is required if applicants may be located in one or more geographic locations and the job is 100% remote."),
|
|
3613
|
+
hiringOrganization: z9.optional(companySchema3).describe("The organization that is hiring for the role")
|
|
3614
|
+
});
|
|
3195
3615
|
export {
|
|
3196
3616
|
Avatar,
|
|
3197
3617
|
BackButton,
|
|
@@ -3202,7 +3622,7 @@ export {
|
|
|
3202
3622
|
Combobox,
|
|
3203
3623
|
CompanyBenefits,
|
|
3204
3624
|
CompanyInformation,
|
|
3205
|
-
|
|
3625
|
+
company_service_latest_exports2 as CompanyService,
|
|
3206
3626
|
CompanyTake,
|
|
3207
3627
|
Counter,
|
|
3208
3628
|
DatePicker,
|
|
@@ -3212,7 +3632,7 @@ export {
|
|
|
3212
3632
|
JobDescription,
|
|
3213
3633
|
JobHeader,
|
|
3214
3634
|
JobPost,
|
|
3215
|
-
|
|
3635
|
+
job_posting_service_latest_exports2 as JobPostService,
|
|
3216
3636
|
Label_default as Label,
|
|
3217
3637
|
LinkButton,
|
|
3218
3638
|
ListItem_default as ListItem,
|
|
@@ -3221,7 +3641,7 @@ export {
|
|
|
3221
3641
|
Radio,
|
|
3222
3642
|
ReadMore,
|
|
3223
3643
|
Select_default as Select,
|
|
3224
|
-
|
|
3644
|
+
shared_pickle_output_latest_exports2 as SharedService,
|
|
3225
3645
|
Switch,
|
|
3226
3646
|
WindowHistoryProvider,
|
|
3227
3647
|
cn,
|