@springbrand/hr-cli 0.6.1 → 0.6.2
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/hr.js +6 -4
- package/package.json +1 -1
package/dist/hr.js
CHANGED
|
@@ -145,6 +145,7 @@ var Options = {
|
|
|
145
145
|
page: { type: "string" },
|
|
146
146
|
"page-size": { type: "string" },
|
|
147
147
|
wait: { type: "boolean" },
|
|
148
|
+
"daily-review": { type: "string" },
|
|
148
149
|
"no-browser": { type: "boolean" },
|
|
149
150
|
timeout: { type: "string" },
|
|
150
151
|
start: { type: "string" },
|
|
@@ -526,7 +527,7 @@ var coreCommands = [
|
|
|
526
527
|
// src/commands/jobs.ts
|
|
527
528
|
var JobStatuses = ["draft", "open", "paused", "closed"];
|
|
528
529
|
var EmploymentTypes = ["full_time", "part_time", "contract", "intern"];
|
|
529
|
-
var JobFields = "slug, departmentId, hiringManagerPrincipalId, recruiterPrincipalId, headcount, location, descriptionMd, pipelineId, scorecardId, keywords [], requiredDegree, skills [{ name, level 1-10 }], members [{ principalId, role interviewer|viewer }]";
|
|
530
|
+
var JobFields = "slug, departmentId, hiringManagerPrincipalId, recruiterPrincipalId, headcount, location, descriptionMd, pipelineId, scorecardId, keywords [], requiredDegree, dailyReview, skills [{ name, level 1-10 }], members [{ principalId, role interviewer|viewer }]";
|
|
530
531
|
var JobReturns = "data: the job { id, title, slug, status, employmentType, pipelineId, scorecardId, stages, members, skills, \u2026 } with url.";
|
|
531
532
|
async function jobFlags(ctx) {
|
|
532
533
|
const { hr, values } = ctx;
|
|
@@ -539,6 +540,7 @@ async function jobFlags(ctx) {
|
|
|
539
540
|
descriptionMd: values.description,
|
|
540
541
|
recruiterPrincipalId: values.recruiter ? await personId(hr, values.recruiter) : void 0,
|
|
541
542
|
keywords: list(values.keywords),
|
|
543
|
+
dailyReview: values["daily-review"] === void 0 ? void 0 : oneOf("--daily-review", values["daily-review"], ["on", "off"]) === "on",
|
|
542
544
|
...interviewers ? { members: interviewers.map((principalId) => ({ principalId, role: "interviewer" })) } : {}
|
|
543
545
|
};
|
|
544
546
|
}
|
|
@@ -559,8 +561,8 @@ var jobCommands = [
|
|
|
559
561
|
},
|
|
560
562
|
{
|
|
561
563
|
name: "jobs create",
|
|
562
|
-
usage: "hr jobs create --name <title> [--status draft|open|paused|closed] [--kind full_time|part_time|contract|intern] [--location <text>] [--description <markdown>] [--with <interviewers>] [--recruiter <person>] [--keywords <a,b>] [--json '{\u2026}']",
|
|
563
|
-
does: `Open a job. --with sets its interviewers, --recruiter its recruiter, --keywords the words that route mail to it. Mail to jobs+<slug>@ the recruiting domain lands on it.${takesJson(JobFields)}`,
|
|
564
|
+
usage: "hr jobs create --name <title> [--status draft|open|paused|closed] [--kind full_time|part_time|contract|intern] [--location <text>] [--description <markdown>] [--with <interviewers>] [--recruiter <person>] [--keywords <a,b>] [--daily-review on|off] [--json '{\u2026}']",
|
|
565
|
+
does: `Open a job. --with sets its interviewers, --recruiter its recruiter, --keywords the words that route mail to it, --daily-review on sends its recruiter (through Eve) a few resumes waiting for screening each workday at 10:00 China time, six a day across all their jobs. Mail to jobs+<slug>@ the recruiting domain lands on it.${takesJson(JobFields)}`,
|
|
564
566
|
returns: JobReturns,
|
|
565
567
|
run: async (ctx) => {
|
|
566
568
|
const body = await bodyOf(ctx, await jobFlags(ctx));
|
|
@@ -570,7 +572,7 @@ var jobCommands = [
|
|
|
570
572
|
},
|
|
571
573
|
{
|
|
572
574
|
name: "jobs update",
|
|
573
|
-
usage: "hr jobs update <job> [--name <title>] [--status \u2026] [--kind \u2026] [--location <text>] [--description <markdown>] [--with <interviewers>] [--recruiter <person>] [--keywords <a,b>] [--json '{\u2026}']",
|
|
575
|
+
usage: "hr jobs update <job> [--name <title>] [--status \u2026] [--kind \u2026] [--location <text>] [--description <markdown>] [--with <interviewers>] [--recruiter <person>] [--keywords <a,b>] [--daily-review on|off] [--json '{\u2026}']",
|
|
574
576
|
does: `Change a job; fields left out keep their value. --with replaces the interviewers. Switching pipelineId moves its applications to the stage of the same category.${takesJson(JobFields)}`,
|
|
575
577
|
returns: JobReturns,
|
|
576
578
|
run: async (ctx) => linkedOne(ctx.hr, await ctx.hr.patch(`/jobs/${await requiredJob(ctx.hr, joined(ctx, "a job"))}`, await bodyOf(ctx, await jobFlags(ctx))), "jobs")
|