@next-degree/pickle-shared-js 0.9.7 → 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.
Files changed (39) hide show
  1. package/dist/{company_service_sanity-BR1XSAj3.d.ts → company_service_sanity-BZtdt7Df.d.ts} +1996 -1996
  2. package/dist/{company_service_sanity-D9tvlc53.d.cts → company_service_sanity-Bedw6Mhk.d.cts} +1996 -1996
  3. package/dist/components/jobPost/JobPost.cjs +355 -11
  4. package/dist/components/jobPost/JobPost.cjs.map +1 -1
  5. package/dist/components/jobPost/JobPost.js +360 -11
  6. package/dist/components/jobPost/JobPost.js.map +1 -1
  7. package/dist/index.cjs +575 -166
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +575 -166
  10. package/dist/index.js.map +1 -1
  11. package/dist/{job_posting_service_sanity-DwNhHT1w.d.ts → job_posting_service_sanity-B6APEfOO.d.ts} +1896 -1896
  12. package/dist/{job_posting_service_sanity-J281ln61.d.cts → job_posting_service_sanity-CLQAVXTy.d.cts} +1896 -1896
  13. package/dist/lib/salaryRange.cjs +355 -11
  14. package/dist/lib/salaryRange.cjs.map +1 -1
  15. package/dist/lib/salaryRange.d.cts +2 -1
  16. package/dist/lib/salaryRange.d.ts +2 -1
  17. package/dist/lib/salaryRange.js +361 -11
  18. package/dist/lib/salaryRange.js.map +1 -1
  19. package/dist/types/index.d.cts +5 -5
  20. package/dist/types/index.d.ts +5 -5
  21. package/dist/types/latest/company_service_latest.d.cts +1 -1
  22. package/dist/types/latest/company_service_latest.d.ts +1 -1
  23. package/dist/types/latest/custom/company_service_sanity.d.cts +3 -3
  24. package/dist/types/latest/custom/company_service_sanity.d.ts +3 -3
  25. package/dist/types/latest/custom/custom_sanity_models.d.cts +2 -2
  26. package/dist/types/latest/custom/custom_sanity_models.d.ts +2 -2
  27. package/dist/types/latest/custom/job_posting_service_sanity.d.cts +3 -3
  28. package/dist/types/latest/custom/job_posting_service_sanity.d.ts +3 -3
  29. package/dist/types/latest/job_posting_service_latest.d.cts +1 -1
  30. package/dist/types/latest/job_posting_service_latest.d.ts +1 -1
  31. package/dist/types/latest/shared_pickle_output_latest.d.cts +1 -1
  32. package/dist/types/latest/shared_pickle_output_latest.d.ts +1 -1
  33. package/package.json +1 -1
  34. package/dist/{company_service_latest-CWBnweTJ.d.cts → company_service_latest-BmiEQ4dO.d.cts} +1060 -1060
  35. package/dist/{company_service_latest-CWBnweTJ.d.ts → company_service_latest-BmiEQ4dO.d.ts} +1060 -1060
  36. package/dist/{job_posting_service_latest-DSpkRuDi.d.ts → job_posting_service_latest-C6TSGfcJ.d.cts} +1038 -1038
  37. package/dist/{job_posting_service_latest-DSpkRuDi.d.cts → job_posting_service_latest-C6TSGfcJ.d.ts} +1038 -1038
  38. package/dist/{shared_pickle_output_latest-CJb9E6oz.d.cts → shared_pickle_output_latest--XZhOUyE.d.cts} +38 -38
  39. package/dist/{shared_pickle_output_latest-CJb9E6oz.d.ts → shared_pickle_output_latest--XZhOUyE.d.ts} +38 -38
package/dist/index.js CHANGED
@@ -2795,7 +2795,10 @@ function formattedJobLocation(job) {
2795
2795
  return [address, remote].filter(Boolean).join(" | ");
2796
2796
  }
2797
2797
 
