@hadoku/jobplatform-worker 2.32.43 → 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 +264 -15
- package/dist/routes/account.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/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/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",
|
|
@@ -6665,6 +6697,21 @@ function validProfile(p) {
|
|
|
6665
6697
|
const o = p;
|
|
6666
6698
|
return typeof o.name === "string" && !!o.name.trim() && typeof o.email === "string";
|
|
6667
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
|
+
}
|
|
6668
6715
|
async function loadProfile(db, userId) {
|
|
6669
6716
|
const row = await db.prepare("SELECT profile, updated_at FROM applicant_profiles WHERE user_id = ?").bind(userId).first();
|
|
6670
6717
|
if (!row) return null;
|
|
@@ -6701,6 +6748,8 @@ function registerFillRoutes(app2) {
|
|
|
6701
6748
|
if (!validProfile(b.profile)) {
|
|
6702
6749
|
return c.json(badRequest("profile must be an object with a name and an email"), 400);
|
|
6703
6750
|
}
|
|
6751
|
+
const problem = profileProblem(b.profile);
|
|
6752
|
+
if (problem) return c.json(badRequest(problem), 400);
|
|
6704
6753
|
const who = await effectiveUserId(c, typeof b.ownerName === "string" ? b.ownerName : void 0);
|
|
6705
6754
|
if (isEffectiveUserError(who)) return c.json(who.error.body, who.error.status);
|
|
6706
6755
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -6757,7 +6806,7 @@ function registerFillRoutes(app2) {
|
|
|
6757
6806
|
);
|
|
6758
6807
|
});
|
|
6759
6808
|
}
|
|
6760
|
-
const ERRORS$
|
|
6809
|
+
const ERRORS$2 = {
|
|
6761
6810
|
403: {
|
|
6762
6811
|
description: "Forbidden",
|
|
6763
6812
|
content: { "application/json": { schema: IdentityErrorResponseSchema } }
|
|
@@ -6791,7 +6840,7 @@ function registerBlockedRoutes(app2) {
|
|
|
6791
6840
|
description: "Blocked companies, newest first",
|
|
6792
6841
|
content: { "application/json": { schema: BlockedCompaniesResponseSchema } }
|
|
6793
6842
|
},
|
|
6794
|
-
...ERRORS$
|
|
6843
|
+
...ERRORS$2
|
|
6795
6844
|
}
|
|
6796
6845
|
}),
|
|
6797
6846
|
async (c) => {
|
|
@@ -6819,7 +6868,7 @@ function registerBlockedRoutes(app2) {
|
|
|
6819
6868
|
description: "Blocked (or already was — the first spelling is kept)",
|
|
6820
6869
|
content: { "application/json": { schema: BlockedCompanyResponseSchema } }
|
|
6821
6870
|
},
|
|
6822
|
-
...ERRORS$
|
|
6871
|
+
...ERRORS$2
|
|
6823
6872
|
}
|
|
6824
6873
|
}),
|
|
6825
6874
|
async (c) => {
|
|
@@ -6859,7 +6908,7 @@ function registerBlockedRoutes(app2) {
|
|
|
6859
6908
|
description: "Unblocked (or was not blocked)",
|
|
6860
6909
|
content: { "application/json": { schema: UnblockCompanyResponseSchema } }
|
|
6861
6910
|
},
|
|
6862
|
-
...ERRORS$
|
|
6911
|
+
...ERRORS$2
|
|
6863
6912
|
}
|
|
6864
6913
|
}),
|
|
6865
6914
|
async (c) => {
|
|
@@ -6991,6 +7040,15 @@ function canonicalSkill(term) {
|
|
|
6991
7040
|
for (const { name, aliases } of SKILLS) if (aliases.includes(t)) return name;
|
|
6992
7041
|
return t;
|
|
6993
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
|
+
}
|
|
6994
7052
|
const WEEKS = 12;
|
|
6995
7053
|
const TOP_SKILLS = 15;
|
|
6996
7054
|
const APPLIED_OR_LATER = /* @__PURE__ */ new Set(["applied", "interviewing", "offered", "rejected"]);
|
|
@@ -7001,15 +7059,7 @@ function weekOf(iso) {
|
|
|
7001
7059
|
d.setUTCDate(d.getUTCDate() - sinceMonday);
|
|
7002
7060
|
return d.toISOString().slice(0, 10);
|
|
7003
7061
|
}
|
|
7004
|
-
|
|
7005
|
-
try {
|
|
7006
|
-
const v = JSON.parse(raw);
|
|
7007
|
-
return Array.isArray(v) ? v.filter((x) => typeof x === "string") : [];
|
|
7008
|
-
} catch {
|
|
7009
|
-
return [];
|
|
7010
|
-
}
|
|
7011
|
-
}
|
|
7012
|
-
const ERRORS = {
|
|
7062
|
+
const ERRORS$1 = {
|
|
7013
7063
|
403: {
|
|
7014
7064
|
description: "Forbidden",
|
|
7015
7065
|
content: { "application/json": { schema: IdentityErrorResponseSchema } }
|
|
@@ -7041,7 +7091,7 @@ function registerInsightsRoute(app2) {
|
|
|
7041
7091
|
description: "Insights",
|
|
7042
7092
|
content: { "application/json": { schema: InsightsResponseSchema } }
|
|
7043
7093
|
},
|
|
7044
|
-
...ERRORS
|
|
7094
|
+
...ERRORS$1
|
|
7045
7095
|
}
|
|
7046
7096
|
}),
|
|
7047
7097
|
async (c) => {
|
|
@@ -7127,7 +7177,7 @@ function registerInsightsRoute(app2) {
|
|
|
7127
7177
|
}
|
|
7128
7178
|
const stack = new Set(
|
|
7129
7179
|
profiles.results.flatMap(
|
|
7130
|
-
(p) =>
|
|
7180
|
+
(p) => parseStringList(p.stack).map(canonicalSkill)
|
|
7131
7181
|
)
|
|
7132
7182
|
);
|
|
7133
7183
|
const demand = /* @__PURE__ */ new Map();
|
|
@@ -7427,6 +7477,197 @@ function registerImportRoute(app2) {
|
|
|
7427
7477
|
}
|
|
7428
7478
|
);
|
|
7429
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
|
+
}
|
|
7430
7671
|
const app$2 = new OpenAPIHono();
|
|
7431
7672
|
registerFeedRoute(app$2);
|
|
7432
7673
|
registerPreflightRoute(app$2);
|
|
@@ -7443,6 +7684,7 @@ registerBlockedRoutes(app$2);
|
|
|
7443
7684
|
registerInsightsRoute(app$2);
|
|
7444
7685
|
registerLocationsRoute(app$2);
|
|
7445
7686
|
registerImportRoute(app$2);
|
|
7687
|
+
registerUserSkillRoutes(app$2);
|
|
7446
7688
|
registerAnswerRoutes(app$2);
|
|
7447
7689
|
registerOwnerRoutes(app$2);
|
|
7448
7690
|
const jobRoutes = app$2;
|
|
@@ -7556,6 +7798,7 @@ const ERASED_TABLES = [
|
|
|
7556
7798
|
{ table: "mail_reconcile_state", sql: "DELETE FROM mail_reconcile_state WHERE user_id = ?1" },
|
|
7557
7799
|
{ table: "mail_unmatched", sql: "DELETE FROM mail_unmatched WHERE user_id = ?1" },
|
|
7558
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" },
|
|
7559
7802
|
{ table: "owner_name_cache", sql: "DELETE FROM owner_name_cache WHERE user_id = ?1" }
|
|
7560
7803
|
];
|
|
7561
7804
|
async function eraseUser(db, userId) {
|
|
@@ -7643,6 +7886,7 @@ export {
|
|
|
7643
7886
|
AddJobEventSchema,
|
|
7644
7887
|
AddProfileCompanyResponseSchema,
|
|
7645
7888
|
AddProfileCompanySchema,
|
|
7889
|
+
AddSkillSchema,
|
|
7646
7890
|
AnswerResponseSchema,
|
|
7647
7891
|
AnswerSchema,
|
|
7648
7892
|
AnswersResponseSchema,
|
|
@@ -7681,6 +7925,7 @@ export {
|
|
|
7681
7925
|
JobEventSchema,
|
|
7682
7926
|
JobEventsResponseSchema,
|
|
7683
7927
|
JobFeedbackResponseSchema,
|
|
7928
|
+
JobMatchResponseSchema,
|
|
7684
7929
|
JobResponseSchema,
|
|
7685
7930
|
JobStateReadSchema,
|
|
7686
7931
|
JobStateResponseSchema,
|
|
@@ -7714,6 +7959,10 @@ export {
|
|
|
7714
7959
|
SetJobFeedbackSchema,
|
|
7715
7960
|
SetJobStateSchema,
|
|
7716
7961
|
SetTrackingSchema,
|
|
7962
|
+
SkillProficiencySchema,
|
|
7963
|
+
SkillResponseSchema,
|
|
7964
|
+
SkillSchema,
|
|
7965
|
+
SkillsResponseSchema,
|
|
7717
7966
|
TrackingResponseSchema,
|
|
7718
7967
|
TrackingSchema,
|
|
7719
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,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":"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,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AAMF,eAAO,MAAM,oBAAoB;;;;iBAEN,CAAC;AAE5B,eAAO,MAAM,8BAA8B;;;;;;;;;iBAEN,CAAC;AAEtC,eAAO,MAAM,kBAAkB;;iBAEN,CAAC;AAE1B,eAAO,MAAM,4BAA4B;;;;;;;;;iBAExC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;iBAEN,CAAC;AAMpC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiCN,CAAC;AAEtB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgD,CAAC;AAMpF,eAAO,MAAM,sBAAsB;;;;EAAiD,CAAC;AAErF,eAAO,MAAM,WAAW;;;;;;;;;;iBAQN,CAAC;AAEnB,eAAO,MAAM,cAAc;;;;;;;;iBAMN,CAAC;AAEtB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;iBAEhC,CAAC;AACF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;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,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",
|