@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.
Files changed (33) hide show
  1. package/dist/cjs/index.d.ts +1 -0
  2. package/dist/cjs/index.d.ts.map +1 -1
  3. package/dist/cjs/index.js +1 -0
  4. package/dist/cjs/interfaces.index.d.ts +46 -0
  5. package/dist/cjs/interfaces.index.d.ts.map +1 -1
  6. package/dist/cjs/job/job.schema.d.ts +6 -0
  7. package/dist/cjs/job/job.schema.d.ts.map +1 -1
  8. package/dist/cjs/job/job.schema.js +19 -0
  9. package/dist/cjs/job-group/index.d.ts +2 -0
  10. package/dist/cjs/job-group/index.d.ts.map +1 -0
  11. package/dist/cjs/job-group/index.js +17 -0
  12. package/dist/cjs/job-group/job-group.schema.d.ts +103 -0
  13. package/dist/cjs/job-group/job-group.schema.d.ts.map +1 -0
  14. package/dist/cjs/job-group/job-group.schema.js +45 -0
  15. package/dist/cjs/job-role-template/job-role-template.schema.d.ts +3 -0
  16. package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +1 -1
  17. package/dist/esm/index.d.ts +1 -0
  18. package/dist/esm/index.d.ts.map +1 -1
  19. package/dist/esm/index.js +1 -0
  20. package/dist/esm/interfaces.index.d.ts +46 -0
  21. package/dist/esm/interfaces.index.d.ts.map +1 -1
  22. package/dist/esm/job/job.schema.d.ts +6 -0
  23. package/dist/esm/job/job.schema.d.ts.map +1 -1
  24. package/dist/esm/job/job.schema.js +19 -0
  25. package/dist/esm/job-group/index.d.ts +2 -0
  26. package/dist/esm/job-group/index.d.ts.map +1 -0
  27. package/dist/esm/job-group/index.js +1 -0
  28. package/dist/esm/job-group/job-group.schema.d.ts +103 -0
  29. package/dist/esm/job-group/job-group.schema.d.ts.map +1 -0
  30. package/dist/esm/job-group/job-group.schema.js +42 -0
  31. package/dist/esm/job-role-template/job-role-template.schema.d.ts +3 -0
  32. package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +1 -1
  33. package/package.json +1 -1
@@ -0,0 +1,17 @@
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);
@@ -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,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");
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQhC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
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"}
@@ -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";
@@ -137,6 +137,7 @@ export interface IAiPromptJobApplicationSummary {
137
137
  uniqueId?: string | undefined;
138
138
  externalApplyLink?: string | undefined;
139
139
  isOwner?: boolean | undefined;
140
+ category?: string | null | undefined;
140
141
  updatedBy?: string | undefined;
141
142
  updatedAt?: number | undefined;
142
143
  designation?: {
@@ -268,6 +269,8 @@ export interface IAiPromptJobApplicationSummary {
268
269
  createdAt: string;
269
270
  userId: string;
270
271
  }[] | undefined;
272
+ industry?: string | null | undefined;
273
+ subCategories?: string[] | null | undefined;
271
274
  headline: string;
272
275
  slug: string;
273
276
  applicationReceivePreference: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ApplicationReceivePreference | undefined>;
@@ -813,6 +816,7 @@ export interface IJobSchema {
813
816
  uniqueId?: string | undefined;
814
817
  externalApplyLink?: string | undefined;
815
818
  isOwner?: boolean | undefined;
819
+ category?: string | null | undefined;
816
820
  updatedBy?: string | undefined;
817
821
  updatedAt?: number | undefined;
818
822
  designation?: {
@@ -944,6 +948,8 @@ export interface IJobSchema {
944
948
  createdAt: string;
945
949
  userId: string;
946
950
  }[] | undefined;
951
+ industry?: string | null | undefined;
952
+ subCategories?: string[] | null | undefined;
947
953
  headline: string;
948
954
  slug: string;
949
955
  applicationReceivePreference: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ApplicationReceivePreference | undefined>;
@@ -1383,6 +1389,46 @@ export interface IJobApplicationSchema {
1383
1389
  studyType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").StudyType | undefined>;
1384
1390
  };
1385
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
+ }
1386
1432
  export interface IJobRoleTemplateSchema {
1387
1433
  designation?: {
1388
1434
  logo?: string | undefined;