2798
- // src/types/data/shared_pickle_output_latest.ts
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
2799
2802
  var shared_pickle_output_latest_exports = {};
2800
2803
  __export(shared_pickle_output_latest_exports, {
2801
2804
  CurrencyEnum: () => CurrencyEnum,
@@ -2871,150 +2874,7 @@ var imageSchema = z.object({
2871
2874
  asset: z.optional(imageAssetSchema).describe("The asset for the image")
2872
2875
  });
2873
2876
 
2874
- // src/lib/salaryRange.ts
2875
- function salaryRange(salary) {
2876
- if (!salary) return null;
2877
- const min = salary.minValue;
2878
- const max = salary.maxValue;
2879
- const single = salary.singleValue;
2880
- const signs = {
2881
- [CurrencyEnum.Values.USD]: "$",
2882
- [CurrencyEnum.Values.GBP]: "\xA3",
2883
- [CurrencyEnum.Values.EUR]: "\u20AC"
2884
- };
2885
- const sign = signs[salary.currency ?? CurrencyEnum.Values.USD];
2886
- if (min == null && max == null && single == null) return null;
2887
- if (single != null) return sign + single.toLocaleString();
2888
- if (min === max) return sign + min?.toLocaleString();
2889
- if (min != null && max != null)
2890
- return sign + min?.toLocaleString() + " - " + sign + max?.toLocaleString();
2891
- return null;
2892
- }
2893
-
2894
- // src/components/jobPost/JobPost.tsx
2895
- import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
2896
- function JobPost({
2897
- job,
2898
- bannerSrc,
2899
- avatarSrc,
2900
- standalone,
2901
- avatarHref,
2902
- fallbackHref,
2903
- backAcceptedRoutes,
2904
- actions
2905
- }) {
2906
- const formattedEmploymentType = useDisplayText("employmentType", job.employmentType);
2907
- const formattedEmploymentLevel = useDisplayText("employmentLevel", job.employmentLevel);
2908
- const formattedJobFunction = useDisplayText("jobFunction", job.jobFunction);
2909
- const formattedLocation = formattedJobLocation(job);
2910
- const formattedSalary = salaryRange(job.estimatedSalary);
2911
- const formattedDate = DateFns.formatDistanceToNow(new Date(job.datePosted), {
2912
- addSuffix: true
2913
- });
2914
- const tags = [
2915
- !!formattedSalary && {
2916
- icon: "banknote",
2917
- name: "salary",
2918
- label: `${formattedSalary} a year`
2919
- },
2920
- !!formattedEmploymentType && {
2921
- icon: "briefcase-business",
2922
- name: "employmentType",
2923
- label: formattedEmploymentType
2924
- },
2925
- !!formattedEmploymentLevel && {
2926
- icon: "circle-user",
2927
- name: "level",
2928
- label: formattedEmploymentLevel
2929
- },
2930
- !!formattedJobFunction && {
2931
- icon: "briefcase-business",
2932
- name: "jobFunction",
2933
- label: formattedJobFunction
2934
- },
2935
- !!formattedLocation && {
2936
- icon: "map-pin",
2937
- name: "location",
2938
- label: formattedLocation
2939
- }
2940
- ].filter((t) => !!t);
2941
- return /* @__PURE__ */ jsxs24(
2942
- "div",
2943
- {
2944
- className: cn(
2945
- "flex flex-col gap-10 pb-4",
2946
- !standalone && "border-1 rounded-3xl border-grey-5"
2947
- ),
2948
- children: [
2949
- /* @__PURE__ */ jsx39(
2950
- JobHeader,
2951
- {
2952
- title: job.title,
2953
- bannerSrc,
2954
- avatarName: job.hiringOrganization?.companyName,
2955
- avatarSrc: job.hiringOrganization?.logo?.asset?.url,
2956
- subtitles: [job.hiringOrganization?.companyName ?? "", `Posted ${formattedDate}`],
2957
- actions,
2958
- standalone,
2959
- avatarHref,
2960
- backFallbackHref: fallbackHref,
2961
- backAcceptedRoutes,
2962
- tags
2963
- }
2964
- ),
2965
- /* @__PURE__ */ jsxs24("div", { className: "flex flex-col gap-8 px-6", children: [
2966
- /* @__PURE__ */ jsx39(JobDescription, { description: job.description }),
2967
- /* @__PURE__ */ jsx39(
2968
- CompanyTake,
2969
- {
2970
- avatarSrc,
2971
- content: job.hiringOrganization?.companyNDG?.companyNDGTake
2972
- }
2973
- ),
2974
- /* @__PURE__ */ jsx39(
2975
- CompanyInformation,
2976
- {
2977
- name: job.hiringOrganization?.companyName ?? "",
2978
- how: job.hiringOrganization?.companyPhilosophy?.companyHow,
2979
- mission: job.hiringOrganization?.companyPhilosophy?.companyMission,
2980
- wow: job.hiringOrganization?.companyNDG?.companyWow,
2981
- website: job.hiringOrganization?.companyWebsite
2982
- }
2983
- ),
2984
- /* @__PURE__ */ jsx39(
2985
- CompanyBenefits,
2986
- {
2987
- benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
2988
- }
2989
- )
2990
- ] })
2991
- ]
2992
- }
2993
- );
2994
- }
2995
-
2996
- // src/types/data/company_service_latest.ts
2997
- var company_service_latest_exports = {};
2998
- __export(company_service_latest_exports, {
2999
- CategoryEnum: () => CategoryEnum,
3000
- OfficeTypeEnum: () => OfficeTypeEnum,
3001
- PublishStatusEnum: () => PublishStatusEnum,
3002
- TitleEnum: () => TitleEnum,
3003
- TypeEnum: () => TypeEnum2,
3004
- companyBenefitsSchema: () => companyBenefitsSchema,
3005
- companyCareersSchema: () => companyCareersSchema,
3006
- companyNdgSchema: () => companyNdgSchema,
3007
- companyPhilosophySchema: () => companyPhilosophySchema,
3008
- companySchema: () => companySchema,
3009
- foundingInformationSchema: () => foundingInformationSchema,
3010
- industrySchema: () => industrySchema,
3011
- jobBoardSchema: () => jobBoardSchema,
3012
- ngdMetadataSchema: () => ngdMetadataSchema,
3013
- officeSchema: () => officeSchema,
3014
- personSchema: () => personSchema,
3015
- socialMediaSchema: () => socialMediaSchema
3016
- });
3017
- import { z as z2 } from "zod";
2877
+ // src/types/latest/company_service_latest.ts
3018
2878
  var TypeEnum2 = z2.enum(["OFFICE"]);
3019
2879
  var CategoryEnum = z2.enum(["FINANCIAL", "HEALTH", "PROFESSIONAL_DEVELOPMENT", "WORK_LIFE_BALANCE"]);
3020
2880
  var TitleEnum = z2.enum(["DMD", "JD", "MBA", "MD", "MHA", "MPH", "PT", "PH_D", "RN"]);
@@ -3085,7 +2945,7 @@ var companyNdgSchema = z2.object({
3085
2945
  version: z2.literal("1.0.0").default("1.0.0"),
3086
2946
  type: z2.string().describe("Document type used for schema"),
3087
2947
  companyWow: z2.optional(z2.string()).describe("What is the wow of this company?"),
3088
- companyNDGTake: z2.optional(z2.string()).describe("What is the NDG POV on this company?"),
2948
+ companyNdgTake: z2.optional(z2.string()).describe("What is the NDG POV on this company?"),
3089
2949
  companyBestFit: z2.optional(z2.array(z2.string())),
3090
2950
  companyInterests: z2.optional(z2.array(z2.string()))
3091
2951
  });
@@ -3121,7 +2981,7 @@ var companySchema = z2.object({
3121
2981
  brandColor: z2.optional(z2.string()).describe("The brand color of the company"),
3122
2982
  companyCareers: z2.optional(companyCareersSchema).describe("Career Specific Information for the company."),
3123
2983
  companyPhilosophy: z2.optional(companyPhilosophySchema).describe("Company mission,values and how the company achieves its mission."),
3124
- companyNDG: z2.optional(companyNdgSchema).describe("Next Degree specific information for the company."),
2984
+ companyNdg: z2.optional(companyNdgSchema).describe("Next Degree specific information for the company."),
3125
2985
  foundingInfo: z2.optional(foundingInformationSchema),
3126
2986
  headquartersLocation: z2.optional(placeSchema),
3127
2987
  employeeEstimate: z2.optional(z2.string()),
@@ -3139,22 +2999,7 @@ var officeSchema = z2.object({
3139
2999
  updatedAt: z2.optional(z2.string())
3140
3000
  });
3141
3001
 
3142
- // src/types/data/job_posting_service_latest.ts
3143
- var job_posting_service_latest_exports = {};
3144
- __export(job_posting_service_latest_exports, {
3145
- BestFitEnum: () => BestFitEnum,
3146
- ClinicalLicenseEnum: () => ClinicalLicenseEnum,
3147
- ClinicalSettingEnum: () => ClinicalSettingEnum,
3148
- ClinicalSpecialtyEnum: () => ClinicalSpecialtyEnum,
3149
- EmploymentLevelEnum: () => EmploymentLevelEnum,
3150
- EmploymentTypeEnum: () => EmploymentTypeEnum,
3151
- JobFunctionEnum: () => JobFunctionEnum,
3152
- JobLocationTypeEnum: () => JobLocationTypeEnum,
3153
- PublishStatusEnum: () => PublishStatusEnum2,
3154
- ShiftEnum: () => ShiftEnum,
3155
- TypeEnum: () => TypeEnum3,
3156
- jobPostSchema: () => jobPostSchema
3157
- });
3002
+ // src/types/latest/job_posting_service_latest.ts
3158
3003
  import { z as z3 } from "zod";
3159
3004
  var TypeEnum3 = z3.enum(["JOB_POST"]);
3160
3005
  var JobLocationTypeEnum = z3.enum(["FLOAT", "HYBRID", "ONSITE", "REMOTE"]);
@@ -3203,6 +3048,570 @@ var jobPostSchema = z3.object({
3203
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."),
3204
3049
  hiringOrganization: z3.optional(companySchema).describe("The organization that is hiring for the role")
3205
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
+ });
3206
3615
  export {
3207
3616
  Avatar,
3208
3617
  BackButton,
@@ -3213,7 +3622,7 @@ export {
3213
3622
  Combobox,
3214
3623
  CompanyBenefits,
3215
3624
  CompanyInformation,
3216
- company_service_latest_exports as CompanyService,
3625
+ company_service_latest_exports2 as CompanyService,
3217
3626
  CompanyTake,
3218
3627
  Counter,
3219
3628
  DatePicker,
@@ -3223,7 +3632,7 @@ export {
3223
3632
  JobDescription,
3224
3633
  JobHeader,
3225
3634
  JobPost,
3226
- job_posting_service_latest_exports as JobPostService,
3635
+ job_posting_service_latest_exports2 as JobPostService,
3227
3636
  Label_default as Label,
3228
3637
  LinkButton,
3229
3638
  ListItem_default as ListItem,
@@ -3232,7 +3641,7 @@ export {
3232
3641
  Radio,
3233
3642
  ReadMore,
3234
3643
  Select_default as Select,
3235
- shared_pickle_output_latest_exports as SharedService,
3644
+ shared_pickle_output_latest_exports2 as SharedService,
3236
3645
  Switch,
3237
3646
  WindowHistoryProvider,
3238
3647
  cn,