@thejob/schema 1.0.51 → 1.0.53

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.
@@ -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,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"}
@@ -0,0 +1,45 @@
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");
@@ -20,6 +20,7 @@ export * from "./resume";
20
20
  export * from "./job-role-template";
21
21
  export * from "./ai";
22
22
  export * from "./group";
23
+ export * from "./job-group";
23
24
  export * from "./social-account";
24
25
  export * from "./design-and-font";
25
26
  export * from "./yup-extended";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
package/dist/esm/index.js CHANGED
@@ -20,6 +20,7 @@ export * from "./resume";
20
20
  export * from "./job-role-template";
21
21
  export * from "./ai";
22
22
  export * from "./group";
23
+ export * from "./job-group";
23
24
  export * from "./social-account";
24
25
  export * from "./design-and-font";
25
26
  export * from "./yup-extended";
@@ -1389,6 +1389,46 @@ export interface IJobApplicationSchema {
1389
1389
  studyType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").StudyType | undefined>;
1390
1390
  };
1391
1391
  }
1392
+ export interface IJobGroupSchema {
1393
+ updatedBy?: string | undefined;
1394
+ updatedAt?: number | undefined;
1395
+ icon?: string | undefined;
1396
+ bannerImage?: string | undefined;
1397
+ slug: string;
1398
+ id: string;
1399
+ shortId: string;
1400
+ name: string;
1401
+ description: string;
1402
+ createdBy: string;
1403
+ createdAt: number;
1404
+ isActive: boolean;
1405
+ filters: {
1406
+ locations?: (string | undefined)[] | undefined;
1407
+ category?: string | undefined;
1408
+ employmentType?: string | undefined;
1409
+ workMode?: string | undefined;
1410
+ skills?: (string | undefined)[] | undefined;
1411
+ educationLevel?: (string | undefined)[] | undefined;
1412
+ experienceLevel?: string | undefined;
1413
+ tags?: (string | undefined)[] | undefined;
1414
+ industry?: string | undefined;
1415
+ subCategories?: (string | undefined)[] | undefined;
1416
+ };
1417
+ seo: {
1418
+ keywords?: (string | undefined)[] | undefined;
1419
+ description: string;
1420
+ title: string;
1421
+ };
1422
+ order: number;
1423
+ isFeatured: boolean;
1424
+ }
1425
+ export interface IJobGroupFilterSchema {
1426
+ }
1427
+ export interface IJobGroupSEOSchema {
1428
+ keywords?: (string | undefined)[] | undefined;
1429
+ description: string;
1430
+ title: string;
1431
+ }
1392
1432
  export interface IJobRoleTemplateSchema {
1393
1433
  designation?: {
1394
1434
  logo?: string | undefined;