@thejob/schema 1.0.50 → 1.0.52
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/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/interfaces.index.d.ts +46 -0
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.d.ts +6 -0
- package/dist/cjs/job/job.schema.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.js +19 -0
- package/dist/cjs/job-group/index.d.ts +2 -0
- package/dist/cjs/job-group/index.d.ts.map +1 -0
- package/dist/cjs/job-group/index.js +17 -0
- package/dist/cjs/job-group/job-group.schema.d.ts +103 -0
- package/dist/cjs/job-group/job-group.schema.d.ts.map +1 -0
- package/dist/cjs/job-group/job-group.schema.js +45 -0
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts +3 -0
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces.index.d.ts +46 -0
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/job/job.schema.d.ts +6 -0
- package/dist/esm/job/job.schema.d.ts.map +1 -1
- package/dist/esm/job/job.schema.js +19 -0
- package/dist/esm/job-group/index.d.ts +2 -0
- package/dist/esm/job-group/index.d.ts.map +1 -0
- package/dist/esm/job-group/index.js +1 -0
- package/dist/esm/job-group/job-group.schema.d.ts +103 -0
- package/dist/esm/job-group/job-group.schema.d.ts.map +1 -0
- package/dist/esm/job-group/job-group.schema.js +42 -0
- package/dist/esm/job-role-template/job-role-template.schema.d.ts +3 -0
- package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./job-group.schema";
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { InferType } from "../yup-extended";
|
|
2
|
+
export declare const JobGroupFilterSchema: import("yup").ObjectSchema<{
|
|
3
|
+
category: string | undefined;
|
|
4
|
+
industry: string | undefined;
|
|
5
|
+
subCategories: (string | undefined)[] | undefined;
|
|
6
|
+
employmentType: string | undefined;
|
|
7
|
+
workMode: string | undefined;
|
|
8
|
+
experienceLevel: string | undefined;
|
|
9
|
+
educationLevel: (string | undefined)[] | undefined;
|
|
10
|
+
skills: (string | undefined)[] | undefined;
|
|
11
|
+
locations: (string | undefined)[] | undefined;
|
|
12
|
+
tags: (string | undefined)[] | undefined;
|
|
13
|
+
} | undefined, import("yup").AnyObject, {
|
|
14
|
+
category: undefined;
|
|
15
|
+
industry: undefined;
|
|
16
|
+
subCategories: "";
|
|
17
|
+
employmentType: undefined;
|
|
18
|
+
workMode: undefined;
|
|
19
|
+
experienceLevel: undefined;
|
|
20
|
+
educationLevel: "";
|
|
21
|
+
skills: "";
|
|
22
|
+
locations: "";
|
|
23
|
+
tags: "";
|
|
24
|
+
}, "">;
|
|
25
|
+
export declare const JobGroupSEOSchema: import("yup").ObjectSchema<{
|
|
26
|
+
title: string;
|
|
27
|
+
description: string;
|
|
28
|
+
keywords: (string | undefined)[] | undefined;
|
|
29
|
+
}, import("yup").AnyObject, {
|
|
30
|
+
title: undefined;
|
|
31
|
+
description: undefined;
|
|
32
|
+
keywords: "";
|
|
33
|
+
}, "">;
|
|
34
|
+
export declare const JobGroupSchema: import("yup").ObjectSchema<{
|
|
35
|
+
slug: string;
|
|
36
|
+
name: string;
|
|
37
|
+
description: string;
|
|
38
|
+
icon: string | undefined;
|
|
39
|
+
filters: {
|
|
40
|
+
skills?: (string | undefined)[] | undefined;
|
|
41
|
+
locations?: (string | undefined)[] | undefined;
|
|
42
|
+
educationLevel?: (string | undefined)[] | undefined;
|
|
43
|
+
experienceLevel?: string | undefined;
|
|
44
|
+
category?: string | undefined;
|
|
45
|
+
tags?: (string | undefined)[] | undefined;
|
|
46
|
+
employmentType?: string | undefined;
|
|
47
|
+
workMode?: string | undefined;
|
|
48
|
+
industry?: string | undefined;
|
|
49
|
+
subCategories?: (string | undefined)[] | undefined;
|
|
50
|
+
};
|
|
51
|
+
seo: {
|
|
52
|
+
keywords?: (string | undefined)[] | undefined;
|
|
53
|
+
description: string;
|
|
54
|
+
title: string;
|
|
55
|
+
};
|
|
56
|
+
isActive: boolean;
|
|
57
|
+
order: number;
|
|
58
|
+
isFeatured: boolean;
|
|
59
|
+
bannerImage: string | undefined;
|
|
60
|
+
} & {
|
|
61
|
+
id: string;
|
|
62
|
+
shortId: string;
|
|
63
|
+
createdBy: string;
|
|
64
|
+
createdAt: number;
|
|
65
|
+
updatedBy: string | undefined;
|
|
66
|
+
updatedAt: number | undefined;
|
|
67
|
+
}, import("yup").AnyObject, {
|
|
68
|
+
slug: undefined;
|
|
69
|
+
name: undefined;
|
|
70
|
+
description: undefined;
|
|
71
|
+
icon: undefined;
|
|
72
|
+
filters: {
|
|
73
|
+
category: undefined;
|
|
74
|
+
industry: undefined;
|
|
75
|
+
subCategories: "";
|
|
76
|
+
employmentType: undefined;
|
|
77
|
+
workMode: undefined;
|
|
78
|
+
experienceLevel: undefined;
|
|
79
|
+
educationLevel: "";
|
|
80
|
+
skills: "";
|
|
81
|
+
locations: "";
|
|
82
|
+
tags: "";
|
|
83
|
+
};
|
|
84
|
+
seo: {
|
|
85
|
+
title: undefined;
|
|
86
|
+
description: undefined;
|
|
87
|
+
keywords: "";
|
|
88
|
+
};
|
|
89
|
+
isActive: true;
|
|
90
|
+
order: 0;
|
|
91
|
+
isFeatured: false;
|
|
92
|
+
bannerImage: undefined;
|
|
93
|
+
id: undefined;
|
|
94
|
+
shortId: undefined;
|
|
95
|
+
createdBy: undefined;
|
|
96
|
+
createdAt: undefined;
|
|
97
|
+
updatedBy: undefined;
|
|
98
|
+
updatedAt: undefined;
|
|
99
|
+
}, "">;
|
|
100
|
+
export type TJobGroupSchema = InferType<typeof JobGroupSchema>;
|
|
101
|
+
export type TJobGroupFilterSchema = InferType<typeof JobGroupFilterSchema>;
|
|
102
|
+
export type TJobGroupSEOSchema = InferType<typeof JobGroupSEOSchema>;
|
|
103
|
+
//# sourceMappingURL=job-group.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job-group.schema.d.ts","sourceRoot":"","sources":["../../../src/job-group/job-group.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAA0C,MAAM,iBAAiB,CAAC;AAEpF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;MAcL,CAAC;AAE7B,eAAO,MAAM,iBAAiB;;;;;;;;MAOL,CAAC;AAE1B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBN,CAAC;AAEtB,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,OAAO,cAAc,CAAC,CAAC;AAC/D,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC3E,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DbDefaultSchema } from "../common";
|
|
2
|
+
import { object, string, boolean, number, array } from "../yup-extended";
|
|
3
|
+
export const JobGroupFilterSchema = object()
|
|
4
|
+
.shape({
|
|
5
|
+
category: string().optional().label("Category"),
|
|
6
|
+
industry: string().optional().label("Industry"),
|
|
7
|
+
subCategories: array().of(string()).optional().label("Sub Categories"),
|
|
8
|
+
employmentType: string().optional().label("Employment Type"),
|
|
9
|
+
workMode: string().optional().label("Work Mode"),
|
|
10
|
+
experienceLevel: string().optional().label("Experience Level"),
|
|
11
|
+
educationLevel: array().of(string()).optional().label("Education Level"),
|
|
12
|
+
skills: array().of(string()).optional().label("Skills"),
|
|
13
|
+
locations: array().of(string()).optional().label("Locations"),
|
|
14
|
+
tags: array().of(string()).optional().label("Tags"),
|
|
15
|
+
})
|
|
16
|
+
.optional()
|
|
17
|
+
.label("Job Group Filter");
|
|
18
|
+
export const JobGroupSEOSchema = object()
|
|
19
|
+
.shape({
|
|
20
|
+
title: string().required().max(100).label("SEO Title"),
|
|
21
|
+
description: string().required().max(200).label("SEO Description"),
|
|
22
|
+
keywords: array().of(string()).optional().label("SEO Keywords"),
|
|
23
|
+
})
|
|
24
|
+
.required()
|
|
25
|
+
.label("Job Group SEO");
|
|
26
|
+
export const JobGroupSchema = object()
|
|
27
|
+
.shape({
|
|
28
|
+
slug: string().trim().required().max(100).label("Slug"),
|
|
29
|
+
name: string().trim().required().max(100).label("Name"),
|
|
30
|
+
description: string().trim().required().max(500).label("Description"),
|
|
31
|
+
icon: string().optional().label("Icon"),
|
|
32
|
+
filters: JobGroupFilterSchema.required().label("Filters"),
|
|
33
|
+
seo: JobGroupSEOSchema.required().label("SEO"),
|
|
34
|
+
isActive: boolean().optional().default(true).label("Is Active"),
|
|
35
|
+
order: number().optional().default(0).label("Order"),
|
|
36
|
+
isFeatured: boolean().optional().default(false).label("Is Featured"),
|
|
37
|
+
bannerImage: string().optional().label("Banner Image"),
|
|
38
|
+
})
|
|
39
|
+
.concat(DbDefaultSchema)
|
|
40
|
+
.noUnknown()
|
|
41
|
+
.strict()
|
|
42
|
+
.label("Job Group");
|
|
@@ -143,6 +143,9 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
|
|
|
143
143
|
isNegotiable: true;
|
|
144
144
|
};
|
|
145
145
|
reports: "";
|
|
146
|
+
category: undefined;
|
|
147
|
+
industry: undefined;
|
|
148
|
+
subCategories: "";
|
|
146
149
|
termsAccepted: undefined;
|
|
147
150
|
id: undefined;
|
|
148
151
|
shortId: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-role-template.schema.d.ts","sourceRoot":"","sources":["../../../src/job-role-template/job-role-template.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"job-role-template.schema.d.ts","sourceRoot":"","sources":["../../../src/job-role-template/job-role-template.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQhC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|