@hadoku/jobplatform-worker 2.32.45 → 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/index.js +63 -18
- 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 +6 -6
- package/dist/schemas.d.ts.map +1 -1
- package/package.json +2 -2
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
|
|
@@ -1032,7 +1033,8 @@ const PipelineItemSchema = z.object({
|
|
|
1032
1033
|
workplace_type: z.string(),
|
|
1033
1034
|
salary_min: z.number().nullable(),
|
|
1034
1035
|
salary_max: z.number().nullable(),
|
|
1035
|
-
|
|
1036
|
+
/** null for a posting typed in by hand with no link. */
|
|
1037
|
+
url: z.string().nullable(),
|
|
1036
1038
|
posted_date: z.string().nullable(),
|
|
1037
1039
|
state: JobStateSchema,
|
|
1038
1040
|
updated_at: z.string(),
|
|
@@ -2632,6 +2634,10 @@ function scheduleRankBuild(c, db, profileId, profile) {
|
|
|
2632
2634
|
);
|
|
2633
2635
|
}
|
|
2634
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
|
+
}
|
|
2635
2641
|
function normalizeWorkplaceType(wt) {
|
|
2636
2642
|
if (wt === "on_site") return "onsite";
|
|
2637
2643
|
return wt;
|
|
@@ -4318,7 +4324,7 @@ function registerFeedRoute(app2) {
|
|
|
4318
4324
|
salary_min: h?.salary_min ?? null,
|
|
4319
4325
|
salary_max: r.salary_max,
|
|
4320
4326
|
source_site: h?.source_site ?? "",
|
|
4321
|
-
url: h?.url ?? "",
|
|
4327
|
+
url: publicUrl(h?.url ?? ""),
|
|
4322
4328
|
application_url: h?.application_url ?? null,
|
|
4323
4329
|
posted_date: r.posted_date,
|
|
4324
4330
|
scraped_at: r.scraped_at,
|
|
@@ -4401,7 +4407,7 @@ function registerFeedRoute(app2) {
|
|
|
4401
4407
|
salary_min: r.salary_min,
|
|
4402
4408
|
salary_max: r.salary_max,
|
|
4403
4409
|
source_site: r.source_site,
|
|
4404
|
-
url: r.url,
|
|
4410
|
+
url: publicUrl(r.url),
|
|
4405
4411
|
application_url: r.application_url,
|
|
4406
4412
|
posted_date: r.posted_date,
|
|
4407
4413
|
scraped_at: r.scraped_at,
|
|
@@ -4725,7 +4731,7 @@ function registerPipelineRoutes(app2) {
|
|
|
4725
4731
|
workplace_type: r.workplace_type,
|
|
4726
4732
|
salary_min: r.salary_min,
|
|
4727
4733
|
salary_max: r.salary_max,
|
|
4728
|
-
url: r.url,
|
|
4734
|
+
url: publicUrl(r.url),
|
|
4729
4735
|
posted_date: r.posted_date,
|
|
4730
4736
|
state,
|
|
4731
4737
|
updated_at: r.updated_at,
|
|
@@ -5015,7 +5021,7 @@ function registerDetailRoute(app2) {
|
|
|
5015
5021
|
salary_min: row.salary_min,
|
|
5016
5022
|
salary_max: row.salary_max,
|
|
5017
5023
|
source_site: row.source_site,
|
|
5018
|
-
url: row.url,
|
|
5024
|
+
url: publicUrl(row.url),
|
|
5019
5025
|
posted_date: row.posted_date,
|
|
5020
5026
|
scraped_at: row.scraped_at,
|
|
5021
5027
|
ats: row.ats ?? null,
|
|
@@ -6331,6 +6337,10 @@ function registerApplicationRoutes(app2) {
|
|
|
6331
6337
|
description: "Job not found",
|
|
6332
6338
|
content: { "application/json": { schema: ErrorResponseSchema } }
|
|
6333
6339
|
},
|
|
6340
|
+
422: {
|
|
6341
|
+
description: "The posting was typed in by hand with no link",
|
|
6342
|
+
content: { "application/json": { schema: ErrorResponseSchema } }
|
|
6343
|
+
},
|
|
6334
6344
|
409: {
|
|
6335
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",
|
|
6336
6346
|
content: { "application/json": { schema: IdentityErrorResponseSchema } }
|
|
@@ -6349,13 +6359,23 @@ function registerApplicationRoutes(app2) {
|
|
|
6349
6359
|
if (isEffectiveUserError(who)) return c.json(who.error.body, who.error.status);
|
|
6350
6360
|
const userId = who.userId;
|
|
6351
6361
|
const db = c.env.JOB_PLATFORM_DB;
|
|
6352
|
-
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();
|
|
6353
6363
|
if (!job) {
|
|
6354
6364
|
return c.json(
|
|
6355
6365
|
{ success: false, error: "Not found", message: `Job '${id}' not found` },
|
|
6356
6366
|
404
|
|
6357
6367
|
);
|
|
6358
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
|
+
}
|
|
6359
6379
|
if (!body?.force) {
|
|
6360
6380
|
const delisted = await delistedReason(db, id);
|
|
6361
6381
|
if (delisted) {
|
|
@@ -6836,7 +6856,7 @@ function registerFillRoutes(app2) {
|
|
|
6836
6856
|
{
|
|
6837
6857
|
success: true,
|
|
6838
6858
|
data: {
|
|
6839
|
-
job,
|
|
6859
|
+
job: { ...job, url: publicUrl(job.url) },
|
|
6840
6860
|
application: app_ ? { id: app_.id, status: app_.status, variant_slug: slug2 } : null,
|
|
6841
6861
|
profile: profile?.profile ?? null,
|
|
6842
6862
|
// What the approved fill entered, keyed by the runner's normalised
|
|
@@ -7303,7 +7323,8 @@ function registerLocationsRoute(app2) {
|
|
|
7303
7323
|
);
|
|
7304
7324
|
}
|
|
7305
7325
|
const ImportJobSchema = z.object({
|
|
7306
|
-
|
|
7326
|
+
/** Required, except for a `manual` posting that has no link. */
|
|
7327
|
+
url: z.string().trim().url().max(2e3).optional(),
|
|
7307
7328
|
/** Where it lands in the pipeline when it is new to the caller. */
|
|
7308
7329
|
state: JobStateSchema.exclude(["dismissed"]).default("saved"),
|
|
7309
7330
|
/** Typed by the person: store this instead of reading the page. */
|
|
@@ -7311,8 +7332,14 @@ const ImportJobSchema = z.object({
|
|
|
7311
7332
|
title: z.string().trim().min(1).max(300),
|
|
7312
7333
|
company: z.string().trim().min(1).max(200),
|
|
7313
7334
|
location: z.string().trim().max(200).default(""),
|
|
7314
|
-
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")
|
|
7315
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"]
|
|
7316
7343
|
}).openapi("ImportJob");
|
|
7317
7344
|
const ImportedSchema = z.object({
|
|
7318
7345
|
success: z.literal(true),
|
|
@@ -7322,7 +7349,8 @@ const ImportedSchema = z.object({
|
|
|
7322
7349
|
title: z.string(),
|
|
7323
7350
|
company: z.string(),
|
|
7324
7351
|
location: z.string(),
|
|
7325
|
-
|
|
7352
|
+
/** null for a posting typed in by hand with no link. */
|
|
7353
|
+
url: z.string().nullable()
|
|
7326
7354
|
}),
|
|
7327
7355
|
/** The posting was new to the corpus (false: it was already there). */
|
|
7328
7356
|
created: z.boolean(),
|
|
@@ -7346,6 +7374,7 @@ function manualDescriptionHtml(text) {
|
|
|
7346
7374
|
return text.split(/\n\s*\n/).map((para) => `<p>${escapeHtml(para.trim()).replace(/\n/g, "<br>")}</p>`).join("");
|
|
7347
7375
|
}
|
|
7348
7376
|
async function manualId(url) {
|
|
7377
|
+
if (url === void 0) return `manual_${crypto.randomUUID().replace(/-/g, "").slice(0, 16)}`;
|
|
7349
7378
|
const digest = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(url));
|
|
7350
7379
|
const hex = [...new Uint8Array(digest)].map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
7351
7380
|
return `manual_${hex.slice(0, 16)}`;
|
|
@@ -7411,27 +7440,34 @@ function registerImportRoute(app2) {
|
|
|
7411
7440
|
const who = await effectiveUserId(c, ownerName);
|
|
7412
7441
|
if (isEffectiveUserError(who)) return c.json(who.error.body, who.error.status);
|
|
7413
7442
|
const db = c.env.JOB_PLATFORM_DB;
|
|
7414
|
-
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();
|
|
7415
7444
|
let created = false;
|
|
7416
7445
|
if (!row && manual) {
|
|
7417
7446
|
const now2 = (/* @__PURE__ */ new Date()).toISOString();
|
|
7418
7447
|
const id = await manualId(url);
|
|
7448
|
+
const salaryGiven = (manual.salary_min ?? null) !== null || (manual.salary_max ?? null) !== null;
|
|
7419
7449
|
const [res] = await db.batch([
|
|
7420
7450
|
insertJobStatement(
|
|
7421
7451
|
db,
|
|
7422
7452
|
{
|
|
7423
7453
|
id,
|
|
7424
|
-
url
|
|
7454
|
+
url: url ?? `${NO_URL_PREFIX}${id}`,
|
|
7425
7455
|
source_site: MANUAL_SOURCE,
|
|
7426
7456
|
title: manual.title,
|
|
7427
7457
|
company: manual.company,
|
|
7428
7458
|
location: manual.location,
|
|
7429
7459
|
job_type: "unknown",
|
|
7430
|
-
workplace_type:
|
|
7431
|
-
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,
|
|
7432
7468
|
description: manualDescriptionHtml(manual.description),
|
|
7433
7469
|
posted_date: null,
|
|
7434
|
-
application_url: url,
|
|
7470
|
+
application_url: url ?? null,
|
|
7435
7471
|
department: null,
|
|
7436
7472
|
scraper_used: null,
|
|
7437
7473
|
raw: {}
|
|
@@ -7445,6 +7481,7 @@ function registerImportRoute(app2) {
|
|
|
7445
7481
|
if (created) await rankNewJobs(db);
|
|
7446
7482
|
}
|
|
7447
7483
|
if (!row) {
|
|
7484
|
+
if (url === void 0) throw new Error("import: no url and no manual entry");
|
|
7448
7485
|
let extracted;
|
|
7449
7486
|
try {
|
|
7450
7487
|
extracted = await extractPosting(c.env, url, await greenhouseSlugFor(db, url));
|
|
@@ -7497,7 +7534,7 @@ function registerImportRoute(app2) {
|
|
|
7497
7534
|
{
|
|
7498
7535
|
success: true,
|
|
7499
7536
|
data: {
|
|
7500
|
-
job: row,
|
|
7537
|
+
job: { ...row, url: publicUrl(row.url) },
|
|
7501
7538
|
created,
|
|
7502
7539
|
state: kept.success ? kept.data : state,
|
|
7503
7540
|
already_tracked: true
|
|
@@ -7519,7 +7556,15 @@ function registerImportRoute(app2) {
|
|
|
7519
7556
|
).bind(row.id, who.userId, state, now)
|
|
7520
7557
|
]);
|
|
7521
7558
|
return c.json(
|
|
7522
|
-
{
|
|
7559
|
+
{
|
|
7560
|
+
success: true,
|
|
7561
|
+
data: {
|
|
7562
|
+
job: { ...row, url: publicUrl(row.url) },
|
|
7563
|
+
created,
|
|
7564
|
+
state,
|
|
7565
|
+
already_tracked: false
|
|
7566
|
+
}
|
|
7567
|
+
},
|
|
7523
7568
|
200
|
|
7524
7569
|
);
|
|
7525
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;
|
|
@@ -518,7 +518,7 @@ export declare const JobsResponseSchema: z.ZodObject<{
|
|
|
518
518
|
salary_min: z.ZodNullable<z.ZodNumber>;
|
|
519
519
|
salary_max: z.ZodNullable<z.ZodNumber>;
|
|
520
520
|
source_site: z.ZodString;
|
|
521
|
-
url: z.ZodString
|
|
521
|
+
url: z.ZodNullable<z.ZodString>;
|
|
522
522
|
application_url: z.ZodNullable<z.ZodString>;
|
|
523
523
|
posted_date: z.ZodNullable<z.ZodString>;
|
|
524
524
|
scraped_at: z.ZodString;
|
|
@@ -592,7 +592,7 @@ export declare const JobResponseSchema: z.ZodObject<{
|
|
|
592
592
|
salary_min: z.ZodNullable<z.ZodNumber>;
|
|
593
593
|
salary_max: z.ZodNullable<z.ZodNumber>;
|
|
594
594
|
source_site: z.ZodString;
|
|
595
|
-
url: z.ZodString
|
|
595
|
+
url: z.ZodNullable<z.ZodString>;
|
|
596
596
|
application_url: z.ZodNullable<z.ZodString>;
|
|
597
597
|
posted_date: z.ZodNullable<z.ZodString>;
|
|
598
598
|
scraped_at: z.ZodString;
|
|
@@ -1301,7 +1301,7 @@ export declare const PipelineItemSchema: z.ZodObject<{
|
|
|
1301
1301
|
workplace_type: z.ZodString;
|
|
1302
1302
|
salary_min: z.ZodNullable<z.ZodNumber>;
|
|
1303
1303
|
salary_max: z.ZodNullable<z.ZodNumber>;
|
|
1304
|
-
url: z.ZodString
|
|
1304
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1305
1305
|
posted_date: z.ZodNullable<z.ZodString>;
|
|
1306
1306
|
state: z.ZodEnum<{
|
|
1307
1307
|
interested: "interested";
|
|
@@ -1346,7 +1346,7 @@ export declare const PipelineResponseSchema: z.ZodObject<{
|
|
|
1346
1346
|
workplace_type: z.ZodString;
|
|
1347
1347
|
salary_min: z.ZodNullable<z.ZodNumber>;
|
|
1348
1348
|
salary_max: z.ZodNullable<z.ZodNumber>;
|
|
1349
|
-
url: z.ZodString
|
|
1349
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1350
1350
|
posted_date: z.ZodNullable<z.ZodString>;
|
|
1351
1351
|
state: z.ZodEnum<{
|
|
1352
1352
|
interested: "interested";
|
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,C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AC;AAEhG,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;iBAcN,CAAC"}
|
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.46",
|
|
4
|
+
"gitHead": "4b58b00f863c998ff35032990e378bec083663cb",
|
|
5
5
|
"description": "Job listings aggregation and tracking dashboard - Worker package",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|