@thejob/schema 1.0.49 → 1.0.51
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/interfaces.index.d.ts +6 -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 +20 -1
- 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/interfaces.index.d.ts +6 -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 +20 -1
- 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
|
@@ -137,7 +137,7 @@ exports.JobSchema = (0, yup_extended_1.object)({
|
|
|
137
137
|
* It is useful for providing detailed information about the job responsibilities, requirements, and other relevant details.
|
|
138
138
|
* It is recommended to use a Markdown editor to write the job description.
|
|
139
139
|
*/
|
|
140
|
-
description: (0, yup_extended_1.string)().required().min(250).max(
|
|
140
|
+
description: (0, yup_extended_1.string)().required().min(250).max(50000).label("Description"),
|
|
141
141
|
/*
|
|
142
142
|
* This field is required and can be used to specify the job description.
|
|
143
143
|
* It is useful for providing detailed information about the job responsibilities, requirements, and other relevant details.
|
|
@@ -355,6 +355,25 @@ exports.JobSchema = (0, yup_extended_1.object)({
|
|
|
355
355
|
* It is also useful for analytics and reporting purposes.
|
|
356
356
|
*/
|
|
357
357
|
reports: (0, yup_extended_1.array)().of(common_1.UserIdAndCreatedAtSchema).optional().label("Reports"),
|
|
358
|
+
/**
|
|
359
|
+
* This field can be used to categorize the job post under a specific category.
|
|
360
|
+
* It is optional and can help in organizing and filtering job posts based on categories.
|
|
361
|
+
*/
|
|
362
|
+
category: (0, yup_extended_1.string)().nullable().optional().label("Category"),
|
|
363
|
+
/**
|
|
364
|
+
* This field can be used to specify the industry related to the job post.
|
|
365
|
+
* It is optional and can help in organizing and filtering job posts based on industries.
|
|
366
|
+
*/
|
|
367
|
+
industry: (0, yup_extended_1.string)().nullable().optional().label("Industry"),
|
|
368
|
+
/**
|
|
369
|
+
* This field can be used to specify the sub-categories related to the job post.
|
|
370
|
+
* It is optional and can help in organizing and filtering job posts based on sub-categories.
|
|
371
|
+
*/
|
|
372
|
+
subCategories: (0, yup_extended_1.array)()
|
|
373
|
+
.of((0, yup_extended_1.string)().trim().required())
|
|
374
|
+
.nullable()
|
|
375
|
+
.optional()
|
|
376
|
+
.label("Sub Categories"),
|
|
358
377
|
/*
|
|
359
378
|
* Indicates if the user has accepted the terms and conditions for posting a job.
|
|
360
379
|
* This is required and should be a boolean value.
|
|
@@ -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"}
|
|
@@ -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>;
|