@thejob/schema 1.0.56 → 1.0.57
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 +0 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/interfaces.index.d.ts +0 -40
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/interfaces.index.d.ts +0 -40
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/job-group/index.d.ts +0 -2
- package/dist/cjs/job-group/index.d.ts.map +0 -1
- package/dist/cjs/job-group/index.js +0 -17
- package/dist/cjs/job-group/job-group.schema.d.ts +0 -103
- package/dist/cjs/job-group/job-group.schema.d.ts.map +0 -1
- package/dist/cjs/job-group/job-group.schema.js +0 -45
- package/dist/esm/job-group/index.d.ts +0 -2
- package/dist/esm/job-group/index.d.ts.map +0 -1
- package/dist/esm/job-group/index.js +0 -1
- package/dist/esm/job-group/job-group.schema.d.ts +0 -103
- package/dist/esm/job-group/job-group.schema.d.ts.map +0 -1
- package/dist/esm/job-group/job-group.schema.js +0 -42
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./job-group.schema"), exports);
|
|
@@ -1,103 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"job-group.schema.d.ts","sourceRoot":"","sources":["../../../src/job-group/job-group.schema.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAMV,MAAM,iBAAiB,CAAC;AAEzB,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"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JobGroupSchema = exports.JobGroupSEOSchema = exports.JobGroupFilterSchema = void 0;
|
|
4
|
-
const common_1 = require("../common");
|
|
5
|
-
const yup_extended_1 = require("../yup-extended");
|
|
6
|
-
exports.JobGroupFilterSchema = (0, yup_extended_1.object)()
|
|
7
|
-
.shape({
|
|
8
|
-
category: (0, yup_extended_1.string)().optional().label("Category"),
|
|
9
|
-
industry: (0, yup_extended_1.string)().optional().label("Industry"),
|
|
10
|
-
subCategories: (0, yup_extended_1.array)().of((0, yup_extended_1.string)()).optional().label("Sub Categories"),
|
|
11
|
-
employmentType: (0, yup_extended_1.string)().optional().label("Employment Type"),
|
|
12
|
-
workMode: (0, yup_extended_1.string)().optional().label("Work Mode"),
|
|
13
|
-
experienceLevel: (0, yup_extended_1.string)().optional().label("Experience Level"),
|
|
14
|
-
educationLevel: (0, yup_extended_1.array)().of((0, yup_extended_1.string)()).optional().label("Education Level"),
|
|
15
|
-
skills: (0, yup_extended_1.array)().of((0, yup_extended_1.string)()).optional().label("Skills"),
|
|
16
|
-
locations: (0, yup_extended_1.array)().of((0, yup_extended_1.string)()).optional().label("Locations"),
|
|
17
|
-
tags: (0, yup_extended_1.array)().of((0, yup_extended_1.string)()).optional().label("Tags"),
|
|
18
|
-
})
|
|
19
|
-
.optional()
|
|
20
|
-
.label("Job Group Filter");
|
|
21
|
-
exports.JobGroupSEOSchema = (0, yup_extended_1.object)()
|
|
22
|
-
.shape({
|
|
23
|
-
title: (0, yup_extended_1.string)().required().max(100).label("SEO Title"),
|
|
24
|
-
description: (0, yup_extended_1.string)().required().max(200).label("SEO Description"),
|
|
25
|
-
keywords: (0, yup_extended_1.array)().of((0, yup_extended_1.string)()).optional().label("SEO Keywords"),
|
|
26
|
-
})
|
|
27
|
-
.required()
|
|
28
|
-
.label("Job Group SEO");
|
|
29
|
-
exports.JobGroupSchema = (0, yup_extended_1.object)()
|
|
30
|
-
.shape({
|
|
31
|
-
slug: (0, yup_extended_1.string)().trim().required().max(100).label("Slug"),
|
|
32
|
-
name: (0, yup_extended_1.string)().trim().required().max(100).label("Name"),
|
|
33
|
-
description: (0, yup_extended_1.string)().trim().required().max(500).label("Description"),
|
|
34
|
-
icon: (0, yup_extended_1.string)().optional().label("Icon"),
|
|
35
|
-
filters: exports.JobGroupFilterSchema.required().label("Filters"),
|
|
36
|
-
seo: exports.JobGroupSEOSchema.required().label("SEO"),
|
|
37
|
-
isActive: (0, yup_extended_1.boolean)().optional().default(true).label("Is Active"),
|
|
38
|
-
order: (0, yup_extended_1.number)().optional().default(0).label("Order"),
|
|
39
|
-
isFeatured: (0, yup_extended_1.boolean)().optional().default(false).label("Is Featured"),
|
|
40
|
-
bannerImage: (0, yup_extended_1.string)().optional().label("Banner Image"),
|
|
41
|
-
})
|
|
42
|
-
.concat(common_1.DbDefaultSchema)
|
|
43
|
-
.noUnknown()
|
|
44
|
-
.strict()
|
|
45
|
-
.label("Job Group");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/job-group/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./job-group.schema";
|
|
@@ -1,103 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"job-group.schema.d.ts","sourceRoot":"","sources":["../../../src/job-group/job-group.schema.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAMV,MAAM,iBAAiB,CAAC;AAEzB,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"}
|
|
@@ -1,42 +0,0 @@
|
|
|
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");
|