@hadoku/jobplatform-worker 2.32.42 → 2.32.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +317 -18
- package/dist/routes/account.d.ts.map +1 -1
- package/dist/routes/ingest.d.ts.map +1 -1
- package/dist/routes/jobs/feed.d.ts.map +1 -1
- package/dist/routes/jobs/fill.d.ts +6 -0
- package/dist/routes/jobs/fill.d.ts.map +1 -1
- package/dist/routes/jobs/importUrl.d.ts.map +1 -1
- package/dist/routes/jobs/index.d.ts.map +1 -1
- package/dist/routes/jobs/insights.d.ts.map +1 -1
- package/dist/routes/jobs/userSkills.d.ts +3 -0
- package/dist/routes/jobs/userSkills.d.ts.map +1 -0
- package/dist/schemas.d.ts +72 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/skills.d.ts +5 -0
- package/dist/skills.d.ts.map +1 -1
- package/dist/testBoards.d.ts +11 -0
- package/dist/testBoards.d.ts.map +1 -0
- package/migrations/0032_drop_test_board_postings.sql +23 -0
- package/migrations/0033_user_skills.sql +18 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1088,6 +1088,38 @@ const InsightsSchema = z.object({
|
|
|
1088
1088
|
skill_postings: z.number().int()
|
|
1089
1089
|
}).openapi("Insights");
|
|
1090
1090
|
const InsightsResponseSchema = S(InsightsSchema).openapi("InsightsResponse");
|
|
1091
|
+
const SkillProficiencySchema = z.enum(["beginner", "intermediate", "expert"]);
|
|
1092
|
+
const SkillSchema = z.object({
|
|
1093
|
+
id: z.number().int(),
|
|
1094
|
+
name: z.string(),
|
|
1095
|
+
category: z.string().nullable(),
|
|
1096
|
+
proficiency: SkillProficiencySchema,
|
|
1097
|
+
created_at: z.string()
|
|
1098
|
+
}).openapi("Skill");
|
|
1099
|
+
const AddSkillSchema = z.object({
|
|
1100
|
+
name: z.string().trim().min(1).max(80),
|
|
1101
|
+
category: z.string().trim().max(80).optional(),
|
|
1102
|
+
proficiency: SkillProficiencySchema.default("intermediate")
|
|
1103
|
+
}).openapi("AddSkill");
|
|
1104
|
+
const SkillsResponseSchema = S(z.object({ skills: z.array(SkillSchema) })).openapi(
|
|
1105
|
+
"SkillsResponse"
|
|
1106
|
+
);
|
|
1107
|
+
const SkillResponseSchema = S(z.object({ skill: SkillSchema })).openapi("SkillResponse");
|
|
1108
|
+
const JobMatchResponseSchema = S(
|
|
1109
|
+
z.object({
|
|
1110
|
+
/** Skills the posting names that the caller has (canonical names). */
|
|
1111
|
+
matched: z.array(z.string()),
|
|
1112
|
+
/** Skills the posting names that the caller lacks. */
|
|
1113
|
+
missing: z.array(z.string()),
|
|
1114
|
+
/** Every skill the posting names, in vocabulary order. */
|
|
1115
|
+
detected: z.array(z.string()),
|
|
1116
|
+
/** matched / detected, 0–100 (0 when the posting names none). */
|
|
1117
|
+
score: z.number().int(),
|
|
1118
|
+
summary: z.string(),
|
|
1119
|
+
/** What the caller's side came from: their skills list, their profiles' stack, or nothing. */
|
|
1120
|
+
against: z.enum(["skills", "profile_stack", "none"])
|
|
1121
|
+
})
|
|
1122
|
+
).openapi("JobMatchResponse");
|
|
1091
1123
|
const app$5 = new OpenAPIHono();
|
|
1092
1124
|
const healthRoute = createRoute({
|
|
1093
1125
|
method: "get",
|
|
@@ -1663,6 +1695,16 @@ function parseAtsSlug(url) {
|
|
|
1663
1695
|
}
|
|
1664
1696
|
return { ats: null, slug: null };
|
|
1665
1697
|
}
|
|
1698
|
+
const TEST_BOARDS = /* @__PURE__ */ new Set(["greenhouse:linkedin", "lever:linkedin"]);
|
|
1699
|
+
function isTestBoardPosting(url, scraped) {
|
|
1700
|
+
const onTestBoard = (ats, slug2) => !!ats && !!slug2 && TEST_BOARDS.has(`${ats.toLowerCase()}:${slug2.toLowerCase()}`);
|
|
1701
|
+
const parsed = parseAtsSlug(url);
|
|
1702
|
+
return onTestBoard(parsed.ats, parsed.slug) || onTestBoard(scraped?.ats, scraped?.slug);
|
|
1703
|
+
}
|
|
1704
|
+
[...TEST_BOARDS].map((k) => {
|
|
1705
|
+
const [ats, slug2] = k.split(":");
|
|
1706
|
+
return { ats, slug: slug2 };
|
|
1707
|
+
});
|
|
1666
1708
|
const US = [
|
|
1667
1709
|
["arlington", "va", 38.8799, -77.1068],
|
|
1668
1710
|
["austin", "tx", 30.2672, -97.7431],
|
|
@@ -2712,7 +2754,10 @@ const ingestRoute = createRoute({
|
|
|
2712
2754
|
});
|
|
2713
2755
|
const INGEST_BATCH_CHUNK = 100;
|
|
2714
2756
|
app$4.openapi(ingestRoute, async (c) => {
|
|
2715
|
-
const { jobs, batch_number, is_final, source, board_slug } = c.req.valid("json");
|
|
2757
|
+
const { jobs: received, batch_number, is_final, source, board_slug } = c.req.valid("json");
|
|
2758
|
+
const jobs = received.filter(
|
|
2759
|
+
(job) => !isTestBoardPosting(job.url, board_slug ? { ats: source, slug: board_slug } : void 0)
|
|
2760
|
+
);
|
|
2716
2761
|
const db = c.env.JOB_PLATFORM_DB;
|
|
2717
2762
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
2718
2763
|
const stmts = jobs.map((job) => insertJobStatement(db, job, { source, board_slug, now }));
|
|
@@ -2724,7 +2769,7 @@ app$4.openapi(ingestRoute, async (c) => {
|
|
|
2724
2769
|
}
|
|
2725
2770
|
endTime(c, "insert");
|
|
2726
2771
|
const accepted = inserted.filter(Boolean).length;
|
|
2727
|
-
const skipped =
|
|
2772
|
+
const skipped = received.length - accepted;
|
|
2728
2773
|
const seen = jobs.filter((_, i) => !inserted[i]);
|
|
2729
2774
|
const SEEN_CHUNK = 45;
|
|
2730
2775
|
const storedReads = [];
|
|
@@ -3891,6 +3936,7 @@ function deserializeProfile(r) {
|
|
|
3891
3936
|
};
|
|
3892
3937
|
}
|
|
3893
3938
|
const profileRoutes = app$3;
|
|
3939
|
+
const MAX_SEARCH_WORDS = 6;
|
|
3894
3940
|
const MAX_NEARBY = 80;
|
|
3895
3941
|
const LIGHT_CANDIDATE_CAP = 5e4;
|
|
3896
3942
|
const FULL_SCORE_CAP = 800;
|
|
@@ -3989,6 +4035,15 @@ function registerFeedRoute(app2) {
|
|
|
3989
4035
|
}),
|
|
3990
4036
|
min_salary: z.coerce.number().min(0).optional().openapi({
|
|
3991
4037
|
description: "View filter: drop jobs whose salary_max is below this. Jobs with no listed salary are kept — most postings omit it, and hiding them would hide the corpus."
|
|
4038
|
+
}),
|
|
4039
|
+
q: z.string().trim().max(100).optional().openapi({
|
|
4040
|
+
description: "Keyword search over title, company and location, case-insensitive. Words are AND-ed (each must appear in one of the three); at most 6 are used."
|
|
4041
|
+
}),
|
|
4042
|
+
source: z.string().trim().toLowerCase().regex(/^[a-z0-9.-]{1,40}$/).optional().openapi({
|
|
4043
|
+
description: "Only postings from one source: an ATS ('greenhouse', 'ashby', 'lever') or a site ('remoteok'), matched against the posting's ats and source_site."
|
|
4044
|
+
}),
|
|
4045
|
+
track: z.enum(["ic", "manager"]).optional().openapi({
|
|
4046
|
+
description: "Hard filter on the classified role track, for a caller without a profile (a profile's own track applies too)."
|
|
3992
4047
|
})
|
|
3993
4048
|
})
|
|
3994
4049
|
},
|
|
@@ -4038,7 +4093,10 @@ function registerFeedRoute(app2) {
|
|
|
4038
4093
|
min_salary,
|
|
4039
4094
|
near,
|
|
4040
4095
|
radius_miles,
|
|
4041
|
-
include_remote
|
|
4096
|
+
include_remote,
|
|
4097
|
+
q,
|
|
4098
|
+
source,
|
|
4099
|
+
track
|
|
4042
4100
|
} = c.req.valid("query");
|
|
4043
4101
|
const hideDismissed = hideDismissedRaw === "true";
|
|
4044
4102
|
const hideQueued = hideQueuedRaw === "true";
|
|
@@ -4106,6 +4164,24 @@ function registerFeedRoute(app2) {
|
|
|
4106
4164
|
wheres.push(`(${terms.join(" OR ")})`);
|
|
4107
4165
|
whereBinds.push(...nearby.map((p) => `%|${p.key}|%`));
|
|
4108
4166
|
}
|
|
4167
|
+
if (q) {
|
|
4168
|
+
const words = q.split(/\s+/).filter(Boolean).slice(0, MAX_SEARCH_WORDS);
|
|
4169
|
+
for (const word of words) {
|
|
4170
|
+
const pattern = `%${word.replace(/[\\%_]/g, (ch) => `\\${ch}`)}%`;
|
|
4171
|
+
wheres.push(
|
|
4172
|
+
"(j.title LIKE ? ESCAPE '\\' OR j.company LIKE ? ESCAPE '\\' OR j.location LIKE ? ESCAPE '\\')"
|
|
4173
|
+
);
|
|
4174
|
+
whereBinds.push(pattern, pattern, pattern);
|
|
4175
|
+
}
|
|
4176
|
+
}
|
|
4177
|
+
if (source) {
|
|
4178
|
+
wheres.push("(j.ats = ? OR j.source_site LIKE ?)");
|
|
4179
|
+
whereBinds.push(source, `${source}%`);
|
|
4180
|
+
}
|
|
4181
|
+
if (track) {
|
|
4182
|
+
wheres.push("j.role_track = ?");
|
|
4183
|
+
whereBinds.push(track);
|
|
4184
|
+
}
|
|
4109
4185
|
if (userId) {
|
|
4110
4186
|
if (stateFilter === "new") {
|
|
4111
4187
|
wheres.push("js.state IS NULL");
|
|
@@ -6621,6 +6697,21 @@ function validProfile(p) {
|
|
|
6621
6697
|
const o = p;
|
|
6622
6698
|
return typeof o.name === "string" && !!o.name.trim() && typeof o.email === "string";
|
|
6623
6699
|
}
|
|
6700
|
+
const PROFILE_TEXT_LIMITS = {
|
|
6701
|
+
work_authorization: 200,
|
|
6702
|
+
desired_salary: 100,
|
|
6703
|
+
notice_period: 100,
|
|
6704
|
+
master_resume_text: 5e4
|
|
6705
|
+
};
|
|
6706
|
+
function profileProblem(p) {
|
|
6707
|
+
for (const [key, max] of Object.entries(PROFILE_TEXT_LIMITS)) {
|
|
6708
|
+
const v = p[key];
|
|
6709
|
+
if (v === void 0 || v === null) continue;
|
|
6710
|
+
if (typeof v !== "string") return `${key} must be a string`;
|
|
6711
|
+
if (v.length > max) return `${key} is longer than ${max} characters`;
|
|
6712
|
+
}
|
|
6713
|
+
return null;
|
|
6714
|
+
}
|
|
6624
6715
|
async function loadProfile(db, userId) {
|
|
6625
6716
|
const row = await db.prepare("SELECT profile, updated_at FROM applicant_profiles WHERE user_id = ?").bind(userId).first();
|
|
6626
6717
|
if (!row) return null;
|
|
@@ -6657,6 +6748,8 @@ function registerFillRoutes(app2) {
|
|
|
6657
6748
|
if (!validProfile(b.profile)) {
|
|
6658
6749
|
return c.json(badRequest("profile must be an object with a name and an email"), 400);
|
|
6659
6750
|
}
|
|
6751
|
+
const problem = profileProblem(b.profile);
|
|
6752
|
+
if (problem) return c.json(badRequest(problem), 400);
|
|
6660
6753
|
const who = await effectiveUserId(c, typeof b.ownerName === "string" ? b.ownerName : void 0);
|
|
6661
6754
|
if (isEffectiveUserError(who)) return c.json(who.error.body, who.error.status);
|
|
6662
6755
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -6713,7 +6806,7 @@ function registerFillRoutes(app2) {
|
|
|
6713
6806
|
);
|
|
6714
6807
|
});
|
|
6715
6808
|
}
|
|
6716
|
-
const ERRORS$
|
|
6809
|
+
const ERRORS$2 = {
|
|
6717
6810
|
403: {
|
|
6718
6811
|
description: "Forbidden",
|
|
6719
6812
|
content: { "application/json": { schema: IdentityErrorResponseSchema } }
|
|
@@ -6747,7 +6840,7 @@ function registerBlockedRoutes(app2) {
|
|
|
6747
6840
|
description: "Blocked companies, newest first",
|
|
6748
6841
|
content: { "application/json": { schema: BlockedCompaniesResponseSchema } }
|
|
6749
6842
|
},
|
|
6750
|
-
...ERRORS$
|
|
6843
|
+
...ERRORS$2
|
|
6751
6844
|
}
|
|
6752
6845
|
}),
|
|
6753
6846
|
async (c) => {
|
|
@@ -6775,7 +6868,7 @@ function registerBlockedRoutes(app2) {
|
|
|
6775
6868
|
description: "Blocked (or already was — the first spelling is kept)",
|
|
6776
6869
|
content: { "application/json": { schema: BlockedCompanyResponseSchema } }
|
|
6777
6870
|
},
|
|
6778
|
-
...ERRORS$
|
|
6871
|
+
...ERRORS$2
|
|
6779
6872
|
}
|
|
6780
6873
|
}),
|
|
6781
6874
|
async (c) => {
|
|
@@ -6815,7 +6908,7 @@ function registerBlockedRoutes(app2) {
|
|
|
6815
6908
|
description: "Unblocked (or was not blocked)",
|
|
6816
6909
|
content: { "application/json": { schema: UnblockCompanyResponseSchema } }
|
|
6817
6910
|
},
|
|
6818
|
-
...ERRORS$
|
|
6911
|
+
...ERRORS$2
|
|
6819
6912
|
}
|
|
6820
6913
|
}),
|
|
6821
6914
|
async (c) => {
|
|
@@ -6947,6 +7040,15 @@ function canonicalSkill(term) {
|
|
|
6947
7040
|
for (const { name, aliases } of SKILLS) if (aliases.includes(t)) return name;
|
|
6948
7041
|
return t;
|
|
6949
7042
|
}
|
|
7043
|
+
function parseStringList(raw) {
|
|
7044
|
+
if (!raw) return [];
|
|
7045
|
+
try {
|
|
7046
|
+
const v = JSON.parse(raw);
|
|
7047
|
+
return Array.isArray(v) ? v.filter((x) => typeof x === "string") : [];
|
|
7048
|
+
} catch {
|
|
7049
|
+
return [];
|
|
7050
|
+
}
|
|
7051
|
+
}
|
|
6950
7052
|
const WEEKS = 12;
|
|
6951
7053
|
const TOP_SKILLS = 15;
|
|
6952
7054
|
const APPLIED_OR_LATER = /* @__PURE__ */ new Set(["applied", "interviewing", "offered", "rejected"]);
|
|
@@ -6957,15 +7059,7 @@ function weekOf(iso) {
|
|
|
6957
7059
|
d.setUTCDate(d.getUTCDate() - sinceMonday);
|
|
6958
7060
|
return d.toISOString().slice(0, 10);
|
|
6959
7061
|
}
|
|
6960
|
-
|
|
6961
|
-
try {
|
|
6962
|
-
const v = JSON.parse(raw);
|
|
6963
|
-
return Array.isArray(v) ? v.filter((x) => typeof x === "string") : [];
|
|
6964
|
-
} catch {
|
|
6965
|
-
return [];
|
|
6966
|
-
}
|
|
6967
|
-
}
|
|
6968
|
-
const ERRORS = {
|
|
7062
|
+
const ERRORS$1 = {
|
|
6969
7063
|
403: {
|
|
6970
7064
|
description: "Forbidden",
|
|
6971
7065
|
content: { "application/json": { schema: IdentityErrorResponseSchema } }
|
|
@@ -6997,7 +7091,7 @@ function registerInsightsRoute(app2) {
|
|
|
6997
7091
|
description: "Insights",
|
|
6998
7092
|
content: { "application/json": { schema: InsightsResponseSchema } }
|
|
6999
7093
|
},
|
|
7000
|
-
...ERRORS
|
|
7094
|
+
...ERRORS$1
|
|
7001
7095
|
}
|
|
7002
7096
|
}),
|
|
7003
7097
|
async (c) => {
|
|
@@ -7083,7 +7177,7 @@ function registerInsightsRoute(app2) {
|
|
|
7083
7177
|
}
|
|
7084
7178
|
const stack = new Set(
|
|
7085
7179
|
profiles.results.flatMap(
|
|
7086
|
-
(p) =>
|
|
7180
|
+
(p) => parseStringList(p.stack).map(canonicalSkill)
|
|
7087
7181
|
)
|
|
7088
7182
|
);
|
|
7089
7183
|
const demand = /* @__PURE__ */ new Map();
|
|
@@ -7329,6 +7423,12 @@ function registerImportRoute(app2) {
|
|
|
7329
7423
|
502
|
|
7330
7424
|
);
|
|
7331
7425
|
}
|
|
7426
|
+
if (isTestBoardPosting(job.data.url, { ats: extracted.ats, slug: extracted.board_slug })) {
|
|
7427
|
+
return c.json(
|
|
7428
|
+
failure(422, "That board holds LinkedIn's ATS test postings, not real jobs."),
|
|
7429
|
+
422
|
|
7430
|
+
);
|
|
7431
|
+
}
|
|
7332
7432
|
const now2 = (/* @__PURE__ */ new Date()).toISOString();
|
|
7333
7433
|
const [res] = await db.batch([
|
|
7334
7434
|
insertJobStatement(db, job.data, {
|
|
@@ -7377,6 +7477,197 @@ function registerImportRoute(app2) {
|
|
|
7377
7477
|
}
|
|
7378
7478
|
);
|
|
7379
7479
|
}
|
|
7480
|
+
const ERRORS = {
|
|
7481
|
+
403: {
|
|
7482
|
+
description: "Forbidden",
|
|
7483
|
+
content: { "application/json": { schema: IdentityErrorResponseSchema } }
|
|
7484
|
+
},
|
|
7485
|
+
404: {
|
|
7486
|
+
description: "Not found, or no such owner name",
|
|
7487
|
+
content: { "application/json": { schema: IdentityErrorResponseSchema } }
|
|
7488
|
+
},
|
|
7489
|
+
409: {
|
|
7490
|
+
description: "Already in the list, or that owner name has never signed in",
|
|
7491
|
+
content: { "application/json": { schema: IdentityErrorResponseSchema } }
|
|
7492
|
+
},
|
|
7493
|
+
503: {
|
|
7494
|
+
description: "Identity could not be resolved right now — retry",
|
|
7495
|
+
content: { "application/json": { schema: IdentityErrorResponseSchema } }
|
|
7496
|
+
}
|
|
7497
|
+
};
|
|
7498
|
+
const SKILL_COLS = "id, name, category, proficiency, created_at";
|
|
7499
|
+
function registerUserSkillRoutes(app2) {
|
|
7500
|
+
app2.get("/skills", gateAuthed);
|
|
7501
|
+
app2.post("/skills", gateAuthed);
|
|
7502
|
+
app2.delete("/skills/:id", gateAuthed);
|
|
7503
|
+
app2.get("/jobs/:id/match", gateAuthed);
|
|
7504
|
+
app2.openapi(
|
|
7505
|
+
createRoute({
|
|
7506
|
+
method: "get",
|
|
7507
|
+
path: "/skills",
|
|
7508
|
+
tags: ["Profile"],
|
|
7509
|
+
summary: "The caller's skills list",
|
|
7510
|
+
request: { query: ownerNameQuery },
|
|
7511
|
+
responses: {
|
|
7512
|
+
200: {
|
|
7513
|
+
description: "Skills, by name",
|
|
7514
|
+
content: { "application/json": { schema: SkillsResponseSchema } }
|
|
7515
|
+
},
|
|
7516
|
+
...ERRORS
|
|
7517
|
+
}
|
|
7518
|
+
}),
|
|
7519
|
+
async (c) => {
|
|
7520
|
+
const who = await effectiveUserId(c, c.req.valid("query").ownerName);
|
|
7521
|
+
if (isEffectiveUserError(who)) return c.json(who.error.body, who.error.status);
|
|
7522
|
+
const rows = await c.env.JOB_PLATFORM_DB.prepare(
|
|
7523
|
+
`SELECT ${SKILL_COLS} FROM user_skills WHERE user_id = ? ORDER BY name COLLATE NOCASE`
|
|
7524
|
+
).bind(who.userId).all();
|
|
7525
|
+
return c.json({ success: true, data: { skills: rows.results } }, 200);
|
|
7526
|
+
}
|
|
7527
|
+
);
|
|
7528
|
+
app2.openapi(
|
|
7529
|
+
createRoute({
|
|
7530
|
+
method: "post",
|
|
7531
|
+
path: "/skills",
|
|
7532
|
+
tags: ["Profile"],
|
|
7533
|
+
summary: "Add a skill to the caller's list",
|
|
7534
|
+
request: {
|
|
7535
|
+
query: ownerNameQuery,
|
|
7536
|
+
body: { content: { "application/json": { schema: AddSkillSchema } } }
|
|
7537
|
+
},
|
|
7538
|
+
responses: {
|
|
7539
|
+
201: {
|
|
7540
|
+
description: "Added",
|
|
7541
|
+
content: { "application/json": { schema: SkillResponseSchema } }
|
|
7542
|
+
},
|
|
7543
|
+
...ERRORS
|
|
7544
|
+
}
|
|
7545
|
+
}),
|
|
7546
|
+
async (c) => {
|
|
7547
|
+
const who = await effectiveUserId(c, c.req.valid("query").ownerName);
|
|
7548
|
+
if (isEffectiveUserError(who)) return c.json(who.error.body, who.error.status);
|
|
7549
|
+
const { name, category, proficiency } = c.req.valid("json");
|
|
7550
|
+
const db = c.env.JOB_PLATFORM_DB;
|
|
7551
|
+
const res = await db.prepare(
|
|
7552
|
+
`INSERT INTO user_skills (user_id, name, name_key, category, proficiency, created_at)
|
|
7553
|
+
VALUES (?, ?, ?, ?, ?, ?)
|
|
7554
|
+
ON CONFLICT (user_id, name_key) DO NOTHING`
|
|
7555
|
+
).bind(
|
|
7556
|
+
who.userId,
|
|
7557
|
+
name,
|
|
7558
|
+
canonicalSkill(name),
|
|
7559
|
+
category ?? null,
|
|
7560
|
+
proficiency,
|
|
7561
|
+
(/* @__PURE__ */ new Date()).toISOString()
|
|
7562
|
+
).run();
|
|
7563
|
+
if ((res.meta?.changes ?? 0) === 0) {
|
|
7564
|
+
return c.json(
|
|
7565
|
+
{
|
|
7566
|
+
success: false,
|
|
7567
|
+
error: "Conflict",
|
|
7568
|
+
message: `${name} is already in your skills.`
|
|
7569
|
+
},
|
|
7570
|
+
409
|
|
7571
|
+
);
|
|
7572
|
+
}
|
|
7573
|
+
const row = await db.prepare(`SELECT ${SKILL_COLS} FROM user_skills WHERE user_id = ? AND name_key = ?`).bind(who.userId, canonicalSkill(name)).first();
|
|
7574
|
+
return c.json({ success: true, data: { skill: row } }, 201);
|
|
7575
|
+
}
|
|
7576
|
+
);
|
|
7577
|
+
app2.openapi(
|
|
7578
|
+
createRoute({
|
|
7579
|
+
method: "delete",
|
|
7580
|
+
path: "/skills/{id}",
|
|
7581
|
+
tags: ["Profile"],
|
|
7582
|
+
summary: "Remove a skill from the caller's list",
|
|
7583
|
+
request: {
|
|
7584
|
+
params: z.object({ id: z.coerce.number().int().positive() }),
|
|
7585
|
+
query: ownerNameQuery
|
|
7586
|
+
},
|
|
7587
|
+
responses: {
|
|
7588
|
+
200: {
|
|
7589
|
+
description: "Removed",
|
|
7590
|
+
content: {
|
|
7591
|
+
"application/json": {
|
|
7592
|
+
schema: z.object({
|
|
7593
|
+
success: z.literal(true),
|
|
7594
|
+
data: z.object({ deleted: z.boolean() })
|
|
7595
|
+
})
|
|
7596
|
+
}
|
|
7597
|
+
}
|
|
7598
|
+
},
|
|
7599
|
+
...ERRORS
|
|
7600
|
+
}
|
|
7601
|
+
}),
|
|
7602
|
+
async (c) => {
|
|
7603
|
+
const who = await effectiveUserId(c, c.req.valid("query").ownerName);
|
|
7604
|
+
if (isEffectiveUserError(who)) return c.json(who.error.body, who.error.status);
|
|
7605
|
+
const res = await c.env.JOB_PLATFORM_DB.prepare(
|
|
7606
|
+
"DELETE FROM user_skills WHERE id = ? AND user_id = ?"
|
|
7607
|
+
).bind(c.req.valid("param").id, who.userId).run();
|
|
7608
|
+
if ((res.meta?.changes ?? 0) === 0) {
|
|
7609
|
+
return c.json(
|
|
7610
|
+
{ success: false, error: "Not found", message: "No such skill in your list." },
|
|
7611
|
+
404
|
|
7612
|
+
);
|
|
7613
|
+
}
|
|
7614
|
+
return c.json({ success: true, data: { deleted: true } }, 200);
|
|
7615
|
+
}
|
|
7616
|
+
);
|
|
7617
|
+
app2.openapi(
|
|
7618
|
+
createRoute({
|
|
7619
|
+
method: "get",
|
|
7620
|
+
path: "/jobs/{id}/match",
|
|
7621
|
+
tags: ["Jobs"],
|
|
7622
|
+
summary: "Which of a posting's skills the caller has, and which they lack",
|
|
7623
|
+
request: { params: z.object({ id: z.string() }), query: ownerNameQuery },
|
|
7624
|
+
responses: {
|
|
7625
|
+
200: {
|
|
7626
|
+
description: "The match",
|
|
7627
|
+
content: { "application/json": { schema: JobMatchResponseSchema } }
|
|
7628
|
+
},
|
|
7629
|
+
...ERRORS,
|
|
7630
|
+
400: {
|
|
7631
|
+
description: "Bad request",
|
|
7632
|
+
content: { "application/json": { schema: ErrorResponseSchema } }
|
|
7633
|
+
}
|
|
7634
|
+
}
|
|
7635
|
+
}),
|
|
7636
|
+
async (c) => {
|
|
7637
|
+
const who = await effectiveUserId(c, c.req.valid("query").ownerName);
|
|
7638
|
+
if (isEffectiveUserError(who)) return c.json(who.error.body, who.error.status);
|
|
7639
|
+
const db = c.env.JOB_PLATFORM_DB;
|
|
7640
|
+
const job = await db.prepare("SELECT title, description FROM jobs WHERE id = ?").bind(c.req.valid("param").id).first();
|
|
7641
|
+
if (!job) {
|
|
7642
|
+
return c.json(
|
|
7643
|
+
{ success: false, error: "Not found", message: "No such posting." },
|
|
7644
|
+
404
|
|
7645
|
+
);
|
|
7646
|
+
}
|
|
7647
|
+
const detected = extractSkills(`${job.title}
|
|
7648
|
+
${job.description}`);
|
|
7649
|
+
const listed = await db.prepare("SELECT name_key FROM user_skills WHERE user_id = ?").bind(who.userId).all();
|
|
7650
|
+
let against = "skills";
|
|
7651
|
+
let mine = new Set(listed.results.map((r) => r.name_key));
|
|
7652
|
+
if (mine.size === 0) {
|
|
7653
|
+
const stacks = await db.prepare("SELECT stack FROM profiles WHERE user_id = ?").bind(who.userId).all();
|
|
7654
|
+
mine = new Set(stacks.results.flatMap((p) => parseStringList(p.stack).map(canonicalSkill)));
|
|
7655
|
+
against = mine.size > 0 ? "profile_stack" : "none";
|
|
7656
|
+
}
|
|
7657
|
+
const matched = detected.filter((s) => mine.has(s));
|
|
7658
|
+
const missing = detected.filter((s) => !mine.has(s));
|
|
7659
|
+
const score = detected.length === 0 ? 0 : Math.round(100 * matched.length / detected.length);
|
|
7660
|
+
const summary = detected.length === 0 ? "This posting names none of the skills the matcher knows." : against === "none" ? `This posting asks for ${detected.length} skill${detected.length === 1 ? "" : "s"}; add yours to see how you match.` : `You have ${matched.length} of the ${detected.length} skill${detected.length === 1 ? "" : "s"} this posting names.`;
|
|
7661
|
+
return c.json(
|
|
7662
|
+
{
|
|
7663
|
+
success: true,
|
|
7664
|
+
data: { matched, missing, detected, score, summary, against }
|
|
7665
|
+
},
|
|
7666
|
+
200
|
|
7667
|
+
);
|
|
7668
|
+
}
|
|
7669
|
+
);
|
|
7670
|
+
}
|
|
7380
7671
|
const app$2 = new OpenAPIHono();
|
|
7381
7672
|
registerFeedRoute(app$2);
|
|
7382
7673
|
registerPreflightRoute(app$2);
|
|
@@ -7393,6 +7684,7 @@ registerBlockedRoutes(app$2);
|
|
|
7393
7684
|
registerInsightsRoute(app$2);
|
|
7394
7685
|
registerLocationsRoute(app$2);
|
|
7395
7686
|
registerImportRoute(app$2);
|
|
7687
|
+
registerUserSkillRoutes(app$2);
|
|
7396
7688
|
registerAnswerRoutes(app$2);
|
|
7397
7689
|
registerOwnerRoutes(app$2);
|
|
7398
7690
|
const jobRoutes = app$2;
|
|
@@ -7506,6 +7798,7 @@ const ERASED_TABLES = [
|
|
|
7506
7798
|
{ table: "mail_reconcile_state", sql: "DELETE FROM mail_reconcile_state WHERE user_id = ?1" },
|
|
7507
7799
|
{ table: "mail_unmatched", sql: "DELETE FROM mail_unmatched WHERE user_id = ?1" },
|
|
7508
7800
|
{ table: "blocked_companies", sql: "DELETE FROM blocked_companies WHERE user_id = ?1" },
|
|
7801
|
+
{ table: "user_skills", sql: "DELETE FROM user_skills WHERE user_id = ?1" },
|
|
7509
7802
|
{ table: "owner_name_cache", sql: "DELETE FROM owner_name_cache WHERE user_id = ?1" }
|
|
7510
7803
|
];
|
|
7511
7804
|
async function eraseUser(db, userId) {
|
|
@@ -7593,6 +7886,7 @@ export {
|
|
|
7593
7886
|
AddJobEventSchema,
|
|
7594
7887
|
AddProfileCompanyResponseSchema,
|
|
7595
7888
|
AddProfileCompanySchema,
|
|
7889
|
+
AddSkillSchema,
|
|
7596
7890
|
AnswerResponseSchema,
|
|
7597
7891
|
AnswerSchema,
|
|
7598
7892
|
AnswersResponseSchema,
|
|
@@ -7631,6 +7925,7 @@ export {
|
|
|
7631
7925
|
JobEventSchema,
|
|
7632
7926
|
JobEventsResponseSchema,
|
|
7633
7927
|
JobFeedbackResponseSchema,
|
|
7928
|
+
JobMatchResponseSchema,
|
|
7634
7929
|
JobResponseSchema,
|
|
7635
7930
|
JobStateReadSchema,
|
|
7636
7931
|
JobStateResponseSchema,
|
|
@@ -7664,6 +7959,10 @@ export {
|
|
|
7664
7959
|
SetJobFeedbackSchema,
|
|
7665
7960
|
SetJobStateSchema,
|
|
7666
7961
|
SetTrackingSchema,
|
|
7962
|
+
SkillProficiencySchema,
|
|
7963
|
+
SkillResponseSchema,
|
|
7964
|
+
SkillSchema,
|
|
7965
|
+
SkillsResponseSchema,
|
|
7667
7966
|
TrackingResponseSchema,
|
|
7668
7967
|
TrackingSchema,
|
|
7669
7968
|
UnansweredQuestionSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/routes/account.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,mFAAmF;AACnF,eAAO,MAAM,aAAa,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/routes/account.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,mFAAmF;AACnF,eAAO,MAAM,aAAa,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,EA2BlE,CAAC;AAEF;;;GAGG;AACH,wBAAsB,SAAS,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAO/F;AAyBD,eAAO,MAAM,aAAa,oCAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingest.d.ts","sourceRoot":"","sources":["../../src/routes/ingest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAkB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ingest.d.ts","sourceRoot":"","sources":["../../src/routes/ingest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAkB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAkB9E,UAAU,YAAY;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE;QAAE,WAAW,EAAE,iBAAiB,CAAA;KAAE,CAAC;CAC9C;AA09BD,eAAO,MAAM,YAAY,oCAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/feed.ts"],"names":[],"mappings":"AAYA,OAAO,EASN,KAAK,OAAO,EACZ,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/feed.ts"],"names":[],"mappings":"AAYA,OAAO,EASN,KAAK,OAAO,EACZ,MAAM,aAAa,CAAC;AAsLrB,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAyuBpD"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { type JobsApp } from './shared.js';
|
|
2
|
+
/**
|
|
3
|
+
* Free-text facts a form asks for that are not contact details: optional
|
|
4
|
+
* strings, each capped so one field cannot fill the row. JobPulse's profile
|
|
5
|
+
* carried these; master_resume_text is the whole résumé as plain text.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PROFILE_TEXT_LIMITS: Readonly<Record<string, number>>;
|
|
2
8
|
export declare function registerFillRoutes(app: JobsApp): void;
|
|
3
9
|
//# sourceMappingURL=fill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/fill.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/fill.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAqD,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAiB9F;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAKhE,CAAC;AA2BF,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,QA4G9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importUrl.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/importUrl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"importUrl.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/importUrl.ts"],"names":[],"mappings":"AAoCA,OAAO,EAKN,KAAK,OAAO,EACZ,MAAM,aAAa,CAAC;AAgErB;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM1D;AAgCD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAkMtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AA2ChD,eAAO,MAAM,SAAS,oCAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insights.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/insights.ts"],"names":[],"mappings":"AAsBA,OAAO,EAKN,KAAK,OAAO,EACZ,MAAM,aAAa,CAAC;AAQrB,iEAAiE;AACjE,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAK1C;
|
|
1
|
+
{"version":3,"file":"insights.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/insights.ts"],"names":[],"mappings":"AAsBA,OAAO,EAKN,KAAK,OAAO,EACZ,MAAM,aAAa,CAAC;AAQrB,iEAAiE;AACjE,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAK1C;AAqBD,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CA0KxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userSkills.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/userSkills.ts"],"names":[],"mappings":"AAwBA,OAAO,EAKN,KAAK,OAAO,EACZ,MAAM,aAAa,CAAC;AA+BrB,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAyM1D"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1468,4 +1468,76 @@ export declare const InsightsResponseSchema: z.ZodObject<{
|
|
|
1468
1468
|
skill_postings: z.ZodNumber;
|
|
1469
1469
|
}, z.core.$strip>;
|
|
1470
1470
|
}, z.core.$strip>;
|
|
1471
|
+
export declare const SkillProficiencySchema: z.ZodEnum<{
|
|
1472
|
+
beginner: "beginner";
|
|
1473
|
+
intermediate: "intermediate";
|
|
1474
|
+
expert: "expert";
|
|
1475
|
+
}>;
|
|
1476
|
+
export declare const SkillSchema: z.ZodObject<{
|
|
1477
|
+
id: z.ZodNumber;
|
|
1478
|
+
name: z.ZodString;
|
|
1479
|
+
category: z.ZodNullable<z.ZodString>;
|
|
1480
|
+
proficiency: z.ZodEnum<{
|
|
1481
|
+
beginner: "beginner";
|
|
1482
|
+
intermediate: "intermediate";
|
|
1483
|
+
expert: "expert";
|
|
1484
|
+
}>;
|
|
1485
|
+
created_at: z.ZodString;
|
|
1486
|
+
}, z.core.$strip>;
|
|
1487
|
+
export declare const AddSkillSchema: z.ZodObject<{
|
|
1488
|
+
name: z.ZodString;
|
|
1489
|
+
category: z.ZodOptional<z.ZodString>;
|
|
1490
|
+
proficiency: z.ZodDefault<z.ZodEnum<{
|
|
1491
|
+
beginner: "beginner";
|
|
1492
|
+
intermediate: "intermediate";
|
|
1493
|
+
expert: "expert";
|
|
1494
|
+
}>>;
|
|
1495
|
+
}, z.core.$strip>;
|
|
1496
|
+
export declare const SkillsResponseSchema: z.ZodObject<{
|
|
1497
|
+
success: z.ZodLiteral<true>;
|
|
1498
|
+
data: z.ZodObject<{
|
|
1499
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
1500
|
+
id: z.ZodNumber;
|
|
1501
|
+
name: z.ZodString;
|
|
1502
|
+
category: z.ZodNullable<z.ZodString>;
|
|
1503
|
+
proficiency: z.ZodEnum<{
|
|
1504
|
+
beginner: "beginner";
|
|
1505
|
+
intermediate: "intermediate";
|
|
1506
|
+
expert: "expert";
|
|
1507
|
+
}>;
|
|
1508
|
+
created_at: z.ZodString;
|
|
1509
|
+
}, z.core.$strip>>;
|
|
1510
|
+
}, z.core.$strip>;
|
|
1511
|
+
}, z.core.$strip>;
|
|
1512
|
+
export declare const SkillResponseSchema: z.ZodObject<{
|
|
1513
|
+
success: z.ZodLiteral<true>;
|
|
1514
|
+
data: z.ZodObject<{
|
|
1515
|
+
skill: z.ZodObject<{
|
|
1516
|
+
id: z.ZodNumber;
|
|
1517
|
+
name: z.ZodString;
|
|
1518
|
+
category: z.ZodNullable<z.ZodString>;
|
|
1519
|
+
proficiency: z.ZodEnum<{
|
|
1520
|
+
beginner: "beginner";
|
|
1521
|
+
intermediate: "intermediate";
|
|
1522
|
+
expert: "expert";
|
|
1523
|
+
}>;
|
|
1524
|
+
created_at: z.ZodString;
|
|
1525
|
+
}, z.core.$strip>;
|
|
1526
|
+
}, z.core.$strip>;
|
|
1527
|
+
}, z.core.$strip>;
|
|
1528
|
+
export declare const JobMatchResponseSchema: z.ZodObject<{
|
|
1529
|
+
success: z.ZodLiteral<true>;
|
|
1530
|
+
data: z.ZodObject<{
|
|
1531
|
+
matched: z.ZodArray<z.ZodString>;
|
|
1532
|
+
missing: z.ZodArray<z.ZodString>;
|
|
1533
|
+
detected: z.ZodArray<z.ZodString>;
|
|
1534
|
+
score: z.ZodNumber;
|
|
1535
|
+
summary: z.ZodString;
|
|
1536
|
+
against: z.ZodEnum<{
|
|
1537
|
+
none: "none";
|
|
1538
|
+
skills: "skills";
|
|
1539
|
+
profile_stack: "profile_stack";
|
|
1540
|
+
}>;
|
|
1541
|
+
}, z.core.$strip>;
|
|
1542
|
+
}, z.core.$strip>;
|
|
1471
1543
|
//# sourceMappingURL=schemas.d.ts.map
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAItC,eAAO,MAAM,mBAAmB;;;;iBAA8B,CAAC;AAO/D,eAAO,MAAM,oBAAoB;;;;;;;;iBAMN,CAAC;AAS5B,eAAO,MAAM,kBAAkB;;;;EAA8D,CAAC;AAC9F,eAAO,MAAM,eAAe;;;;;;;;;;;;EAAiE,CAAC;AAE9F,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcN,CAAC;AAErB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQN,CAAC;AAE3B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyD,CAAC;AAE1F,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAElC,CAAC;AACF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjC,CAAC;AACF,eAAO,MAAM,oBAAoB;;;;;;iBAEN,CAAC;AAM5B,eAAO,MAAM,oBAAoB;;;;;;;;iBAUN,CAAC;AAE5B,iEAAiE;AACjE,eAAO,MAAM,eAAe;;;;EAA4D,CAAC;AAKzF,eAAO,MAAM,UAAU,iGAQb,CAAC;AACX,eAAO,MAAM,cAAc;;;;;;;;EAAyC,CAAC;AACrE,M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B;;;;;;;;;;;;;;;iBAA+D,CAAC;AAEhG,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;iBAcN,CAAC"}
|
package/dist/skills.d.ts
CHANGED
|
@@ -20,4 +20,9 @@
|
|
|
20
20
|
export declare function extractSkills(text: string): string[];
|
|
21
21
|
/** Fold a person's own spelling ("K8s", "Postgres") onto the vocabulary's name. */
|
|
22
22
|
export declare function canonicalSkill(term: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* A JSON list column (profiles.stack, profiles.keywords) as strings. Malformed
|
|
25
|
+
* is empty, the default migration 0011 gives every profile.
|
|
26
|
+
*/
|
|
27
|
+
export declare function parseStringList(raw: string | null | undefined): string[];
|
|
23
28
|
//# sourceMappingURL=skills.d.ts.map
|
package/dist/skills.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../src/skills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAwHH,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAMpD;AAED,mFAAmF;AACnF,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKnD"}
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../src/skills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAwHH,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAMpD;AAED,mFAAmF;AACnF,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKnD;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,EAAE,CASxE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** The posting is on a known test board (by its URL, or the board the scraper says it fetched). */
|
|
2
|
+
export declare function isTestBoardPosting(url: string, scraped?: {
|
|
3
|
+
ats?: string | null;
|
|
4
|
+
slug?: string | null;
|
|
5
|
+
}): boolean;
|
|
6
|
+
/** For the migration and tests: the boards as (ats, slug) pairs. */
|
|
7
|
+
export declare const TEST_BOARD_PAIRS: {
|
|
8
|
+
ats: string;
|
|
9
|
+
slug: string;
|
|
10
|
+
}[];
|
|
11
|
+
//# sourceMappingURL=testBoards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testBoards.d.ts","sourceRoot":"","sources":["../src/testBoards.ts"],"names":[],"mappings":"AAkBA,mGAAmG;AACnG,wBAAgB,kBAAkB,CACjC,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACrD,OAAO,CAKT;AAED,oEAAoE;AACpE,eAAO,MAAM,gBAAgB;;;GAG3B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
-- Drop the postings of known ATS test boards (worker/src/testBoards.ts):
|
|
2
|
+
-- LinkedIn's own Greenhouse and Lever tenants, which hold only LinkedIn's
|
|
3
|
+
-- integration tests ("Bug Bash Job …", "EA Test - Most Questions",
|
|
4
|
+
-- "SJ_TEST_LEVER_ATTACHMENT", 76 rows on 2026-11-09). Ingest and
|
|
5
|
+
-- POST /jobs/import refuse them from now on; this removes what is already
|
|
6
|
+
-- stored.
|
|
7
|
+
--
|
|
8
|
+
-- Only rows nobody has touched: a posting someone tracks, voted on, queued or
|
|
9
|
+
-- logged a timeline row for stays, as the daily cull spares it. job_profile_rank,
|
|
10
|
+
-- job_profile_matches, job_states and job_events cascade on delete; applications
|
|
11
|
+
-- and job_feedback have no foreign key, so they are checked explicitly.
|
|
12
|
+
DELETE FROM jobs
|
|
13
|
+
WHERE (
|
|
14
|
+
(ats = 'greenhouse' AND LOWER(slug) = 'linkedin')
|
|
15
|
+
OR (ats = 'lever' AND LOWER(slug) = 'linkedin')
|
|
16
|
+
OR url LIKE 'https://job-boards.greenhouse.io/linkedin/%'
|
|
17
|
+
OR url LIKE 'https://boards.greenhouse.io/linkedin/%'
|
|
18
|
+
OR url LIKE 'https://jobs.lever.co/linkedin/%'
|
|
19
|
+
)
|
|
20
|
+
AND NOT EXISTS (SELECT 1 FROM job_states s WHERE s.job_id = jobs.id)
|
|
21
|
+
AND NOT EXISTS (SELECT 1 FROM job_feedback f WHERE f.job_id = jobs.id)
|
|
22
|
+
AND NOT EXISTS (SELECT 1 FROM applications a WHERE a.job_id = jobs.id)
|
|
23
|
+
AND NOT EXISTS (SELECT 1 FROM job_events e WHERE e.job_id = jobs.id);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
-- A person's own skills list (GET/POST/DELETE /skills), the inventory
|
|
2
|
+
-- GET /jobs/:id/match compares a posting against. JobPulse kept it in local
|
|
3
|
+
-- SQLite; this makes it per-user in D1.
|
|
4
|
+
--
|
|
5
|
+
-- name_key is the vocabulary's canonical spelling (worker/src/skills.ts
|
|
6
|
+
-- canonicalSkill: "K8s" and "Kubernetes" are one skill), and is what a
|
|
7
|
+
-- posting's detected skills are matched on. One row per person per skill.
|
|
8
|
+
CREATE TABLE user_skills (
|
|
9
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
10
|
+
user_id TEXT NOT NULL,
|
|
11
|
+
name TEXT NOT NULL,
|
|
12
|
+
name_key TEXT NOT NULL,
|
|
13
|
+
category TEXT,
|
|
14
|
+
proficiency TEXT NOT NULL DEFAULT 'intermediate'
|
|
15
|
+
CHECK (proficiency IN ('beginner', 'intermediate', 'expert')),
|
|
16
|
+
created_at TEXT NOT NULL,
|
|
17
|
+
UNIQUE (user_id, name_key)
|
|
18
|
+
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadoku/jobplatform-worker",
|
|
3
|
-
"version": "2.32.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "2.32.44",
|
|
4
|
+
"gitHead": "19077a0b3a9d1060c7a10b493c653952392f9d68",
|
|
5
5
|
"description": "Job listings aggregation and tracking dashboard - Worker package",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|