@thejob/schema 1.0.20 → 1.0.21

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.
@@ -1,5 +1,4 @@
1
1
  import { ApplicationReceivePreference } from "../common";
2
- import { PageType } from "../page";
3
2
  import { InferType, ObjectSchema } from "../yup-extended";
4
3
  import { JobStatus } from "./job.constant";
5
4
  export declare const JobSchema: ObjectSchema<{
@@ -53,7 +52,7 @@ export declare const JobSchema: ObjectSchema<{
53
52
  }[] | undefined;
54
53
  verified?: Date | undefined;
55
54
  isOwner?: boolean | undefined;
56
- type: NonNullable<PageType | undefined>;
55
+ type: NonNullable<import("../page").PageType | undefined>;
57
56
  name: string;
58
57
  id: string;
59
58
  logo: {
@@ -1 +1 @@
1
- {"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAW7B,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAc,QAAQ,EAAmC,MAAM,SAAS,CAAC;AAEhF,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+XP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAW7B,MAAM,WAAW,CAAC;AAKnB,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+XP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
@@ -15,7 +15,7 @@ exports.JobSchema = (0, yup_extended_1.object)()
15
15
  * It is required and should be a string with a minimum length of 10 characters and a maximum length of 100 characters.
16
16
  * This field is used to display the job title in job listings and search results.
17
17
  */
18
- headline: (0, yup_extended_1.string)().required().min(10).max(150).label("Headline"),
18
+ headline: (0, yup_extended_1.string)().required().min(5).max(150).label("Headline"),
19
19
  /*
20
20
  * Job slug is a unique identifier for the job post.
21
21
  * It is required and should be a string with a maximum length of 250 characters.
@@ -1,5 +1,4 @@
1
1
  import { ApplicationReceivePreference } from "../common";
2
- import { PageType } from "../page";
3
2
  import { InferType, ObjectSchema } from "../yup-extended";
4
3
  import { JobStatus } from "./job.constant";
5
4
  export declare const JobSchema: ObjectSchema<{
@@ -53,7 +52,7 @@ export declare const JobSchema: ObjectSchema<{
53
52
  }[] | undefined;
54
53
  verified?: Date | undefined;
55
54
  isOwner?: boolean | undefined;
56
- type: NonNullable<PageType | undefined>;
55
+ type: NonNullable<import("../page").PageType | undefined>;
57
56
  name: string;
58
57
  id: string;
59
58
  logo: {
@@ -1 +1 @@
1
- {"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAW7B,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAc,QAAQ,EAAmC,MAAM,SAAS,CAAC;AAEhF,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+XP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAW7B,MAAM,WAAW,CAAC;AAKnB,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+XP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
@@ -12,7 +12,7 @@ export const JobSchema = object()
12
12
  * It is required and should be a string with a minimum length of 10 characters and a maximum length of 100 characters.
13
13
  * This field is used to display the job title in job listings and search results.
14
14
  */
15
- headline: string().required().min(10).max(150).label("Headline"),
15
+ headline: string().required().min(5).max(150).label("Headline"),
16
16
  /*
17
17
  * Job slug is a unique identifier for the job post.
18
18
  * It is required and should be a string with a maximum length of 250 characters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thejob/schema",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",