@hadoku/jobplatform-worker 2.32.78 → 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/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,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What resume-api needs to build a person's own résumé, read off their
|
|
3
|
+
* applicant profile.
|
|
4
|
+
*
|
|
5
|
+
* resume-api keeps résumé content per user (its blocks and contact profile).
|
|
6
|
+
* A user who has never had any gets a 409 (`NO_RESUME_BLOCKS` /
|
|
7
|
+
* `NO_CONTACT_PROFILE`) instead of the owner's résumé, and tailoring.ts seeds
|
|
8
|
+
* them from here: the `master_resume_text` they saved when there is one, else
|
|
9
|
+
* a résumé composed from the structured fields.
|
|
10
|
+
*/
|
|
11
|
+
type Profile = Record<string, unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* The résumé text to import: `master_resume_text` when the person saved one,
|
|
14
|
+
* otherwise markdown composed from name, contact, headline, summary, work
|
|
15
|
+
* history, education and languages. Null when there is nothing beyond a name
|
|
16
|
+
* and contact details, because a résumé of only a header is not worth sending.
|
|
17
|
+
*/
|
|
18
|
+
export declare function profileResumeText(profile: Profile): string | null;
|
|
19
|
+
/** resume-api's contact profile (its `ContactProfile`), from the applicant profile. */
|
|
20
|
+
export declare function profileContact(profile: Profile): Record<string, string>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=resumeSeed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resumeSeed.d.ts","sourceRoot":"","sources":["../src/resumeSeed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAqCvC;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAmDjE;AAED,uFAAuF;AACvF,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAYvE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { D1Database } from '@cloudflare/workers-types';
|
|
1
2
|
import { type JobsApp } from './shared.js';
|
|
2
3
|
/**
|
|
3
4
|
* Free-text facts a form asks for that are not contact details: optional
|
|
@@ -5,5 +6,10 @@ import { type JobsApp } from './shared.js';
|
|
|
5
6
|
* carried these; master_resume_text is the whole résumé as plain text.
|
|
6
7
|
*/
|
|
7
8
|
export declare const PROFILE_TEXT_LIMITS: Readonly<Record<string, number>>;
|
|
9
|
+
/** The applicant profile a user saved, or null when none (or an unusable one) is stored. */
|
|
10
|
+
export declare function loadProfile(db: D1Database, userId: string): Promise<{
|
|
11
|
+
profile: Record<string, unknown>;
|
|
12
|
+
updated_at: string;
|
|
13
|
+
} | null>;
|
|
8
14
|
export declare function registerFillRoutes(app: JobsApp): void;
|
|
9
15
|
//# 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,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAqD,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAmB9F;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAKhE,CAAC;AAaF,4FAA4F;AAC5F,wBAAsB,WAAW,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM;;;UAY/D;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,QAoH9C"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { type JobsApp } from './shared.js';
|
|
2
|
+
/** resume-api's 409 codes for a person whose own résumé content is not there yet. */
|
|
3
|
+
type MissingContent = 'NO_RESUME_BLOCKS' | 'NO_CONTACT_PROFILE';
|
|
4
|
+
/** What the UI shows when there is nothing of the person's own to build from. */
|
|
5
|
+
export declare const MISSING_CONTENT_MESSAGE: Record<MissingContent, string>;
|
|
2
6
|
export declare function registerTailoringRoutes(app: JobsApp): void;
|
|
7
|
+
export {};
|
|
3
8
|
//# sourceMappingURL=tailoring.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailoring.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/tailoring.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tailoring.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/tailoring.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAqD,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAyB9F,qFAAqF;AACrF,KAAK,cAAc,GAAG,kBAAkB,GAAG,oBAAoB,CAAC;AAchE,iFAAiF;AACjF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAQlE,CAAC;AA4KF,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CA6P1D"}
|
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.79",
|
|
4
|
+
"gitHead": "d17aa96c9cc97fe9f35c749ee9c84f5e6da3bb31",
|
|
5
5
|
"description": "Job listings aggregation and tracking dashboard - Worker package",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|