@hadoku/jobplatform-worker 2.32.77 → 2.32.79
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/clients/resume.d.ts +39 -0
- package/dist/clients/resume.d.ts.map +1 -0
- package/dist/clients/scraper.d.ts +7 -3
- package/dist/clients/scraper.d.ts.map +1 -1
- package/dist/index.js +1520 -1323
- package/dist/resumeSeed.d.ts +22 -0
- package/dist/resumeSeed.d.ts.map +1 -0
- package/dist/routes/jobs/fill.d.ts +6 -0
- package/dist/routes/jobs/fill.d.ts.map +1 -1
- package/dist/routes/jobs/tailoring.d.ts +5 -0
- package/dist/routes/jobs/tailoring.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { AppEnv } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* resume-api, reached the way any service caller reaches it: through the
|
|
4
|
+
* edge, over the EDGE binding, as this worker's own service identity. It
|
|
5
|
+
* used to be called over its own binding with `X-Edge-Auth` and
|
|
6
|
+
* `X-Hadoku-Tier` stamped from EDGE_AUTH_SECRET. Since 2026-11-02 each backend
|
|
7
|
+
* holds its own seal, so this worker's opens this worker alone, and a tier is
|
|
8
|
+
* the edge's to stamp, never a caller's.
|
|
9
|
+
*/
|
|
10
|
+
export declare function resumeViaEdge(env: AppEnv, path: string, init: {
|
|
11
|
+
method: 'GET' | 'POST' | 'PUT';
|
|
12
|
+
headers?: Record<string, string>;
|
|
13
|
+
body?: string;
|
|
14
|
+
}): Promise<Response>;
|
|
15
|
+
export declare function callResumeBinding(env: AppEnv, path: string, payload: Record<string, unknown>, method?: 'POST' | 'PUT'): Promise<Response>;
|
|
16
|
+
/**
|
|
17
|
+
* Whether a profile save has to replace the person's résumé at resume-api: it
|
|
18
|
+
* has something to build from, and either that résumé text (the saved
|
|
19
|
+
* `master_resume_text`, or the one composed from the structured fields) or
|
|
20
|
+
* the contact details changed. Contact goes through the same import, so the
|
|
21
|
+
* details parsed from the résumé header and the profile's merge the same way
|
|
22
|
+
* as on the first seed.
|
|
23
|
+
*
|
|
24
|
+
* A profile that no longer has anything to build from leaves resume-api
|
|
25
|
+
* alone: the person keeps the résumé they had there.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resumeNeedsReseed(before: Record<string, unknown> | undefined, after: Record<string, unknown>): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Replace a person's résumé content at resume-api with what their applicant
|
|
30
|
+
* profile now says. Called after a profile save that changed the résumé text
|
|
31
|
+
* or contact details (resumeNeedsReseed), so tailoring stops using the old
|
|
32
|
+
* ones. A profile with nothing to build from is left alone, and so is the
|
|
33
|
+
* site owner's (resume-api answers OWNER_SET). A 404 means resume-api does not
|
|
34
|
+
* have per-user résumés yet (this worker deployed first): logged, not
|
|
35
|
+
* reported. Throws on any other upstream failure, for runAfterResponse to
|
|
36
|
+
* report.
|
|
37
|
+
*/
|
|
38
|
+
export declare function reseedResume(env: AppEnv, userId: string, profile: Record<string, unknown>): Promise<void>;
|
|
39
|
+
//# sourceMappingURL=resume.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resume.d.ts","sourceRoot":"","sources":["../../src/clients/resume.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAI1C;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC5B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE;IAAE,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GACvF,OAAO,CAAC,QAAQ,CAAC,CAOnB;AAED,wBAAsB,iBAAiB,CACtC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,MAAM,GAAE,MAAM,GAAG,KAAc,GAC7B,OAAO,CAAC,QAAQ,CAAC,CAMnB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC3C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAMT;AAcD;;;;;;;;;GASG;AACH,wBAAsB,YAAY,CACjC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAAC,IAAI,CAAC,CAqBf"}
|
|
@@ -56,9 +56,13 @@ export declare function matchCompanies(env: AppEnv, names: string[], providers?:
|
|
|
56
56
|
/**
|
|
57
57
|
* Trigger a scrape across all active registry targets. Fire-and-forget (202).
|
|
58
58
|
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
59
|
+
* Every run scrapes the whole registry (there is no per-target /search), and
|
|
60
|
+
* this is called once per company a profile adds. That is safe only because
|
|
61
|
+
* the scraper coalesces: while a run is going, further calls queue ONE
|
|
62
|
+
* follow-up that reads the newest directives when it starts, so a bulk add of
|
|
63
|
+
* N companies costs at most two runs (hadoku-scrapers-collab 41dd5c2). Before
|
|
64
|
+
* that, 16 adds on 2026-11-27 ran up to 13 full scrapes at once and pushed D1
|
|
65
|
+
* into "overloaded" (#48).
|
|
62
66
|
*/
|
|
63
67
|
export declare function triggerSearch(env: AppEnv): Promise<void>;
|
|
64
68
|
/** One posting read from its URL by the scraper, in the ingest-webhook shape. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scraper.d.ts","sourceRoot":"","sources":["../../src/clients/scraper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAA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