@thejob/schema 2.0.2 → 2.0.3
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/.claude/scheduled_tasks.lock +1 -1
- package/dist/index.cjs +7 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -0
- package/package.json +1 -1
- package/src/job/job.schema.ts +11 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sessionId":"
|
|
1
|
+
{"sessionId":"86077c94-745f-4357-b3ad-bedd4759e065","pid":1319767,"procStart":"27556694","acquiredAt":1782604747700}
|
package/dist/index.cjs
CHANGED
|
@@ -776,6 +776,13 @@ var JobSchema = (0, import_yup18.object)({
|
|
|
776
776
|
startLabel: "Start Date",
|
|
777
777
|
endLabel: "Expiry Date"
|
|
778
778
|
}).label("Validity"),
|
|
779
|
+
/**
|
|
780
|
+
* When the auto-close system last re-checked this job's liveness (epoch ms).
|
|
781
|
+
* Server-owned operational field: set by the expiry re-crawl track when a job
|
|
782
|
+
* has no `validity.endDate` and must be verified by crawling its page. Guards
|
|
783
|
+
* re-check cadence so the same job is not re-crawled on every sweep.
|
|
784
|
+
*/
|
|
785
|
+
lastExpiryCheckAt: (0, import_yup18.number)().optional().nullable().label("Last expiry check at"),
|
|
779
786
|
experienceLevel: (0, import_yup18.string)().oneOf(SupportedExperienceLevels).nullable().optional().label("Experience level"),
|
|
780
787
|
contactEmail: (0, import_yup18.string)().email().nullable().optional().label("Contact email"),
|
|
781
788
|
workingHoursPerWeek: (0, import_yup18.number)().nullable().optional().min(1).max(24 * 7).label("Working hours per week"),
|
package/dist/index.d.cts
CHANGED
|
@@ -478,6 +478,7 @@ declare const JobSchema: ObjectSchema<{
|
|
|
478
478
|
[x: string]: string | boolean;
|
|
479
479
|
[x: number]: string | boolean;
|
|
480
480
|
};
|
|
481
|
+
lastExpiryCheckAt: number | null | undefined;
|
|
481
482
|
experienceLevel: ExperienceLevel | null | undefined;
|
|
482
483
|
contactEmail: string | null | undefined;
|
|
483
484
|
workingHoursPerWeek: number | null | undefined;
|
|
@@ -641,6 +642,7 @@ declare const JobSchema: ObjectSchema<{
|
|
|
641
642
|
[x: string]: string | false;
|
|
642
643
|
isActive: false;
|
|
643
644
|
};
|
|
645
|
+
lastExpiryCheckAt: undefined;
|
|
644
646
|
experienceLevel: undefined;
|
|
645
647
|
contactEmail: undefined;
|
|
646
648
|
workingHoursPerWeek: undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -478,6 +478,7 @@ declare const JobSchema: ObjectSchema<{
|
|
|
478
478
|
[x: string]: string | boolean;
|
|
479
479
|
[x: number]: string | boolean;
|
|
480
480
|
};
|
|
481
|
+
lastExpiryCheckAt: number | null | undefined;
|
|
481
482
|
experienceLevel: ExperienceLevel | null | undefined;
|
|
482
483
|
contactEmail: string | null | undefined;
|
|
483
484
|
workingHoursPerWeek: number | null | undefined;
|
|
@@ -641,6 +642,7 @@ declare const JobSchema: ObjectSchema<{
|
|
|
641
642
|
[x: string]: string | false;
|
|
642
643
|
isActive: false;
|
|
643
644
|
};
|
|
645
|
+
lastExpiryCheckAt: undefined;
|
|
644
646
|
experienceLevel: undefined;
|
|
645
647
|
contactEmail: undefined;
|
|
646
648
|
workingHoursPerWeek: undefined;
|
package/dist/index.js
CHANGED
|
@@ -638,6 +638,13 @@ var JobSchema = object16({
|
|
|
638
638
|
startLabel: "Start Date",
|
|
639
639
|
endLabel: "Expiry Date"
|
|
640
640
|
}).label("Validity"),
|
|
641
|
+
/**
|
|
642
|
+
* When the auto-close system last re-checked this job's liveness (epoch ms).
|
|
643
|
+
* Server-owned operational field: set by the expiry re-crawl track when a job
|
|
644
|
+
* has no `validity.endDate` and must be verified by crawling its page. Guards
|
|
645
|
+
* re-check cadence so the same job is not re-crawled on every sweep.
|
|
646
|
+
*/
|
|
647
|
+
lastExpiryCheckAt: number5().optional().nullable().label("Last expiry check at"),
|
|
641
648
|
experienceLevel: string13().oneOf(SupportedExperienceLevels).nullable().optional().label("Experience level"),
|
|
642
649
|
contactEmail: string13().email().nullable().optional().label("Contact email"),
|
|
643
650
|
workingHoursPerWeek: number5().nullable().optional().min(1).max(24 * 7).label("Working hours per week"),
|
package/package.json
CHANGED
package/src/job/job.schema.ts
CHANGED
|
@@ -120,6 +120,17 @@ export const JobSchema = object({
|
|
|
120
120
|
endLabel: "Expiry Date",
|
|
121
121
|
}).label("Validity"),
|
|
122
122
|
|
|
123
|
+
/**
|
|
124
|
+
* When the auto-close system last re-checked this job's liveness (epoch ms).
|
|
125
|
+
* Server-owned operational field: set by the expiry re-crawl track when a job
|
|
126
|
+
* has no `validity.endDate` and must be verified by crawling its page. Guards
|
|
127
|
+
* re-check cadence so the same job is not re-crawled on every sweep.
|
|
128
|
+
*/
|
|
129
|
+
lastExpiryCheckAt: number()
|
|
130
|
+
.optional()
|
|
131
|
+
.nullable()
|
|
132
|
+
.label("Last expiry check at"),
|
|
133
|
+
|
|
123
134
|
experienceLevel: string()
|
|
124
135
|
.oneOf(SupportedExperienceLevels)
|
|
125
136
|
.nullable()
|