@next-degree/pickle-shared-js 0.6.47 → 0.6.50
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_latest-uu3w8AR6.d.cts → company_service_latest-B7KhyYDc.d.cts} +2056 -328
- package/dist/{company_service_latest-uu3w8AR6.d.ts → company_service_latest-B7KhyYDc.d.ts} +2056 -328
- package/dist/components/jobPost/JobDescription.cjs +13 -4
- package/dist/components/jobPost/JobDescription.cjs.map +1 -1
- package/dist/components/jobPost/JobDescription.js +13 -4
- package/dist/components/jobPost/JobDescription.js.map +1 -1
- package/dist/components/jobPost/JobPost.cjs +47 -14
- package/dist/components/jobPost/JobPost.cjs.map +1 -1
- package/dist/components/jobPost/JobPost.d.cts +1 -1
- package/dist/components/jobPost/JobPost.d.ts +1 -1
- package/dist/components/jobPost/JobPost.js +47 -14
- package/dist/components/jobPost/JobPost.js.map +1 -1
- package/dist/components/primitives/command.d.cts +1 -1
- package/dist/components/primitives/command.d.ts +1 -1
- package/dist/components/ui/MapComponent.cjs +9 -2
- package/dist/components/ui/MapComponent.cjs.map +1 -1
- package/dist/components/ui/MapComponent.d.cts +1 -1
- package/dist/components/ui/MapComponent.d.ts +1 -1
- package/dist/components/ui/MapComponent.js +9 -2
- package/dist/components/ui/MapComponent.js.map +1 -1
- package/dist/components/ui/ReadMore.cjs +13 -4
- package/dist/components/ui/ReadMore.cjs.map +1 -1
- package/dist/components/ui/ReadMore.js +13 -4
- package/dist/components/ui/ReadMore.js.map +1 -1
- package/dist/components/ui/Select.cjs +5 -11
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.js +5 -11
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/components/ui/StepTabs.cjs +92 -0
- package/dist/components/ui/StepTabs.cjs.map +1 -0
- package/dist/components/ui/StepTabs.d.cts +13 -0
- package/dist/components/ui/StepTabs.d.ts +13 -0
- package/dist/components/ui/StepTabs.js +58 -0
- package/dist/components/ui/StepTabs.js.map +1 -0
- package/dist/{displayText-D3BX6YTj.d.cts → displayText-BCQw5Qq-.d.cts} +2 -2
- package/dist/{displayText-CcePAspL.d.ts → displayText-Bqmpx1Va.d.ts} +2 -2
- package/dist/hooks/useDisplayText.d.cts +3 -3
- package/dist/hooks/useDisplayText.d.ts +3 -3
- package/dist/index.cjs +92 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +92 -55
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_latest-CWuc_SuJ.d.cts → job_posting_service_latest-C2z66hFK.d.cts} +1787 -329
- package/dist/{job_posting_service_latest-CWuc_SuJ.d.ts → job_posting_service_latest-C2z66hFK.d.ts} +1787 -329
- package/dist/lib/locations.d.cts +2 -2
- package/dist/lib/locations.d.ts +2 -2
- package/dist/lib/mappings.d.cts +3 -3
- package/dist/lib/mappings.d.ts +3 -3
- package/dist/lib/salaryRange.cjs +29 -6
- package/dist/lib/salaryRange.cjs.map +1 -1
- package/dist/lib/salaryRange.d.cts +1 -1
- package/dist/lib/salaryRange.d.ts +1 -1
- package/dist/lib/salaryRange.js +29 -6
- package/dist/lib/salaryRange.js.map +1 -1
- package/dist/services/displayText.d.cts +3 -3
- package/dist/services/displayText.d.ts +3 -3
- package/dist/{shared_pickle_output_latest-CxZJXPOS.d.cts → shared_pickle_output_latest-_L9GxVle.d.cts} +164 -8
- package/dist/{shared_pickle_output_latest-CxZJXPOS.d.ts → shared_pickle_output_latest-_L9GxVle.d.ts} +164 -8
- package/dist/styles/globals.css +96 -6
- package/dist/styles/globals.css.map +1 -1
- package/dist/types/data/company_service_latest.cjs +58 -35
- package/dist/types/data/company_service_latest.cjs.map +1 -1
- package/dist/types/data/company_service_latest.d.cts +1 -1
- package/dist/types/data/company_service_latest.d.ts +1 -1
- package/dist/types/data/company_service_latest.js +57 -33
- package/dist/types/data/company_service_latest.js.map +1 -1
- package/dist/types/data/job_posting_service_latest.cjs +57 -32
- package/dist/types/data/job_posting_service_latest.cjs.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/data/job_posting_service_latest.js +57 -32
- package/dist/types/data/job_posting_service_latest.js.map +1 -1
- package/dist/types/data/shared_pickle_output_latest.cjs +33 -6
- package/dist/types/data/shared_pickle_output_latest.cjs.map +1 -1
- package/dist/types/data/shared_pickle_output_latest.d.cts +1 -1
- package/dist/types/data/shared_pickle_output_latest.d.ts +1 -1
- package/dist/types/data/shared_pickle_output_latest.js +31 -6
- package/dist/types/data/shared_pickle_output_latest.js.map +1 -1
- package/package.json +5 -1
package/dist/index.d.cts
CHANGED
|
@@ -27,9 +27,9 @@ export { BackButton } from './components/buttons/BackButton.cjs';
|
|
|
27
27
|
export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.cjs';
|
|
28
28
|
export { useDisplayText } from './hooks/useDisplayText.cjs';
|
|
29
29
|
export { useWindowHistory } from './hooks/useWindowHistory.cjs';
|
|
30
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
31
|
-
export { c as CompanyService } from './company_service_latest-
|
|
32
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
30
|
+
export { j as JobPostService } from './job_posting_service_latest-C2z66hFK.cjs';
|
|
31
|
+
export { c as CompanyService } from './company_service_latest-B7KhyYDc.cjs';
|
|
32
|
+
export { s as SharedService } from './shared_pickle_output_latest-_L9GxVle.cjs';
|
|
33
33
|
import 'react';
|
|
34
34
|
import 'cva/types';
|
|
35
35
|
import 'react/jsx-runtime';
|
|
@@ -40,5 +40,5 @@ import '@googlemaps/google-maps-services-js';
|
|
|
40
40
|
import 'next/link';
|
|
41
41
|
import 'clsx';
|
|
42
42
|
import './lib/icons.cjs';
|
|
43
|
-
import './displayText-
|
|
43
|
+
import './displayText-BCQw5Qq-.cjs';
|
|
44
44
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -27,9 +27,9 @@ export { BackButton } from './components/buttons/BackButton.js';
|
|
|
27
27
|
export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.js';
|
|
28
28
|
export { useDisplayText } from './hooks/useDisplayText.js';
|
|
29
29
|
export { useWindowHistory } from './hooks/useWindowHistory.js';
|
|
30
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
31
|
-
export { c as CompanyService } from './company_service_latest-
|
|
32
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
30
|
+
export { j as JobPostService } from './job_posting_service_latest-C2z66hFK.js';
|
|
31
|
+
export { c as CompanyService } from './company_service_latest-B7KhyYDc.js';
|
|
32
|
+
export { s as SharedService } from './shared_pickle_output_latest-_L9GxVle.js';
|
|
33
33
|
import 'react';
|
|
34
34
|
import 'cva/types';
|
|
35
35
|
import 'react/jsx-runtime';
|
|
@@ -40,5 +40,5 @@ import '@googlemaps/google-maps-services-js';
|
|
|
40
40
|
import 'next/link';
|
|
41
41
|
import 'clsx';
|
|
42
42
|
import './lib/icons.js';
|
|
43
|
-
import './displayText-
|
|
43
|
+
import './displayText-Bqmpx1Va.js';
|
|
44
44
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -138,18 +138,12 @@ var Select = forwardRef3(
|
|
|
138
138
|
}, [value]);
|
|
139
139
|
const toggleOpen = () => setOpen((prev) => !prev);
|
|
140
140
|
const closeOnEscape = (event) => event.key === "Escape" && setOpen(false);
|
|
141
|
+
const handleOnOpenChange = (isOpen) => (!multiselect || isOpen) && setOpen(isOpen);
|
|
141
142
|
const setValueOnEnter = (event, value2) => event.key === "Enter" && handleChange(value2);
|
|
143
|
+
const getLabel = () => selected.map((o) => options?.find((option) => option.value === o)?.title).join(", ");
|
|
142
144
|
const chipLabels = selected?.map((s) => options?.find(({ value: value2 }) => value2 === s)).filter(Boolean);
|
|
143
|
-
function handleLabels() {
|
|
144
|
-
if (multiselect) {
|
|
145
|
-
return selected.map((o) => options?.find((option) => option.value === o)?.title).join(", ");
|
|
146
|
-
}
|
|
147
|
-
return options?.find((option) => option.value === selected.join())?.title;
|
|
148
|
-
}
|
|
149
|
-
function handleOnOpenChange(isOpen) {
|
|
150
|
-
if (!multiselect || isOpen) setOpen(isOpen);
|
|
151
|
-
}
|
|
152
145
|
function handleChange(newValue) {
|
|
146
|
+
if (newValue === "" && !multiselect) return;
|
|
153
147
|
let newSelected = [];
|
|
154
148
|
setSelected((prev) => {
|
|
155
149
|
newSelected = prev.includes(newValue) ? prev.filter((item) => item !== newValue) : [...prev, newValue];
|
|
@@ -198,8 +192,8 @@ var Select = forwardRef3(
|
|
|
198
192
|
SelectPrimitive.Value,
|
|
199
193
|
{
|
|
200
194
|
placeholder: placeholder ?? "Select an option",
|
|
201
|
-
"aria-label":
|
|
202
|
-
children:
|
|
195
|
+
"aria-label": getLabel(),
|
|
196
|
+
children: getLabel()
|
|
203
197
|
}
|
|
204
198
|
) }),
|
|
205
199
|
/* @__PURE__ */ jsx6(
|
|
@@ -501,17 +495,24 @@ var Input_default = Input;
|
|
|
501
495
|
// src/components/ui/MapComponent.tsx
|
|
502
496
|
import { APIProvider, Map, AdvancedMarker, Pin } from "@vis.gl/react-google-maps";
|
|
503
497
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
504
|
-
function MapComponent({
|
|
498
|
+
function MapComponent({
|
|
499
|
+
apiKey,
|
|
500
|
+
mapId,
|
|
501
|
+
position,
|
|
502
|
+
className,
|
|
503
|
+
zoom = 15
|
|
504
|
+
}) {
|
|
505
505
|
const defaultPosition = { lat: 40.715021, lng: -74.00459 };
|
|
506
506
|
const defaultZoom = 11;
|
|
507
507
|
return /* @__PURE__ */ jsx10(APIProvider, { apiKey, children: /* @__PURE__ */ jsx10("div", { className: cn("h-screen max-w-full", className), children: /* @__PURE__ */ jsx10(
|
|
508
508
|
Map,
|
|
509
509
|
{
|
|
510
|
-
|
|
510
|
+
defaultZoom: position ? zoom : defaultZoom,
|
|
511
511
|
center: position || defaultPosition,
|
|
512
512
|
mapId,
|
|
513
513
|
keyboardShortcuts: false,
|
|
514
514
|
disableDefaultUI: true,
|
|
515
|
+
zoomControl: true,
|
|
515
516
|
children: position && /* @__PURE__ */ jsx10(AdvancedMarker, { position, children: /* @__PURE__ */ jsx10(Pin, { background: "#0B5441", borderColor: "#EBFDF1", glyphColor: "#D4F500" }) })
|
|
516
517
|
}
|
|
517
518
|
) }) });
|
|
@@ -1599,10 +1600,19 @@ function ReadMore({ text, ...props }) {
|
|
|
1599
1600
|
const snippet = createReadMoreText(text, maxWords, isExpanded);
|
|
1600
1601
|
return /* @__PURE__ */ jsxs14("div", { ...props, children: [
|
|
1601
1602
|
/* @__PURE__ */ jsx25("div", { "data-testid": "read-more-text", className: "prose lg:prose-lg", children: /* @__PURE__ */ jsx25(Markdown, { children: snippet }) }),
|
|
1602
|
-
/* @__PURE__ */ jsx25(
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1603
|
+
/* @__PURE__ */ jsx25(
|
|
1604
|
+
Button,
|
|
1605
|
+
{
|
|
1606
|
+
type: "button",
|
|
1607
|
+
className: "mt-2 flex items-center justify-center",
|
|
1608
|
+
variant: "link",
|
|
1609
|
+
onClick: toggleText,
|
|
1610
|
+
children: /* @__PURE__ */ jsxs14("p", { className: "text-sm font-bold underline underline-offset-2", children: [
|
|
1611
|
+
"Read ",
|
|
1612
|
+
isExpanded ? "less" : "more"
|
|
1613
|
+
] })
|
|
1614
|
+
}
|
|
1615
|
+
)
|
|
1606
1616
|
] });
|
|
1607
1617
|
}
|
|
1608
1618
|
|
|
@@ -1957,24 +1967,28 @@ __export(shared_pickle_output_latest_exports, {
|
|
|
1957
1967
|
DetailLevelEnum: () => DetailLevelEnum,
|
|
1958
1968
|
TypeEnum: () => TypeEnum,
|
|
1959
1969
|
UnitTextEnum: () => UnitTextEnum,
|
|
1970
|
+
imageAssetSchema: () => imageAssetSchema,
|
|
1971
|
+
imageSchema: () => imageSchema,
|
|
1960
1972
|
monetaryAmountSchema: () => monetaryAmountSchema,
|
|
1961
1973
|
placeSchema: () => placeSchema,
|
|
1962
1974
|
postalAddressSchema: () => postalAddressSchema,
|
|
1963
1975
|
quantitativeValueSchema: () => quantitativeValueSchema
|
|
1964
1976
|
});
|
|
1965
1977
|
import { z } from "zod";
|
|
1966
|
-
var TypeEnum = z.enum(["
|
|
1978
|
+
var TypeEnum = z.enum(["IMAGE"]);
|
|
1967
1979
|
var DetailLevelEnum = z.enum(["COUNTRY", "GEO", "LOCALITY", "POSTAL_CODE", "REGION"]);
|
|
1968
1980
|
var UnitTextEnum = z.enum(["DAY", "HOUR", "MONTH", "PER_ACTIVITY", "WEEK", "YEAR"]);
|
|
1969
1981
|
var CurrencyEnum = z.enum(["EUR", "GBP", "USD"]);
|
|
1970
1982
|
var postalAddressSchema = z.object({
|
|
1971
1983
|
version: z.literal("1.0.0").default("1.0.0"),
|
|
1972
|
-
type: z.string().describe("Document type used
|
|
1984
|
+
type: z.string().describe("Document type used for schema"),
|
|
1973
1985
|
addressCountry: z.string().describe("The physical country as defined in ISO 3166 Alpha-2"),
|
|
1974
1986
|
addressRegion: z.optional(z.string()).describe("The region in which the locality is, and which is in the country."),
|
|
1975
1987
|
addressLocality: z.optional(z.string()).describe("The locality in which the street address is, and which is in the region. In the US this would be city."),
|
|
1976
|
-
streetAddress: z.optional(z.string()).describe("The street address within the locality."),
|
|
1977
|
-
|
|
1988
|
+
streetAddress: z.optional(z.string()).describe("The street name of the address within the locality."),
|
|
1989
|
+
streetNumber: z.optional(z.string()).describe("The house of building number within the street."),
|
|
1990
|
+
postalCode: z.optional(z.string()).describe("The postal code"),
|
|
1991
|
+
description: z.optional(z.string()).describe("A descriptive string containing the full address.")
|
|
1978
1992
|
});
|
|
1979
1993
|
var placeSchema = z.object({
|
|
1980
1994
|
version: z.literal("1.0.0").default("1.0.0"),
|
|
@@ -1985,7 +1999,7 @@ var placeSchema = z.object({
|
|
|
1985
1999
|
});
|
|
1986
2000
|
var quantitativeValueSchema = z.object({
|
|
1987
2001
|
version: z.literal("1.0.0").default("1.0.0"),
|
|
1988
|
-
type: z.string().describe("Document type used
|
|
2002
|
+
type: z.string().describe("Document type used for schema"),
|
|
1989
2003
|
value: z.optional(z.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."),
|
|
1990
2004
|
minValue: z.optional(z.number()).describe("The single minium value in a range for a quantitative_value, requires a maximum value."),
|
|
1991
2005
|
maxValue: z.optional(z.number()).describe("The maximum value in a range for a quantitative_value, requires a minimum value."),
|
|
@@ -1993,13 +2007,34 @@ var quantitativeValueSchema = z.object({
|
|
|
1993
2007
|
});
|
|
1994
2008
|
var monetaryAmountSchema = z.object({
|
|
1995
2009
|
version: z.literal("1.0.0").default("1.0.0"),
|
|
1996
|
-
type: z.string().describe("Document type used
|
|
2010
|
+
type: z.string().describe("Document type used for schema"),
|
|
1997
2011
|
singleValue: z.optional(z.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."),
|
|
1998
2012
|
minValue: z.optional(z.number()).describe("The annualized single minium value in a range for a quantitative_value. Deprecated use value.minValue"),
|
|
1999
2013
|
maxValue: z.optional(z.number()).describe("The annualized maximum value in a range for a quantitative_value. Deprecated use value.maxValue"),
|
|
2000
2014
|
value: z.optional(quantitativeValueSchema).describe("The quantitative_value for a given salary"),
|
|
2001
2015
|
currency: z.optional(CurrencyEnum)
|
|
2002
2016
|
});
|
|
2017
|
+
var imageAssetSchema = z.object({
|
|
2018
|
+
version: z.literal("1.0.0").default("1.0.0"),
|
|
2019
|
+
altText: z.optional(z.string()).describe("The alt text for the image"),
|
|
2020
|
+
assetId: z.optional(z.string()).describe("The asset ID for the image"),
|
|
2021
|
+
description: z.optional(z.string()).describe("The description for the image"),
|
|
2022
|
+
extension: z.optional(z.string()).describe("The extension for the image"),
|
|
2023
|
+
label: z.optional(z.string()).describe("The label for the image"),
|
|
2024
|
+
mimeType: z.optional(z.string()).describe("The mime type for the image"),
|
|
2025
|
+
originalFilename: z.optional(z.string()).describe("The original filename for the image"),
|
|
2026
|
+
path: z.optional(z.string()).describe("The path for the image"),
|
|
2027
|
+
sha1Hash: z.optional(z.string()).describe("The SHA1 hash for the image"),
|
|
2028
|
+
size: z.optional(z.number()).describe("The size for the image"),
|
|
2029
|
+
title: z.optional(z.string()).describe("The title for the image"),
|
|
2030
|
+
uploadId: z.optional(z.string()).describe("The upload ID for the image"),
|
|
2031
|
+
url: z.optional(z.string()).describe("The URL for the image")
|
|
2032
|
+
});
|
|
2033
|
+
var imageSchema = z.object({
|
|
2034
|
+
version: z.literal("1.0.0").default("1.0.0"),
|
|
2035
|
+
type: z.string().describe("Document type used for schema"),
|
|
2036
|
+
asset: z.optional(imageAssetSchema).describe("The asset for the image")
|
|
2037
|
+
});
|
|
2003
2038
|
|
|
2004
2039
|
// src/lib/salaryRange.ts
|
|
2005
2040
|
function salaryRange(salary) {
|
|
@@ -2569,6 +2604,7 @@ function JobPost({
|
|
|
2569
2604
|
title: job.title,
|
|
2570
2605
|
bannerSrc,
|
|
2571
2606
|
avatarName: job.hiringOrganization?.companyName,
|
|
2607
|
+
avatarSrc: job.hiringOrganization?.logo?.asset?.url,
|
|
2572
2608
|
subtitles: [job.hiringOrganization?.companyName ?? "", `Posted ${formattedDate}`],
|
|
2573
2609
|
actions,
|
|
2574
2610
|
standalone,
|
|
@@ -2582,7 +2618,7 @@ function JobPost({
|
|
|
2582
2618
|
CompanyTake,
|
|
2583
2619
|
{
|
|
2584
2620
|
avatarSrc,
|
|
2585
|
-
content: job.hiringOrganization?.
|
|
2621
|
+
content: job.hiringOrganization?.companyNdg?.companyNdgTake
|
|
2586
2622
|
}
|
|
2587
2623
|
),
|
|
2588
2624
|
/* @__PURE__ */ jsx33(
|
|
@@ -2590,15 +2626,15 @@ function JobPost({
|
|
|
2590
2626
|
{
|
|
2591
2627
|
name: job.hiringOrganization?.companyName ?? "",
|
|
2592
2628
|
how: job.hiringOrganization?.companyPhilosophy?.companyHow,
|
|
2593
|
-
mission: job.hiringOrganization?.companyPhilosophy?.
|
|
2594
|
-
wow: job.hiringOrganization?.
|
|
2629
|
+
mission: job.hiringOrganization?.companyPhilosophy?.companyMission,
|
|
2630
|
+
wow: job.hiringOrganization?.companyNdg?.companyWow,
|
|
2595
2631
|
website: job.hiringOrganization?.companyWebsite
|
|
2596
2632
|
}
|
|
2597
2633
|
),
|
|
2598
2634
|
/* @__PURE__ */ jsx33(
|
|
2599
2635
|
CompanyBenefits,
|
|
2600
2636
|
{
|
|
2601
|
-
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.
|
|
2637
|
+
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
|
|
2602
2638
|
}
|
|
2603
2639
|
)
|
|
2604
2640
|
] })
|
|
@@ -2634,12 +2670,11 @@ __export(company_service_latest_exports, {
|
|
|
2634
2670
|
TitleEnum: () => TitleEnum,
|
|
2635
2671
|
TypeEnum: () => TypeEnum2,
|
|
2636
2672
|
companyBenefitsSchema: () => companyBenefitsSchema,
|
|
2637
|
-
|
|
2673
|
+
companyCareersSchema: () => companyCareersSchema,
|
|
2638
2674
|
companyNdgSchema: () => companyNdgSchema,
|
|
2639
2675
|
companyPhilosophySchema: () => companyPhilosophySchema,
|
|
2640
2676
|
companySchema: () => companySchema,
|
|
2641
2677
|
foundingInformationSchema: () => foundingInformationSchema,
|
|
2642
|
-
imageSchema: () => imageSchema,
|
|
2643
2678
|
industrySchema: () => industrySchema,
|
|
2644
2679
|
jobBoardSchema: () => jobBoardSchema,
|
|
2645
2680
|
ngdMetadataSchema: () => ngdMetadataSchema,
|
|
@@ -2653,10 +2688,6 @@ var CategoryEnum = z2.enum(["FINANCIAL", "HEALTH", "PROFESSIONAL_DEVELOPMENT", "
|
|
|
2653
2688
|
var TitleEnum = z2.enum(["DMD", "JD", "MBA", "MD", "MHA", "MPH", "PT", "PH_D", "RN"]);
|
|
2654
2689
|
var PublishStatusEnum = z2.enum(["DRAFT", "IN_REVIEW", "PUBLISHED", "REMOVED"]);
|
|
2655
2690
|
var OfficeTypeEnum = z2.enum(["BRANCH", "HEADQUARTERS", "SATELLITE"]);
|
|
2656
|
-
var imageSchema = z2.object({
|
|
2657
|
-
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2658
|
-
url: z2.string()
|
|
2659
|
-
});
|
|
2660
2691
|
var socialMediaSchema = z2.object({
|
|
2661
2692
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2662
2693
|
url: z2.string().describe("The link to the social media platform"),
|
|
@@ -2664,14 +2695,14 @@ var socialMediaSchema = z2.object({
|
|
|
2664
2695
|
});
|
|
2665
2696
|
var companyBenefitsSchema = z2.object({
|
|
2666
2697
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2667
|
-
type: z2.string().describe("Document type used
|
|
2668
|
-
|
|
2698
|
+
type: z2.string().describe("Document type used for schema"),
|
|
2699
|
+
title: z2.string(),
|
|
2669
2700
|
description: z2.optional(z2.string()),
|
|
2670
2701
|
category: CategoryEnum
|
|
2671
2702
|
});
|
|
2672
2703
|
var industrySchema = z2.lazy(() => z2.object({
|
|
2673
2704
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2674
|
-
type: z2.string().describe("Document type used
|
|
2705
|
+
type: z2.string().describe("Document type used for schema"),
|
|
2675
2706
|
name: z2.string(),
|
|
2676
2707
|
description: z2.optional(z2.string()).describe("A brief description of the industry"),
|
|
2677
2708
|
onetIndustryId: z2.optional(z2.string()).describe("ONET industry ID"),
|
|
@@ -2679,7 +2710,7 @@ var industrySchema = z2.lazy(() => z2.object({
|
|
|
2679
2710
|
}));
|
|
2680
2711
|
var jobBoardSchema = z2.object({
|
|
2681
2712
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2682
|
-
type: z2.string().describe("Document type used
|
|
2713
|
+
type: z2.string().describe("Document type used for schema"),
|
|
2683
2714
|
name: z2.string().describe("The name of the job board"),
|
|
2684
2715
|
description: z2.string().describe("A brief description of the job board"),
|
|
2685
2716
|
logo: z2.optional(imageSchema).describe("The logo of the job board"),
|
|
@@ -2687,7 +2718,7 @@ var jobBoardSchema = z2.object({
|
|
|
2687
2718
|
});
|
|
2688
2719
|
var personSchema = z2.object({
|
|
2689
2720
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2690
|
-
type: z2.string().describe("Document type used
|
|
2721
|
+
type: z2.string().describe("Document type used for schema"),
|
|
2691
2722
|
firstName: z2.string().describe("The first name of the person"),
|
|
2692
2723
|
lastName: z2.string().describe("The last name of the person"),
|
|
2693
2724
|
title: z2.optional(z2.array(z2.string())).describe("The titles of the degree of the person"),
|
|
@@ -2703,56 +2734,62 @@ var personSchema = z2.object({
|
|
|
2703
2734
|
url: z2.optional(z2.string()).describe("The URL of the person"),
|
|
2704
2735
|
address: z2.optional(placeSchema).describe("The address of the person")
|
|
2705
2736
|
});
|
|
2706
|
-
var
|
|
2737
|
+
var companyCareersSchema = z2.object({
|
|
2707
2738
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2739
|
+
type: z2.string().describe("Document type used for schema"),
|
|
2740
|
+
careersUrl: z2.string().describe("The URL of the company careers page"),
|
|
2741
|
+
jobBoard: z2.optional(jobBoardSchema),
|
|
2742
|
+
jobBoardSlug: z2.optional(z2.array(z2.string())),
|
|
2711
2743
|
companyBenefits: z2.optional(z2.array(companyBenefitsSchema)).describe("What are the specific benefits of that company. The benefit is generic.")
|
|
2712
2744
|
});
|
|
2713
2745
|
var companyPhilosophySchema = z2.object({
|
|
2714
2746
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2715
|
-
|
|
2747
|
+
type: z2.string().describe("Document type used for schema"),
|
|
2748
|
+
companyMission: z2.optional(z2.string()).describe("The mission statement of the company."),
|
|
2716
2749
|
companyHow: z2.optional(z2.string()).describe("How does the company achieve its mission"),
|
|
2717
2750
|
companyCulture: z2.optional(z2.array(z2.string())).describe("What are some of the culture aspects of this company?")
|
|
2718
2751
|
});
|
|
2719
2752
|
var companyNdgSchema = z2.object({
|
|
2720
2753
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2754
|
+
type: z2.string().describe("Document type used for schema"),
|
|
2721
2755
|
companyWow: z2.optional(z2.string()).describe("What is the wow of this company?"),
|
|
2722
|
-
|
|
2723
|
-
// Manually edited due to a different naming convention
|
|
2756
|
+
companyNdgTake: z2.optional(z2.string()).describe("What is the NDG POV on this company?"),
|
|
2724
2757
|
companyBestFit: z2.optional(z2.array(z2.string())),
|
|
2725
2758
|
companyInterests: z2.optional(z2.array(z2.string()))
|
|
2726
2759
|
});
|
|
2727
2760
|
var foundingInformationSchema = z2.object({
|
|
2728
2761
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2762
|
+
type: z2.string().describe("Document type used for schema"),
|
|
2763
|
+
foundedDate: z2.optional(z2.string()),
|
|
2764
|
+
foundedCountry: z2.optional(z2.string()),
|
|
2765
|
+
foundedCity: z2.optional(z2.string()),
|
|
2732
2766
|
founders: z2.optional(z2.array(personSchema))
|
|
2733
2767
|
});
|
|
2734
2768
|
var ngdMetadataSchema = z2.object({
|
|
2735
2769
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2770
|
+
type: z2.string().describe("Document type used for schema"),
|
|
2736
2771
|
lastScraped: z2.optional(z2.string()).describe("Date the last entity was scraped, if applicable"),
|
|
2737
2772
|
scraperVersion: z2.optional(z2.string()),
|
|
2738
2773
|
postProcessorVersion: z2.optional(z2.string()),
|
|
2739
2774
|
uniqueRunId: z2.optional(z2.string()),
|
|
2740
2775
|
postProcessorUniqueRunId: z2.optional(z2.string()),
|
|
2741
|
-
|
|
2776
|
+
isScrapeManaged: z2.optional(z2.boolean()).default(true)
|
|
2742
2777
|
});
|
|
2743
2778
|
var companySchema = z2.object({
|
|
2744
2779
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2780
|
+
id: z2.string().describe("The NDG specific id for a company. Cannot be changed."),
|
|
2781
|
+
createdAt: z2.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
2782
|
+
updatedAt: z2.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
2745
2783
|
companyName: z2.string().describe("The name of the company"),
|
|
2746
2784
|
slug: z2.string().describe("The NDG specific slug for a company."),
|
|
2747
|
-
type: z2.string().describe("Document type used
|
|
2785
|
+
type: z2.string().describe("Document type used for schema"),
|
|
2748
2786
|
logo: z2.optional(imageSchema).describe("The logo of the company"),
|
|
2749
2787
|
companyWebsite: z2.optional(z2.string()).describe("The website of the company"),
|
|
2750
2788
|
socialMedia: z2.optional(z2.array(socialMediaSchema)).describe("The social media links of the company"),
|
|
2751
2789
|
brandColor: z2.optional(z2.string()).describe("The brand color of the company"),
|
|
2752
|
-
companyCareers: z2.optional(
|
|
2790
|
+
companyCareers: z2.optional(companyCareersSchema).describe("Career Specific Information for the company."),
|
|
2753
2791
|
companyPhilosophy: z2.optional(companyPhilosophySchema).describe("Company mission,values and how the company achieves its mission."),
|
|
2754
|
-
|
|
2755
|
-
// Manually edited due to a different naming convention
|
|
2792
|
+
companyNdg: z2.optional(companyNdgSchema).describe("Next Degree specific information for the company."),
|
|
2756
2793
|
foundingInfo: z2.optional(foundingInformationSchema),
|
|
2757
2794
|
headquartersLocation: z2.optional(placeSchema),
|
|
2758
2795
|
employeeEstimate: z2.optional(z2.string()),
|
|
@@ -2761,7 +2798,7 @@ var companySchema = z2.object({
|
|
|
2761
2798
|
});
|
|
2762
2799
|
var officeSchema = z2.object({
|
|
2763
2800
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2764
|
-
type: z2.string().describe("Document type used
|
|
2801
|
+
type: z2.string().describe("Document type used for schema"),
|
|
2765
2802
|
name: z2.string().describe("Name or nickname for the office (e.g., 'NYC HQ', 'West Coast Branch')"),
|
|
2766
2803
|
officeType: OfficeTypeEnum,
|
|
2767
2804
|
companyId: z2.optional(companySchema),
|
|
@@ -2785,7 +2822,7 @@ var ClinicalSpecialtyEnum = z3.enum(["ANESTHESIOLOGY", "CARDIOLOGY", "CASE_MANAG
|
|
|
2785
2822
|
var jobPostSchema = z3.object({
|
|
2786
2823
|
version: z3.literal("1.0.0").default("1.0.0"),
|
|
2787
2824
|
id: z3.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."),
|
|
2788
|
-
type: z3.string().describe("Document type used
|
|
2825
|
+
type: z3.string().describe("Document type used for schema"),
|
|
2789
2826
|
createdAt: z3.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
2790
2827
|
updatedAt: z3.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
2791
2828
|
dateAdded: z3.optional(z3.string().datetime()).describe("The date the job was added to the platform"),
|