@hadoku/jobplatform-worker 2.32.44 → 2.32.46
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/freshness.d.ts +40 -0
- package/dist/freshness.d.ts.map +1 -0
- package/dist/index.js +123 -30
- package/dist/ingestWrite.d.ts +8 -0
- package/dist/ingestWrite.d.ts.map +1 -1
- package/dist/routes/jobs/applications.d.ts.map +1 -1
- package/dist/routes/jobs/detail.d.ts.map +1 -1
- package/dist/routes/jobs/fill.d.ts.map +1 -1
- package/dist/routes/jobs/importUrl.d.ts.map +1 -1
- package/dist/routes/jobs/pipeline.d.ts.map +1 -1
- package/dist/schemas.d.ts +14 -6
- package/dist/schemas.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Is a posting still listed? The one definition, shared by the apply queue
|
|
3
|
+
* (applications.ts, which marks a queued application job_closed), GET /pipeline
|
|
4
|
+
* and GET /jobs/:id.
|
|
5
|
+
*
|
|
6
|
+
* Ingest bumps `last_seen_at` on every job a scrape re-encounters, so a posting
|
|
7
|
+
* still on its board keeps pace with its siblings and one that has been pulled
|
|
8
|
+
* falls behind. The comparison is against THE SAME BOARD's newest stamp rather
|
|
9
|
+
* than wall-clock age, which is what makes it safe: if the scraper breaks, a
|
|
10
|
+
* target is disabled, or auth lapses, every job on that board stops advancing
|
|
11
|
+
* together and none of them looks dead. "Our scraper is broken" must never read
|
|
12
|
+
* as "every job closed".
|
|
13
|
+
*
|
|
14
|
+
* The window exists because one scrape run is not instantaneous — it arrives as
|
|
15
|
+
* batches of 25, each stamped when it lands, so jobs from a single run differ by
|
|
16
|
+
* minutes. Runs are daily. Twelve hours is comfortably wider than any one run
|
|
17
|
+
* and comfortably narrower than a missed one.
|
|
18
|
+
*
|
|
19
|
+
* Only board-sourced jobs can be judged: keyword-feed sources (RemoteOK, a
|
|
20
|
+
* pasted page, a posting typed in by hand) have no board to be absent from, so
|
|
21
|
+
* `ats`/`slug` are empty and the answer is "not closed".
|
|
22
|
+
*/
|
|
23
|
+
import type { D1Database } from '@cloudflare/workers-types';
|
|
24
|
+
export declare const DELISTED_LAG_MS: number;
|
|
25
|
+
export interface BoardPosting {
|
|
26
|
+
ats: string | null;
|
|
27
|
+
slug: string | null;
|
|
28
|
+
last_seen_at: string | null;
|
|
29
|
+
}
|
|
30
|
+
/** Has a posting seen at `lastSeen` fallen behind its board's newest `boardNewest`? */
|
|
31
|
+
export declare function isDelisted(lastSeen: string | null, boardNewest: string | null): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Each board's newest `last_seen_at`, one grouped query for all of them (a
|
|
34
|
+
* pipeline names tens of boards). Rides idx_jobs_ats_slug; no index on
|
|
35
|
+
* last_seen_at, which every nightly liveness bump would have to rewrite.
|
|
36
|
+
*/
|
|
37
|
+
export declare function boardNewest(db: D1Database, postings: BoardPosting[]): Promise<Map<string, string>>;
|
|
38
|
+
/** Whether each posting has been taken down, in order. */
|
|
39
|
+
export declare function closedFlags(db: D1Database, postings: BoardPosting[]): Promise<boolean[]>;
|
|
40
|
+
//# sourceMappingURL=freshness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"freshness.d.ts","sourceRoot":"","sources":["../src/freshness.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD,MAAM,WAAW,YAAY;IAC5B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAID,uFAAuF;AACvF,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAMvF;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAChC,EAAE,EAAE,UAAU,EACd,QAAQ,EAAE,YAAY,EAAE,GACtB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAqB9B;AAED,0DAA0D;AAC1D,wBAAsB,WAAW,CAAC,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAO9F"}
|
package/dist/index.js
CHANGED
|
@@ -502,7 +502,8 @@ const JobSummarySchema = z.object({
|
|
|
502
502
|
salary_min: z.number().nullable(),
|
|
503
503
|
salary_max: z.number().nullable(),
|
|
504
504
|
source_site: z.string(),
|
|
505
|
-
|
|
505
|
+
/** null for a posting typed in by hand with no link. */
|
|
506
|
+
url: z.string().nullable(),
|
|
506
507
|
/**
|
|
507
508
|
* Where the form actually lives, when the posting names somewhere other
|
|
508
509
|
* than `url`. The feed carries it so a card's Apply lands on the same
|
|
@@ -572,7 +573,11 @@ const JobDetailSchema = JobSummarySchema.extend({
|
|
|
572
573
|
run_id: z.string().nullable(),
|
|
573
574
|
state_updated_at: z.string().nullable(),
|
|
574
575
|
/** V5 tracking; null when the caller has no state for this posting (or is anonymous). */
|
|
575
|
-
tracking: TrackingSchema.nullable()
|
|
576
|
+
tracking: TrackingSchema.nullable(),
|
|
577
|
+
/** When a scrape last saw it on its board (null: never, or not a board posting). */
|
|
578
|
+
last_seen_at: z.string().nullable(),
|
|
579
|
+
/** Taken down: it has fallen behind its own board's scrapes (freshness.ts). */
|
|
580
|
+
closed: z.boolean()
|
|
576
581
|
}).openapi("JobDetail");
|
|
577
582
|
const FEEDBACK_REASONS = [
|
|
578
583
|
// downvote-flavored
|
|
@@ -1028,7 +1033,8 @@ const PipelineItemSchema = z.object({
|
|
|
1028
1033
|
workplace_type: z.string(),
|
|
1029
1034
|
salary_min: z.number().nullable(),
|
|
1030
1035
|
salary_max: z.number().nullable(),
|
|
1031
|
-
|
|
1036
|
+
/** null for a posting typed in by hand with no link. */
|
|
1037
|
+
url: z.string().nullable(),
|
|
1032
1038
|
posted_date: z.string().nullable(),
|
|
1033
1039
|
state: JobStateSchema,
|
|
1034
1040
|
updated_at: z.string(),
|
|
@@ -1039,7 +1045,11 @@ const PipelineItemSchema = z.object({
|
|
|
1039
1045
|
/** First time it moved to 'applied', from the timeline. */
|
|
1040
1046
|
applied_at: z.string().nullable(),
|
|
1041
1047
|
/** Newest timeline row, of any kind. */
|
|
1042
|
-
last_event_at: z.string().nullable()
|
|
1048
|
+
last_event_at: z.string().nullable(),
|
|
1049
|
+
/** When a scrape last saw it on its board (null: never, or not a board posting). */
|
|
1050
|
+
last_seen_at: z.string().nullable(),
|
|
1051
|
+
/** Taken down: it has fallen behind its own board's scrapes (freshness.ts). */
|
|
1052
|
+
closed: z.boolean()
|
|
1043
1053
|
}).openapi("PipelineItem");
|
|
1044
1054
|
const PipelineResponseSchema = S(z.object({ items: z.array(PipelineItemSchema) })).openapi(
|
|
1045
1055
|
"PipelineResponse"
|
|
@@ -2624,6 +2634,10 @@ function scheduleRankBuild(c, db, profileId, profile) {
|
|
|
2624
2634
|
);
|
|
2625
2635
|
}
|
|
2626
2636
|
const MANUAL_SOURCE = "manual";
|
|
2637
|
+
const NO_URL_PREFIX = "hadoku:manual/";
|
|
2638
|
+
function publicUrl(url) {
|
|
2639
|
+
return url.startsWith(NO_URL_PREFIX) ? null : url;
|
|
2640
|
+
}
|
|
2627
2641
|
function normalizeWorkplaceType(wt) {
|
|
2628
2642
|
if (wt === "on_site") return "onsite";
|
|
2629
2643
|
return wt;
|
|
@@ -4310,7 +4324,7 @@ function registerFeedRoute(app2) {
|
|
|
4310
4324
|
salary_min: h?.salary_min ?? null,
|
|
4311
4325
|
salary_max: r.salary_max,
|
|
4312
4326
|
source_site: h?.source_site ?? "",
|
|
4313
|
-
url: h?.url ?? "",
|
|
4327
|
+
url: publicUrl(h?.url ?? ""),
|
|
4314
4328
|
application_url: h?.application_url ?? null,
|
|
4315
4329
|
posted_date: r.posted_date,
|
|
4316
4330
|
scraped_at: r.scraped_at,
|
|
@@ -4393,7 +4407,7 @@ function registerFeedRoute(app2) {
|
|
|
4393
4407
|
salary_min: r.salary_min,
|
|
4394
4408
|
salary_max: r.salary_max,
|
|
4395
4409
|
source_site: r.source_site,
|
|
4396
|
-
url: r.url,
|
|
4410
|
+
url: publicUrl(r.url),
|
|
4397
4411
|
application_url: r.application_url,
|
|
4398
4412
|
posted_date: r.posted_date,
|
|
4399
4413
|
scraped_at: r.scraped_at,
|
|
@@ -4518,6 +4532,39 @@ function registerPacketsRoute(app2) {
|
|
|
4518
4532
|
}
|
|
4519
4533
|
);
|
|
4520
4534
|
}
|
|
4535
|
+
const DELISTED_LAG_MS = 12 * 60 * 60 * 1e3;
|
|
4536
|
+
const boardKey = (ats, slug2) => `${ats}\0${slug2}`;
|
|
4537
|
+
function isDelisted(lastSeen, boardNewest2) {
|
|
4538
|
+
if (!lastSeen || !boardNewest2) return false;
|
|
4539
|
+
const seen = Date.parse(lastSeen);
|
|
4540
|
+
const newest = Date.parse(boardNewest2);
|
|
4541
|
+
if (Number.isNaN(seen) || Number.isNaN(newest)) return false;
|
|
4542
|
+
return newest - seen > DELISTED_LAG_MS;
|
|
4543
|
+
}
|
|
4544
|
+
async function boardNewest(db, postings) {
|
|
4545
|
+
const boards = /* @__PURE__ */ new Map();
|
|
4546
|
+
for (const p of postings) {
|
|
4547
|
+
if (p.ats && p.slug) boards.set(boardKey(p.ats, p.slug), { ats: p.ats, slug: p.slug });
|
|
4548
|
+
}
|
|
4549
|
+
const out = /* @__PURE__ */ new Map();
|
|
4550
|
+
const list = [...boards.values()];
|
|
4551
|
+
for (let i = 0; i < list.length; i += 45) {
|
|
4552
|
+
const chunk = list.slice(i, i + 45);
|
|
4553
|
+
const res = await db.prepare(
|
|
4554
|
+
`SELECT ats, slug, MAX(last_seen_at) AS newest FROM jobs
|
|
4555
|
+
WHERE ${chunk.map(() => "(ats = ? AND slug = ?)").join(" OR ")}
|
|
4556
|
+
GROUP BY ats, slug`
|
|
4557
|
+
).bind(...chunk.flatMap((b) => [b.ats, b.slug])).all();
|
|
4558
|
+
for (const r of res.results) if (r.newest) out.set(boardKey(r.ats, r.slug), r.newest);
|
|
4559
|
+
}
|
|
4560
|
+
return out;
|
|
4561
|
+
}
|
|
4562
|
+
async function closedFlags(db, postings) {
|
|
4563
|
+
const newest = await boardNewest(db, postings);
|
|
4564
|
+
return postings.map(
|
|
4565
|
+
(p) => p.ats && p.slug ? isDelisted(p.last_seen_at, newest.get(boardKey(p.ats, p.slug)) ?? null) : false
|
|
4566
|
+
);
|
|
4567
|
+
}
|
|
4521
4568
|
const SUPPORTED_HOSTS = [
|
|
4522
4569
|
"jobs.ashbyhq.com",
|
|
4523
4570
|
"job-boards.greenhouse.io",
|
|
@@ -4656,6 +4703,7 @@ function registerPipelineRoutes(app2) {
|
|
|
4656
4703
|
const rows = await c.env.JOB_PLATFORM_DB.prepare(
|
|
4657
4704
|
`SELECT js.job_id, j.title, j.company, j.location, j.workplace_type,
|
|
4658
4705
|
j.salary_min, j.salary_max, j.url, j.posted_date,
|
|
4706
|
+
j.ats, j.slug, j.last_seen_at,
|
|
4659
4707
|
js.state, js.updated_at, js.variant_slug,
|
|
4660
4708
|
js.notes, js.priority, js.follow_up_at, js.contact_name, js.contact_email,
|
|
4661
4709
|
ap.status AS application_status,
|
|
@@ -4670,7 +4718,8 @@ function registerPipelineRoutes(app2) {
|
|
|
4670
4718
|
WHERE js.user_id = ? ${dismissed}
|
|
4671
4719
|
ORDER BY js.updated_at DESC`
|
|
4672
4720
|
).bind(who.userId).all();
|
|
4673
|
-
const
|
|
4721
|
+
const closed = await closedFlags(c.env.JOB_PLATFORM_DB, rows.results);
|
|
4722
|
+
const items = rows.results.flatMap((r, i) => {
|
|
4674
4723
|
const state = stateOrNull(r.state);
|
|
4675
4724
|
if (!state) return [];
|
|
4676
4725
|
return [
|
|
@@ -4682,7 +4731,7 @@ function registerPipelineRoutes(app2) {
|
|
|
4682
4731
|
workplace_type: r.workplace_type,
|
|
4683
4732
|
salary_min: r.salary_min,
|
|
4684
4733
|
salary_max: r.salary_max,
|
|
4685
|
-
url: r.url,
|
|
4734
|
+
url: publicUrl(r.url),
|
|
4686
4735
|
posted_date: r.posted_date,
|
|
4687
4736
|
state,
|
|
4688
4737
|
updated_at: r.updated_at,
|
|
@@ -4690,6 +4739,8 @@ function registerPipelineRoutes(app2) {
|
|
|
4690
4739
|
variant_slug: r.variant_slug,
|
|
4691
4740
|
application_status: asApplicationStatus(r.application_status),
|
|
4692
4741
|
applied_at: r.applied_at,
|
|
4742
|
+
last_seen_at: r.last_seen_at,
|
|
4743
|
+
closed: closed[i],
|
|
4693
4744
|
last_event_at: r.last_event_at
|
|
4694
4745
|
}
|
|
4695
4746
|
];
|
|
@@ -4970,7 +5021,7 @@ function registerDetailRoute(app2) {
|
|
|
4970
5021
|
salary_min: row.salary_min,
|
|
4971
5022
|
salary_max: row.salary_max,
|
|
4972
5023
|
source_site: row.source_site,
|
|
4973
|
-
url: row.url,
|
|
5024
|
+
url: publicUrl(row.url),
|
|
4974
5025
|
posted_date: row.posted_date,
|
|
4975
5026
|
scraped_at: row.scraped_at,
|
|
4976
5027
|
ats: row.ats ?? null,
|
|
@@ -4993,7 +5044,15 @@ function registerDetailRoute(app2) {
|
|
|
4993
5044
|
state,
|
|
4994
5045
|
application_status: asApplicationStatus(applicationStatus),
|
|
4995
5046
|
state_updated_at: stateUpdatedAt,
|
|
4996
|
-
tracking
|
|
5047
|
+
tracking,
|
|
5048
|
+
last_seen_at: row.last_seen_at ?? null,
|
|
5049
|
+
closed: (await closedFlags(db, [
|
|
5050
|
+
{
|
|
5051
|
+
ats: row.ats ?? null,
|
|
5052
|
+
slug: row.slug ?? null,
|
|
5053
|
+
last_seen_at: row.last_seen_at ?? null
|
|
5054
|
+
}
|
|
5055
|
+
]))[0]
|
|
4997
5056
|
};
|
|
4998
5057
|
return c.json({ success: true, data: { job } }, 200);
|
|
4999
5058
|
}
|
|
@@ -6234,17 +6293,12 @@ function reconcile(evidence, stored) {
|
|
|
6234
6293
|
}
|
|
6235
6294
|
return out;
|
|
6236
6295
|
}
|
|
6237
|
-
const DELISTED_LAG_MS = 12 * 60 * 60 * 1e3;
|
|
6238
6296
|
async function delistedReason(db, jobId) {
|
|
6239
6297
|
const job = await db.prepare("SELECT ats, slug, last_seen_at FROM jobs WHERE id = ?").bind(jobId).first();
|
|
6240
6298
|
if (!job?.ats || !job.slug || !job.last_seen_at) return null;
|
|
6241
|
-
const
|
|
6242
|
-
if (!
|
|
6243
|
-
|
|
6244
|
-
const newest = Date.parse(board.newest);
|
|
6245
|
-
if (Number.isNaN(seen) || Number.isNaN(newest)) return null;
|
|
6246
|
-
if (newest - seen <= DELISTED_LAG_MS) return null;
|
|
6247
|
-
return `this posting has not appeared in a scrape of the ${job.ats} board '${job.slug}' since ${job.last_seen_at}, while other jobs on that board were seen as recently as ${board.newest} — it looks taken down`;
|
|
6299
|
+
const newest = (await boardNewest(db, [job])).values().next().value ?? null;
|
|
6300
|
+
if (!isDelisted(job.last_seen_at, newest)) return null;
|
|
6301
|
+
return `this posting has not appeared in a scrape of the ${job.ats} board '${job.slug}' since ${job.last_seen_at}, while other jobs on that board were seen as recently as ${newest} — it looks taken down`;
|
|
6248
6302
|
}
|
|
6249
6303
|
const FORBIDDEN = {
|
|
6250
6304
|
success: false,
|
|
@@ -6283,6 +6337,10 @@ function registerApplicationRoutes(app2) {
|
|
|
6283
6337
|
description: "Job not found",
|
|
6284
6338
|
content: { "application/json": { schema: ErrorResponseSchema } }
|
|
6285
6339
|
},
|
|
6340
|
+
422: {
|
|
6341
|
+
description: "The posting was typed in by hand with no link",
|
|
6342
|
+
content: { "application/json": { schema: ErrorResponseSchema } }
|
|
6343
|
+
},
|
|
6286
6344
|
409: {
|
|
6287
6345
|
description: "The posting looks taken down (retry with force), the row is approved (retry with force) or already submitted, or the owner name has never signed in",
|
|
6288
6346
|
content: { "application/json": { schema: IdentityErrorResponseSchema } }
|
|
@@ -6301,13 +6359,23 @@ function registerApplicationRoutes(app2) {
|
|
|
6301
6359
|
if (isEffectiveUserError(who)) return c.json(who.error.body, who.error.status);
|
|
6302
6360
|
const userId = who.userId;
|
|
6303
6361
|
const db = c.env.JOB_PLATFORM_DB;
|
|
6304
|
-
const job = await db.prepare("SELECT id FROM jobs WHERE id = ?").bind(id).first();
|
|
6362
|
+
const job = await db.prepare("SELECT id, url FROM jobs WHERE id = ?").bind(id).first();
|
|
6305
6363
|
if (!job) {
|
|
6306
6364
|
return c.json(
|
|
6307
6365
|
{ success: false, error: "Not found", message: `Job '${id}' not found` },
|
|
6308
6366
|
404
|
|
6309
6367
|
);
|
|
6310
6368
|
}
|
|
6369
|
+
if (publicUrl(job.url) === null) {
|
|
6370
|
+
return c.json(
|
|
6371
|
+
{
|
|
6372
|
+
success: false,
|
|
6373
|
+
error: "Unprocessable",
|
|
6374
|
+
message: "This posting has no link, so the runner has no form to fill."
|
|
6375
|
+
},
|
|
6376
|
+
422
|
|
6377
|
+
);
|
|
6378
|
+
}
|
|
6311
6379
|
if (!body?.force) {
|
|
6312
6380
|
const delisted = await delistedReason(db, id);
|
|
6313
6381
|
if (delisted) {
|
|
@@ -6788,7 +6856,7 @@ function registerFillRoutes(app2) {
|
|
|
6788
6856
|
{
|
|
6789
6857
|
success: true,
|
|
6790
6858
|
data: {
|
|
6791
|
-
job,
|
|
6859
|
+
job: { ...job, url: publicUrl(job.url) },
|
|
6792
6860
|
application: app_ ? { id: app_.id, status: app_.status, variant_slug: slug2 } : null,
|
|
6793
6861
|
profile: profile?.profile ?? null,
|
|
6794
6862
|
// What the approved fill entered, keyed by the runner's normalised
|
|
@@ -7255,7 +7323,8 @@ function registerLocationsRoute(app2) {
|
|
|
7255
7323
|
);
|
|
7256
7324
|
}
|
|
7257
7325
|
const ImportJobSchema = z.object({
|
|
7258
|
-
|
|
7326
|
+
/** Required, except for a `manual` posting that has no link. */
|
|
7327
|
+
url: z.string().trim().url().max(2e3).optional(),
|
|
7259
7328
|
/** Where it lands in the pipeline when it is new to the caller. */
|
|
7260
7329
|
state: JobStateSchema.exclude(["dismissed"]).default("saved"),
|
|
7261
7330
|
/** Typed by the person: store this instead of reading the page. */
|
|
@@ -7263,8 +7332,14 @@ const ImportJobSchema = z.object({
|
|
|
7263
7332
|
title: z.string().trim().min(1).max(300),
|
|
7264
7333
|
company: z.string().trim().min(1).max(200),
|
|
7265
7334
|
location: z.string().trim().max(200).default(""),
|
|
7266
|
-
description: z.string().trim().max(2e4).default("")
|
|
7335
|
+
description: z.string().trim().max(2e4).default(""),
|
|
7336
|
+
salary_min: z.number().int().min(0).max(1e7).nullable().optional(),
|
|
7337
|
+
salary_max: z.number().int().min(0).max(1e7).nullable().optional(),
|
|
7338
|
+
workplace_type: z.enum(["remote", "hybrid", "onsite", "unknown"]).default("unknown")
|
|
7267
7339
|
}).optional()
|
|
7340
|
+
}).refine((b) => b.url !== void 0 || b.manual !== void 0, {
|
|
7341
|
+
message: "url is required unless the posting is typed in by hand (manual)",
|
|
7342
|
+
path: ["url"]
|
|
7268
7343
|
}).openapi("ImportJob");
|
|
7269
7344
|
const ImportedSchema = z.object({
|
|
7270
7345
|
success: z.literal(true),
|
|
@@ -7274,7 +7349,8 @@ const ImportedSchema = z.object({
|
|
|
7274
7349
|
title: z.string(),
|
|
7275
7350
|
company: z.string(),
|
|
7276
7351
|
location: z.string(),
|
|
7277
|
-
|
|
7352
|
+
/** null for a posting typed in by hand with no link. */
|
|
7353
|
+
url: z.string().nullable()
|
|
7278
7354
|
}),
|
|
7279
7355
|
/** The posting was new to the corpus (false: it was already there). */
|
|
7280
7356
|
created: z.boolean(),
|
|
@@ -7298,6 +7374,7 @@ function manualDescriptionHtml(text) {
|
|
|
7298
7374
|
return text.split(/\n\s*\n/).map((para) => `<p>${escapeHtml(para.trim()).replace(/\n/g, "<br>")}</p>`).join("");
|
|
7299
7375
|
}
|
|
7300
7376
|
async function manualId(url) {
|
|
7377
|
+
if (url === void 0) return `manual_${crypto.randomUUID().replace(/-/g, "").slice(0, 16)}`;
|
|
7301
7378
|
const digest = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(url));
|
|
7302
7379
|
const hex = [...new Uint8Array(digest)].map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
7303
7380
|
return `manual_${hex.slice(0, 16)}`;
|
|
@@ -7363,27 +7440,34 @@ function registerImportRoute(app2) {
|
|
|
7363
7440
|
const who = await effectiveUserId(c, ownerName);
|
|
7364
7441
|
if (isEffectiveUserError(who)) return c.json(who.error.body, who.error.status);
|
|
7365
7442
|
const db = c.env.JOB_PLATFORM_DB;
|
|
7366
|
-
let row = await db.prepare(`SELECT ${JOB_COLS} FROM jobs WHERE url = ?`).bind(url).first();
|
|
7443
|
+
let row = url === void 0 ? null : await db.prepare(`SELECT ${JOB_COLS} FROM jobs WHERE url = ?`).bind(url).first();
|
|
7367
7444
|
let created = false;
|
|
7368
7445
|
if (!row && manual) {
|
|
7369
7446
|
const now2 = (/* @__PURE__ */ new Date()).toISOString();
|
|
7370
7447
|
const id = await manualId(url);
|
|
7448
|
+
const salaryGiven = (manual.salary_min ?? null) !== null || (manual.salary_max ?? null) !== null;
|
|
7371
7449
|
const [res] = await db.batch([
|
|
7372
7450
|
insertJobStatement(
|
|
7373
7451
|
db,
|
|
7374
7452
|
{
|
|
7375
7453
|
id,
|
|
7376
|
-
url
|
|
7454
|
+
url: url ?? `${NO_URL_PREFIX}${id}`,
|
|
7377
7455
|
source_site: MANUAL_SOURCE,
|
|
7378
7456
|
title: manual.title,
|
|
7379
7457
|
company: manual.company,
|
|
7380
7458
|
location: manual.location,
|
|
7381
7459
|
job_type: "unknown",
|
|
7382
|
-
workplace_type:
|
|
7383
|
-
salary:
|
|
7460
|
+
workplace_type: manual.workplace_type,
|
|
7461
|
+
salary: salaryGiven ? {
|
|
7462
|
+
min: manual.salary_min ?? null,
|
|
7463
|
+
max: manual.salary_max ?? null,
|
|
7464
|
+
currency: null,
|
|
7465
|
+
period: null,
|
|
7466
|
+
text: null
|
|
7467
|
+
} : null,
|
|
7384
7468
|
description: manualDescriptionHtml(manual.description),
|
|
7385
7469
|
posted_date: null,
|
|
7386
|
-
application_url: url,
|
|
7470
|
+
application_url: url ?? null,
|
|
7387
7471
|
department: null,
|
|
7388
7472
|
scraper_used: null,
|
|
7389
7473
|
raw: {}
|
|
@@ -7397,6 +7481,7 @@ function registerImportRoute(app2) {
|
|
|
7397
7481
|
if (created) await rankNewJobs(db);
|
|
7398
7482
|
}
|
|
7399
7483
|
if (!row) {
|
|
7484
|
+
if (url === void 0) throw new Error("import: no url and no manual entry");
|
|
7400
7485
|
let extracted;
|
|
7401
7486
|
try {
|
|
7402
7487
|
extracted = await extractPosting(c.env, url, await greenhouseSlugFor(db, url));
|
|
@@ -7449,7 +7534,7 @@ function registerImportRoute(app2) {
|
|
|
7449
7534
|
{
|
|
7450
7535
|
success: true,
|
|
7451
7536
|
data: {
|
|
7452
|
-
job: row,
|
|
7537
|
+
job: { ...row, url: publicUrl(row.url) },
|
|
7453
7538
|
created,
|
|
7454
7539
|
state: kept.success ? kept.data : state,
|
|
7455
7540
|
already_tracked: true
|
|
@@ -7471,7 +7556,15 @@ function registerImportRoute(app2) {
|
|
|
7471
7556
|
).bind(row.id, who.userId, state, now)
|
|
7472
7557
|
]);
|
|
7473
7558
|
return c.json(
|
|
7474
|
-
{
|
|
7559
|
+
{
|
|
7560
|
+
success: true,
|
|
7561
|
+
data: {
|
|
7562
|
+
job: { ...row, url: publicUrl(row.url) },
|
|
7563
|
+
created,
|
|
7564
|
+
state,
|
|
7565
|
+
already_tracked: false
|
|
7566
|
+
}
|
|
7567
|
+
},
|
|
7475
7568
|
200
|
|
7476
7569
|
);
|
|
7477
7570
|
}
|
package/dist/ingestWrite.d.ts
CHANGED
|
@@ -13,6 +13,14 @@ type DB = AppEnv['JOB_PLATFORM_DB'];
|
|
|
13
13
|
* `manual`). Nothing verified it, so the feed shows it only to people tracking it.
|
|
14
14
|
*/
|
|
15
15
|
export declare const MANUAL_SOURCE = "manual";
|
|
16
|
+
/**
|
|
17
|
+
* What jobs.url (NOT NULL UNIQUE) holds for a posting typed in by hand with no
|
|
18
|
+
* link: an internal key, never a URL. publicUrl() turns it into null in every
|
|
19
|
+
* response, so no UI renders it as a link.
|
|
20
|
+
*/
|
|
21
|
+
export declare const NO_URL_PREFIX = "hadoku:manual/";
|
|
22
|
+
/** jobs.url as an API returns it: null for a hand-typed posting with no link. */
|
|
23
|
+
export declare function publicUrl(url: string): string | null;
|
|
16
24
|
export type IngestJob = z.infer<typeof IngestJobSchema>;
|
|
17
25
|
/**
|
|
18
26
|
* The INSERT OR IGNORE for one posting. Ignored when its url (UNIQUE) or id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingestWrite.d.ts","sourceRoot":"","sources":["../src/ingestWrite.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAQpD,KAAK,EAAE,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,aAAa,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ingestWrite.d.ts","sourceRoot":"","sources":["../src/ingestWrite.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAQpD,KAAK,EAAE,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,aAAa,WAAW,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAE9C,iFAAiF;AACjF,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEpD;AACD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAQxD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CACjC,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,SAAS,EACd,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,2DA6DjF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,WAAW,CAAC,EAAE,EAAE,MAAM,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAyB9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applications.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/applications.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applications.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/applications.ts"],"names":[],"mappings":"AAeA,OAAO,EAKN,KAAK,OAAO,EAEZ,MAAM,aAAa,CAAC;AAwCrB,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAUhF;AAiHD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CA8f5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detail.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/detail.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"detail.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/detail.ts"],"names":[],"mappings":"AAaA,OAAO,EAON,KAAK,OAAO,EACZ,MAAM,aAAa,CAAC;AAErB,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAgLtD"}
|
|
@@ -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":"AAoBA,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":"AA0CA,OAAO,EAKN,KAAK,OAAO,EACZ,MAAM,aAAa,CAAC;AAyErB;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM1D;AAoCD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAyNtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/pipeline.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/pipeline.ts"],"names":[],"mappings":"AAiCA,OAAO,EAMN,KAAK,OAAO,EACZ,MAAM,aAAa,CAAC;AAmCrB,MAAM,WAAW,WAAW;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAGD,eAAO,MAAM,aAAa,+DAA+D,CAAC;AAqB1F,wBAAgB,UAAU,CAAC,CAAC,EAAE,WAAW;;;;;;EAQxC;AAgCD,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAuTzD"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -254,7 +254,7 @@ export declare const JobSummarySchema: z.ZodObject<{
|
|
|
254
254
|
salary_min: z.ZodNullable<z.ZodNumber>;
|
|
255
255
|
salary_max: z.ZodNullable<z.ZodNumber>;
|
|
256
256
|
source_site: z.ZodString;
|
|
257
|
-
url: z.ZodString
|
|
257
|
+
url: z.ZodNullable<z.ZodString>;
|
|
258
258
|
application_url: z.ZodNullable<z.ZodString>;
|
|
259
259
|
posted_date: z.ZodNullable<z.ZodString>;
|
|
260
260
|
scraped_at: z.ZodString;
|
|
@@ -329,7 +329,7 @@ export declare const JobDetailSchema: z.ZodObject<{
|
|
|
329
329
|
salary_min: z.ZodNullable<z.ZodNumber>;
|
|
330
330
|
salary_max: z.ZodNullable<z.ZodNumber>;
|
|
331
331
|
source_site: z.ZodString;
|
|
332
|
-
url: z.ZodString
|
|
332
|
+
url: z.ZodNullable<z.ZodString>;
|
|
333
333
|
application_url: z.ZodNullable<z.ZodString>;
|
|
334
334
|
posted_date: z.ZodNullable<z.ZodString>;
|
|
335
335
|
scraped_at: z.ZodString;
|
|
@@ -409,6 +409,8 @@ export declare const JobDetailSchema: z.ZodObject<{
|
|
|
409
409
|
contact_name: z.ZodNullable<z.ZodString>;
|
|
410
410
|
contact_email: z.ZodNullable<z.ZodString>;
|
|
411
411
|
}, z.core.$strip>>;
|
|
412
|
+
last_seen_at: z.ZodNullable<z.ZodString>;
|
|
413
|
+
closed: z.ZodBoolean;
|
|
412
414
|
}, z.core.$strip>;
|
|
413
415
|
export declare const FEEDBACK_REASONS: readonly ["pay", "location", "stack", "domain", "level", "company", "comp", "fit", "other"];
|
|
414
416
|
export declare const SetJobFeedbackSchema: z.ZodObject<{
|
|
@@ -516,7 +518,7 @@ export declare const JobsResponseSchema: z.ZodObject<{
|
|
|
516
518
|
salary_min: z.ZodNullable<z.ZodNumber>;
|
|
517
519
|
salary_max: z.ZodNullable<z.ZodNumber>;
|
|
518
520
|
source_site: z.ZodString;
|
|
519
|
-
url: z.ZodString
|
|
521
|
+
url: z.ZodNullable<z.ZodString>;
|
|
520
522
|
application_url: z.ZodNullable<z.ZodString>;
|
|
521
523
|
posted_date: z.ZodNullable<z.ZodString>;
|
|
522
524
|
scraped_at: z.ZodString;
|
|
@@ -590,7 +592,7 @@ export declare const JobResponseSchema: z.ZodObject<{
|
|
|
590
592
|
salary_min: z.ZodNullable<z.ZodNumber>;
|
|
591
593
|
salary_max: z.ZodNullable<z.ZodNumber>;
|
|
592
594
|
source_site: z.ZodString;
|
|
593
|
-
url: z.ZodString
|
|
595
|
+
url: z.ZodNullable<z.ZodString>;
|
|
594
596
|
application_url: z.ZodNullable<z.ZodString>;
|
|
595
597
|
posted_date: z.ZodNullable<z.ZodString>;
|
|
596
598
|
scraped_at: z.ZodString;
|
|
@@ -670,6 +672,8 @@ export declare const JobResponseSchema: z.ZodObject<{
|
|
|
670
672
|
contact_name: z.ZodNullable<z.ZodString>;
|
|
671
673
|
contact_email: z.ZodNullable<z.ZodString>;
|
|
672
674
|
}, z.core.$strip>>;
|
|
675
|
+
last_seen_at: z.ZodNullable<z.ZodString>;
|
|
676
|
+
closed: z.ZodBoolean;
|
|
673
677
|
}, z.core.$strip>;
|
|
674
678
|
}, z.core.$strip>;
|
|
675
679
|
}, z.core.$strip>;
|
|
@@ -1297,7 +1301,7 @@ export declare const PipelineItemSchema: z.ZodObject<{
|
|
|
1297
1301
|
workplace_type: z.ZodString;
|
|
1298
1302
|
salary_min: z.ZodNullable<z.ZodNumber>;
|
|
1299
1303
|
salary_max: z.ZodNullable<z.ZodNumber>;
|
|
1300
|
-
url: z.ZodString
|
|
1304
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1301
1305
|
posted_date: z.ZodNullable<z.ZodString>;
|
|
1302
1306
|
state: z.ZodEnum<{
|
|
1303
1307
|
interested: "interested";
|
|
@@ -1328,6 +1332,8 @@ export declare const PipelineItemSchema: z.ZodObject<{
|
|
|
1328
1332
|
}>>;
|
|
1329
1333
|
applied_at: z.ZodNullable<z.ZodString>;
|
|
1330
1334
|
last_event_at: z.ZodNullable<z.ZodString>;
|
|
1335
|
+
last_seen_at: z.ZodNullable<z.ZodString>;
|
|
1336
|
+
closed: z.ZodBoolean;
|
|
1331
1337
|
}, z.core.$strip>;
|
|
1332
1338
|
export declare const PipelineResponseSchema: z.ZodObject<{
|
|
1333
1339
|
success: z.ZodLiteral<true>;
|
|
@@ -1340,7 +1346,7 @@ export declare const PipelineResponseSchema: z.ZodObject<{
|
|
|
1340
1346
|
workplace_type: z.ZodString;
|
|
1341
1347
|
salary_min: z.ZodNullable<z.ZodNumber>;
|
|
1342
1348
|
salary_max: z.ZodNullable<z.ZodNumber>;
|
|
1343
|
-
url: z.ZodString
|
|
1349
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1344
1350
|
posted_date: z.ZodNullable<z.ZodString>;
|
|
1345
1351
|
state: z.ZodEnum<{
|
|
1346
1352
|
interested: "interested";
|
|
@@ -1371,6 +1377,8 @@ export declare const PipelineResponseSchema: z.ZodObject<{
|
|
|
1371
1377
|
}>>;
|
|
1372
1378
|
applied_at: z.ZodNullable<z.ZodString>;
|
|
1373
1379
|
last_event_at: z.ZodNullable<z.ZodString>;
|
|
1380
|
+
last_seen_at: z.ZodNullable<z.ZodString>;
|
|
1381
|
+
closed: z.ZodBoolean;
|
|
1374
1382
|
}, z.core.$strip>>;
|
|
1375
1383
|
}, z.core.$strip>;
|
|
1376
1384
|
}, z.core.$strip>;
|
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,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAG3D,eAAO,MAAM,kBAAkB;;;;;;;;;E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e378bec083663cb",
|
|
5
5
|
"description": "Job listings aggregation and tracking dashboard - Worker package",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|