@hadoku/jobplatform-worker 2.32.45 → 2.32.47

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 CHANGED
@@ -438,6 +438,14 @@ const HealthResponseSchema = z.object({
438
438
  }).openapi("HealthResponse");
439
439
  const ProfileTrackSchema = z.enum(["ic", "manager", "either"]).openapi("ProfileTrack");
440
440
  const RoleLevelSchema = z.enum([...IC_LEVELS, ...MANAGER_LEVELS]).openapi("RoleLevel");
441
+ const ProfileViewDefaultsShape = {
442
+ /** near= centre: a place key from GET /locations or free text, stored as given. */
443
+ location: z.string().trim().max(100).nullable(),
444
+ radius_miles: z.number().int().min(1).max(500),
445
+ min_salary: z.number().int().min(0).max(1e7).nullable(),
446
+ include_undisclosed_salary: z.boolean(),
447
+ us_only: z.boolean()
448
+ };
441
449
  const ProfileSchema = z.object({
442
450
  id: z.string(),
443
451
  name: z.string(),
@@ -445,20 +453,34 @@ const ProfileSchema = z.object({
445
453
  track: ProfileTrackSchema,
446
454
  levels: z.array(RoleLevelSchema),
447
455
  remote_pref: z.enum(["remote", "hybrid", "onsite", "any"]),
456
+ ...ProfileViewDefaultsShape,
448
457
  created_at: z.string(),
449
458
  // True for the shared default profile (id 'default') — whether the caller
450
459
  // is seeing the code seed or their own edited copy. Regular profiles omit
451
460
  // it (defaults to false).
452
461
  is_default: z.boolean().default(false)
453
462
  }).openapi("Profile");
454
- const CreateProfileSchema = z.object({
463
+ const ProfileWritableShape = {
455
464
  name: z.string().min(1),
456
- keywords: z.array(z.string()).default([]),
457
- track: ProfileTrackSchema.default("either"),
458
- levels: z.array(RoleLevelSchema).default([]),
459
- remote_pref: z.enum(["remote", "hybrid", "onsite", "any"]).default("any")
465
+ keywords: z.array(z.string()),
466
+ track: ProfileTrackSchema,
467
+ levels: z.array(RoleLevelSchema),
468
+ remote_pref: z.enum(["remote", "hybrid", "onsite", "any"]),
469
+ ...ProfileViewDefaultsShape
470
+ };
471
+ const CreateProfileSchema = z.object({
472
+ ...ProfileWritableShape,
473
+ keywords: ProfileWritableShape.keywords.default([]),
474
+ track: ProfileWritableShape.track.default("either"),
475
+ levels: ProfileWritableShape.levels.default([]),
476
+ remote_pref: ProfileWritableShape.remote_pref.default("any"),
477
+ location: ProfileWritableShape.location.default(null),
478
+ radius_miles: ProfileWritableShape.radius_miles.default(25),
479
+ min_salary: ProfileWritableShape.min_salary.default(null),
480
+ include_undisclosed_salary: ProfileWritableShape.include_undisclosed_salary.default(true),
481
+ us_only: ProfileWritableShape.us_only.default(false)
460
482
  }).openapi("CreateProfile");
461
- const UpdateProfileSchema = CreateProfileSchema.partial().openapi("UpdateProfile");
483
+ const UpdateProfileSchema = z.object(ProfileWritableShape).partial().openapi("UpdateProfile");
462
484
  const ProfilesResponseSchema = S(z.object({ profiles: z.array(ProfileSchema) })).openapi(
463
485
  "ProfilesResponse"
464
486
  );
@@ -502,7 +524,8 @@ const JobSummarySchema = z.object({
502
524
  salary_min: z.number().nullable(),
503
525
  salary_max: z.number().nullable(),
504
526
  source_site: z.string(),
505
- url: z.string(),
527
+ /** null for a posting typed in by hand with no link. */
528
+ url: z.string().nullable(),
506
529
  /**
507
530
  * Where the form actually lives, when the posting names somewhere other
508
531
  * than `url`. The feed carries it so a card's Apply lands on the same
@@ -1032,7 +1055,8 @@ const PipelineItemSchema = z.object({
1032
1055
  workplace_type: z.string(),
1033
1056
  salary_min: z.number().nullable(),
1034
1057
  salary_max: z.number().nullable(),
1035
- url: z.string(),
1058
+ /** null for a posting typed in by hand with no link. */
1059
+ url: z.string().nullable(),
1036
1060
  posted_date: z.string().nullable(),
1037
1061
  state: JobStateSchema,
1038
1062
  updated_at: z.string(),
@@ -2632,6 +2656,10 @@ function scheduleRankBuild(c, db, profileId, profile) {
2632
2656
  );
2633
2657
  }
2634
2658
  const MANUAL_SOURCE = "manual";
2659
+ const NO_URL_PREFIX = "hadoku:manual/";
2660
+ function publicUrl(url) {
2661
+ return url.startsWith(NO_URL_PREFIX) ? null : url;
2662
+ }
2635
2663
  function normalizeWorkplaceType(wt) {
2636
2664
  if (wt === "on_site") return "onsite";
2637
2665
  return wt;
@@ -3639,8 +3667,9 @@ app$3.openapi(
3639
3667
  const id = crypto.randomUUID();
3640
3668
  const now = (/* @__PURE__ */ new Date()).toISOString();
3641
3669
  await db.prepare(
3642
- `INSERT INTO profiles (id, user_id, name, keywords, target_companies, track, levels, remote_pref, created_at)
3643
- VALUES (?, ?, ?, ?, '[]', ?, ?, ?, ?)`
3670
+ `INSERT INTO profiles (id, user_id, name, keywords, target_companies, track, levels, remote_pref,
3671
+ location, radius_miles, min_salary, include_undisclosed_salary, us_only, created_at)
3672
+ VALUES (?, ?, ?, ?, '[]', ?, ?, ?, ?, ?, ?, ?, ?, ?)`
3644
3673
  ).bind(
3645
3674
  id,
3646
3675
  userId,
@@ -3649,6 +3678,11 @@ app$3.openapi(
3649
3678
  body.track,
3650
3679
  JSON.stringify(body.levels),
3651
3680
  body.remote_pref,
3681
+ body.location,
3682
+ body.radius_miles,
3683
+ body.min_salary,
3684
+ body.include_undisclosed_salary ? 1 : 0,
3685
+ body.us_only ? 1 : 0,
3652
3686
  now
3653
3687
  ).run();
3654
3688
  if (body.keywords.length > 0) triggerSearchBg(c, c.env);
@@ -3691,21 +3725,30 @@ app$3.openapi(
3691
3725
  }
3692
3726
  const base = extractFields(existing);
3693
3727
  const merged = mergeFields(base, body);
3728
+ const criteriaBefore = criteriaHash(await loadScorableProfile(db, id));
3694
3729
  await db.prepare(
3695
- `UPDATE profiles SET name=?, keywords=?, track=?, levels=?, remote_pref=? WHERE id=? AND user_id=?`
3730
+ `UPDATE profiles SET name=?, keywords=?, track=?, levels=?, remote_pref=?,
3731
+ location=?, radius_miles=?, min_salary=?, include_undisclosed_salary=?, us_only=?
3732
+ WHERE id=? AND user_id=?`
3696
3733
  ).bind(
3697
3734
  merged.name,
3698
3735
  JSON.stringify(merged.keywords),
3699
3736
  merged.track,
3700
3737
  JSON.stringify(merged.levels),
3701
3738
  merged.remote_pref,
3739
+ merged.location,
3740
+ merged.radius_miles,
3741
+ merged.min_salary,
3742
+ merged.include_undisclosed_salary ? 1 : 0,
3743
+ merged.us_only ? 1 : 0,
3702
3744
  id,
3703
3745
  userId
3704
3746
  ).run();
3705
3747
  if (JSON.stringify(merged.keywords) !== JSON.stringify(base.keywords)) {
3706
3748
  triggerSearchBg(c, c.env);
3707
3749
  }
3708
- scheduleRankBuild(c, db, id, await loadScorableProfile(db, id));
3750
+ const scorable = await loadScorableProfile(db, id);
3751
+ if (criteriaHash(scorable) !== criteriaBefore) scheduleRankBuild(c, db, id, scorable);
3709
3752
  const profile = {
3710
3753
  id,
3711
3754
  ...merged,
@@ -3923,7 +3966,12 @@ function extractFields(r) {
3923
3966
  keywords: JSON.parse(r.keywords),
3924
3967
  track: r.track,
3925
3968
  levels: JSON.parse(r.levels),
3926
- remote_pref: r.remote_pref
3969
+ remote_pref: r.remote_pref,
3970
+ location: r.location ?? null,
3971
+ radius_miles: Number(r.radius_miles ?? 25),
3972
+ min_salary: r.min_salary === null || r.min_salary === void 0 ? null : Number(r.min_salary),
3973
+ include_undisclosed_salary: Number(r.include_undisclosed_salary ?? 1) === 1,
3974
+ us_only: Number(r.us_only ?? 0) === 1
3927
3975
  };
3928
3976
  }
3929
3977
  function mergeFields(base, body) {
@@ -3932,7 +3980,12 @@ function mergeFields(base, body) {
3932
3980
  keywords: body.keywords ?? base.keywords,
3933
3981
  track: body.track ?? base.track,
3934
3982
  levels: body.levels ?? base.levels,
3935
- remote_pref: body.remote_pref ?? base.remote_pref
3983
+ remote_pref: body.remote_pref ?? base.remote_pref,
3984
+ location: body.location !== void 0 ? body.location : base.location,
3985
+ radius_miles: body.radius_miles ?? base.radius_miles,
3986
+ min_salary: body.min_salary !== void 0 ? body.min_salary : base.min_salary,
3987
+ include_undisclosed_salary: body.include_undisclosed_salary ?? base.include_undisclosed_salary,
3988
+ us_only: body.us_only ?? base.us_only
3936
3989
  };
3937
3990
  }
3938
3991
  function deserializeProfile(r) {
@@ -4318,7 +4371,7 @@ function registerFeedRoute(app2) {
4318
4371
  salary_min: h?.salary_min ?? null,
4319
4372
  salary_max: r.salary_max,
4320
4373
  source_site: h?.source_site ?? "",
4321
- url: h?.url ?? "",
4374
+ url: publicUrl(h?.url ?? ""),
4322
4375
  application_url: h?.application_url ?? null,
4323
4376
  posted_date: r.posted_date,
4324
4377
  scraped_at: r.scraped_at,
@@ -4401,7 +4454,7 @@ function registerFeedRoute(app2) {
4401
4454
  salary_min: r.salary_min,
4402
4455
  salary_max: r.salary_max,
4403
4456
  source_site: r.source_site,
4404
- url: r.url,
4457
+ url: publicUrl(r.url),
4405
4458
  application_url: r.application_url,
4406
4459
  posted_date: r.posted_date,
4407
4460
  scraped_at: r.scraped_at,
@@ -4725,7 +4778,7 @@ function registerPipelineRoutes(app2) {
4725
4778
  workplace_type: r.workplace_type,
4726
4779
  salary_min: r.salary_min,
4727
4780
  salary_max: r.salary_max,
4728
- url: r.url,
4781
+ url: publicUrl(r.url),
4729
4782
  posted_date: r.posted_date,
4730
4783
  state,
4731
4784
  updated_at: r.updated_at,
@@ -5015,7 +5068,7 @@ function registerDetailRoute(app2) {
5015
5068
  salary_min: row.salary_min,
5016
5069
  salary_max: row.salary_max,
5017
5070
  source_site: row.source_site,
5018
- url: row.url,
5071
+ url: publicUrl(row.url),
5019
5072
  posted_date: row.posted_date,
5020
5073
  scraped_at: row.scraped_at,
5021
5074
  ats: row.ats ?? null,
@@ -6331,6 +6384,10 @@ function registerApplicationRoutes(app2) {
6331
6384
  description: "Job not found",
6332
6385
  content: { "application/json": { schema: ErrorResponseSchema } }
6333
6386
  },
6387
+ 422: {
6388
+ description: "The posting was typed in by hand with no link",
6389
+ content: { "application/json": { schema: ErrorResponseSchema } }
6390
+ },
6334
6391
  409: {
6335
6392
  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",
6336
6393
  content: { "application/json": { schema: IdentityErrorResponseSchema } }
@@ -6349,13 +6406,23 @@ function registerApplicationRoutes(app2) {
6349
6406
  if (isEffectiveUserError(who)) return c.json(who.error.body, who.error.status);
6350
6407
  const userId = who.userId;
6351
6408
  const db = c.env.JOB_PLATFORM_DB;
6352
- const job = await db.prepare("SELECT id FROM jobs WHERE id = ?").bind(id).first();
6409
+ const job = await db.prepare("SELECT id, url FROM jobs WHERE id = ?").bind(id).first();
6353
6410
  if (!job) {
6354
6411
  return c.json(
6355
6412
  { success: false, error: "Not found", message: `Job '${id}' not found` },
6356
6413
  404
6357
6414
  );
6358
6415
  }
6416
+ if (publicUrl(job.url) === null) {
6417
+ return c.json(
6418
+ {
6419
+ success: false,
6420
+ error: "Unprocessable",
6421
+ message: "This posting has no link, so the runner has no form to fill."
6422
+ },
6423
+ 422
6424
+ );
6425
+ }
6359
6426
  if (!body?.force) {
6360
6427
  const delisted = await delistedReason(db, id);
6361
6428
  if (delisted) {
@@ -6836,7 +6903,7 @@ function registerFillRoutes(app2) {
6836
6903
  {
6837
6904
  success: true,
6838
6905
  data: {
6839
- job,
6906
+ job: { ...job, url: publicUrl(job.url) },
6840
6907
  application: app_ ? { id: app_.id, status: app_.status, variant_slug: slug2 } : null,
6841
6908
  profile: profile?.profile ?? null,
6842
6909
  // What the approved fill entered, keyed by the runner's normalised
@@ -7303,7 +7370,8 @@ function registerLocationsRoute(app2) {
7303
7370
  );
7304
7371
  }
7305
7372
  const ImportJobSchema = z.object({
7306
- url: z.string().trim().url().max(2e3),
7373
+ /** Required, except for a `manual` posting that has no link. */
7374
+ url: z.string().trim().url().max(2e3).optional(),
7307
7375
  /** Where it lands in the pipeline when it is new to the caller. */
7308
7376
  state: JobStateSchema.exclude(["dismissed"]).default("saved"),
7309
7377
  /** Typed by the person: store this instead of reading the page. */
@@ -7311,8 +7379,14 @@ const ImportJobSchema = z.object({
7311
7379
  title: z.string().trim().min(1).max(300),
7312
7380
  company: z.string().trim().min(1).max(200),
7313
7381
  location: z.string().trim().max(200).default(""),
7314
- description: z.string().trim().max(2e4).default("")
7382
+ description: z.string().trim().max(2e4).default(""),
7383
+ salary_min: z.number().int().min(0).max(1e7).nullable().optional(),
7384
+ salary_max: z.number().int().min(0).max(1e7).nullable().optional(),
7385
+ workplace_type: z.enum(["remote", "hybrid", "onsite", "unknown"]).default("unknown")
7315
7386
  }).optional()
7387
+ }).refine((b) => b.url !== void 0 || b.manual !== void 0, {
7388
+ message: "url is required unless the posting is typed in by hand (manual)",
7389
+ path: ["url"]
7316
7390
  }).openapi("ImportJob");
7317
7391
  const ImportedSchema = z.object({
7318
7392
  success: z.literal(true),
@@ -7322,7 +7396,8 @@ const ImportedSchema = z.object({
7322
7396
  title: z.string(),
7323
7397
  company: z.string(),
7324
7398
  location: z.string(),
7325
- url: z.string()
7399
+ /** null for a posting typed in by hand with no link. */
7400
+ url: z.string().nullable()
7326
7401
  }),
7327
7402
  /** The posting was new to the corpus (false: it was already there). */
7328
7403
  created: z.boolean(),
@@ -7346,6 +7421,7 @@ function manualDescriptionHtml(text) {
7346
7421
  return text.split(/\n\s*\n/).map((para) => `<p>${escapeHtml(para.trim()).replace(/\n/g, "<br>")}</p>`).join("");
7347
7422
  }
7348
7423
  async function manualId(url) {
7424
+ if (url === void 0) return `manual_${crypto.randomUUID().replace(/-/g, "").slice(0, 16)}`;
7349
7425
  const digest = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(url));
7350
7426
  const hex = [...new Uint8Array(digest)].map((b) => b.toString(16).padStart(2, "0")).join("");
7351
7427
  return `manual_${hex.slice(0, 16)}`;
@@ -7411,27 +7487,34 @@ function registerImportRoute(app2) {
7411
7487
  const who = await effectiveUserId(c, ownerName);
7412
7488
  if (isEffectiveUserError(who)) return c.json(who.error.body, who.error.status);
7413
7489
  const db = c.env.JOB_PLATFORM_DB;
7414
- let row = await db.prepare(`SELECT ${JOB_COLS} FROM jobs WHERE url = ?`).bind(url).first();
7490
+ let row = url === void 0 ? null : await db.prepare(`SELECT ${JOB_COLS} FROM jobs WHERE url = ?`).bind(url).first();
7415
7491
  let created = false;
7416
7492
  if (!row && manual) {
7417
7493
  const now2 = (/* @__PURE__ */ new Date()).toISOString();
7418
7494
  const id = await manualId(url);
7495
+ const salaryGiven = (manual.salary_min ?? null) !== null || (manual.salary_max ?? null) !== null;
7419
7496
  const [res] = await db.batch([
7420
7497
  insertJobStatement(
7421
7498
  db,
7422
7499
  {
7423
7500
  id,
7424
- url,
7501
+ url: url ?? `${NO_URL_PREFIX}${id}`,
7425
7502
  source_site: MANUAL_SOURCE,
7426
7503
  title: manual.title,
7427
7504
  company: manual.company,
7428
7505
  location: manual.location,
7429
7506
  job_type: "unknown",
7430
- workplace_type: "unknown",
7431
- salary: null,
7507
+ workplace_type: manual.workplace_type,
7508
+ salary: salaryGiven ? {
7509
+ min: manual.salary_min ?? null,
7510
+ max: manual.salary_max ?? null,
7511
+ currency: null,
7512
+ period: null,
7513
+ text: null
7514
+ } : null,
7432
7515
  description: manualDescriptionHtml(manual.description),
7433
7516
  posted_date: null,
7434
- application_url: url,
7517
+ application_url: url ?? null,
7435
7518
  department: null,
7436
7519
  scraper_used: null,
7437
7520
  raw: {}
@@ -7445,6 +7528,7 @@ function registerImportRoute(app2) {
7445
7528
  if (created) await rankNewJobs(db);
7446
7529
  }
7447
7530
  if (!row) {
7531
+ if (url === void 0) throw new Error("import: no url and no manual entry");
7448
7532
  let extracted;
7449
7533
  try {
7450
7534
  extracted = await extractPosting(c.env, url, await greenhouseSlugFor(db, url));
@@ -7497,7 +7581,7 @@ function registerImportRoute(app2) {
7497
7581
  {
7498
7582
  success: true,
7499
7583
  data: {
7500
- job: row,
7584
+ job: { ...row, url: publicUrl(row.url) },
7501
7585
  created,
7502
7586
  state: kept.success ? kept.data : state,
7503
7587
  already_tracked: true
@@ -7519,7 +7603,15 @@ function registerImportRoute(app2) {
7519
7603
  ).bind(row.id, who.userId, state, now)
7520
7604
  ]);
7521
7605
  return c.json(
7522
- { success: true, data: { job: row, created, state, already_tracked: false } },
7606
+ {
7607
+ success: true,
7608
+ data: {
7609
+ job: { ...row, url: publicUrl(row.url) },
7610
+ created,
7611
+ state,
7612
+ already_tracked: false
7613
+ }
7614
+ },
7523
7615
  200
7524
7616
  );
7525
7617
  }
@@ -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;AACtC,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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","sourceRoot":"","sources":["../../../src/routes/jobs/applications.ts"],"names":[],"mappings":"AAcA,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,CA+e5D"}
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":"AAYA,OAAO,EAON,KAAK,OAAO,EACZ,MAAM,aAAa,CAAC;AAErB,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAgLtD"}
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":"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
+ {"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":"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
+ {"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":"AAgCA,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"}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/routes/profiles.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;AAwB9E,UAAU,YAAY;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE;QACV,WAAW,EAAE,iBAAiB,CAAC;QAC/B;;;;WAIG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACF;AAwoBD,eAAO,MAAM,aAAa,oCAAM,CAAC"}
1
+ {"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/routes/profiles.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;AAwB9E,UAAU,YAAY;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE;QACV,WAAW,EAAE,iBAAiB,CAAC;QAC/B;;;;WAIG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACF;AA0qBD,eAAO,MAAM,aAAa,oCAAM,CAAC"}
package/dist/schemas.d.ts CHANGED
@@ -32,6 +32,13 @@ export declare const RoleLevelSchema: z.ZodEnum<{
32
32
  cxo: "cxo";
33
33
  }>;
34
34
  export declare const ProfileSchema: z.ZodObject<{
35
+ created_at: z.ZodString;
36
+ is_default: z.ZodDefault<z.ZodBoolean>;
37
+ location: z.ZodNullable<z.ZodString>;
38
+ radius_miles: z.ZodNumber;
39
+ min_salary: z.ZodNullable<z.ZodNumber>;
40
+ include_undisclosed_salary: z.ZodBoolean;
41
+ us_only: z.ZodBoolean;
35
42
  id: z.ZodString;
36
43
  name: z.ZodString;
37
44
  keywords: z.ZodArray<z.ZodString>;
@@ -59,11 +66,8 @@ export declare const ProfileSchema: z.ZodObject<{
59
66
  remote: "remote";
60
67
  onsite: "onsite";
61
68
  }>;
62
- created_at: z.ZodString;
63
- is_default: z.ZodDefault<z.ZodBoolean>;
64
69
  }, z.core.$strip>;
65
70
  export declare const CreateProfileSchema: z.ZodObject<{
66
- name: z.ZodString;
67
71
  keywords: z.ZodDefault<z.ZodArray<z.ZodString>>;
68
72
  track: z.ZodDefault<z.ZodEnum<{
69
73
  ic: "ic";
@@ -89,16 +93,34 @@ export declare const CreateProfileSchema: z.ZodObject<{
89
93
  remote: "remote";
90
94
  onsite: "onsite";
91
95
  }>>;
96
+ location: z.ZodDefault<z.ZodNullable<z.ZodString>>;
97
+ radius_miles: z.ZodDefault<z.ZodNumber>;
98
+ min_salary: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
99
+ include_undisclosed_salary: z.ZodDefault<z.ZodBoolean>;
100
+ us_only: z.ZodDefault<z.ZodBoolean>;
101
+ name: z.ZodString;
92
102
  }, z.core.$strip>;
103
+ /**
104
+ * Every field optional and NOT defaulted: an omitted field keeps its stored
105
+ * value. Built from the default-free shape on purpose — under zod 4,
106
+ * `CreateProfileSchema.partial()` still applies each field's `.default()`, so a
107
+ * PUT naming only `radius_miles` used to reset keywords to [], track to
108
+ * 'either', levels to [] and remote_pref to 'any'.
109
+ */
93
110
  export declare const UpdateProfileSchema: z.ZodObject<{
111
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ radius_miles: z.ZodOptional<z.ZodNumber>;
113
+ min_salary: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
114
+ include_undisclosed_salary: z.ZodOptional<z.ZodBoolean>;
115
+ us_only: z.ZodOptional<z.ZodBoolean>;
94
116
  name: z.ZodOptional<z.ZodString>;
95
- keywords: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
96
- track: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
117
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
118
+ track: z.ZodOptional<z.ZodEnum<{
97
119
  ic: "ic";
98
120
  manager: "manager";
99
121
  either: "either";
100
- }>>>;
101
- levels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
122
+ }>>;
123
+ levels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
102
124
  manager: "manager";
103
125
  junior: "junior";
104
126
  mid: "mid";
@@ -110,18 +132,25 @@ export declare const UpdateProfileSchema: z.ZodObject<{
110
132
  director: "director";
111
133
  vp: "vp";
112
134
  cxo: "cxo";
113
- }>>>>;
114
- remote_pref: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
135
+ }>>>;
136
+ remote_pref: z.ZodOptional<z.ZodEnum<{
115
137
  hybrid: "hybrid";
116
138
  any: "any";
117
139
  remote: "remote";
118
140
  onsite: "onsite";
119
- }>>>;
141
+ }>>;
120
142
  }, z.core.$strip>;
121
143
  export declare const ProfilesResponseSchema: z.ZodObject<{
122
144
  success: z.ZodLiteral<true>;
123
145
  data: z.ZodObject<{
124
146
  profiles: z.ZodArray<z.ZodObject<{
147
+ created_at: z.ZodString;
148
+ is_default: z.ZodDefault<z.ZodBoolean>;
149
+ location: z.ZodNullable<z.ZodString>;
150
+ radius_miles: z.ZodNumber;
151
+ min_salary: z.ZodNullable<z.ZodNumber>;
152
+ include_undisclosed_salary: z.ZodBoolean;
153
+ us_only: z.ZodBoolean;
125
154
  id: z.ZodString;
126
155
  name: z.ZodString;
127
156
  keywords: z.ZodArray<z.ZodString>;
@@ -149,8 +178,6 @@ export declare const ProfilesResponseSchema: z.ZodObject<{
149
178
  remote: "remote";
150
179
  onsite: "onsite";
151
180
  }>;
152
- created_at: z.ZodString;
153
- is_default: z.ZodDefault<z.ZodBoolean>;
154
181
  }, z.core.$strip>>;
155
182
  }, z.core.$strip>;
156
183
  }, z.core.$strip>;
@@ -158,6 +185,13 @@ export declare const ProfileResponseSchema: z.ZodObject<{
158
185
  success: z.ZodLiteral<true>;
159
186
  data: z.ZodObject<{
160
187
  profile: z.ZodObject<{
188
+ created_at: z.ZodString;
189
+ is_default: z.ZodDefault<z.ZodBoolean>;
190
+ location: z.ZodNullable<z.ZodString>;
191
+ radius_miles: z.ZodNumber;
192
+ min_salary: z.ZodNullable<z.ZodNumber>;
193
+ include_undisclosed_salary: z.ZodBoolean;
194
+ us_only: z.ZodBoolean;
161
195
  id: z.ZodString;
162
196
  name: z.ZodString;
163
197
  keywords: z.ZodArray<z.ZodString>;
@@ -185,8 +219,6 @@ export declare const ProfileResponseSchema: z.ZodObject<{
185
219
  remote: "remote";
186
220
  onsite: "onsite";
187
221
  }>;
188
- created_at: z.ZodString;
189
- is_default: z.ZodDefault<z.ZodBoolean>;
190
222
  }, z.core.$strip>;
191
223
  }, z.core.$strip>;
192
224
  }, z.core.$strip>;
@@ -254,7 +286,7 @@ export declare const JobSummarySchema: z.ZodObject<{
254
286
  salary_min: z.ZodNullable<z.ZodNumber>;
255
287
  salary_max: z.ZodNullable<z.ZodNumber>;
256
288
  source_site: z.ZodString;
257
- url: z.ZodString;
289
+ url: z.ZodNullable<z.ZodString>;
258
290
  application_url: z.ZodNullable<z.ZodString>;
259
291
  posted_date: z.ZodNullable<z.ZodString>;
260
292
  scraped_at: z.ZodString;
@@ -329,7 +361,7 @@ export declare const JobDetailSchema: z.ZodObject<{
329
361
  salary_min: z.ZodNullable<z.ZodNumber>;
330
362
  salary_max: z.ZodNullable<z.ZodNumber>;
331
363
  source_site: z.ZodString;
332
- url: z.ZodString;
364
+ url: z.ZodNullable<z.ZodString>;
333
365
  application_url: z.ZodNullable<z.ZodString>;
334
366
  posted_date: z.ZodNullable<z.ZodString>;
335
367
  scraped_at: z.ZodString;
@@ -417,8 +449,8 @@ export declare const SetJobFeedbackSchema: z.ZodObject<{
417
449
  vote: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
418
450
  reasons: z.ZodDefault<z.ZodArray<z.ZodEnum<{
419
451
  stack: "stack";
420
- company: "company";
421
452
  location: "location";
453
+ company: "company";
422
454
  pay: "pay";
423
455
  domain: "domain";
424
456
  level: "level";
@@ -518,7 +550,7 @@ export declare const JobsResponseSchema: z.ZodObject<{
518
550
  salary_min: z.ZodNullable<z.ZodNumber>;
519
551
  salary_max: z.ZodNullable<z.ZodNumber>;
520
552
  source_site: z.ZodString;
521
- url: z.ZodString;
553
+ url: z.ZodNullable<z.ZodString>;
522
554
  application_url: z.ZodNullable<z.ZodString>;
523
555
  posted_date: z.ZodNullable<z.ZodString>;
524
556
  scraped_at: z.ZodString;
@@ -592,7 +624,7 @@ export declare const JobResponseSchema: z.ZodObject<{
592
624
  salary_min: z.ZodNullable<z.ZodNumber>;
593
625
  salary_max: z.ZodNullable<z.ZodNumber>;
594
626
  source_site: z.ZodString;
595
- url: z.ZodString;
627
+ url: z.ZodNullable<z.ZodString>;
596
628
  application_url: z.ZodNullable<z.ZodString>;
597
629
  posted_date: z.ZodNullable<z.ZodString>;
598
630
  scraped_at: z.ZodString;
@@ -1301,7 +1333,7 @@ export declare const PipelineItemSchema: z.ZodObject<{
1301
1333
  workplace_type: z.ZodString;
1302
1334
  salary_min: z.ZodNullable<z.ZodNumber>;
1303
1335
  salary_max: z.ZodNullable<z.ZodNumber>;
1304
- url: z.ZodString;
1336
+ url: z.ZodNullable<z.ZodString>;
1305
1337
  posted_date: z.ZodNullable<z.ZodString>;
1306
1338
  state: z.ZodEnum<{
1307
1339
  interested: "interested";
@@ -1346,7 +1378,7 @@ export declare const PipelineResponseSchema: z.ZodObject<{
1346
1378
  workplace_type: z.ZodString;
1347
1379
  salary_min: z.ZodNullable<z.ZodNumber>;
1348
1380
  salary_max: z.ZodNullable<z.ZodNumber>;
1349
- url: z.ZodString;
1381
+ url: z.ZodNullable<z.ZodString>;
1350
1382
  posted_date: z.ZodNullable<z.ZodString>;
1351
1383
  state: z.ZodEnum<{
1352
1384
  interested: "interested";
@@ -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,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AAC;AACF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAElC,CAAC;AAUF,eAAO,MAAM,iBAAiB;;;;;;;;;iBAON,CAAC;AAEzB,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB;;;;;;iBAeN,CAAC;AAEzB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBAEN,CAAC;AAE9B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BN,CAAC;AAE1B,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAElC,CAAC;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"}
@@ -0,0 +1,14 @@
1
+ -- View defaults a profile carries for the feed (JobPulse's search profiles had
2
+ -- them): where to centre the near= filter and how far, the salary floor to
3
+ -- filter by, whether postings with no listed salary stay, and US-only.
4
+ --
5
+ -- These are DEFAULTS a UI passes to GET /jobs (near / radius_miles /
6
+ -- min_salary). They are not scoring criteria: scoring.ts never reads them and
7
+ -- rank.ts's criteriaHash leaves them out, so editing one never invalidates or
8
+ -- rebuilds the precomputed ranking (job_profile_rank). `salary_floor`, which
9
+ -- IS scored, is a different column.
10
+ ALTER TABLE profiles ADD COLUMN location TEXT;
11
+ ALTER TABLE profiles ADD COLUMN radius_miles INTEGER NOT NULL DEFAULT 25;
12
+ ALTER TABLE profiles ADD COLUMN min_salary INTEGER;
13
+ ALTER TABLE profiles ADD COLUMN include_undisclosed_salary INTEGER NOT NULL DEFAULT 1;
14
+ ALTER TABLE profiles ADD COLUMN us_only INTEGER NOT NULL DEFAULT 0;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/jobplatform-worker",
3
- "version": "2.32.45",
4
- "gitHead": "8963df625c5750af5fa17bb22da399db180a4ec0",
3
+ "version": "2.32.47",
4
+ "gitHead": "97d25f07f68bcbe31e27cb81c517f99c17770c15",
5
5
  "description": "Job listings aggregation and tracking dashboard - Worker package",
6
6
  "license": "MIT",
7
7
  "type": "module",